feat(rg): add zoom functions
This commit is contained in:
@@ -7,16 +7,6 @@ import { setNodes, setEdges } from '../state/actions';
|
||||
|
||||
export const GraphContext = createContext({});
|
||||
|
||||
function usePrevious(value) {
|
||||
const ref = useRef();
|
||||
|
||||
useEffect(() => {
|
||||
ref.current = value;
|
||||
});
|
||||
|
||||
return ref.current;
|
||||
}
|
||||
|
||||
export const Provider = (props) => {
|
||||
const {
|
||||
onElementClick,
|
||||
|
||||
Reference in New Issue
Block a user