Skip to content
On this page

Interface: EscLib

Methods

init

init(): void

@description: init the command

Returns

void

Defined in

interface/EscLib.ts:5


setAlign

setAlign(align): void

@description: Set align

Parameters

NameTypeDescription
alignnumber0 align left, 1 align center, 2 align right

Returns

void

Defined in

interface/EscLib.ts:15


setPrint

setPrint(): void

Returns

void

Description

Print out the data in the print buffer, and push the printing paper forward by one line according to the current line spacing

Defined in

interface/EscLib.ts:24


setPrintPaperFeed

setPrintPaperFeed(m): void

Parameters

NameTypeDescription
mnumber0 ≤ n ≤ 255

Returns

void

Description

Print buffer data and feed paper (inches)

Defined in

interface/EscLib.ts:29


setSize

setSize(width): void

@description: print width

Parameters

NameType
widthnumber

Returns

void

Defined in

interface/EscLib.ts:10


setText

setText(data): void

@description: Set the text to be printed

Parameters

NameTypeDescription
datastringprint data

Returns

void

Defined in

interface/EscLib.ts:20