@@ -22,25 +22,25 @@ import { extend } from 'angular-three';
22
22
import { Mesh , BoxGeometry } from ' three' ;
23
23
24
24
extend ({
25
- Mesh , // makes ngt-mesh available
26
- BoxGeometry , // makes ngt-box-geometry available
27
- /* ... */
28
- MyMesh: Mesh , // makes ngt-my-mesh available
25
+ Mesh , // makes ngt-mesh available
26
+ BoxGeometry , // makes ngt-box-geometry available
27
+ /* ... */
28
+ MyMesh: Mesh , // makes ngt-my-mesh available
29
29
});
30
30
31
31
// alternatively for demo purposes, you can use the following
32
32
// extend(THREE);
33
33
// This includes the entire THREE.js namespace
34
34
35
35
@Component ({
36
- selector: ' app-scene-graph' ,
37
- template: `
38
- <ngt-mesh>
39
- <ngt-box-geometry />
40
- </ngt-mesh>
41
- ` ,
42
- schemas: [CUSTOM_ELEMENTS_SCHEMA ], // required
43
- changeDetection: ChangeDetectionStrategy .OnPush ,
36
+ selector: ' app-scene-graph' ,
37
+ template: `
38
+ <ngt-mesh>
39
+ <ngt-box-geometry />
40
+ </ngt-mesh>
41
+ ` ,
42
+ schemas: [CUSTOM_ELEMENTS_SCHEMA ], // required
43
+ changeDetection: ChangeDetectionStrategy .OnPush ,
44
44
})
45
45
export class SceneGraph {}
46
46
```
@@ -52,14 +52,14 @@ import { NgtCanvas } from 'angular-three/dom';
52
52
import { SceneGraph } from ' ./scene-graph' ;
53
53
54
54
@Component ({
55
- // This Component is rendered normally in Angular.
56
- selector: ' app-my-experience' ,
57
- template: `
58
- <ngt-canvas>
59
- <app-scene-graph *canvasContent />
60
- </ngt-canvas>
61
- ` ,
62
- imports: [NgtCanvas ],
55
+ // This Component is rendered normally in Angular.
56
+ selector: ' app-my-experience' ,
57
+ template: `
58
+ <ngt-canvas>
59
+ <app-scene-graph *canvasContent />
60
+ </ngt-canvas>
61
+ ` ,
62
+ imports: [NgtCanvas ],
63
63
})
64
64
export class MyExperience {}
65
65
```
@@ -72,6 +72,6 @@ export class MyExperience {}
72
72
import { provideNgtRenderer } from ' angular-three/dom' ;
73
73
74
74
bootstrapApplication (AppComponent , {
75
- providers: [provideNgtRenderer ()],
75
+ providers: [provideNgtRenderer ()],
76
76
});
77
77
```
0 commit comments