@types/three 0.178.1 → 0.180.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 (129) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/Addons.d.ts +2 -3
  3. three/examples/jsm/controls/DragControls.d.ts +0 -30
  4. three/examples/jsm/controls/PointerLockControls.d.ts +0 -5
  5. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  6. three/examples/jsm/exporters/EXRExporter.d.ts +2 -2
  7. three/examples/jsm/exporters/KTX2Exporter.d.ts +2 -2
  8. three/examples/jsm/exporters/STLExporter.d.ts +2 -2
  9. three/examples/jsm/exporters/USDZExporter.d.ts +3 -2
  10. three/examples/jsm/loaders/EXRLoader.d.ts +18 -5
  11. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +2 -2
  12. three/examples/jsm/loaders/HDRLoader.d.ts +22 -0
  13. three/examples/jsm/loaders/LDrawLoader.d.ts +5 -1
  14. three/examples/jsm/loaders/RGBELoader.d.ts +9 -15
  15. three/examples/jsm/loaders/USDLoader.d.ts +9 -0
  16. three/examples/jsm/loaders/USDZLoader.d.ts +11 -8
  17. three/examples/jsm/materials/WoodNodeMaterial.d.ts +75 -0
  18. three/examples/jsm/math/ColorSpaces.d.ts +4 -0
  19. three/examples/jsm/postprocessing/SSRPass.d.ts +6 -29
  20. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +10 -1
  21. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +14 -8
  22. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +26 -6
  23. three/examples/jsm/tsl/display/SSRNode.d.ts +8 -3
  24. three/examples/jsm/tsl/display/TRAANode.d.ts +22 -0
  25. three/examples/jsm/tsl/display/boxBlur.d.ts +11 -0
  26. three/examples/jsm/tsl/display/hashBlur.d.ts +1 -1
  27. three/package.json +4 -4
  28. three/src/Three.Core.d.ts +2 -0
  29. three/src/Three.TSL.d.ts +84 -17
  30. three/src/animation/AnimationClip.d.ts +5 -0
  31. three/src/animation/KeyframeTrack.d.ts +7 -2
  32. three/src/animation/tracks/BooleanKeyframeTrack.d.ts +2 -2
  33. three/src/animation/tracks/StringKeyframeTrack.d.ts +2 -2
  34. three/src/cameras/Camera.d.ts +15 -8
  35. three/src/constants.d.ts +6 -2
  36. three/{examples/jsm/misc → src/core}/Timer.d.ts +3 -17
  37. three/src/helpers/SkeletonHelper.d.ts +7 -12
  38. three/src/loaders/FileLoader.d.ts +2 -2
  39. three/src/loaders/ImageBitmapLoader.d.ts +9 -9
  40. three/src/loaders/Loader.d.ts +1 -0
  41. three/src/loaders/LoadingManager.d.ts +23 -19
  42. three/src/materials/LineBasicMaterial.d.ts +1 -0
  43. three/src/materials/LineDashedMaterial.d.ts +1 -0
  44. three/src/materials/MeshBasicMaterial.d.ts +1 -0
  45. three/src/materials/MeshDepthMaterial.d.ts +1 -0
  46. three/src/materials/MeshDistanceMaterial.d.ts +2 -1
  47. three/src/materials/MeshLambertMaterial.d.ts +1 -0
  48. three/src/materials/MeshMatcapMaterial.d.ts +1 -0
  49. three/src/materials/MeshNormalMaterial.d.ts +1 -0
  50. three/src/materials/MeshPhongMaterial.d.ts +1 -0
  51. three/src/materials/MeshToonMaterial.d.ts +1 -0
  52. three/src/materials/PointsMaterial.d.ts +1 -0
  53. three/src/materials/ShaderMaterial.d.ts +1 -0
  54. three/src/materials/ShadowMaterial.d.ts +1 -0
  55. three/src/materials/SpriteMaterial.d.ts +1 -0
  56. three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -6
  57. three/src/materials/nodes/LineBasicNodeMaterial.d.ts +1 -0
  58. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +1 -0
  59. three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -0
  60. three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +1 -0
  61. three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +1 -0
  62. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +1 -0
  63. three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +1 -0
  64. three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +1 -0
  65. three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +1 -0
  66. three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +1 -0
  67. three/src/materials/nodes/MeshToonNodeMaterial.d.ts +1 -0
  68. three/src/materials/nodes/NodeMaterial.d.ts +1 -0
  69. three/src/materials/nodes/PointsNodeMaterial.d.ts +22 -0
  70. three/src/materials/nodes/ShadowNodeMaterial.d.ts +1 -0
  71. three/src/materials/nodes/SpriteNodeMaterial.d.ts +1 -0
  72. three/src/materials/nodes/VolumeNodeMaterial.d.ts +1 -0
  73. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +22 -1
  74. three/src/math/ColorManagement.d.ts +1 -1
  75. three/src/math/Frustum.d.ts +1 -1
  76. three/src/math/Line3.d.ts +1 -0
  77. three/src/math/Matrix4.d.ts +2 -0
  78. three/src/nodes/Nodes.d.ts +4 -0
  79. three/src/nodes/TSL.d.ts +4 -0
  80. three/src/nodes/accessors/Camera.d.ts +2 -0
  81. three/src/nodes/accessors/TextureNode.d.ts +4 -0
  82. three/src/nodes/core/ContextNode.d.ts +11 -1
  83. three/src/nodes/core/Node.d.ts +13 -13
  84. three/src/nodes/core/UniformNode.d.ts +13 -4
  85. three/src/nodes/core/VarNode.d.ts +11 -15
  86. three/src/nodes/display/PassNode.d.ts +10 -0
  87. three/src/nodes/display/ScreenNode.d.ts +4 -1
  88. three/src/nodes/display/ToneMappingNode.d.ts +2 -2
  89. three/src/nodes/display/ViewportDepthTextureNode.d.ts +3 -0
  90. three/src/nodes/display/ViewportSharedTextureNode.d.ts +3 -0
  91. three/src/nodes/display/ViewportTextureNode.d.ts +4 -0
  92. three/src/nodes/gpgpu/ComputeNode.d.ts +15 -6
  93. three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +100 -0
  94. three/src/nodes/materialx/MaterialXNodes.d.ts +85 -20
  95. three/src/nodes/materialx/lib/mx_noise.d.ts +28 -0
  96. three/src/nodes/math/BitcastNode.d.ts +25 -0
  97. three/src/nodes/math/MathNode.d.ts +10 -5
  98. three/src/nodes/tsl/TSLCore.d.ts +16 -0
  99. three/src/nodes/utils/EventNode.d.ts +21 -0
  100. three/src/nodes/utils/RTTNode.d.ts +2 -0
  101. three/src/nodes/utils/ReflectorNode.d.ts +16 -1
  102. three/src/nodes/utils/SampleNode.d.ts +3 -2
  103. three/src/nodes/utils/Timer.d.ts +0 -15
  104. three/src/objects/InstancedMesh.d.ts +2 -3
  105. three/src/renderers/WebGLRenderer.d.ts +0 -25
  106. three/src/renderers/common/Attributes.d.ts +1 -1
  107. three/src/renderers/common/Color4.d.ts +2 -2
  108. three/src/renderers/common/Renderer.d.ts +17 -9
  109. three/src/renderers/common/SampledTexture.d.ts +2 -9
  110. three/src/renderers/common/Sampler.d.ts +9 -3
  111. three/src/renderers/common/Storage3DTexture.d.ts +2 -0
  112. three/src/renderers/common/StorageArrayTexture.d.ts +2 -0
  113. three/src/renderers/common/StorageTexture.d.ts +2 -0
  114. three/src/renderers/common/Textures.d.ts +1 -1
  115. three/src/renderers/common/TimestampQueryPool.d.ts +3 -4
  116. three/src/renderers/common/XRManager.d.ts +11 -0
  117. three/src/renderers/common/nodes/NodeLibrary.d.ts +5 -5
  118. three/src/renderers/webgl/WebGLCapabilities.d.ts +2 -2
  119. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +0 -1
  120. three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +1 -1
  121. three/src/renderers/webxr/WebXRDepthSensing.d.ts +4 -5
  122. three/src/renderers/webxr/WebXRManager.d.ts +4 -2
  123. three/src/textures/CompressedTexture.d.ts +4 -4
  124. three/src/textures/Data3DTexture.d.ts +2 -1
  125. three/src/textures/DataTexture.d.ts +3 -2
  126. three/src/textures/ExternalTexture.d.ts +11 -0
  127. three/src/textures/Texture.d.ts +1 -1
  128. three/examples/jsm/loaders/RGBMLoader.d.ts +0 -37
  129. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +0 -15
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.178.1",
3
+ "version": "0.180.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -46,9 +46,9 @@
46
46
  "@types/webxr": "*",
