Add onCreate in customElementConfig

This commit is contained in:
ad1992
2022-04-19 21:58:38 +05:30
parent 4e75f10b2c
commit ba48aa24a0
4 changed files with 48 additions and 28 deletions

View File

@@ -232,6 +232,7 @@ export type CustomElementConfig = {
width?: number;
height?: number;
stackedOnTop: boolean;
onCreate?: (element: ExcalidrawElement) => void;
};
export interface ExcalidrawProps {
onChange?: (