fix(core): remove ts-transform-paths and use relative paths

This commit is contained in:
braks
2023-12-12 23:36:33 +01:00
committed by Braks
parent 0506f6ff93
commit 458b5d42ba
48 changed files with 112 additions and 151 deletions
@@ -1,8 +1,8 @@
import { defineComponent, h } from 'vue'
import type { BezierEdgeProps } from '../../types'
import { Position } from '../../types'
import BaseEdge from './BaseEdge.vue'
import { getBezierPath } from './utils'
import type { BezierEdgeProps } from '~/types'
import { Position } from '~/types'
const BezierEdge = defineComponent<BezierEdgeProps>({
name: 'BezierEdge',
@@ -1,6 +1,6 @@
import type { FunctionalComponent, HTMLAttributes } from 'vue'
import { h } from 'vue'
import { Position } from '~/types'
import { Position } from '../../types'
interface Props extends HTMLAttributes {
position: Position
@@ -1,10 +1,9 @@
import { computed, defineComponent, h, provide, ref } from 'vue'
import { useVModel } from '@vueuse/core'
import EdgeAnchor from './EdgeAnchor'
import type { Connection, EdgeComponent, EdgeUpdatable, GraphEdge, HandleType, MouseTouchEvent } from '~/types'
import { ConnectionMode, Position } from '~/types'
import { useEdgeHooks, useHandle, useVueFlow } from '~/composables'
import { EdgeId, EdgeRef } from '~/context'
import type { Connection, EdgeComponent, EdgeUpdatable, GraphEdge, HandleType, MouseTouchEvent } from '../../types'
import { ConnectionMode, Position } from '../../types'
import { useEdgeHooks, useHandle, useVueFlow } from '../../composables'
import { EdgeId, EdgeRef } from '../../context'
import {
ARIA_EDGE_DESC_KEY,
ErrorCode,
@@ -13,7 +12,8 @@ import {
getEdgePositions,
getHandle,
getMarkerId,
} from '~/utils'
} from '../../utils'
import EdgeAnchor from './EdgeAnchor'
interface Props {
id: string
@@ -1,8 +1,8 @@
import { defineComponent, h } from 'vue'
import type { SimpleBezierEdgeProps } from '../../types'
import { Position } from '../../types'
import BaseEdge from './BaseEdge.vue'
import { getSimpleBezierPath } from './utils'
import type { SimpleBezierEdgeProps } from '~/types'
import { Position } from '~/types'
const SimpleBezierEdge = defineComponent<SimpleBezierEdgeProps>({
name: 'SimpleBezierEdge',
@@ -1,8 +1,8 @@
import { defineComponent, h } from 'vue'
import type { SmoothStepEdgeProps } from '../../types'
import { Position } from '../../types'
import BaseEdge from './BaseEdge.vue'
import { getSmoothStepPath } from './utils'
import type { SmoothStepEdgeProps } from '~/types'
import { Position } from '~/types'
const SmoothStepEdge = defineComponent<SmoothStepEdgeProps>({
name: 'SmoothStepEdge',
@@ -1,6 +1,6 @@
import { defineComponent, h } from 'vue'
import type { StepEdgeProps } from '../../types'
import SmoothStepEdge from './SmoothStepEdge'
import type { StepEdgeProps } from '~/types'
const StepEdge = defineComponent<StepEdgeProps>({
name: 'StepEdge',
@@ -1,7 +1,7 @@
import { defineComponent, h } from 'vue'
import type { StraightEdgeProps } from '../../types'
import BaseEdge from './BaseEdge.vue'
import { getStraightPath } from './utils'
import type { StraightEdgeProps } from '~/types'
const StraightEdge = defineComponent<StraightEdgeProps>({
name: 'StraightEdge',