Function: calculateDropPosition()
calculateDropPosition(
cursorY,rowTop,rowHeight):DropPosition
Defined in: src/tree-editor/drop-position.ts:18
Map a vertical cursor position over a target row to a drop position.
Top 25% → ‘before’, bottom 25% → ‘after’, middle 50% → ‘child’. Boundary at exactly 25% is treated as ‘child’ (>= 0.25), and at 75% as ‘after’ (> 0.75 strictly), so a click dead-center is always ‘child’.
Returns ‘child’ for non-positive rowHeight to avoid NaN/Infinity.
Parameters
cursorY
number
rowTop
number
rowHeight
number