提交 be2af5bd 编写于 作者: J Josua Pedersen 提交者: Josua Pedersen

Fix various es-lint errors

上级 2ad3fa23
...@@ -305,7 +305,7 @@ var ShapeUtils = { ...@@ -305,7 +305,7 @@ var ShapeUtils = {
if ( ( inSeg1Pt1.x !== inSeg2Pt1.x ) || if ( ( inSeg1Pt1.x !== inSeg2Pt1.x ) ||
( inSeg1Pt1.y !== inSeg2Pt1.y ) ) return []; // they are distinct points ( inSeg1Pt1.y !== inSeg2Pt1.y ) ) return []; // they are distinct points
return [ inSeg1Pt1 ]; // they are the same point return [ inSeg1Pt1 ]; // they are the same point
} }
// segment#1 is a single point // segment#1 is a single point
......
...@@ -34,7 +34,7 @@ function IcosahedronBufferGeometry( radius, detail ) { ...@@ -34,7 +34,7 @@ function IcosahedronBufferGeometry( radius, detail ) {
var t = ( 1 + Math.sqrt( 5 ) ) / 2; var t = ( 1 + Math.sqrt( 5 ) ) / 2;
var vertices = [ var vertices = [
- 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0,
0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t,
t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1 t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1
]; ];
...@@ -43,7 +43,7 @@ function IcosahedronBufferGeometry( radius, detail ) { ...@@ -43,7 +43,7 @@ function IcosahedronBufferGeometry( radius, detail ) {
0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11, 0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11,
1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 7, 1, 8, 1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 7, 1, 8,
3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9, 3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9,
4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1
]; ];
PolyhedronBufferGeometry.call( this, vertices, indices, radius, detail ); PolyhedronBufferGeometry.call( this, vertices, indices, radius, detail );
......
...@@ -162,7 +162,7 @@ Object.assign( Material.prototype, EventDispatcher.prototype, { ...@@ -162,7 +162,7 @@ Object.assign( Material.prototype, EventDispatcher.prototype, {
if ( this.metalness !== undefined ) data.metalness = this.metalness; if ( this.metalness !== undefined ) data.metalness = this.metalness;
if ( this.emissive && this.emissive.isColor ) data.emissive = this.emissive.getHex(); if ( this.emissive && this.emissive.isColor ) data.emissive = this.emissive.getHex();
if ( this.emissiveIntensity !== 1) data.emissiveIntensity = this.emissiveIntensity; if ( this.emissiveIntensity !== 1 ) data.emissiveIntensity = this.emissiveIntensity;
if ( this.specular && this.specular.isColor ) data.specular = this.specular.getHex(); if ( this.specular && this.specular.isColor ) data.specular = this.specular.getHex();
if ( this.shininess !== undefined ) data.shininess = this.shininess; if ( this.shininess !== undefined ) data.shininess = this.shininess;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册