fix(core,connection-line): pass flow id to getMarkerId in connection line
This commit is contained in:
@@ -19,6 +19,7 @@ const ConnectionLine = defineComponent({
|
|||||||
compatConfig: { MODE: 3 },
|
compatConfig: { MODE: 3 },
|
||||||
setup() {
|
setup() {
|
||||||
const {
|
const {
|
||||||
|
id,
|
||||||
connectionMode,
|
connectionMode,
|
||||||
connectionStartHandle,
|
connectionStartHandle,
|
||||||
connectionEndHandle,
|
connectionEndHandle,
|
||||||
@@ -138,8 +139,8 @@ const ConnectionLine = defineComponent({
|
|||||||
sourceHandle: fromHandle,
|
sourceHandle: fromHandle,
|
||||||
targetNode,
|
targetNode,
|
||||||
targetHandle: toHandle,
|
targetHandle: toHandle,
|
||||||
markerEnd: `url(#${getMarkerId(connectionLineOptions.value.markerEnd)})`,
|
markerEnd: `url(#${getMarkerId(connectionLineOptions.value.markerEnd, id)})`,
|
||||||
markerStart: `url(#${getMarkerId(connectionLineOptions.value.markerStart)})`,
|
markerStart: `url(#${getMarkerId(connectionLineOptions.value.markerStart, id)})`,
|
||||||
connectionStatus: connectionStatus.value,
|
connectionStatus: connectionStatus.value,
|
||||||
})
|
})
|
||||||
: h('path', {
|
: h('path', {
|
||||||
@@ -149,8 +150,8 @@ const ConnectionLine = defineComponent({
|
|||||||
...connectionLineStyle.value,
|
...connectionLineStyle.value,
|
||||||
...connectionLineOptions.value.style,
|
...connectionLineOptions.value.style,
|
||||||
},
|
},
|
||||||
'marker-end': `url(#${getMarkerId(connectionLineOptions.value.markerEnd)})`,
|
'marker-end': `url(#${getMarkerId(connectionLineOptions.value.markerEnd, id)})`,
|
||||||
'marker-start': `url(#${getMarkerId(connectionLineOptions.value.markerStart)})`,
|
'marker-start': `url(#${getMarkerId(connectionLineOptions.value.markerStart, id)})`,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user