47
47
  "@webgpu/types": "*",
48
48
  "fflate": "~0.8.2",
49
- "meshoptimizer": "~0.18.1"
49
+ "meshoptimizer": "~0.22.0"
50
50
  },
51
51
  "peerDependencies": {},
52
- "typesPublisherContentHash": "d9c620a2d4d95c3bca7cfc75c9b59be43aedab8c28dfc9871f33870fefadd371",
53
- "typeScriptVersion": "5.1"
52
+ "typesPublisherContentHash": "b06ef6e25296a342a8cb4449c825b5786ae345270e744fa27908d1cb8d51f547",
53
+ "typeScriptVersion": "5.2"
54
54
  }
three/src/Three.Core.d.ts CHANGED
@@ -39,6 +39,7 @@ export * from "./core/Object3D.js";
39
39
  export * from "./core/Raycaster.js";
40
40
  export * from "./core/RenderTarget.js";
41
41
  export * from "./core/RenderTarget3D.js";
42
+ export * from "./core/Timer.js";
42
43
  export * from "./core/Uniform.js";
43
44
  export * from "./core/UniformsGroup.js";
44
45
  export * from "./extras/Controls.js";
@@ -153,6 +154,7 @@ export * from "./textures/Data3DTexture.js";
153
154
  export * from "./textures/DataArrayTexture.js";
154
155
  export * from "./textures/DataTexture.js";
155
156
  export * from "./textures/DepthTexture.js";
157
+ export * from "./textures/ExternalTexture.js";
156
158
  export * from "./textures/FramebufferTexture.js";
157
159
  export * from "./textures/Source.js";
158
160
  export * from "./textures/Texture.js";
three/src/Three.TSL.d.ts CHANGED
@@ -2,8 +2,10 @@ import * as TSL from "./nodes/TSL.js";
2
2
 
3
3
  export const BRDF_GGX: typeof TSL.BRDF_GGX;
4
4
  export const BRDF_Lambert: typeof TSL.BRDF_Lambert;
5
+ export const BasicPointShadowFilter: typeof TSL.BasicPointShadowFilter;
5
6
  export const BasicShadowFilter: typeof TSL.BasicShadowFilter;
6
7
  export const Break: typeof TSL.Break;
8
+ export const Const: typeof TSL.Const;
7
9
  export const Continue: typeof TSL.Continue;
8
10
  export const DFGApprox: typeof TSL.DFGApprox;
9
11
  export const D_GGX: typeof TSL.D_GGX;
@@ -13,27 +15,32 @@ export const F_Schlick: typeof TSL.F_Schlick;
13
15
  export const Fn: typeof TSL.Fn;
14
16
  export const INFINITY: typeof TSL.INFINITY;
15
17
  export const If: typeof TSL.If;
16
- export const Switch: typeof TSL.Switch;
17
18
  export const Loop: typeof TSL.Loop;
19
+ export const NodeAccess: typeof TSL.NodeAccess;
18
20
  export const NodeShaderStage: typeof TSL.NodeShaderStage;
19
21
  export const NodeType: typeof TSL.NodeType;
20
22
  export const NodeUpdateType: typeof TSL.NodeUpdateType;
21
- export const NodeAccess: typeof TSL.NodeAccess;
22
23
  export const PCFShadowFilter: typeof TSL.PCFShadowFilter;
23
24
  export const PCFSoftShadowFilter: typeof TSL.PCFSoftShadowFilter;
24
25
  export const PI: typeof TSL.PI;
