@types/three 0.157.0 → 0.157.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. three/README.md +2 -3
  2. three/index.d.ts +0 -6
  3. three/package.json +20 -20
  4. three/examples/jsm/animation/CCDIKSolver.d.ts +0 -30
  5. three/examples/jsm/animation/MMDAnimationHelper.d.ts +0 -105
  6. three/examples/jsm/animation/MMDPhysics.d.ts +0 -124
  7. three/examples/jsm/cameras/CinematicCamera.d.ts +0 -41
  8. three/examples/jsm/capabilities/WebGL.d.ts +0 -9
  9. three/examples/jsm/controls/FirstPersonControls.d.ts +0 -31
  10. three/examples/jsm/controls/OrbitControls.d.ts +0 -286
  11. three/examples/jsm/controls/TrackballControls.d.ts +0 -58
  12. three/examples/jsm/effects/OutlineEffect.d.ts +0 -36
  13. three/examples/jsm/environments/RoomEnvironment.d.ts +0 -6
  14. three/examples/jsm/exporters/PLYExporter.d.ts +0 -30
  15. three/examples/jsm/exporters/STLExporter.d.ts +0 -21
  16. three/examples/jsm/geometries/TextGeometry.d.ts +0 -115
  17. three/examples/jsm/helpers/RectAreaLightHelper.d.ts +0 -10
  18. three/examples/jsm/helpers/ViewHelper.d.ts +0 -15
  19. three/examples/jsm/libs/fflate.module.d.ts +0 -1
  20. three/examples/jsm/libs/lil-gui.module.min.d.ts +0 -609
  21. three/examples/jsm/libs/tween.module.d.ts +0 -219
  22. three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +0 -3
  23. three/examples/jsm/lines/Line2.d.ts +0 -11
  24. three/examples/jsm/lines/LineGeometry.d.ts +0 -10
  25. three/examples/jsm/lines/LineMaterial.d.ts +0 -31
  26. three/examples/jsm/lines/LineSegments2.d.ts +0 -14
  27. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +0 -23
  28. three/examples/jsm/loaders/DDSLoader.d.ts +0 -16
  29. three/examples/jsm/loaders/DRACOLoader.d.ts +0 -19
  30. three/examples/jsm/loaders/FontLoader.d.ts +0 -27
  31. three/examples/jsm/loaders/GLTFLoader.d.ts +0 -147
  32. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +0 -18
  33. three/examples/jsm/loaders/KTX2Loader.d.ts +0 -16
  34. three/examples/jsm/loaders/LDrawLoader.d.ts +0 -19
  35. three/examples/jsm/loaders/MMDLoader.d.ts +0 -56
  36. three/examples/jsm/loaders/MTLLoader.d.ts +0 -104
  37. three/examples/jsm/loaders/OBJLoader.d.ts +0 -10
  38. three/examples/jsm/loaders/PCDLoader.d.ts +0 -8
  39. three/examples/jsm/loaders/RGBELoader.d.ts +0 -19
  40. three/examples/jsm/loaders/RGBMLoader.d.ts +0 -32
  41. three/examples/jsm/loaders/SVGLoader.d.ts +0 -68
  42. three/examples/jsm/loaders/TGALoader.d.ts +0 -7
  43. three/examples/jsm/loaders/TTFLoader.d.ts +0 -8
  44. three/examples/jsm/loaders/USDZLoader.d.ts +0 -11
  45. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -17
  46. three/examples/jsm/modifiers/TessellateModifier.d.ts +0 -9
  47. three/examples/jsm/nodes/Nodes.d.ts +0 -149
  48. three/examples/jsm/nodes/accessors/BitangentNode.d.ts +0 -18
  49. three/examples/jsm/nodes/accessors/BufferNode.d.ts +0 -11
  50. three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -12
  51. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +0 -13
  52. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +0 -9
  53. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +0 -23
  54. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +0 -6
  55. three/examples/jsm/nodes/accessors/ModelNode.d.ts +0 -9
  56. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +0 -6
  57. three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -12
  58. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +0 -22
  59. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +0 -7
  60. three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -21
  61. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +0 -13
  62. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +0 -8
  63. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +0 -13
  64. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +0 -6
  65. three/examples/jsm/nodes/accessors/TangentNode.d.ts +0 -18
  66. three/examples/jsm/nodes/accessors/TextureNode.d.ts +0 -14
  67. three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -8
  68. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +0 -7
  69. three/examples/jsm/nodes/code/CodeNode.d.ts +0 -15
  70. three/examples/jsm/nodes/code/ExpressionNode.d.ts +0 -7
  71. three/examples/jsm/nodes/code/FunctionCallNode.d.ts +0 -13
  72. three/examples/jsm/nodes/code/FunctionNode.d.ts +0 -17
  73. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
  74. three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -9
  75. three/examples/jsm/nodes/core/BypassNode.d.ts +0 -9
  76. three/examples/jsm/nodes/core/CacheNode.d.ts +0 -10
  77. three/examples/jsm/nodes/core/ConstNode.d.ts +0 -10
  78. three/examples/jsm/nodes/core/ContextNode.d.ts +0 -10
  79. three/examples/jsm/nodes/core/InputNode.d.ts +0 -16
  80. three/examples/jsm/nodes/core/Node.d.ts +0 -31
  81. three/examples/jsm/nodes/core/NodeAttribute.d.ts +0 -6
  82. three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -138
  83. three/examples/jsm/nodes/core/NodeCache.d.ts +0 -9
  84. three/examples/jsm/nodes/core/NodeCode.d.ts +0 -4
  85. three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -19
  86. three/examples/jsm/nodes/core/NodeFunction.d.ts +0 -13
  87. three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +0 -7
  88. three/examples/jsm/nodes/core/NodeKeywords.d.ts +0 -14
  89. three/examples/jsm/nodes/core/NodeParser.d.ts +0 -5
  90. three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -13
  91. three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -13
  92. three/examples/jsm/nodes/core/NodeVar.d.ts +0 -6
  93. three/examples/jsm/nodes/core/NodeVarying.d.ts +0 -8
  94. three/examples/jsm/nodes/core/PropertyNode.d.ts +0 -6
  95. three/examples/jsm/nodes/core/StackNode.d.ts +0 -11
  96. three/examples/jsm/nodes/core/TempNode.d.ts +0 -11
  97. three/examples/jsm/nodes/core/UniformNode.d.ts +0 -10
  98. three/examples/jsm/nodes/core/VarNode.d.ts +0 -16
  99. three/examples/jsm/nodes/core/VaryingNode.d.ts +0 -8
  100. three/examples/jsm/nodes/core/constants.d.ts +0 -78
  101. three/examples/jsm/nodes/display/BlendModeNode.d.ts +0 -32
  102. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +0 -20
  103. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +0 -18
  104. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +0 -6
  105. three/examples/jsm/nodes/display/NormalMapNode.d.ts +0 -12
  106. three/examples/jsm/nodes/display/PosterizeNode.d.ts +0 -8
  107. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +0 -14
  108. three/examples/jsm/nodes/display/ViewportNode.d.ts +0 -23
  109. three/examples/jsm/nodes/fog/FogExp2Node.d.ts +0 -9
  110. three/examples/jsm/nodes/fog/FogNode.d.ts +0 -10
  111. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +0 -10
  112. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -6
  113. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -6
  114. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +0 -10
  115. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +0 -9
  116. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +0 -6
  117. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -6
  118. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +0 -11
  119. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +0 -5
  120. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +0 -6
  121. three/examples/jsm/nodes/geometry/RangeNode.d.ts +0 -13
  122. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +0 -11
  123. three/examples/jsm/nodes/lighting/AONode.d.ts +0 -8
  124. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +0 -10
  125. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +0 -8
  126. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +0 -13
  127. three/examples/jsm/nodes/lighting/LightUtils.d.ts +0 -4
  128. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +0 -15
  129. three/examples/jsm/nodes/lighting/LightingNode.d.ts +0 -5
  130. three/examples/jsm/nodes/lighting/LightsNode.d.ts +0 -19
  131. three/examples/jsm/nodes/lighting/PointLightNode.d.ts +0 -10
  132. three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +0 -15
  133. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +0 -14
  134. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
  135. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +0 -9
  136. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +0 -9
  137. three/examples/jsm/nodes/materials/Materials.d.ts +0 -17
  138. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +0 -10
  139. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +0 -22
  140. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -18
  141. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -38
  142. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +0 -15
  143. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -23
  144. three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +0 -94
  145. three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +0 -4
  146. three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -6
  147. three/examples/jsm/nodes/math/CondNode.d.ts +0 -9
  148. three/examples/jsm/nodes/math/MathNode.d.ts +0 -115
  149. three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -31
  150. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -6
  151. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +0 -156
  152. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
  153. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
  154. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +0 -9
  155. three/examples/jsm/nodes/utils/ConvertNode.d.ts +0 -8
  156. three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +0 -6
  157. three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -10
  158. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +0 -5
  159. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +0 -11
  160. three/examples/jsm/nodes/utils/OscNode.d.ts +0 -19
  161. three/examples/jsm/nodes/utils/RemapNode.d.ts +0 -13
  162. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +0 -10
  163. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -8
  164. three/examples/jsm/nodes/utils/SplitNode.d.ts +0 -16
  165. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +0 -9
  166. three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -19
  167. three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +0 -22
  168. three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -13
  169. three/examples/jsm/objects/MarchingCubes.d.ts +0 -76
  170. three/examples/jsm/objects/Reflector.d.ts +0 -29
  171. three/examples/jsm/postprocessing/EffectComposer.d.ts +0 -31
  172. three/examples/jsm/postprocessing/Pass.d.ts +0 -31
  173. three/examples/jsm/postprocessing/SavePass.d.ts +0 -12
  174. three/examples/jsm/postprocessing/ShaderPass.d.ts +0 -11
  175. three/examples/jsm/renderers/CSS3DRenderer.d.ts +0 -26
  176. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
  177. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
  178. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
  179. three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +0 -10
  180. three/examples/jsm/shaders/BokehShader2.d.ts +0 -42
  181. three/examples/jsm/shaders/ToonShader.d.ts +0 -54
  182. three/examples/jsm/shaders/VelocityShader.d.ts +0 -13
  183. three/examples/jsm/textures/FlakesTexture.d.ts +0 -3
  184. three/examples/jsm/utils/CameraUtils.d.ts +0 -9
  185. three/examples/jsm/utils/GeometryUtils.d.ts +0 -25
  186. three/examples/jsm/utils/LDrawUtils.d.ts +0 -5
  187. three/examples/jsm/utils/ShadowMapViewer.d.ts +0 -24
  188. three/examples/jsm/webxr/VRButton.d.ts +0 -5
  189. three/examples/jsm/webxr/XRButton.d.ts +0 -6
  190. three/examples/jsm/webxr/XRControllerModelFactory.d.ts +0 -21
  191. three/examples/jsm/webxr/XRHandMeshModel.d.ts +0 -11
  192. three/examples/jsm/webxr/XRHandModelFactory.d.ts +0 -25
  193. three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +0 -24
  194. three/src/extras/Earcut.d.ts +0 -15
