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.
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
- 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, byZoomSteppercent (10) a notch. Either one also puts the map in the tab order, to be steered from the keyboard - see Interactive MiniMap.WidthandHeightare its size in screen pixels: 240 × 180 here, 200 × 150 by default.NodeColorFunc,NodeStrokeColorFuncandNodeClassFuncdecide each node's fill, outline and extra CSS class. WithoutNodeColorFunc, a selected node is filled with the selection colour.NodeColor(the theme's--bit-blow-minimap-nodeby default) andNodeStrokeColor(transparent) paint every node alike.NodeStrokeWidth(2) andBorderRadius(2) shape the rectangles, in flow units.- Fills and outlines are SVG attributes, which any CSS rule outranks: a class from
NodeClassFunccan recolour a node, or do what an attribute cannot - hereopacitywith a transition. NodeTemplatereplaces each rectangle with SVG of your own, translated to the node's top-left corner; size it fromnode.GetRect().MaskColor(the theme's--bit-blow-minimap-mask),MaskStrokeColor(transparent) andMaskStrokeWidth(1, in flow units) paint the mask outside the visible area, andBgColor(null: the stylesheet's translucent surface) the map's background.