(count: number, limit: number)
| 20 | | { type: "spacer" } |
| 21 | |
| 22 | function maxOffset(count: number, limit: number) { |
| 23 | return Math.max(0, count - limit) |
| 24 | } |
| 25 | |
| 26 | function previewMargin(limit: number) { |
| 27 | return Math.max(0, Math.min(2, Math.floor((limit - 1) / 2))) |
no outgoing calls
no test coverage detected