Skip to content

Dynamic RTL Support and Custom Distance Calculation Enhancements

Latest
Compare
Choose a tag to compare
@Braggiouy Braggiouy released this 02 Oct 09:07
06cc026

[2.2.1]

Added

  • New init config option distanceCalculationMethod that allows switching between edge-based, center-based and corner-based (default) distance calculations.
  • Support for a custom distance calculation function via the customDistanceCalculationFunction option, enabling custom logic for determining distances between focusable components. This will override the getSecondaryAxisDistance method.
  • Added updateRTL method to update the RTL behavior dynamically. This method allows toggling the Right-to-Left layout at runtime, updating the spatial navigation behavior without requiring reinitialization.