@@ -1,286 +0,0 @@
1
- import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from '../../../src/Three.js';
2
-
3
- export interface OrbitControlsEventMap {
4
- change: {};
5
- start: {};
6
- end: {};
7
- }
8
-
9
- /**
10
- * Orbit controls allow the camera to orbit around a target.
11
- * @param object - The camera to be controlled. The camera must not
12
- * be a child of another object, unless that object is the scene itself.
13
- * @param domElement - The HTML element used for
14
- * event listeners.
15
- */
16
- export class OrbitControls extends EventDispatcher<OrbitControlsEventMap> {
17
- constructor(object: Camera, domElement?: HTMLElement);
18
-
19
- /**
20
- * The camera being controlled.
21
- */
22
- object: Camera;
23
-
24
- /**
25
- * The HTMLElement used to listen for mouse / touch events.
26
- * This must be passed in the constructor;
27
- * changing it here will not set up new event listeners.
28
- */
29
- domElement: HTMLElement | Document;
30
-
31
- /**
32
- * When set to `false`, the controls will not respond to user input.
33
- * @default true
34
- */
35
- enabled: boolean;
36
-
37
- /**
38
- * The focus point of the controls, the .object orbits around this.
39
- * It can be updated manually at any point to change the focus
40
- * of the controls.
41
- */
42
- target: Vector3;
43
-
44
- /** @deprecated */
45
- center: Vector3;
46
-
47
- /**
48
- * How far you can dolly in ( PerspectiveCamera only ).
49
- * @default 0
50
- */
51
- minDistance: number;
52
-
53
- /**
54
- * How far you can dolly out ( PerspectiveCamera only ).
55
- * @default Infinity
56
- */
57
- maxDistance: number;
58
-
59
- /**
60
- * How far you can zoom in ( OrthographicCamera only ).
61
- * @default 0
62
- */
63
- minZoom: number;
64
-
65
- /**
66
- * How far you can zoom out ( OrthographicCamera only ).
67
- * @default Infinity
68
- */
69
- maxZoom: number;
70
-
71
- /**
72
- * How far you can orbit vertically, lower limit.
73
- * Range is 0 to Math.PI radians.
74
- * @default 0
75
- */
76
- minPolarAngle: number;
77
-
78
- /**
79
- * How far you can orbit vertically, upper limit.
80
- * Range is 0 to Math.PI radians.
81
- * @default Math.PI.
82
- */
83
- maxPolarAngle: number;
84
-
85
- /**
86
- * How far you can orbit horizontally, lower limit.
87
- * If set, the interval [ min, max ]
88
- * must be a sub-interval of [ - 2 PI, 2 PI ],
89
- * with ( max - min < 2 PI ).
90
- * @default Infinity
91
- */
92
- minAzimuthAngle: number;
93
-
94
- /**
95
- * How far you can orbit horizontally, upper limit.
96
- * If set, the interval [ min, max ] must be a sub-interval
97
- * of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ).
98
- * @default Infinity
99
- */
100
- maxAzimuthAngle: number;
101
-
102
- /**
103
- * Set to true to enable damping (inertia), which can
104
- * be used to give a sense of weight to the controls.
105
- * Note that if this is enabled, you must call
106
- * .update () in your animation loop.
107
- * @default false
108
- */
109
- enableDamping: boolean;
110
-
111
- /**
112
- * The damping inertia used if .enableDamping is set to true.
113
- * Note that for this to work,
114
- * you must call .update () in your animation loop.
115
- * @default 0.05
116
- */
117
- dampingFactor: number;
118
-
119
- /**
120
- * Enable or disable zooming (dollying) of the camera.
121
- * @default true
122
- */
123
- enableZoom: boolean;
124
-
125
- /**
126
- * Speed of zooming / dollying.
127
- * @default 1
128
- */
129
- zoomSpeed: number;
130
-
131
- /**
132
- * Setting this property to `true` allows to zoom to the cursor's position.
133
- * @default false
134
- */
135
- zoomToCursor: boolean;
136
-
137
- /**
138
- * Enable or disable horizontal and
139
- * vertical rotation of the camera.
140
- * Note that it is possible to disable a single axis
141
- * by setting the min and max of the polar angle or
142
- * azimuth angle to the same value, which will cause
143
- * the vertical or horizontal rotation to be fixed at that value.
144
- * @default true
145
- */
146
- enableRotate: boolean;
147
-
148
- /**
149
- * Speed of rotation.
150
- * @default 1
151
- */
152
- rotateSpeed: number;
153
-
154
- /**
155
- * Enable or disable camera panning.
156
- * @default true
157
- */
158
- enablePan: boolean;
159
-
160
- /**
161
- * Speed of panning.
162
- * @default 1
163
- */
164
- panSpeed: number;
165
-
166
- /**
167
- * Defines how the camera's position is translated when panning.
168
- * If true, the camera pans in screen space. Otherwise,
169
- * the camera pans in the plane orthogonal to the camera's
170
- * up direction. Default is true for OrbitControls; false for MapControls.
171
- * @default true
172
- */
173
- screenSpacePanning: boolean;
174
-
175
- /**
176
- * How fast to pan the camera when the keyboard is used.
177
- * Default is 7.0 pixels per keypress.
178
- * @default 7
179
- */
180
- keyPanSpeed: number;
181
-
182
- /**
183
- * Set to true to automatically rotate around the target.
184
- * Note that if this is enabled, you must call .update() in your animation loop. If you want the auto-rotate speed
185
- * to be independent of the frame rate (the refresh rate of the display), you must pass the time `deltaTime`, in
186
- * seconds, to .update().
187
- */
188
- autoRotate: boolean;
189
-
190
- /**
191
- * How fast to rotate around the target if .autoRotate is true.
192
- * Default is 2.0, which equates to 30 seconds per orbit at 60fps.
193
- * Note that if .autoRotate is enabled, you must call
194
- * .update () in your animation loop.
195
- * @default 2
196
- */
197
- autoRotateSpeed: number;
198
-
199
- /**
200
- * This object contains references to the keycodes for controlling
201
- * camera panning. Default is the 4 arrow keys.
202
- */
203
- keys: { LEFT: string; UP: string; RIGHT: string; BOTTOM: string };
204
-
205
- /**
206
- * This object contains references to the mouse actions used
207
- * by the controls.
208
- */
209
- mouseButtons: {
210
- LEFT?: MOUSE | null | undefined;
211
- MIDDLE?: MOUSE | null | undefined;
212
- RIGHT?: MOUSE | null | undefined;
213
- };
214
-
215
- /**
216
- * This object contains references to the touch actions used by
217
- * the controls.
218
- */
219
- touches: { ONE?: TOUCH | null | undefined; TWO?: TOUCH | null | undefined };
220
-
221
- /**
222
- * Used internally by the .saveState and .reset methods.
223
- */
224
- target0: Vector3;
225
-
226
- /**
227
- * Used internally by the .saveState and .reset methods.
228
- */
229
- position0: Vector3;
230
-
231
- /**
232
- * Used internally by the .saveState and .reset methods.
233
- */
234
- zoom0: number;
235
-
236
- /**
237
- * Update the controls. Must be called after any manual changes to the camera's transform, or in the update loop if
238
- * .autoRotate or .enableDamping are set. `deltaTime`, in seconds, is optional, and is only required if you want the
239
- * auto-rotate speed to be independent of the frame rate (the refresh rate of the display).
240
- */
241
- update(deltaTime?: number): boolean;
242
-
243
- /**
244
- * Adds key event listeners to the given DOM element. `window`
245
- * is a recommended argument for using this method.
246
- * @param domElement
247
- */
248
- listenToKeyEvents(domElement: HTMLElement | Window): void;
249
-
250
- /**
251
- * Removes the key event listener previously defined with {@link listenToKeyEvents}.
252
- */
253
- stopListenToKeyEvents(): void;
254
-
255
- /**
256
- * Save the current state of the controls. This can later be
257
- * recovered with .reset.
258
- */
259
- saveState(): void;
260
-
261
- /**
262
- * Reset the controls to their state from either the last time
263
- * the .saveState was called, or the initial state.
264
- */
265
- reset(): void;
266
-
267
- /**
268
- * Remove all the event listeners.
269
- */
270
- dispose(): void;
271
-
272
- /**
273
- * Get the current vertical rotation, in radians.
274
- */
275
- getPolarAngle(): number;
276
-
277
- /**
278
- * Get the current horizontal rotation, in radians.
279
- */
280
- getAzimuthalAngle(): number;
281
-
282
- /**
283
- * Returns the distance from the camera to the target.
284
- */
285
- getDistance(): number;
286
- }
@@ -1,58 +0,0 @@
1
- import { Camera, EventDispatcher, MOUSE, Vector3 } from '../../../src/Three.js';
2
-
3
- export interface TrackballControlsEventMap {
4
- change: {};
5
- start: {};
6
- end: {};
7
- }
8
-
9
- export class TrackballControls extends EventDispatcher<TrackballControlsEventMap> {
10
- constructor(object: Camera, domElement?: HTMLElement);
11
-
12
- object: Camera;
13
- domElement: HTMLElement;
14
-
15
- // API
16
- enabled: boolean;
17
- screen: { left: number; top: number; width: number; height: number };
18
- rotateSpeed: number;
19
- zoomSpeed: number;
20
- panSpeed: number;
21
- noRotate: boolean;
22
- noZoom: boolean;
23
- noPan: boolean;
24
- noRoll: boolean;
25
- staticMoving: boolean;
26
- dynamicDampingFactor: number;
27
- minDistance: number;
28
- maxDistance: number;
29
- minZoom: number;
30
- maxZoom: number;
31
- keys: string[];
32
- mouseButtons: {
33
- LEFT?: MOUSE | null | undefined;
34
- MIDDLE?: MOUSE | null | undefined;
35
- RIGHT?: MOUSE | null | undefined;
36
- };
37
-
38
- target: Vector3;
39
- position0: Vector3;
40
- target0: Vector3;
41
- up0: Vector3;
42
-
43
- update(): void;
44
-
45
- reset(): void;
46
-
47
- dispose(): void;
48
-
49
- checkDistances(): void;
50
-
51
- zoomCamera(): void;
52
-
53
- panCamera(): void;
54
-
55
- rotateCamera(): void;
56
-
57
- handleResize(): void;
58
- }
@@ -1,36 +0,0 @@
1
- import {
2
- Camera,
3
- Scene,
4
- Vector2,
5
- Vector4,
6
- WebGLRenderer,
7
- WebGLRenderTarget,
8
- WebGLShadowMap,
9
- } from '../../../src/Three.js';
10
-
11
- export interface OutlineEffectParameters {
12
- defaultThickness?: number | undefined;
13
- defaultColor?: number[] | undefined;
14
- defaultAlpha?: number | undefined;
15
- defaultKeepAlive?: boolean | undefined;
16
- }
17
-
18
- export class OutlineEffect {
19
- constructor(renderer: WebGLRenderer, parameters?: OutlineEffectParameters);
20
- enabled: boolean;
21
- autoClear: boolean;
22
- domElement: HTMLElement;
23
- shadowMap: WebGLShadowMap;
24
-
25
- clear(color?: boolean, depth?: boolean, stencil?: boolean): void;
26
- getPixelRatio(): number;
27
- getSize(target: Vector2): Vector2;
28
- render(scene: Scene, camera: Camera): void;
29
- renderOutline(scene: Scene, camera: Camera): void;
30
- setRenderTarget(renderTarget: WebGLRenderTarget | null): void;
31
- setPixelRatio(value: number): void;
32
- setScissor(x: Vector4 | number, y?: number, width?: number, height?: number): void;
33
- setScissorTest(enable: boolean): void;
34
- setSize(width: number, height: number, updateStyle?: boolean): void;
35
- setViewport(x: Vector4 | number, y?: number, width?: number, height?: number): void;
36
- }
@@ -1,6 +0,0 @@
1
- import { Scene, WebGLRenderer } from '../../../src/Three.js';
2
-
3
- export class RoomEnvironment extends Scene {
4
- constructor(renderer?: WebGLRenderer);
5
- dispose(): void;
6
- }
@@ -1,30 +0,0 @@
1
- import { Object3D } from '../../../src/Three.js';
2
-
3
- export interface PLYExporterOptionsBase {
4
- excludeAttributes?: string[];
5
- littleEndian?: boolean;
6
- }
7
-
8
- export interface PLYExporterOptionsBinary extends PLYExporterOptionsBase {
9
- binary: true;
10
- }
11
-
12
- export interface PLYExporterOptionsString extends PLYExporterOptionsBase {
13
- binary?: false;
14
- }
15
-
16
- export interface PLYExporterOptions extends PLYExporterOptionsBase {
17
- binary?: boolean;
18
- }
19
-
20
- export class PLYExporter {
21
- constructor();
22
-
23
- parse(object: Object3D, onDone: (res: ArrayBuffer) => void, options: PLYExporterOptionsBinary): ArrayBuffer | null;
24
- parse(object: Object3D, onDone: (res: string) => void, options?: PLYExporterOptionsString): string | null;
25
- parse(
26
- object: Object3D,
27
- onDone: (res: string | ArrayBuffer) => void,
28
- options?: PLYExporterOptions,
29
- ): string | ArrayBuffer | null;
30
- }
@@ -1,21 +0,0 @@
1
- import { Object3D } from '../../../src/Three.js';
2
-
3
- export interface STLExporterOptionsBinary {
4
- binary: true;
5
- }
6
-
7
- export interface STLExporterOptionsString {
8
- binary?: false;
9
- }
10
-
11
- export interface STLExporterOptions {
12
- binary?: boolean;
13
- }
14
-
15
- export class STLExporter {
16
- constructor();
17
-
18
- parse(scene: Object3D, options: STLExporterOptionsBinary): DataView;
19
- parse(scene: Object3D, options?: STLExporterOptionsString): string;
20
- parse(scene: Object3D, options?: STLExporterOptions): string | DataView;
21
- }
@@ -1,115 +0,0 @@
1
- import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from '../../../src/Three.js';
2
-
3
- import { Font } from '../loaders/FontLoader.js';
4
-
5
- export interface TextGeometryParameters extends ExtrudeGeometryOptions {
6
- font: Font;
7
-
8
- /**
9
- * Size of the text
10
- * Expects a `Float`.
11
- * @defaultValue `100`
12
- */
13
- size?: number | undefined;
14
-
15
- /**
16
- * Thickness to extrude text.
17
- * Expects a `Float`.
18
- * @defaultValue `50`
19
- */
20
- height?: number | undefined;
21
-
22
- /**
23
- * @override
24
- * @defaultValue `12`
25
- */
26
- curveSegments?: number | undefined;
27
-
28
- /**
29
- * @defaultValue `false`
30
- */
31
- bevelEnabled?: boolean | undefined;
32
-
33
- /**
34
- * How deep into text bevel goes.
35
- * Expects a `Float`.
36
- * @override
37
- * @defaultValue `10`
38
- */
39
- bevelThickness?: number | undefined;
40
-
41
- /**
42
- * How far from text outline is bevel.
43
- * Expects a `Float`.
44
- * @override
45
- * @defaultValue `8`
46
- */
47
- bevelSize?: number | undefined;
48
-
49
- /**
50
- * How far from text outline bevel starts.
51
- * Expects a `Float`.
52
- * @override
53
- * @defaultValue `0`
54
- */
55
- bevelOffset?: number | undefined;
56
-
57
- /**
58
- * @override
59
- * @defaultValue `3`
60
- */
61
- bevelSegments?: number | undefined;
62
- }
63
-
64
- /**
65
- * A class for generating text as a single geometry
66
- * @remarks
67
- * It is constructed by providing a string of text, and a set of parameters consisting of a loaded font and settings for the geometry's parent {@link THREE.ExtrudeGeometry | ExtrudeGeometry}
68
- * See the {@link THREE.FontLoader | FontLoader} page for additional details.
69
- * @example
70
- * ```typescript
71
- * const loader = new FontLoader();
72
- * loader.load('fonts/helvetiker_regular.typeface.json', function (font) {
73
- * const geometry = new TextGeometry('Hello three.js!', {
74
- * font: font,
75
- * size: 80,
76
- * height: 5,
77
- * curveSegments: 12,
78
- * bevelEnabled: true,
79
- * bevelThickness: 10,
80
- * bevelSize: 8,
81
- * bevelOffset: 0,
82
- * bevelSegments: 5
83
- * });
84
- * });
85
- * ```
86
- * @see Example: {@link https://threejs.org/examples/#webgl_geometry_text | geometry / text }
87
- * @see {@link https://threejs.org/docs/index.html#api/en/C:/rafaelsc/Source/threejs/three.js/docs/examples/en/geometries/TextGeometry | Official Documentation}
88
- * @see {@link https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/TextGeometry.js | Source}
89
- */
90
- export class TextGeometry extends ExtrudeGeometry {
91
- /**
92
- * Create a new instance of {@link TextGeometry}
93
- * @param text The text that needs to be shown.
94
- * @param parameters Object that can contain the following parameters. @see {@link TextGeometryParameters} for defaults.
95
- */
96
- constructor(text: string, parameters?: TextGeometryParameters);
97
-
98
- /**
99
- * A Read-only _string_ to check if `this` object type.
100
- * @remarks Sub-classes will update this value.
101
- * @defaultValue `TextGeometry`
102
- */
103
- override readonly type: string | 'TextGeometry';
104
-
105
- /**
106
- * An object with a property for each of the constructor parameters.
107
- * @remarks Any modification after instantiation does not change the geometry.
108
- */
109
- readonly parameters: {
110
- readonly shapes: Shape | Shape[];
111
- readonly options: TextGeometryParameters;
112
- };
113
- }
114
-
115
- export { TextGeometry as TextBufferGeometry };
@@ -1,10 +0,0 @@
1
- import { Line, RectAreaLight, ColorRepresentation } from '../../../src/Three.js';
2
-
3
- export class RectAreaLightHelper extends Line {
4
- constructor(light: RectAreaLight, color?: ColorRepresentation);
5
-
6
- light: RectAreaLight;
7
- color: ColorRepresentation | undefined;
8
-
9
- dispose(): void;
10
- }
@@ -1,15 +0,0 @@
1
- import { Camera, Object3D, Vector3, WebGLRenderer } from '../../../src/Three.js';
2
-
3
- export class ViewHelper extends Object3D {
4
- animating: boolean;
5
- center: Vector3;
6
-
7
- readonly isViewHelper: true;
8
-
9
- constructor(camera: Camera, domElement: HTMLElement);
10
-
11
- render(renderer: WebGLRenderer): void;
12
- handleClick(event: MouseEvent): boolean;
13
- update(delta: number): void;
14
- dispose(): void;
15
- }
@@ -1 +0,0 @@
1
- export * from 'fflate';