Skip to content

Commit 4e5569e

Browse files
graph: fix missing graph arrows (#2224)
* Fix an issue where graph arrow heads would disappear if another graph view instance was opened. * The marker ID from one `<svg />` document appears to have been interfering with another
1 parent d47e535 commit 4e5569e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Graph.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3232
>
3333
<defs>
3434
<marker
35-
id="arrow-end"
35+
:id="`${_uid}-arrow-end`"
3636
viewbox="0 0 8 8"
3737
refX="1" refY="5"
3838
markerUnits="strokeWidth"
@@ -83,7 +83,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8383
stroke="rgb(90,90,90)"
8484
stroke-width="5"
8585
fill="none"
86-
marker-end="url(#arrow-end)"
86+
:marker-end="`url(#${_uid}-arrow-end)`"
8787
/>
8888
</g>
8989
</g>

0 commit comments

Comments
 (0)