chore(core): cleanup

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-03 08:53:33 +02:00
committed by Braks
parent df46137d23
commit 26a68e83ed
2 changed files with 3 additions and 0 deletions
@@ -189,6 +189,7 @@ const EdgeWrapper = defineComponent({
'centerX': sourceX, 'centerX': sourceX,
'centerY': sourceY, 'centerY': sourceY,
'radius': edgeUpdaterRadius.value, 'radius': edgeUpdaterRadius.value,
'type': 'source',
'data-type': 'source', 'data-type': 'source',
}), }),
), ),
@@ -208,6 +209,7 @@ const EdgeWrapper = defineComponent({
'centerX': targetX, 'centerX': targetX,
'centerY': targetY, 'centerY': targetY,
'radius': edgeUpdaterRadius.value, 'radius': edgeUpdaterRadius.value,
'type': 'target',
'data-type': 'target', 'data-type': 'target',
}), }),
), ),
+1
View File
@@ -56,6 +56,7 @@ export function createHooks(): FlowHooks {
edgeUpdateEnd: createExtendedEventHook(), edgeUpdateEnd: createExtendedEventHook(),
updateNodeInternals: createExtendedEventHook(), updateNodeInternals: createExtendedEventHook(),
error: createExtendedEventHook((err) => warn(err.message)), error: createExtendedEventHook((err) => warn(err.message)),
}
} }
export function useHooks(emit: (...args: any[]) => void, hooks: Ref<FlowHooks>) { export function useHooks(emit: (...args: any[]) => void, hooks: Ref<FlowHooks>) {