Skip to main content
PointUtils converts between two coordinate systems:
  • Pixel coordinate system: screen rendering/layout coordinates (unit: px)
  • EMR coordinate system: digitizer/handwriting hardware coordinates (unit: hardware units)
For background and differences between the two coordinate systems, see: Coordinate System.
import { PointUtils } from 'sn-plugin-lib';

Constants

Page Orientation (orientation)

ConstantValueDescription
PointUtils.ROTATION_010000° portrait
PointUtils.ROTATION_0_LR20000° portrait, left/right split page
PointUtils.ROTATION_90109090° landscape
PointUtils.ROTATION_90_UD209090° landscape, top/bottom split page
PointUtils.ROTATION_1801180180° portrait
PointUtils.ROTATION_180_LR2180180° portrait, left/right split page
PointUtils.ROTATION_2701270270° landscape
PointUtils.ROTATION_270_UD2270270° landscape, top/bottom split page

Device Model (machineType)

ConstantValueDescription
PointUtils.MACHINE_TYPE_A50A5
PointUtils.MACHINE_TYPE_A61A6
PointUtils.MACHINE_TYPE_A6X2A6X
PointUtils.MACHINE_TYPE_A5X3A5X
PointUtils.MACHINE_TYPE_NOMAD4Nomad
PointUtils.MACHINE_TYPE_MANTA5Manta

Common Page Pixel Sizes

ConstantValue
PointUtils.NORMAL_PAGE_SIZE{ width: 1404, height: 1872 }
PointUtils.A5X2_PAGE_SIZE{ width: 1920, height: 2560 }

Methods