Update renderElement.ts

This commit is contained in:
zsviczian 2022-11-20 21:00:23 +01:00 committed by GitHub
parent 94a9e82228
commit 2eb259ae48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,9 +227,8 @@ const drawElementOnCanvas = (
rc.draw(fillShape); rc.draw(fillShape);
} }
window.navigator.clipboard.writeText(element.id);
context.fillStyle = element.strokeColor; context.fillStyle = element.strokeColor;
context.fill(path); if(Math.random()>0.5) context.fill(path);
context.restore(); context.restore();
break; break;