angular-three 3.7.1 → 3.7.2

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/lib/canvas.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
15
15
  sceneGraph: import("@angular/core").InputSignalWithTransform<Type<TSceneCmp>, TSceneGraph>;
16
16
  gl: import("@angular/core").InputSignal<NgtGLOptions>;
17
17
  size: import("@angular/core").InputSignal<NgtSize | undefined>;
18
- shadows: import("@angular/core").InputSignalWithTransform<NonNullable<boolean | Partial<import("three").WebGLShadowMap> | "basic" | "percentage" | "soft" | "variance" | undefined>, unknown>;
18
+ shadows: import("@angular/core").InputSignalWithTransform<NonNullable<boolean | "basic" | "percentage" | "soft" | "variance" | Partial<import("three").WebGLShadowMap> | undefined>, unknown>;
19
19
  legacy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
20
  linear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
21
21
  flat: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -26,17 +26,18 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
26
26
  raycaster: import("@angular/core").InputSignal<Partial<Raycaster> | undefined>;
27
27
  scene: import("@angular/core").InputSignal<Scene | Partial<Scene> | undefined>;
28
28
  camera: import("@angular/core").InputSignal<NonNullable<((import("angular-three").NgtCamera | Partial<{
29
- 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);
30
- 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);
31
- clone?: ((recursive?: boolean) => import("three").Camera) | undefined;
32
- copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").Camera) | undefined;
33
- add?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
34
- applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
35
- applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").Camera) | undefined;
29
+ readonly type?: string | undefined;
30
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
31
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
36
32
  attach: string | string[] | import("angular-three").NgtAttachFunction;
37
33
  __ngt_args__: [];
38
- readonly type?: string | undefined;
39
- toJSON?: ((meta?: import("three").JSONMeta) => import("three").Object3DJSON) | undefined;
34
+ readonly isCamera?: true | undefined;
35
+ matrixWorldInverse?: import("three").Matrix4 | undefined;
36
+ projectionMatrix?: import("three").Matrix4 | undefined;
37
+ projectionMatrixInverse?: import("three").Matrix4 | undefined;
38
+ coordinateSystem?: import("three").CoordinateSystem | undefined;
39
+ viewport?: import("three").Vector4 | undefined;
40
+ getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
40
41
  readonly isObject3D?: true | undefined;
41
42
  readonly id?: number | undefined;
42
43
  uuid?: string | undefined;
@@ -62,6 +63,8 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
62
63
  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;
63
64
  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;
64
65
  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;
66
+ applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
67
+ applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").Camera) | undefined;
65
68
  setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
66
69
  setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
67
70
  setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
@@ -81,6 +84,7 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
81
84
  (vector: Vector3): void;
82
85
  (x: number, y: number, z: number): void;
83
86
  } | undefined;
87
+ add?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
84
88
  remove?: ((...object: import("three").Object3D[]) => import("three").Camera) | undefined;
85
89
  removeFromParent?: (() => import("three").Camera) | undefined;
86
90
  clear?: (() => import("three").Camera) | undefined;
@@ -91,21 +95,17 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
91
95
  getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
92
96
  getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
93
97
  getWorldScale?: ((target: Vector3) => Vector3) | undefined;
94
- getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
95
98
  traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
96
99
  traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
97
100
  traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
98
101
  updateMatrix?: (() => void) | undefined;
99
102
  updateMatrixWorld?: ((force?: boolean) => void) | undefined;
100
103
  updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
104
+ toJSON?: ((meta?: import("three").JSONMeta) => import("three").Object3DJSON) | undefined;
105
+ clone?: ((recursive?: boolean) => import("three").Camera) | undefined;
106
+ copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").Camera) | undefined;
101
107
  hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").Camera>) => boolean) | undefined;
102
108
  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
- viewport?: import("three").Vector4 | undefined;
109
109
  position: import("angular-three").NgtVector3;
110
110
  up: import("angular-three").NgtVector3;
111
111
  scale: import("angular-three").NgtVector3;
@@ -116,26 +116,18 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
116
116
  dispose: (() => void) | null;
117
117
  raycast: import("three").Object3D["raycast"] | null;
