refactor(core): replace vueuse imports with vue

This commit is contained in:
braks
2024-02-21 23:27:01 +01:00
committed by Braks
parent c24287d4fc
commit e5a84656ad
11 changed files with 21 additions and 28 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import type { D3DragEvent, DragBehavior, SubjectPosition } from 'd3-drag'
import { drag } from 'd3-drag'
import { select } from 'd3-selection'
import type { Ref } from 'vue'
import { ref, watch } from 'vue'
import type { MaybeRefOrGetter } from '@vueuse/core'
import { toValue } from '@vueuse/core'
import type { MaybeRefOrGetter, Ref } from 'vue'
import { ref, toValue, watch } from 'vue'
import type { NodeDragEvent, NodeDragItem, XYPosition } from '../types'
import {
calcAutoPan,
+2 -2
View File
@@ -1,5 +1,5 @@
import type { MaybeRefOrGetter } from '@vueuse/core'
import { toValue } from '@vueuse/core'
import type { MaybeRefOrGetter } from 'vue'
import { toValue } from 'vue'
import type { Connection, ConnectionHandle, HandleType, MouseTouchEvent, ValidConnectionFunc } from '../types'
import {
calcAutoPan,
@@ -1,7 +1,5 @@
import type { ComputedRef } from 'vue'
import { computed, ref, watch } from 'vue'
import type { MaybeRefOrGetter } from '@vueuse/core'
import { toRef, toValue } from '@vueuse/core'
import type { ComputedRef, MaybeRefOrGetter } from 'vue'
import { computed, ref, toRef, toValue, watch } from 'vue'
import type { Connection, HandleType } from '../types'
import { areConnectionMapsEqual, handleConnectionChange } from '../utils'
import { useNodeId } from './useNodeId'
+4 -3
View File
@@ -1,6 +1,7 @@
import { ref, watch } from 'vue'
import type { KeyFilter, KeyPredicate, MaybeRefOrGetter } from '@vueuse/core'
import { onKeyStroke, toValue, useEventListener } from '@vueuse/core'
import type { MaybeRefOrGetter } from 'vue'
import { ref, toValue, watch } from 'vue'
import type { KeyFilter, KeyPredicate } from '@vueuse/core'
import { onKeyStroke, useEventListener } from '@vueuse/core'
import { useWindow } from './useWindow'
export function isInputDOMNode(event: KeyboardEvent): boolean {
@@ -1,7 +1,5 @@
import type { ComputedRef } from 'vue'
import { computed } from 'vue'
import type { MaybeRefOrGetter } from '@vueuse/core'
import { toValue } from '@vueuse/core'
import type { ComputedRef, MaybeRefOrGetter } from 'vue'
import { computed, toValue } from 'vue'
import type { GraphNode, Node } from '../types'
import { useVueFlow } from './useVueFlow'
@@ -1,7 +1,7 @@
import type { ToRefs } from 'vue'
import { effectScope, isRef, nextTick, onScopeDispose, watch } from 'vue'
import { effectScope, isRef, nextTick, onScopeDispose, toRef, watch } from 'vue'
import type { WatchPausableReturn } from '@vueuse/core'
import { toRef, watchPausable } from '@vueuse/core'
import { watchPausable } from '@vueuse/core'
import type { Connection, FlowProps, VueFlowStore } from '../types'
import { isDef } from '../utils'