|
@@ -293,13 +293,14 @@ export default class Draw {
|
|
}
|
|
}
|
|
|
|
|
|
drawCurveRoad(vector) {
|
|
drawCurveRoad(vector) {
|
|
|
|
+ console.log(vector)
|
|
const [coves] = help.transformCoves([vector.curves]);
|
|
const [coves] = help.transformCoves([vector.curves]);
|
|
const ctx = this.context;
|
|
const ctx = this.context;
|
|
|
|
|
|
ctx.save();
|
|
ctx.save();
|
|
const vectorStyle = help.setVectorStyle(ctx, vector);
|
|
const vectorStyle = help.setVectorStyle(ctx, vector);
|
|
- help.drawCoves(ctx, coves);
|
|
|
|
ctx.lineWidth = vector?.midDivideWidth || vectorStyle.lineWidth
|
|
ctx.lineWidth = vector?.midDivideWidth || vectorStyle.lineWidth
|
|
|
|
+ help.drawCoves(ctx, coves);
|
|
ctx.lineWidth = ctx.lineWidth - vectorStyle.realLineWidth
|
|
ctx.lineWidth = ctx.lineWidth - vectorStyle.realLineWidth
|
|
ctx.strokeStyle = Style.bgColor
|
|
ctx.strokeStyle = Style.bgColor
|
|
help.drawCoves(ctx, coves);
|
|
help.drawCoves(ctx, coves);
|