(panel->membrane panel
pw
ph
m
cfg
&
{:keys [show-x? show-y? include-bg? tooltip x-col-name
y-col-name]
:or {show-x? true show-y? true include-bg? true}})Convert a plan panel into a membrane drawable tree. Takes a panel map from draft->plan and pixel dimensions. show-x? and show-y? control whether tick labels are drawn (grid lines always render). include-bg? controls whether the panel background rectangle is included; when the caller is rendering backgrounds in a separate pass (sparse grids), set it to false so foreground elements from earlier panels do not get painted over by later panels' backgrounds. cfg is the resolved config map.
Convert a plan panel into a membrane drawable tree. Takes a panel map from draft->plan and pixel dimensions. show-x? and show-y? control whether tick labels are drawn (grid lines always render). include-bg? controls whether the panel background rectangle is included; when the caller is rendering backgrounds in a separate pass (sparse grids), set it to false so foreground elements from earlier panels do not get painted over by later panels' backgrounds. cfg is the resolved config map.
(render-grid-from-ticks sx sy x-ticks y-ticks pw ph m cfg)Render grid lines using pre-computed tick values from a plan. Skips grid lines for categorical axes (like ggplot2).
Render grid lines using pre-computed tick values from a plan. Skips grid lines for categorical axes (like ggplot2).
(render-polar-grid pw ph m cfg)Render polar grid: concentric circles and radial spokes.
Render polar grid: concentric circles and radial spokes.
(render-tick-labels axis tick-info scale pw ph m cfg)Render tick labels from pre-computed tick info in a plan.
X-axis labels are emitted with text-anchor="middle" so they
center on the tick; Y-axis labels with text-anchor="end" so
they right-align against the panel margin. This delegates label
width measurement to the renderer (browser for SVG) instead of
guessing with a char-count heuristic.
Render tick labels from pre-computed tick info in a plan. X-axis labels are emitted with `text-anchor="middle"` so they center on the tick; Y-axis labels with `text-anchor="end"` so they right-align against the panel margin. This delegates label width measurement to the renderer (browser for SVG) instead of guessing with a char-count heuristic.
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 |