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/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,
|