breaking changes
- rename property
onlyRenderVisibleNodes
toonlyRenderVisibleElements
- remove store actions like
setInitTransform
, please use the newly introduced hooks for manipulating the viewport
new features
- export a new hook
useZoomPanHelper
that can be used for manipulating the viewport of the react-flow graph - the react-flow instance has a new method for graph serialization:
toObject
- new property
panOnScrollMode
with valuesfree
,vertical
andhorizontal
improvements
- reduce amount of re-renderings
- remove unneccessary dependencies (resize-observer, why-did-you-render)
- improve rendering performance of non-visible elements