Skip to main content
ZoomToElementsOptions
Options for the zoomToElements method.
NameTypeDescription
doNotAnimate?booleanIf true, don't animate while zooming. Defaults to false, ie. the operation will be animated.
doNotZoomIfVisible?booleanIf the content is all already visible, do not make any changes to zoom.
elementsArray<EL>Array of elements to zoom to
fill?numberA decimal between 0 and 1, which indicates how much of the viewport size the content will take up. This value is applied as a ratio of the width or height of the viewport - whichever is smaller. The default is 0.9.
onComplete?(p:PointXY) => anyOptional function to call on operation complete.