Liking cljdoc? Tell your friends :D

charm.style.overlay

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)
raw docstring

center-overlayclj

(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.
sourceraw docstring

place-overlayclj

(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.
sourceraw docstring

place-overlay-positionclj

(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.
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