Liking cljdoc? Tell your friends :D

scicloj.plotje.render.panel


panel->membraneclj

(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.
sourceraw docstring

render-grid-from-ticksclj

(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).
sourceraw docstring

render-polar-gridclj

(render-polar-grid pw ph m cfg)

Render polar grid: concentric circles and radial spokes.

Render polar grid: concentric circles and radial spokes.
sourceraw docstring

render-tick-labelsclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close