xushiting 2 лет назад
Родитель
Сommit
f2465a677e

+ 1 - 1
src/graphic/Controls/AddPoint.js

@@ -98,7 +98,7 @@ export default class AddPoint {
     lineService.createByPointId(
       testPointId,
       join.vectorId,
-      VectorCategory.Line.PositionLine
+      VectorCategory.Line.GuidePositionLine
     );
 
     lineService.createByPointId(

+ 4 - 1
src/graphic/ListenLayer.js

@@ -301,7 +301,10 @@ export default class ListenLayer {
       }
 
       const line = dataService.getLine(lineId);
-      if (line.getCategory() == VectorCategory.Line.PositionLine) {
+      if (
+        line.getCategory() == VectorCategory.Line.PositionLine ||
+        line.getCategory() == VectorCategory.Line.GuidePositionLine
+      ) {
         continue;
       }
       let startPoint = dataService.getPoint(line.startId);

+ 1 - 0
src/graphic/enum/VectorCategory.js

@@ -7,6 +7,7 @@ const VectorCategory = {
     MeasureLine: "MeasureLine",
     GuideLine: "GuideLine",
     PositionLine: "PositionLine", //定位线。基准点与待测点相连的线,或者与待测基准点相连的线
+    GuidePositionLine: "GuidePositionLine", //定位辅助线
   },
   Point: {
     BasePoint: "BasePoint", //基准点