فهرست منبع

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)",