Skip to content

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

Class: PointerEventState ​

Contents ​

Extends ​

Constructors ​

new PointerEventState(__namedParameters) ​

new PointerEventState(__namedParameters): PointerEventState

Parameters ​

• __namedParameters: PointerEventStateOptions

Returns ​

PointerEventState

Overrides ​

@blocksuite/block-std.UIEventState.constructor

Source ​

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

Properties ​

button ​

button: number

Source ​

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


containerOffset ​

containerOffset: Point

Source ​

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


delta ​

delta: Point

Source ​

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


dragging ​

dragging: boolean

Source ​

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


event ​

event: Event

Inherited from ​

@blocksuite/block-std.UIEventState.event

Source ​

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


keys ​

keys: Object

Type declaration ​

alt ​

alt: boolean

cmd ​

cmd: boolean

shift ​

shift: boolean

Source ​

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


point ​

point: Point

Source ​

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


raw ​

raw: PointerEvent

Source ​

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


start ​

start: Point

Source ​

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


type ​

type: string = 'pointerState'

when extends, override it with pattern xxxState

Overrides ​

@blocksuite/block-std.UIEventState.type

Source ​

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

Accessors ​

x ​

get x(): number

Returns ​

number

Source ​

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


y ​

get y(): number

Returns ​

number

Source ​

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


Generated using typedoc-plugin-markdown and TypeDoc