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

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

Properties

button

button: number

Source

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


containerOffset

containerOffset: Point

Source

packages/framework/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

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


delta

delta: Point

Source

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


dragging

dragging: boolean

Source

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


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:22


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:29


raw

raw: PointerEvent

Source

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


start

start: Point

Source

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


type

type: string = 'pointerState'

when extends, override it with pattern xxxState

Overrides

UIEventState.type

Source

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

Accessors

x

get x(): number

Returns

number

Source

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


y

get y(): number

Returns

number

Source

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