( cells: Int32Array, charPool: CharPool, hyperlinkPool: HyperlinkPool, index: number, lastRenderedStyleId: number, )
| 852 | } |
| 853 | |
| 854 | export function visibleCellAtIndex( |
| 855 | cells: Int32Array, |
| 856 | charPool: CharPool, |
| 857 | hyperlinkPool: HyperlinkPool, |
| 858 | index: number, |
| 859 | lastRenderedStyleId: number, |
| 860 | ): Cell | undefined { |
| 861 | const out: Cell = { |
| 862 | char: ' ', |
| 863 | styleId: 0, |
| 864 | width: CellWidth.Narrow, |
| 865 | hyperlink: undefined, |
| 866 | } |
| 867 | return visibleCellAtIndexInto( |
| 868 | cells, |
| 869 | charPool, |
| 870 | hyperlinkPool, |
| 871 | index, |
| 872 | lastRenderedStyleId, |
| 873 | out, |
| 874 | ) |
| 875 | ? out |
| 876 | : undefined |
| 877 | } |
| 878 | |
| 879 | /** |
| 880 | * Write cell data into an existing Cell object to avoid allocation. |
nothing calls this directly
no test coverage detected