25
26
  export const PI2: typeof TSL.PI2;
27
+ export const PointShadowFilter: typeof TSL.PointShadowFilter;
26
28
  export const Return: typeof TSL.Return;
27
29
  export const Schlick_to_F0: typeof TSL.Schlick_to_F0;
28
30
  export const ScriptableNodeResources: typeof TSL.ScriptableNodeResources;
29
31
  export const ShaderNode: typeof TSL.ShaderNode;
32
+ export const Stack: typeof TSL.Stack;
33
+ export const Switch: typeof TSL.Switch;
30
34
  export const TBNViewMatrix: typeof TSL.TBNViewMatrix;
31
35
  export const VSMShadowFilter: typeof TSL.VSMShadowFilter;
32
36
  export const V_GGX_SmithCorrelated: typeof TSL.V_GGX_SmithCorrelated;
37
+ export const Var: typeof TSL.Var;
38
+ export const VarIntent: typeof TSL.VarIntent;
33
39
  export const abs: typeof TSL.abs;
34
40
  export const acesFilmicToneMapping: typeof TSL.acesFilmicToneMapping;
35
41
  export const acos: typeof TSL.acos;
36
42
  export const add: typeof TSL.add;
43
+ export const addMethodChaining: typeof TSL.addMethodChaining;
37
44
  export const addNodeElement: typeof TSL.addNodeElement;
38
45
  export const agxToneMapping: typeof TSL.agxToneMapping;
39
46
  export const all: typeof TSL.all;
@@ -53,13 +60,13 @@ export const atan2: typeof TSL.atan2;
53
60
  export const atomicAdd: typeof TSL.atomicAdd;
54
61
  export const atomicAnd: typeof TSL.atomicAnd;
55
62
  export const atomicFunc: typeof TSL.atomicFunc;
63
+ export const atomicLoad: typeof TSL.atomicLoad;
56
64
  export const atomicMax: typeof TSL.atomicMax;
57
65
  export const atomicMin: typeof TSL.atomicMin;
58
66
  export const atomicOr: typeof TSL.atomicOr;
59
67
  export const atomicStore: typeof TSL.atomicStore;
60
68
  export const atomicSub: typeof TSL.atomicSub;
61
69
  export const atomicXor: typeof TSL.atomicXor;
62
- export const atomicLoad: typeof TSL.atomicLoad;
63
70
  export const attenuationColor: typeof TSL.attenuationColor;
64
71
  export const attenuationDistance: typeof TSL.attenuationDistance;
65
72
  export const attribute: typeof TSL.attribute;
@@ -90,6 +97,7 @@ export const buffer: typeof TSL.buffer;
90
97
  export const bufferAttribute: typeof TSL.bufferAttribute;
91
98
  export const bumpMap: typeof TSL.bumpMap;
92
99
  export const burn: typeof TSL.burn;
100
+ export const builtin: typeof TSL.builtin;
93
101
  export const bvec2: typeof TSL.bvec2;
94
102
  export const bvec3: typeof TSL.bvec3;
95
103
  export const bvec4: typeof TSL.bvec4;
@@ -104,6 +112,7 @@ export const cameraPosition: typeof TSL.cameraPosition;
104
112
  export const cameraProjectionMatrix: typeof TSL.cameraProjectionMatrix;
105
113
  export const cameraProjectionMatrixInverse: typeof TSL.cameraProjectionMatrixInverse;
106
114
  export const cameraViewMatrix: typeof TSL.cameraViewMatrix;
115
+ export const cameraViewport: typeof TSL.cameraViewport;
107
116
  export const cameraWorldMatrix: typeof TSL.cameraWorldMatrix;
108
117
  export const cbrt: typeof TSL.cbrt;
109
118
  export const cdl: typeof TSL.cdl;
@@ -112,14 +121,15 @@ export const checker: typeof TSL.checker;
112
121
  export const cineonToneMapping: typeof TSL.cineonToneMapping;
113
122
  export const clamp: typeof TSL.clamp;
114
123
  export const clearcoat: typeof TSL.clearcoat;
124
+ export const clearcoatNormalView: typeof TSL.clearcoatNormalView;
115
125
  export const clearcoatRoughness: typeof TSL.clearcoatRoughness;
116
126
  export const code: typeof TSL.code;
117
127
  export const color: typeof TSL.color;
118
128
  export const colorSpaceToWorking: typeof TSL.colorSpaceToWorking;
119
129
  export const colorToDirection: typeof TSL.colorToDirection;
120
130
  export const compute: typeof TSL.compute;
131
+ export const computeKernel: typeof TSL.computeKernel;
121
132
  export const computeSkinning: typeof TSL.computeSkinning;
122
- export const Const: typeof TSL.Const;
123
133
  export const context: typeof TSL.context;
124
134
  export const convert: typeof TSL.convert;
125
135
  export const convertColorSpace: typeof TSL.convertColorSpace;
@@ -127,6 +137,8 @@ export const convertToTexture: typeof TSL.convertToTexture;
127
137
  export const cos: typeof TSL.cos;
128
138
  export const cross: typeof TSL.cross;
129
139
  export const cubeTexture: typeof TSL.cubeTexture;
140
+ export const cubeTextureBase: typeof TSL.cubeTextureBase;
141
+ export const cubeToUV: typeof TSL.cubeToUV;
130
142
  export const dFdx: typeof TSL.dFdx;
131
143
  export const dFdy: typeof TSL.dFdy;
132
144
  export const dashSize: typeof TSL.dashSize;
@@ -142,10 +154,12 @@ export const densityFog: typeof TSL.densityFog;
142
154
  export const densityFogFactor: typeof TSL.densityFogFactor;
143
155
  export const depth: typeof TSL.depth;
144
156
  export const depthPass: typeof TSL.depthPass;
157
+ export const determinant: typeof TSL.determinant;
145
158
  export const difference: typeof TSL.difference;
146
159
  export const diffuseColor: typeof TSL.diffuseColor;
147
160
  export const directPointLight: typeof TSL.directPointLight;
148
161
  export const directionToColor: typeof TSL.directionToColor;
