chore(core): cleanup

This commit is contained in:
braks
2024-05-31 16:09:34 +02:00
committed by Braks
parent 02f3ca2ba0
commit 1a87312434
+2 -2
View File
@@ -83,7 +83,7 @@ export function useGetters(state: State, nodeIds: ComputedRef<string[]>, edgeIds
return nodes
})
const edgeHidden = (e: GraphEdge, source?: GraphNode, target?: GraphNode) => {
const edgeVisible = (e: GraphEdge, source?: GraphNode, target?: GraphNode) => {
source = source ?? getNode.value(e.source)
target = target ?? getNode.value(e.target)
@@ -99,7 +99,7 @@ export function useGetters(state: State, nodeIds: ComputedRef<string[]>, edgeIds
const edges: GraphEdge[] = []
for (const edge of state.edges) {
if (!edgeHidden(edge)) {
if (edgeVisible(edge)) {
edges.push(edge)
}
}