chore(examples): only use bundle

This commit is contained in:
moklick
2022-08-09 18:55:32 +02:00
parent affae72f7e
commit 0f835a2961
48 changed files with 194 additions and 513 deletions
+2 -5
View File
@@ -1,11 +1,8 @@
import React, { Position, XYPosition, Node, Edge } from '@react-flow/core';
import { Position, XYPosition, Node, Edge } from '@react-flow/bundle';
// this helper function returns the intersection point
// of the line between the center of the intersectionNode and the target node
function getNodeIntersection(
intersectionNode: Node,
targetNode: Node
): XYPosition {
function getNodeIntersection(intersectionNode: Node, targetNode: Node): XYPosition {
// https://math.stackexchange.com/questions/1724792/an-algorithm-for-finding-the-intersection-point-between-a-center-of-vision-and-a
const {