refactor: change pkg scope to vue-flow
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { EdgeText, getEdgeCenter } from '@braks/vue-flow'
|
||||
import { EdgeText, getEdgeCenter } from '@vue-flow/core'
|
||||
import type { CSSProperties } from 'vue'
|
||||
import { getArrow } from 'perfect-arrows'
|
||||
import type { PerfectArrowProps } from '../types'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Position } from '@braks/vue-flow'
|
||||
import { BezierEdge, EdgeText, getEdgeCenter, useVueFlow } from '@braks/vue-flow'
|
||||
import type { Position } from '@vue-flow/core'
|
||||
import { BezierEdge, EdgeText, getEdgeCenter, useVueFlow } from '@vue-flow/core'
|
||||
import type { PathFindingEdgeProps } from '../types'
|
||||
import { createGrid, gridRatio } from './createGrid'
|
||||
import { drawSmoothLinePath } from './drawSvgPath'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Grid } from 'pathfinding'
|
||||
import type { Position } from '@braks/vue-flow'
|
||||
import type { Position } from '@vue-flow/core'
|
||||
import { getNextPointFromPosition, guaranteeWalkablePath } from './guaranteeWalkablePath'
|
||||
import { graphToGridPoint } from './pointConversion'
|
||||
import { round } from './utils'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { XYPosition } from '@braks/vue-flow'
|
||||
import type { XYPosition } from '@vue-flow/core'
|
||||
|
||||
/**
|
||||
* Draws an SVG path from a list of points, using straight lines.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { AStarFinder, DiagonalMovement, Util } from 'pathfinding'
|
||||
import type { Grid, Heuristic } from 'pathfinding'
|
||||
import type { XYPosition } from '@braks/vue-flow'
|
||||
import type { XYPosition } from '@vue-flow/core'
|
||||
|
||||
// https://www.npmjs.com/package/pathfinding#advanced-usage
|
||||
declare module 'pathfinding' {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GraphNode, XYPosition } from '@braks/vue-flow'
|
||||
import type { GraphNode, XYPosition } from '@vue-flow/core'
|
||||
import { roundDown, roundUp } from './utils'
|
||||
|
||||
export interface NodeBoundingBox {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Grid } from 'pathfinding'
|
||||
import type { Position, XYPosition } from '@braks/vue-flow'
|
||||
import type { Position, XYPosition } from '@vue-flow/core'
|
||||
|
||||
type Direction = 'top' | 'bottom' | 'left' | 'right'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { XYPosition } from '@braks/vue-flow'
|
||||
import type { XYPosition } from '@vue-flow/core'
|
||||
|
||||
const gridRatio = 10
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { EdgeProps, Position } from '@braks/vue-flow'
|
||||
import type { EdgeProps, Position } from '@vue-flow/core'
|
||||
import type { CSSProperties } from 'vue'
|
||||
import type { ArrowOptions } from 'perfect-arrows'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user