@types/three 0.184.0 → 0.185.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 (208) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/Addons.d.ts +2 -0
  3. three/examples/jsm/controls/FirstPersonControls.d.ts +9 -0
  4. three/examples/jsm/controls/OrbitControls.d.ts +2 -2
  5. three/examples/jsm/controls/TransformControls.d.ts +32 -1
  6. three/examples/jsm/csm/CSMFrustum.d.ts +73 -13
  7. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  8. three/examples/jsm/exporters/GLTFExporter.d.ts +2 -2
  9. three/examples/jsm/exporters/PLYExporter.d.ts +5 -4
  10. three/examples/jsm/exporters/USDZExporter.d.ts +5 -1
  11. three/examples/jsm/generators/CityGenerator.d.ts +75 -0
  12. three/examples/jsm/generators/ForestGenerator.d.ts +79 -0
  13. three/examples/jsm/generators/TerrainGenerator.d.ts +67 -0
  14. three/examples/jsm/generators/TreeGenerator.d.ts +97 -0
  15. three/examples/jsm/generators/city/SidewalkGenerator.d.ts +40 -0
  16. three/examples/jsm/generators/city/SkyscraperGenerator.d.ts +83 -0
  17. three/examples/jsm/geometries/LoftGeometry.d.ts +83 -0
  18. three/examples/jsm/inspector/tabs/Parameters.d.ts +5 -2
  19. three/examples/jsm/lighting/ClusteredLighting.d.ts +45 -0
  20. three/examples/jsm/lighting/LightProbeGrid.d.ts +131 -13
  21. three/examples/jsm/loaders/DRACOLoader.d.ts +20 -6
  22. three/examples/jsm/loaders/EXRLoader.d.ts +2 -12
  23. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
  24. three/examples/jsm/loaders/HDRLoader.d.ts +2 -12
  25. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
  26. three/examples/jsm/loaders/LWOLoader.d.ts +6 -0
  27. three/examples/jsm/loaders/RGBELoader.d.ts +1 -7
  28. three/examples/jsm/loaders/SVGLoader.d.ts +9 -6
  29. three/examples/jsm/loaders/TGALoader.d.ts +2 -2
  30. three/examples/jsm/loaders/TIFFLoader.d.ts +2 -11
  31. three/examples/jsm/loaders/USDLoader.d.ts +6 -1
  32. three/examples/jsm/misc/TileCreasedNormalsPlugin.d.ts +49 -0
  33. three/examples/jsm/objects/MarchingCubes.d.ts +2 -2
  34. three/examples/jsm/objects/Reflector.d.ts +38 -5
  35. three/examples/jsm/objects/SkyMesh.d.ts +1 -1
  36. three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
  37. three/examples/jsm/tsl/display/BloomNode.d.ts +23 -6
  38. three/examples/jsm/tsl/display/ImportanceSampledEnvironment.d.ts +84 -0
  39. three/examples/jsm/tsl/display/RecurrentDenoiseNode.d.ts +89 -0
  40. three/examples/jsm/tsl/display/SSAAPassNode.d.ts +0 -2
  41. three/examples/jsm/tsl/display/SSGINode.d.ts +4 -1
  42. three/examples/jsm/tsl/display/SSRNode.d.ts +303 -30
  43. three/examples/jsm/tsl/display/TRAANode.d.ts +1 -1
  44. three/examples/jsm/tsl/display/TemporalReprojectNode.d.ts +64 -0
  45. three/examples/jsm/tsl/lighting/ClusteredLightsNode.d.ts +54 -0
  46. three/examples/jsm/tsl/math/curlNoise.d.ts +38 -0
  47. three/examples/jsm/tsl/utils/GroundedSkybox.d.ts +17 -0
  48. three/examples/jsm/tsl/utils/RNoise.d.ts +12 -0
  49. three/examples/jsm/tsl/utils/SpecularHelpers.d.ts +20 -0
  50. three/examples/jsm/webxr/WebGLXRFallback.d.ts +14 -0
  51. three/package.json +3 -3
  52. three/src/Three.TSL.d.ts +10 -3
  53. three/src/Three.WebGPU.Nodes.d.ts +2 -2
  54. three/src/Three.WebGPU.d.ts +5 -3
  55. three/src/animation/AnimationClip.d.ts +0 -10
  56. three/src/cameras/Camera.d.ts +1 -1
  57. three/src/core/InterleavedBuffer.d.ts +1 -1
  58. three/src/core/Object3D.d.ts +8 -4
  59. three/src/core/RenderTarget.d.ts +11 -0
  60. three/src/core/Timer.d.ts +1 -1
  61. three/src/core/UniformsGroup.d.ts +1 -1
  62. three/src/extras/Controls.d.ts +6 -5
  63. three/src/extras/core/ShapePath.d.ts +61 -65
  64. three/src/loaders/DataTextureLoader.d.ts +37 -3
  65. three/src/loaders/MaterialLoader.d.ts +8 -0
  66. three/src/materials/LineBasicMaterial.d.ts +5 -0
  67. three/src/materials/Material.d.ts +9 -1
  68. three/src/materials/MeshBasicMaterial.d.ts +30 -0
  69. three/src/materials/MeshDepthMaterial.d.ts +13 -0
  70. three/src/materials/MeshDistanceMaterial.d.ts +13 -0
  71. three/src/materials/MeshLambertMaterial.d.ts +50 -1
  72. three/src/materials/MeshMatcapMaterial.d.ts +31 -1
  73. three/src/materials/MeshNormalMaterial.d.ts +11 -1
  74. three/src/materials/MeshPhongMaterial.d.ts +50 -1
  75. three/src/materials/MeshPhysicalMaterial.d.ts +50 -0
  76. three/src/materials/MeshStandardMaterial.d.ts +53 -1
  77. three/src/materials/MeshToonMaterial.d.ts +43 -1
  78. three/src/materials/PointsMaterial.d.ts +9 -0
  79. three/src/materials/ShaderMaterial.d.ts +2 -0
  80. three/src/materials/SpriteMaterial.d.ts +9 -0
  81. three/src/materials/nodes/Line2NodeMaterial.d.ts +18 -13
  82. three/src/materials/nodes/NodeMaterial.d.ts +33 -13
  83. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +0 -84
  84. three/src/math/Box2.d.ts +3 -3
  85. three/src/math/Box3.d.ts +255 -19
  86. three/src/math/Color.d.ts +10 -10
  87. three/src/math/FrustumArray.d.ts +75 -16
  88. three/src/math/Interpolant.d.ts +111 -8
  89. three/src/math/Matrix2.d.ts +1 -1
  90. three/src/math/Matrix3.d.ts +10 -1
  91. three/src/math/Matrix4.d.ts +329 -105
  92. three/src/math/Vector2.d.ts +1 -2
  93. three/src/math/Vector3.d.ts +3 -4
  94. three/src/math/Vector4.d.ts +1 -2
  95. three/src/math/interpolants/BezierInterpolant.d.ts +19 -3
  96. three/src/math/interpolants/CubicInterpolant.d.ts +18 -3
  97. three/src/math/interpolants/DiscreteInterpolant.d.ts +8 -3
  98. three/src/math/interpolants/LinearInterpolant.d.ts +7 -3
  99. three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +7 -3
  100. three/src/nodes/Nodes.d.ts +4 -13
  101. three/src/nodes/TSL.d.ts +7 -5
  102. three/src/nodes/accessors/Batch.d.ts +19 -0
  103. three/src/nodes/accessors/Instance.d.ts +34 -0
  104. three/src/nodes/accessors/MaterialNode.d.ts +86 -79
  105. three/src/nodes/accessors/Morph.d.ts +11 -0
  106. three/src/nodes/accessors/Skinning.d.ts +23 -0
  107. three/src/nodes/accessors/StorageBufferNode.d.ts +22 -23
  108. three/src/nodes/accessors/StorageTexture3DNode.d.ts +17 -0
  109. three/src/nodes/accessors/StorageTextureNode.d.ts +6 -4
  110. three/src/nodes/accessors/TextureNode.d.ts +15 -10
  111. three/src/nodes/core/ArrayNode.d.ts +16 -8
  112. three/src/nodes/core/ContextNode.d.ts +5 -6
  113. three/src/nodes/core/LightingModel.d.ts +2 -0
  114. three/src/nodes/core/Node.d.ts +50 -51
  115. three/src/nodes/core/NodeBuilder.d.ts +1 -133
  116. three/src/nodes/core/OverrideContextNode.d.ts +92 -0
  117. three/src/nodes/core/PropertyNode.d.ts +13 -2
  118. three/src/nodes/core/StructNode.d.ts +0 -2
  119. three/src/nodes/core/StructTypeNode.d.ts +5 -4
  120. three/src/nodes/core/UniformNode.d.ts +48 -9
  121. three/src/nodes/display/BlendModes.d.ts +72 -11
  122. three/src/nodes/display/FrontFacingNode.d.ts +62 -3
  123. three/src/nodes/display/PassNode.d.ts +0 -2
  124. three/src/nodes/display/PremultiplyAlphaFunctions.d.ts +37 -0
  125. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +53 -45
  126. three/src/nodes/lighting/LightingContextNode.d.ts +9 -2
  127. three/src/nodes/lighting/LightsNode.d.ts +4 -4
  128. three/src/nodes/math/MathNode.d.ts +358 -304
  129. three/src/nodes/math/OperatorNode.d.ts +253 -82
  130. three/src/nodes/tsl/TSLCore.d.ts +16 -9
  131. three/src/nodes/utils/ArrayElementNode.d.ts +5 -4
  132. three/src/nodes/utils/EquirectUV.d.ts +31 -1
  133. three/src/nodes/utils/Packing.d.ts +50 -3
  134. three/src/nodes/utils/RTTNode.d.ts +7 -12
  135. three/src/nodes/utils/Remap.d.ts +216 -29
  136. three/src/nodes/utils/SampleNode.d.ts +18 -8
  137. three/src/objects/BatchedMesh.d.ts +1 -1
  138. three/src/objects/InstancedMesh.d.ts +0 -8
  139. three/src/objects/Skeleton.d.ts +0 -2
  140. three/src/renderers/common/Backend.d.ts +0 -3
  141. three/src/renderers/common/CanvasTarget.d.ts +0 -49
  142. three/src/renderers/common/ClippingContext.d.ts +6 -1
  143. three/src/renderers/common/CubeRenderTarget.d.ts +2 -1
  144. three/src/renderers/common/Info.d.ts +26 -66
  145. three/src/renderers/common/InspectorBase.d.ts +0 -7
  146. three/src/renderers/common/Lighting.d.ts +49 -5
  147. three/src/renderers/common/Renderer.d.ts +34 -458
  148. three/src/renderers/common/RendererUtils.d.ts +1 -2
  149. three/src/renderers/common/TimestampQueryPool.d.ts +1 -1
  150. three/src/renderers/common/XRManager.d.ts +32 -299
  151. three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -117
  152. three/src/renderers/webgl/WebGLPrograms.d.ts +2 -0
  153. three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -1
  154. three/src/renderers/webgl/WebGLState.d.ts +2 -0
  155. three/src/renderers/webgl-fallback/WebGLBackend.d.ts +1 -1
  156. three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.d.ts +0 -10
  157. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +0 -1
  158. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +5 -121
  159. three/src/textures/CubeDepthTexture.d.ts +2 -3
  160. three/src/textures/DataTexture.d.ts +2 -1
  161. three/src/textures/DepthTexture.d.ts +5 -5
  162. three/examples/jsm/lighting/TiledLighting.d.ts +0 -9
  163. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +0 -31
  164. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +0 -22
  165. three/src/nodes/accessors/BatchNode.d.ts +0 -12
  166. three/src/nodes/accessors/InstanceNode.d.ts +0 -30
  167. three/src/nodes/accessors/InstancedMeshNode.d.ts +0 -10
  168. three/src/nodes/accessors/MorphNode.d.ts +0 -14
  169. three/src/nodes/accessors/SkinningNode.d.ts +0 -32
  170. three/src/renderers/common/Animation.d.ts +0 -102
  171. three/src/renderers/common/Attributes.d.ts +0 -59
  172. three/src/renderers/common/Background.d.ts +0 -47
  173. three/src/renderers/common/BindGroup.d.ts +0 -39
  174. three/src/renderers/common/Binding.d.ts +0 -50
  175. three/src/renderers/common/Bindings.d.ts +0 -132
  176. three/src/renderers/common/Buffer.d.ts +0 -90
  177. three/src/renderers/common/ChainMap.d.ts +0 -49
  178. three/src/renderers/common/Color4.d.ts +0 -55
  179. three/src/renderers/common/ComputePipeline.d.ts +0 -34
  180. three/src/renderers/common/DataMap.d.ts +0 -42
  181. three/src/renderers/common/Geometries.d.ts +0 -111
  182. three/src/renderers/common/Pipeline.d.ts +0 -29
  183. three/src/renderers/common/Pipelines.d.ts +0 -186
  184. three/src/renderers/common/ProgrammableStage.d.ts +0 -73
  185. three/src/renderers/common/RenderBundle.d.ts +0 -25
  186. three/src/renderers/common/RenderBundles.d.ts +0 -34
  187. three/src/renderers/common/RenderContext.d.ts +0 -235
  188. three/src/renderers/common/RenderContexts.d.ts +0 -47
  189. three/src/renderers/common/RenderList.d.ts +0 -226
  190. three/src/renderers/common/RenderLists.d.ts +0 -46
  191. three/src/renderers/common/RenderObject.d.ts +0 -448
  192. three/src/renderers/common/RenderObjectPipeline.d.ts +0 -33
  193. three/src/renderers/common/RenderObjects.d.ts +0 -151
  194. three/src/renderers/common/SampledTexture.d.ts +0 -28
  195. three/src/renderers/common/Sampler.d.ts +0 -19
  196. three/src/renderers/common/Textures.d.ts +0 -125
  197. three/src/renderers/common/Uniform.d.ts +0 -262
  198. three/src/renderers/common/UniformBuffer.d.ts +0 -20
  199. three/src/renderers/common/UniformsGroup.d.ts +0 -152
  200. three/src/renderers/common/XRRenderTarget.d.ts +0 -67
  201. three/src/renderers/common/nodes/NodeBuilderState.d.ts +0 -121
  202. three/src/renderers/common/nodes/NodeManager.d.ts +0 -309
  203. three/src/renderers/common/nodes/NodeSampledTexture.d.ts +0 -29
  204. three/src/renderers/common/nodes/NodeSampler.d.ts +0 -12
  205. three/src/renderers/common/nodes/NodeUniform.d.ts +0 -250
  206. three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +0 -41
  207. three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -6
  208. three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -6
