updateGeometry

fun updateGeometry(contentBounds: LongRect, viewportSize: IntSize, fit: PanZoomFit, origin: PanZoomStateObserver)(source)

Publishes positive content and viewport geometry from one privileged retained viewport.

One observer may own geometry at a time, and feedback to that origin is suppressed because its active measure already observes the new snapshot. A source or size replacement may update geometry through the same observer. This runtime extension contract is opt-in and may evolve between minor releases.

Parameters

contentBounds

positive half-open content rectangle whose four edges and midpoint are exactly representable in the double coordinate space.

viewportSize

positive logical viewport size.

fit

base scale policy.

origin

live observer that owns this geometry.

Throws

when geometry is empty, its bound edges or axis midpoints are not exactly representable, or it cannot produce a finite positive transform.

when the observer is released, another viewport owns geometry, the caller uses another execution owner, or an observer callback synchronously writes state.

when a different state observer fails after the new geometry is committed.