Type Alias: ImageSizer
ts
type ImageSizer = (src: string) =>
| {
h: number;
w: number;
}
| null;Defined in: common/htmltable-types.ts:90
Callback for resolving image dimensions in HTML labels.
Returns the intrinsic {w, h} in points for src, or null when the image cannot be resolved. Absent or null → zero-size cell + warning, matching C's missing-image behavior (htmltable.c:size_html_img, gvusershape.c).
AD3 (locked): absent ImageSizer must be indistinguishable from C-with-missing-file.
Parameters
src
string
Returns
| { h: number; w: number; } | null
See
- lib/common/htmltable.c:size_html_img (line 1080)
- lib/gvc/gvusershape.c:gvusershape_size