xushiting пре 2 година
родитељ
комит
7dc59a5439

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


BIN
server/test/a0k4xu045_202305311600080410/attach/upload/1686123797237434.jpg


+ 6 - 0
src/graphic/Controls/UIControl.js

@@ -24,6 +24,7 @@ import { pointService } from "../Service/PointService.js";
 import Settings from "../Settings.js";
 import { addPoint } from "./AddPoint.js";
 import { ellipticService } from "../Service/EllipticService.js";
+import { curveRoadPointService } from "../Service/CurveRoadPointService.js";
 
 export default class UIControl {
   constructor(layer, newsletter, graphicStateUI) {
@@ -108,6 +109,8 @@ export default class UIControl {
     }
   }
 
+  updateVectorForSelectUI(selectUI) {}
+
   async handleGeo(action) {
     let needAutoRedraw = false;
     const item = stateService.getFocusItem();
@@ -136,6 +139,9 @@ export default class UIControl {
       case VectorType.Point:
         pointService.deletePoint(vectorId);
         break;
+      case VectorType.CurveRoadPoint:
+        curveRoadPointService.deletePoint(vectorId);
+        break;
       case VectorType.Line:
         dataService.deleteLine(vectorId);
         if (vectorId == Settings.baseLineId) {

+ 1 - 0
src/graphic/Geometry/CurveRoadEdge.js

@@ -10,6 +10,7 @@ export default class CurveRoadEdge extends Geometry {
     this.start = {};
     this.end = {};
     this.vectorId = null;
+    this.style = null;
     this.points = [];
     this.curves = [];
     this.geoType = VectorType.CurveRoadEdge;

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

@@ -100,6 +100,14 @@ export default class Geometry {
     return this.color;
   }
 
+  getStyle() {
+    return this.style;
+  }
+
+  setStyle(style) {
+    this.style = style;
+  }
+
   // ptSrc: 圆上某点(初始点);
   // ptRotationCenter: 圆心点;
   // angle: 旋转角度°  -- [angle * M_PI / 180]:将角度换算为弧度

+ 1 - 1
src/graphic/Geometry/RoadEdge.js

@@ -10,9 +10,9 @@ export default class RoadEdge extends Geometry {
     this.start = {};
     this.end = {};
     this.vectorId = null;
+    this.style = null;
     this.geoType = VectorType.RoadEdge;
     this.setId(vectorId);
-
     this.setPositions(start, end);
   }
 

+ 13 - 0
src/graphic/enum/VectorStyle.js

@@ -0,0 +1,13 @@
+import UIEvents from "./UIEvents";
+const VectorStyle = {
+  SingleSolidLine: UIEvents.SingleSolidLine,
+  SingleDashedLine: UIEvents.SingleDashedLine,
+  DoubleSolidLine: UIEvents.DoubleSolidLine,
+  DoubleDashedLine: UIEvents.DoubleDashedLine,
+  BrokenLine: UIEvents.BrokenLine,
+  PointDrawLine: UIEvents.PointDrawLine,
+  Greenbelt: UIEvents.Greenbelt,
+  Bold: UIEvents.Bold,
+  Thinning: UIEvents.Thinning,
+};
+export default VectorStyle;