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
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- anchorrequiredTParsedAnchor
- The parsed anchor object whose align value will be mirrored.
API
Return value
The value returned by this util.
- A new TParsedAnchor with the same side and a mirrored align value.
Usage
Examples
Ready-to-paste usage snippets.
Mirror align axis