Function: dropSlot()
dropSlot(
rows,y,ghost?):number
Defined in: src/ui/elements/PcPanelLayers/index.ts:62
Where a dragged layer would land among the other rows: before the first row whose middle is below the pointer, or after the last. The ghost showing the place is left out, so the place doesn't jump when the ghost moves.
Parameters
rows
readonly object[]
the other rows' top and height, in list order
y
number
ghost?
the ghost's top and height, if shown
height
number
top
number
Returns
number
Example
dropSlot([{ top: 0, height: 30 }, { top: 30, height: 30 }], 40); // 1