Skip to content

MiniMap Customization

BlowMiniMap draws an overview of the graph with the visible area cut out of a mask. Every part of it can be restyled - the nodes by colour, outline, class or an SVG template of your own, and the mask and the background behind it - and it can steer the main view: Pannable and Zoomable.

Node 0
Node 1
Node 2
Node 3
Node 4
Node 5
Node 6
Node 7
Node 8
Node 9
Arrow keys move the view, plus and minus zoom, Home shows the whole flow.
bit Blow

Try it

  • Drag inside the minimap to move the main view there, and scroll over it to zoom the main view. Untick Pannable or Zoomable and the map stops doing that.
  • With Nodes on Coloured by type, the input node is green, the output node indigo and the rest amber. Click a node on the canvas: its rectangle on the map gets an outline and every other one fades.
  • Switch Nodes to One colour: every rectangle is sky blue with a darker outline, except a selected node, which takes the theme's selection colour.
  • Switch to SVG template: each node is drawn as a circle in its type's colour, outlined while it is selected.
  • Tick Tinted mask and background: the area outside the view turns indigo with an outline round the visible part, and the map's background takes a tint.
  • Drag the background or scroll on the canvas itself: the window cut out of the mask follows the view.

How it works

  • Pannable (on by default) lets a click or drag on the map move the main view; Zoomable (off by default, on here) lets the wheel over it zoom, by ZoomStep percent (10) a notch. Either one also puts the map in the tab order, to be steered from the keyboard - see Interactive MiniMap.
  • Width and Height are its size in screen pixels: 240 × 180 here, 200 × 150 by default.
  • NodeColorFunc, NodeStrokeColorFunc and NodeClassFunc decide each node's fill, outline and extra CSS class. Without NodeColorFunc, a selected node is filled with the selection colour.
  • NodeColor (the theme's --bit-blow-minimap-node by default) and NodeStrokeColor (transparent) paint every node alike. NodeStrokeWidth (2) and BorderRadius (2) shape the rectangles, in flow units.
  • Fills and outlines are SVG attributes, which any CSS rule outranks: a class from NodeClassFunc can recolour a node, or do what an attribute cannot - here opacity with a transition.
  • NodeTemplate replaces each rectangle with SVG of your own, translated to the node's top-left corner; size it from node.GetRect().
  • MaskColor (the theme's --bit-blow-minimap-mask), MaskStrokeColor (transparent) and MaskStrokeWidth (1, in flow units) paint the mask outside the visible area, and BgColor (null: the stylesheet's translucent surface) the map's background.
An unhandled error has occurred. Reload 🗙