Browse Source

generate2DShape but don't draw

zsviczian 2 years ago
parent
commit
3fb1a870e6
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/renderer/renderElement.ts

+ 4 - 4
src/renderer/renderElement.ts

@@ -221,14 +221,14 @@ const drawElementOnCanvas = (
       context.fillStyle = element.strokeColor;
 
       const path = getFreeDrawPath2D(element) as Path2D;
-      /*const fillShape = getShapeForElement(element);
+      const fillShape = getShapeForElement(element);
 
-      if (fillShape) {
+      if (fillShape && path) {
         rc.draw(fillShape);
-      }*/
+      }
 
       context.fillStyle = element.strokeColor;
-      context.fill(path);
+      //context.fill(path);
 
       context.restore();
       break;