Compare commits
2 Commits
1a394336ff
...
6c84baa3c2
Author | SHA1 | Date | |
---|---|---|---|
6c84baa3c2 | |||
22e4652528 |
@ -2486,8 +2486,8 @@ class GroundSvg extends Base {
|
|||||||
w = (Math.cos(radiansW) * distance) * 2
|
w = (Math.cos(radiansW) * distance) * 2
|
||||||
h = (Math.cos(radiansH) * distance) * 2
|
h = (Math.cos(radiansH) * distance) * 2
|
||||||
// scaleY值
|
// scaleY值
|
||||||
this.scale.x = w / 3.5
|
this.scale.x = Math.abs(w) / 3.5
|
||||||
this.scale.y = h / 3.5
|
this.scale.y = Math.abs(h) / 3.5
|
||||||
break
|
break
|
||||||
case 'svg-control-points_2':
|
case 'svg-control-points_2':
|
||||||
case 'svg-control-points_8':
|
case 'svg-control-points_8':
|
||||||
@ -2578,8 +2578,8 @@ class GroundSvg extends Base {
|
|||||||
w = (Math.cos(radiansW) * distance) * 2
|
w = (Math.cos(radiansW) * distance) * 2
|
||||||
h = (Math.cos(radiansH) * distance) * 2
|
h = (Math.cos(radiansH) * distance) * 2
|
||||||
// scaleY值
|
// scaleY值
|
||||||
this.scale.x = w / 3.5
|
this.scale.x = Math.abs(w) / 3.5
|
||||||
this.scale.y = h / 3.5
|
this.scale.y = Math.abs(h) / 3.5
|
||||||
break
|
break
|
||||||
case 'svg-control-points_4':
|
case 'svg-control-points_4':
|
||||||
bearingW = (((turf.rhumbBearing(pointC, turf.point(controlPoints[4])) + 360) - this.angle) % 360)
|
bearingW = (((turf.rhumbBearing(pointC, turf.point(controlPoints[4])) + 360) - this.angle) % 360)
|
||||||
|
@ -649,7 +649,7 @@ class GroundText extends Base {
|
|||||||
ctx.font = 200 + 'px serif'
|
ctx.font = 200 + 'px serif'
|
||||||
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
|
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
|
||||||
ctx.fillRect(0, 0, maxWidth + 30, 210)
|
ctx.fillRect(0, 0, maxWidth + 30, 210)
|
||||||
ctx.fillStyle = this.options.color
|
ctx.fillStyle = 'rgba(255, 255, 255, 1)'
|
||||||
ctx.font = '200px serif'
|
ctx.font = '200px serif'
|
||||||
ctx.fillText(textArray[i], 0, 210 * (i + 1))
|
ctx.fillText(textArray[i], 0, 210 * (i + 1))
|
||||||
}
|
}
|
||||||
|
@ -508,7 +508,7 @@ class StandText extends Base {
|
|||||||
ctx.font = 200 + "px serif";
|
ctx.font = 200 + "px serif";
|
||||||
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
|
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
|
||||||
ctx.fillRect(0, 0, maxWidth + 30, 210)
|
ctx.fillRect(0, 0, maxWidth + 30, 210)
|
||||||
ctx.fillStyle = this.options.color;
|
ctx.fillStyle = 'rgba(255, 255, 255, 1)';
|
||||||
ctx.font = "200px serif";
|
ctx.font = "200px serif";
|
||||||
ctx.fillText(textArray[i], 0, 210 * (i+1));
|
ctx.fillText(textArray[i], 0, 210 * (i+1));
|
||||||
}
|
}
|
||||||
|
@ -238,8 +238,8 @@ function StreamWall2() {
|
|||||||
else {
|
else {
|
||||||
material.alpha = 1.0;
|
material.alpha = 1.0;
|
||||||
}
|
}
|
||||||
material.diffuse = color.rgb*0.0;
|
material.diffuse = colorImage.rgb * color.rgb*0.0;
|
||||||
material.emission = color.rgb * 1.0;
|
material.emission = colorImage.rgb * color.rgb * 1.0;
|
||||||
return material;
|
return material;
|
||||||
}`,
|
}`,
|
||||||
components: {
|
components: {
|
||||||
|
Reference in New Issue
Block a user