diff --git a/src/data/restore.ts b/src/data/restore.ts index a6fc86306a..3bb51839b6 100644 --- a/src/data/restore.ts +++ b/src/data/restore.ts @@ -42,7 +42,6 @@ import { measureBaseline, } from "../element/textElement"; import { convertToExcalidrawElements } from "../element/newElement"; -import { COLOR_PALETTE } from "../colors"; type RestoredAppState = Omit< AppState, diff --git a/src/data/types.ts b/src/data/types.ts index 4b86e4296e..58cb421e2e 100644 --- a/src/data/types.ts +++ b/src/data/types.ts @@ -1,6 +1,5 @@ import { ExcalidrawElement, - ExcalidrawGenericElement, FontFamilyValues, TextAlign, VerticalAlign, diff --git a/src/element/newElement.ts b/src/element/newElement.ts index 4b383fb2c7..cbb42a2097 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -49,7 +49,6 @@ import { import { isArrowElement } from "./typeChecks"; import { MarkOptional, Merge, Mutable } from "../utility-types"; import { ImportedDataState } from "../data/types"; -import { restoreElementWithProperties } from "../data/restore"; export const ELEMENTS_SUPPORTING_PROGRAMMATIC_API = [ "rectangle", diff --git a/src/element/types.ts b/src/element/types.ts index 2e6b9c80d7..4a4db7e8b2 100644 --- a/src/element/types.ts +++ b/src/element/types.ts @@ -6,7 +6,7 @@ import { THEME, VERTICAL_ALIGN, } from "../constants"; -import { MarkNonNullable, MarkOptional, ValueOf } from "../utility-types"; +import { MarkNonNullable, ValueOf } from "../utility-types"; export type ChartType = "bar" | "line"; export type FillStyle = "hachure" | "cross-hatch" | "solid" | "zigzag"; diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index c02af3a60b..02b63cd1e9 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -606,6 +606,7 @@ const ExcalidrawWrapper = () => { const isOffline = useAtomValue(isOfflineAtom); + //@ts-ignore const getInitialData = (): ExcalidrawInitialDataState => { return { scrollToContent: true,