feat(svelte): add selectionOnDrag

This commit is contained in:
moklick
2023-11-13 11:45:53 +01:00
parent d4df8be6f2
commit dee36d5b90
6 changed files with 9 additions and 6 deletions
+1
View File
@@ -1,5 +1,6 @@
## 0.0.27
- add `selectionOnDrag` prop - can be used to create figma-like controls in combination with `panOnDrag={false}` / `panOnDrag={[1, 2]}` + `panOnScroll={true}`
- ⚠️ rename `screenToFlowCoordinate` to `screenToFlowPosition`
- ⚠️ rename `flowToScreenCoordinate` to `flowToScreenPosition`
- ⚠️ rename `getTransformForBounds` to `getViewportForBounds` (return `{ x: number, y: number, zoom: number }` instead of `[number, number, number]`)