Skip to content

Commit 17e5966

Browse files
committed
revert(core): import toValue from vueuse/core to avoid ambiguous export
1 parent 529d90a commit 17e5966

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/core/src/composables/useDrag.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { D3DragEvent, DragBehavior, SubjectPosition } from 'd3-drag'
22
import { drag } from 'd3-drag'
33
import { select } from 'd3-selection'
44
import type { MaybeRefOrGetter, Ref } from 'vue'
5-
import { ref, toValue, watch } from 'vue'
5+
import { ref, watch } from 'vue'
6+
import { toValue } from '@vueuse/core'
67
import { useGetPointerPosition, useVueFlow } from '.'
78
import {
89
calcAutoPan,

packages/core/src/composables/useHandle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { MaybeRefOrGetter } from 'vue'
2-
import { toValue } from 'vue'
2+
import { toValue } from '@vueuse/core'
33
import { useVueFlow } from './useVueFlow'
44
import type { Connection, ConnectionHandle, HandleType, MouseTouchEvent, ValidConnectionFunc } from '~/types'
55
import {

packages/core/src/composables/useKeyPress.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MaybeRefOrGetter } from 'vue'
2-
import { ref, toValue, watch } from 'vue'
2+
import { ref, watch } from 'vue'
33
import type { KeyFilter, KeyPredicate } from '@vueuse/core'
4-
import { onKeyStroke, useEventListener } from '@vueuse/core'
4+
import { onKeyStroke, toValue, useEventListener } from '@vueuse/core'
55
import { useWindow } from './useWindow'
66

77
export function isInputDOMNode(event: KeyboardEvent): boolean {

0 commit comments

Comments
 (0)