Global

Type Definitions

PlotterCharacteristics

Source:
Properties:
Name Type Description
brand string

Name of the manufacturer of the device.

buffer number

Size of the device's buffer in bytes (characters).

instructions Array.<string>

An array of all the 2-letter HPGL instruction codes supported by the device.

model string

Model of the device. The library attempts to retrieve that information from the device itself.

papers Object

Supported paper formats

Properties
Name Type Description
list Array.<string>

Array of all paper formats supported by the device.

~format~ number

Information about a specific paper format. Substitute ~format~ with the actual format from the papers.list array: A3, A4, A, B, C, etc.

Properties
Name Type Description
long number

The length of the long side of the plottable are.

short number

The length of the short side of the plottable are.

psCode number

The paper size (PS) code for that paper (not

margins number

The margins for that paper.

Properties
Name Type Description
landscape number

Margins in landscape orientation.

Properties
Name Type Description
top number

Top margin.

right number

Right margin.

bottom number

Bottom margin.

left number

Left margin.

portrait number

Margins in portrait orientation.

Properties
Name Type Description
top number

Top margin.

right number

Right margin.

bottom number

Bottom margin.

left number

Left margin. necessary on most devices).

Characteristics of the plotter

Type:
  • object

Rectangle

Source:
Properties:
Name Type Description
x Number

Position of the rectangle's top-left corner along the x axis.

y Number

Position of the rectangle's topl-left corner along the y axis.

width Number

Width of the rectangle.

height Number

Height of the rectangle.

A rectangle object with position (x, y) and dimensions (width, height).

Type:
  • object