mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-06 00:56:58 +02:00
Update renderElement.ts
This commit is contained in:
@@ -239,8 +239,8 @@ const drawElementOnCanvas = (
|
|||||||
|
|
||||||
if (!fillShape && element.customData?.strokeOptions?.hasOutline) {
|
if (!fillShape && element.customData?.strokeOptions?.hasOutline) {
|
||||||
context.lineWidth =
|
context.lineWidth =
|
||||||
(element.strokeWidth / 5) *
|
element.strokeWidth *
|
||||||
element.customData.strokeOptions.outlineWidth ?? 1;
|
(element.customData.strokeOptions.outlineWidth ?? 1);
|
||||||
context.strokeStyle = element.strokeColor;
|
context.strokeStyle = element.strokeColor;
|
||||||
context.stroke(path);
|
context.stroke(path);
|
||||||
context.fillStyle = element.backgroundColor;
|
context.fillStyle = element.backgroundColor;
|
||||||
|
Reference in New Issue
Block a user