UNPKG

webzlp

Version:

A small library using WebUSB to print labels on label printers.

38 lines 2.26 kB
import * as Conf from '../../Configs/index.js'; import * as Cmds from '../../Commands/index.js'; export declare function setBackfeedAfterTaken(mode: Conf.BackfeedAfterTaken): string; export declare function setPrintDirectionCommand(upsideDown: boolean): string; export declare function setDarknessCommand(cmd: Cmds.SetDarknessCommand, docState: Cmds.TranspiledDocumentState): string; export declare function setPrintSpeedCommand(cmd: Cmds.SetPrintSpeedCommand, docState: Cmds.TranspiledDocumentState): string; export declare function setLabelDimensionsCommand(cmd: Cmds.SetLabelDimensionsCommand): string; export declare function setLabelHomeCommand(cmd: Cmds.SetLabelHomeCommand, outDoc: Cmds.TranspiledDocumentState): string; export declare function setLabelPrintOriginOffsetCommand(cmd: Cmds.SetLabelPrintOriginOffsetCommand): string; export declare function setLabelToContinuousMediaCommand(cmd: Cmds.SetMediaToContinuousMediaCommand, conf: Cmds.PrinterConfig): string; export declare function setLabelToWebGapMediaCommand(cmd: Cmds.SetMediaToWebGapMediaCommand, conf: Cmds.PrinterConfig): string; export declare function setLabelToMarkMediaCommand(cmd: Cmds.SetMediaToMarkMediaCommand, conf: Cmds.PrinterConfig): string; export declare function setMediaTrackingMode(conf: Cmds.PrinterConfig, mode: { mode: 'web'; length: number; gapLength: number; gapOffset: number; } | { mode: 'continuous'; formGapFeed: number; } | { mode: 'mark'; length: number; blackLength: number; blackOffset: number; }): string; export declare function setHardwareMode(config: Cmds.PrinterConfig, modify: { cutter?: 'off' | 'on' | 'cmd'; directThermal?: Conf.ThermalPrintMode; labelTaken?: boolean; reverseSensor?: boolean; feedButton?: Conf.FeedButtonMode; }): string; export declare function printCommand(cmd: Cmds.PrintCommand): string; export declare function addImageCommand(cmd: Cmds.AddImageCommand, outDoc: Cmds.TranspiledDocumentState): string; export declare function addLineCommand(cmd: Cmds.AddLineCommand, outDoc: Cmds.TranspiledDocumentState): string; export declare function addBoxCommand(cmd: Cmds.AddBoxCommand, outDoc: Cmds.TranspiledDocumentState): string; //# sourceMappingURL=BasicCommands.d.ts.map