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
+2 -2
View File
@@ -1,6 +1,6 @@
import type { Actions, EdgePositions, GraphEdge, GraphNode, HandleElement, Rect, ViewportTransform, XYPosition } from '../types'
import { Position } from '../types'
import { rectToBox } from '.'
import type { Actions, EdgePositions, GraphEdge, GraphNode, HandleElement, Rect, ViewportTransform, XYPosition } from '~/types'
import { Position } from '~/types'
export function getHandlePosition(position: Position, rect: Rect, handle: HandleElement | null): XYPosition {
const x = (handle?.x ?? 0) + rect.x