angular-three 2.0.0-beta.9 → 2.1.0

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