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