@mocanvas/mocanvas · interface

DrawPoint

interface DrawPoint

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 3

x: number
y: number
z?: number | undefined

Pen pressure, 0..1. Absent on points a mouse or a finger made — and spelled | undefined so a validator that produces the key explicitly still describes this type under exactOptionalPropertyTypes.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.