Skip to content

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

Class: PointerEventState

Extends

Constructors

new PointerEventState(__namedParameters)

new PointerEventState(__namedParameters): PointerEventState

Parameters

__namedParameters: PointerEventStateOptions

Returns

PointerEventState

Overrides

UIEventState.constructor

Source

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

Properties

button

button: number

Source

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


containerOffset

containerOffset: Point

Source

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


cumulativeParentScale

cumulativeParentScale: number

Deprecated

This is a temporary solution, and will be removed in the future.

Source

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


delta

delta: Point

Source

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


dragging

dragging: boolean

Source

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


event

event: Event

Inherited from

UIEventState.event

Source

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


keys

keys: Object

keys.alt

alt: boolean

keys.cmd

cmd: boolean

keys.shift

shift: boolean

Source

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


point

point: Point

Source

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


pressure

pressure: number

Source

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


raw

raw: PointerEvent

Source

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


start

start: Point

Source

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


type

type: string = 'pointerState'

when extends, override it with pattern xxxState

Overrides

UIEventState.type

Source

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

Accessors

x

get x(): number

Returns

number

Source

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


y

get y(): number

Returns

number

Source

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