mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
implement stroke style (#1571)
This commit is contained in:
parent
f6be200388
commit
39c56a4c01
20 changed files with 459 additions and 9 deletions
|
@ -17,6 +17,7 @@ type ElementConstructorOpts = {
|
|||
backgroundColor: ExcalidrawGenericElement["backgroundColor"];
|
||||
fillStyle: ExcalidrawGenericElement["fillStyle"];
|
||||
strokeWidth: ExcalidrawGenericElement["strokeWidth"];
|
||||
strokeStyle: ExcalidrawGenericElement["strokeStyle"];
|
||||
roughness: ExcalidrawGenericElement["roughness"];
|
||||
opacity: ExcalidrawGenericElement["opacity"];
|
||||
width?: ExcalidrawGenericElement["width"];
|
||||
|
@ -33,6 +34,7 @@ function _newElementBase<T extends ExcalidrawElement>(
|
|||
backgroundColor,
|
||||
fillStyle,
|
||||
strokeWidth,
|
||||
strokeStyle,
|
||||
roughness,
|
||||
opacity,
|
||||
width = 0,
|
||||
|
@ -53,6 +55,7 @@ function _newElementBase<T extends ExcalidrawElement>(
|
|||
backgroundColor,
|
||||
fillStyle,
|
||||
strokeWidth,
|
||||
strokeStyle,
|
||||
roughness,
|
||||
opacity,
|
||||
seed: rest.seed ?? randomInteger(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue