@@ -10,6 +10,7 @@ export class AnimationObjectGroup {
inUse: number;
};
+ isAnimationObjectGroup: boolean;
add( ...args: any[] ): void;
remove( ...args: any[] ): void;
@@ -15,5 +15,6 @@ export class AmbientLight extends Light {
constructor( color?: Color | string | number, intensity?: number );
castShadow: boolean;
+ isAmbientLight: boolean;
}
@@ -30,5 +30,6 @@ export class DirectionalLight extends Light {
intensity: number;
shadow: DirectionalLightShadow;
+ isDirectionalLight: boolean;
@@ -4,5 +4,6 @@ import { LightShadow } from './LightShadow';
export class DirectionalLightShadow extends LightShadow {
camera: OrthographicCamera;
+ isDirectionalLightShadow: boolean;
@@ -12,5 +12,6 @@ export class HemisphereLight extends Light {
skyColor: Color;
groundColor: Color;
+ isHemisphereLight: boolean;
@@ -14,5 +14,6 @@ export class RectAreaLight extends Light {
width: number;
height: number;
+ isRectAreaLight: boolean;
@@ -51,5 +51,6 @@ export class SpotLight extends Light {
shadow: SpotLightShadow;
power: number;
penumbra: number;
+ isSpotLight: boolean;
export class SpotLightShadow extends LightShadow {
camera: PerspectiveCamera;
+ isSpotLightShadow: true;
@@ -11,6 +11,7 @@ export class Box3 {
max: Vector3;
min: Vector3;
+ isBox3: boolean;
set( min: Vector3, max: Vector3 ): this;
setFromArray( array: ArrayLike<number> ): this;
@@ -10,6 +10,8 @@ export class Euler {
y: number;
z: number;
order: string;
+ isEuler: boolean;
+
_onChangeCallback: Function;
set( x: number, y: number, z: number, order?: string ): Euler;
@@ -10,6 +10,7 @@ export interface Matrix {
* Array with matrix values.
*/
elements: number[];
+ isMatrix3: boolean;
/**
* identity():T;
@@ -30,6 +30,8 @@ export class Matrix4 implements Matrix {
+ isMatrix4: boolean;
* Sets all fields of this matrix.
@@ -11,6 +11,7 @@ export class Plane {
normal: Vector3;
constant: number;
+ isPlane: boolean;
set( normal: Vector3, constant: number ): Plane;
setComponents( x: number, y: number, z: number, w: number ): Plane;
@@ -25,6 +25,7 @@ export class Quaternion {
w: number;
+ isQuaternion: boolean;
* Sets values of this quaternion.
@@ -11,6 +11,7 @@ export class LOD extends Object3D {
levels: { distance: number; object: Object3D }[];
autoUpdate: boolean;
+ isLOD: boolean;
addLevel( object: Object3D, distance?: number ): this;
getObjectForDistance( distance: number ): Object3D | null;
@@ -17,6 +17,7 @@ export class SkinnedMesh extends Mesh {
bindMatrix: Matrix4;
bindMatrixInverse: Matrix4;
skeleton: Skeleton;
+ isSkinnedMesh: boolean;
bind( skeleton: Skeleton, bindMatrix?: Matrix4 ): void;
pose(): void;
@@ -11,4 +11,6 @@ export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
options?: WebGLRenderTargetOptions
);
+ isWebGLMultisampleRenderTarget: boolean;
@@ -12,6 +12,7 @@ export class WebGLMultiviewRenderTarget extends WebGLRenderTarget {
+ isWebGLMultiviewRenderTarget: boolean;
setNumViews( numViews: number ): this;
@@ -36,6 +36,8 @@ export class WebGLRenderTarget extends EventDispatcher {
depthBuffer: boolean;
stencilBuffer: boolean;
depthTexture: DepthTexture;
+ isWebGLRenderTarget: boolean;
* @deprecated Use {@link Texture#wrapS texture.wrapS} instead.
@@ -32,6 +32,8 @@ export class Fog implements IFog {
far: number;
+ isFog: boolean;
clone(): this;
toJSON(): any;
@@ -16,6 +16,8 @@ export class FogExp2 implements IFog {
density: number;
+ isFogExp2: boolean;
@@ -27,6 +27,8 @@ export class Scene extends Object3D {
background: null | Color | Texture;
environment: null | Texture;
+ isScene: boolean;
toJSON( meta?: any ): any;
dispose(): void;
@@ -54,6 +54,8 @@ export class Texture extends EventDispatcher {
encoding: TextureEncoding;
version: number;
needsUpdate: boolean;
+ isTexture: boolean;
onUpdate: () => void;
static DEFAULT_IMAGE: any;
static DEFAULT_MAPPING: any;
@@ -21,4 +21,6 @@ export class VideoTexture extends Texture {
anisotropy?: number
+ isVideoTexture: boolean;