Skip to content

@ue-too/board / index / RawUserInputPublisherWithWebWorkerRelay

クラス: RawUserInputPublisherWithWebWorkerRelay

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:307

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.

実装

コンストラクター

コンストラクター

new RawUserInputPublisherWithWebWorkerRelay(webWorker): RawUserInputPublisherWithWebWorkerRelay

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:314

パラメータ

webWorker

Worker

戻り値

RawUserInputPublisherWithWebWorkerRelay

メソッド

notifyPan()

notifyPan(diff): void

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:330

Notifies subscribers of a pan gesture

パラメータ

diff

Point

戻り値

void

の実装

UserInputPublisher.notifyPan


notifyRotate()

notifyRotate(deltaRotation): void

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:359

Notifies subscribers of a rotate gesture

パラメータ

deltaRotation

number

戻り値

void

の実装

UserInputPublisher.notifyRotate


notifyZoom()

notifyZoom(deltaZoomAmount, anchorPoint): void

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:339

Notifies subscribers of a zoom gesture

パラメータ

deltaZoomAmount

number

anchorPoint

Point

戻り値

void

の実装

UserInputPublisher.notifyZoom


on()

on<K>(eventName, callback): UnsubscribeToUserRawInput

定義: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:368

Subscribes to input events

型パラメーター

K

K extends keyof RawUserInputEventMap

パラメータ

eventName

K

callback

(event) => void

戻り値

UnsubscribeToUserRawInput

の実装

UserInputPublisher.on