narrow down roughness type
This commit is contained in:
parent
8a106dde57
commit
9f6e3c5a9d
@ -21,7 +21,7 @@ type _ExcalidrawElementBase = Readonly<{
|
|||||||
strokeWidth: number;
|
strokeWidth: number;
|
||||||
strokeStyle: StrokeStyle;
|
strokeStyle: StrokeStyle;
|
||||||
strokeSharpness: StrokeSharpness;
|
strokeSharpness: StrokeSharpness;
|
||||||
roughness: number;
|
roughness: 0 | 1 | 2;
|
||||||
opacity: number;
|
opacity: number;
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
|
@ -55,7 +55,7 @@ export type AppState = {
|
|||||||
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
||||||
currentItemStrokeWidth: number;
|
currentItemStrokeWidth: number;
|
||||||
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
||||||
currentItemRoughness: number;
|
currentItemRoughness: ExcalidrawElement["roughness"];
|
||||||
currentItemOpacity: number;
|
currentItemOpacity: number;
|
||||||
currentItemFontFamily: FontFamily;
|
currentItemFontFamily: FontFamily;
|
||||||
currentItemFontSize: number;
|
currentItemFontSize: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user