|
@@ -36,6 +36,7 @@ import { roadService } from "./Service/RoadService";
|
|
|
import { edgeService } from "./Service/EdgeService";
|
|
|
import { roadPointService } from "./Service/RoadPointService";
|
|
|
import { curveRoadService } from "./Service/CurveRoadService";
|
|
|
+import { curveRoadPointService } from "./Service/CurveRoadPointService";
|
|
|
import VectorCategory from "./enum/VectorCategory";
|
|
|
import Settings from "./Settings";
|
|
|
import Constant from "./Constant";
|
|
@@ -769,12 +770,13 @@ export default class Layer {
|
|
|
}
|
|
|
point = dataService.getCurveRoadPoint(draggingItem.vectorId);
|
|
|
listenLayer.start(position, {
|
|
|
- exceptRoadPointId: draggingItem.vectorId,
|
|
|
+ exceptCurveRoadPointId: draggingItem.vectorId,
|
|
|
exceptCurveRoadId: point.parent, //不会融合,所以parent只有一个
|
|
|
});
|
|
|
if (
|
|
|
listenLayer.modifyPoint &&
|
|
|
- (listenLayer.modifyPoint.linkedRoadPointId ||
|
|
|
+ (listenLayer.modifyPoint.linkedCurveRoadPointId ||
|
|
|
+ listenLayer.modifyPoint.linkedRoadPointId ||
|
|
|
listenLayer.modifyPoint.linkedRoadId ||
|
|
|
listenLayer.modifyPoint.linkedRoadPointIdX ||
|
|
|
listenLayer.modifyPoint.linkedRoadPointIdY ||
|
|
@@ -847,6 +849,9 @@ export default class Layer {
|
|
|
}
|
|
|
movePoint.movePoint(position, draggingItem.vectorId);
|
|
|
point = dataService.getPoint(draggingItem.vectorId);
|
|
|
+ if (point.getCategory() == VectorCategory.Point.FixPoint) {
|
|
|
+ moveText.moveFullText(position, point.linkedTextId);
|
|
|
+ }
|
|
|
needAutoRedraw = true;
|
|
|
if (!point) {
|
|
|
stateService.clearEventName();
|
|
@@ -1149,6 +1154,26 @@ export default class Layer {
|
|
|
break;
|
|
|
case LayerEvents.MoveCurveRoadPoint:
|
|
|
needAutoRedraw = true;
|
|
|
+ if (
|
|
|
+ listenLayer.modifyPoint &&
|
|
|
+ listenLayer.modifyPoint.linkedCurveRoadPointId
|
|
|
+ ) {
|
|
|
+ let curveRoadPoint1 = dataService.getCurveRoadPoint(
|
|
|
+ listenLayer.modifyPoint.linkedCurveRoadPointId
|
|
|
+ );
|
|
|
+ let curveRoadPoint2 = dataService.getCurveRoadPoint(
|
|
|
+ draggingItem.vectorId
|
|
|
+ );
|
|
|
+ if (
|
|
|
+ listenLayer.modifyPoint.linkedCurveRoadPointId !=
|
|
|
+ draggingItem.vectorId &&
|
|
|
+ curveRoadPoint1.getParent() == curveRoadPoint2.getParent()
|
|
|
+ ) {
|
|
|
+ curveRoadPointService.deleteCurveRoadPoint(
|
|
|
+ listenLayer.modifyPoint.linkedCurveRoadPointId
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
this.history.save();
|
|
|
break;
|
|
|
case LayerEvents.MoveCrossPoint:
|
|
@@ -1179,6 +1204,25 @@ export default class Layer {
|
|
|
break;
|
|
|
case LayerEvents.MoveCurvePoint:
|
|
|
needAutoRedraw = true;
|
|
|
+ if (
|
|
|
+ listenLayer.modifyPoint &&
|
|
|
+ listenLayer.modifyPoint.linkedCurvePointId
|
|
|
+ ) {
|
|
|
+ let curvePoint1 = dataService.getCurvePoint(
|
|
|
+ listenLayer.modifyPoint.linkedCurvePointId
|
|
|
+ );
|
|
|
+ let curvePoint2 = dataService.getCurvePoint(draggingItem.vectorId);
|
|
|
+ if (
|
|
|
+ listenLayer.modifyPoint.linkedCurvePointId !=
|
|
|
+ draggingItem.vectorId &&
|
|
|
+ curvePoint1.getParent() == curvePoint2.getParent()
|
|
|
+ ) {
|
|
|
+ lineService.deleteCrossPointForCurveLine(
|
|
|
+ listenLayer.modifyPoint.linkedCurvePointId,
|
|
|
+ curvePoint1.getParent()
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
this.history.save();
|
|
|
break;
|
|
|
case LayerEvents.MoveCurveLine:
|