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.
A BlowPanel: anything of yours, pinned to the pane.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry 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,BottomCenterorBottomRight:PositiononBlowControls(defaultBottomLeft) andBlowMiniMap(BottomRight),AnchoronBlowPanel, and the canvas'sAttributionPosition(BottomRight);HideAttributionremoves the badge. BlowPanelpins any content to the pane; presses, clicks and wheels on it do not reach the canvas beneath.BlowControls:Orientation(VerticalorHorizontal),ShowZoomandShowFitView(bothtrue), andFitViewOptionsfor how its fit button fits - here a 30% margin eased over 400 ms withDuration.OnZoomIn,OnZoomOutandOnFitVieware raised after the built-in behaviour, for logging or follow-up work.ShowInteractive(defaultfalse) adds the padlock. It only reports the toggle throughInteractiveChanged; the page passes the flag on toNodesDraggable,NodesConnectableandElementsSelectable.LockLabelandUnlockLabelreplace its tooltip in each state; the accessible name staysLockLabel, with pressed or not announced.ChildContentadds buttons after the built-ins:BlowControlButtonmatches their look and takesTitle(the tooltip, and the accessible name of an icon-only button),DisabledandOnClick. Here it moves the nodes back insideEditAsync, so the change is reported like any other edit.