refactor: change pkg scope to vue-flow

This commit is contained in:
braks
2022-10-08 23:25:34 +02:00
committed by Braks
parent eb507c8e76
commit 8567e3733b
163 changed files with 288 additions and 288 deletions
@@ -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 -1
View File
@@ -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'