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.
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).
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.
(resolve-color all-colors color-val fixed-color 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.
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.
(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).
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 |