chore(examples): update deps

This commit is contained in:
moklick
2021-06-23 14:21:51 +02:00
parent f127c3df37
commit af5a2ab791
4 changed files with 19732 additions and 213 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';
import { EdgeProps, getBezierPath, getMarkerEnd } from 'react-flow-renderer';
const CustomEdge: FC<EdgeProps> = ({
@@ -9,7 +9,6 @@ const CustomEdge: FC<EdgeProps> = ({
targetY,
sourcePosition,
targetPosition,
style = {},
data,
arrowHeadType,
markerEndId,
@@ -19,7 +18,7 @@ const CustomEdge: FC<EdgeProps> = ({
return (
<>
<path id={id} style={style} className="react-flow__edge-path" d={edgePath} markerEnd={markerEnd} />
<path id={id} className="react-flow__edge-path" d={edgePath} markerEnd={markerEnd} />
<text>
<textPath href={`#${id}`} style={{ fontSize: '12px' }} startOffset="50%" textAnchor="middle">
{data.text}
+2 -3
View File
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';
import { EdgeProps, getBezierPath, getMarkerEnd, EdgeText, getEdgeCenter } from 'react-flow-renderer';
const CustomEdge: FC<EdgeProps> = ({
@@ -9,7 +9,6 @@ const CustomEdge: FC<EdgeProps> = ({
targetY,
sourcePosition,
targetPosition,
style = {},
data,
arrowHeadType,
markerEndId,
@@ -25,7 +24,7 @@ const CustomEdge: FC<EdgeProps> = ({
return (
<>
<path id={id} style={style} className="react-flow__edge-path" d={edgePath} markerEnd={markerEnd} />
<path id={id} className="react-flow__edge-path" d={edgePath} markerEnd={markerEnd} />
<EdgeText
x={centerX}
y={centerY}