Skip to content

labelwriter


labelwriter / core/src / findTapeMediaByWidth

Function: findTapeMediaByWidth()

findTapeMediaByWidth(widthMm): LabelWriterTapeMedia | undefined

Find the lowest-numbered cartridge variant at a given tape width.

For UIs that just want "any 12 mm tape" — typically returns the Standard Black on White variant. Use findTapeMediaByWidthAll() when the caller needs every variant.

Parameters

widthMm

number

Returns

LabelWriterTapeMedia | undefined