Appearance
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
Name | Type | Description |
---|---|---|
align | number | 0 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
Name | Type | Description |
---|---|---|
m | number | 0 ≤ 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
Name | Type |
---|---|
width | number |
Returns
void
Defined in
interface/EscLib.ts:10
setText
▸ setText(data
): void
@description: Set the text to be printed
Parameters
Name | Type | Description |
---|---|---|
data | string | print data |
Returns
void
Defined in
interface/EscLib.ts:20