How to use the viewerjs.setDefaults function in viewerjs

To help you get started, we’ve selected a few viewerjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mirari / v-viewer / src / index.js View on Github external
install (Vue, {name = 'viewer', debug = false, defaultOptions} = {}) {
    Viewer.setDefaults(defaultOptions)

    Vue.component(name, extend(Component, { name }))
    Vue.use(directive, {name, debug})
  },
  setDefaults (defaultOptions) {
github mirari / v-viewer / src / index.js View on Github external
setDefaults (defaultOptions) {
    Viewer.setDefaults(defaultOptions)
  }
}

viewerjs

JavaScript image viewer.

MIT
Latest version published 1 year ago

Package Health Score

68 / 100
Full package analysis