162
+ export const directionToFaceDirection: typeof TSL.directionToFaceDirection;
149
163
  export const dispersion: typeof TSL.dispersion;
150
164
  export const distance: typeof TSL.distance;
151
165
  export const div: typeof TSL.div;
@@ -165,6 +179,8 @@ export const faceDirection: typeof TSL.faceDirection;
165
179
  export const faceForward: typeof TSL.faceForward;
166
180
  export const faceforward: typeof TSL.faceforward;
167
181
  export const float: typeof TSL.float;
182
+ export const floatBitsToInt: typeof TSL.floatBitsToInt;
183
+ export const floatBitsToUint: typeof TSL.floatBitsToUint;
168
184
  export const floor: typeof TSL.floor;
169
185
  export const fog: typeof TSL.fog;
170
186
  export const fract: typeof TSL.fract;
@@ -184,10 +200,11 @@ export const getParallaxCorrectNormal: typeof TSL.getParallaxCorrectNormal;
184
200
  export const getRoughness: typeof TSL.getRoughness;
185
201
  export const getScreenPosition: typeof TSL.getScreenPosition;
186
202
  export const getShIrradianceAt: typeof TSL.getShIrradianceAt;
187
- export const getTextureIndex: typeof TSL.getTextureIndex;
188
- export const getViewPosition: typeof TSL.getViewPosition;
189
203
  export const getShadowMaterial: typeof TSL.getShadowMaterial;
190
204
  export const getShadowRenderObjectFunction: typeof TSL.getShadowRenderObjectFunction;
205
+ export const getTextureIndex: typeof TSL.getTextureIndex;
206
+ export const getViewPosition: typeof TSL.getViewPosition;
207
+ export const globalId: typeof TSL.globalId;
191
208
  export const glsl: typeof TSL.glsl;
192
209
  export const glslFn: typeof TSL.glslFn;
193
210
  export const grayscale: typeof TSL.grayscale;
@@ -206,6 +223,8 @@ export const instancedBufferAttribute: typeof TSL.instancedBufferAttribute;
206
223
  export const instancedDynamicBufferAttribute: typeof TSL.instancedDynamicBufferAttribute;
207
224
  export const instancedMesh: typeof TSL.instancedMesh;
208
225
  export const int: typeof TSL.int;
226
+ export const intBitsToFloat: typeof TSL.intBitsToFloat;
227
+ export const inverse: typeof TSL.inverse;
209
228
  export const inverseSqrt: typeof TSL.inverseSqrt;
210
229
  export const inversesqrt: typeof TSL.inversesqrt;
211
230
  export const invocationLocalIndex: typeof TSL.invocationLocalIndex;
@@ -224,6 +243,7 @@ export const lengthSq: typeof TSL.lengthSq;
224
243
  export const lessThan: typeof TSL.lessThan;
225
244
  export const lessThanEqual: typeof TSL.lessThanEqual;
226
245
  export const lightPosition: typeof TSL.lightPosition;
246
+ export const lightProjectionUV: typeof TSL.lightProjectionUV;
227
247
  export const lightShadowMatrix: typeof TSL.lightShadowMatrix;
228
248
  export const lightTargetDirection: typeof TSL.lightTargetDirection;
229
249
  export const lightTargetPosition: typeof TSL.lightTargetPosition;
@@ -233,12 +253,10 @@ export const lights: typeof TSL.lights;
233
253
  export const linearDepth: typeof TSL.linearDepth;
234
254
  export const linearToneMapping: typeof TSL.linearToneMapping;
235
255
  export const localId: typeof TSL.localId;
236
- export const globalId: typeof TSL.globalId;
237
256
  export const log: typeof TSL.log;
238
257
  export const log2: typeof TSL.log2;
239
258
  export const logarithmicDepthToViewZ: typeof TSL.logarithmicDepthToViewZ;
240
259
  export const luminance: typeof TSL.luminance;
241
- export const mediumpModelViewMatrix: typeof TSL.mediumpModelViewMatrix;
242
260
  export const mat2: typeof TSL.mat2;
243
261
  export const mat3: typeof TSL.mat3;
244
262
  export const mat4: typeof TSL.mat4;
@@ -255,6 +273,8 @@ export const materialClearcoatRoughness: typeof TSL.materialClearcoatRoughness;
255
273
  export const materialColor: typeof TSL.materialColor;
256
274
  export const materialDispersion: typeof TSL.materialDispersion;
257
275
  export const materialEmissive: typeof TSL.materialEmissive;
276
+ export const materialEnvIntensity: typeof TSL.materialEnvIntensity;
277
+ export const materialEnvRotation: typeof TSL.materialEnvRotation;
258
278
  export const materialIOR: typeof TSL.materialIOR;
259
279
  export const materialIridescence: typeof TSL.materialIridescence;
260
280
  export const materialIridescenceIOR: typeof TSL.materialIridescenceIOR;
@@ -285,6 +305,7 @@ export const materialThickness: typeof TSL.materialThickness;
285
305
  export const materialTransmission: typeof TSL.materialTransmission;
286
306
  export const max: typeof TSL.max;
287
307
  export const maxMipLevel: typeof TSL.maxMipLevel;
308
+ export const mediumpModelViewMatrix: typeof TSL.mediumpModelViewMatrix;
288
309
  export const metalness: typeof TSL.metalness;
289
310
  export const min: typeof TSL.min;
290
311
  export const mix: typeof TSL.mix;
@@ -305,24 +326,45 @@ export const morphReference: typeof TSL.morphReference;
305
326
  export const mrt: typeof TSL.mrt;
306
327
  export const mul: typeof TSL.mul;
307
328
  export const mx_aastep: typeof TSL.mx_aastep;
329
+ export const mx_add: typeof TSL.mx_add;
330
+ export const mx_atan2: typeof TSL.mx_atan2;
308
331
  export const mx_cell_noise_float: typeof TSL.mx_cell_noise_float;
309
332
  export const mx_contrast: typeof TSL.mx_contrast;
333
+ export const mx_divide: typeof TSL.mx_divide;
310
334
  export const mx_fractal_noise_float: typeof TSL.mx_fractal_noise_float;
311
335
  export const mx_fractal_noise_vec2: typeof TSL.mx_fractal_noise_vec2;
