Liking cljdoc? Tell your friends :D

scicloj.plotje.layer-type

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.
raw docstring

layer-option-docsclj

Documentation for layer option keys. Maps key to description string.

Documentation for layer option keys. Maps key to description string.
sourceraw docstring

layer-type-orderclj

Canonical display order for built-in layer types.

Canonical display order for built-in layer types.
sourceraw docstring

lookupclj

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

register!clj

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

registeredclj

(registered)

Return all registered layer types as a map of keyword → entry.

Return all registered layer types as a map of keyword → entry.
sourceraw docstring

universal-layer-optionsclj

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.
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