flipSide

Commons
stable

Return a new parsed anchor where the side axis is mirrored (top↔bottom, left↔right, center stays) while the align is preserved. First fallback tried by the overlay positioning engine when the preferred placement overflows.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

anchor
required
TParsedAnchor
The parsed anchor object whose side value will be mirrored.

API

Return value

The value returned by this util.

A new TParsedAnchor with the same align and a mirrored side value.

Usage

Examples

Ready-to-paste usage snippets.

Mirror side axis

typescript