labelwriter / core/src / getPrintableCanvasDots
Function: getPrintableCanvasDots()
getPrintableCanvasDots(
engine,media?):PrintableCanvasDots
Resolve the printable-canvas deductions for a given engine + media, in dot space. Callers compose their authored bitmap at widthDots × (mediaLengthDots − leadingDots − trailingDots) for die-cut media (or any user-chosen height for continuous, minus the dead zones).
The encoder no longer reads these values — they are the authoring layer's responsibility. When a caller authors a bitmap shorter than the actual label length, it must also pass options.labelLengthDots = media.lengthDots to encodeLabel so the printer's form-feed pitch is correct.