bill 2 lat temu
rodzic
commit
8f372087f9
1 zmienionych plików z 2 dodań i 20 usunięć
  1. 2 20
      src/graphic/Renderer/Draw.js

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

@@ -26,6 +26,7 @@ const help = {
     ];
     let currentAttr;
 
+    console.log(itemsEntry)
     return [
       itemsEntry.reduce((prev, [item, attr]) => {
         if (!item) return prev;
@@ -932,9 +933,6 @@ export default class Draw {
         ...style,
         ...stylea
       }
-      // if (!attr) {
-      //   return;
-      // }
     }
 
     if (vector.color) {
@@ -954,23 +952,7 @@ export default class Draw {
       ctx.fill();
       ctx.restore();
     };
-    // let points = dataService.vectorData.points;
-    // Settings.basePointIds =[]
-    // for (let key in points) {
-    //   if (points[key].category == VectorCategory.Point.BasePoint) {
-    //     Settings.basePointIds.push(points[key].vectorId)
-    //   }
-    // }
-    // if(  Settings.basePointIds.length==1){
-    //   Settings.selectBasePointId =  Settings.basePointIds[0];
-    // }else{
-    //   // Settings.selectBasePointId =null
-    // }
-    let focusItem = stateService.getFocusItem()
-    // if (Settings.selectBasePointId === vector.vectorId && focusItem?.vectorId == vector.vectorId ) {
-    
     if (Settings.selectBasePointId === vector.vectorId  ) {
-
       style = {
         ...style,
         strokeStyle: "rgba(255,255,255,1)",
@@ -981,7 +963,7 @@ export default class Draw {
       };
     }
 
-
+    console.log(vector, style, Settings.selectBasePointId)
     draw(style);
     if (style.out) {
       draw(style.out);