don't fill freedraw

This commit is contained in:
zsviczian 2022-11-20 20:22:18 +01:00 committed by GitHub
parent c6f175762c
commit e1f9b89f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ const drawElementOnCanvas = (
}
case "freedraw": {
// Draw directly to canvas
/*context.save();
context.save();
context.fillStyle = element.strokeColor;
const path = getFreeDrawPath2D(element) as Path2D;
@ -227,10 +227,10 @@ const drawElementOnCanvas = (
rc.draw(fillShape);
}
context.fillStyle = element.strokeColor;
context.fill(path);
//context.fillStyle = element.strokeColor;
//context.fill(path);
context.restore();*/
context.restore();
break;
}
case "image": {