refactor(core): use v-bind to pass connection line props

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-11 02:34:43 +01:00
parent 03edd46cef
commit ea0696c566
@@ -101,17 +101,19 @@ export default {
<component <component
:is="connectionLineComponent" :is="connectionLineComponent"
v-if="connectionLineComponent" v-if="connectionLineComponent"
:source-x="sourceX" v-bind="{
:source-y="sourceY" sourceX,
:source-position="fromPosition" sourceY,
:targetX="targetX" sourcePosition: sourceHandle?.position,
:targetY="targetY" targetX,
:target-position="targetPosition" targetY,
:source-node="sourceNode" targetPosition,
:source-handle="sourceHandle" sourceNode,
:marker-end="`url(#${getMarkerId(connectionLineOptions.markerEnd)})`" sourceHandle,
:marker-start="`url(#${getMarkerId(connectionLineOptions.markerStart)})`" markerEnd: `url(#${getMarkerId(connectionLineOptions.markerEnd)})`,
:connection-status="connectionStatus" markerStart: `url(#${getMarkerId(connectionLineOptions.markerStart)})`,
connectionStatus,
}"
/> />
<path <path