chore(core): remove default val for interactionWidth when parsing edges

This commit is contained in:
braks
2022-11-13 08:34:51 +01:00
committed by Braks
parent ec6f870bfd
commit d580a475bb

View File

@@ -122,7 +122,7 @@ export const parseEdge = (edge: Edge, defaults?: Partial<GraphEdge>): GraphEdge
data: shallowReactive(edge.data || defaults?.data || {}),
events: shallowReactive(edge.events || defaults?.events || {}),
label: (edge.label && !isString(edge.label) ? markRaw(edge.label) : edge.label) || defaults?.label,
interactionWidth: edge.interactionWidth || defaults?.interactionWidth || 2,
interactionWidth: edge.interactionWidth || defaults?.interactionWidth,
} as GraphEdge)
: defaults