Pure functions for the x-welcome-tour-step child element. This component is a passive data holder — the parent orchestrator reads its attributes and renders the tour UI.
Pure functions for the x-welcome-tour-step child element. This component is a passive data holder — the parent orchestrator reads its attributes and renders the tour UI.
(normalize {:keys [target-raw title-raw placement-raw connector-raw
cutout-padding-raw cutout-radius-raw scroll-to-raw]})Normalise raw attribute inputs into a stable view-model map.
Input keys: :target-raw string | nil :title-raw string | nil :placement-raw string | nil :connector-raw string | nil :cutout-padding-raw string | nil :cutout-radius-raw string | nil :scroll-to-raw string | nil (nil = attribute absent)
Output keys: :target string | nil :title string :placement string :connector string | nil (nil = inherit from parent) :cutout-padding number :cutout-radius number :scroll-to? boolean
Normalise raw attribute inputs into a stable view-model map. Input keys: :target-raw string | nil :title-raw string | nil :placement-raw string | nil :connector-raw string | nil :cutout-padding-raw string | nil :cutout-radius-raw string | nil :scroll-to-raw string | nil (nil = attribute absent) Output keys: :target string | nil :title string :placement string :connector string | nil (nil = inherit from parent) :cutout-padding number :cutout-radius number :scroll-to? boolean
(parse-connector s)Normalise a raw connector string. Returns nil when absent (inherit from parent).
Normalise a raw connector string. Returns nil when absent (inherit from parent).
(parse-cutout-padding s)Parse cutout-padding to a non-negative number. Defaults to 8.
Parse cutout-padding to a non-negative number. Defaults to 8.
(parse-cutout-radius s)Parse cutout-radius to a non-negative number. Defaults to 4.
Parse cutout-radius to a non-negative number. Defaults to 4.
(parse-placement s)Normalise a raw placement string. Falls back to default-placement if invalid.
Normalise a raw placement string. Falls back to default-placement if invalid.
(parse-scroll-to s)Parse scroll-to attribute. Defaults to true when absent (presence-based but default-on; only false when explicitly set to "false").
Parse scroll-to attribute. Defaults to true when absent (presence-based but default-on; only false when explicitly set to "false").
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 |