flipAlign

Commons
stable

Return a new parsed anchor where the align axis is mirrored (top↔bottom, left↔right, center stays) while the side is preserved. Used by the overlay positioning engine to compute collision-avoidance fallbacks.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

anchor
requis
TParsedAnchor
The parsed anchor object whose align value will be mirrored.

API

Valeur de retour

La valeur retournée par cet util.

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

Usage

Exemples

Extraits de code prêts à coller.

Mirror align axis

typescript