312
336
  export const mx_fractal_noise_vec3: typeof TSL.mx_fractal_noise_vec3;
313
337
  export const mx_fractal_noise_vec4: typeof TSL.mx_fractal_noise_vec4;
338
+ export const mx_frame: typeof TSL.mx_frame;
339
+ export const mx_heighttonormal: typeof TSL.mx_heighttonormal;
314
340
  export const mx_hsvtorgb: typeof TSL.mx_hsvtorgb;
341
+ export const mx_ifequal: typeof TSL.mx_ifequal;
342
+ export const mx_ifgreater: typeof TSL.mx_ifgreater;
343
+ export const mx_ifgreatereq: typeof TSL.mx_ifgreatereq;
344
+ export const mx_invert: typeof TSL.mx_invert;
345
+ export const mx_modulo: typeof TSL.mx_modulo;
346
+ export const mx_multiply: typeof TSL.mx_multiply;
315
347
  export const mx_noise_float: typeof TSL.mx_noise_float;
316
348
  export const mx_noise_vec3: typeof TSL.mx_noise_vec3;
317
349
  export const mx_noise_vec4: typeof TSL.mx_noise_vec4;
350
+ export const mx_place2d: typeof TSL.mx_place2d;
351
+ export const mx_power: typeof TSL.mx_power;
352
+ export const mx_ramp4: typeof TSL.mx_ramp4;
318
353
  export const mx_ramplr: typeof TSL.mx_ramplr;
319
354
  export const mx_ramptb: typeof TSL.mx_ramptb;
320
355
  export const mx_rgbtohsv: typeof TSL.mx_rgbtohsv;
356
+ export const mx_rotate2d: typeof TSL.mx_rotate2d;
357
+ export const mx_rotate3d: typeof TSL.mx_rotate3d;
321
358
  export const mx_safepower: typeof TSL.mx_safepower;
359
+ export const mx_separate: typeof TSL.mx_separate;
322
360
  export const mx_splitlr: typeof TSL.mx_splitlr;
323
361
  export const mx_splittb: typeof TSL.mx_splittb;
324
362
  export const mx_srgb_texture_to_lin_rec709: typeof TSL.mx_srgb_texture_to_lin_rec709;
363
+ export const mx_subtract: typeof TSL.mx_subtract;
364
+ export const mx_timer: typeof TSL.mx_timer;
325
365
  export const mx_transform_uv: typeof TSL.mx_transform_uv;
366
+ export const mx_unifiednoise2d: typeof TSL.mx_unifiednoise2d;
367
+ export const mx_unifiednoise3d: typeof TSL.mx_unifiednoise3d;
326
368
  export const mx_worley_noise_float: typeof TSL.mx_worley_noise_float;
327
369
  export const mx_worley_noise_vec2: typeof TSL.mx_worley_noise_vec2;
328
370
  export const mx_worley_noise_vec3: typeof TSL.mx_worley_noise_vec3;
@@ -331,8 +373,10 @@ export const neutralToneMapping: typeof TSL.neutralToneMapping;
331
373
  export const nodeArray: typeof TSL.nodeArray;
332
374
  export const nodeImmutable: typeof TSL.nodeImmutable;
333
375
  export const nodeObject: typeof TSL.nodeObject;
376
+ export const nodeObjectIntent: typeof TSL.nodeObjectIntent;
334
377
  export const nodeObjects: typeof TSL.nodeObjects;
335
378
  export const nodeProxy: typeof TSL.nodeProxy;
379
+ export const nodeProxyIntent: typeof TSL.nodeProxyIntent;
336
380
  export const normalFlat: typeof TSL.normalFlat;
337
381
  export const normalGeometry: typeof TSL.normalGeometry;
338
382
  export const normalLocal: typeof TSL.normalLocal;
@@ -352,6 +396,8 @@ export const objectRadius: typeof TSL.objectRadius;
352
396
  export const objectScale: typeof TSL.objectScale;
353
397
  export const objectViewPosition: typeof TSL.objectViewPosition;
354
398
  export const objectWorldMatrix: typeof TSL.objectWorldMatrix;
399
+ export const OnObjectUpdate: typeof TSL.OnObjectUpdate;
400
+ export const OnMaterialUpdate: typeof TSL.OnMaterialUpdate;
355
401
  export const oneMinus: typeof TSL.oneMinus;
356
402
  export const or: typeof TSL.or;
357
403
  export const orthographicDepthToViewZ: typeof TSL.orthographicDepthToViewZ;
@@ -372,6 +418,7 @@ export const passTexture: typeof TSL.passTexture;
372
418
  export const pcurve: typeof TSL.pcurve;
373
419
  export const perspectiveDepthToViewZ: typeof TSL.perspectiveDepthToViewZ;
374
420
  export const pmremTexture: typeof TSL.pmremTexture;
421
+ export const pointShadow: typeof TSL.pointShadow;
375
422
  export const pointUV: typeof TSL.pointUV;
376
423
  export const pointWidth: typeof TSL.pointWidth;
377
424
  export const positionGeometry: typeof TSL.positionGeometry;
@@ -394,7 +441,6 @@ export const range: typeof TSL.range;
394
441
  export const rangeFog: typeof TSL.rangeFog;
395
442
  export const rangeFogFactor: typeof TSL.rangeFogFactor;
396
443
  export const reciprocal: typeof TSL.reciprocal;
397
- export const lightProjectionUV: typeof TSL.lightProjectionUV;
398
444
  export const reference: typeof TSL.reference;
399
445
  export const referenceBuffer: typeof TSL.referenceBuffer;
400
446
  export const reflect: typeof TSL.reflect;
@@ -424,18 +470,19 @@ export const saturate: typeof TSL.saturate;
424
470
  export const saturation: typeof TSL.saturation;
425
471
  export const screen: typeof TSL.screen;
426
472
  export const screenCoordinate: typeof TSL.screenCoordinate;
473
+ export const screenDPR: typeof TSL.screenDPR;
427
474
  export const screenSize: typeof TSL.screenSize;
428
475
  export const screenUV: typeof TSL.screenUV;
429
476
  export const scriptable: typeof TSL.scriptable;
