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/assets/countries.js +247 -0
- package/assets/create-map-paths.html +1029 -0
- package/assets/localize.html +35 -0
- package/assets/map-optimized.svg +986 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/svg-map.umd.js +3 -1
- package/dist/svg-map.umd.js.map +1 -1
- package/dist/svg-map.umd.min.js +1 -1
- package/dist/svgMap.js +3 -1
- package/dist/svgMap.js.map +1 -1
- package/dist/svgMap.min.js +1 -1
- package/package.json +4 -2
- package/src/js/core/svg-map.js +2350 -0
- package/src/js/index.js +4 -0
- package/src/scss/map.scss +257 -0
- package/src/scss/svg-map.scss +2 -0
- package/src/scss/tooltip.scss +128 -0
- package/src/scss/variables.scss +31 -0
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,
|