(
args: Pick<DrawArgs<CustomCell>, "rect" | "ctx"> & { theme: Theme },
)
| 6 | * @returns vertical center of a grid cell, relative to the visible grid area |
| 7 | */ |
| 8 | export const getYCenter = ( |
| 9 | args: Pick<DrawArgs<CustomCell>, "rect" | "ctx"> & { theme: Theme }, |
| 10 | ) => { |
| 11 | const { rect, ctx, theme } = args; |
| 12 | const { y, height } = rect; |
| 13 | |
| 14 | return y + height / 2 + getMiddleCenterBias(ctx, theme.fontFamily); |
| 15 | }; |
| 16 | |
| 17 | /** |
| 18 | * @param atFirstColumn first columns has extra padding for the chevron icon on the left side |
no outgoing calls
no test coverage detected