Compute a 0-based insertion index based on which child midpoint the cursor has passed along the main axis. The returned value is in [0, rects.length].
Use with axis: 'y' for vertical stacks; axis: 'x' for horizontal strips.
axis: 'y'
axis: 'x'
Compute a 0-based insertion index based on which child midpoint the cursor has passed along the main axis. The returned value is in [0, rects.length].
Use with
axis: 'y'for vertical stacks;axis: 'x'for horizontal strips.