Layout utility for compositing a floating panel on top of base content.
Not a stateful component - just pure functions for overlay placement.
Usage: (place-overlay base-text overlay-text 5 3) (center-overlay base-text overlay-text)
Layout utility for compositing a floating panel on top of base content. Not a stateful component - just pure functions for overlay placement. Usage: (place-overlay base-text overlay-text 5 3) (center-overlay base-text overlay-text)
(center-overlay base overlay)Composite an overlay centered on the base content.
Both base and overlay may contain ANSI escape sequences.
Composite an overlay centered on the base content. Both base and overlay may contain ANSI escape sequences.
(place-overlay base overlay x y)Composite an overlay text on top of base text at position (x, y).
Both base and overlay may contain ANSI escape sequences. The overlay replaces the corresponding region of the base content.
Returns the composited string.
Composite an overlay text on top of base text at position (x, y). Both base and overlay may contain ANSI escape sequences. The overlay replaces the corresponding region of the base content. Returns the composited string.
(place-overlay-position base overlay position)Composite an overlay at a named position.
Position can be :center, :top-left, :top-right, :bottom-left, :bottom-right, :top-center, :bottom-center, :center-left, :center-right.
Composite an overlay at a named position. Position can be :center, :top-left, :top-right, :bottom-left, :bottom-right, :top-center, :bottom-center, :center-left, :center-right.
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 |