feat(edges): step edge

This commit is contained in:
moklick
2019-08-06 11:21:03 +02:00
parent 24a296fef9
commit cac51acc26
7 changed files with 76 additions and 9 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ import { createNodeTypes } from '../NodeRenderer/utils';
import BezierEdge from '../EdgeRenderer/EdgeTypes/BezierEdge';
import StraightEdge from '../EdgeRenderer/EdgeTypes/StraightEdge';
import StepEdge from '../EdgeRenderer/EdgeTypes/StepEdge';
import { createEdgeTypes } from '../EdgeRenderer/utils';
import '../style.css';
@@ -75,7 +76,8 @@ ReactGraph.defaultProps = {
},
edgeTypes: {
default: BezierEdge,
straight: StraightEdge
straight: StraightEdge,
step: StepEdge
},
connectionLineType: 'bezier',
connectionLineStyle: {}