generate2DShape but don't draw
This commit is contained in:
parent
2be34b770a
commit
3fb1a870e6
@ -221,14 +221,14 @@ const drawElementOnCanvas = (
|
|||||||
context.fillStyle = element.strokeColor;
|
context.fillStyle = element.strokeColor;
|
||||||
|
|
||||||
const path = getFreeDrawPath2D(element) as Path2D;
|
const path = getFreeDrawPath2D(element) as Path2D;
|
||||||
/*const fillShape = getShapeForElement(element);
|
const fillShape = getShapeForElement(element);
|
||||||
|
|
||||||
if (fillShape) {
|
if (fillShape && path) {
|
||||||
rc.draw(fillShape);
|
rc.draw(fillShape);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
context.fillStyle = element.strokeColor;
|
context.fillStyle = element.strokeColor;
|
||||||
context.fill(path);
|
//context.fill(path);
|
||||||
|
|
||||||
context.restore();
|
context.restore();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user