Web SDKv1.0.0

navigation.defaultZoom

Initial zoom level on load. A number is a scale (e.g. 0.75 = 75%, 1.5 = 150%), and a ceiling: a page that would overflow the width at it opens at fit-width instead, on any screen; a phone-sized layout (narrow/tiny) fits it again when turned or shrunk to that size. A zoom below fit-width stays.
'fit-width' | 'fit-page' | numberdefault 'fit-width'

Values

  • 'fit-width'Default. Fits page width to container.
  • 'fit-page'Fits entire page into viewport.
  • numberA scale (0.75 = 75%, 1.5 = 150%), and a ceiling: a page that would overflow the width at it opens at fit-width instead.

Example

defaultZoomTypeScript
navigation: { defaultZoom: 'fit-page' }

More in Navigation bar