ReadonlycanvasPosition of the pointer relative to the top left corner of the drawing surface.
ReadonlydeviceReadonlydownReadonlyidUnique ID for the pointer
ReadonlyisReadonlypressureReadonlyscreenThe (x, y) position of the pointer relative to the top-left corner of the visible canvas.
ReadonlytimeNumeric timestamp (milliseconds, as from performance.now()).
StaticofCreate a new Pointer from a point on the canvas. Intended for unit tests.
StaticofCreates a Pointer from a DOM event. If relativeTo is given, (0, 0) in screen coordinates is
considered the top left of relativeTo.
OptionalrelativeTo: HTMLElementStaticofCreate a new Pointer from a point on the screen. Intended for unit tests.
Provides a snapshot containing information about a pointer. A Pointer object is immutable — it will not be updated when the pointer's information changes.