refactor(core,edges): remove default val for edge style obj

This commit is contained in:
braks
2022-11-13 23:25:04 +01:00
committed by Braks
parent 631552f9de
commit 354c721fd3
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@ const BaseEdge: FunctionalComponent<BaseEdgeProps> = function ({
}) {
return [
h('path', {
'style': { ...style },
'style': style,
'd': path,
'class': 'vue-flow__edge-path',
'marker-end': markerEnd,
@@ -179,7 +179,7 @@ const Wrapper = defineComponent({
labelBgBorderRadius: edge.labelBgBorderRadius,
data: edge.data,
events: { ...edge.events, ...hooks.on },
style: (edge.style instanceof Function ? edge.style(edge) : edge.style) || {},
style: edge.style instanceof Function ? edge.style(edge) : edge.style,
markerStart: `url(#${getMarkerId(edge.markerStart)})`,
markerEnd: `url(#${getMarkerId(edge.markerEnd)})`,
sourcePosition,