angular-three 2.0.0-beta.31 → 2.0.0-beta.310

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