From c71a5b240315bc682df1e14d696334ee69ace89b Mon Sep 17 00:00:00 2001 From: zsviczian Date: Tue, 25 Jan 2022 07:48:26 +0100 Subject: [PATCH] Update Add Next Step in Process.md --- ea-scripts/Add Next Step in Process.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ea-scripts/Add Next Step in Process.md b/ea-scripts/Add Next Step in Process.md index f582066..b5d4773 100644 --- a/ea-scripts/Add Next Step in Process.md +++ b/ea-scripts/Add Next Step in Process.md @@ -43,6 +43,11 @@ if(!settings["Starting arrowhead"]) { const arrowStart = settings["Starting arrowhead"].value === "none" ? null : settings["Starting arrowhead"].value; const arrowEnd = settings["Ending arrowhead"].value === "none" ? null : settings["Ending arrowhead"].value; + +// workaround until https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/388 is fixed +if (!arrowEnd) ea.style.endArrowHead = null; +if (!arrowStart) ea.style.startArrowHead = null; + const linePoints = Math.floor(settings["Line points"].value); const gapBetweenElements = Math.floor(settings["Gap between elements"].value); const wrapLineLen = Math.floor(settings["Wrap text at (number of characters)"].value); @@ -129,4 +134,4 @@ const API = ea.getExcalidrawAPI(); st = API.getAppState(); st.selectedElementIds = {}; st.selectedElementIds[id] = true; -API.updateScene({appState: st}); \ No newline at end of file +API.updateScene({appState: st});