AnchorSpec
AnchorSpec =
object
Defined in: anchorPlacement.ts:16
Properties
Section titled “Properties”align:
OverlayAlign
Defined in: anchorPlacement.ts:22
bleed:
number
Defined in: anchorPlacement.ts:28
Transparent padding captured around the content, so shadows survive.
element
Section titled “element”element:
Box
Defined in: anchorPlacement.ts:18
The element’s raw bounding box.
flip:
boolean
Defined in: anchorPlacement.ts:30
Move to the opposite side when the content does not fit on the side axis.
gap:
number
Defined in: anchorPlacement.ts:24
Distance between the element box and the content box (not for over).
keepInViewport
Section titled “keepInViewport”keepInViewport:
boolean
Defined in: anchorPlacement.ts:32
Slide along the align axis so the content stays inside the viewport.
margin
Section titled “margin”margin:
number
Defined in: anchorPlacement.ts:26
Inflation of the element box on every side (only for over).
side:
OverlaySide
Defined in: anchorPlacement.ts:21
viewport
Section titled “viewport”viewport:
Size
Defined in: anchorPlacement.ts:20
The recording viewport.