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

Defined in

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

Properties

button

button: number

Defined in

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


containerOffset

containerOffset: Point

Defined in

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


delta

delta: Point

Defined in

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


event

event: Event

Inherited from

UIEventState.event

Defined in

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


keys

keys: object

alt

alt: boolean

cmd

cmd: boolean

shift

shift: boolean

Defined in

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


point

point: Point

Defined in

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


pressure

pressure: number

Defined in

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


raw

raw: PointerEvent

Defined in

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


start

start: Point

Defined in

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


type

type: string = 'pointerState'

when extends, override it with pattern xxxState

Overrides

UIEventState.type

Defined in

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

Accessors

x

get x(): number

Returns

number

Defined in

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


y

get y(): number

Returns

number

Defined in

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