This commit is contained in:
Aakansha Doshi 2023-05-22 13:57:05 +05:30
parent dcf9e27e51
commit 5bfe4dff5f
5 changed files with 2 additions and 4 deletions

View file

@ -42,7 +42,6 @@ import {
measureBaseline,
} from "../element/textElement";
import { convertToExcalidrawElements } from "../element/newElement";
import { COLOR_PALETTE } from "../colors";
type RestoredAppState = Omit<
AppState,

View file

@ -1,6 +1,5 @@
import {
ExcalidrawElement,
ExcalidrawGenericElement,
FontFamilyValues,
TextAlign,
VerticalAlign,

View file

@ -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",

View file

@ -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";

View file

@ -606,6 +606,7 @@ const ExcalidrawWrapper = () => {
const isOffline = useAtomValue(isOfflineAtom);
//@ts-ignore
const getInitialData = (): ExcalidrawInitialDataState => {
return {
scrollToContent: true,