@ue-too/board / RawUserInputPublisherWithWebWorkerRelay
Class: RawUserInputPublisherWithWebWorkerRelay
Defined in: 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.
Implements
Constructors
Constructor
new RawUserInputPublisherWithWebWorkerRelay(
webWorker):RawUserInputPublisherWithWebWorkerRelay
Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:314
Parameters
webWorker
Worker
Returns
RawUserInputPublisherWithWebWorkerRelay
Methods
notifyPan()
notifyPan(
diff):void
Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:330
Notifies subscribers of a pan gesture
Parameters
diff
Point
Returns
void
Implementation of
notifyRotate()
notifyRotate(
deltaRotation):void
Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:359
Notifies subscribers of a rotate gesture
Parameters
deltaRotation
number
Returns
void
Implementation of
UserInputPublisher.notifyRotate
notifyZoom()
notifyZoom(
deltaZoomAmount,anchorPoint):void
Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:339
Notifies subscribers of a zoom gesture
Parameters
deltaZoomAmount
number
anchorPoint
Point
Returns
void
Implementation of
on()
on<
K>(eventName,callback):UnsubscribeToUserRawInput
Defined in: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:368
Subscribes to input events
Type Parameters
K
K extends keyof RawUserInputEventMap
Parameters
eventName
K
callback
(event) => void