430
477
  export const scriptableValue: typeof TSL.scriptableValue;
431
478
  export const select: typeof TSL.select;
432
479
  export const setCurrentStack: typeof TSL.setCurrentStack;
480
+ export const setName: typeof TSL.setName;
433
481
  export const shaderStages: typeof TSL.shaderStages;
434
482
  export const shadow: typeof TSL.shadow;
435
- export const pointShadow: typeof TSL.pointShadow;
436
483
  export const shadowPositionWorld: typeof TSL.shadowPositionWorld;
437
- export const sharedUniformGroup: typeof TSL.sharedUniformGroup;
438
484
  export const shapeCircle: typeof TSL.shapeCircle;
485
+ export const sharedUniformGroup: typeof TSL.sharedUniformGroup;
439
486
  export const sheen: typeof TSL.sheen;
440
487
  export const sheenRoughness: typeof TSL.sheenRoughness;
441
488
  export const shiftLeft: typeof TSL.shiftLeft;
@@ -455,6 +502,7 @@ export const spritesheetUV: typeof TSL.spritesheetUV;
455
502
  export const sqrt: typeof TSL.sqrt;
456
503
  export const stack: typeof TSL.stack;
457
504
  export const step: typeof TSL.step;
505
+ export const stepElement: typeof TSL.stepElement;
458
506
  export const storage: typeof TSL.storage;
459
507
  export const storageBarrier: typeof TSL.storageBarrier;
460
508
  export const storageObject: typeof TSL.storageObject;
@@ -462,15 +510,35 @@ export const storageTexture: typeof TSL.storageTexture;
462
510
  export const string: typeof TSL.string;
463
511
  export const struct: typeof TSL.struct;
464
512
  export const sub: typeof TSL.sub;
513
+ export const subgroupAdd: typeof TSL.subgroupAdd;
514
+ export const subgroupAll: typeof TSL.subgroupAll;
515
+ export const subgroupAnd: typeof TSL.subgroupAnd;
516
+ export const subgroupAny: typeof TSL.subgroupAny;
517
+ export const subgroupBallot: typeof TSL.subgroupBallot;
518
+ export const subgroupBroadcast: typeof TSL.subgroupBroadcast;
519
+ export const subgroupBroadcastFirst: typeof TSL.subgroupBroadcastFirst;
465
520
  export const subBuild: typeof TSL.subBuild;
521
+ export const subgroupElect: typeof TSL.subgroupElect;
522
+ export const subgroupExclusiveAdd: typeof TSL.subgroupExclusiveAdd;
523
+ export const subgroupExclusiveMul: typeof TSL.subgroupExclusiveMul;
524
+ export const subgroupInclusiveAdd: typeof TSL.subgroupInclusiveAdd;
525
+ export const subgroupInclusiveMul: typeof TSL.subgroupInclusiveMul;
466
526
  export const subgroupIndex: typeof TSL.subgroupIndex;
527
+ export const subgroupMax: typeof TSL.subgroupMax;
528
+ export const subgroupMin: typeof TSL.subgroupMin;
529
+ export const subgroupMul: typeof TSL.subgroupMul;
530
+ export const subgroupOr: typeof TSL.subgroupOr;
531
+ export const subgroupShuffle: typeof TSL.subgroupShuffle;
532
+ export const subgroupShuffleDown: typeof TSL.subgroupShuffleDown;
533
+ export const subgroupShuffleUp: typeof TSL.subgroupShuffleUp;
534
+ export const subgroupShuffleXor: typeof TSL.subgroupShuffleXor;
467
535
  export const subgroupSize: typeof TSL.subgroupSize;
536
+ export const subgroupXor: typeof TSL.subgroupXor;
468
537
  export const tan: typeof TSL.tan;
469
538
  export const tangentGeometry: typeof TSL.tangentGeometry;
470
539
  export const tangentLocal: typeof TSL.tangentLocal;
471
540
  export const tangentView: typeof TSL.tangentView;
472
541
  export const tangentWorld: typeof TSL.tangentWorld;
473
- export const temp: typeof TSL.temp;
474
542
  export const texture: typeof TSL.texture;
475
543
  export const texture3D: typeof TSL.texture3D;
476
544
  export const textureBarrier: typeof TSL.textureBarrier;
@@ -482,9 +550,6 @@ export const textureSize: typeof TSL.textureSize;
482
550
  export const textureStore: typeof TSL.textureStore;
483
551
  export const thickness: typeof TSL.thickness;
484
552
  export const time: typeof TSL.time;
485
- export const timerDelta: typeof TSL.timerDelta;
486
- export const timerGlobal: typeof TSL.timerGlobal;
487
- export const timerLocal: typeof TSL.timerLocal;
488
553
  export const toneMapping: typeof TSL.toneMapping;
489
554
  export const toneMappingExposure: typeof TSL.toneMappingExposure;
490
555
  export const toonOutlinePass: typeof TSL.toonOutlinePass;
@@ -501,10 +566,12 @@ export const triplanarTexture: typeof TSL.triplanarTexture;
501
566
  export const triplanarTextures: typeof TSL.triplanarTextures;
502
567
  export const trunc: typeof TSL.trunc;
503
568
  export const uint: typeof TSL.uint;
569
+ export const uintBitsToFloat: typeof TSL.uintBitsToFloat;
504
570
  export const uniform: typeof TSL.uniform;
505
- export const uniformCubeTexture: typeof TSL.uniformCubeTexture;
506
571
  export const uniformArray: typeof TSL.uniformArray;
572
+ export const uniformCubeTexture: typeof TSL.uniformCubeTexture;
507
573
  export const uniformGroup: typeof TSL.uniformGroup;
574
+ export const uniformFlow: typeof TSL.uniformFlow;
508
575
  export const uniformTexture: typeof TSL.uniformTexture;
509
576
  export const unpremultiplyAlpha: typeof TSL.unpremultiplyAlpha;
510
577
  export const userData: typeof TSL.userData;
@@ -512,7 +579,6 @@ export const uv: typeof TSL.uv;
512
579
  export const uvec2: typeof TSL.uvec2;
513
580
  export const uvec3: typeof TSL.uvec3;
