support making transform handles optional

This commit is contained in:
ad1992
2022-03-23 23:24:25 +05:30
parent 61699ff3c2
commit 3d0a1106ff
9 changed files with 133 additions and 48 deletions

View File

@@ -206,11 +206,10 @@ export type ExcalidrawAPIRefValue =
ready?: false;
};
type CustomElementConfig = {
export type CustomElementConfig = {
type: "custom";
name: string;
resize?: boolean;
rotate?: boolean;
transformHandles?: boolean;
svg: string;
width?: number;
height?: number;
@@ -317,6 +316,7 @@ export type AppProps = ExcalidrawProps & {
detectScroll: boolean;
handleKeyboardGlobally: boolean;
isCollaborating: boolean;
customElementsConfig: Required<CustomElementConfig>[] | undefined;
};
/** A subset of App class properties that we need to use elsewhere