API


Loading

TIFY’s API allows most parameters to be controlled programmatically, for example pan and zoom, displayed pages, active view, and even the language.

const tify = new Tify({
  container: '#tify',
  manifestUrl: 'https://manifests.sub.uni-goettingen.de/iiif/presentation/DE-611-HS-3216958/manifest',
  translationsDirUrl: '/tify-translations',
})
tify.setPage(3)
tify.setPage([1, 8, 9])

tify.setLanguage(tify.options.language === 'en' ? 'de' : 'en')

tify.setView('thumbnails')

tify.viewer.viewport.zoomTo(2)
tify.resetScan(true)

API documentation