DOM side of the index page: highlighting over the inline graph SVG and kind lists, and pan/zoom.
DOM side of the index page: highlighting over the inline graph SVG and kind lists, and pan/zoom.
(element-kind el)Kind keyword for the graph node or list row containing el, if any.
Kind keyword for the graph node or list row containing `el`, if any.
(highlight! adjacency center selected)Mark center (a kind), its neighbours and incident edges in adjacency with .hl, dim the rest; mark selected.
Mark `center` (a kind), its neighbours and incident edges in `adjacency` with .hl, dim the rest; mark `selected`.
(install-pan-zoom! svg)Wheel zooms, drag pans; a drag doesn't count as a click on a node.
Wheel zooms, drag pans; a drag doesn't count as a click on a node.
(install-side-toggle!)Add a draggable divider with a show/hide button for the side pane, restoring the saved state.
Add a draggable divider with a show/hide button for the side pane, restoring the saved state.
(reveal! kind)Pan so kind's node is centred, if it is not already fully visible.
Pan so `kind`'s node is centred, if it is not already fully visible.
(zoom! svg f & [cx cy])Scale the view by f (<1 zooms in) around client point cx, cy (default: centre).
Scale the view by `f` (<1 zooms in) around client point cx, cy (default: centre).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |