feat(renderer): add connection line

This commit is contained in:
moklick
2019-07-31 11:32:56 +02:00
parent 915cba94a7
commit 2d5e2d9241
18 changed files with 336 additions and 175 deletions
+3 -1
View File
@@ -9,7 +9,8 @@ export const GraphContext = createContext({});
export const Provider = (props) => {
const {
children
children,
onConnect
} = props;
const [state, dispatch] = useReducer(reducer, initialState);
@@ -42,6 +43,7 @@ export const Provider = (props) => {
const graphContext = {
state,
onConnect,
dispatch
};