Skip to content

Commit 6d8bf06

Browse files
committed
chore(repo): remove all standalone
1 parent f894178 commit 6d8bf06

File tree

103 files changed

+136
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+136
-335
lines changed

apps/astro-docs/src/components/cannon/sample-debug.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extend(THREE);
2020

2121
@Component({
2222
selector: 'app-plane',
23-
standalone: true,
2423
template: `
2524
<ngt-mesh #mesh [receiveShadow]="true">
2625
<ngt-plane-geometry *args="[1000, 1000]" />
@@ -40,7 +39,6 @@ export class Plane {
4039

4140
@Component({
4241
selector: 'app-cube',
43-
standalone: true,
4442
template: `
4543
<ngt-mesh #mesh [receiveShadow]="true" [castShadow]="true">
4644
<ngt-box-geometry />
@@ -62,7 +60,6 @@ export class Cube {
6260
}
6361

6462
@Component({
65-
standalone: true,
6663
template: `
6764
<ngt-color attach="background" *args="['lightblue']" />
6865
<ngt-ambient-light />
@@ -108,7 +105,6 @@ export class SceneGraph {
108105
}
109106

110107
@Component({
111-
standalone: true,
112108
template: `
113109
<ngt-canvas
114110
[sceneGraph]="sceneGraph"

apps/astro-docs/src/components/cannon/sample.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extend(THREE);
1919

2020
@Component({
2121
selector: 'app-plane',
22-
standalone: true,
2322
template: `
2423
<ngt-mesh #mesh [receiveShadow]="true">
2524
<ngt-plane-geometry *args="[1000, 1000]" />
@@ -39,7 +38,6 @@ export class Plane {
3938

4039
@Component({
4140
selector: 'app-cube',
42-
standalone: true,
4341
template: `
4442
<ngt-mesh #mesh [receiveShadow]="true" [castShadow]="true">
4543
<ngt-box-geometry />
@@ -61,7 +59,6 @@ export class Cube {
6159
}
6260

6361
@Component({
64-
standalone: true,
6562
template: `
6663
<ngt-color attach="background" *args="['lightblue']" />
6764
<ngt-ambient-light />
@@ -107,7 +104,6 @@ export class SceneGraph {
107104
}
108105

109106
@Component({
110-
standalone: true,
111107
template: `
112108
<ngt-canvas
113109
[sceneGraph]="sceneGraph"

apps/astro-docs/src/components/cursor/cursor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { type Mesh, Object3D } from 'three';
1616

1717
extend(THREE);
1818

19-
@Directive({ selector: '[cursor]', standalone: true })
19+
@Directive({ selector: '[cursor]' })
2020
export class Cursor {
2121
constructor() {
2222
const elementRef = inject<ElementRef<Object3D>>(ElementRef);
@@ -41,7 +41,6 @@ export class Cursor {
4141
}
4242

4343
@Component({
44-
standalone: true,
4544
template: `
4645
<ngt-spot-light [position]="[5, 5, 5]" [intensity]="Math.PI" [decay]="0" />
4746
<ngt-point-light [position]="[-10, -10, -10]" [decay]="0" />
@@ -72,7 +71,6 @@ export class SceneGraph {
7271
}
7372

7473
@Component({
75-
standalone: true,
7674
template: `
7775
<ngt-canvas [sceneGraph]="sceneGraph" [camera]="{ position: [0, 0, 2] }" />
7876
`,

apps/astro-docs/src/components/first-scene/first-scene.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { scenes } from './scenes';
66
extend(THREE);
77

88
@Component({
9-
standalone: true,
109
template: `
1110
<ngt-canvas [sceneGraph]="sceneGraph()" />
1211
`,

apps/astro-docs/src/components/first-scene/scene-graph-step-five.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type { Mesh } from 'three';
1212

1313
@Component({
1414
selector: 'app-cube',
15-
standalone: true,
1615
template: `
1716
<ngt-mesh
1817
#mesh
@@ -47,7 +46,6 @@ class Cube {
4746
}
4847

4948
@Component({
50-
standalone: true,
5149
template: `
5250
<ngt-ambient-light [intensity]="0.5" />
5351
<ngt-spot-light [position]="10" [intensity]="0.5 * Math.PI" [angle]="0.15" [penumbra]="1" [decay]="0" />

apps/astro-docs/src/components/first-scene/scene-graph-step-four.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type { Mesh } from 'three';
1212

1313
@Component({
1414
selector: 'app-cube',
15-
standalone: true,
1615
template: `
1716
<ngt-mesh
1817
#mesh
@@ -47,7 +46,6 @@ class Cube {
4746
}
4847

4948
@Component({
50-
standalone: true,
5149
template: `
5250
<app-cube [position]="[1.5, 0, 0]" />
5351
<app-cube [position]="[-1.5, 0, 0]" />

apps/astro-docs/src/components/first-scene/scene-graph-step-one.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22

33
@Component({
4-
standalone: true,
54
template: `
65
<ngt-mesh>
76
<ngt-box-geometry />

apps/astro-docs/src/components/first-scene/scene-graph-step-six.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ extend({ OrbitControls });
1515

1616
@Component({
1717
selector: 'app-cube',
18-
standalone: true,
1918
template: `
2019
<ngt-mesh
2120
#mesh
@@ -50,7 +49,6 @@ class Cube {
5049
}
5150

5251
@Component({
53-
standalone: true,
5452
template: `
5553
<ngt-ambient-light [intensity]="0.5" />
5654
<ngt-spot-light [position]="10" [intensity]="0.5 * Math.PI" [angle]="0.15" [penumbra]="1" [decay]="0" />

apps/astro-docs/src/components/first-scene/scene-graph-step-three.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { injectBeforeRender } from 'angular-three';
1010
import type { Mesh } from 'three';
1111

1212
@Component({
13-
standalone: true,
1413
template: `
1514
<ngt-mesh
1615
#mesh

apps/astro-docs/src/components/first-scene/scene-graph-step-two.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { injectBeforeRender } from 'angular-three';
33
import type { Mesh } from 'three';
44

55
@Component({
6-
standalone: true,
76
template: `
87
<ngt-mesh #mesh>
98
<ngt-box-geometry />

apps/astro-docs/src/components/hud/hud.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ extend(THREE);
2929

3030
@Component({
3131
selector: 'app-torus',
32-
standalone: true,
3332
template: `
3433
<ngt-mesh [scale]="scale()" (pointerover)="hovered.set(true)" (pointerout)="hovered.set(false)">
3534
<ngt-torus-geometry *args="[1, 0.25, 32, 100]" />
@@ -48,7 +47,6 @@ export class Torus {
4847

4948
@Component({
5049
selector: 'app-face-material',
51-
standalone: true,
5250
template: `
5351
<ngt-mesh-standard-material [attach]="['material', index()]" [color]="color()">
5452
<ngts-render-texture [options]="{ frames: 6, anisotropy: 16 }">
@@ -80,7 +78,6 @@ export class FaceMaterial {
8078

8179
@Component({
8280
selector: 'app-box',
83-
standalone: true,
8481
template: `
8582
<ngt-mesh
8683
#mesh
@@ -115,7 +112,6 @@ export class Box {
115112

116113
@Component({
117114
selector: 'app-view-cube',
118-
standalone: true,
119115
template: `
120116
<ngt-portal [container]="scene()" [autoRender]="true">
121117
<ng-template portalContent>
@@ -163,7 +159,6 @@ export class ViewCube {
163159
}
164160

165161
@Component({
166-
standalone: true,
167162
template: `
168163
<ngt-color *args="['#dcdcdc']" attach="background" />
169164
<ngt-ambient-light [intensity]="0.5 * Math.PI" />
@@ -184,7 +179,6 @@ export class Experience {
184179
}
185180

186181
@Component({
187-
standalone: true,
188182
template: `
189183
<ngt-canvas [sceneGraph]="scene" />
190184
`,

apps/astro-docs/src/components/lightformer/lightformer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Mesh } from 'three';
88
extend(THREE);
99

1010
@Component({
11-
standalone: true,
1211
template: `
1312
<ngts-environment [options]="{ background: true, preset: 'sunset' }">
1413
<ng-template>
@@ -56,7 +55,6 @@ export class Experience {
5655
}
5756

5857
@Component({
59-
standalone: true,
6058
template: `
6159
<ngt-canvas [sceneGraph]="scene" [camera]="{ position: [-3, 3, 3] }" />
6260
`,

apps/astro-docs/src/components/postprocessing/sample.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ extend(THREE);
2121

2222
@Component({
2323
selector: 'app-main-sphere',
24-
standalone: true,
2524
template: `
2625
<ngt-mesh #mesh [material]="material()">
2726
<ngt-icosahedron-geometry *args="[1, 4]" />
@@ -48,7 +47,6 @@ export class MainSphere {
4847

4948
@Component({
5049
selector: 'app-sphere-instances',
51-
standalone: true,
5250
template: `
5351
<!-- we render the material with attach="none" so we can share it between instances -->
5452
<ngts-mesh-distort-material #distortMaterial attach="none" [options]="materialOptions()" />
@@ -116,7 +114,6 @@ export class SphereInstances {
116114
}
117115

118116
@Component({
119-
standalone: true,
120117
template: `
121118
<ngt-color attach="background" *args="['#050505']" />
122119
<ngt-fog attach="fog" *args="['#161616', 8, 30]" />
@@ -136,7 +133,6 @@ export class SphereInstances {
136133
export class SceneGraph {}
137134

138135
@Component({
139-
standalone: true,
140136
template: `
141137
<ngt-canvas [sceneGraph]="sceneGraph" [camera]="{ position: [0, 0, 3] }" />
142138
<ngts-loader />

apps/astro-docs/src/components/soba/abstractions/gradient-texture.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { DoubleSide } from 'three';
77

88
@Component({
99
selector: 'gradient-texture-scene',
10-
standalone: true,
1110
template: `
1211
<ngts-float>
1312
<ngt-mesh [scale]="[2, 4, 1]">

apps/astro-docs/src/components/soba/abstractions/grid.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { NgtsAccumulativeShadows, NgtsCenter, NgtsEnvironment, NgtsRandomizedLig
77

88
@Component({
99
selector: 'grid-suzi',
10-
standalone: true,
1110
template: `
1211
@if (gltf(); as gltf) {
1312
<ngt-mesh
@@ -35,7 +34,6 @@ export class Suzi {
3534

3635
@Component({
3736
selector: 'grid-shadows',
38-
standalone: true,
3937
template: `
4038
<ngts-accumulative-shadows
4139
[options]="{ temporal: true, frames: 100, color: '#9d4b4b', colorBlend: 0.5, alphaTest: 0.75, scale: 20 }"
@@ -50,7 +48,6 @@ export class Suzi {
5048
export class Shadows {}
5149

5250
@Component({
53-
standalone: true,
5451
template: `
5552
<ngt-group [position]="[0, -0.5, 0]">
5653
<ngts-center [options]="{ top: true }">
@@ -100,10 +97,3 @@ export class Shadows {}
10097
export default class GridScene {
10198
Math = Math;
10299
}
103-
104-
// export const Default = makeStoryFunction(DefaultGridStory, {
105-
// camera: { position: [10, 12, 12], fov: 25 },
106-
// lights: false,
107-
// controls: false,
108-
// background: '#303035',
109-
// });

apps/astro-docs/src/components/soba/scene-graph.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { CANVAS_OPTIONS } from './canvas-options';
1616
import { SOBA_CONTENT } from './soba-content';
1717

1818
@Component({
19-
standalone: true,
2019
template: `
2120
<ngt-color *args="[background()]" attach="background" />
2221

apps/astro-docs/src/components/soba/wrapper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extend(THREE);
1010

1111
@Component({
1212
selector: 'soba-wrapper',
13-
standalone: true,
1413
template: `
1514
<ngt-canvas
1615
[sceneGraph]="sceneGraph"

apps/astro-docs/src/components/testing/test-bed.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import * as THREE from 'three';
1313
extend(THREE);
1414

1515
@Component({
16-
standalone: true,
1716
template: `
1817
<ngt-mesh
1918
#mesh
@@ -44,7 +43,6 @@ class SceneGraph {
4443
}
4544

4645
@Component({
47-
standalone: true,
4846
template: `
4947
<ngt-canvas [sceneGraph]="sceneGraph" />
5048
`,

0 commit comments

Comments
 (0)