@ue-too/board / index / UserInputPublisher
介面: UserInputPublisher
定義於: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:140
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.
方法
notifyPan()
notifyPan(
diff):void
定義於: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:142
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:146
Notifies subscribers of a rotate gesture
參數
deltaRotation
number
回傳
void
notifyZoom()
notifyZoom(
deltaZoomAmount,anchorPoint):void
定義於: packages/board/src/input-interpretation/raw-input-publisher/raw-input-publisher.ts:144
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:148
Subscribes to input events
型別參數
K
K extends keyof RawUserInputEventMap
參數
eventName
K
callback
(event) => void