Skip to content

Overlay Layout

The control bar, the minimap, your own panels and the attribution badge can each be anchored to any of six places on the pane. BlowControls can also hide its built-in buttons, ease its fit, report each press, carry buttons of your own and show a lock that makes the flow read-only.

Editable · last control: none yet
Start
Step
End
Arrow keys move the view, plus and minus zoom, Home shows the whole flow.
A BlowPanel: anything of yours, pinned to the pane.
bit Blow

Try it

  • Pick a place for the Controls, the Minimap, the Panel and the Attribution: top or bottom, left, centre or right. Overlays given the same place sit on each other, so give each its own.
  • Tick Hide attribution to remove the badge, and Horizontal controls to lay the control bar's buttons out in a row.
  • Untick Zoom buttons or Fit button to take those buttons off the control bar.
  • Press the control bar's zoom in, zoom out and fit view buttons: the fit eases into place rather than jumping, and the toolbar names the last one pressed. The zoom buttons grey out at the zoom limits.
  • Hover the padlock to read "Make read-only", then press it: nodes can no longer be dragged, connected or selected - the view still pans and zooms - and its tooltip turns to "Make editable".
  • Drag some nodes, then press the last button on the bar, a button of this page's own: it puts the nodes back. It is disabled while the flow is read-only.

How it works

  • Every overlay takes a BlowPanelPosition - TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter or BottomRight: Position on BlowControls (default BottomLeft) and BlowMiniMap (BottomRight), Anchor on BlowPanel, and the canvas's AttributionPosition (BottomRight); HideAttribution removes the badge.
  • BlowPanel pins any content to the pane; presses, clicks and wheels on it do not reach the canvas beneath.
  • BlowControls: Orientation (Vertical or Horizontal), ShowZoom and ShowFitView (both true), and FitViewOptions for how its fit button fits - here a 30% margin eased over 400 ms with Duration.
  • OnZoomIn, OnZoomOut and OnFitView are raised after the built-in behaviour, for logging or follow-up work.
  • ShowInteractive (default false) adds the padlock. It only reports the toggle through InteractiveChanged; the page passes the flag on to NodesDraggable, NodesConnectable and ElementsSelectable. LockLabel and UnlockLabel replace its tooltip in each state; the accessible name stays LockLabel, with pressed or not announced.
  • ChildContent adds buttons after the built-ins: BlowControlButton matches their look and takes Title (the tooltip, and the accessible name of an icon-only button), Disabled and OnClick. Here it moves the nodes back inside EditAsync, so the change is reported like any other edit.
An unhandled error has occurred. Reload 🗙