flipCorner

Commons
stable

Return a new parsed anchor where side and align are swapped (the anchor "rotates" 90°). Used by the overlay engine to compute diagonal 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 side and align values will be transposed.

API

Valeur de retour

La valeur retournée par cet util.

A new TParsedAnchor with side and align swapped.

Usage

Exemples

Extraits de code prêts à coller.

Transpose side and align

typescript