Browse Source

fix: 不需要限制基准点

jinx 2 years ago
parent
commit
e5a19497fb

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


+ 8 - 2
src/graphic/Renderer/Draw.js

@@ -945,8 +945,14 @@ export default class Draw {
       ctx.fill();
       ctx.fill();
       ctx.restore();
       ctx.restore();
     };
     };
-
-    if (Settings.selectBasePointId === vector.vectorId) {
+    let points = dataService.vectorData.points;
+    for (let key in points) {
+      if (points[key].category == VectorCategory.Point.BasePoint) {
+        Settings.selectBasePointId = points[key].vectorId;
+      }
+    }
+    let focusItem = stateService.getFocusItem()
+    if (Settings.selectBasePointId === vector.vectorId && focusItem?.vectorId == vector.vectorId ) {
       style = {
       style = {
         ...style,
         ...style,
         strokeStyle: "rgba(255,255,255,1)",
         strokeStyle: "rgba(255,255,255,1)",