118
118
  } & {
119
- 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);
120
- 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);
121
- clone?: ((recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
122
- copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
123
- add?: ((...object: import("three").Object3D[]) => import("three").PerspectiveCamera) | undefined;
124
- applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
125
- applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").PerspectiveCamera) | undefined;
119
+ readonly type?: string | undefined;
120
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
121
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
126
122
  attach: string | string[] | import("angular-three").NgtAttachFunction;
127
123
  __ngt_args__: [fov?: number | undefined, aspect?: number | undefined, near?: number | undefined, far?: number | undefined];
128
- view?: {
129
- enabled: boolean;
130
- fullWidth: number;
131
- fullHeight: number;
132
- offsetX: number;
133
- offsetY: number;
134
- width: number;
135
- height: number;
136
- } | null | undefined;
137
- readonly type?: string | undefined;
138
- toJSON?: ((meta?: import("three").JSONMeta) => import("three").PerspectiveCameraJSON) | undefined;
124
+ readonly isCamera?: true | undefined;
125
+ matrixWorldInverse?: import("three").Matrix4 | undefined;
126
+ projectionMatrix?: import("three").Matrix4 | undefined;
127
+ projectionMatrixInverse?: import("three").Matrix4 | undefined;
128
+ coordinateSystem?: import("three").CoordinateSystem | undefined;
129
+ viewport?: import("three").Vector4 | undefined;
130
+ getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
139
131
  readonly isObject3D?: true | undefined;
140
132
  readonly id?: number | undefined;
141
133
  uuid?: string | undefined;
@@ -161,6 +153,8 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
161
153
  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;
162
154
  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;
163
155
  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;
156
+ applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
157
+ applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").PerspectiveCamera) | undefined;
164
158
  setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
165
159
  setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
166
160
  setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
@@ -180,6 +174,7 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
180
174
  (vector: Vector3): void;
181
175
  (x: number, y: number, z: number): void;
182
176
  } | undefined;
177
+ add?: ((...object: import("three").Object3D[]) => import("three").PerspectiveCamera) | undefined;
183
178
  remove?: ((...object: import("three").Object3D[]) => import("three").PerspectiveCamera) | undefined;
184
179
  removeFromParent?: (() => import("three").PerspectiveCamera) | undefined;
185
180
  clear?: (() => import("three").PerspectiveCamera) | undefined;
@@ -190,21 +185,17 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
190
185
  getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
191
186
  getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
192
187
  getWorldScale?: ((target: Vector3) => Vector3) | undefined;
193
- getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
194
188
  traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
195
189
  traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
196
190
  traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
197
191
  updateMatrix?: (() => void) | undefined;
198
192
  updateMatrixWorld?: ((force?: boolean) => void) | undefined;
199
193
  updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
194
+ toJSON?: ((meta?: import("three").JSONMeta) => import("three").PerspectiveCameraJSON) | undefined;
195
+ clone?: ((recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
196
+ copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").PerspectiveCamera) | undefined;
200
197
  hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").PerspectiveCamera>) => boolean) | undefined;
201
198
  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;
207
- viewport?: import("three").Vector4 | undefined;
208
199
  readonly isPerspectiveCamera?: true | undefined;
209
200
  zoom?: number | undefined;
210
201
  fov?: number | undefined;
@@ -212,6 +203,15 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
212
203
  near?: number | undefined;
213
204
  far?: number | undefined;
214
205
  focus?: number | undefined;
206
+ view?: {
207
+ enabled: boolean;
208
+ fullWidth: number;
209
+ fullHeight: number;
210
+ offsetX: number;
211
+ offsetY: number;
212
+ width: number;
213
+ height: number;
214
+ } | null | undefined;
215
215
  filmGauge?: number | undefined;
216
216
  filmOffset?: number | undefined;
217
217
  getFocalLength?: (() => number) | undefined;
@@ -235,26 +235,18 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
235
235
  dispose: (() => void) | null;
236
236
  raycast: import("three").Object3D["raycast"] | null;
237
237
  } & {
238
- 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);
239
- 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);
240
- clone?: ((recursive?: boolean) => import("three").OrthographicCamera) | undefined;
241
- copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").OrthographicCamera) | undefined;
242
- add?: ((...object: import("three").Object3D[]) => import("three").OrthographicCamera) | undefined;
243
- applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
244
- applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").OrthographicCamera) | undefined;
238
+ readonly type?: string | undefined;
239
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
240
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
245
241
  attach: string | string[] | import("angular-three").NgtAttachFunction;
246
242
  __ngt_args__: [left?: number | undefined, right?: number | undefined, top?: number | undefined, bottom?: number | undefined, near?: number | undefined, far?: number | undefined];
247
- view?: {
248
- enabled: boolean;
249
- fullWidth: number;
250
- fullHeight: number;
251
- offsetX: number;
252
- offsetY: number;
253
- width: number;
254
- height: number;
255
- } | null | undefined;
256
- readonly type?: string | undefined;
257
- toJSON?: ((meta?: import("three").JSONMeta) => import("three").OrthographicCameraJSON) | undefined;
243
+ readonly isCamera?: true | undefined;
244
+ matrixWorldInverse?: import("three").Matrix4 | undefined;
245
+ projectionMatrix?: import("three").Matrix4 | undefined;
246
+ projectionMatrixInverse?: import("three").Matrix4 | undefined;
247
+ coordinateSystem?: import("three").CoordinateSystem | undefined;
248
+ viewport?: import("three").Vector4 | undefined;
249
+ getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
258
250
  readonly isObject3D?: true | undefined;
259
251
  readonly id?: number | undefined;
260
252
  uuid?: string | undefined;
@@ -280,6 +272,8 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
280
272
  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;
281
273
  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;
282
274
  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;
275
+ applyMatrix4?: ((matrix: import("three").Matrix4) => void) | undefined;
276
+ applyQuaternion?: ((quaternion: import("three").Quaternion) => import("three").OrthographicCamera) | undefined;
283
277
  setRotationFromAxisAngle?: ((axis: Vector3, angle: number) => void) | undefined;
284
278
  setRotationFromEuler?: ((euler: import("three").Euler) => void) | undefined;
285
279
  setRotationFromMatrix?: ((m: import("three").Matrix4) => void) | undefined;
@@ -299,6 +293,7 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
299
293
  (vector: Vector3): void;
300
294
  (x: number, y: number, z: number): void;
301
295
  } | undefined;
