svgmap 2.18.1 → 2.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/svgMap.js CHANGED
@@ -4,6 +4,8 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.svgMap = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
+ const svgPanZoom = require('svg-pan-zoom');
8
+
7
9
  class svgMap {
8
10
  constructor(options = {}) {
9
11
  const defaultOptions = {
@@ -1158,7 +1160,7 @@
1158
1160
  var me = this;
1159
1161
 
1160
1162
  // Init pan zoom
1161
- this.mapPanZoom = svgPanZoom(this.mapImage, {
1163
+ this.mapPanZoom = svgPanZoom.svgPanZoom(this.mapImage, {
1162
1164
  zoomEnabled: this.options.allowInteraction,
1163
1165
  panEnabled: this.options.allowInteraction,
1164
1166
  fit: true,