Skip to content

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

Class: PointerEventState

Defined in: packages/framework/block-std/src/event/state/pointer.ts:13

Extends

Constructors

new PointerEventState()

new PointerEventState(__namedParameters): PointerEventState

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

Parameters

__namedParameters

PointerEventStateOptions

Returns

PointerEventState

Overrides

UIEventState.constructor

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

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

Inherited from

UIEventState.event


keys

keys: object

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

alt

alt: boolean

cmd

cmd: boolean

shift

shift: boolean


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'

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

when extends, override it with pattern xxxState

Overrides

UIEventState.type

Accessors

x

Get Signature

get x(): number

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

Returns

number


y

Get Signature

get y(): number

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

Returns

number