New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsvectormap

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsvectormap - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

dist/jsvectormap.cjs

36

package.json
{
"name": "jsvectormap",
"version": "1.5.3",
"version": "1.6.0",
"description": "A lightweight Javascript library for creating interactive maps",
"main": "dist/js/jsvectormap.min.js",
"style": "dist/css/jsvectormap.min.css",
"main": "dist/jsvectormap.min.js",
"jsdelivr": "dist/jsvectormap.min.js",
"exports": {
".": {
"import": "./dist/jsvectormap.esm.js",
"default": "./dist/jsvectormap.min.js",
"require": "./dist/jsvectormap.cjs",
"style": "./dist/jsvectormap.css",
"sass": "./src/scss/jsvectormap.scss"
},
"./*": "./*"
},
"style": "dist/jsvectormap.min.css",
"sass": "src/scss/jsvectormap.scss",

@@ -14,4 +25,3 @@ "author": {

"dev": "rollup --config --watch",
"build": "rollup --config ./build/package.js",
"build:maps": "rollup --config ./build/maps.js"
"build": "rollup --config ./build/package.js"
},

@@ -38,17 +48,3 @@ "keywords": [

"homepage": "https://jvm-docs.vercel.app",
"license": "MIT",
"devDependencies": {
"@babel/preset-env": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"autoprefixer": "^10.2.5",
"babel-loader": "^8.2.2",
"node-sass": "^7.0.1",
"postcss": "^8.2.15",
"rollup": "^2.51.2",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-scss": "^3.0.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2"
}
"license": "MIT"
}

@@ -0,0 +0,0 @@ import { removeElement } from '../util'

@@ -0,0 +0,0 @@ import BaseComponent from './base'

@@ -0,0 +0,0 @@ import { inherit } from '../util'

@@ -0,0 +0,0 @@ import { inherit } from '../util'

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ export default function applyTransform() {

@@ -0,0 +0,0 @@ import Map from '../map'

@@ -0,0 +0,0 @@ import { merge, getLineUid } from '../util'

@@ -37,3 +37,3 @@ import { merge } from '../util'

// Merge the `markerStyle` object with the marker config `style` if presented.
style: merge(this.params.markerStyle, { initial: config.style || {} }, true),
style: merge(this.params.markerStyle, { ...config.style || {} }, true),
label: this.params.labels && this.params.labels.markers,

@@ -40,0 +40,0 @@ labelsGroup: this._markerLabelsGroup,

@@ -0,0 +0,0 @@ import { merge } from '../util'

@@ -0,0 +0,0 @@ import Series from '../series'

@@ -0,0 +0,0 @@ import Map from '../map'

@@ -0,0 +0,0 @@ import Map from '../map'

@@ -0,0 +0,0 @@ import _setupContainerEvents from './setupContainerEvents'

@@ -0,0 +0,0 @@ export default function repositionLabels() {

@@ -0,0 +0,0 @@ export default function repositionLines() {

@@ -0,0 +0,0 @@ export default function repositionMarkers() {

@@ -0,0 +0,0 @@ export default function resize() {

@@ -0,0 +0,0 @@ export default function setFocus(config = {}) {

@@ -0,0 +0,0 @@ import Events from '../defaults/events'

@@ -0,0 +0,0 @@ import EventHandler from '../eventHandler'

@@ -0,0 +0,0 @@ import EventHandler from '../eventHandler'

@@ -0,0 +0,0 @@ import { getElement } from '../util'

@@ -0,0 +0,0 @@ import { createElement } from '../util'

@@ -0,0 +0,0 @@ export default function updateSize() {

@@ -53,2 +53,6 @@ class DataVisualization {

getValue(value) {
if (this.min === this.max) {
return `#${this._toColor.join('')}`
}
let hex, color = '#'

@@ -55,0 +59,0 @@

@@ -0,0 +0,0 @@ export default {

@@ -0,0 +0,0 @@ export default {

@@ -0,0 +0,0 @@ let eventRegistry = {}

@@ -6,3 +6,2 @@ /**

*/
import './util/pollyfills'
import Map from './map'

@@ -9,0 +8,0 @@

@@ -0,0 +0,0 @@ import { createElement, isImageUrl } from './util'

@@ -160,6 +160,14 @@ import {

clearSelectedRegions() {
this._clearSelected('regions')
clearSelectedRegions(regions = undefined) {
regions = this._normalizeRegions(regions) || this._getSelected('regions')
regions.forEach((key) => {
this.regions[key].element.select(false)
})
}
setSelectedRegions(regions) {
this.clearSelectedRegions()
this._setSelected('regions', this._normalizeRegions(regions))
}
// Markers methods

@@ -175,7 +183,4 @@ getSelectedMarkers() {

addMarkers(config) {
if (Array.isArray(config)) {
return this._createMarkers(config, true)
}
this._createMarkers([config], true)
config = Array.isArray(config) ? config : [config]
this._createMarkers(config, true)
}

@@ -333,2 +338,6 @@

}
_normalizeRegions(regions) {
return typeof regions === 'string' ? [regions] : regions
}
}

@@ -335,0 +344,0 @@

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { merge } from './util/index'

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ import SVGElement from './baseElement'

@@ -0,0 +0,0 @@ import SVGShapeElement from './shapeElement'

@@ -0,0 +0,0 @@ import { merge } from '../util/index'

@@ -0,0 +0,0 @@ import SVGShapeElement from './shapeElement'

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import DeepMerge from './deepMerge'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc