Update renderElement.ts

This commit is contained in:
zsviczian 2023-01-05 09:44:29 +01:00 committed by GitHub
parent 0604542cfb
commit a9c3784f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,8 +239,8 @@ const drawElementOnCanvas = (
if (!fillShape && element.customData?.strokeOptions?.hasOutline) {
context.lineWidth =
(element.strokeWidth / 5) *
element.customData.strokeOptions.outlineWidth ?? 1;
element.strokeWidth *
(element.customData.strokeOptions.outlineWidth ?? 1);
context.strokeStyle = element.strokeColor;
context.stroke(path);
context.fillStyle = element.backgroundColor;