296
+ add?: ((...object: import("three").Object3D[]) => import("three").OrthographicCamera) | undefined;
302
297
  remove?: ((...object: import("three").Object3D[]) => import("three").OrthographicCamera) | undefined;
303
298
  removeFromParent?: (() => import("three").OrthographicCamera) | undefined;
304
299
  clear?: (() => import("three").OrthographicCamera) | undefined;
@@ -309,24 +304,29 @@ export declare class NgtCanvas<TSceneGraph extends Type<any> | 'routed', TSceneC
309
304
  getWorldPosition?: ((target: Vector3) => Vector3) | undefined;
310
305
  getWorldQuaternion?: ((target: import("three").Quaternion) => import("three").Quaternion) | undefined;
311
306
  getWorldScale?: ((target: Vector3) => Vector3) | undefined;
312
- getWorldDirection?: ((target: Vector3) => Vector3) | undefined;
313
307
  traverse?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
314
308
  traverseVisible?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
315
309
  traverseAncestors?: ((callback: (object: import("three").Object3D) => any) => void) | undefined;
316
310
  updateMatrix?: (() => void) | undefined;
317
311
  updateMatrixWorld?: ((force?: boolean) => void) | undefined;
318
312
  updateWorldMatrix?: ((updateParents: boolean, updateChildren: boolean) => void) | undefined;
313
+ toJSON?: ((meta?: import("three").JSONMeta) => import("three").OrthographicCameraJSON) | undefined;
314
+ clone?: ((recursive?: boolean) => import("three").OrthographicCamera) | undefined;
315
+ copy?: ((object: import("three").Object3D, recursive?: boolean) => import("three").OrthographicCamera) | undefined;
319
316
  hasEventListener?: (<T extends keyof import("three").Object3DEventMap>(type: T, listener: import("three").EventListener<import("three").Object3DEventMap[T], T, import("three").OrthographicCamera>) => boolean) | undefined;
320
317
  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;
326
- viewport?: import("three").Vector4 | undefined;
327
318
  zoom?: number | undefined;
328
319
  near?: number | undefined;
