computeCameraFraming
computeCameraFraming(
bounds,state?):CameraFraming
Defined in: packages/declarative-hex-worlds/src/camera/camera.ts:151
Compute a renderer-neutral camera framing for a board’s bounds + a requested view.
The eye sits along the angle’s direction at a distance chosen so the board fits
(frame-board, with padding) or fills (fill-viewport) the view; the target is the
board center. orthoHalfHeight sizes an orthographic box; fov/distance size a
perspective one.
Parameters
Section titled “Parameters”bounds
Section titled “bounds”state?
Section titled “state?”CameraState = DEFAULT_CAMERA_STATE