Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions types/three/src/Three.WebGPU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,16 @@ export * from "./helpers/SkeletonHelper.js";
export * from "./helpers/SpotLightHelper.js";
export * from "./lights/AmbientLight.js";
export * from "./lights/DirectionalLight.js";
export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
export * from "./lights/HemisphereLight.js";
export * from "./lights/Light.js";
export * from "./lights/LightProbe.js";
export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
export * from "./lights/PointLight.js";
export type { PointLightShadow } from "./lights/PointLightShadow.js";
export * from "./lights/RectAreaLight.js";
export * from "./lights/SpotLight.js";
export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
export * from "./loaders/AnimationLoader.js";
export * from "./loaders/AudioLoader.js";
export * from "./loaders/BufferGeometryLoader.js";
Expand Down
4 changes: 4 additions & 0 deletions types/three/src/Three.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,16 @@ export * from "./helpers/SkeletonHelper.js";
export * from "./helpers/SpotLightHelper.js";
export * from "./lights/AmbientLight.js";
export * from "./lights/DirectionalLight.js";
export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
export * from "./lights/HemisphereLight.js";
export * from "./lights/Light.js";
export * from "./lights/LightProbe.js";
export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
export * from "./lights/PointLight.js";
export type { PointLightShadow } from "./lights/PointLightShadow.js";
export * from "./lights/RectAreaLight.js";
export * from "./lights/SpotLight.js";
export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
export * from "./loaders/AnimationLoader.js";
export * from "./loaders/AudioLoader.js";
export * from "./loaders/BufferGeometryLoader.js";
Expand Down
9 changes: 7 additions & 2 deletions types/three/src/math/Matrix3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,15 @@ export class Matrix3 {
/**
* Writes the elements of this matrix to an array in
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
* @param array (optional) array to store the resulting vector in. If not given a new array will be created.
*/
toArray(): Matrix3Tuple;
/**
* Writes the elements of this matrix to an array in
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
* @param array array to store the resulting vector in. If not given a new array will be created.
* @param offset (optional) offset in the array at which to put the result.
*/
toArray<TArray extends ArrayLike<number> = number[]>(array?: TArray, offset?: number): TArray;
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;

clone(): this;
}
9 changes: 7 additions & 2 deletions types/three/src/math/Matrix4.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,13 @@ export class Matrix4 {
/**
* Writes the elements of this matrix to an array in
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
* @param array (optional) array to store the resulting vector in.
*/
toArray(): Matrix4Tuple;
/**
* Writes the elements of this matrix to an array in
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
* @param array array to store the resulting vector in.
* @param offset (optional) offset in the array at which to put the result.
*/
toArray<TArray extends ArrayLike<number> = number[]>(array?: TArray, offset?: number): TArray;
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
}