Rename to "unreal" edge, fix for both horizontal and vertical handles

This commit is contained in:
Joey Ballentine
2022-03-14 01:06:26 -04:00
parent 726bc2e0b3
commit 3c96b07c9c
6 changed files with 27 additions and 30 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import { Node, Edge, Position } from 'react-flow-renderer';
import { Edge, Node, Position } from 'react-flow-renderer';
const nodeWidth = 80;
const nodeGapWidth = nodeWidth * 2;
@@ -9,10 +9,10 @@ const sourceTargetPositions = [
{ source: Position.Right, target: Position.Left },
];
const nodeColors = [
['#1e9e99', '#4cb3ac', '#6ec9c0', '#8ddfd4'],
['#0f4c75', '#1b5d8b', '#276fa1', '#3282b8'],
['#1e9e99', '#4cb3ac', '#6ec9c0', '#8ddfd4', '#c4fff7'],
['#0f4c75', '#1b5d8b', '#276fa1', '#3282b8', '#4fa6e0'],
];
const edgeTypes = ['default', 'step', 'smoothstep', 'straight'];
const edgeTypes = ['default', 'step', 'smoothstep', 'straight', 'unreal'];
const offsets = [
{
x: 0,