How to use the viewerjs/src.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 fengyuanchen / viewer / src / index.js View on Github external
if (result === viewer) {
            result = undefined;
          }

          if (isDestroy) {
            $element.removeData(NAMESPACE);
          }
        }
      }
    });

    return result !== undefined ? result : this;
  };

  $.fn.viewer.Constructor = Viewer;
  $.fn.viewer.setDefaults = Viewer.setDefaults;
  $.fn.viewer.noConflict = function noConflict() {
    $.fn.viewer = AnotherViewer;
    return this;
  };
}

viewerjs

JavaScript image viewer.

MIT
Latest version published 28 days ago

Package Health Score

89 / 100
Full package analysis