Kusuma04-dev opened a new pull request, #3720: URL: https://github.com/apache/incubator-kie-tools/pull/3720
closes https://github.com/apache/incubator-kie-issues/issues/1495, Upgraded ReactFlow from v11 to v12. **Package updates** Updated @xyflow/react to ^12.0.0 across all three packages (xyflow-react-kie-diagram, dmn-editor, bpmn-editor). **API renames** onEdgeUpdate → onReconnect onEdgeUpdateStart → onReconnectStart onEdgeUpdateEnd → onReconnectEnd nodeInternals (Map) → nodeLookup (Map) node.positionAbsolute → node.internals.positionAbsolute node.width / node.height → node.measured.width / node.measured.height Connection state reads changed from connectionNodeId / connectionHandleType → s.connection.fromHandle?.nodeId / s.connection.fromHandle?.type **Connection line fix** Removed the incorrect ?? fromNode.position.x fallback in the shared ConnectionLine. In v12 fromNode.internals.positionAbsolute is always present; falling back to the relative position field produces wrong connection line origins. **Palette drag fix** The synthetic NodePositionChange emitted during palette drag-over was setting the non-existent v12 field positionAbsolute. Changed to set position, which is the correct field in v12's NodePositionChange type. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
