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.
API
Parameters
Input parameters accepted by this util.
- anchorrequiredTParsedAnchor
- 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