2023-11-13
Alpha changes and a new release 0.0.27

Moritz Klack
Co-Founder
New release 0.0.27
We just released Svelte Flow 0.0.27 with some breaking changes. Even if we try to avoid them, they will happen. We just renamed some functions, so the migration should go easy. Here is a list of all changes:
- ⚠️ rename
screenToFlowCoordinate
toscreenToFlowPosition
- ⚠️ rename
flowToScreenCoordinate
toflowToScreenPosition
- ⚠️ rename
getTransformForBounds
togetViewportForBounds
(return{ x: number, y: number, zoom: number }
instead of[number, number, number]
) - ⚠️ rename
getRectOfNodes
togetNodesBounds
- simplify handle default styles, so that it’s easier to override them
- add
selectionOnDrag
prop - can be used to create figma-like controls in combination withpanOnDrag={false}
/panOnDrag={[1, 2]}
+panOnScroll={true}
- 🎉 add e2e tests
You can find the changelog with all previous changes on Github .
Get Pro examples, prioritized bug reports, 1:1 support from the maintainers, and more with React Flow Pro
Last updated on