angular-three 3.6.1 → 4.0.0-next.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/dom/README.md +3 -0
- package/dom/index.d.ts +2 -0
- package/dom/lib/canvas.d.ts +49 -0
- package/{lib/dom → dom/lib}/events.d.ts +2 -3
- package/dom/lib/renderer.d.ts +1 -0
- package/fesm2022/angular-three-dom.mjs +278 -0
- package/fesm2022/angular-three-dom.mjs.map +1 -0
- package/fesm2022/angular-three-testing.mjs +45 -28
- package/fesm2022/angular-three-testing.mjs.map +1 -1
- package/fesm2022/angular-three.mjs +2671 -3004
- package/fesm2022/angular-three.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/lib/directives/args.d.ts +4 -8
- package/lib/directives/common.d.ts +20 -0
- package/lib/directives/parent.d.ts +7 -11
- package/lib/events.d.ts +5 -5
- package/lib/html.d.ts +4 -7
- package/lib/instance.d.ts +8 -4
- package/lib/loop.d.ts +13 -25
- package/lib/portal.d.ts +26 -45
- package/lib/renderer/catalogue.d.ts +4 -12
- package/lib/renderer/constants.d.ts +11 -22
- package/lib/renderer/renderer.d.ts +53 -0
- package/lib/renderer/state.d.ts +62 -22
- package/lib/renderer/utils.d.ts +10 -10
- package/lib/roots.d.ts +2 -6
- package/lib/routed-scene.d.ts +2 -10
- package/lib/store.d.ts +7 -12
- package/lib/three-types.d.ts +225 -404
- package/lib/types.d.ts +168 -162
- package/lib/utils/apply-props.d.ts +4 -2
- package/lib/utils/attach.d.ts +5 -5
- package/lib/utils/before-render.d.ts +1 -1
- package/lib/utils/is.d.ts +12 -11
- package/lib/utils/make.d.ts +7 -7
- package/lib/utils/object-events.d.ts +4 -4
- package/lib/utils/parameters.d.ts +11 -11
- package/lib/utils/signal-state.d.ts +27 -0
- package/lib/utils/update.d.ts +2 -2
- package/package.json +79 -97
- package/testing/lib/test-bed.d.ts +12 -9
- package/testing/lib/test-canvas.d.ts +8 -5
- package/LICENSE +0 -21
- package/fesm2022/angular-three-nativescript.mjs +0 -134
- package/fesm2022/angular-three-nativescript.mjs.map +0 -1
- package/lib/canvas.d.ts +0 -366
- package/lib/renderer/index.d.ts +0 -65
- package/lib/utils/signal-store.d.ts +0 -26
- package/metadata.json +0 -1
- package/nativescript/README.md +0 -5
- package/nativescript/index.d.ts +0 -1
- package/nativescript/lib/canvas.d.ts +0 -359
- package/web-types.json +0 -1
package/lib/three-types.d.ts
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NgtAfterAttach, NgtAttachFunction,
|
|
3
|
-
type Expand<T> = T extends infer O ? {
|
|
4
|
-
[K in keyof O]: O[K];
|
|
5
|
-
} : never;
|
|
6
|
-
type NoEvent<T> = Omit<T, 'addEventListener' | 'removeEventListener'>;
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
import type { NgtAfterAttach, NgtAnyRecord, NgtArguments, NgtAttachFunction, NgtConstructorRepresentation, NgtEventHandlers } from './types';
|
|
7
3
|
export type NgtNonFunctionKeys<T> = {
|
|
8
4
|
[K in keyof T]-?: T[K] extends Function ? never : K;
|
|
9
5
|
}[keyof T];
|
|
10
6
|
export type NgtOverwrite<T, O> = Omit<T, NgtNonFunctionKeys<O>> & O;
|
|
11
|
-
export type
|
|
12
|
-
|
|
7
|
+
export type NgtProperties<T> = Pick<T, NgtNonFunctionKeys<T>>;
|
|
8
|
+
export type NgtMutable<P> = {
|
|
9
|
+
[K in keyof P]: P[K] | Readonly<P[K]>;
|
|
13
10
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export type
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export type
|
|
11
|
+
export interface NgtMathRepresentation {
|
|
12
|
+
set(...args: number[]): any;
|
|
13
|
+
}
|
|
14
|
+
export interface NgtVectorRepresentation extends NgtMathRepresentation {
|
|
15
|
+
setScalar(value: number): any;
|
|
16
|
+
}
|
|
17
|
+
export type NgtMathTypes = NgtMathRepresentation | THREE.Euler | THREE.Color;
|
|
18
|
+
export type NgtMathType<T extends NgtMathTypes> = T extends THREE.Color ? NgtArguments<typeof THREE.Color> | THREE.ColorRepresentation : T extends NgtVectorRepresentation | THREE.Layers | THREE.Euler ? T | Parameters<T['set']> | number : T | Parameters<T['set']>;
|
|
19
|
+
export type NgtMathProperties<P> = {
|
|
20
|
+
[K in keyof P as P[K] extends NgtMathTypes ? K : never]: P[K] extends NgtMathTypes ? NgtMathType<P[K]> : never;
|
|
21
|
+
};
|
|
22
|
+
export type NgtNullableRaycast<P> = {
|
|
23
|
+
[K in keyof P as K extends 'raycast' ? K : never]: K extends 'raycast' ? P[K] | null : never;
|
|
24
|
+
};
|
|
25
|
+
export type NgtVector2 = NgtMathType<THREE.Vector2>;
|
|
26
|
+
export type NgtVector3 = NgtMathType<THREE.Vector3>;
|
|
27
|
+
export type NgtVector4 = NgtMathType<THREE.Vector4>;
|
|
28
|
+
export type NgtColor = NgtMathType<THREE.Color>;
|
|
29
|
+
export type NgtLayers = NgtMathType<THREE.Layers>;
|
|
30
|
+
export type NgtQuaternion = NgtMathType<THREE.Quaternion>;
|
|
31
|
+
export type NgtEuler = NgtMathType<THREE.Euler>;
|
|
32
|
+
export type NgtMatrix3 = NgtMathType<THREE.Matrix3>;
|
|
33
|
+
export type NgtMatrix4 = NgtMathType<THREE.Matrix4>;
|
|
34
|
+
export interface NgtRaycastableRepresentation {
|
|
35
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
36
|
+
}
|
|
29
37
|
export type ThreeDisposeEvent = {
|
|
30
38
|
type: 'dispose';
|
|
31
|
-
target:
|
|
39
|
+
target: any;
|
|
32
40
|
};
|
|
33
41
|
export type ThreeAddedEvent = {
|
|
34
42
|
type: 'added';
|
|
35
|
-
target:
|
|
43
|
+
target: any;
|
|
36
44
|
};
|
|
37
45
|
export type ThreeRemovedEvent = {
|
|
38
46
|
type: 'removed';
|
|
39
|
-
target:
|
|
47
|
+
target: any;
|
|
40
48
|
};
|
|
41
49
|
export type ThreeChildAddedEvent = {
|
|
42
50
|
type: 'childadded';
|
|
43
|
-
target:
|
|
44
|
-
child:
|
|
51
|
+
target: any;
|
|
52
|
+
child: any;
|
|
45
53
|
};
|
|
46
54
|
export type ThreeChildRemovedEvent = {
|
|
47
55
|
type: 'childremoved';
|
|
48
|
-
target:
|
|
49
|
-
child:
|
|
56
|
+
target: any;
|
|
57
|
+
child: any;
|
|
50
58
|
};
|
|
51
|
-
export interface NgtNodeEventMap<
|
|
52
|
-
attached: NgtAfterAttach<
|
|
53
|
-
updated:
|
|
54
|
-
beforeRender: NgtBeforeRenderEvent<TOriginal>;
|
|
59
|
+
export interface NgtNodeEventMap<TInstance = NgtAnyRecord> {
|
|
60
|
+
attached: NgtAfterAttach<any, TInstance>;
|
|
61
|
+
updated: TInstance;
|
|
55
62
|
disposed: ThreeDisposeEvent;
|
|
56
63
|
}
|
|
57
|
-
export type NgtNodeElement<TOriginal, TConstructor> = {
|
|
58
|
-
attach: string | string[] | NgtAttachFunction;
|
|
59
|
-
addEventListener<TEventKey extends keyof NgtNodeEventMap<TOriginal>>(type: TEventKey, listener: (this: NgtNodeElement<TOriginal, TConstructor>, ev: NgtNodeEventMap<TOriginal>[TEventKey]) => any): void;
|
|
60
|
-
removeEventListener<TEventKey extends keyof NgtNodeEventMap<TOriginal>>(type: TEventKey, listener: (this: NgtNodeElement<TOriginal, TConstructor>, ev: NgtNodeEventMap<TOriginal>[TEventKey]) => any): void;
|
|
61
|
-
__ngt_args__: NgtArguments<TConstructor>;
|
|
62
|
-
};
|
|
63
|
-
export type NgtNode<TOriginal, TConstructor, TNoEvent = NoEvent<TOriginal>> = [TNoEvent] extends [
|
|
64
|
-
{
|
|
65
|
-
thisShouldNeverHappen: 'unless the object is of type any';
|
|
66
|
-
}
|
|
67
|
-
] ? NgtExtendedColors<NgtOverwrite<Partial<{}>, NgtNodeElement<{}, {}>>> : NgtExtendedColors<NgtOverwrite<Partial<TNoEvent>, NgtNodeElement<TOriginal, TConstructor>>>;
|
|
68
64
|
export type NgtObject3DEventsMap = {
|
|
69
65
|
[TEvent in keyof NgtEventHandlers]-?: Parameters<NonNullable<NgtEventHandlers[TEvent]>>[0];
|
|
70
66
|
} & {
|
|
@@ -73,619 +69,444 @@ export type NgtObject3DEventsMap = {
|
|
|
73
69
|
childadded: ThreeChildAddedEvent;
|
|
74
70
|
childremoved: ThreeChildRemovedEvent;
|
|
75
71
|
};
|
|
76
|
-
export type NgtAllObject3DEventsMap = NgtObject3DEventsMap & NgtNodeEventMap<
|
|
77
|
-
export
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export type
|
|
93
|
-
export type NgtObject3D = NgtObject3DNode<Object3D, typeof Object3D>;
|
|
94
|
-
export type NgtAudio = NgtObject3DNode<Audio, typeof Audio>;
|
|
95
|
-
export type NgtAudioListener = NgtObject3DNode<AudioListener, typeof AudioListener>;
|
|
96
|
-
export type NgtPositionalAudio = NgtObject3DNode<PositionalAudio, typeof PositionalAudio>;
|
|
97
|
-
export type NgtMesh = NgtObject3DNode<Mesh, typeof Mesh>;
|
|
98
|
-
export type NgtInstancedMesh = NgtObject3DNode<InstancedMesh, typeof InstancedMesh>;
|
|
99
|
-
export type NgtBatchedMesh = NgtObject3DNode<BatchedMesh, typeof BatchedMesh>;
|
|
100
|
-
export type NgtScene = NgtObject3DNode<Scene, typeof Scene>;
|
|
101
|
-
export type NgtSprite = NgtObject3DNode<Sprite, typeof Sprite>;
|
|
102
|
-
export type NgtLOD = NgtObject3DNode<LOD, typeof LOD>;
|
|
103
|
-
export type NgtSkinnedMesh = NgtObject3DNode<SkinnedMesh, typeof SkinnedMesh>;
|
|
104
|
-
export type NgtSkeleton = NgtObject3DNode<Skeleton, typeof Skeleton>;
|
|
105
|
-
export type NgtBone = NgtObject3DNode<Bone, typeof Bone>;
|
|
106
|
-
export type NgtLine = NgtObject3DNode<Line, typeof Line>;
|
|
107
|
-
export type NgtLineSegments = NgtObject3DNode<LineSegments, typeof LineSegments>;
|
|
108
|
-
export type NgtLineLoop = NgtObject3DNode<LineLoop, typeof LineLoop>;
|
|
109
|
-
export type NgtPoints = NgtObject3DNode<Points, typeof Points>;
|
|
110
|
-
export type NgtGroup = NgtObject3DNode<Group, typeof Group>;
|
|
111
|
-
export type NgtCameraNode = NgtObject3DNode<Camera, typeof Camera>;
|
|
112
|
-
export type NgtPerspectiveCamera = NgtObject3DNode<PerspectiveCamera, typeof PerspectiveCamera>;
|
|
113
|
-
export type NgtOrthographicCamera = NgtObject3DNode<OrthographicCamera, typeof OrthographicCamera>;
|
|
114
|
-
export type NgtCubeCamera = NgtObject3DNode<CubeCamera, typeof CubeCamera>;
|
|
115
|
-
export type NgtArrayCamera = NgtObject3DNode<ArrayCamera, typeof ArrayCamera>;
|
|
116
|
-
export type NgtInstancedBufferGeometry = NgtGeometry<InstancedBufferGeometry, typeof InstancedBufferGeometry>;
|
|
117
|
-
export type NgtBufferGeometry = NgtGeometry<BufferGeometry, typeof BufferGeometry>;
|
|
118
|
-
export type NgtWireframeGeometry = NgtGeometry<WireframeGeometry, typeof WireframeGeometry>;
|
|
119
|
-
export type NgtTetrahedronGeometry = NgtGeometry<TetrahedronGeometry, typeof TetrahedronGeometry>;
|
|
120
|
-
export type NgtOctahedronGeometry = NgtGeometry<OctahedronGeometry, typeof OctahedronGeometry>;
|
|
121
|
-
export type NgtIcosahedronGeometry = NgtGeometry<IcosahedronGeometry, typeof IcosahedronGeometry>;
|
|
122
|
-
export type NgtDodecahedronGeometry = NgtGeometry<DodecahedronGeometry, typeof DodecahedronGeometry>;
|
|
123
|
-
export type NgtPolyhedronGeometry = NgtGeometry<PolyhedronGeometry, typeof PolyhedronGeometry>;
|
|
124
|
-
export type NgtTubeGeometry = NgtGeometry<TubeGeometry, typeof TubeGeometry>;
|
|
125
|
-
export type NgtTorusKnotGeometry = NgtGeometry<TorusKnotGeometry, typeof TorusKnotGeometry>;
|
|
126
|
-
export type NgtTorusGeometry = NgtGeometry<TorusGeometry, typeof TorusGeometry>;
|
|
127
|
-
export type NgtSphereGeometry = NgtGeometry<SphereGeometry, typeof SphereGeometry>;
|
|
128
|
-
export type NgtRingGeometry = NgtGeometry<RingGeometry, typeof RingGeometry>;
|
|
129
|
-
export type NgtPlaneGeometry = NgtGeometry<PlaneGeometry, typeof PlaneGeometry>;
|
|
130
|
-
export type NgtLatheGeometry = NgtGeometry<LatheGeometry, typeof LatheGeometry>;
|
|
131
|
-
export type NgtShapeGeometry = NgtGeometry<ShapeGeometry, typeof ShapeGeometry>;
|
|
132
|
-
export type NgtExtrudeGeometry = NgtGeometry<ExtrudeGeometry, typeof ExtrudeGeometry>;
|
|
133
|
-
export type NgtEdgesGeometry = NgtGeometry<EdgesGeometry, typeof EdgesGeometry>;
|
|
134
|
-
export type NgtConeGeometry = NgtGeometry<ConeGeometry, typeof ConeGeometry>;
|
|
135
|
-
export type NgtCylinderGeometry = NgtGeometry<CylinderGeometry, typeof CylinderGeometry>;
|
|
136
|
-
export type NgtCircleGeometry = NgtGeometry<CircleGeometry, typeof CircleGeometry>;
|
|
137
|
-
export type NgtBoxGeometry = NgtGeometry<BoxGeometry, typeof BoxGeometry>;
|
|
138
|
-
export type NgtCapsuleGeometry = NgtGeometry<CapsuleGeometry, typeof CapsuleGeometry>;
|
|
139
|
-
export type NgtShadowMaterial = NgtMaterial<ShadowMaterial, [ShaderMaterialParameters]>;
|
|
140
|
-
export type NgtSpriteMaterial = NgtMaterial<SpriteMaterial, [SpriteMaterialParameters]>;
|
|
141
|
-
export type NgtRawShaderMaterial = NgtMaterial<RawShaderMaterial, [ShaderMaterialParameters]>;
|
|
142
|
-
export type NgtShaderMaterial = NgtMaterial<ShaderMaterial, [ShaderMaterialParameters]>;
|
|
143
|
-
export type NgtPointsMaterial = NgtMaterial<PointsMaterial, [PointsMaterialParameters]>;
|
|
144
|
-
export type NgtMeshPhysicalMaterial = NgtMaterial<MeshPhysicalMaterial, [MeshPhysicalMaterialParameters]>;
|
|
145
|
-
export type NgtMeshStandardMaterial = NgtMaterial<MeshStandardMaterial, [MeshStandardMaterialParameters]>;
|
|
146
|
-
export type NgtMeshPhongMaterial = NgtMaterial<MeshPhongMaterial, [MeshPhongMaterialParameters]>;
|
|
147
|
-
export type NgtMeshToonMaterial = NgtMaterial<MeshToonMaterial, [MeshToonMaterialParameters]>;
|
|
148
|
-
export type NgtMeshNormalMaterial = NgtMaterial<MeshNormalMaterial, [MeshNormalMaterialParameters]>;
|
|
149
|
-
export type NgtMeshLambertMaterial = NgtMaterial<MeshLambertMaterial, [MeshLambertMaterialParameters]>;
|
|
150
|
-
export type NgtMeshDepthMaterial = NgtMaterial<MeshDepthMaterial, [MeshDepthMaterialParameters]>;
|
|
151
|
-
export type NgtMeshDistanceMaterial = NgtMaterial<MeshDistanceMaterial, [MeshDistanceMaterialParameters]>;
|
|
152
|
-
export type NgtMeshBasicMaterial = NgtMaterial<MeshBasicMaterial, [MeshBasicMaterialParameters]>;
|
|
153
|
-
export type NgtMeshMatcapMaterial = NgtMaterial<MeshMatcapMaterial, [MeshMatcapMaterialParameters]>;
|
|
154
|
-
export type NgtLineDashedMaterial = NgtMaterial<LineDashedMaterial, [LineDashedMaterialParameters]>;
|
|
155
|
-
export type NgtLineBasicMaterial = NgtMaterial<LineBasicMaterial, [LineBasicMaterialParameters]>;
|
|
156
|
-
export type NgtPrimitive = NgtNodeElement<any, any>;
|
|
157
|
-
export type NgtValue = NgtNode<{
|
|
158
|
-
rawValue: any;
|
|
159
|
-
}, {}>;
|
|
160
|
-
export type NgtLightShadow = NgtNode<LightShadow, typeof LightShadow>;
|
|
161
|
-
export type NgtSpotLightShadow = NgtNode<SpotLightShadow, typeof SpotLightShadow>;
|
|
162
|
-
export type NgtDirectionalLightShadow = NgtNode<DirectionalLightShadow, typeof DirectionalLightShadow>;
|
|
163
|
-
export type NgtSpotLight = NgtLight<SpotLight, typeof SpotLight>;
|
|
164
|
-
export type NgtPointLight = NgtLight<PointLight, typeof PointLight>;
|
|
165
|
-
export type NgtRectAreaLight = NgtLight<RectAreaLight, typeof RectAreaLight>;
|
|
166
|
-
export type NgtHemisphereLight = NgtLight<HemisphereLight, typeof HemisphereLight>;
|
|
167
|
-
export type NgtDirectionalLight = NgtLight<DirectionalLight, typeof DirectionalLight>;
|
|
168
|
-
export type NgtAmbientLight = NgtLight<AmbientLight, typeof AmbientLight>;
|
|
169
|
-
export type NgtLightProbe = NgtLight<LightProbe, typeof LightProbe>;
|
|
170
|
-
export type NgtSpotLightHelper = NgtObject3DNode<SpotLightHelper, typeof SpotLightHelper>;
|
|
171
|
-
export type NgtSkeletonHelper = NgtObject3DNode<SkeletonHelper, typeof SkeletonHelper>;
|
|
172
|
-
export type NgtPointLightHelper = NgtObject3DNode<PointLightHelper, typeof PointLightHelper>;
|
|
173
|
-
export type NgtHemisphereLightHelper = NgtObject3DNode<HemisphereLightHelper, typeof HemisphereLightHelper>;
|
|
174
|
-
export type NgtGridHelper = NgtObject3DNode<GridHelper, typeof GridHelper>;
|
|
175
|
-
export type NgtPolarGridHelper = NgtObject3DNode<PolarGridHelper, typeof PolarGridHelper>;
|
|
176
|
-
export type NgtDirectionalLightHelper = NgtObject3DNode<DirectionalLightHelper, typeof DirectionalLightHelper>;
|
|
177
|
-
export type NgtCameraHelper = NgtObject3DNode<CameraHelper, typeof CameraHelper>;
|
|
178
|
-
export type NgtBoxHelper = NgtObject3DNode<BoxHelper, typeof BoxHelper>;
|
|
179
|
-
export type NgtBox3Helper = NgtObject3DNode<Box3Helper, typeof Box3Helper>;
|
|
180
|
-
export type NgtPlaneHelper = NgtObject3DNode<PlaneHelper, typeof PlaneHelper>;
|
|
181
|
-
export type NgtArrowHelper = NgtObject3DNode<ArrowHelper, typeof ArrowHelper>;
|
|
182
|
-
export type NgtAxesHelper = NgtObject3DNode<AxesHelper, typeof AxesHelper>;
|
|
183
|
-
export type NgtTexture = NgtNode<Texture, typeof Texture>;
|
|
184
|
-
export type NgtVideoTexture = NgtNode<VideoTexture, typeof VideoTexture>;
|
|
185
|
-
export type NgtDataTexture = NgtNode<DataTexture, typeof DataTexture>;
|
|
186
|
-
export type NgtData3DTexture = NgtNode<Data3DTexture, typeof Data3DTexture>;
|
|
187
|
-
export type NgtCompressedTexture = NgtNode<CompressedTexture, typeof CompressedTexture>;
|
|
188
|
-
export type NgtCubeTexture = NgtNode<CubeTexture, typeof CubeTexture>;
|
|
189
|
-
export type NgtCanvasTexture = NgtNode<CanvasTexture, typeof CanvasTexture>;
|
|
190
|
-
export type NgtDepthTexture = NgtNode<DepthTexture, typeof DepthTexture>;
|
|
191
|
-
export type NgtRaycaster = NgtNode<Raycaster, typeof Raycaster>;
|
|
192
|
-
export type NgtVector2Node = NgtNode<Vector2, typeof Vector2>;
|
|
193
|
-
export type NgtVector3Node = NgtNode<Vector3, typeof Vector3>;
|
|
194
|
-
export type NgtVector4Node = NgtNode<Vector4, typeof Vector4>;
|
|
195
|
-
export type NgtEulerNode = NgtNode<Euler, typeof Euler>;
|
|
196
|
-
export type NgtMatrix3Node = NgtNode<Matrix3, typeof Matrix3>;
|
|
197
|
-
export type NgtMatrix4Node = NgtNode<Matrix4, typeof Matrix4>;
|
|
198
|
-
export type NgtQuaternionNode = NgtNode<Quaternion, typeof Quaternion>;
|
|
199
|
-
export type NgtBufferAttribute = NgtNode<BufferAttribute, typeof BufferAttribute>;
|
|
200
|
-
export type NgtFloat16BufferAttribute = NgtNode<Float16BufferAttribute, typeof Float16BufferAttribute>;
|
|
201
|
-
export type NgtFloat32BufferAttribute = NgtNode<Float32BufferAttribute, typeof Float32BufferAttribute>;
|
|
202
|
-
export type NgtInt8BufferAttribute = NgtNode<Int8BufferAttribute, typeof Int8BufferAttribute>;
|
|
203
|
-
export type NgtInt16BufferAttribute = NgtNode<Int16BufferAttribute, typeof Int16BufferAttribute>;
|
|
204
|
-
export type NgtInt32BufferAttribute = NgtNode<Int32BufferAttribute, typeof Int32BufferAttribute>;
|
|
205
|
-
export type NgtUint8BufferAttribute = NgtNode<Uint8BufferAttribute, typeof Uint8BufferAttribute>;
|
|
206
|
-
export type NgtUint16BufferAttribute = NgtNode<Uint16BufferAttribute, typeof Uint16BufferAttribute>;
|
|
207
|
-
export type NgtUint32BufferAttribute = NgtNode<Uint32BufferAttribute, typeof Uint32BufferAttribute>;
|
|
208
|
-
export type NgtInstancedBufferAttribute = NgtNode<InstancedBufferAttribute, typeof InstancedBufferAttribute>;
|
|
209
|
-
export type NgtColor = NgtNode<Color, ColorRepresentation>;
|
|
210
|
-
export type NgtFog = NgtNode<Fog, typeof Fog>;
|
|
211
|
-
export type NgtFogExp2 = NgtNode<FogExp2, typeof FogExp2>;
|
|
212
|
-
export type NgtShape = NgtNode<Shape, typeof Shape>;
|
|
213
|
-
export interface ThreeElements {
|
|
72
|
+
export type NgtAllObject3DEventsMap<TInstance> = NgtObject3DEventsMap & NgtNodeEventMap<TInstance>;
|
|
73
|
+
export interface NgtNodeElement<TConstructor extends NgtConstructorRepresentation, TInstance = InstanceType<TConstructor>> {
|
|
74
|
+
attach: string | string[] | NgtAttachFunction;
|
|
75
|
+
dispose?: (() => void) | null;
|
|
76
|
+
__ngt_args__: NgtArguments<TConstructor>;
|
|
77
|
+
}
|
|
78
|
+
export interface NgtNodeEventListener<TConstructor extends NgtConstructorRepresentation, TInstance = InstanceType<TConstructor>, TEventMap extends NgtNodeEventMap<TInstance> = TInstance extends NgtRaycastableRepresentation ? NgtAllObject3DEventsMap<TInstance> : NgtNodeEventMap<TInstance>> {
|
|
79
|
+
addEventListener<TEventKey extends keyof TEventMap>(type: TEventKey, listener: (this: NgtNodeElement<TConstructor, TInstance>, ev: TEventMap[TEventKey]) => any): void;
|
|
80
|
+
removeEventListener<TEventKey extends keyof TEventMap>(type: TEventKey, listener: (this: NgtNodeElement<TConstructor, TInstance>, ev: TEventMap[TEventKey]) => any): void;
|
|
81
|
+
}
|
|
82
|
+
export type NgtElementProperties<TConstructor extends NgtConstructorRepresentation, TInstance = InstanceType<TConstructor>> = Partial<NgtOverwrite<TInstance, NgtMathProperties<TInstance> & NgtNullableRaycast<TInstance>>> & NgtNodeElement<TConstructor, TInstance>;
|
|
83
|
+
export type NgtThreeElement<TConstructor extends NgtConstructorRepresentation> = NgtMutable<NgtElementProperties<TConstructor>> & NgtNodeEventListener<TConstructor>;
|
|
84
|
+
type ThreeExports = typeof THREE;
|
|
85
|
+
type NgtThreeElementsImpl = {
|
|
86
|
+
[K in keyof ThreeExports]: ThreeExports[K] extends NgtConstructorRepresentation ? NgtThreeElement<ThreeExports[K]> : never;
|
|
87
|
+
};
|
|
88
|
+
export type NgtThreeElementsMap = {
|
|
214
89
|
/**
|
|
215
90
|
* @from node_modules/@types/three/src/core/Object3D.d.ts
|
|
216
91
|
*/
|
|
217
|
-
'ngt-object3D':
|
|
92
|
+
'ngt-object3D': Extract<keyof ThreeExports, 'Object3D'>;
|
|
218
93
|
/**
|
|
219
|
-
* @from node_modules/@types/three/src/
|
|
94
|
+
* @from node_modules/@types/three/src/objects/LOD.d.ts
|
|
220
95
|
*/
|
|
221
|
-
'ngt-
|
|
96
|
+
'ngt-lOD': Extract<keyof ThreeExports, 'LOD'>;
|
|
222
97
|
/**
|
|
223
|
-
* @from node_modules/@types/three/src/
|
|
98
|
+
* @from node_modules/@types/three/src/objects/Mesh.d.ts
|
|
224
99
|
*/
|
|
225
|
-
'ngt-
|
|
100
|
+
'ngt-mesh': Extract<keyof ThreeExports, 'Mesh'>;
|
|
226
101
|
/**
|
|
227
|
-
* @from node_modules/@types/three/src/
|
|
102
|
+
* @from node_modules/@types/three/src/objects/InstancedMesh.d.ts
|
|
228
103
|
*/
|
|
229
|
-
'ngt-
|
|
104
|
+
'ngt-instanced-mesh': Extract<keyof ThreeExports, 'InstancedMesh'>;
|
|
230
105
|
/**
|
|
231
|
-
* @from node_modules/@types/three/src/
|
|
106
|
+
* @from node_modules/@types/three/src/materials/Material.d.ts
|
|
232
107
|
*/
|
|
233
|
-
'ngt-
|
|
108
|
+
'ngt-material': Extract<keyof ThreeExports, 'Material'>;
|
|
234
109
|
/**
|
|
235
|
-
* @from node_modules/@types/three/src/
|
|
110
|
+
* @from node_modules/@types/three/src/materials/MeshBasicMaterial.d.ts
|
|
236
111
|
*/
|
|
237
|
-
'ngt-
|
|
112
|
+
'ngt-mesh-basic-material': Extract<keyof ThreeExports, 'MeshBasicMaterial'>;
|
|
238
113
|
/**
|
|
239
|
-
* @from node_modules/@types/three/src/
|
|
114
|
+
* @from node_modules/@types/three/src/materials/MeshPhysicalMaterial.d.ts
|
|
240
115
|
*/
|
|
241
|
-
'ngt-
|
|
116
|
+
'ngt-mesh-physical-material': Extract<keyof ThreeExports, 'MeshPhysicalMaterial'>;
|
|
242
117
|
/**
|
|
243
|
-
* @from node_modules/@types/three/src/
|
|
118
|
+
* @from node_modules/@types/three/src/materials/MeshStandardMaterial.d.ts
|
|
244
119
|
*/
|
|
245
|
-
'ngt-
|
|
120
|
+
'ngt-mesh-standard-material': Extract<keyof ThreeExports, 'MeshStandardMaterial'>;
|
|
246
121
|
/**
|
|
247
|
-
* @from node_modules/@types/three/src/
|
|
122
|
+
* @from node_modules/@types/three/src/materials/MeshToonMaterial.d.ts
|
|
248
123
|
*/
|
|
249
|
-
'ngt-
|
|
124
|
+
'ngt-mesh-toon-material': Extract<keyof ThreeExports, 'MeshToonMaterial'>;
|
|
250
125
|
/**
|
|
251
|
-
* @from node_modules/@types/three/src/
|
|
126
|
+
* @from node_modules/@types/three/src/materials/MeshNormalMaterial.d.ts
|
|
252
127
|
*/
|
|
253
|
-
'ngt-
|
|
128
|
+
'ngt-mesh-normal-material': Extract<keyof ThreeExports, 'MeshNormalMaterial'>;
|
|
254
129
|
/**
|
|
255
|
-
* @from node_modules/@types/three/src/
|
|
130
|
+
* @from node_modules/@types/three/src/materials/MeshDepthMaterial.d.ts
|
|
256
131
|
*/
|
|
257
|
-
'ngt-
|
|
132
|
+
'ngt-mesh-depth-material': Extract<keyof ThreeExports, 'MeshDepthMaterial'>;
|
|
258
133
|
/**
|
|
259
|
-
* @from node_modules/@types/three/src/
|
|
134
|
+
* @from node_modules/@types/three/src/materials/MeshDistanceMaterial.d.ts
|
|
260
135
|
*/
|
|
261
|
-
'ngt-
|
|
136
|
+
'ngt-mesh-distance-material': Extract<keyof ThreeExports, 'MeshDistanceMaterial'>;
|
|
262
137
|
/**
|
|
263
|
-
* @from node_modules/@types/three/src/
|
|
138
|
+
* @from node_modules/@types/three/src/materials/MeshMatcapMaterial.d.ts
|
|
264
139
|
*/
|
|
265
|
-
'ngt-
|
|
140
|
+
'ngt-mesh-matcap-material': Extract<keyof ThreeExports, 'MeshMatcapMaterial'>;
|
|
266
141
|
/**
|
|
267
|
-
* @from node_modules/@types/three/src/
|
|
142
|
+
* @from node_modules/@types/three/src/materials/MeshPhongMaterial.d.ts
|
|
268
143
|
*/
|
|
269
|
-
'ngt-
|
|
144
|
+
'ngt-mesh-phong-material': Extract<keyof ThreeExports, 'MeshPhongMaterial'>;
|
|
270
145
|
/**
|
|
271
|
-
* @from node_modules/@types/three/src/
|
|
146
|
+
* @from node_modules/@types/three/src/materials/LineBasicMaterial.d.ts
|
|
272
147
|
*/
|
|
273
|
-
'ngt-line-
|
|
148
|
+
'ngt-line-basic-material': Extract<keyof ThreeExports, 'LineBasicMaterial'>;
|
|
274
149
|
/**
|
|
275
|
-
* @from node_modules/@types/three/src/
|
|
150
|
+
* @from node_modules/@types/three/src/materials/LineDashedMaterial.d.ts
|
|
276
151
|
*/
|
|
277
|
-
'ngt-
|
|
152
|
+
'ngt-line-dashed-material': Extract<keyof ThreeExports, 'LineDashedMaterial'>;
|
|
278
153
|
/**
|
|
279
|
-
* @from node_modules/@types/three/src/
|
|
154
|
+
* @from node_modules/@types/three/src/materials/MeshLambertMaterial.d.ts
|
|
280
155
|
*/
|
|
281
|
-
'ngt-
|
|
156
|
+
'ngt-mesh-lambert-material': Extract<keyof ThreeExports, 'MeshLambertMaterial'>;
|
|
282
157
|
/**
|
|
283
|
-
* @from node_modules/@types/three/src/
|
|
158
|
+
* @from node_modules/@types/three/src/materials/PointsMaterial.d.ts
|
|
284
159
|
*/
|
|
285
|
-
'ngt-
|
|
160
|
+
'ngt-points-material': Extract<keyof ThreeExports, 'PointsMaterial'>;
|
|
286
161
|
/**
|
|
287
|
-
* @from node_modules/@types/three/src/
|
|
162
|
+
* @from node_modules/@types/three/src/materials/RawShaderMaterial.d.ts
|
|
288
163
|
*/
|
|
289
|
-
'ngt-
|
|
164
|
+
'ngt-raw-shader-material': Extract<keyof ThreeExports, 'RawShaderMaterial'>;
|
|
290
165
|
/**
|
|
291
|
-
* @from node_modules/@types/three/src/
|
|
166
|
+
* @from node_modules/@types/three/src/materials/ShaderMaterial.d.ts
|
|
292
167
|
*/
|
|
293
|
-
'ngt-
|
|
168
|
+
'ngt-shader-material': Extract<keyof ThreeExports, 'ShaderMaterial'>;
|
|
294
169
|
/**
|
|
295
|
-
* @from node_modules/@types/three/src/
|
|
170
|
+
* @from node_modules/@types/three/src/materials/ShadowMaterial.d.ts
|
|
296
171
|
*/
|
|
297
|
-
'ngt-
|
|
172
|
+
'ngt-shadow-material': Extract<keyof ThreeExports, 'ShadowMaterial'>;
|
|
298
173
|
/**
|
|
299
|
-
* @from node_modules/@types/three/src/
|
|
174
|
+
* @from node_modules/@types/three/src/materials/SpriteMaterial.d.ts
|
|
300
175
|
*/
|
|
301
|
-
'ngt-
|
|
176
|
+
'ngt-sprite-material': Extract<keyof ThreeExports, 'SpriteMaterial'>;
|
|
302
177
|
/**
|
|
303
178
|
* @from node_modules/@types/three/src/core/InstancedBufferGeometry.d.ts
|
|
304
179
|
*/
|
|
305
|
-
'ngt-instanced-buffer-geometry':
|
|
180
|
+
'ngt-instanced-buffer-geometry': Extract<keyof ThreeExports, 'InstancedBufferGeometry'>;
|
|
306
181
|
/**
|
|
307
182
|
* @from node_modules/@types/three/src/core/BufferGeometry.d.ts
|
|
308
183
|
*/
|
|
309
|
-
'ngt-buffer-geometry':
|
|
184
|
+
'ngt-buffer-geometry': Extract<keyof ThreeExports, 'BufferGeometry'>;
|
|
310
185
|
/**
|
|
311
|
-
* @from node_modules/@types/three/src/
|
|
186
|
+
* @from node_modules/@types/three/src/core/WireframeGeometry.d.ts
|
|
312
187
|
*/
|
|
313
|
-
'ngt-wireframe-geometry':
|
|
188
|
+
'ngt-wireframe-geometry': Extract<keyof ThreeExports, 'WireframeGeometry'>;
|
|
314
189
|
/**
|
|
315
190
|
* @from node_modules/@types/three/src/geometries/TetrahedronGeometry.d.ts
|
|
316
191
|
*/
|
|
317
|
-
'ngt-tetrahedron-geometry':
|
|
192
|
+
'ngt-tetrahedron-geometry': Extract<keyof ThreeExports, 'TetrahedronGeometry'>;
|
|
318
193
|
/**
|
|
319
194
|
* @from node_modules/@types/three/src/geometries/OctahedronGeometry.d.ts
|
|
320
195
|
*/
|
|
321
|
-
'ngt-octahedron-geometry':
|
|
196
|
+
'ngt-octahedron-geometry': Extract<keyof ThreeExports, 'OctahedronGeometry'>;
|
|
322
197
|
/**
|
|
323
198
|
* @from node_modules/@types/three/src/geometries/IcosahedronGeometry.d.ts
|
|
324
199
|
*/
|
|
325
|
-
'ngt-icosahedron-geometry':
|
|
200
|
+
'ngt-icosahedron-geometry': Extract<keyof ThreeExports, 'IcosahedronGeometry'>;
|
|
326
201
|
/**
|
|
327
202
|
* @from node_modules/@types/three/src/geometries/PolyhedronGeometry.d.ts
|
|
328
203
|
*/
|
|
329
|
-
'ngt-polyhedron-geometry':
|
|
204
|
+
'ngt-polyhedron-geometry': Extract<keyof ThreeExports, 'PolyhedronGeometry'>;
|
|
330
205
|
/**
|
|
331
206
|
* @from node_modules/@types/three/src/geometries/DodecahedronGeometry.d.ts
|
|
332
207
|
*/
|
|
333
|
-
'ngt-dodecahedron-geometry':
|
|
208
|
+
'ngt-dodecahedron-geometry': Extract<keyof ThreeExports, 'DodecahedronGeometry'>;
|
|
334
209
|
/**
|
|
335
210
|
* @from node_modules/@types/three/src/geometries/TubeGeometry.d.ts
|
|
336
211
|
*/
|
|
337
|
-
'ngt-tube-geometry':
|
|
212
|
+
'ngt-tube-geometry': Extract<keyof ThreeExports, 'TubeGeometry'>;
|
|
338
213
|
/**
|
|
339
214
|
* @from node_modules/@types/three/src/geometries/TorusKnotGeometry.d.ts
|
|
340
215
|
*/
|
|
341
|
-
'ngt-torus-knot-geometry':
|
|
216
|
+
'ngt-torus-knot-geometry': Extract<keyof ThreeExports, 'TorusKnotGeometry'>;
|
|
342
217
|
/**
|
|
343
218
|
* @from node_modules/@types/three/src/geometries/TorusGeometry.d.ts
|
|
344
219
|
*/
|
|
345
|
-
'ngt-torus-geometry':
|
|
220
|
+
'ngt-torus-geometry': Extract<keyof ThreeExports, 'TorusGeometry'>;
|
|
346
221
|
/**
|
|
347
222
|
* @from node_modules/@types/three/src/geometries/SphereGeometry.d.ts
|
|
348
223
|
*/
|
|
349
|
-
'ngt-sphere-geometry':
|
|
224
|
+
'ngt-sphere-geometry': Extract<keyof ThreeExports, 'SphereGeometry'>;
|
|
350
225
|
/**
|
|
351
226
|
* @from node_modules/@types/three/src/geometries/RingGeometry.d.ts
|
|
352
227
|
*/
|
|
353
|
-
'ngt-ring-geometry':
|
|
228
|
+
'ngt-ring-geometry': Extract<keyof ThreeExports, 'RingGeometry'>;
|
|
354
229
|
/**
|
|
355
230
|
* @from node_modules/@types/three/src/geometries/PlaneGeometry.d.ts
|
|
356
231
|
*/
|
|
357
|
-
'ngt-plane-geometry':
|
|
232
|
+
'ngt-plane-geometry': Extract<keyof ThreeExports, 'PlaneGeometry'>;
|
|
358
233
|
/**
|
|
359
234
|
* @from node_modules/@types/three/src/geometries/LatheGeometry.d.ts
|
|
360
235
|
*/
|
|
361
|
-
'ngt-lathe-geometry':
|
|
362
|
-
/**
|
|
363
|
-
* @from node_modules/@types/three/src/geometries/ShapeGeometry.d.ts
|
|
364
|
-
*/
|
|
365
|
-
'ngt-shape-geometry': NgtShapeGeometry;
|
|
366
|
-
/**
|
|
367
|
-
* @from node_modules/@types/three/src/geometries/ExtrudeGeometry.d.ts
|
|
368
|
-
*/
|
|
369
|
-
'ngt-extrude-geometry': NgtExtrudeGeometry;
|
|
370
|
-
/**
|
|
371
|
-
* @from node_modules/@types/three/src/geometries/EdgesGeometry.d.ts
|
|
372
|
-
*/
|
|
373
|
-
'ngt-edges-geometry': NgtEdgesGeometry;
|
|
374
|
-
/**
|
|
375
|
-
* @from node_modules/@types/three/src/geometries/ConeGeometry.d.ts
|
|
376
|
-
*/
|
|
377
|
-
'ngt-cone-geometry': NgtConeGeometry;
|
|
378
|
-
/**
|
|
379
|
-
* @from node_modules/@types/three/src/geometries/CylinderGeometry.d.ts
|
|
380
|
-
*/
|
|
381
|
-
'ngt-cylinder-geometry': NgtCylinderGeometry;
|
|
382
|
-
/**
|
|
383
|
-
* @from node_modules/@types/three/src/geometries/CircleGeometry.d.ts
|
|
384
|
-
*/
|
|
385
|
-
'ngt-circle-geometry': NgtCircleGeometry;
|
|
386
|
-
/**
|
|
387
|
-
* @from node_modules/@types/three/src/geometries/BoxGeometry.d.ts
|
|
388
|
-
*/
|
|
389
|
-
'ngt-box-geometry': NgtBoxGeometry;
|
|
390
|
-
/**
|
|
391
|
-
* @from node_modules/@types/three/src/geometries/CapsuleGeometry.d.ts
|
|
392
|
-
*/
|
|
393
|
-
'ngt-capsule-geometry': NgtCapsuleGeometry;
|
|
394
|
-
/**
|
|
395
|
-
* @from node_modules/@types/three/src/materials/ShadowMaterial.d.ts
|
|
396
|
-
*/
|
|
397
|
-
'ngt-shadow-material': NgtShadowMaterial;
|
|
398
|
-
/**
|
|
399
|
-
* @from node_modules/@types/three/src/materials/SpriteMaterial.d.ts
|
|
400
|
-
*/
|
|
401
|
-
'ngt-sprite-material': NgtSpriteMaterial;
|
|
402
|
-
/**
|
|
403
|
-
* @from node_modules/@types/three/src/materials/RawShaderMaterial.d.ts
|
|
404
|
-
*/
|
|
405
|
-
'ngt-raw-shader-material': NgtRawShaderMaterial;
|
|
406
|
-
/**
|
|
407
|
-
* @from node_modules/@types/three/src/materials/ShaderMaterial.d.ts
|
|
408
|
-
*/
|
|
409
|
-
'ngt-shader-material': NgtShaderMaterial;
|
|
236
|
+
'ngt-lathe-geometry': Extract<keyof ThreeExports, 'LatheGeometry'>;
|
|
410
237
|
/**
|
|
411
|
-
* @from node_modules/@types/three/src/
|
|
412
|
-
*/
|
|
413
|
-
'ngt-points-material': NgtPointsMaterial;
|
|
414
|
-
/**
|
|
415
|
-
* @from node_modules/@types/three/src/materials/MeshPhysicalMaterial.d.ts
|
|
238
|
+
* @from node_modules/@types/three/src/geometries/LineSegments.d.ts
|
|
416
239
|
*/
|
|
417
|
-
'ngt-
|
|
240
|
+
'ngt-line-segments': Extract<keyof ThreeExports, 'LineSegments'>;
|
|
418
241
|
/**
|
|
419
|
-
* @from node_modules/@types/three/src/
|
|
420
|
-
*/
|
|
421
|
-
'ngt-mesh-standard-material': NgtMeshStandardMaterial;
|
|
422
|
-
/**
|
|
423
|
-
* @from node_modules/@types/three/src/materials/MeshPhongMaterial.d.ts
|
|
242
|
+
* @from node_modules/@types/three/src/geometries/LineLoop.d.ts
|
|
424
243
|
*/
|
|
425
|
-
'ngt-
|
|
244
|
+
'ngt-line-loop': Extract<keyof ThreeExports, 'LineLoop'>;
|
|
426
245
|
/**
|
|
427
|
-
* @from node_modules/@types/three/src/
|
|
246
|
+
* @from node_modules/@types/three/src/geometries/Points.d.ts
|
|
428
247
|
*/
|
|
429
|
-
'ngt-
|
|
248
|
+
'ngt-points': Extract<keyof ThreeExports, 'Points'>;
|
|
430
249
|
/**
|
|
431
|
-
* @from node_modules/@types/three/src/
|
|
250
|
+
* @from node_modules/@types/three/src/objects/Group.d.ts
|
|
432
251
|
*/
|
|
433
|
-
'ngt-
|
|
252
|
+
'ngt-group': Extract<keyof ThreeExports, 'Group'>;
|
|
434
253
|
/**
|
|
435
|
-
* @from node_modules/@types/three/src/
|
|
254
|
+
* @from node_modules/@types/three/src/cameras/Camera.d.ts
|
|
436
255
|
*/
|
|
437
|
-
'ngt-
|
|
256
|
+
'ngt-camera': Extract<keyof ThreeExports, 'Camera'>;
|
|
438
257
|
/**
|
|
439
|
-
* @from node_modules/@types/three/src/
|
|
258
|
+
* @from node_modules/@types/three/src/cameras/PerspectiveCamera.d.ts
|
|
440
259
|
*/
|
|
441
|
-
'ngt-
|
|
260
|
+
'ngt-perspective-camera': Extract<keyof ThreeExports, 'PerspectiveCamera'>;
|
|
442
261
|
/**
|
|
443
|
-
* @from node_modules/@types/three/src/
|
|
262
|
+
* @from node_modules/@types/three/src/cameras/OrthographicCamera.d.ts
|
|
444
263
|
*/
|
|
445
|
-
'ngt-
|
|
264
|
+
'ngt-orthographic-camera': Extract<keyof ThreeExports, 'OrthographicCamera'>;
|
|
446
265
|
/**
|
|
447
|
-
* @from node_modules/@types/three/src/
|
|
266
|
+
* @from node_modules/@types/three/src/cameras/CubeCamera.d.ts
|
|
448
267
|
*/
|
|
449
|
-
'ngt-
|
|
268
|
+
'ngt-cube-camera': Extract<keyof ThreeExports, 'CubeCamera'>;
|
|
450
269
|
/**
|
|
451
|
-
* @from node_modules/@types/three/src/
|
|
270
|
+
* @from node_modules/@types/three/src/cameras/ArrayCamera.d.ts
|
|
452
271
|
*/
|
|
453
|
-
'ngt-
|
|
272
|
+
'ngt-array-camera': Extract<keyof ThreeExports, 'ArrayCamera'>;
|
|
454
273
|
/**
|
|
455
|
-
* @from node_modules/@types/three/src/
|
|
274
|
+
* @from node_modules/@types/three/src/lights/LightShadow.d.ts
|
|
456
275
|
*/
|
|
457
|
-
'ngt-
|
|
276
|
+
'ngt-light-shadow': Extract<keyof ThreeExports, 'LightShadow'>;
|
|
458
277
|
/**
|
|
459
|
-
* @from node_modules/@types/three/src/
|
|
278
|
+
* @from node_modules/@types/three/src/lights/SpotLightShadow.d.ts
|
|
460
279
|
*/
|
|
461
|
-
'ngt-
|
|
462
|
-
'ngt-primitive': NgtPrimitive;
|
|
463
|
-
'ngt-value': NgtValue;
|
|
280
|
+
'ngt-spot-light-shadow': Extract<keyof ThreeExports, 'SpotLightShadow'>;
|
|
464
281
|
/**
|
|
465
|
-
* @from node_modules/@types/three/src/lights/
|
|
282
|
+
* @from node_modules/@types/three/src/lights/DirectionalLightShadow.d.ts
|
|
466
283
|
*/
|
|
467
|
-
'ngt-
|
|
284
|
+
'ngt-directional-light-shadow': Extract<keyof ThreeExports, 'DirectionalLightShadow'>;
|
|
468
285
|
/**
|
|
469
286
|
* @from node_modules/@types/three/src/lights/SpotLight.d.ts
|
|
470
287
|
*/
|
|
471
|
-
'ngt-spot-light':
|
|
288
|
+
'ngt-spot-light': Extract<keyof ThreeExports, 'SpotLight'>;
|
|
472
289
|
/**
|
|
473
290
|
* @from node_modules/@types/three/src/lights/PointLight.d.ts
|
|
474
291
|
*/
|
|
475
|
-
'ngt-point-light':
|
|
292
|
+
'ngt-point-light': Extract<keyof ThreeExports, 'PointLight'>;
|
|
476
293
|
/**
|
|
477
294
|
* @from node_modules/@types/three/src/lights/RectAreaLight.d.ts
|
|
478
295
|
*/
|
|
479
|
-
'ngt-rect-area-light':
|
|
296
|
+
'ngt-rect-area-light': Extract<keyof ThreeExports, 'RectAreaLight'>;
|
|
480
297
|
/**
|
|
481
298
|
* @from node_modules/@types/three/src/lights/HemisphereLight.d.ts
|
|
482
299
|
*/
|
|
483
|
-
'ngt-hemisphere-light':
|
|
484
|
-
/**
|
|
485
|
-
* @from node_modules/@types/three/src/lights/DirectionalLightShadow.d.ts
|
|
486
|
-
*/
|
|
487
|
-
'ngt-directional-light-shadow': NgtDirectionalLightShadow;
|
|
300
|
+
'ngt-hemisphere-light': Extract<keyof ThreeExports, 'HemisphereLight'>;
|
|
488
301
|
/**
|
|
489
302
|
* @from node_modules/@types/three/src/lights/DirectionalLight.d.ts
|
|
490
303
|
*/
|
|
491
|
-
'ngt-directional-light':
|
|
304
|
+
'ngt-directional-light': Extract<keyof ThreeExports, 'DirectionalLight'>;
|
|
492
305
|
/**
|
|
493
306
|
* @from node_modules/@types/three/src/lights/AmbientLight.d.ts
|
|
494
307
|
*/
|
|
495
|
-
'ngt-ambient-light':
|
|
496
|
-
/**
|
|
497
|
-
* @from node_modules/@types/three/src/lights/LightShadow
|
|
498
|
-
*/
|
|
499
|
-
'ngt-light-shadow': NgtLightShadow;
|
|
308
|
+
'ngt-ambient-light': Extract<keyof ThreeExports, 'AmbientLight'>;
|
|
500
309
|
/**
|
|
501
310
|
* @from node_modules/@types/three/src/lights/LightProbe.d.ts
|
|
502
311
|
*/
|
|
503
|
-
'ngt-light-probe':
|
|
312
|
+
'ngt-light-probe': Extract<keyof ThreeExports, 'LightProbe'>;
|
|
504
313
|
/**
|
|
505
314
|
* @from node_modules/@types/three/src/helpers/SpotLightHelper.d.ts
|
|
506
315
|
*/
|
|
507
|
-
'ngt-spot-light-helper':
|
|
316
|
+
'ngt-spot-light-helper': Extract<keyof ThreeExports, 'SpotLightHelper'>;
|
|
508
317
|
/**
|
|
509
318
|
* @from node_modules/@types/three/src/helpers/SkeletonHelper.d.ts
|
|
510
319
|
*/
|
|
511
|
-
'ngt-skeleton-helper':
|
|
320
|
+
'ngt-skeleton-helper': Extract<keyof ThreeExports, 'SkeletonHelper'>;
|
|
512
321
|
/**
|
|
513
322
|
* @from node_modules/@types/three/src/helpers/PointLightHelper.d.ts
|
|
514
323
|
*/
|
|
515
|
-
'ngt-point-light-helper':
|
|
324
|
+
'ngt-point-light-helper': Extract<keyof ThreeExports, 'PointLightHelper'>;
|
|
516
325
|
/**
|
|
517
326
|
* @from node_modules/@types/three/src/helpers/HemisphereLightHelper.d.ts
|
|
518
327
|
*/
|
|
519
|
-
'ngt-hemisphere-light-helper':
|
|
328
|
+
'ngt-hemisphere-light-helper': Extract<keyof ThreeExports, 'HemisphereLightHelper'>;
|
|
520
329
|
/**
|
|
521
330
|
* @from node_modules/@types/three/src/helpers/GridHelper.d.ts
|
|
522
331
|
*/
|
|
523
|
-
'ngt-grid-helper':
|
|
332
|
+
'ngt-grid-helper': Extract<keyof ThreeExports, 'GridHelper'>;
|
|
524
333
|
/**
|
|
525
334
|
* @from node_modules/@types/three/src/helpers/PolarGridHelper.d.ts
|
|
526
335
|
*/
|
|
527
|
-
'ngt-polar-grid-helper':
|
|
336
|
+
'ngt-polar-grid-helper': Extract<keyof ThreeExports, 'PolarGridHelper'>;
|
|
528
337
|
/**
|
|
529
338
|
* @from node_modules/@types/three/src/helpers/DirectionalLightHelper.d.ts
|
|
530
339
|
*/
|
|
531
|
-
'ngt-directional-light-helper':
|
|
340
|
+
'ngt-directional-light-helper': Extract<keyof ThreeExports, 'DirectionalLightHelper'>;
|
|
532
341
|
/**
|
|
533
342
|
* @from node_modules/@types/three/src/helpers/CameraHelper.d.ts
|
|
534
343
|
*/
|
|
535
|
-
'ngt-camera-helper':
|
|
344
|
+
'ngt-camera-helper': Extract<keyof ThreeExports, 'CameraHelper'>;
|
|
536
345
|
/**
|
|
537
346
|
* @from node_modules/@types/three/src/helpers/BoxHelper.d.ts
|
|
538
347
|
*/
|
|
539
|
-
'ngt-box-helper':
|
|
348
|
+
'ngt-box-helper': Extract<keyof ThreeExports, 'BoxHelper'>;
|
|
540
349
|
/**
|
|
541
350
|
* @from node_modules/@types/three/src/helpers/Box3Helper.d.ts
|
|
542
351
|
*/
|
|
543
|
-
'ngt-box3-helper':
|
|
352
|
+
'ngt-box3-helper': Extract<keyof ThreeExports, 'Box3Helper'>;
|
|
544
353
|
/**
|
|
545
354
|
* @from node_modules/@types/three/src/helpers/PlaneHelper.d.ts
|
|
546
355
|
*/
|
|
547
|
-
'ngt-plane-helper':
|
|
356
|
+
'ngt-plane-helper': Extract<keyof ThreeExports, 'PlaneHelper'>;
|
|
548
357
|
/**
|
|
549
358
|
* @from node_modules/@types/three/src/helpers/ArrowHelper.d.ts
|
|
550
359
|
*/
|
|
551
|
-
'ngt-arrow-helper':
|
|
360
|
+
'ngt-arrow-helper': Extract<keyof ThreeExports, 'ArrowHelper'>;
|
|
552
361
|
/**
|
|
553
362
|
* @from node_modules/@types/three/src/helpers/AxesHelper.d.ts
|
|
554
363
|
*/
|
|
555
|
-
'ngt-axes-helper':
|
|
364
|
+
'ngt-axes-helper': Extract<keyof ThreeExports, 'AxesHelper'>;
|
|
365
|
+
/**
|
|
366
|
+
* @from node_modules/@types/three/src/helpers/Audio.d.ts
|
|
367
|
+
*/
|
|
368
|
+
'ngt-audio': Extract<keyof ThreeExports, 'Audio'>;
|
|
369
|
+
/**
|
|
370
|
+
* @from node_modules/@types/three/src/helpers/PositionalAudio.d.ts
|
|
371
|
+
*/
|
|
372
|
+
'ngt-positional-audio': Extract<keyof ThreeExports, 'PositionalAudio'>;
|
|
373
|
+
/**
|
|
374
|
+
* @from node_modules/@types/three/src/helpers/AudioListener.d.ts
|
|
375
|
+
*/
|
|
376
|
+
'ngt-audio-listener': Extract<keyof ThreeExports, 'AudioListener'>;
|
|
556
377
|
/**
|
|
557
378
|
* @from node_modules/@types/three/src/textures/Texture.d.ts
|
|
558
379
|
*/
|
|
559
|
-
'ngt-texture':
|
|
380
|
+
'ngt-texture': Extract<keyof ThreeExports, 'Texture'>;
|
|
381
|
+
/**
|
|
382
|
+
* @from node_modules/@types/three/src/textures/CompressedTexture.d.ts
|
|
383
|
+
*/
|
|
384
|
+
'ngt-compressed-texture': Extract<keyof ThreeExports, 'CompressedTexture'>;
|
|
560
385
|
/**
|
|
561
386
|
* @from node_modules/@types/three/src/textures/VideoTexture.d.ts
|
|
562
387
|
*/
|
|
563
|
-
'ngt-video-texture':
|
|
388
|
+
'ngt-video-texture': Extract<keyof ThreeExports, 'VideoTexture'>;
|
|
564
389
|
/**
|
|
565
390
|
* @from node_modules/@types/three/src/textures/DataTexture.d.ts
|
|
566
391
|
*/
|
|
567
|
-
'ngt-data-texture':
|
|
392
|
+
'ngt-data-texture': Extract<keyof ThreeExports, 'DataTexture'>;
|
|
568
393
|
/**
|
|
569
394
|
* @from node_modules/@types/three/src/textures/Data3DTexture.d.ts
|
|
570
395
|
*/
|
|
571
|
-
'ngt-data3D-texture':
|
|
572
|
-
/**
|
|
573
|
-
* @from node_modules/@types/three/src/textures/CompressedTexture.d.ts
|
|
574
|
-
*/
|
|
575
|
-
'ngt-compressed-texture': NgtCompressedTexture;
|
|
396
|
+
'ngt-data3D-texture': Extract<keyof ThreeExports, 'Data3DTexture'>;
|
|
576
397
|
/**
|
|
577
398
|
* @from node_modules/@types/three/src/textures/CubeTexture.d.ts
|
|
578
399
|
*/
|
|
579
|
-
'ngt-cube-texture':
|
|
400
|
+
'ngt-cube-texture': Extract<keyof ThreeExports, 'CubeTexture'>;
|
|
580
401
|
/**
|
|
581
402
|
* @from node_modules/@types/three/src/textures/CanvasTexture.d.ts
|
|
582
403
|
*/
|
|
583
|
-
'ngt-canvas-texture':
|
|
404
|
+
'ngt-canvas-texture': Extract<keyof ThreeExports, 'CanvasTexture'>;
|
|
584
405
|
/**
|
|
585
406
|
* @from node_modules/@types/three/src/textures/DepthTexture.d.ts
|
|
586
407
|
*/
|
|
587
|
-
'ngt-depth-texture':
|
|
408
|
+
'ngt-depth-texture': Extract<keyof ThreeExports, 'DepthTexture'>;
|
|
588
409
|
/**
|
|
589
410
|
* @from node_modules/@types/three/src/core/Raycaster.d.ts
|
|
590
411
|
*/
|
|
591
|
-
'ngt-raycaster':
|
|
412
|
+
'ngt-raycaster': Extract<keyof ThreeExports, 'Raycaster'>;
|
|
592
413
|
/**
|
|
593
414
|
* @from node_modules/@types/three/src/math/Vector2.d.ts
|
|
594
415
|
*/
|
|
595
|
-
'ngt-vector2':
|
|
416
|
+
'ngt-vector2': Extract<keyof ThreeExports, 'Vector2'>;
|
|
596
417
|
/**
|
|
597
418
|
* @from node_modules/@types/three/src/math/Vector3.d.ts
|
|
598
419
|
*/
|
|
599
|
-
'ngt-vector3':
|
|
420
|
+
'ngt-vector3': Extract<keyof ThreeExports, 'Vector3'>;
|
|
600
421
|
/**
|
|
601
422
|
* @from node_modules/@types/three/src/math/Vector4.d.ts
|
|
602
423
|
*/
|
|
603
|
-
'ngt-vector4':
|
|
424
|
+
'ngt-vector4': Extract<keyof ThreeExports, 'Vector4'>;
|
|
604
425
|
/**
|
|
605
426
|
* @from node_modules/@types/three/src/math/Euler.d.ts
|
|
606
427
|
*/
|
|
607
|
-
'ngt-euler':
|
|
428
|
+
'ngt-euler': Extract<keyof ThreeExports, 'Euler'>;
|
|
608
429
|
/**
|
|
609
430
|
* @from node_modules/@types/three/src/math/Matrix3.d.ts
|
|
610
431
|
*/
|
|
611
|
-
'ngt-matrix3':
|
|
432
|
+
'ngt-matrix3': Extract<keyof ThreeExports, 'Matrix3'>;
|
|
612
433
|
/**
|
|
613
434
|
* @from node_modules/@types/three/src/math/Matrix4.d.ts
|
|
614
435
|
*/
|
|
615
|
-
'ngt-matrix4':
|
|
436
|
+
'ngt-matrix4': Extract<keyof ThreeExports, 'Matrix4'>;
|
|
616
437
|
/**
|
|
617
438
|
* @from node_modules/@types/three/src/math/Quaternion.d.ts
|
|
618
439
|
*/
|
|
619
|
-
'ngt-quaternion':
|
|
440
|
+
'ngt-quaternion': Extract<keyof ThreeExports, 'Quaternion'>;
|
|
620
441
|
/**
|
|
621
442
|
* @from node_modules/@types/three/src/core/BufferAttribute.d.ts
|
|
622
443
|
*/
|
|
623
|
-
'ngt-buffer-attribute':
|
|
444
|
+
'ngt-buffer-attribute': Extract<keyof ThreeExports, 'BufferAttribute'>;
|
|
624
445
|
/**
|
|
625
|
-
* @from node_modules/@types/three/src/core/
|
|
626
|
-
* @symbol Float16BufferAttribute
|
|
446
|
+
* @from node_modules/@types/three/src/core/Float16BufferAttribute.d.ts
|
|
627
447
|
*/
|
|
628
|
-
'ngt-float16-buffer-attribute':
|
|
448
|
+
'ngt-float16-buffer-attribute': Extract<keyof ThreeExports, 'Float16BufferAttribute'>;
|
|
629
449
|
/**
|
|
630
|
-
* @from node_modules/@types/three/src/core/
|
|
631
|
-
* @symbol Float32BufferAttribute
|
|
450
|
+
* @from node_modules/@types/three/src/core/Float32BufferAttribute.d.ts
|
|
632
451
|
*/
|
|
633
|
-
'ngt-float32-buffer-attribute':
|
|
452
|
+
'ngt-float32-buffer-attribute': Extract<keyof ThreeExports, 'Float32BufferAttribute'>;
|
|
634
453
|
/**
|
|
635
|
-
* @from node_modules/@types/three/src/core/
|
|
636
|
-
* @symbol Int8BufferAttribute
|
|
454
|
+
* @from node_modules/@types/three/src/core/Int8BufferAttribute.d.ts
|
|
637
455
|
*/
|
|
638
|
-
'ngt-int8-buffer-attribute':
|
|
456
|
+
'ngt-int8-buffer-attribute': Extract<keyof ThreeExports, 'Int8BufferAttribute'>;
|
|
639
457
|
/**
|
|
640
|
-
* @from node_modules/@types/three/src/core/
|
|
641
|
-
* @symbol Int16BufferAttribute
|
|
458
|
+
* @from node_modules/@types/three/src/core/Int16BufferAttribute.d.ts
|
|
642
459
|
*/
|
|
643
|
-
'ngt-int16-buffer-attribute':
|
|
460
|
+
'ngt-int16-buffer-attribute': Extract<keyof ThreeExports, 'Int16BufferAttribute'>;
|
|
644
461
|
/**
|
|
645
|
-
* @from node_modules/@types/three/src/core/
|
|
646
|
-
* @symbol Int32BufferAttribute
|
|
462
|
+
* @from node_modules/@types/three/src/core/Int32BufferAttribute.d.ts
|
|
647
463
|
*/
|
|
648
|
-
'ngt-int32-buffer-attribute':
|
|
464
|
+
'ngt-int32-buffer-attribute': Extract<keyof ThreeExports, 'Int32BufferAttribute'>;
|
|
649
465
|
/**
|
|
650
|
-
* @from node_modules/@types/three/src/core/
|
|
651
|
-
* @symbol Uint8BufferAttribute
|
|
466
|
+
* @from node_modules/@types/three/src/core/Uint8BufferAttribute.d.ts
|
|
652
467
|
*/
|
|
653
|
-
'ngt-unit8-buffer-attribute':
|
|
468
|
+
'ngt-unit8-buffer-attribute': Extract<keyof ThreeExports, 'Uint8BufferAttribute'>;
|
|
654
469
|
/**
|
|
655
|
-
* @from node_modules/@types/three/src/core/
|
|
656
|
-
* @symbol Uint16BufferAttribute
|
|
470
|
+
* @from node_modules/@types/three/src/core/Uint16BufferAttribute.d.ts
|
|
657
471
|
*/
|
|
658
|
-
'ngt-unit16-buffer-attribute':
|
|
472
|
+
'ngt-unit16-buffer-attribute': Extract<keyof ThreeExports, 'Uint16BufferAttribute'>;
|
|
659
473
|
/**
|
|
660
|
-
* @from node_modules/@types/three/src/core/
|
|
661
|
-
* @symbol Uint32BufferAttribute
|
|
474
|
+
* @from node_modules/@types/three/src/core/Uint32BufferAttribute.d.ts
|
|
662
475
|
*/
|
|
663
|
-
'ngt-unit32-buffer-attribute':
|
|
476
|
+
'ngt-unit32-buffer-attribute': Extract<keyof ThreeExports, 'Uint32BufferAttribute'>;
|
|
664
477
|
/**
|
|
665
478
|
* @from node_modules/@types/three/src/core/InstancedBufferAttribute.d.ts
|
|
666
479
|
*/
|
|
667
|
-
'ngt-instanced-buffer-attribute':
|
|
480
|
+
'ngt-instanced-buffer-attribute': Extract<keyof ThreeExports, 'InstancedBufferAttribute'>;
|
|
668
481
|
/**
|
|
669
482
|
* @from node_modules/@types/three/src/math/Color.d.ts
|
|
670
483
|
*/
|
|
671
|
-
'ngt-color':
|
|
484
|
+
'ngt-color': Extract<keyof ThreeExports, 'Color'>;
|
|
672
485
|
/**
|
|
673
486
|
* @from node_modules/@types/three/src/scenes/Fog.d.ts
|
|
674
487
|
*/
|
|
675
|
-
'ngt-fog':
|
|
488
|
+
'ngt-fog': Extract<keyof ThreeExports, 'Fog'>;
|
|
676
489
|
/**
|
|
677
490
|
* @from node_modules/@types/three/src/scenes/FogExp2.d.ts
|
|
678
491
|
*/
|
|
679
|
-
'ngt-fog-exp2':
|
|
492
|
+
'ngt-fog-exp2': Extract<keyof ThreeExports, 'FogExp2'>;
|
|
680
493
|
/**
|
|
681
494
|
* @from node_modules/@types/three/src/extras/core/Shape.d.ts
|
|
682
495
|
*/
|
|
683
|
-
'ngt-shape':
|
|
684
|
-
}
|
|
496
|
+
'ngt-shape': Extract<keyof ThreeExports, 'Shape'>;
|
|
497
|
+
};
|
|
498
|
+
export type NgtThreeElements = {
|
|
499
|
+
[NgtKey in keyof NgtThreeElementsMap]: NgtThreeElementsImpl[NgtThreeElementsMap[NgtKey]];
|
|
500
|
+
} & {
|
|
501
|
+
'ngt-primitive': NgtThreeElement<any>;
|
|
502
|
+
'ngt-value': NgtThreeElement<any> & {
|
|
503
|
+
rawValue: any;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
685
506
|
declare global {
|
|
686
|
-
interface HTMLElementTagNameMap extends
|
|
507
|
+
interface HTMLElementTagNameMap extends NgtThreeElements {
|
|
687
508
|
}
|
|
688
|
-
interface HTMLElementEventMap extends NgtAllObject3DEventsMap {
|
|
509
|
+
interface HTMLElementEventMap extends NgtAllObject3DEventsMap<any> {
|
|
689
510
|
}
|
|
690
511
|
}
|
|
691
512
|
export {};
|