chore: update pathfinding edge pkg

This commit is contained in:
Braks
2022-05-22 22:46:47 +02:00
parent cbb94ba7c8
commit 36b3729a2b
10 changed files with 168 additions and 111 deletions
@@ -1,8 +1,9 @@
/**
* Draws a SVG path from a list of points, using straight lines.
*/
import type { XYPosition } from '@braks/vue-flow'
/**
* Draws an SVG path from a list of points, using straight lines.
*/
const getMidPoint = (Ax: number, Ay: number, Bx: number, By: number) => {
const Zx = (Ax - Bx) / 2 + Bx
const Zy = (Ay - By) / 2 + By