Skip to content

AnchorSpec

AnchorSpec = object

Defined in: anchorPlacement.ts:16

align: OverlayAlign

Defined in: anchorPlacement.ts:22


bleed: number

Defined in: anchorPlacement.ts:28

Transparent padding captured around the content, so shadows survive.


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: boolean

Defined in: anchorPlacement.ts:32

Slide along the align axis so the content stays inside the viewport.


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: Size

Defined in: anchorPlacement.ts:20

The recording viewport.