(active-index tops line at-bottom?)The index of the active entry. tops holds the top of each entry from the top of the scroll
root, line the activation line. Nil when there are no entries.
The index of the active entry. `tops` holds the top of each entry from the top of the scroll root, `line` the activation line. Nil when there are no entries.
(change-detail {:keys [id text level index]} previous-id)The detail of x-toc-change for a move from the entry previous-id to entry.
The detail of `x-toc-change` for a move from the entry `previous-id` to `entry`.
(clean-text s)The text s trimmed, with each run of whitespace made one space.
The text `s` trimmed, with each run of whitespace made one space.
(entries identified)The entries {:id :text :level :index} of the identified headings. A heading whose id an
earlier one has is left out.
The entries `{:id :text :level :index}` of the `identified` headings. A heading whose id an
earlier one has is left out.The attributes x-toc writes on the entries of its container.
The attributes x-toc writes on the entries of its container.
(heading-level tag-name-text)The level of the tag tag-name-text: 1 to 6 for H1 to H6, else nil.
The level of the tag `tag-name-text`: 1 to 6 for `H1` to `H6`, else nil.
(id-writes identified)The [at id] pairs of the identified headings that need their id written.
The `[at id]` pairs of the `identified` headings that need their id written.
(identify headings taken)The headings with text, each with its id, its place :at in headings, and :new-id?.
A heading is {:id :text :tag}, and taken holds the ids already in the root.
The `headings` with text, each with its id, its place `:at` in `headings`, and `:new-id?`.
A heading is `{:id :text :tag}`, and `taken` holds the ids already in the root.(navigate-detail {:keys [id text level index]})The detail of x-toc-navigate for entry.
The detail of `x-toc-navigate` for `entry`.
(next-pin pin [kind id])The pin after event: [:click id], [:scroll] or [:settle]. A pin holds the clicked
entry until its scroll settles and the reader scrolls again.
The pin after `event`: `[:click id]`, `[:scroll]` or `[:settle]`. A pin holds the clicked entry until its scroll settles and the reader scrolls again.
(normalize {:keys [for-raw selector-raw label-raw offset-raw update-hash?]})The view model {:for :selector :label :labelled? :offset :update-hash?} from the raw
attributes, without its entries.
The view model `{:for :selector :label :labelled? :offset :update-hash?}` from the raw
attributes, without its entries.(offset-px {:keys [unit value]} height)The distance in px of the activation line from the top of a scroll root height px tall.
The distance in px of the activation line from the top of a scroll root `height` px tall.
(parse-offset s)The offset {:unit :px|:percent :value n} that s states, or the default 25%.
The offset `{:unit :px|:percent :value n}` that `s` states, or the default 25%.
(parse-selector s)The selector s, or the default for a blank one.
The selector `s`, or the default for a blank one.
(slug s)An id made from the text s: lower case, letters and digits joined by -.
An id made from the text `s`: lower case, letters and digits joined by `-`.
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 |