@squeed/flow-sdk 2.0.36 → 2.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -714,6 +714,12 @@ Pass `true` as the fourth argument to `focusBranch`, `focusNode`, or
714
714
  `focusConnections` after a view toggle to fit the new geometry together with
715
715
  the layout animation. Existing three-argument calls keep their behavior.
716
716
 
717
+ `focusBranch` accepts `centerOnNode` as its fifth argument and `zoomScale` as
718
+ its sixth (default `1`). For example,
719
+ `engine.focusBranch(nodeId, 40, true, false, true, 0.6)` keeps the selected node
720
+ centered and applies 60% of the fitted zoom, subject to existing zoom limits.
721
+ Omitting the scale preserves the previous branch fit.
722
+
717
723
  For a closing preview in an ordinary document canvas, use
718
724
  `engine.restoreView(true, savedViewport, true)` alongside the view change.
719
725
  The optional third argument restores the saved viewport in the same transition