514
581
  export const uvec4: typeof TSL.uvec4;
515
- export const Var: typeof TSL.Var;
516
582
  export const varying: typeof TSL.varying;
517
583
  export const varyingProperty: typeof TSL.varyingProperty;
518
584
  export const vec2: typeof TSL.vec2;
@@ -522,6 +588,7 @@ export const vectorComponents: typeof TSL.vectorComponents;
522
588
  export const velocity: typeof TSL.velocity;
523
589
  export const vertexColor: typeof TSL.vertexColor;
524
590
  export const vertexIndex: typeof TSL.vertexIndex;
591
+ export const vertexStage: typeof TSL.vertexStage;
525
592
  export const vibrance: typeof TSL.vibrance;
526
593
  export const viewZToLogarithmicDepth: typeof TSL.viewZToLogarithmicDepth;
527
594
  export const viewZToOrthographicDepth: typeof TSL.viewZToOrthographicDepth;
@@ -132,6 +132,11 @@ export class AnimationClip {
132
132
  * The UUID of the animation clip.
133
133
  */
134
134
  readonly uuid: string;
135
+ /**
136
+ * An object that can be used to store custom data about the animation clip.
137
+ * It should not hold references to functions as these will not be cloned.
138
+ */
139
+ userData: Record<string, unknown>;
135
140
  /**
136
141
  * Sets the duration of this clip to the duration of its longest keyframe track.
137
142
  *
@@ -31,10 +31,15 @@ export class KeyframeTrack {
31
31
  *
32
32
  * @param {string} name - The keyframe track's name.
33
33
  * @param {Array<number>} times - A list of keyframe times.
34
- * @param {Array<number>} values - A list of keyframe values.
34
+ * @param {Array<number|string|boolean>} values - A list of keyframe values.
35
35
  * @param {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} [interpolation] - The interpolation type.
36
36
  */
37
- constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>, interpolation?: InterpolationModes);
37
+ constructor(
38
+ name: string,
39
+ times: ArrayLike<number>,
40
+ values: ArrayLike<number | string | boolean>,
41
+ interpolation?: InterpolationModes,
42
+ );
38
43
  /**
39
44
  * The track's name can refer to morph targets or bones or
40
45
  * possibly other values within an animated object. See {@link PropertyBinding#parseTrackName}
@@ -12,7 +12,7 @@ export class BooleanKeyframeTrack extends KeyframeTrack {
12
12
  *
13
13
  * @param {string} name - The keyframe track's name.
14
14
  * @param {Array<number>} times - A list of keyframe times.
15
- * @param {Array<number>} values - A list of keyframe values.
15
+ * @param {Array<boolean>} values - A list of keyframe values.
16
16
  */
17
- constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>);
17
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<boolean>);
18
18
  }
@@ -12,7 +12,7 @@ export class StringKeyframeTrack extends KeyframeTrack {
12
12
  *
13
13
  * @param {string} name - The keyframe track's name.
14
14
  * @param {Array<number>} times - A list of keyframe times.
15
- * @param {Array<number>} values - A list of keyframe values.
15
+ * @param {Array<string>} values - A list of keyframe values.
16
16
  */
17
- constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>);
17
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<string>);
18
18
  }
