Support svg as a async function returing promise/string
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ export type CustomElementConfig = {
|
||||
type: "custom";
|
||||
customType: string;
|
||||
transformHandles?: boolean;
|
||||
svg: string;
|
||||
svg: string | ((element?: ExcalidrawElement) => string | Promise<string>);
|
||||
width?: number;
|
||||
height?: number;
|
||||
stackedOnTop: boolean;
|
||||
|
||||
Reference in New Issue
Block a user