Liking cljdoc? Tell your friends :D

baredom.utils.position

Positions a panel next to an anchor, inside the viewport.

Positions a panel next to an anchor, inside the viewport.
raw docstring

computecljs

(compute {:keys [placement] :as request})

Computes the position of a panel next to its anchor. Returns {:x :y :final-placement :max-height}. A :max-height in :panel caps the result.

Computes the position of a panel next to its anchor.
Returns {:x :y :final-placement :max-height}. A `:max-height` in `:panel` caps the result.
sourceraw docstring

default-placementcljs

source

max-height-floorcljs

The smallest max-height a panel gets, in pixels.

The smallest max-height a panel gets, in pixels.
sourceraw docstring

placementscljs

Each placement: the edge rule on each axis, the placement it flips to and the axis the flip moves. :after and :before put the panel past the anchor, :start and :end align it with the anchor.

Each placement: the edge rule on each axis, the placement it flips to and the axis the flip moves.
`:after` and `:before` put the panel past the anchor, `:start` and `:end` align it with the anchor.
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