diff --git a/manifest.json b/manifest.json index 26f2783..4a640a5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "1.7.14", + "version": "1.7.15", "minAppVersion": "0.15.6", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/src/ExcalidrawView.ts b/src/ExcalidrawView.ts index b11750a..8c377bb 100644 --- a/src/ExcalidrawView.ts +++ b/src/ExcalidrawView.ts @@ -3240,6 +3240,7 @@ export default class ExcalidrawView extends TextFileView { const observer = React.useRef( new ResizeObserver((entries) => { + if(!toolsPanelRef || !toolsPanelRef.current) return; const { width, height } = entries[0].contentRect; const dx = toolsPanelRef.current.onRightEdge ? toolsPanelRef.current.previousWidth - width @@ -3251,7 +3252,7 @@ export default class ExcalidrawView extends TextFileView { }), ); React.useEffect(() => { - if (toolsPanelRef.current) { + if (toolsPanelRef?.current) { observer.current.observe(toolsPanelRef.current.containerRef.current); } return () => { diff --git a/src/dialogs/Messages.ts b/src/dialogs/Messages.ts index f38f528..0f3861f 100644 --- a/src/dialogs/Messages.ts +++ b/src/dialogs/Messages.ts @@ -17,6 +17,10 @@ I develop this plugin as a hobby, spending most of my free time doing this. If y
`, +"1.7.15":` +# Fixed +- Canvas turns white when adding point for curved line [#760](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/760), [#738](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/738), [#5602](https://github.com/excalidraw/excalidraw/issues/5602) +`, "1.7.14": `