|
@@ -976,6 +976,8 @@ export default class Layer {
|
|
let vectorText = dataService.getText(draggingItem.vectorId);
|
|
let vectorText = dataService.getText(draggingItem.vectorId);
|
|
if (!vectorText.linkedPointId) {
|
|
if (!vectorText.linkedPointId) {
|
|
moveText.moveFullText(position, draggingItem.vectorId);
|
|
moveText.moveFullText(position, draggingItem.vectorId);
|
|
|
|
+ } else {
|
|
|
|
+ movePoint.movePoint(position, vectorText.linkedPointId);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -1068,7 +1070,6 @@ export default class Layer {
|
|
stateService.clearFocusItem();
|
|
stateService.clearFocusItem();
|
|
this.uiControl.clearFocusVector();
|
|
this.uiControl.clearFocusVector();
|
|
this.uiControl.clearCurrentUI();
|
|
this.uiControl.clearCurrentUI();
|
|
- uiService.setSelectBasePointId(null);
|
|
|
|
break;
|
|
break;
|
|
case LayerEvents.MoveRoadPoint:
|
|
case LayerEvents.MoveRoadPoint:
|
|
if (!draggingItem || !draggingItem.vectorId) {
|
|
if (!draggingItem || !draggingItem.vectorId) {
|
|
@@ -1083,47 +1084,7 @@ export default class Layer {
|
|
exceptRoadIds: point.parent,
|
|
exceptRoadIds: point.parent,
|
|
});
|
|
});
|
|
|
|
|
|
- if (
|
|
|
|
- listenLayer.modifyPoint &&
|
|
|
|
- listenLayer.modifyPoint.hasOwnProperty("linkedRoadPointId")
|
|
|
|
- ) {
|
|
|
|
- moveRoad.moveTo(
|
|
|
|
- draggingItem.vectorId,
|
|
|
|
- listenLayer.modifyPoint.linkedRoadPointId
|
|
|
|
- );
|
|
|
|
- } else if (
|
|
|
|
- listenLayer.modifyPoint &&
|
|
|
|
- (listenLayer.modifyPoint.linkedRoadPointIdX ||
|
|
|
|
- listenLayer.modifyPoint.linkedRoadPointIdY)
|
|
|
|
- ) {
|
|
|
|
- mathUtil.clonePoint(point, listenLayer.modifyPoint);
|
|
|
|
- } else if (
|
|
|
|
- listenLayer.modifyPoint &&
|
|
|
|
- listenLayer.modifyPoint.hasOwnProperty("linkedRoadId")
|
|
|
|
- ) {
|
|
|
|
- point = roadPointService.create({
|
|
|
|
- x: listenLayer.modifyPoint.x,
|
|
|
|
- y: listenLayer.modifyPoint.y,
|
|
|
|
- });
|
|
|
|
- roadService.splitRoad(
|
|
|
|
- listenLayer.modifyPoint.linkedRoadId,
|
|
|
|
- point.vectorId,
|
|
|
|
- "start"
|
|
|
|
- );
|
|
|
|
- moveRoad.moveTo(draggingItem.vectorId, point.vectorId);
|
|
|
|
- } else if (moveRoad.splitRoadId != null) {
|
|
|
|
- roadService.splitRoad(
|
|
|
|
- moveRoad.splitRoadId,
|
|
|
|
- draggingItem.vectorId,
|
|
|
|
- "start"
|
|
|
|
- );
|
|
|
|
- }
|
|
|
|
- //draggingItem.vectorId所在的墙面与其他墙角相交
|
|
|
|
- moveRoad.updateForAbsorbRoadPoints();
|
|
|
|
- let parent = point.getParent();
|
|
|
|
- for (let key in parent) {
|
|
|
|
- roadService.setLanes(key);
|
|
|
|
- }
|
|
|
|
|
|
+ moveRoad.finishByMoveRoadPoint(point);
|
|
this.history.save();
|
|
this.history.save();
|
|
}
|
|
}
|
|
break;
|
|
break;
|