浏览代码

fix: 综合定位法保存好拖动

jinx 2 年之前
父节点
当前提交
278507b57b

文件差异内容过多而无法显示
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 1 - 0
src/graphic/Controls/MoveLine.js

@@ -14,6 +14,7 @@ export default class MoveLine {
     let line = dataService.getLine(lineId);
     let line = dataService.getLine(lineId);
     let startPoint = dataService.getPoint(line.startId);
     let startPoint = dataService.getPoint(line.startId);
     let endPoint = dataService.getPoint(line.endId);
     let endPoint = dataService.getPoint(line.endId);
+
     //垂直移动
     //垂直移动
     if (
     if (
       line.getCategory() == VectorCategory.Line.PositionLine &&
       line.getCategory() == VectorCategory.Line.PositionLine &&

+ 1 - 0
src/graphic/Controls/MovePoint.js

@@ -19,6 +19,7 @@ export default class MovePoint {
     } else if (point.getCategory() == VectorCategory.Point.BasePoint) {
     } else if (point.getCategory() == VectorCategory.Point.BasePoint) {
       this.updateBasePoint(pointId);
       this.updateBasePoint(pointId);
     } else {
     } else {
+      
       let parent = point.getParent();
       let parent = point.getParent();
       for (let key in parent) {
       for (let key in parent) {
         let line = dataService.getLine(key);
         let line = dataService.getLine(key);

+ 7 - 0
src/graphic/Geometry/Geometry.js

@@ -127,6 +127,13 @@ export default class Geometry {
     this.locationMode = value;
     this.locationMode = value;
   }
   }
 
 
+  setLinkedBasePointId(id){
+    this.linkedBasePointId = id;
+  }
+  setLinkedTestPointId(id){
+    this.linkedTestPointId = id;
+  }
+
   getLocationMode() {
   getLocationMode() {
     return this.locationMode;
     return this.locationMode;
   }
   }

+ 3 - 0
src/graphic/Load.js

@@ -78,6 +78,9 @@ export default class Load {
             JSON.parse(JSON.stringify(dataLocal.points[key].parent))
             JSON.parse(JSON.stringify(dataLocal.points[key].parent))
           );
           );
           point.setDisplay(dataLocal.points[key].display);
           point.setDisplay(dataLocal.points[key].display);
+          point.setLocationMode(dataLocal.points[key].locationMode);
+          point.setLinkedBasePointId(dataLocal.points[key].linkedBasePointId);
+          point.setLinkedTestPointId(dataLocal.points[key].linkedTestPointId);
         }
         }
     
     
         // let points = dataService.vectorData.points;
         // let points = dataService.vectorData.points;