瀏覽代碼

trying to capture the element.id of the element where it breaks....

zsviczian 2 年之前
父節點
當前提交
94a9e82228
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderer/renderElement.ts

+ 1 - 1
src/renderer/renderElement.ts

@@ -227,7 +227,7 @@ const drawElementOnCanvas = (
         rc.draw(fillShape);
         rc.draw(fillShape);
       }
       }
       
       
-      context.beginPath();
+      window.navigator.clipboard.writeText(element.id);
       context.fillStyle = element.strokeColor;
       context.fillStyle = element.strokeColor;
       context.fill(path);
       context.fill(path);