Interface AnchorPositionVariant

A variant of a target position around an anchor.

interface AnchorPositionVariant {
    alignX?: AnchorAlign;
    alignY?: AnchorAlign;
    anchorMarginX?: number;
    anchorMarginY?: number;
    arrowMargin?: number;
    arrowSize?: number;
    containerPaddingX?: number;
    containerPaddingY?: number;
    minHeight?: number;
    minWidth?: number;
}

Properties

alignX?: AnchorAlign

A horizontal alignment of a target relative to an anchor.

"center"
alignY?: AnchorAlign

A vertical alignment of a target relative to an anchor.

"outerStart"
anchorMarginX?: number

A horizontal distance between an anchor and a target.

0
anchorMarginY?: number

A vertical distance between an anchor and a target.

0
arrowMargin?: number

A margin between an arrow and a target bonding rect.

0
arrowSize?: number

Width or height of an arrow, depending on preferred alignment.

0
containerPaddingX?: number

A horizontal padding inside a container that must be avoided during a target placement.

0
containerPaddingY?: number

A vertical padding inside a container that must be avoided during a target placement.

0
minHeight?: number

The minimum required height that must be available for a target.

minWidth?: number

The minimum required width that must be available for a target.