|
@@ -312,12 +312,14 @@ export default class Layer {
|
|
|
);
|
|
|
} else if (focusItem.type == VectorType.Line) {
|
|
|
let line = dataService.getLine(focusItem.vectorId);
|
|
|
+ const weight = line.getWeight();
|
|
|
let startPoint = dataService.getPoint(line.startId);
|
|
|
let endPoint = dataService.getPoint(line.endId);
|
|
|
dataService.deleteLine(focusItem.vectorId);
|
|
|
let curveLine = lineService.createCurveLine(startPoint, endPoint);
|
|
|
mathUtil.clonePoint(curveLine.points[1], position);
|
|
|
curveLine.curves = mathUtil.getCurvesByPoints(curveLine.points);
|
|
|
+ curveLine.setWeight(weight);
|
|
|
} else if (focusItem.type == VectorType.CurveLine) {
|
|
|
let curveLine = dataService.getCurveLine(focusItem.vectorId);
|
|
|
let index = mathUtil.getIndexForCurvesPoints(
|