feat(hooks): add useReactFlow hook, refactor types and properties
This commit is contained in:
@@ -107,7 +107,7 @@ const NestedFlow = () => {
|
||||
};
|
||||
|
||||
const logToObject = () => console.log(rfInstance?.toObject());
|
||||
const resetTransform = () => rfInstance?.setTransform({ x: 0, y: 0, zoom: 1 });
|
||||
const resetTransform = () => rfInstance?.setViewport({ x: 0, y: 0, zoom: 1 });
|
||||
|
||||
const toggleClassnames = () => {
|
||||
setNodes((nds) => {
|
||||
|
||||
Reference in New Issue
Block a user