feat(lib): add gridColor param

This commit is contained in:
moklick
2019-10-07 21:55:35 +02:00
parent 5cd3dc6125
commit 2eda8134a8
4 changed files with 20 additions and 11 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ const GraphView = memo(({
nodeTypes, edgeTypes, onMove, onLoad,
onElementClick, onNodeDragStop, connectionLineType, connectionLineStyle,
selectionKeyCode, onElementsRemove, deleteKeyCode, elements,
onConnect
onConnect, gridColor
}) => {
const zoomPane = useRef();
const rendererNode = useRef();
@@ -68,7 +68,7 @@ const GraphView = memo(({
return (
<div className="react-flow__renderer" ref={rendererNode}>
<GridRenderer />
<GridRenderer strokeColor={gridColor} />
<NodeRenderer
nodeTypes={nodeTypes}
onElementClick={onElementClick}