This commit is contained in:
Zsolt Viczian
2022-08-21 21:16:50 +02:00
parent 3be592eeb8
commit 992af2b5ca
3 changed files with 7 additions and 2 deletions

View File

@@ -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",

View File

@@ -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 () => {

View File

@@ -17,6 +17,10 @@ I develop this plugin as a hobby, spending most of my free time doing this. If y
<div class="ex-coffee-div"><a href="https://ko-fi.com/zsolt"><img src="https://cdn.ko-fi.com/cdn/kofi3.png?v=3" height=45></a></div>
`,
"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": `
<div class="excalidraw-videoWrapper"><div>
<iframe src="https://www.youtube.com/embed/yZQoJg2RCKI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>