2020-01-06 20:24:54 +04:00
|
|
|
import { ExcalidrawElement } from "./element/types";
|
|
|
|
|
|
|
|
export type AppState = {
|
|
|
|
draggingElement: ExcalidrawElement | null;
|
|
|
|
resizingElement: ExcalidrawElement | null;
|
2020-02-01 15:49:18 +04:00
|
|
|
multiElement: ExcalidrawElement | null;
|
2020-02-05 22:47:10 +04:00
|
|
|
selectionElement: ExcalidrawElement | null;
|
2020-01-19 23:32:24 +01:00
|
|
|
// element being edited, but not necessarily added to elements array yet
|
|
|
|
// (e.g. text element when typing into the input)
|
|
|
|
editingElement: ExcalidrawElement | null;
|
2020-01-06 20:24:54 +04:00
|
|
|
elementType: string;
|
2020-01-20 15:52:19 -08:00
|
|
|
elementLocked: boolean;
|
2020-01-06 20:24:54 +04:00
|
|
|
exportBackground: boolean;
|
|
|
|
currentItemStrokeColor: string;
|
|
|
|
currentItemBackgroundColor: string;
|
2020-01-25 18:58:57 +01:00
|
|
|
currentItemFillStyle: string;
|
|
|
|
currentItemStrokeWidth: number;
|
|
|
|
currentItemRoughness: number;
|
|
|
|
currentItemOpacity: number;
|
2020-01-07 22:21:05 +05:00
|
|
|
currentItemFont: string;
|
2020-01-06 20:24:54 +04:00
|
|
|
viewBackgroundColor: string;
|
|
|
|
scrollX: number;
|
|
|
|
scrollY: number;
|
2020-01-09 12:34:46 +01:00
|
|
|
cursorX: number;
|
|
|
|
cursorY: number;
|
2020-02-01 16:52:10 +00:00
|
|
|
scrolledOutside: boolean;
|
2020-01-06 20:24:54 +04:00
|
|
|
name: string;
|
2020-01-30 16:39:37 -03:00
|
|
|
selectedId?: string;
|
2020-02-03 21:52:21 +04:00
|
|
|
isResizing: boolean;
|
2020-01-06 20:24:54 +04:00
|
|
|
};
|