浏览代码

don't fill

zsviczian 2 年之前
父节点
当前提交
2be34b770a
共有 1 个文件被更改,包括 4 次插入4 次删除
  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) {
         rc.draw(fillShape);
-      }
+      }*/
 
-      //context.fillStyle = element.strokeColor;
-      //context.fill(path);
+      context.fillStyle = element.strokeColor;
+      context.fill(path);
 
       context.restore();
       break;