|
|
@ -56,7 +56,7 @@ export function restore(
|
|
|
|
id: element.id || nanoid(),
|
|
|
|
id: element.id || nanoid(),
|
|
|
|
fillStyle: element.fillStyle || "hachure",
|
|
|
|
fillStyle: element.fillStyle || "hachure",
|
|
|
|
strokeWidth: element.strokeWidth || 1,
|
|
|
|
strokeWidth: element.strokeWidth || 1,
|
|
|
|
roughness: element.roughness || 1,
|
|
|
|
roughness: element.roughness ?? 1,
|
|
|
|
opacity:
|
|
|
|
opacity:
|
|
|
|
element.opacity === null || element.opacity === undefined
|
|
|
|
element.opacity === null || element.opacity === undefined
|
|
|
|
? 100
|
|
|
|
? 100
|
|
|
|