mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 14:00:56 +02:00
update config to use displayData
This commit is contained in:
@@ -228,7 +228,12 @@ export type CustomElementConfig = {
|
||||
type: "custom";
|
||||
customType: string;
|
||||
transformHandles?: boolean;
|
||||
svg: string | ((element?: ExcalidrawElement) => string | Promise<string>);
|
||||
displayData: {
|
||||
type: "svg" | "dataURL";
|
||||
content:
|
||||
| string
|
||||
| ((element?: ExcalidrawElement) => string | Promise<string>);
|
||||
};
|
||||
width?: number;
|
||||
height?: number;
|
||||
stackedOnTop: boolean;
|
||||
|
Reference in New Issue
Block a user