webzlp
Version:
A small library using WebUSB to print labels on label printers.
36 lines • 1.57 kB
TypeScript
import { LabelPrinter } from './Printer.js';
import * as Conf from './Configs/index.js';
import * as Docs from './Documents/index.js';
/** Collection of handy documents ready to go. */
export declare class ReadyToPrintDocuments {
private static readonly printerGetConfigDoc;
/** A command document to query the printer for configuration. */
static get configDocument(): Docs.IDocument;
private static readonly printerStatusDoc;
/** A command document to query the printer's status. */
static get printerStatusDocument(): Docs.IDocument;
private static readonly printerPrintConfigDoc;
/** A command document to make the printer print its configuration. */
static get printConfigDocument(): Docs.IDocument;
private static readonly feedLabelDoc;
/** A label document to feed a single label. */
static get feedLabelDocument(): Docs.IDocument;
/**
* Print a test pattern that looks like
*
* ████████████
*
* ███
* ███
* ███
* ███
*
* ////////////
*
* Needs to know the width to adjust the pattern.
*/
static printTestLabelDocument(labelWidthInDots: number): Docs.IDocument;
/** Combine the common label settings into one config document. */
static configLabelSettings<TMessageType extends Conf.MessageArrayLike>(printer: LabelPrinter<TMessageType>, labelWidthInches: number, darknessPercent: Conf.DarknessPercent): Docs.IDocument;
}
//# sourceMappingURL=ReadyToPrintDocuments.d.ts.map