|
@@ -1096,9 +1096,11 @@ export default class Draw {
|
|
|
this.context.translate(points[0].x, points[0].y);
|
|
|
this.context.rotate(angle);
|
|
|
this.context.scale(width / svgWidth, height / svgHidth);
|
|
|
- const [style, label] = help.setVectorStyle(this.context, vector);
|
|
|
+ const [style, label] = help.getVectorStyle(vector);
|
|
|
this.context.lineWidth = style.lineWidth / (width / svgWidth);
|
|
|
- SVGIcons[vector.type].draw(this.context, style.fillStyle, style.strokeStyle);
|
|
|
+ this.context.fillStyle = 'rgba(0,0,0,0)'
|
|
|
+ this.context.strokeStyle = 'rgba(0,0,0,0)'
|
|
|
+ SVGIcons[vector.type].draw(this.context, style.fillStyle || 'rgba(0,0,0,0)', style.strokeStyle || 'rgba(0,0,0,0)');
|
|
|
this.context.restore();
|
|
|
|
|
|
if (label) {
|
|
@@ -1200,9 +1202,9 @@ export default class Draw {
|
|
|
});
|
|
|
ctx.restore();
|
|
|
|
|
|
- if (import.meta.env.DEV) {
|
|
|
+ // if (import.meta.env.DEV) {
|
|
|
vector.points.forEach(this.drawPoint.bind(this));
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
drawLine(vector) {
|