Axis Utility
Overview
The Axis Utility contains orientation helpers that standardize how vertical and horizontal drag interactions are interpreted within the library.
import { inferAxis } from 'ngx-builder-dnd';
inferAxis
export const inferAxis = (edges: Edge[]): Orientation => ... };
The inferAxis utility determines whether a drag interaction should be treated as vertical or horizontal,
based on the closest detected edges during a drag operation.
It simplifies internal logic by mapping edge information to a clear layout orientation.
See Also
- Drop Indicator Model - Defines how and where drop indicators are displayed.