浏览代码

fix linting

DefinitelyMaybe 4 年之前
父节点
当前提交
ad7801984c
共有 4 个文件被更改,包括 19 次插入8 次删除
  1. 3 0
      src/extras/core/CurvePath.js
  2. 7 4
      src/extras/core/Path.js
  3. 6 3
      src/extras/core/Shape.js
  4. 3 1
      src/extras/core/ShapePath.js

+ 3 - 0
src/extras/core/CurvePath.js

@@ -9,12 +9,14 @@ import * as Curves from '../curves/Curves.js';
 class CurvePath extends Curve {
 
 	constructor() {
+
 		super();
 
 		this.type = 'CurvePath';
 
 		this.curves = [];
 		this.autoClose = false; // Automatically closes the path
+
 	}
 
 	add( curve ) {
@@ -243,6 +245,7 @@ class CurvePath extends Curve {
 		return this;
 
 	}
+
 }
 
 

+ 7 - 4
src/extras/core/Path.js

@@ -8,8 +8,9 @@ import { LineCurve } from '../curves/LineCurve.js';
 
 class Path extends CurvePath {
 
-	constructor ( points ) {
-		super()
+	constructor( points ) {
+
+		super();
 		this.type = 'Path';
 
 		this.currentPoint = new Vector2();
@@ -19,6 +20,7 @@ class Path extends CurvePath {
 			this.setFromPoints( points );
 
 		}
+
 	}
 
 	setFromPoints( points ) {
@@ -159,7 +161,7 @@ class Path extends CurvePath {
 
 	copy( source ) {
 
-		super.copy(  source );
+		super.copy( source );
 
 		this.currentPoint.copy( source.currentPoint );
 
@@ -179,13 +181,14 @@ class Path extends CurvePath {
 
 	fromJSON( json ) {
 
-		super.fromJSON(  json );
+		super.fromJSON( json );
 
 		this.currentPoint.fromArray( json.currentPoint );
 
 		return this;
 
 	}
+
 }
 
 

+ 6 - 3
src/extras/core/Shape.js

@@ -3,7 +3,8 @@ import { MathUtils } from '../../math/MathUtils.js';
 
 class Shape extends Path {
 
-	constructor ( points ) {
+	constructor( points ) {
+
 		super( points );
 
 		this.uuid = MathUtils.generateUUID();
@@ -11,6 +12,7 @@ class Shape extends Path {
 		this.type = 'Shape';
 
 		this.holes = [];
+
 	}
 
 	getPointsHoles( divisions ) {
@@ -42,7 +44,7 @@ class Shape extends Path {
 
 	copy( source ) {
 
-		super.copy(  source );
+		super.copy( source );
 
 		this.holes = [];
 
@@ -78,7 +80,7 @@ class Shape extends Path {
 
 	fromJSON( json ) {
 
-		super.fromJSON(  json );
+		super.fromJSON( json );
 
 		this.uuid = json.uuid;
 		this.holes = [];
@@ -93,6 +95,7 @@ class Shape extends Path {
 		return this;
 
 	}
+
 }
 
 

+ 3 - 1
src/extras/core/ShapePath.js

@@ -5,7 +5,8 @@ import { ShapeUtils } from '../ShapeUtils.js';
 
 class ShapePath {
 
-	constructor () {
+	constructor() {
+
 		this.type = 'ShapePath';
 
 		this.color = new Color();
@@ -287,6 +288,7 @@ class ShapePath {
 		return shapes;
 
 	}
+
 }