|
@@ -805,7 +805,19 @@ export default class Draw {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- drawCurveLine() {}
|
|
|
+ drawCurveLine(vector) {
|
|
|
+ // points CurveLine
|
|
|
+ console.log(vector)
|
|
|
+ const ctx = this.context;
|
|
|
+ ctx.save();
|
|
|
+ help.setVectorStyle(ctx, vector);
|
|
|
+ help.drawCoves(ctx, help.transformCoves([vector.points]));
|
|
|
+ ctx.restore();
|
|
|
+
|
|
|
+ if (import.meta.env.DEV) {
|
|
|
+ vector.points.forEach(this.drawPoint.bind(this));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
drawLine(vector) {
|
|
|
const startReal = dataService.getPoint(vector.startId);
|