UNPKG

svg-pan-zoom-m

Version:

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

13 lines (11 loc) 221 B
require.config({ paths: { 'svg-pan-zoom': '../dist/svg-pan-zoom' } }) require(["svg-pan-zoom"], function(svgPanZoom) { svgPanZoom('#demo-tiger', { zoomEnabled: true, controlIconsEnabled: true }); });