PointerSet
The pointers down on one surface, keyed by pointerId.
@internote/canvas-sdk/reactOn this page
import { PointerSet } from '@internote/canvas-sdk/react';#Fields
allTouchWhether every pointer down is a finger.
booleanclearForgets every pointer.
voiddownRecords a pointer going down.
voidhasWhether this pointer is one of them.
booleanmidpointThe first two pointers' midpoint, or
null with fewer than two down.PointerPoint | nullmoveMoves a pointer that is down, and returns where it was.
null for a pointer the set does not hold, whose move is not this surface's.PointerPoint | nullpointsThe points in the order they went down.
PointerPoint[]sizeHow many pointers are down.
numberspreadThe distance between the first two pointers, or
null with fewer than two down.number | nullupForgets a pointer: lifted, or cancelled by the system.
voidDeclared in packages/canvas-sdk/src/react/gestures/use-pointer-set.ts:39.