Layer-type registry — keyword → layer-type map (mark + stat + position).
Layer types are plain data maps. The registry makes them discoverable
and extensible. Use lookup to get a layer type by keyword, registered
to enumerate all layer types, and register! to add new ones.
Layer-type registry — keyword → layer-type map (mark + stat + position). Layer types are plain data maps. The registry makes them discoverable and extensible. Use `lookup` to get a layer type by keyword, `registered` to enumerate all layer types, and `register!` to add new ones.
Documentation for layer option keys. Maps key to description string.
Documentation for layer option keys. Maps key to description string.
Canonical display order for built-in layer types.
Canonical display order for built-in layer types.
(lookup k)Look up a registered layer type by keyword. Returns the layer-type map (with :mark, :stat, :position, :doc), or nil if not found.
Look up a registered layer type by keyword. Returns the layer-type map (with :mark, :stat, :position, :doc), or nil if not found.
(register! k entry)Register a layer type. k is a keyword, entry is a map with
:mark, :stat, and optionally :position and :doc.
Position defaults to nil (identity) — only :dodge, :stack, :fill are explicit.
Register a layer type. `k` is a keyword, `entry` is a map with :mark, :stat, and optionally :position and :doc. Position defaults to nil (identity) — only :dodge, :stack, :fill are explicit.
(registered)Return all registered layer types as a map of keyword → entry.
Return all registered layer types as a map of keyword → entry.
Layer options accepted by all layer types. :x and :y are included so a layer can override the pose's position mapping (an overlay-like pattern); the four-level merge in pose/leaf->draft already honors layer-level x/y, this list just keeps build-layer's unknown-option warning consistent with that behavior. :x-type/:y-type/:color-type override the inferred column types (e.g. :x-type :categorical treats a numeric x as categorical). :mark and :stat let any layer override the visual mark or statistical transform supplied by its layer-type entry; unknown keywords raise a clear error at build time.
Layer options accepted by all layer types. :x and :y are included so a layer can override the pose's position mapping (an overlay-like pattern); the four-level merge in pose/leaf->draft already honors layer-level x/y, this list just keeps build-layer's unknown-option warning consistent with that behavior. :x-type/:y-type/:color-type override the inferred column types (e.g. :x-type :categorical treats a numeric x as categorical). :mark and :stat let any layer override the visual mark or statistical transform supplied by its layer-type entry; unknown keywords raise a clear error at build time.
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 |