Liking cljdoc? Tell your friends :D

scicloj.plotje.impl.extract

Extract data-space geometry from resolved draft layers and stat results. Produces layer descriptor maps — plain Clojure maps with mark type, style, and groups of data-space coordinates.

Extract data-space geometry from resolved draft layers and stat results.
Produces layer descriptor maps — plain Clojure maps with mark type,
style, and groups of data-space coordinates.
raw docstring

dash-presetsclj

Named stroke-dash presets, resolved to a [dash gap] pixel pattern. :solid means no dash (returns nil).

Named stroke-dash presets, resolved to a `[dash gap]` pixel pattern.
`:solid` means no dash (returns nil).
sourceraw docstring

extract-layercljmultimethod

Extract data-space geometry from a resolved draft layer and its stat result. Returns a layer descriptor map.

Extract data-space geometry from a resolved draft layer and its stat result.
Returns a layer descriptor map.
sourceraw docstring

fill-settingclj

(fill-setting k draft-layer cfg)

A scale setting for a mark drawn in a fill: what a :fill scale spec or the matching plot option says, and failing that what the :color ones say.

A tile reads :color as a synonym for :fill, so a gradient or a midpoint written either way has to reach it. The spec side already falls back this way; this keeps the option side in step rather than letting the two disagree.

A scale setting for a mark drawn in a fill: what a `:fill` scale spec
or the matching plot option says, and failing that what the `:color`
ones say.

A tile reads `:color` as a synonym for `:fill`, so a gradient or a
midpoint written either way has to reach it. The spec side already
falls back this way; this keeps the option side in step rather than
letting the two disagree.
sourceraw docstring

resolve-colorclj

(resolve-color all-colors color-val draft-layer cfg)

Resolve a color value to [r g b a]. Handles column values, fixed colors, and defaults.

A fixed color wins over a group's palette color. The two cannot conflict: :color is one key, so a literal there means there is no color column, and any group color present came from :group instead. Grouping by one column while drawing every group in one color is a common case: many pale lines behind a few named ones. It needs the fixed color to survive the grouping.

Takes the resolved draft layer rather than its :fixed-color, because the layer answers a second question too: whether its color column is drawn as it stands. resolve/resolve-aesthetics decides that once for the column, so what arrives here is a group value that already is a color and needs no palette.

Resolve a color value to [r g b a]. Handles column values, fixed colors, and defaults.

A fixed color wins over a group's palette color. The two cannot
conflict: `:color` is one key, so a literal there means there is no
color column, and any group color present came from `:group` instead.
Grouping by one column while drawing every group in one color is a
common case: many pale lines behind a few named ones. It needs the
fixed color to survive the grouping.

Takes the resolved draft layer rather than its `:fixed-color`,
because the layer answers a second question too: whether its color
column is drawn as it stands. `resolve/resolve-aesthetics` decides
that once for the column, so what arrives here is a group value that
already *is* a color and needs no palette.
sourceraw docstring

resolve-dashclj

(resolve-dash stroke-dash)

Resolve a :stroke-dash value to a [dash gap ...] vector or nil. Accepts a named preset (:solid/:dashed/:dotted), a raw [dash gap ...] vector (passed through), or nil (no dash).

Resolve a `:stroke-dash` value to a `[dash gap ...]` vector or nil.
Accepts a named preset (`:solid`/`:dashed`/`:dotted`), a raw
`[dash gap ...]` vector (passed through), or nil (no dash).
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