chore(core): cleanup import paths

This commit is contained in:
braks
2022-11-17 14:41:28 +01:00
committed by Braks
parent 6f8b16a867
commit 406b20b8ba
11 changed files with 0 additions and 13 deletions

View File

@@ -3,7 +3,6 @@ import { drag } from 'd3-drag'
import { select } from 'd3-selection'
import type { Ref } from 'vue'
import type { MaybeRef } from '@vueuse/core'
import useVueFlow from './useVueFlow'
import type { NodeDragEvent, NodeDragItem, SnapGrid, XYPosition } from '~/types'
export type UseDragEvent = D3DragEvent<HTMLDivElement, null, SubjectPosition>

View File

@@ -1,4 +1,3 @@
import useVueFlow from './useVueFlow'
import type { CustomEvent, ElementData } from '~/types'
/**

View File

@@ -1,6 +1,5 @@
import type { MaybeRef } from '@vueuse/core'
import { isFunction } from '@vueuse/core'
import useVueFlow from './useVueFlow'
import type { Connection, Getters, GraphEdge, HandleType, ValidConnectionFunc } from '~/types'
import { ConnectionMode } from '~/types'

View File

@@ -1,7 +1,6 @@
import type { Ref } from 'vue'
import type { KeyFilter, MaybeRef } from '@vueuse/core'
import { isBoolean, isFunction } from '@vueuse/core'
import useWindow from './useWindow'
function isInputDOMNode(event: KeyboardEvent): boolean {
const target = event.composedPath()[0] as HTMLElement

View File

@@ -1,4 +1,3 @@
import useVueFlow from './useVueFlow'
import type { CustomEvent, ElementData } from '~/types'
/**

View File

@@ -1,6 +1,4 @@
import { zoomIdentity } from 'd3-zoom'
import useVueFlow from './useVueFlow'
import useWindow from './useWindow'
import type { D3Selection, Dimensions, Getters, GraphNode, ViewportFunctions } from '~/types'
const DEFAULT_PADDING = 0.1

View File

@@ -1,4 +1,3 @@
import { isGraphNode } from './graph'
import type {
Edge,
EdgeAddChange,

View File

@@ -1,4 +1,3 @@
import { rectToBox } from './graph'
import type { EdgePositions, Getters, GraphEdge, GraphNode, HandleElement, Rect, Viewport, XYPosition } from '~/types'
import { Position } from '~/types'

View File

@@ -1,5 +1,4 @@
import { isString } from '@vueuse/core'
import { warn } from './log'
import type {
Box,
Connection,

View File

@@ -1,5 +1,4 @@
import type { Ref } from 'vue'
import { getDimensions } from './graph'
import type { Actions, GraphNode, HandleElement, Position } from '~/types'
export const getHandleBounds = (selector: string, nodeElement: HTMLDivElement, zoom: number): HandleElement[] | undefined => {

View File

@@ -1,5 +1,3 @@
import { clampPosition, connectionExists, getEdgeId, isEdge, isGraphEdge, parseEdge, parseNode } from './graph'
import { warn } from './log'
import type { Connection, CoordinateExtent, Edge, Getters, GraphEdge, GraphNode, Node } from '~/types'
export const isDef = <T>(val: T): val is NonNullable<T> => typeof val !== 'undefined'