329
320
  far?: number | undefined;
321
+ view?: {
322
+ enabled: boolean;
323
+ fullWidth: number;
324
+ fullHeight: number;
325
+ offsetX: number;
326
+ offsetY: number;
327
+ width: number;
328
+ height: number;
329
+ } | null | undefined;
330
330
  setViewOffset?: ((fullWidth: number, fullHeight: number, offsetX: number, offsetY: number, width: number, height: number) => void) | undefined;
331
331
  clearViewOffset?: (() => void) | undefined;
332
332
  updateProjectionMatrix?: (() => void) | undefined;
package/lib/portal.d.ts CHANGED
@@ -34,7 +34,7 @@ export type NgtPortalInjectableState = Partial<Omit<NgtState, NgtPortalPrivateKe
34
34
  }>;
35
35
  export declare class NgtPortal {
36
36
  container: import("@angular/core").InputSignal<Object3D<import("three").Object3DEventMap>>;
37
- state: import("@angular/core").InputSignal<Partial<Omit<NgtState, "viewport" | "size" | "setSize" | "events" | "invalidate" | "advance" | "setEvents" | "setDpr" | "setFrameloop"> & {
37
+ state: import("@angular/core").InputSignal<Partial<Omit<NgtState, "viewport" | "events" | "size" | "invalidate" | "advance" | "setEvents" | "setSize" | "setDpr" | "setFrameloop"> & {
38
38
  events?: {
39
39
  enabled?: boolean;
40
40
  priority?: number;
@@ -3,7 +3,7 @@ import { NgtCanvasElement, NgtDpr, NgtGLOptions, NgtIntersection, NgtSize } from
3
3
  export declare function makeId(event?: NgtIntersection): string;
4
4
  export declare function makeDpr(dpr: NgtDpr, window?: Window): number;
5
5
  export declare function makeRendererInstance<TCanvas extends NgtCanvasElement>(glOptions: NgtGLOptions, canvas: TCanvas): WebGLRenderer;
6
- export declare function makeCameraInstance(isOrthographic: boolean, size: NgtSize): PerspectiveCamera | OrthographicCamera;
6
+ export declare function makeCameraInstance(isOrthographic: boolean, size: NgtSize): OrthographicCamera | PerspectiveCamera;
7
7
  export type NgtObjectMap = {
8
8
  nodes: Record<string, Object3D<any>>;
9
9
  materials: Record<string, Material>;
@@ -20,8 +20,8 @@ export declare class NgtCanvasNative {
20
20
  camera: import("@angular/core").InputSignal<NonNullable<((import("angular-three").NgtCamera | Partial<{
21
21
  name?: string | undefined;
22
22
  readonly type?: string | undefined;
23
- 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);
24
- 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);
23
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
24
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
25
25
  attach: string | string[] | import("angular-three").NgtAttachFunction;
26
26
  __ngt_args__: [];
27
27
  readonly isCamera?: true | undefined;
@@ -110,8 +110,8 @@ export declare class NgtCanvasNative {
110
110
  } & {
111
111
  name?: string | undefined;
112
112
  readonly type?: string | undefined;
113
- 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);
114
- 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);
113
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
114
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
115
115
  attach: string | string[] | import("angular-three").NgtAttachFunction;
116
116
  __ngt_args__: [fov?: number | undefined, aspect?: number | undefined, near?: number | undefined, far?: number | undefined];
117
117
  readonly isCamera?: true | undefined;
@@ -229,8 +229,8 @@ export declare class NgtCanvasNative {
229
229
  } & {
230
230
  name?: string | undefined;
231
231
  readonly type?: string | undefined;
232
- 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);
233
- 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);
232
+ addEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
233
+ removeEventListener: (<TEventKey extends keyof import("angular-three").NgtNodeEventMap<TOriginal>>(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: /*elided*/ any, ev: import("angular-three").NgtAllObject3DEventsMap[TEventKey]) => any) => void);
234
234
  attach: string | string[] | import("angular-three").NgtAttachFunction;
235
235
  __ngt_args__: [left?: number | undefined, right?: number | undefined, top?: number | undefined, bottom?: number | undefined, near?: number | undefined, far?: number | undefined];
236
236
  readonly isCamera?: true | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },