Skip to content

API > @blocksuite/block-std > PointerEventState

Class: PointerEventState ​

Extends ​

Constructors ​

constructor ​

new PointerEventState(__namedParameters): PointerEventState

Parameters ​

ParameterType
__namedParametersPointerEventStateOptions

Returns ​

PointerEventState

Overrides ​

UIEventState.constructor

Defined In ​

block-std/src/event/state/pointer.ts:37

Properties ​

button ​

button: number

Defined In ​

block-std/src/event/state/pointer.ts:26


containerOffset ​

containerOffset: Point

Defined In ​

block-std/src/event/state/pointer.ts:18


delta ​

delta: Point

Defined In ​

block-std/src/event/state/pointer.ts:20


dragging ​

dragging: boolean

Defined In ​

block-std/src/event/state/pointer.ts:27


event ​

event: Event

Defined In ​

block-std/src/event/base.ts:11

Inherited from ​

UIEventState.event


keys ​

keys: object

Type declaration ​

keys.alt ​

alt: boolean

keys.cmd ​

cmd: boolean

keys.shift ​

shift: boolean

Defined In ​

block-std/src/event/state/pointer.ts:21


point ​

point: Point

Defined In ​

block-std/src/event/state/pointer.ts:17


raw ​

raw: PointerEvent

Defined In ​

block-std/src/event/state/pointer.ts:16


start ​

start: Point

Defined In ​

block-std/src/event/state/pointer.ts:19


type ​

type: string = 'pointerState'

when extends, override it with pattern xxxState

Defined In ​

block-std/src/event/state/pointer.ts:14

Overrides ​

UIEventState.type

Accessors ​

x ​

get x(): number

Defined In ​

block-std/src/event/state/pointer.ts:29


y ​

get y(): number

Defined In ​

block-std/src/event/state/pointer.ts:33