瀏覽代碼

fix: 不需要限制基准点

jinx 2 年之前
父節點
當前提交
e5a19497fb
共有 2 個文件被更改,包括 9 次插入3 次删除
  1. 1 1
      server/test/a0k4xu045_202305311600080410/attach/sceneStore
  2. 8 2
      src/graphic/Renderer/Draw.js

文件差異過大導致無法顯示
+ 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.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,
         strokeStyle: "rgba(255,255,255,1)",