feat(renderer): add onChange

This commit is contained in:
moklick
2019-07-15 18:24:47 +02:00
parent 5f50f4eba3
commit e3b7916b82
12 changed files with 36640 additions and 1890 deletions
+5
View File
@@ -88,6 +88,10 @@ export const Provider = (props) => {
setHeight(size.height);
};
const getNodes = () => {
return nodes;
}
const graphContext = {
width,
height,
@@ -96,6 +100,7 @@ export const Provider = (props) => {
initD3ZoomState,
nodes,
setNodes,
getNodes,
edges,
setEdges,
updateNodeData,