Liking cljdoc? Tell your friends :D

scicloj.plotje.impl.compositor

Composite-pose chrome layout, composite-pose->draft, and composite-draft->plan. Pure data-side: shared-scale reconciliation, chrome geometry computation, per-leaf opt adjustment. The plan-to-membrane rendering for composites lives in render/composite.clj, keeping this namespace free of membrane dependencies.

Shared scales: the pose stage says which cells share an axis (impl.pose/shared-axis-groups), and composite-draft->plan measures what those cells draw, pools it, and plans each with the pooled extent.

When the composite root carries a legend-producing mapping (:color/:size/:alpha), the chrome reserves a strip on the right of the grid; the per-leaf opts get :suppress-legend true so each cell hides its own legend, and the rendering side (render/ composite.clj) draws ONE shared legend in the reserved strip.

Composite-pose chrome layout, composite-pose->draft, and
composite-draft->plan. Pure data-side: shared-scale reconciliation,
chrome geometry computation, per-leaf opt adjustment. The
plan-to-membrane rendering for composites lives in
`render/composite.clj`, keeping this namespace free of membrane
dependencies.

Shared scales: the pose stage says which cells share an axis
(impl.pose/shared-axis-groups), and `composite-draft->plan` measures
what those cells draw, pools it, and plans each with the pooled
extent.

When the composite root carries a legend-producing mapping
(:color/:size/:alpha), the chrome reserves a strip on the right
of the grid; the per-leaf opts get :suppress-legend true so each
cell hides its own legend, and the rendering side (render/
composite.clj) draws ONE shared legend in the reserved strip.
raw docstring

composite-draft->planclj

(composite-draft->plan composite-draft)

Convert a CompositeDraft into a CompositePlan. Per sub-draft, this calls draft->plan to produce a leaf plan and wraps it with its rect and path in :sub-plots. The shared-legend spec is computed once from a representative leaf draft (eliminating the rep-leaf-plan N+1 issue from the round-2 internals review).

Convert a CompositeDraft into a CompositePlan. Per sub-draft, this
calls draft->plan to produce a leaf plan and wraps it with its rect
and path in :sub-plots. The shared-legend spec is computed once
from a representative leaf draft (eliminating the rep-leaf-plan
N+1 issue from the round-2 internals review).
sourceraw docstring

composite-pose->draftclj

(composite-pose->draft composite)

Resolve a composite pose into a CompositeDraft (composite-pose->draft*), first sizing it where it pins its panels.

:panel-width and :panel-height on a composite pin the panels of its columns and rows, as they pin a single plot's panel: a number for every column (row), a vector for each. They are the composite's column (row) weights, and its width (height) is worked out from them, as a single plot's is: the composite is planned once at its given size to measure what its labels, strips and legend take, and that room plus the pinned panels is its size. No cell reads them.

Resolve a composite pose into a CompositeDraft
(`composite-pose->draft*`), first sizing it where it pins its panels.

`:panel-width` and `:panel-height` on a composite pin the panels of
its columns and rows, as they pin a single plot's panel: a number for
every column (row), a vector for each. They are the composite's
column (row) weights, and its width (height) is worked out from
them, as a single plot's is: the composite is planned once at its
given size to measure what its labels, strips and legend take, and
that room plus the pinned panels is its size. No cell reads them.
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