7eff6893c5
* feat: calculate coords based on parent left and top so it renders correctly in host App * fix text * move offsets to state & fix bugs * fix text jumping * account for zoom in textWysiwyg & undo incorrect offsetting Co-authored-by: dwelle <luzar.david@gmail.com>
11 lines
292 B
TypeScript
11 lines
292 B
TypeScript
import { ExcalidrawElement } from "../element/types";
|
|
import { AppState } from "../types";
|
|
|
|
export interface DataState {
|
|
type?: string;
|
|
version?: string;
|
|
source?: string;
|
|
elements: readonly ExcalidrawElement[];
|
|
appState: MarkOptional<AppState, "offsetTop" | "offsetLeft"> | null;
|
|
}
|