Merge pull request #4358 from xyflow/next

React Flow 12.0.0-next.21 & Svelte Flow 0.1.6
This commit is contained in:
Moritz Klack
2024-06-10 18:09:16 +02:00
committed by GitHub
7 changed files with 14 additions and 5 deletions
@@ -77,6 +77,7 @@ const DnDFlow = () => {
onInit={onInit} onInit={onInit}
onDrop={onDrop} onDrop={onDrop}
onDragOver={onDragOver} onDragOver={onDragOver}
nodeOrigin={nodeOrigin}
> >
<Controls /> <Controls />
</ReactFlow> </ReactFlow>
+4
View File
@@ -1,5 +1,9 @@
# @xyflow/react # @xyflow/react
## 12.0.0-next.21
- fix node origin bug
## 12.0.0-next.20 ## 12.0.0-next.20
- add `updateEdge` and `updateEdgeData` helpers to `useReactFlow` - add `updateEdge` and `updateEdgeData` helpers to `useReactFlow`
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@xyflow/react", "name": "@xyflow/react",
"version": "12.0.0-next.20", "version": "12.0.0-next.21",
"description": "React Flow - A highly customizable React library for building node-based editors and interactive flow charts.", "description": "React Flow - A highly customizable React library for building node-based editors and interactive flow charts.",
"keywords": [ "keywords": [
"react", "react",
+4
View File
@@ -1,5 +1,9 @@
# @xyflow/svelte # @xyflow/svelte
## 0.1.6
- fix node origin bug
## 0.1.5 ## 0.1.5
- prevent zooming on mobile if zoomOnPinch is false - prevent zooming on mobile if zoomOnPinch is false
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@xyflow/svelte", "name": "@xyflow/svelte",
"version": "0.1.5", "version": "0.1.6",
"description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.", "description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.",
"keywords": [ "keywords": [
"svelte", "svelte",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@xyflow/system", "name": "@xyflow/system",
"version": "0.0.28", "version": "0.0.29",
"description": "xyflow core system that powers React Flow and Svelte Flow.", "description": "xyflow core system that powers React Flow and Svelte Flow.",
"keywords": [ "keywords": [
"node-based UI", "node-based UI",
+2 -2
View File
@@ -74,8 +74,8 @@ export const getHandleBounds = (
const handlesArray = Array.from(handles) as HTMLDivElement[]; const handlesArray = Array.from(handles) as HTMLDivElement[];
const nodeOffset = { const nodeOffset = {
x: nodeBounds.left - nodeBounds.width * nodeOrigin[0], x: nodeBounds.left + nodeBounds.width * nodeOrigin[0],
y: nodeBounds.top - nodeBounds.height * nodeOrigin[1], y: nodeBounds.top + nodeBounds.height * nodeOrigin[1],
}; };
return handlesArray.map((handle): HandleElement => { return handlesArray.map((handle): HandleElement => {