|
@@ -678,8 +678,16 @@ export default class Draw {
|
|
|
// ctx.moveTo(start.x, start.y);
|
|
|
// ctx.quadraticCurveTo(pt.x, pt.y, end.x, end.y);
|
|
|
|
|
|
- const [coves] = help.transformCoves([vector.curves]);
|
|
|
- help.drawCoves(ctx, coves);
|
|
|
+ help.drawStyleLine(
|
|
|
+ ctx,
|
|
|
+ () => {
|
|
|
+ const [coves] = help.transformCoves([vector.curves]);
|
|
|
+ help.drawCoves(ctx, coves);
|
|
|
+ },
|
|
|
+ vector.style,
|
|
|
+ vector.weight
|
|
|
+ );
|
|
|
+
|
|
|
ctx.restore();
|
|
|
}
|
|
|
|