@squeed/flow-sdk 2.0.20 → 2.0.22

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
@@ -506,6 +506,20 @@ and final positions. Use `onLayoutComplete(engine)` to fit newly laid-out data:
506
506
  This callback runs after each settled layout, not viewport-only changes. Hosts
507
507
  that only want to fit after dataset selection should gate it with a pending flag.
508
508
 
509
+ For a view change that should move nodes and the viewport together, call
510
+ `engine.centerAndFit(60, true, true)` before changing direction, compact layout,
511
+ or node presentation. The third argument defers fitting until target geometry
512
+ is available, using the layout's 300ms animation progress rather than a second
513
+ fit from `onLayoutComplete`. `focusNode` and `focusConnections` accept the same
514
+ option as their fourth argument. Manual zoom and pan cancel viewport motion.
515
+
516
+ Set `config.disableAnimations: true` to disable SDK layout, viewport, node/edge
517
+ effects, reveal, and in-diagram CSS transitions. It defaults to `false` and takes
518
+ precedence over `animateViewport` and per-action `true` arguments. Active motion
519
+ lands on its target; changing the flag back to `false` restores configured
520
+ animations. Embedded content and application-owned playback are not controlled
521
+ by this flag.
522
+
509
523
  ### Structured Form Bindings
510
524
 
511
525
  Set `forms.structured: true` with `forms.state`, `forms.bindings` and