UNPKG

svg-pan-zoom

Version:

JavaScript library for panning and zooming an SVG image from the mouse, touches and programmatically.

19 lines (16 loc) 507 B
var svgPanZoom = require("./svg-pan-zoom.js"); // UMD module definition (function(window, document) { // AMD if (typeof define === "function" && define.amd) { define("svg-pan-zoom", function() { return svgPanZoom; }); // CMD } else if (typeof module !== "undefined" && module.exports) { module.exports = svgPanZoom; // Browser // Keep exporting globally as module.exports is available because of browserify window.svgPanZoom = svgPanZoom; } })(window, document);