diff --git a/build/three.js b/build/three.js index f3e3c04c1c4f0e6d16e7b92d8912320b2a309248..07c4477017b1b18df8258795fd2030713d9911f3 100644 --- a/build/three.js +++ b/build/three.js @@ -13956,7 +13956,6 @@ THREE.CanvasRenderer = function ( parameters ) { setLineCap( material.linecap ); setLineJoin( material.linejoin ); setStrokeStyle( material.color.getStyle() ); - setDashAndGap( null, null ); _context.stroke(); _elemBox.expandByScalar( material.linewidth * 2 ); @@ -13970,8 +13969,11 @@ THREE.CanvasRenderer = function ( parameters ) { setDashAndGap( material.dashSize, material.gapSize ); _context.stroke(); + _elemBox.expandByScalar( material.linewidth * 2 ); + setDashAndGap( null, null ); + } } diff --git a/build/three.min.js b/build/three.min.js index a24357489f77e32da6541106c58a79ceb4a8e9f4..0fb0b732717c72a2e7bd1d414eed01fc5bf20c27 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -284,10 +284,10 @@ t.transform(n,La,c,d,a,g),t.fill(),t.restore())}}function G(a,b,c,d,e,f,g,j,h,i, this.sortElements);n=m.elements;s=m.lights;rb.setRGB(0,0,0);wc.setRGB(0,0,0);Ra.setRGB(0,0,0);for(var J=0,W=s.length;J>1,md=H.height>>1,hb=Ta.scale.x*v,Cb=Ta.scale.y*z,La=hb*ld,Bb=Cb*md,Ba.min.set(X.x-La,X.y-Bb), Ba.max.set(X.x+La,X.y+Bb),!1!==qb.isIntersectionBox(Ba)&&(t.save(),t.translate(X.x,X.y),t.rotate(-Ta.rotation),t.scale(hb,-Cb),t.translate(-ld,-md),t.drawImage(H,0,0),t.restore())):Q instanceof THREE.ParticleCanvasMaterial&&(La=Ta.scale.x*v,Bb=Ta.scale.y*z,Ba.min.set(X.x-La,X.y-Bb),Ba.max.set(X.x+La,X.y+Bb),!1!==qb.isIntersectionBox(Ba)&&(g(Q.color.getStyle()),h(Q.color.getStyle()),t.save(),t.translate(X.x,X.y),t.rotate(-Ta.rotation),t.scale(La,Bb),Q.program(t),t.restore()))}else if(H instanceof THREE.RenderableLine)K= -H.v1,L=H.v2,K.positionScreen.x*=v,K.positionScreen.y*=z,L.positionScreen.x*=v,L.positionScreen.y*=z,Ba.setFromPoints([K.positionScreen,L.positionScreen]),!0===qb.isIntersectionBox(Ba)&&(X=K,Ta=L,b(Q.opacity),c(Q.blending),t.beginPath(),t.moveTo(X.positionScreen.x,X.positionScreen.y),t.lineTo(Ta.positionScreen.x,Ta.positionScreen.y),Q instanceof THREE.LineBasicMaterial?(d(Q.linewidth),e(Q.linecap),f(Q.linejoin),g(Q.color.getStyle()),i(null,null),t.stroke(),Ba.expandByScalar(2*Q.linewidth)):Q instanceof -THREE.LineDashedMaterial&&(d(Q.linewidth),e(Q.linecap),f(Q.linejoin),g(Q.color.getStyle()),i(Q.dashSize,Q.gapSize),t.stroke(),Ba.expandByScalar(2*Q.linewidth)));else if(H instanceof THREE.RenderableFace3){K=H.v1;L=H.v2;U=H.v3;if(-1>K.positionScreen.z||1L.positionScreen.z||1U.positionScreen.z||1K.positionScreen.z||1L.positionScreen.z||1U.positionScreen.z||1da.positionScreen.z|| -1K.positionScreen.z||1L.positionScreen.z||1U.positionScreen.z||1K.positionScreen.z||1L.positionScreen.z||1U.positionScreen.z||1da.positionScreen.z||1