API reference: @salmonui/data-grid/engine/export
ExportImageinterface
import type { ExportImage } from '@salmonui/data-grid/engine/export';interface ExportImage {
readonly data: Uint8Array;
readonly type?: 'png' | 'jpeg';
readonly width: number;
readonly height: number;
}
An image drawn in a cell: PNG or JPEG bytes and the display size
in CSS px (96 dpi). type is sniffed from the magic bytes when absent.
XLSX embeds it as a picture anchored to the cell, PDF as an image XObject;
CSV writes the cell text.
| Name | Signature | Description |
|---|---|---|
data | readonly data: Uint8Array; | |
typeoptional | readonly type?: 'png' | 'jpeg'; | |
width | readonly width: number; | |
height | readonly height: number; |