@ue-too/board / ZoomControlOutputEvent
Type Alias: ZoomControlOutputEvent
ZoomControlOutputEvent = {
anchorPoint:Point;deltaZoom:number;type:"zoomByAt"; } | {anchorPoint:Point;targetZoom:number;type:"zoomToAt"; } | {deltaZoom:number;type:"zoomBy"; } | {targetZoom:number;type:"zoomTo"; } | {anchorPoint:Point;deltaZoom:number;type:"zoomByAtWorld"; } | {anchorPoint:Point;targetZoom:number;type:"zoomToAtWorld"; } | {type:"none"; }
Defined in: packages/board/src/camera/camera-mux/animation-and-lock/zoom-control-state-machine.ts:102
Discriminated union of output events from zoom control state machine.
Remarks
Output events instruct the camera system what zoom operation to perform:
zoomByAt: Relative zoom around anchor pointzoomToAt: Absolute zoom to target level around anchor pointzoomBy: Relative zoom without anchorzoomTo: Absolute zoom to target level without anchorzoomByAtWorld: Relative zoom around world anchor pointzoomToAtWorld: Absolute zoom to target level around world anchor pointnone: No operation (input blocked)