Skip to content

BlockSuite API Documentation / @blocksuite/block-std / PointerEventState

Class: PointerEventState

Extends

Constructors

new PointerEventState()

new PointerEventState(__namedParameters): PointerEventState

Parameters

__namedParameters: PointerEventStateOptions

Returns

PointerEventState

Overrides

UIEventState.constructor

Source

packages/framework/block-std/src/event/state/pointer.ts:46

Properties

button

button: number

Source

packages/framework/block-std/src/event/state/pointer.ts:32


containerOffset

containerOffset: Point

Source

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


delta

delta: Point

Source

packages/framework/block-std/src/event/state/pointer.ts:24


dragging

dragging: boolean

Source

packages/framework/block-std/src/event/state/pointer.ts:34


event

event: Event

Inherited from

UIEventState.event

Source

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


keys

keys: object

alt

alt: boolean

cmd

cmd: boolean

shift

shift: boolean

Source

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


point

point: Point

Source

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


pressure

pressure: number

Source

packages/framework/block-std/src/event/state/pointer.ts:36


raw

raw: PointerEvent

Source

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


start

start: Point

Source

packages/framework/block-std/src/event/state/pointer.ts:22


type

type: string = 'pointerState'

when extends, override it with pattern xxxState

Overrides

UIEventState.type

Source

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

Accessors

x

get x(): number

Returns

number

Source

packages/framework/block-std/src/event/state/pointer.ts:38


y

get y(): number

Returns

number

Source

packages/framework/block-std/src/event/state/pointer.ts:42