labelwriter / core/src / findMediaByDimensions
Function: findMediaByDimensions()
findMediaByDimensions(
widthMm,heightMm):LabelWriterMedia|undefined
Match a 550-series status response against the paper portion of the media registry.
The status response carries paper roll dimensions in mm — a simple filter is enough. Tape cassettes (type: 'tape') are excluded since the 550 doesn't have a tape head. Returns undefined for sizes outside the registry; callers can still surface rawBytes for unknown-roll diagnostics.
Parameters
widthMm
number
heightMm
number
Returns
LabelWriterMedia | undefined
Deprecated
Unused — no caller maps detectedMedia onto a catalogue entry; the print/preview path consumes the SKU-derived descriptor directly. The exact dimension equality below also cannot match the deci-mm values parseSkuInfo now produces (e.g. 57.1), so don't resurrect this without making it tolerant. Scheduled for removal in 0.7.0.