Explorar o código

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

zsviczian %!s(int64=2) %!d(string=hai) anos
pai
achega
94a9e82228
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderer/renderElement.ts

+ 1 - 1
src/renderer/renderElement.ts

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