Skip to content

@ue-too/board / UserInputPublisher

Interface: UserInputPublisher

Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:140

Interface for publishing raw user input events to observers.

Remarks

This interface defines the contract for broadcasting user input events to external subscribers. Implementations provide the observable pattern for input event distribution.

Methods

notifyPan()

notifyPan(diff): void

Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:142

Notifies subscribers of a pan gesture

Parameters

diff

Point

Returns

void


notifyRotate()

notifyRotate(deltaRotation): void

Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:146

Notifies subscribers of a rotate gesture

Parameters

deltaRotation

number

Returns

void


notifyZoom()

notifyZoom(deltaZoomAmount, anchorPoint): void

Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:144

Notifies subscribers of a zoom gesture

Parameters

deltaZoomAmount

number

anchorPoint

Point

Returns

void


on()

on<K>(eventName, callback): UnsubscribeToUserRawInput

Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:148

Subscribes to input events

Type Parameters

K

K extends keyof RawUserInputEventMap

Parameters

eventName

K

callback

(event) => void

Returns

UnsubscribeToUserRawInput