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: 2 additions & 2 deletions src/extras/core/Font.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class Font {

constructor( data ) {

this.isFont = true;

this.type = 'Font';

this.data = data;
Expand Down Expand Up @@ -140,4 +138,6 @@ function createPath( char, scale, offsetX, offsetY, data ) {

}

Font.prototype.isFont = true;

export { Font };
3 changes: 2 additions & 1 deletion src/extras/curves/ArcCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ class ArcCurve extends EllipseCurve {
super( aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );

this.type = 'ArcCurve';
this.isArcCurve = true;

}

}

ArcCurve.prototype.isArcCurve = true;

export { ArcCurve };
4 changes: 3 additions & 1 deletion src/extras/curves/CatmullRomCurve3.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class CatmullRomCurve3 extends Curve {
super();

this.type = 'CatmullRomCurve3';
this.isCatmullRomCurve3 = true;

this.points = points;
this.closed = closed;
this.curveType = curveType;
Expand Down Expand Up @@ -248,4 +248,6 @@ class CatmullRomCurve3 extends Curve {

}

CatmullRomCurve3.prototype.isCatmullRomCurve3 = true;

export { CatmullRomCurve3 };
3 changes: 2 additions & 1 deletion src/extras/curves/CubicBezierCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class CubicBezierCurve extends Curve {
super();

this.type = 'CubicBezierCurve';
this.isCubicBezierCurve = true;

this.v0 = v0;
this.v1 = v1;
Expand Down Expand Up @@ -74,4 +73,6 @@ class CubicBezierCurve extends Curve {

}

CubicBezierCurve.prototype.isCubicBezierCurve = true;

export { CubicBezierCurve };
3 changes: 2 additions & 1 deletion src/extras/curves/CubicBezierCurve3.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class CubicBezierCurve3 extends Curve {
super();

this.type = 'CubicBezierCurve3';
this.isCubicBezierCurve3 = true;

this.v0 = v0;
this.v1 = v1;
Expand Down Expand Up @@ -75,4 +74,6 @@ class CubicBezierCurve3 extends Curve {

}

CubicBezierCurve3.prototype.isCubicBezierCurve3 = true;

export { CubicBezierCurve3 };
3 changes: 2 additions & 1 deletion src/extras/curves/EllipseCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class EllipseCurve extends Curve {
super();

this.type = 'EllipseCurve';
this.isEllipseCurve = true;

this.aX = aX;
this.aY = aY;
Expand Down Expand Up @@ -152,4 +151,6 @@ class EllipseCurve extends Curve {

}

EllipseCurve.prototype.isEllipseCurve = true;

export { EllipseCurve };
3 changes: 2 additions & 1 deletion src/extras/curves/LineCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class LineCurve extends Curve {
super();

this.type = 'LineCurve';
this.isLineCurve = true;

this.v1 = v1;
this.v2 = v2;
Expand Down Expand Up @@ -86,4 +85,6 @@ class LineCurve extends Curve {

}

LineCurve.prototype.isLineCurve = true;

export { LineCurve };
3 changes: 2 additions & 1 deletion src/extras/curves/QuadraticBezierCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class QuadraticBezierCurve extends Curve {
super();

this.type = 'QuadraticBezierCurve';
this.isQuadraticBezierCurve = true;

this.v0 = v0;
this.v1 = v1;
Expand Down Expand Up @@ -70,4 +69,6 @@ class QuadraticBezierCurve extends Curve {

}

QuadraticBezierCurve.prototype.isQuadraticBezierCurve = true;

export { QuadraticBezierCurve };
3 changes: 2 additions & 1 deletion src/extras/curves/QuadraticBezierCurve3.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class QuadraticBezierCurve3 extends Curve {
super();

this.type = 'QuadraticBezierCurve3';
this.isQuadraticBezierCurve3 = true;

this.v0 = v0;
this.v1 = v1;
Expand Down Expand Up @@ -71,4 +70,6 @@ class QuadraticBezierCurve3 extends Curve {

}

QuadraticBezierCurve3.prototype.isQuadraticBezierCurve3 = true;

export { QuadraticBezierCurve3 };
3 changes: 2 additions & 1 deletion src/extras/curves/SplineCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class SplineCurve extends Curve {
super();

this.type = 'SplineCurve';
this.isSplineCurve = true;

this.points = points;

Expand Down Expand Up @@ -93,4 +92,6 @@ class SplineCurve extends Curve {

}

SplineCurve.prototype.isSplineCurve = true;

export { SplineCurve };
2 changes: 1 addition & 1 deletion src/lights/AmbientLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class AmbientLight extends Light {
super( color, intensity );

this.type = 'AmbientLight';
this.isAmbientLight = true;

}

}

AmbientLight.prototype.isAmbientLight = true;

export { AmbientLight };
4 changes: 2 additions & 2 deletions src/lights/AmbientLightProbe.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class AmbientLightProbe extends LightProbe {

super( undefined, intensity );

this.isAmbientLightProbe = true;

const color1 = new Color().set( color );

// without extra factor of PI in the shader, would be 2 / Math.sqrt( Math.PI );
Expand All @@ -18,4 +16,6 @@ class AmbientLightProbe extends LightProbe {

}

AmbientLightProbe.prototype.isAmbientLightProbe = true;

export { AmbientLightProbe };
4 changes: 2 additions & 2 deletions src/lights/DirectionalLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class DirectionalLight extends Light {

super( color, intensity );

this.isDirectionalLight = true;

this.type = 'DirectionalLight';

this.position.copy( Object3D.DefaultUp );
Expand All @@ -34,4 +32,6 @@ class DirectionalLight extends Light {

}

DirectionalLight.prototype.isDirectionalLight = true;

export { DirectionalLight };
4 changes: 2 additions & 2 deletions src/lights/DirectionalLightShadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class DirectionalLightShadow extends LightShadow {

super( new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );

this.isDirectionalLightShadow = true;

}

}

DirectionalLightShadow.prototype.isDirectionalLightShadow = true;

export { DirectionalLightShadow };
4 changes: 2 additions & 2 deletions src/lights/HemisphereLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class HemisphereLight extends Light {

super( skyColor, intensity );

this.isHemisphereLight = true;

this.type = 'HemisphereLight';

this.position.copy( Object3D.DefaultUp );
Expand All @@ -31,4 +29,6 @@ class HemisphereLight extends Light {

}

HemisphereLight.prototype.isHemisphereLight = true;

export { HemisphereLight };
4 changes: 2 additions & 2 deletions src/lights/HemisphereLightProbe.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class HemisphereLightProbe extends LightProbe {

super( undefined, intensity );

this.isHemisphereLightProbe = true;

const color1 = new Color().set( skyColor );
const color2 = new Color().set( groundColor );

Expand All @@ -27,4 +25,6 @@ class HemisphereLightProbe extends LightProbe {

}

HemisphereLightProbe.prototype.isHemisphereLightProbe = true;

export { HemisphereLightProbe };
4 changes: 2 additions & 2 deletions src/lights/Light.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class Light extends Object3D {

super();

this.isLight = true;

this.type = 'Light';

this.color = new Color( color );
Expand Down Expand Up @@ -49,4 +47,6 @@ class Light extends Object3D {

}

Light.prototype.isLight = true;

export { Light };
4 changes: 2 additions & 2 deletions src/lights/LightProbe.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class LightProbe extends Light {

super( undefined, intensity );

this.isLightProbe = true;

this.sh = sh;

}
Expand Down Expand Up @@ -44,4 +42,6 @@ class LightProbe extends Light {

}

LightProbe.prototype.isLightProbe = true;

export { LightProbe };
4 changes: 2 additions & 2 deletions src/lights/PointLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class PointLight extends Light {

super( color, intensity );

this.isPointLight = true;

this.type = 'PointLight';

this.distance = distance;
Expand Down Expand Up @@ -49,4 +47,6 @@ class PointLight extends Light {

}

PointLight.prototype.isPointLight = true;

export { PointLight };
4 changes: 2 additions & 2 deletions src/lights/PointLightShadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class PointLightShadow extends LightShadow {

super( new PerspectiveCamera( 90, 1, 0.5, 500 ) );

this.isPointLightShadow = true;

this._frameExtents = new Vector2( 4, 2 );

this._viewportCount = 6;
Expand Down Expand Up @@ -84,4 +82,6 @@ class PointLightShadow extends LightShadow {

}

PointLightShadow.prototype.isPointLightShadow = true;

export { PointLightShadow };
4 changes: 2 additions & 2 deletions src/lights/RectAreaLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class RectAreaLight extends Light {

super( color, intensity );

this.isRectAreaLight = true;

this.type = 'RectAreaLight';

this.width = width;
Expand Down Expand Up @@ -39,4 +37,6 @@ class RectAreaLight extends Light {

}

RectAreaLight.prototype.isRectAreaLight = true;

export { RectAreaLight };
4 changes: 2 additions & 2 deletions src/lights/SpotLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class SpotLight extends Light {

super( color, intensity );

this.isSpotLight = true;

this.type = 'SpotLight';

this.position.copy( Object3D.DefaultUp );
Expand Down Expand Up @@ -61,4 +59,6 @@ class SpotLight extends Light {

}

SpotLight.prototype.isSpotLight = true;

export { SpotLight };
4 changes: 2 additions & 2 deletions src/lights/SpotLightShadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class SpotLightShadow extends LightShadow {

super( new PerspectiveCamera( 50, 1, 0.5, 500 ) );

this.isSpotLightShadow = true;

this.focus = 1;

}
Expand Down Expand Up @@ -37,4 +35,6 @@ class SpotLightShadow extends LightShadow {

}

SpotLightShadow.prototype.isSpotLightShadow = true;

export { SpotLightShadow };
3 changes: 1 addition & 2 deletions src/math/Box2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class Box2 {

constructor( min = new Vector2( + Infinity, + Infinity ), max = new Vector2( - Infinity, - Infinity ) ) {

this.isBox2 = true;

this.min = min;
this.max = max;

Expand Down Expand Up @@ -228,5 +226,6 @@ class Box2 {

}

Box2.prototype.isBox2 = true;

export { Box2 };
Loading