Skip to main content

Interface: PointInput

Defined in: src/lib/brushes/params/index.ts:25

What the input device reports for a point

Properties​

isPen​

isPen: boolean

Defined in: src/lib/brushes/params/index.ts:32

Whether the point came from a pen (mouse and touch report no real pressure or tilt)


pressure?​

optional pressure?: number

Defined in: src/lib/brushes/params/index.ts:27

Pressure (0–1), only meaningful for pens


tiltX?​

optional tiltX?: number

Defined in: src/lib/brushes/params/index.ts:29

Tilt in degrees along X and Y (-90–90), only meaningful for pens


tiltY?​

optional tiltY?: number

Defined in: src/lib/brushes/params/index.ts:30