@@ -6,22 +6,81 @@ import { Box3 } from "./Box3.js";
6
6
  import { Sphere } from "./Sphere.js";
7
7
  import { Vector3 } from "./Vector3.js";
8
8
 
9
- declare class FrustumArray {
9
+ /**
10
+ * FrustumArray is used to determine if an object is visible in at least one camera
11
+ * from an array of cameras. This is particularly useful for multi-view renderers.
12
+ */
13
+ export class FrustumArray {
14
+ /**
15
+ * The coordinate system to use.
16
+ *
17
+ * @type {WebGLCoordinateSystem|WebGPUCoordinateSystem}
18
+ * @default WebGLCoordinateSystem
19
+ */
10
20
  coordinateSystem: CoordinateSystem;
11
-
12
- constructor();
13
-
14
- intersectsObject(object: Object3D, cameraArray: ArrayCamera): boolean;
15
-
16
- intersectsSprite(sprite: Sprite, cameraArray: ArrayCamera): boolean;
17
-
18
- intersectsSprite(sphere: Sphere, cameraArray: ArrayCamera): boolean;
19
-
20
- intersectsBox(box: Box3, cameraArray: ArrayCamera): boolean;
21
-
22
- containsPoint(point: Vector3, cameraArray: ArrayCamera): boolean;
23
-
21
+ /**
22
+ * Computes and caches a frustum for each camera of the given array camera.
23
+ *
24
+ * @param {ArrayCamera} cameraArray - The array camera whose sub-cameras define the frustums.
25
+ * @return {FrustumArray} A reference to this frustum array.
26
+ */
27
+ setFromArrayCamera(cameraArray: ArrayCamera): FrustumArray;
28
+ /**
29
+ * Returns `true` if the 3D object's bounding sphere is intersecting any cached frustum.
30
+ *
31
+ * {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
32
+ *
33
+ * @param {Object3D} object - The 3D object to test.
34
+ * @return {boolean} Whether the 3D object is visible in any camera.
35
+ */
36
+ intersectsObject(object: Object3D): boolean;
37
+ /**
38
+ * Returns `true` if the given sprite is intersecting any cached frustum.
39
+ *
40
+ * {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
41
+ *
42
+ * @param {Sprite} sprite - The sprite to test.
43
+ * @return {boolean} Whether the sprite is visible in any camera.
44
+ */
45
+ intersectsSprite(sprite: Sprite): boolean;
46
+ /**
47
+ * Returns `true` if the given bounding sphere is intersecting any cached frustum.
48
+ *
49
+ * {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
50
+ *
51
+ * @param {Sphere} sphere - The bounding sphere to test.
52
+ * @return {boolean} Whether the sphere is visible in any camera.
53
+ */
54
+ intersectsSphere(sphere: Sphere): boolean;
55
+ /**
56
+ * Returns `true` if the given bounding box is intersecting any cached frustum.
57
+ *
58
+ * {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
59
+ *
60
+ * @param {Box3} box - The bounding box to test.
61
+ * @return {boolean} Whether the box is visible in any camera.
62
+ */
63
+ intersectsBox(box: Box3): boolean;
64
+ /**
65
+ * Returns `true` if the given point lies within any cached frustum.
66
+ *
67
+ * {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
68
+ *
69
+ * @param {Vector3} point - The point to test.
70
+ * @return {boolean} Whether the point is visible in any camera.
71
+ */
72
+ containsPoint(point: Vector3): boolean;
73
+ /**
74
+ * Copies the values of the given frustum array to this instance.
75
+ *
76
+ * @param {FrustumArray} frustumArray - The frustum array to copy.
77
+ * @return {FrustumArray} A reference to this frustum array.
78
+ */
79
+ copy(source: FrustumArray): this;
80
+ /**
81
+ * Returns a new frustum array with copied values from this instance.
82
+ *
83
+ * @return {FrustumArray} A clone of this instance.
84
+ */
24
85
  clone(): FrustumArray;
25
86
  }
26
-
27
- export { FrustumArray };
@@ -1,10 +1,113 @@
1
- export abstract class Interpolant {
2
- constructor(parameterPositions: any, sampleValues: any, sampleSize: number, resultBuffer?: any);
1
+ import { TypedArray } from "../core/BufferAttribute.js";
3
2
 
4
- parameterPositions: any;
5
- sampleValues: any;
6
- valueSize: number;
7
- resultBuffer: any;
8
-
9
- evaluate(time: number): any;
3
+ /**
4
+ * Abstract base class of interpolants over parametric samples.
5
+ *
6
+ * The parameter domain is one dimensional, typically the time or a path
7
+ * along a curve defined by the data.
8
+ *
9
+ * The sample values can have any dimensionality and derived classes may
10
+ * apply special interpretations to the data.
11
+ *
12
+ * This class provides the interval seek in a Template Method, deferring
13
+ * the actual interpolation to derived classes.
14
+ *
15
+ * Time complexity is O(1) for linear access crossing at most two points
16
+ * and O(log N) for random access, where N is the number of positions.
17
+ *
18
+ * References: {@link http://www.oodesign.com/template-method-pattern.html}
19
+ *
20
+ * @abstract
21
+ */
22
+ export abstract class Interpolant<TSettings = {}> {
23
+ /**
24
+ * Constructs a new interpolant.
25
+ *
26
+ * @param {TypedArray} parameterPositions - The parameter positions hold the interpolation factors.
27
+ * @param {TypedArray} sampleValues - The sample values.
28
+ * @param {number} sampleSize - The sample size
29
+ * @param {TypedArray} [resultBuffer] - The result buffer.
30
+ */
31
+ constructor(
32
+ parameterPositions: TypedArray,
33
+ sampleValues: TypedArray,
34
+ sampleSize: number,
35
+ resultBuffer?: TypedArray,
36
+ );
37
+ /**
38
+ * The parameter positions.
39
+ *
40
+ * @type {TypedArray}
41
+ */
42
+ parameterPositions: TypedArray;
43
+ /**
44
+ * The result buffer.
45
+ *
46
+ * @type {TypedArray}
47
+ */
48
+ resultBuffer: TypedArray;
49
+ /**
50
+ * The sample values.
51
+ *
52
+ * @type {TypedArray}
53
+ */
54
+ sampleValues: TypedArray;
55
+ /**
56
+ * The value size.
57
+ *
58
+ * @type {TypedArray}
59
+ */
60
+ valueSize: TypedArray;
61
+ /**
62
+ * The interpolation settings.
63
+ *
64
+ * @type {?Object}
65
+ * @default null
66
+ */
67
+ settings: TSettings | null;
68
+ /**
69
+ * The default settings object.
70
+ *
71
+ * @type {Object}
72
+ */
73
+ DefaultSettings_: TSettings;
74
+ /**
75
+ * Evaluate the interpolant at position `t`.
76
+ *
77
+ * @param {number} t - The interpolation factor.
78
+ * @return {TypedArray} The result buffer.
79
+ */
80
+ evaluate(t: number): TypedArray;
81
+ /**
82
+ * Returns the interpolation settings.
83
+ *
84
+ * @return {Object} The interpolation settings.
85
+ */
86
+ getSettings_(): unknown;
87
+ /**
88
+ * Copies a sample value to the result buffer.
89
+ *
90
+ * @param {number} index - An index into the sample value buffer.
91
+ * @return {TypedArray} The result buffer.
92
+ */
93
+ copySampleValue_(index: number): TypedArray;
94
+ /**
95
+ * Copies a sample value to the result buffer.
96
+ *
97
+ * @abstract
98
+ * @param {number} i1 - An index into the sample value buffer.
99
+ * @param {number} t0 - The previous interpolation factor.
100
+ * @param {number} t - The current interpolation factor.
101
+ * @param {number} t1 - The next interpolation factor.
102
+ * @return {TypedArray} The result buffer.
103
+ */
104
+ abstract interpolate_(i1: number, t0: number, t: number, t1: number): TypedArray;
105
+ /**
106
+ * Optional method that is executed when the interval has changed.
107
+ *
108
+ * @param {number} i1 - An index into the sample value buffer.
109
+ * @param {number} t0 - The previous interpolation factor.
110
+ * @param {number} t - The current interpolation factor.
111
+ */
112
+ intervalChanged_(i1: number, t0: number, t: number): void;
10
113
  }
@@ -12,7 +12,7 @@ export type Matrix2Tuple = [
12
12
  * const m = new Matrix2();
13
13
  */
14
14
  export class Matrix2 {
15
- static readonly isMatrix2: boolean;
15
+ readonly isMatrix2: true;
16
16
 
17
17
  /**
18
18
  * A {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major} list of matrix values.
@@ -17,7 +17,7 @@ export type Matrix3Tuple = [
17
17
  ];
18
18
 
19
19
  export class Matrix3 {
20
- static readonly isMatrix3: boolean;
20
+ readonly isMatrix3: true;
21
21
 
22
22
  /**
23
23
  * Array with matrix values.
@@ -99,10 +99,19 @@ export class Matrix3 {
99
99
 
100
100
  setUvTransform(tx: number, ty: number, sx: number, sy: number, rotation: number, cx: number, cy: number): this;
101
101
 
102
+ /**
103
+ * @deprecated Use .makeScale() instead.
104
+ */
102
105
  scale(sx: number, sy: number): this;
103
106
 
107
+ /**
108
+ * @deprecated Use .makeRotation() instead.
109
+ */
104
110
  rotate(theta: number): this;
105
111
 
112
+ /**
113
+ * @deprecated Use .makeTranslation() instead.
114
+ */
106
115
  translate(tx: number, ty: number): this;
107
116
 
108
117
  /**