Browse Source

修复bug

xushiting 2 years ago
parent
commit
382d058f17

File diff suppressed because it is too large
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 2 - 0
src/graphic/Geometry/Img.js

@@ -13,6 +13,7 @@ export default class Img extends Geometry {
     this.center = null;
     this.center = null;
     this.imageData = null;
     this.imageData = null;
     this.bounding = null;
     this.bounding = null;
+    this.scale = 1;
     this.geoType = VectorType.Img;
     this.geoType = VectorType.Img;
     this.setId(vectorId);
     this.setId(vectorId);
     this.setSrc(src);
     this.setSrc(src);
@@ -59,5 +60,6 @@ export default class Img extends Geometry {
       x: this.center.x - width / 2,
       x: this.center.x - width / 2,
       y: this.center.y - height / 2,
       y: this.center.y - height / 2,
     };
     };
+    this.scale = coordinate.width / width;
   }
   }
 }
 }

+ 2 - 1
src/graphic/ListenLayer.js

@@ -757,7 +757,8 @@ export default class ListenLayer {
       let joinInfo = this.distanceForBezier(
       let joinInfo = this.distanceForBezier(
         position,
         position,
         curveRoad.curves,
         curveRoad.curves,
-        Constant.minAdsorbPix
+        //Constant.minAdsorbPix
+        Math.max(curveRoad.leftWidth, curveRoad.rightWidth)
       );
       );
 
 
       //检查edge
       //检查edge

+ 1 - 0
src/graphic/Service/LineService.js

@@ -251,6 +251,7 @@ export default class LineService {
         break;
         break;
       }
       }
     }
     }
+    dataService.deleteCurvePoint(curvePointId);
     if (curveLine.points.length == 2) {
     if (curveLine.points.length == 2) {
       let startPoint = dataService.getCurvePoint(curveLine.startId);
       let startPoint = dataService.getCurvePoint(curveLine.startId);
       let endPoint = dataService.getCurvePoint(curveLine.endId);
       let endPoint = dataService.getCurvePoint(curveLine.endId);