fix(core): remove ts-transform-paths and use relative paths
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { zoomIdentity } from 'd3-zoom'
|
||||
import type { ComputedRef } from 'vue'
|
||||
import { until } from '@vueuse/core'
|
||||
import { useState } from './state'
|
||||
import type {
|
||||
Actions,
|
||||
ComputedGetters,
|
||||
@@ -21,8 +20,8 @@ import type {
|
||||
NodeSelectionChange,
|
||||
Rect,
|
||||
State,
|
||||
} from '~/types'
|
||||
import { useViewport } from '~/composables'
|
||||
} from '../types'
|
||||
import { useViewport } from '../composables'
|
||||
import {
|
||||
ErrorCode,
|
||||
VueFlowError,
|
||||
@@ -49,7 +48,8 @@ import {
|
||||
nodeToRect,
|
||||
parseEdge,
|
||||
updateEdgeAction,
|
||||
} from '~/utils'
|
||||
} from '../utils'
|
||||
import { useState } from './state'
|
||||
|
||||
export function useActions(
|
||||
id: string,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { ComputedRef } from 'vue'
|
||||
import { computed } from 'vue'
|
||||
import type { ComputedGetters, GraphEdge, GraphNode, State } from '../types'
|
||||
import { ErrorCode, VueFlowError, getNodesInside, isEdgeVisible } from '../utils'
|
||||
import { defaultEdgeTypes, defaultNodeTypes } from './state'
|
||||
import type { ComputedGetters, GraphEdge, GraphNode, State } from '~/types'
|
||||
import { ErrorCode, VueFlowError, getNodesInside, isEdgeVisible } from '~/utils'
|
||||
|
||||
export function useGetters(state: State, nodeIds: ComputedRef<string[]>, edgeIds: ComputedRef<string[]>): ComputedGetters {
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { tryOnScopeDispose } from '@vueuse/core'
|
||||
import type { Ref } from 'vue'
|
||||
import { onBeforeMount } from 'vue'
|
||||
import type { FlowHooks } from '~/types'
|
||||
import { createExtendedEventHook, warn } from '~/utils'
|
||||
import type { FlowHooks } from '../types'
|
||||
import { createExtendedEventHook, warn } from '../utils'
|
||||
|
||||
// flow event hooks
|
||||
export function createHooks(): FlowHooks {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { createHooks } from './hooks'
|
||||
import type { DefaultEdgeTypes, DefaultNodeTypes, FlowOptions, State } from '~/types'
|
||||
import { ConnectionLineType, ConnectionMode, PanOnScrollMode, SelectionMode } from '~/types'
|
||||
import type { DefaultEdgeTypes, DefaultNodeTypes, FlowOptions, State } from '../types'
|
||||
import { ConnectionLineType, ConnectionMode, PanOnScrollMode, SelectionMode } from '../types'
|
||||
import {
|
||||
BezierEdge,
|
||||
DefaultNode,
|
||||
@@ -10,8 +9,9 @@ import {
|
||||
SmoothStepEdge,
|
||||
StepEdge,
|
||||
StraightEdge,
|
||||
} from '~/components'
|
||||
import { isDef, isMacOs } from '~/utils'
|
||||
} from '../components'
|
||||
import { isDef, isMacOs } from '../utils'
|
||||
import { createHooks } from './hooks'
|
||||
|
||||
export const defaultNodeTypes: DefaultNodeTypes = {
|
||||
input: InputNode,
|
||||
|
||||
Reference in New Issue
Block a user