You can click a button in the component to show the error in the console. Add a command to manually refresh components Obsidian React Components: Refresh React Components Replace isPreviewMode with useIsPreview
This will reset your embedded image to 100% size every time you open the Excalidraw drawing, or in case you have embedded an Excalidraw drawing on your canvas inserted using this function, every time you update the embedded drawing, it will be scaled back to 100% size. This means that eve...
getGridColor(canvasColor, st)}, storeAction: "update"})); window.setTimeout(()=>this.updateScene({appState:{gridColor: this.getGridColor(canvasColor, st)}, captureUpdate: CaptureUpdateAction.NEVER})); } private canvasColorChangeHook(st: AppState) { @@ -4183,7 +4189,7 @@ export ...
target.className === "excalidraw__canvas" || //@ts-ignore @@ -2941,7 +2928,7 @@ export default class ExcalidrawPlugin extends Plugin { (process.env.NODE_ENV === 'development') && DEBUGGING && debug(onFileMenuEventSaveActiveDrawing,`ExcalidrawPlugin.onFileMenuEventSaveActiveDrawing`)...
canvas: {theme: string, viewBackgroundColor: string}; setFillStyle: Function; setStrokeStyle: Function; setStrokeSharpness: Function; setFontFamily: Function; setTheme: Function; create: Function; addRect: Function; addDiamond: Function; addEllipse: Function; addText: Function; addLine: Function; ...
Enterprise-grade 24/7 support Pricing Search or jump to... Sign in Sign up Reseting focus zsviczian/obsidian-excalidraw-pluginPublic Notifications Fork237 Star4.4k Code Issues760 Pull requests10 Discussions Actions Projects Wiki Security Insights...
(file, data, cache) => this.updateFileCache(file, cache?.frontmatter), ), ); }); } //Save the drawing if the user clicks outside the canvas addFileSaveTriggerEventHandlers() { //https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/551 const onClickEventSaveActiveDraw...
This will reset your embedded image to 100% size every time you open the Excalidraw drawing, or in case you have embedded an Excalidraw drawing on your canvas inserted using this function, every time you update the embedded drawing, it will be scaled back to 100% size. This means that eve...