mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix zero-coalescing roughness (#924)
This commit is contained in:
parent
2db2f3f5e4
commit
3a5ca27600
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ export function restore(
|
|||
id: element.id || nanoid(),
|
||||
fillStyle: element.fillStyle || "hachure",
|
||||
strokeWidth: element.strokeWidth || 1,
|
||||
roughness: element.roughness || 1,
|
||||
roughness: element.roughness ?? 1,
|
||||
opacity:
|
||||
element.opacity === null || element.opacity === undefined
|
||||
? 100
|
||||
|
|
Loading…
Add table
Reference in a new issue