@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.
備註
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
實作了
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
實作了
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