Tween the viewport View between values. Wraps useViewTween's animateTo
cancel, and adds an animateToBounds convenience that composes
fitViewToBounds with the existing tween so consumers can say "zoom to this
bounds with animation" in one call.
animateToBounds needs the current View and the current viewport
dimensions to compute the target — both are passed as arguments so this
hook stays a leaf (no canvas-size subscription, no View storage).
Tween the viewport
Viewbetween values. WrapsuseViewTween'sanimateTocancel, and adds ananimateToBoundsconvenience that composesfitViewToBoundswith the existing tween so consumers can say "zoom to this bounds with animation" in one call.animateToBoundsneeds the currentViewand the current viewport dimensions to compute the target — both are passed as arguments so this hook stays a leaf (no canvas-size subscription, noViewstorage).