implement stroke style (#1571)

This commit is contained in:
David Luzar 2020-05-14 17:04:33 +02:00 committed by GitHub
parent f6be200388
commit 39c56a4c01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 459 additions and 9 deletions

View file

@ -76,6 +76,7 @@ export function restore(
id: element.id || randomId(),
fillStyle: element.fillStyle || "hachure",
strokeWidth: element.strokeWidth || 1,
strokeStyle: element.strokeStyle ?? "solid",
roughness: element.roughness ?? 1,
opacity:
element.opacity === null || element.opacity === undefined