Primitives / foldkit-primitives/dom

PointerPoint

const · packages/primitives/src/dom/pointer-position.ts:10

const PointerPoint: Schema.Struct<{
  readonly x: Schema.Number
  readonly y: Schema.Number
  readonly pressure: Schema.Number
}>

Its type

type PointerPoint = typeof PointerPoint.Type

A place in an element's padding box, in CSS pixels from its top left corner, and the pointer's pressure there (0 to 1; a mouse reads 0.5 while a button is down). A captured pointer can be outside the box, so x and y can be negative or past its size.