generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(excalidraw): cannot read properties of undefined (reading "skipIn…
…liningFonts")
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
export declare class ExcalidrawAutomate { | ||
/** | ||
* | ||
* @param templatePath | ||
* @param embedFont | ||
* @param exportSettings use ExcalidrawAutomate.getExportSettings(boolean,boolean) | ||
* @param loader use ExcalidrawAutomate.getEmbeddedFilesLoader(boolean?) | ||
* @param theme | ||
* @param padding | ||
* @returns | ||
*/ | ||
createSVG( | ||
templatePath?: string, | ||
embedFont?: boolean, | ||
exportSettings?: ExportSettings, | ||
loader?: any, | ||
theme?: string, | ||
padding?: number | ||
): Promise<SVGSVGElement>; | ||
|
||
/** | ||
* utility function to generate EmbeddedFilesLoader object | ||
* @param isDark | ||
* @returns | ||
*/ | ||
getEmbeddedFilesLoader(isDark?: boolean): any; | ||
|
||
/** | ||
* utility function to generate ExportSettings object | ||
* @param withBackground | ||
* @param withTheme | ||
* @returns | ||
*/ | ||
getExportSettings(withBackground: boolean, withTheme: boolean): ExportSettings; | ||
} | ||
|
||
interface ExportSettings { | ||
withBackground: boolean; | ||
withTheme: boolean; | ||
isMask: boolean; | ||
frameRendering?: { | ||
//optional, overrides relevant appState settings for rendering the frame | ||
enabled: boolean; | ||
name: boolean; | ||
outline: boolean; | ||
clip: boolean; | ||
}; | ||
skipInliningFonts?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters