chore(core): cleanup

This commit is contained in:
braks
2024-02-15 17:46:21 +01:00
committed by Braks
parent dda5b58211
commit 0139e6eb0f
4 changed files with 8 additions and 11 deletions
+1 -3
View File
@@ -4,7 +4,6 @@ import { nextTick } from 'vue'
import { until } from '@vueuse/core'
import type {
Actions,
ComputedGetters,
CoordinateExtent,
EdgeChange,
EdgeRemoveChange,
@@ -56,13 +55,12 @@ import { storeOptionsToSkip, useState } from './state'
export function useActions(
id: string,
state: State,
getters: ComputedGetters,
// todo: change to a Set
nodeIds: ComputedRef<string[]>,
// todo: change to a Set
edgeIds: ComputedRef<string[]>,
): Actions {
const viewportHelper = useViewportHelper(state, getters)
const viewportHelper = useViewportHelper(state)
const updateNodeInternals: Actions['updateNodeInternals'] = (ids) => {
const updateIds = ids ?? nodeIds.value ?? []