angular-three 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -43
- package/fesm2022/angular-three-testing.mjs +0 -1
- package/fesm2022/angular-three-testing.mjs.map +1 -1
- package/fesm2022/angular-three.mjs +22 -28
- package/fesm2022/angular-three.mjs.map +1 -1
- package/lib/canvas.d.ts +61 -61
- package/lib/html.d.ts +1 -1
- package/package.json +1 -1
- package/plugin/src/generators/init/generator.js +2 -2
- package/plugin/src/generators/init/generator.js.map +1 -1
package/lib/canvas.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class NgtCanvas {
|
|
|
14
14
|
sceneGraph: import("@angular/core").InputSignalWithTransform<Type<any>, Type<any> | "routed">;
|
|
15
15
|
gl: import("@angular/core").InputSignal<NgtGLOptions>;
|
|
16
16
|
size: import("@angular/core").InputSignal<NgtSize | undefined>;
|
|
17
|
-
shadows: import("@angular/core").InputSignalWithTransform<NonNullable<boolean | "
|
|
17
|
+
shadows: import("@angular/core").InputSignalWithTransform<NonNullable<boolean | Partial<import("three").WebGLShadowMap> | "basic" | "percentage" | "soft" | "variance" | undefined>, unknown>;
|
|
18
18
|
legacy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
19
|
linear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
20
|
flat: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -25,21 +25,19 @@ export declare class NgtCanvas {
|
|
|
25
25
|
raycaster: import("@angular/core").InputSignal<Partial<Raycaster> | undefined>;
|
|
26
26
|
scene: import("@angular/core").InputSignal<Scene | Partial<Scene> | undefined>;
|
|
27
27
|
camera: import("@angular/core").InputSignal<NonNullable<((import("angular-three").NgtCamera | Partial<{
|
|
28
|
+
viewport?: import("three").Vector4 | undefined;
|
|
29
|
+
attach: string | string[] | import("angular-three").NgtAttachFunction;
|
|
28
30
|
parent?: import("three").Object3D<import("three").Object3DEventMap> | null | undefined;
|
|
29
31
|
add?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
|
|
30
|
-
remove?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
|
|
31
|
-
attach: string | string[] | import("angular-three").NgtAttachFunction;
|
|
32
32
|
readonly type?: string | undefined;
|
|
33
|
-
viewport?: import("three").Vector4 | undefined;
|
|
34
33
|
addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").Camera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").Camera, typeof import("three").Camera>, ev: import("angular-three").NgtNodeEventMap<import("three").Camera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
35
34
|
removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").Camera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").Camera, typeof import("three").Camera>, ev: import("angular-three").NgtNodeEventMap<import("three").Camera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
35
|
+
clone?: ((recursive?: boolean) => import("three").Camera) | undefined;
|
|
36
|
+
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").Camera) | undefined;
|
|
37
|
+
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
38
|
+
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").Camera) | undefined;
|
|
36
39
|
__ngt_args__: [];
|
|
37
|
-
|
|
38
|
-
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
39
|
-
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
40
|
-
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
41
|
-
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
42
|
-
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
40
|
+
toJSON?: ((meta?: import("three").JSONMeta) => import("three").Object3DJSON) | undefined;
|
|
43
41
|
readonly isObject3D?: true | undefined;
|
|
44
42
|
readonly id?: number | undefined;
|
|
45
43
|
uuid?: string | undefined;
|
|
@@ -64,8 +62,6 @@ export declare class NgtCanvas {
|
|
|
64
62
|
onAfterShadow?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, shadowCamera: import("three").Camera, geometry: import("three").BufferGeometry, depthMaterial: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
65
63
|
onBeforeRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
66
64
|
onAfterRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
67
|
-
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
68
|
-
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").Camera) | undefined;
|
|
69
65
|
setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
|
|
70
66
|
setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
|
|
71
67
|
setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
|
|
@@ -85,6 +81,7 @@ export declare class NgtCanvas {
|
|
|
85
81
|
(vector: Vector3): void;
|
|
86
82
|
(x: number, y: number, z: number): void;
|
|
87
83
|
} | undefined;
|
|
84
|
+
remove?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
|
|
88
85
|
removeFromParent?: (() => import("three").Camera) | undefined;
|
|
89
86
|
clear?: (() => import("three").Camera) | undefined;
|
|
90
87
|
getObjectById?: ((id: number) => import("three").Object3D | undefined) | undefined;
|
|
@@ -94,17 +91,20 @@ export declare class NgtCanvas {
|
|
|
94
91
|
getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
|
|
95
92
|
getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
|
|
96
93
|
getWorldScale?: ((target: Vector3) => Vector3) | undefined;
|
|
94
|
+
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
97
95
|
traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
98
96
|
traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
99
97
|
traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
100
98
|
updateMatrix?: (() => void) | undefined;
|
|
101
99
|
updateMatrixWorld?: ((force?: boolean) => void) | undefined;
|
|
102
100
|
updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
|
|
103
|
-
toJSON?: ((meta?: import("three").JSONMeta) => import("three").Object3DJSON) | undefined;
|
|
104
|
-
clone?: ((recursive?: boolean) => import("three").Camera) | undefined;
|
|
105
|
-
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").Camera) | undefined;
|
|
106
101
|
hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").Camera>) => boolean) | undefined;
|
|
107
102
|
dispatchEvent?: (<T extends keyof import("three").Object3DEventMap>(event: import("three").BaseEvent<T> & import("three").Object3DEventMap[T]) => void) | undefined;
|
|
103
|
+
readonly isCamera?: true | undefined;
|
|
104
|
+
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
105
|
+
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
106
|
+
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
107
|
+
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
108
108
|
position: import("angular-three").NgtVector3;
|
|
109
109
|
up: import("angular-three").NgtVector3;
|
|
110
110
|
scale: import("angular-three").NgtVector3;
|
|
@@ -115,21 +115,28 @@ export declare class NgtCanvas {
|
|
|
115
115
|
dispose: (() => void) | null;
|
|
116
116
|
raycast: import("three").Object3D["raycast"] | null;
|
|
117
117
|
} & {
|
|
118
|
+
viewport?: import("three").Vector4 | undefined;
|
|
119
|
+
attach: string | string[] | import("angular-three").NgtAttachFunction;
|
|
118
120
|
parent?: import("three").Object3D<import("three").Object3DEventMap> | null | undefined;
|
|
119
121
|
add?: ((...object: import("three").Object3D[]) => import("three").PerspectiveCamera) | undefined;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
view?: {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
fullWidth: number;
|
|
125
|
+
fullHeight: number;
|
|
126
|
+
offsetX: number;
|
|
127
|
+
offsetY: number;
|
|
128
|
+
width: number;
|
|
129
|
+
height: number;
|
|
130
|
+
} | null | undefined;
|
|
122
131
|
readonly type?: string | undefined;
|
|
123
|
-
viewport?: import("three").Vector4 | undefined;
|
|
124
132
|
addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").PerspectiveCamera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").PerspectiveCamera, typeof import("three").PerspectiveCamera>, ev: import("angular-three").NgtNodeEventMap<import("three").PerspectiveCamera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
125
133
|
removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").PerspectiveCamera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").PerspectiveCamera, typeof import("three").PerspectiveCamera>, ev: import("angular-three").NgtNodeEventMap<import("three").PerspectiveCamera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
134
|
+
clone?: ((recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
|
|
135
|
+
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
|
|
136
|
+
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
137
|
+
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").PerspectiveCamera) | undefined;
|
|
126
138
|
__ngt_args__: [fov?: number | undefined, aspect?: number | undefined, near?: number | undefined, far?: number | undefined];
|
|
127
|
-
|
|
128
|
-
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
129
|
-
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
130
|
-
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
131
|
-
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
132
|
-
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
139
|
+
toJSON?: ((meta?: import("three").JSONMeta) => import("three").PerspectiveCameraJSON) | undefined;
|
|
133
140
|
readonly isObject3D?: true | undefined;
|
|
134
141
|
readonly id?: number | undefined;
|
|
135
142
|
uuid?: string | undefined;
|
|
@@ -154,8 +161,6 @@ export declare class NgtCanvas {
|
|
|
154
161
|
onAfterShadow?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, shadowCamera: import("three").Camera, geometry: import("three").BufferGeometry, depthMaterial: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
155
162
|
onBeforeRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
156
163
|
onAfterRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
157
|
-
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
158
|
-
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").PerspectiveCamera) | undefined;
|
|
159
164
|
setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
|
|
160
165
|
setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
|
|
161
166
|
setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
|
|
@@ -175,6 +180,7 @@ export declare class NgtCanvas {
|
|
|
175
180
|
(vector: Vector3): void;
|
|
176
181
|
(x: number, y: number, z: number): void;
|
|
177
182
|
} | undefined;
|
|
183
|
+
remove?: ((...object: import("three").Object3D[]) => import("three").PerspectiveCamera) | undefined;
|
|
178
184
|
removeFromParent?: (() => import("three").PerspectiveCamera) | undefined;
|
|
179
185
|
clear?: (() => import("three").PerspectiveCamera) | undefined;
|
|
180
186
|
getObjectById?: ((id: number) => import("three").Object3D | undefined) | undefined;
|
|
@@ -184,17 +190,20 @@ export declare class NgtCanvas {
|
|
|
184
190
|
getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
|
|
185
191
|
getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
|
|
186
192
|
getWorldScale?: ((target: Vector3) => Vector3) | undefined;
|
|
193
|
+
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
187
194
|
traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
188
195
|
traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
189
196
|
traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
190
197
|
updateMatrix?: (() => void) | undefined;
|
|
191
198
|
updateMatrixWorld?: ((force?: boolean) => void) | undefined;
|
|
192
199
|
updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
|
|
193
|
-
toJSON?: ((meta?: import("three").JSONMeta) => import("three").PerspectiveCameraJSON) | undefined;
|
|
194
|
-
clone?: ((recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
|
|
195
|
-
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
|
|
196
200
|
hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").PerspectiveCamera>) => boolean) | undefined;
|
|
197
201
|
dispatchEvent?: (<T extends keyof import("three").Object3DEventMap>(event: import("three").BaseEvent<T> & import("three").Object3DEventMap[T]) => void) | undefined;
|
|
202
|
+
readonly isCamera?: true | undefined;
|
|
203
|
+
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
204
|
+
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
205
|
+
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
206
|
+
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
198
207
|
readonly isPerspectiveCamera?: true | undefined;
|
|
199
208
|
zoom?: number | undefined;
|
|
200
209
|
fov?: number | undefined;
|
|
@@ -202,15 +211,6 @@ export declare class NgtCanvas {
|
|
|
202
211
|
near?: number | undefined;
|
|
203
212
|
far?: number | undefined;
|
|
204
213
|
focus?: number | undefined;
|
|
205
|
-
view?: {
|
|
206
|
-
enabled: boolean;
|
|
207
|
-
fullWidth: number;
|
|
208
|
-
fullHeight: number;
|
|
209
|
-
offsetX: number;
|
|
210
|
-
offsetY: number;
|
|
211
|
-
width: number;
|
|
212
|
-
height: number;
|
|
213
|
-
} | null | undefined;
|
|
214
214
|
filmGauge?: number | undefined;
|
|
215
215
|
filmOffset?: number | undefined;
|
|
216
216
|
getFocalLength?: (() => number) | undefined;
|
|
@@ -234,21 +234,28 @@ export declare class NgtCanvas {
|
|
|
234
234
|
dispose: (() => void) | null;
|
|
235
235
|
raycast: import("three").Object3D["raycast"] | null;
|
|
236
236
|
} & {
|
|
237
|
+
viewport?: import("three").Vector4 | undefined;
|
|
238
|
+
attach: string | string[] | import("angular-three").NgtAttachFunction;
|
|
237
239
|
parent?: import("three").Object3D<import("three").Object3DEventMap> | null | undefined;
|
|
238
240
|
add?: ((...object: import("three").Object3D[]) => import("three").OrthographicCamera) | undefined;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
view?: {
|
|
242
|
+
enabled: boolean;
|
|
243
|
+
fullWidth: number;
|
|
244
|
+
fullHeight: number;
|
|
245
|
+
offsetX: number;
|
|
246
|
+
offsetY: number;
|
|
247
|
+
width: number;
|
|
248
|
+
height: number;
|
|
249
|
+
} | null | undefined;
|
|
241
250
|
readonly type?: string | undefined;
|
|
242
|
-
viewport?: import("three").Vector4 | undefined;
|
|
243
251
|
addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").OrthographicCamera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").OrthographicCamera, typeof import("three").OrthographicCamera>, ev: import("angular-three").NgtNodeEventMap<import("three").OrthographicCamera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
244
252
|
removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<import("three").OrthographicCamera>>(type: TEventKey, listener: (this: import("angular-three").NgtNodeElement<import("three").OrthographicCamera, typeof import("three").OrthographicCamera>, ev: import("angular-three").NgtNodeEventMap<import("three").OrthographicCamera>[TEventKey]) => any) => void) & (<TEventKey extends keyof import("angular-three").NgtAllObject3DEventsMap>(type: TEventKey, listener: (this: any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
|
|
253
|
+
clone?: ((recursive?: boolean) => import("three").OrthographicCamera) | undefined;
|
|
254
|
+
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").OrthographicCamera) | undefined;
|
|
255
|
+
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
256
|
+
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").OrthographicCamera) | undefined;
|
|
245
257
|
__ngt_args__: [left?: number | undefined, right?: number | undefined, top?: number | undefined, bottom?: number | undefined, near?: number | undefined, far?: number | undefined];
|
|
246
|
-
|
|
247
|
-
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
248
|
-
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
249
|
-
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
250
|
-
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
251
|
-
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
258
|
+
toJSON?: ((meta?: import("three").JSONMeta) => import("three").OrthographicCameraJSON) | undefined;
|
|
252
259
|
readonly isObject3D?: true | undefined;
|
|
253
260
|
readonly id?: number | undefined;
|
|
254
261
|
uuid?: string | undefined;
|
|
@@ -273,8 +280,6 @@ export declare class NgtCanvas {
|
|
|
273
280
|
onAfterShadow?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, shadowCamera: import("three").Camera, geometry: import("three").BufferGeometry, depthMaterial: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
274
281
|
onBeforeRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
275
282
|
onAfterRender?: ((renderer: import("three").WebGLRenderer, scene: Scene, camera: import("three").Camera, geometry: import("three").BufferGeometry, material: import("three").Material, group: import("three").Group) => void) | undefined;
|
|
276
|
-
applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
|
|
277
|
-
applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").OrthographicCamera) | undefined;
|
|
278
283
|
setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
|
|
279
284
|
setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
|
|
280
285
|
setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
|
|
@@ -294,6 +299,7 @@ export declare class NgtCanvas {
|
|
|
294
299
|
(vector: Vector3): void;
|
|
295
300
|
(x: number, y: number, z: number): void;
|
|
296
301
|
} | undefined;
|
|
302
|
+
remove?: ((...object: import("three").Object3D[]) => import("three").OrthographicCamera) | undefined;
|
|
297
303
|
removeFromParent?: (() => import("three").OrthographicCamera) | undefined;
|
|
298
304
|
clear?: (() => import("three").OrthographicCamera) | undefined;
|
|
299
305
|
getObjectById?: ((id: number) => import("three").Object3D | undefined) | undefined;
|
|
@@ -303,29 +309,23 @@ export declare class NgtCanvas {
|
|
|
303
309
|
getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
|
|
304
310
|
getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
|
|
305
311
|
getWorldScale?: ((target: Vector3) => Vector3) | undefined;
|
|
312
|
+
getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
|
|
306
313
|
traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
307
314
|
traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
308
315
|
traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
|
|
309
316
|
updateMatrix?: (() => void) | undefined;
|
|
310
317
|
updateMatrixWorld?: ((force?: boolean) => void) | undefined;
|
|
311
318
|
updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
|
|
312
|
-
toJSON?: ((meta?: import("three").JSONMeta) => import("three").OrthographicCameraJSON) | undefined;
|
|
313
|
-
clone?: ((recursive?: boolean) => import("three").OrthographicCamera) | undefined;
|
|
314
|
-
copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").OrthographicCamera) | undefined;
|
|
315
319
|
hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").OrthographicCamera>) => boolean) | undefined;
|
|
316
320
|
dispatchEvent?: (<T extends keyof import("three").Object3DEventMap>(event: import("three").BaseEvent<T> & import("three").Object3DEventMap[T]) => void) | undefined;
|
|
321
|
+
readonly isCamera?: true | undefined;
|
|
322
|
+
matrixWorldInverse?: import("three").Matrix4 | undefined;
|
|
323
|
+
projectionMatrix?: import("three").Matrix4 | undefined;
|
|
324
|
+
projectionMatrixInverse?: import("three").Matrix4 | undefined;
|
|
325
|
+
coordinateSystem?: import("three").CoordinateSystem | undefined;
|
|
317
326
|
zoom?: number | undefined;
|
|
318
327
|
near?: number | undefined;
|
|
319
328
|
far?: number | undefined;
|
|
320
|
-
view?: {
|
|
321
|
-
enabled: boolean;
|
|
322
|
-
fullWidth: number;
|
|
323
|
-
fullHeight: number;
|
|
324
|
-
offsetX: number;
|
|
325
|
-
offsetY: number;
|
|
326
|
-
width: number;
|
|
327
|
-
height: number;
|
|
328
|
-
} | null | undefined;
|
|
329
329
|
setViewOffset?: ((fullWidth: number, fullHeight: number, offsetX: number, offsetY: number, width: number, height: number) => void) | undefined;
|
|
330
330
|
clearViewOffset?: (() => void) | undefined;
|
|
331
331
|
updateProjectionMatrix?: (() => void) | undefined;
|
package/lib/html.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare abstract class NgtHTML {
|
|
|
11
11
|
protected store: import("angular-three").NgtSignalStore<import("angular-three").NgtState>;
|
|
12
12
|
protected destroyRef: DestroyRef;
|
|
13
13
|
protected host: ElementRef<HTMLElement>;
|
|
14
|
-
protected domElement:
|
|
14
|
+
protected domElement: "gl" | HTMLElement | null;
|
|
15
15
|
constructor();
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtHTML, never>;
|
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtHTML, never, never, {}, {}, never, never, true, never>;
|
package/package.json
CHANGED
|
@@ -84,8 +84,8 @@ async function initGenerator(tree, { skipGenerateExperience = false } = {}) {
|
|
|
84
84
|
if (!appComponentContent) {
|
|
85
85
|
return warnExperienceWasNotGenerated(tree, `AppComponent was not found`);
|
|
86
86
|
}
|
|
87
|
-
//
|
|
88
|
-
const isStandalone = appComponentContent.includes(`standalone: true`);
|
|
87
|
+
// standalone is true or not exist
|
|
88
|
+
const isStandalone = appComponentContent.includes(`standalone: true`) || !appComponentContent.includes('standalone');
|
|
89
89
|
if (!isStandalone) {
|
|
90
90
|
return warnExperienceWasNotGenerated(tree, `AppComponent is not a Standalone Component`);
|
|
91
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/generator.ts"],"names":[],"mappings":";;AAuBA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/generator.ts"],"names":[],"mappings":";;AAuBA,sCAmLC;AA1MD,uCAWoB;AACpB,uDAAoD;AACpD,uCAAkC;AAClC,yCAAiC;AAEjC,oCAA2C;AAC3C,wCAA0G;AAMnG,KAAK,UAAU,aAAa,CAClC,IAAU,EACV,EAAE,sBAAsB,GAAG,KAAK,KAAoC,EAAE;IAEtE,eAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEnD,MAAM,OAAO,GACZ,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,eAAe,CAAC;QAC9C,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC,eAAe,CAAC;QACjD,+BAAqB,CAAC;IAEvB,IAAA,qCAA4B,EAC3B,IAAI,EACJ,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE,uBAAa,EAAE,UAAU,EAAE,4BAAkB,EAAE,EAClF,EAAE,cAAc,EAAE,4BAAkB,EAAE,CACtC,CAAC;IAEF,eAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,eAAe,CAAC;IAEhG,IAAA,mBAAU,EAAC,IAAI,EAAE,YAA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