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
2 changes: 1 addition & 1 deletion src/core/BufferGeometry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class BufferGeometry extends EventDispatcher {
toNonIndexed(): BufferGeometry;

toJSON(): any;
clone(): this;
clone(): BufferGeometry;
copy( source: BufferGeometry ): this;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/Face3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Face3 {
*/
materialIndex: number;

clone(): this;
clone(): Face3;
copy( source: Face3 ): this;

}
2 changes: 1 addition & 1 deletion src/core/Geometry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class Geometry extends EventDispatcher {
/**
* Creates a new clone of the Geometry.
*/
clone(): this;
clone(): Geometry;

copy( source: Geometry ): this;

Expand Down
2 changes: 2 additions & 0 deletions src/core/InstancedBufferGeometry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export class InstancedBufferGeometry extends BufferGeometry {
*/
type: string;

isInstancedBufferGeometry: boolean;

groups: { start: number; count: number; instances: number }[];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/InterleavedBuffer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class InterleavedBuffer {
uuid: string;

setUsage( usage: Usage ): InterleavedBuffer;
clone( data: object ): this;
clone( data: object ): InterleavedBuffer;
copy( source: InterleavedBuffer ): this;
copyAt(
index1: number,
Expand Down
2 changes: 1 addition & 1 deletion src/core/Object3D.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class Object3D extends EventDispatcher {
images: any;
} ): any;

clone( recursive?: boolean ): this;
clone( recursive?: boolean ): Object3D;

/**
*
Expand Down
2 changes: 1 addition & 1 deletion src/lights/LightShadow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class LightShadow {
needsUpdate: boolean;

copy( source: LightShadow ): this;
clone( recursive?: boolean ): this;
clone( recursive?: boolean ): LightShadow;
toJSON(): any;
getFrustum(): number;
updateMatrices( light: Light, viewportIndex?: number ): void;
Expand Down
2 changes: 1 addition & 1 deletion src/materials/Material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class Material extends EventDispatcher {
/**
* Return a new material with the same parameters as this material.
*/
clone(): this;
clone(): Material;

/**
* Copy the parameters from the passed material into this material.
Expand Down
2 changes: 1 addition & 1 deletion src/math/Box2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Box2 {
set( min: Vector2, max: Vector2 ): Box2;
setFromPoints( points: Vector2[] ): Box2;
setFromCenterAndSize( center: Vector2, size: Vector2 ): Box2;
clone(): this;
clone(): Box2;
copy( box: Box2 ): this;
makeEmpty(): Box2;
isEmpty(): boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Box3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Box3 {
setFromPoints( points: Vector3[] ): this;
setFromCenterAndSize( center: Vector3, size: Vector3 ): this;
setFromObject( object: Object3D ): this;
clone(): this;
clone(): Box3;
copy( box: Box3 ): this;
makeEmpty(): this;
isEmpty(): boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Color.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Color {
/**
* Clones this color.
*/
clone(): this;
clone(): Color;

/**
* Copies given color.
Expand Down
2 changes: 1 addition & 1 deletion src/math/Cylindrical.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Cylindrical {
*/
y: number;

clone(): this;
clone(): Cylindrical;
copy( other: Cylindrical ): this;
set( radius: number, theta: number, y: number ): this;
setFromVector3( vec3: Vector3 ): this;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Euler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Euler {
_onChangeCallback: Function;

set( x: number, y: number, z: number, order?: string ): Euler;
clone(): this;
clone(): Euler;
copy( euler: Euler ): this;
setFromRotationMatrix( m: Matrix4, order?: string ): Euler;
setFromQuaternion( q: Quaternion, order?: string ): Euler;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Frustum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Frustum {
p4: Plane,
p5: Plane
): Frustum;
clone(): this;
clone(): Frustum;
copy( frustum: Frustum ): this;
setFromProjectionMatrix( m: Matrix4 ): this;
intersectsObject( object: Object3D ): boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Line3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Line3 {
end: Vector3;

set( start?: Vector3, end?: Vector3 ): Line3;
clone(): this;
clone(): Line3;
copy( line: Line3 ): this;
getCenter( target: Vector3 ): Vector3;
delta( target: Vector3 ): Vector3;
Expand Down
4 changes: 2 additions & 2 deletions src/math/Matrix3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Matrix {
/**
* clone():T;
*/
clone(): this;
clone(): Matrix;
}

/**
Expand Down Expand Up @@ -77,7 +77,7 @@ export class Matrix3 implements Matrix {
n33: number
): Matrix3;
identity(): Matrix3;
clone(): this;
clone(): Matrix3;
copy( m: Matrix3 ): this;
extractBasis( xAxis: Vector3, yAxis: Vector3, zAxis: Vector3 ): Matrix3;
setFromMatrix4( m: Matrix4 ): Matrix3;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Matrix4.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Matrix4 implements Matrix {
* Resets this matrix to identity.
*/
identity(): Matrix4;
clone(): this;
clone(): Matrix4;
copy( m: Matrix4 ): this;
copyPosition( m: Matrix4 ): Matrix4;
extractBasis( xAxis: Vector3, yAxis: Vector3, zAxis: Vector3 ): Matrix4;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Plane.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Plane {
setComponents( x: number, y: number, z: number, w: number ): Plane;
setFromNormalAndCoplanarPoint( normal: Vector3, point: Vector3 ): Plane;
setFromCoplanarPoints( a: Vector3, b: Vector3, c: Vector3 ): Plane;
clone(): this;
clone(): Plane;
copy( plane: Plane ): this;
normalize(): Plane;
negate(): Plane;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Quaternion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Quaternion {
/**
* Clones this quaternion.
*/
clone(): this;
clone(): Quaternion;

/**
* Copies values of q to this quaternion.
Expand Down
2 changes: 1 addition & 1 deletion src/math/Ray.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Ray {
direction: Vector3;

set( origin: Vector3, direction: Vector3 ): Ray;
clone(): this;
clone(): Ray;
copy( ray: Ray ): this;
at( t: number, target: Vector3 ): Vector3;
lookAt( v: Vector3 ): Ray;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Sphere.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Sphere {

set( center: Vector3, radius: number ): Sphere;
setFromPoints( points: Vector3[], optionalCenter?: Vector3 ): Sphere;
clone(): this;
clone(): Sphere;
copy( sphere: Sphere ): this;
isEmpty(): boolean;
makeEmpty(): this;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Spherical.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Spherical {
theta: number;

set( radius: number, phi: number, theta: number ): this;
clone(): this;
clone(): Spherical;
copy( other: Spherical ): this;
makeSafe(): this;
setFromVector3( v: Vector3 ): this;
Expand Down
2 changes: 1 addition & 1 deletion src/math/Triangle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Triangle {
i1: number,
i2: number
): Triangle;
clone(): this;
clone(): Triangle;
copy( triangle: Triangle ): this;
getArea(): number;
getMidpoint( target: Vector3 ): Vector3;
Expand Down
4 changes: 2 additions & 2 deletions src/math/Vector2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export interface Vector {
/**
* clone():T;
*/
clone(): this;
clone(): Vector;
}

/**
Expand Down Expand Up @@ -186,7 +186,7 @@ export class Vector2 implements Vector {
/**
* Returns a new Vector2 instance with the same `x` and `y` values.
*/
clone(): this;
clone(): Vector2;

/**
* Copies value of v to this vector.
Expand Down
2 changes: 1 addition & 1 deletion src/math/Vector3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Vector3 implements Vector {
/**
* Clones this vector.
*/
clone(): this;
clone(): Vector3;

/**
* Copies value of v to this vector.
Expand Down
2 changes: 1 addition & 1 deletion src/math/Vector4.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class Vector4 implements Vector {
/**
* Clones this vector.
*/
clone(): this;
clone(): Vector4;

/**
* Copies value of v to this vector.
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/WebGLRenderTarget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class WebGLRenderTarget extends EventDispatcher {
generateMipmaps: any;

setSize( width: number, height: number ): void;
clone(): this;
clone(): WebGLRenderTarget;
copy( source: WebGLRenderTarget ): this;
dispose(): void;

Expand Down
4 changes: 2 additions & 2 deletions src/scenes/Fog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Color } from './../math/Color';
export interface IFog {
name: string;
color: Color;
clone(): this;
clone(): IFog;
toJSON(): any;
}

Expand Down Expand Up @@ -38,7 +38,7 @@ export class Fog implements IFog {

readonly isFog: true;

clone(): this;
clone(): Fog;
toJSON(): any;

}
2 changes: 1 addition & 1 deletion src/scenes/FogExp2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class FogExp2 implements IFog {

readonly isFogExp2: true;

clone(): this;
clone(): FogExp2;
toJSON(): any;

}
2 changes: 1 addition & 1 deletion src/textures/Texture.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class Texture extends EventDispatcher {
static DEFAULT_IMAGE: any;
static DEFAULT_MAPPING: any;

clone(): this;
clone(): Texture;
copy( source: Texture ): this;
toJSON( meta: any ): any;
dispose(): void;
Expand Down