Kind: Function
Source: atloria-monorepo/apps/web/src/components/Boards/helpers.ts
Given the current cards in a destination column (excluding the moved card) and the index where the card will land, compute its new float position.
Signature
tsfunction calculateNewPosition(destCards: BoardCardData[], insertIndex: number): number
Parameters
| Name | Type |
|---|---|
destCards | BoardCardData[] |
insertIndex | number |
Returns: number
Was this page helpful?