|
@@ -56,7 +56,7 @@ export default class Layer {
|
|
this.uiControl = new UIControl(this, newsletter, graphicState);
|
|
this.uiControl = new UIControl(this, newsletter, graphicState);
|
|
this.renderer = new Render(this);
|
|
this.renderer = new Render(this);
|
|
this.history = new History(this);
|
|
this.history = new History(this);
|
|
- this.coordinate = coordinate
|
|
|
|
|
|
+ this.coordinate = coordinate;
|
|
this.mousePosition = null;
|
|
this.mousePosition = null;
|
|
this.dragging = false; // 当前是否正在拖拽
|
|
this.dragging = false; // 当前是否正在拖拽
|
|
this.start();
|
|
this.start();
|
|
@@ -323,6 +323,8 @@ export default class Layer {
|
|
mathUtil.clonePoint(curveLine.points[1], position);
|
|
mathUtil.clonePoint(curveLine.points[1], position);
|
|
curveLine.curves = mathUtil.getCurvesByPoints(curveLine.points);
|
|
curveLine.curves = mathUtil.getCurvesByPoints(curveLine.points);
|
|
curveLine.setWeight(weight);
|
|
curveLine.setWeight(weight);
|
|
|
|
+ const style = line.getStyle();
|
|
|
|
+ curveLine.setStyle(style);
|
|
} else if (focusItem.type == VectorType.CurveLine) {
|
|
} else if (focusItem.type == VectorType.CurveLine) {
|
|
let curveLine = dataService.getCurveLine(focusItem.vectorId);
|
|
let curveLine = dataService.getCurveLine(focusItem.vectorId);
|
|
let index = mathUtil.getIndexForCurvesPoints(
|
|
let index = mathUtil.getIndexForCurvesPoints(
|