Skip to content

Commit 88882d0

Browse files
committed
chore(core): cleanup markers
1 parent 2f2036e commit 88882d0

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

packages/core/src/container/EdgeRenderer/MarkerDefinitions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { computed } from 'vue'
33
import type { EdgeMarkerType, MarkerProps, MarkerType } from '../../types/edge'
44
import { useVueFlow } from '../../composables'
55
import { getMarkerId } from '../../utils'
6-
import Marker from './Marker.vue'
6+
import MarkerSymbols from './MarkerSymbols.vue'
77
88
const { id: vueFlowId, edges, connectionLineOptions, defaultMarkerColor: defaultColor } = $(useVueFlow())
99
@@ -45,7 +45,7 @@ export default {
4545

4646
<template>
4747
<defs>
48-
<Marker
48+
<MarkerSymbols
4949
v-for="marker of markers"
5050
:id="marker.id"
5151
:key="marker.id"

packages/core/src/container/EdgeRenderer/Marker.vue renamed to packages/core/src/container/EdgeRenderer/MarkerSymbols.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,24 @@ export default {
3535
>
3636
<polyline
3737
v-if="type === MarkerType.ArrowClosed"
38-
:stroke="color"
38+
:style="{
39+
stroke: color,
40+
fill: color,
41+
strokeWidth,
42+
}"
3943
stroke-linecap="round"
4044
stroke-linejoin="round"
41-
:stroke-width="strokeWidth"
42-
:fill="color"
4345
points="-5,-4 0,0 -5,4 -5,-4"
4446
/>
47+
4548
<polyline
4649
v-if="type === MarkerType.Arrow"
47-
:stroke="color"
50+
:style="{
51+
stroke: color,
52+
strokeWidth,
53+
}"
4854
stroke-linecap="round"
4955
stroke-linejoin="round"
50-
:stroke-width="strokeWidth"
5156
fill="none"
5257
points="-5,-4 0,0 -5,4"
5358
/>

0 commit comments

Comments
 (0)