|
@@ -208,7 +208,7 @@ function EventDispatcher() {}
|
|
|
|
|
|
Object.assign( EventDispatcher.prototype, {
|
|
Object.assign( EventDispatcher.prototype, {
|
|
|
|
|
|
- addEventListener: function ( type, listener, importance=0 ) {//add importance
|
|
|
|
|
|
+ addEventListener: function ( type, listener ) {
|
|
|
|
|
|
if ( this._listeners === undefined ) this._listeners = {};
|
|
if ( this._listeners === undefined ) this._listeners = {};
|
|
|
|
|
|
@@ -220,10 +220,10 @@ Object.assign( EventDispatcher.prototype, {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( !listeners[ type ].some(e=>e.listener == listener ) ) {
|
|
|
|
- //listeners[ type ].push( listener );
|
|
|
|
- listeners[type].push({ listener, importance});
|
|
|
|
- listeners[type] = listeners[type].sort((e,a)=> a.importance - e.importance)//add
|
|
|
|
|
|
+ if ( listeners[ type ].indexOf( listener ) === - 1 ) {
|
|
|
|
+
|
|
|
|
+ listeners[ type ].push( listener );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -234,49 +234,11 @@ Object.assign( EventDispatcher.prototype, {
|
|
|
|
|
|
const listeners = this._listeners;
|
|
const listeners = this._listeners;
|
|
|
|
|
|
- return listeners[ type ] !== undefined && listeners[ type ].some(e=>e.listener == listener )
|
|
|
|
|
|
+ return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== - 1;
|
|
|
|
|
|
},
|
|
},
|
|
-
|
|
|
|
- removeEventListener: function ( type, listener ) {
|
|
|
|
-
|
|
|
|
- if ( this._listeners === undefined ) return;
|
|
|
|
-
|
|
|
|
- const listeners = this._listeners;
|
|
|
|
- const listenerArray = listeners[ type ];
|
|
|
|
-
|
|
|
|
- if ( listenerArray !== undefined ) {
|
|
|
|
-
|
|
|
|
- /* const index = listenerArray.indexOf( listener );
|
|
|
|
-
|
|
|
|
- if ( index !== - 1 ) {
|
|
|
|
-
|
|
|
|
- listenerArray.splice( index, 1 );
|
|
|
|
-
|
|
|
|
- } */
|
|
|
|
-
|
|
|
|
- let item = listenerArray.find(e=>e.listener == listener)
|
|
|
|
- item && listenerArray.splice(listenerArray.indexOf(item), 1);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- removeEventListeners(type){//add
|
|
|
|
- if(this._listeners && this._listeners[type] !== undefined){
|
|
|
|
- delete this._listeners[type];
|
|
|
|
- }
|
|
|
|
- } ,
|
|
|
|
- removeAllListeners(){ //add
|
|
|
|
- this._listeners = {};
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
dispatchEvent: function ( event ) {
|
|
dispatchEvent: function ( event ) {
|
|
- if(typeof event == 'string'){//add
|
|
|
|
- event = {type:event}
|
|
|
|
- }
|
|
|
|
if ( this._listeners === undefined ) return;
|
|
if ( this._listeners === undefined ) return;
|
|
|
|
|
|
const listeners = this._listeners;
|
|
const listeners = this._listeners;
|
|
@@ -287,16 +249,15 @@ Object.assign( EventDispatcher.prototype, {
|
|
event.target = this;
|
|
event.target = this;
|
|
|
|
|
|
// Make a copy, in case listeners are removed while iterating.
|
|
// Make a copy, in case listeners are removed while iterating.
|
|
-
|
|
|
|
- for(let {listener} of listenerArray.slice(0)){
|
|
|
|
- let result = listener.call(this, event); //add stopContinue
|
|
|
|
- if(result && result.stopContinue){
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
|
|
+ const array = listenerArray.slice( 0 );
|
|
|
|
+
|
|
|
|
+ for ( let i = 0, l = array.length; i < l; i ++ ) {
|
|
|
|
+
|
|
|
|
+ array[ i ].call( this, event );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
} );
|
|
} );
|
|
@@ -6844,12 +6805,8 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
raycast: function () {},
|
|
raycast: function () {},
|
|
|
|
|
|
traverse: function ( callback ) {
|
|
traverse: function ( callback ) {
|
|
|
|
+ callback( this );
|
|
|
|
|
|
- let result = callback( this );
|
|
|
|
- if(result && result.stopContinue){//xzw add
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
const children = this.children;
|
|
const children = this.children;
|
|
|
|
|
|
for ( let i = 0, l = children.length; i < l; i ++ ) {
|
|
for ( let i = 0, l = children.length; i < l; i ++ ) {
|
|
@@ -8715,7 +8672,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor;
|
|
if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor;
|
|
if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits;
|
|
if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits;
|
|
|
|
|
|
- if ( this.lineWidth && this.lineWidth !== 1 ) data.lineWidth = this.lineWidth;
|
|
|
|
|
|
+ if ( this.linewidth && this.linewidth !== 1 ) data.linewidth = this.linewidth;
|
|
if ( this.dashSize !== undefined ) data.dashSize = this.dashSize;
|
|
if ( this.dashSize !== undefined ) data.dashSize = this.dashSize;
|
|
if ( this.gapSize !== undefined ) data.gapSize = this.gapSize;
|
|
if ( this.gapSize !== undefined ) data.gapSize = this.gapSize;
|
|
if ( this.scale !== undefined ) data.scale = this.scale;
|
|
if ( this.scale !== undefined ) data.scale = this.scale;
|
|
@@ -8726,7 +8683,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
if ( this.premultipliedAlpha === true ) data.premultipliedAlpha = this.premultipliedAlpha;
|
|
if ( this.premultipliedAlpha === true ) data.premultipliedAlpha = this.premultipliedAlpha;
|
|
|
|
|
|
if ( this.wireframe === true ) data.wireframe = this.wireframe;
|
|
if ( this.wireframe === true ) data.wireframe = this.wireframe;
|
|
- if ( this.wireframelineWidth > 1 ) data.wireframelineWidth = this.wireframelineWidth;
|
|
|
|
|
|
+ if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth;
|
|
if ( this.wireframeLinecap !== 'round' ) data.wireframeLinecap = this.wireframeLinecap;
|
|
if ( this.wireframeLinecap !== 'round' ) data.wireframeLinecap = this.wireframeLinecap;
|
|
if ( this.wireframeLinejoin !== 'round' ) data.wireframeLinejoin = this.wireframeLinejoin;
|
|
if ( this.wireframeLinejoin !== 'round' ) data.wireframeLinejoin = this.wireframeLinejoin;
|
|
|
|
|
|
@@ -8900,7 +8857,7 @@ Object.defineProperty( Material.prototype, 'needsUpdate', {
|
|
* depthWrite: <bool>,
|
|
* depthWrite: <bool>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>
|
|
* morphTargets: <bool>
|
|
@@ -8933,7 +8890,7 @@ function MeshBasicMaterial( parameters ) {
|
|
this.refractionRatio = 0.98;
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
|
@@ -8973,7 +8930,7 @@ MeshBasicMaterial.prototype.copy = function ( source ) {
|
|
this.refractionRatio = source.refractionRatio;
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
|
@@ -11719,7 +11676,7 @@ var default_fragment = "void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0
|
|
* vertexShader: <string>,
|
|
* vertexShader: <string>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* lights: <bool>,
|
|
* lights: <bool>,
|
|
*
|
|
*
|
|
@@ -11741,10 +11698,10 @@ function ShaderMaterial( parameters ) {
|
|
this.vertexShader = default_vertex;
|
|
this.vertexShader = default_vertex;
|
|
this.fragmentShader = default_fragment;
|
|
this.fragmentShader = default_fragment;
|
|
|
|
|
|
- this.lineWidth = 1;
|
|
|
|
|
|
+ this.linewidth = 1;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
|
|
|
|
this.fog = false; // set to use scene fog
|
|
this.fog = false; // set to use scene fog
|
|
this.lights = false; // set to use scene lights
|
|
this.lights = false; // set to use scene lights
|
|
@@ -11805,7 +11762,7 @@ ShaderMaterial.prototype.copy = function ( source ) {
|
|
this.defines = Object.assign( {}, source.defines );
|
|
this.defines = Object.assign( {}, source.defines );
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
|
|
|
this.lights = source.lights;
|
|
this.lights = source.lights;
|
|
this.clipping = source.clipping;
|
|
this.clipping = source.clipping;
|
|
@@ -18896,7 +18853,7 @@ function WebGLRenderStates( extensions, capabilities ) {
|
|
* displacementBias: <float>,
|
|
* displacementBias: <float>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>
|
|
|
|
|
|
+ * wireframeLinewidth: <float>
|
|
* }
|
|
* }
|
|
*/
|
|
*/
|
|
|
|
|
|
@@ -18920,7 +18877,7 @@ function MeshDepthMaterial( parameters ) {
|
|
this.displacementBias = 0;
|
|
this.displacementBias = 0;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
|
|
|
|
this.fog = false;
|
|
this.fog = false;
|
|
|
|
|
|
@@ -18951,7 +18908,7 @@ MeshDepthMaterial.prototype.copy = function ( source ) {
|
|
this.displacementBias = source.displacementBias;
|
|
this.displacementBias = source.displacementBias;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
@@ -19396,8 +19353,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
|
|
result.clippingPlanes = material.clippingPlanes;
|
|
result.clippingPlanes = material.clippingPlanes;
|
|
result.clipIntersection = material.clipIntersection;
|
|
result.clipIntersection = material.clipIntersection;
|
|
|
|
|
|
- result.wireframelineWidth = material.wireframelineWidth;
|
|
|
|
- result.lineWidth = material.lineWidth;
|
|
|
|
|
|
+ result.wireframeLinewidth = material.wireframeLinewidth;
|
|
|
|
+ result.linewidth = material.linewidth;
|
|
|
|
|
|
if ( light.isPointLight === true && result.isMeshDistanceMaterial === true ) {
|
|
if ( light.isPointLight === true && result.isMeshDistanceMaterial === true ) {
|
|
|
|
|
|
@@ -19799,7 +19756,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
let currentFlipSided = null;
|
|
let currentFlipSided = null;
|
|
let currentCullFace = null;
|
|
let currentCullFace = null;
|
|
|
|
|
|
- let currentlineWidth = null;
|
|
|
|
|
|
+ let currentLineWidth = null;
|
|
|
|
|
|
let currentPolygonOffsetFactor = null;
|
|
let currentPolygonOffsetFactor = null;
|
|
let currentPolygonOffsetUnits = null;
|
|
let currentPolygonOffsetUnits = null;
|
|
@@ -20168,13 +20125,13 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function setlineWidth( width ) {
|
|
|
|
|
|
+ function setLineWidth( width ) {
|
|
|
|
|
|
- if ( width !== currentlineWidth ) {
|
|
|
|
|
|
+ if ( width !== currentLineWidth ) {
|
|
|
|
|
|
if ( lineWidthAvailable ) gl.lineWidth( width );
|
|
if ( lineWidthAvailable ) gl.lineWidth( width );
|
|
|
|
|
|
- currentlineWidth = width;
|
|
|
|
|
|
+ currentLineWidth = width;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -20365,7 +20322,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
currentFlipSided = null;
|
|
currentFlipSided = null;
|
|
currentCullFace = null;
|
|
currentCullFace = null;
|
|
|
|
|
|
- currentlineWidth = null;
|
|
|
|
|
|
+ currentLineWidth = null;
|
|
|
|
|
|
currentPolygonOffsetFactor = null;
|
|
currentPolygonOffsetFactor = null;
|
|
currentPolygonOffsetUnits = null;
|
|
currentPolygonOffsetUnits = null;
|
|
@@ -20395,7 +20352,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
setFlipSided: setFlipSided,
|
|
setFlipSided: setFlipSided,
|
|
setCullFace: setCullFace,
|
|
setCullFace: setCullFace,
|
|
|
|
|
|
- setlineWidth: setlineWidth,
|
|
|
|
|
|
+ setLineWidth: setLineWidth,
|
|
setPolygonOffset: setPolygonOffset,
|
|
setPolygonOffset: setPolygonOffset,
|
|
|
|
|
|
setScissorTest: setScissorTest,
|
|
setScissorTest: setScissorTest,
|
|
@@ -23692,8 +23649,8 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
- this.setSize = function ( width, height, updateStyle, devicePixelRatio ) {//改
|
|
|
|
- if (devicePixelRatio != void 0) _pixelRatio = devicePixelRatio; //add
|
|
|
|
|
|
+ this.setSize = function ( width, height, updateStyle ) {
|
|
|
|
+
|
|
if ( xr.isPresenting ) {
|
|
if ( xr.isPresenting ) {
|
|
|
|
|
|
console.warn( 'THREE.WebGLRenderer: Can\'t change size while VR device is presenting.' );
|
|
console.warn( 'THREE.WebGLRenderer: Can\'t change size while VR device is presenting.' );
|
|
@@ -23703,23 +23660,19 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
_width = width;
|
|
_width = width;
|
|
_height = height;
|
|
_height = height;
|
|
-
|
|
|
|
- //if(!window.unableSetSize){
|
|
|
|
- _canvas.width = Math.floor( width * _pixelRatio );
|
|
|
|
- _canvas.height = Math.floor( height * _pixelRatio );
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if ( updateStyle !== false ) {
|
|
|
|
|
|
|
|
- _canvas.style.width = width + 'px';
|
|
|
|
- _canvas.style.height = height + 'px';
|
|
|
|
|
|
+ _canvas.width = Math.floor( width * _pixelRatio );
|
|
|
|
+ _canvas.height = Math.floor( height * _pixelRatio );
|
|
|
|
+
|
|
|
|
+ if ( updateStyle !== false ) {
|
|
|
|
+
|
|
|
|
+ _canvas.style.width = width + 'px';
|
|
|
|
+ _canvas.style.height = height + 'px';
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.setViewport( 0, 0, width, height );
|
|
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- this.setViewport( 0, 0, width, height );
|
|
|
|
- //}
|
|
|
|
};
|
|
};
|
|
|
|
|
|
this.getDrawingBufferSize = function ( target ) {
|
|
this.getDrawingBufferSize = function ( target ) {
|
|
@@ -24125,7 +24078,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( material.wireframe === true ) {
|
|
if ( material.wireframe === true ) {
|
|
|
|
|
|
- state.setlineWidth( material.wireframelineWidth * getTargetPixelRatio() );
|
|
|
|
|
|
+ state.setLineWidth( material.wireframeLinewidth * getTargetPixelRatio() );
|
|
renderer.setMode( 1 );
|
|
renderer.setMode( 1 );
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -24136,11 +24089,11 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
} else if ( object.isLine ) {
|
|
} else if ( object.isLine ) {
|
|
|
|
|
|
- let lineWidth = material.lineWidth;
|
|
|
|
|
|
+ let lineWidth = material.linewidth;
|
|
|
|
|
|
if ( lineWidth === undefined ) lineWidth = 1; // Not using Line*Material
|
|
if ( lineWidth === undefined ) lineWidth = 1; // Not using Line*Material
|
|
|
|
|
|
- state.setlineWidth( lineWidth * getTargetPixelRatio() );
|
|
|
|
|
|
+ state.setLineWidth( lineWidth * getTargetPixelRatio() );
|
|
|
|
|
|
if ( object.isLineSegments ) {
|
|
if ( object.isLineSegments ) {
|
|
|
|
|
|
@@ -26807,7 +26760,7 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
* color: <hex>,
|
|
* color: <hex>,
|
|
* opacity: <float>,
|
|
* opacity: <float>,
|
|
*
|
|
*
|
|
- * lineWidth: <float>,
|
|
|
|
|
|
+ * linewidth: <float>,
|
|
* linecap: "round",
|
|
* linecap: "round",
|
|
* linejoin: "round"
|
|
* linejoin: "round"
|
|
* }
|
|
* }
|
|
@@ -26821,7 +26774,7 @@ function LineBasicMaterial( parameters ) {
|
|
|
|
|
|
this.color = new Color( 0xffffff );
|
|
this.color = new Color( 0xffffff );
|
|
|
|
|
|
- this.lineWidth = 1;
|
|
|
|
|
|
+ this.linewidth = 1;
|
|
this.linecap = 'round';
|
|
this.linecap = 'round';
|
|
this.linejoin = 'round';
|
|
this.linejoin = 'round';
|
|
|
|
|
|
@@ -26842,7 +26795,7 @@ LineBasicMaterial.prototype.copy = function ( source ) {
|
|
|
|
|
|
this.color.copy( source.color );
|
|
this.color.copy( source.color );
|
|
|
|
|
|
- this.lineWidth = source.lineWidth;
|
|
|
|
|
|
+ this.linewidth = source.linewidth;
|
|
this.linecap = source.linecap;
|
|
this.linecap = source.linecap;
|
|
this.linejoin = source.linejoin;
|
|
this.linejoin = source.linejoin;
|
|
|
|
|
|
@@ -33508,7 +33461,7 @@ RawShaderMaterial.prototype.isRawShaderMaterial = true;
|
|
* refractionRatio: <float>,
|
|
* refractionRatio: <float>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>,
|
|
* morphTargets: <bool>,
|
|
@@ -33563,7 +33516,7 @@ function MeshStandardMaterial( parameters ) {
|
|
this.refractionRatio = 0.98;
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
|
@@ -33627,7 +33580,7 @@ MeshStandardMaterial.prototype.copy = function ( source ) {
|
|
this.refractionRatio = source.refractionRatio;
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
|
@@ -33786,7 +33739,7 @@ MeshPhysicalMaterial.prototype.copy = function ( source ) {
|
|
* refractionRatio: <float>,
|
|
* refractionRatio: <float>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>,
|
|
* morphTargets: <bool>,
|
|
@@ -33837,7 +33790,7 @@ function MeshPhongMaterial( parameters ) {
|
|
this.refractionRatio = 0.98;
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
|
@@ -33895,7 +33848,7 @@ MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
this.refractionRatio = source.refractionRatio;
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
|
@@ -33938,7 +33891,7 @@ MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
* alphaMap: new THREE.Texture( <Image> ),
|
|
* alphaMap: new THREE.Texture( <Image> ),
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>,
|
|
* morphTargets: <bool>,
|
|
@@ -33983,7 +33936,7 @@ function MeshToonMaterial( parameters ) {
|
|
this.alphaMap = null;
|
|
this.alphaMap = null;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
|
@@ -34033,7 +33986,7 @@ MeshToonMaterial.prototype.copy = function ( source ) {
|
|
this.alphaMap = source.alphaMap;
|
|
this.alphaMap = source.alphaMap;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
|
@@ -34061,7 +34014,7 @@ MeshToonMaterial.prototype.copy = function ( source ) {
|
|
* displacementBias: <float>,
|
|
* displacementBias: <float>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>
|
|
|
|
|
|
+ * wireframeLinewidth: <float>
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>,
|
|
* morphTargets: <bool>,
|
|
@@ -34087,7 +34040,7 @@ function MeshNormalMaterial( parameters ) {
|
|
this.displacementBias = 0;
|
|
this.displacementBias = 0;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
|
|
|
|
this.fog = false;
|
|
this.fog = false;
|
|
|
|
|
|
@@ -34120,7 +34073,7 @@ MeshNormalMaterial.prototype.copy = function ( source ) {
|
|
this.displacementBias = source.displacementBias;
|
|
this.displacementBias = source.displacementBias;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
|
|
|
this.skinning = source.skinning;
|
|
this.skinning = source.skinning;
|
|
this.morphTargets = source.morphTargets;
|
|
this.morphTargets = source.morphTargets;
|
|
@@ -34157,7 +34110,7 @@ MeshNormalMaterial.prototype.copy = function ( source ) {
|
|
* refractionRatio: <float>,
|
|
* refractionRatio: <float>,
|
|
*
|
|
*
|
|
* wireframe: <boolean>,
|
|
* wireframe: <boolean>,
|
|
- * wireframelineWidth: <float>,
|
|
|
|
|
|
+ * wireframeLinewidth: <float>,
|
|
*
|
|
*
|
|
* skinning: <bool>,
|
|
* skinning: <bool>,
|
|
* morphTargets: <bool>,
|
|
* morphTargets: <bool>,
|
|
@@ -34195,7 +34148,7 @@ function MeshLambertMaterial( parameters ) {
|
|
this.refractionRatio = 0.98;
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
this.wireframe = false;
|
|
- this.wireframelineWidth = 1;
|
|
|
|
|
|
+ this.wireframeLinewidth = 1;
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinecap = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
|
@@ -34240,7 +34193,7 @@ MeshLambertMaterial.prototype.copy = function ( source ) {
|
|
this.refractionRatio = source.refractionRatio;
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
this.wireframe = source.wireframe;
|
|
- this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
|
@@ -34358,7 +34311,7 @@ MeshMatcapMaterial.prototype.copy = function ( source ) {
|
|
* color: <hex>,
|
|
* color: <hex>,
|
|
* opacity: <float>,
|
|
* opacity: <float>,
|
|
*
|
|
*
|
|
- * lineWidth: <float>,
|
|
|
|
|
|
+ * linewidth: <float>,
|
|
*
|
|
*
|
|
* scale: <float>,
|
|
* scale: <float>,
|
|
* dashSize: <float>,
|
|
* dashSize: <float>,
|
|
@@ -36777,7 +36730,7 @@ FileLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
for ( let i = 0, il = callbacks.length; i < il; i ++ ) {
|
|
for ( let i = 0, il = callbacks.length; i < il; i ++ ) {
|
|
|
|
|
|
const callback = callbacks[ i ];
|
|
const callback = callbacks[ i ];
|
|
- if ( callback.onLoad ) callback.onLoad( response, event.total); //xzw add event.total
|
|
|
|
|
|
+ if ( callback.onLoad ) callback.onLoad( response );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -40402,13 +40355,13 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
if ( json.stencilZPass !== undefined ) material.stencilZPass = json.stencilZPass;
|
|
if ( json.stencilZPass !== undefined ) material.stencilZPass = json.stencilZPass;
|
|
|
|
|
|
if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
|
|
if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
|
|
- if ( json.wireframelineWidth !== undefined ) material.wireframelineWidth = json.wireframelineWidth;
|
|
|
|
|
|
+ if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth;
|
|
if ( json.wireframeLinecap !== undefined ) material.wireframeLinecap = json.wireframeLinecap;
|
|
if ( json.wireframeLinecap !== undefined ) material.wireframeLinecap = json.wireframeLinecap;
|
|
if ( json.wireframeLinejoin !== undefined ) material.wireframeLinejoin = json.wireframeLinejoin;
|
|
if ( json.wireframeLinejoin !== undefined ) material.wireframeLinejoin = json.wireframeLinejoin;
|
|
|
|
|
|
if ( json.rotation !== undefined ) material.rotation = json.rotation;
|
|
if ( json.rotation !== undefined ) material.rotation = json.rotation;
|
|
|
|
|
|
- if ( json.lineWidth !== 1 ) material.lineWidth = json.lineWidth;
|
|
|
|
|
|
+ if ( json.linewidth !== 1 ) material.linewidth = json.linewidth;
|
|
if ( json.dashSize !== undefined ) material.dashSize = json.dashSize;
|
|
if ( json.dashSize !== undefined ) material.dashSize = json.dashSize;
|
|
if ( json.gapSize !== undefined ) material.gapSize = json.gapSize;
|
|
if ( json.gapSize !== undefined ) material.gapSize = json.gapSize;
|
|
if ( json.scale !== undefined ) material.scale = json.scale;
|
|
if ( json.scale !== undefined ) material.scale = json.scale;
|