PanZoomMetrics
Immutable position and resolved geometry snapshot for a pan-and-zoom viewport.
PanZoomMetrics.zoom is a multiplier over the base PanZoomMetrics.fit scale, while PanZoomMetrics.scale is the resolved number of logical viewport pixels per content unit. Before a viewport publishes geometry, PanZoomMetrics.geometryKnown is false and PanZoomMetrics.scale is only a finite placeholder that must not be used for coordinate conversion.
Throws
when numeric values are not finite and positive where required, or known geometry is empty.
Constructors
Properties
content coordinate shown at the viewport center.
current positive half-open content bounds when PanZoomMetrics.geometryKnown is true.
base scale policy.
whether a viewport has published usable geometry.
current positive viewport extent when PanZoomMetrics.geometryKnown is true.