svgmap 2.18.2 → 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/index.cjs CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const svgPanZoom = require('svg-pan-zoom');
4
+
3
5
  class svgMap {
4
6
  constructor(options = {}) {
5
7
  const defaultOptions = {
@@ -1154,7 +1156,7 @@ class svgMap {
1154
1156
  var me = this;
1155
1157
 
1156
1158
  // Init pan zoom
1157
- this.mapPanZoom = svgPanZoom(this.mapImage, {
1159
+ this.mapPanZoom = svgPanZoom.svgPanZoom(this.mapImage, {
1158
1160
  zoomEnabled: this.options.allowInteraction,
1159
1161
  panEnabled: this.options.allowInteraction,
1160
1162
  fit: true,