Forráskód Böngészése

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

jinx 2 éve
szülő
commit
278507b57b

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 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 startPoint = dataService.getPoint(line.startId);
     let endPoint = dataService.getPoint(line.endId);
+
     //垂直移动
     if (
       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) {
       this.updateBasePoint(pointId);
     } else {
+      
       let parent = point.getParent();
       for (let key in parent) {
         let line = dataService.getLine(key);

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

@@ -127,6 +127,13 @@ export default class Geometry {
     this.locationMode = value;
   }
 
+  setLinkedBasePointId(id){
+    this.linkedBasePointId = id;
+  }
+  setLinkedTestPointId(id){
+    this.linkedTestPointId = id;
+  }
+
   getLocationMode() {
     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))
           );
           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;