@@ -13,14 +13,6 @@ import { Vector4 } from "../math/Vector4.js";
13
13
  * @see {@link https://github.com/mrdoob/three.js/blob/master/src/cameras/Camera.js | Source}
14
14
  */
15
15
  export class Camera extends Object3D {
16
- /**
17
- * @remarks
18
- * Note that this class is not intended to be called directly; you probably want a
19
- * {@link PerspectiveCamera | PerspectiveCamera} or
20
- * {@link OrthographicCamera | OrthographicCamera} instead.
21
- */
22
- constructor();
23
-
24
16
  /**
25
17
  * Read-only flag to check if a given object is of type {@link Camera}.
26
18
  * @remarks This is a _constant_ value
@@ -65,6 +57,21 @@ export class Camera extends Object3D {
65
57
 
66
58
  viewport?: Vector4;
67
59
 
60
+ /**
61
+ * @remarks
62
+ * Note that this class is not intended to be called directly; you probably want a
63
+ * {@link PerspectiveCamera | PerspectiveCamera} or
64
+ * {@link OrthographicCamera | OrthographicCamera} instead.
65
+ */
66
+ constructor();
67
+
68
+ /**
69
+ * The flag that indicates whether the camera uses a reversed depth buffer.
70
+ *
71
+ * @default false
72
+ */
73
+ get reversedDepth(): boolean;
74
+
68
75
  /**
69
76
  * Returns a {@link Vector3 | Vector3} representing the world space direction in which the {@link Camera} is looking.
70
77
  * @remarks Note: A {@link Camera} looks down its local, negative z-axis.
three/src/constants.d.ts CHANGED
@@ -337,6 +337,7 @@ export const UnsignedShort4444Type: 1017;
337
337
  export const UnsignedShort5551Type: 1018;
338
338
  export const UnsignedInt248Type: 1020;
339
339
  export const UnsignedInt5999Type: 35902;
340
+ export const UnsignedInt101111Type: 35899;
340
341
 
341
342
  export type AttributeGPUType = typeof FloatType | typeof IntType;
342
343
 
@@ -358,7 +359,8 @@ export type TextureDataType =
358
359
  | typeof UnsignedShort4444Type
359
360
  | typeof UnsignedShort5551Type
360
361
  | typeof UnsignedInt248Type
361
- | typeof UnsignedInt5999Type;
362
+ | typeof UnsignedInt5999Type
363
+ | typeof UnsignedInt101111Type;
362
364
 
363
365
  ///////////////////////////////////////////////////////////////////////////////
364
366
  // Pixel formats
@@ -774,7 +776,9 @@ export type GLSLVersion = typeof GLSL1 | typeof GLSL3;
774
776
 
775
777
  export const WebGLCoordinateSystem: 2000;
776
778
  export const WebGPUCoordinateSystem: 2001;
777
- export type CoordinateSystem = typeof WebGLCoordinateSystem | typeof WebGPUCoordinateSystem;
779
+ export type CoordinateSystem =
780
+ | typeof WebGLCoordinateSystem
781
+ | typeof WebGPUCoordinateSystem;
778
782
 
779
783
  export const TimestampQuery: {
780
784
  COMPUTE: "compute";
@@ -21,7 +21,7 @@
21
21
  *
22
22
  * @see https://threejs.org/examples/#webgl_morphtargets_sphere
23
23
  */
24
- export class Timer {
24
+ declare class Timer {
25
25
  constructor();
26
26
 
27
27
  /**
@@ -69,23 +69,9 @@ export class Timer {
69
69
  * Updates the internal state of the timer. This method should be called once per simulation step and before you
70
70
  * perform queries against the timer (e.g. via {@link getDelta()}).
71
71
  *
72
- * @param timescale (optional) The current time in milliseconds. Can be obtained from the {@link https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame | requestAnimationFrame} callback argument. If not provided, the current time will be determined with {@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now | performance.now}.
72
+ * @param timestamp The current time in milliseconds. Can be obtained from the {@link https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame | requestAnimationFrame} callback argument. If not provided, the current time will be determined with {@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now | performance.now}.
73
73
  */
74
74
  update(timestamp?: number): this;
75
75
  }
76
76
 
77
- /**
78
- * A timer that uses a fixed delta.
79
- */
80
- export class FixedTimer extends Timer {
81
- /**
82
- * @param fps The desired fixed delta expressed in frames per second.
83
- */
84
- constructor(fps?: number);
85
-
86
- /**
87
- * Updates the internal state of the timer. This method should be called once per simulation step and before you
88
- * perform queries against the timer (e.g. via {@link getDelta()}).
89
- */
90
- override update(): this;
91
- }
77
+ export { Timer };
@@ -1,4 +1,5 @@
1
1
  import { Object3D } from "../core/Object3D.js";
2
+ import { Color } from "../math/Color.js";
2
3
  import { Matrix4 } from "../math/Matrix4.js";
3
4
  import { Bone } from "../objects/Bone.js";
4
5
  import { LineSegments } from "../objects/LineSegments.js";
@@ -19,7 +20,7 @@ import { SkinnedMesh } from "../objects/SkinnedMesh.js";
19
20
  * @see {@link https://threejs.org/docs/index.html#api/en/helpers/SkeletonHelper | Official Documentation}
20
21
  * @see {@link https://github.com/mrdoob/three.js/blob/master/src/helpers/SkeletonHelper.js | Source}
21
22
  */
22
- export class SkeletonHelper extends LineSegments {
23
+ declare class SkeletonHelper extends LineSegments {
23
24
  /**
24
25
  * Create a new instance of {@link SkeletonHelper}
25
26
  * @param object Usually an instance of {@link THREE.SkinnedMesh | SkinnedMesh}.
@@ -42,20 +43,15 @@ export class SkeletonHelper extends LineSegments {
42
43
  */
43
44
  override readonly type: string | "SkeletonHelper";
44
45
 
45
- /**
46
- * The list of bones that the helper renders as {@link Line | Lines}.
47
- */
48
- bones: Bone[];
49
-
50
46
  /**
51
47
  * The object passed in the constructor.
52
48
  */
53
49
  root: SkinnedMesh | Object3D;
54
50
 
55
51
  /**
56
- * Reference to the {@link THREE.Object3D.matrixWorld | root.matrixWorld}.
52
+ * The list of bones that the helper renders as {@link Line | Lines}.
57
53
  */
58
- matrix: Matrix4;
54
+ bones: Bone[];
59
55
 
60
56
  /**
61
57
  * Is set to `false`, as the helper is using the {@link THREE.Object3D.matrixWorld | root.matrixWorld}.
@@ -64,10 +60,7 @@ export class SkeletonHelper extends LineSegments {
64
60
  */
65
61
  override matrixAutoUpdate: boolean;
66
62
 
67
- /**
68
- * Updates the helper.
69
- */
70
- update(): void;
63
+ setColors(color1: Color, color2: Color): this;
71
64
 
72
65
  /**
73
66
  * Frees the GPU-related resources allocated by this instance
@@ -76,3 +69,5 @@ export class SkeletonHelper extends LineSegments {
76
69
  */
77
70
  dispose(): void;
78
71
  }
72
+
73
+ export { SkeletonHelper };
@@ -14,6 +14,6 @@ export class FileLoader extends Loader<string | ArrayBuffer> {
14
14
  mimeType: string;
15
15
  responseType: string;
16
16
 
17
- setMimeType(mimeType: string): FileLoader;
18
- setResponseType(responseType: string): FileLoader;
17
+ setResponseType(value: string): this;
18
+ setMimeType(value: string): this;
19
19
  }
@@ -2,21 +2,21 @@ import { Loader } from "./Loader.js";
2
2
  import { LoadingManager } from "./LoadingManager.js";
3
3
 
4
4
  export class ImageBitmapLoader extends Loader<ImageBitmap> {
5
+ readonly isImageBitmapLoader: true;
6
+
7
+ /**
8
+ * @default { premultiplyAlpha: 'none' }
9
+ */
10
+ options: ImageBitmapOptions;
11
+
5
12
  constructor(manager?: LoadingManager);
6
13
 
14
+ setOptions(options: ImageBitmapOptions): this;
15
+
7
16
  load(
8
17
  url: string,
9
18
  onLoad?: (data: ImageBitmap) => void,
10
19
  onProgress?: (event: ProgressEvent) => void,
11
20
  onError?: (err: unknown) => void,
12
21
  ): void;
13
-
14
- /**
15
- * @default { premultiplyAlpha: 'none' }
16
- */
17
- options: undefined | object;
18
-
19
- readonly isImageBitmapLoader: true;
20
-
21
- setOptions(options: object): ImageBitmapLoader;
22
22
  }
@@ -45,6 +45,7 @@ export class Loader<TData = unknown, TUrl = string> {
45
45
  setPath(path: string): this;
46
46
  setResourcePath(resourcePath: string): this;
47
47
  setRequestHeader(requestHeader: { [header: string]: string }): this;
48
+ abort(): this;
48
49
 
49
50
  static DEFAULT_MATERIAL_NAME: string;
50
51
  }