Package-level declarations
Types
What a channel label says beside its QR.
Why the sheet could not find, reach or finish a print on the printer.
Finds a Niimbot printer, reconnects to the one used last as soon as it is seen, and prints. The printer has its own Bluetooth connection, so the radio's is not involved.
Draws a LabelLayout at one pixel per printer dot and thresholds it to one bit. Text is bold in textFont; emoji come from emojiFont, a one-color face, because color emoji threshold to blobs. Band words are bold in bandFont.
Measures one run of label text in printer dots; sizes are font pixel sizes.
What a name tag shows for a node.
A QR code's modules, without a quiet zone.
A label ready to show and to print.
Properties
Functions
The channel label for channelSet, whose QR encodes url, the link Share Channels shows. shouldAdd is whether scanning adds the channels or replaces the scanner's.
Whether to offer Print label here: only where the app can reach the printer and the device has Bluetooth LE.
The feed length of a die-cut label millimeters long, as labeltastic's with_label_length sizes it.
Prints spec on a Niimbot D110: a preview, the label length, the printer, and Print. The length and the printer are remembered, and the printer used last reconnects when it is seen.
Lays this out for a label lengthDots long, or returns null when its QR does not fit the head at 2 dots per module. A contact's long name is cut in the QR payload first; a channel or connect link has nothing to cut.