zoomTo
Sets zoom and optionally preserves one viewport-local anchor.
Values beyond configured limits are clamped. An anchor is applied only after viewport geometry is known; bounds clamping still takes precedence.
Return
the resulting clamped zoom multiplier.
Parameters
zoom
requested positive finite zoom multiplier.
anchor
optional finite viewport-local coordinate to keep over the same content coordinate.
Throws
when zoom is not finite and positive or the resolved transform or anchor arithmetic cannot remain finite and positive.
when called from another execution owner or synchronously from an observer callback.
when a state observer fails after the new metrics are committed.