diff options
author | bobzel <zzzman@gmail.com> | 2021-09-30 10:23:13 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-30 10:23:13 -0400 |
commit | 479a2a8e004e1b0e8711fc670b7a9146b3039dfa (patch) | |
tree | 6d358e4b5490a3d6cfdb28e6fa3a991e27ba76c7 | |
parent | 4ccaecc185bed251ee74d1d9168cf3602c969680 (diff) |
from last
-rw-r--r-- | src/client/util/DragManager.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 6fde4b06e..858f67273 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -370,12 +370,11 @@ export namespace DragManager { const next = children.pop(); next && children.push(...Array.from(next.children)); if (next) { - if (next.localName.startsWith("path") && (next.attributes as any)["marker-start"]) { - next.setAttribute("marker-start", (next.attributes as any)["marker-start"].value.replace("#", "#X")); - } - if (next.localName.startsWith("path") && (next.attributes as any)["marker-end"]) { - next.setAttribute("marker-end", (next.attributes as any)["marker-end"].value.replace("#", "#X")); - } + ["marker-start", "marker-mid", "marker-end"].forEach(field => { + if (next.localName.startsWith("path") && (next.attributes as any)[field]) { + next.setAttribute(field, (next.attributes as any)[field].value.replace("#", "#X")); + } + }); if (next.localName.startsWith("marker")) { next.id = "X" + next.id; } |