Skip to content

Commit

Permalink
build: jsvectormap v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Jul 9, 2022
1 parent 1de5d78 commit 286be35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ const map = new jsVectorMap({
```

## Contributions
Your contributions always **welcome**
Your contributions always **welcome** but consider the following notes:

* The build files shouldn't be updated when sending pull requests
* The build files shouldn't be updated when sending pull requests.

## Setup
```bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsvectormap",
"version": "1.4.5",
"version": "1.5.0",
"description": "A lightweight Javascript library for creating interactive maps",
"main": "dist/js/jsvectormap.min.js",
"style": "dist/css/jsvectormap.min.css",
Expand Down
9 changes: 2 additions & 7 deletions src/js/core/setupElementEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@ export default function setupElementEvents() {
const showTooltip = map.params.showTooltip

if (event.type === 'mouseover') {
const defaultPrevented = event.defaultPrevented

if (!defaultPrevented) {
data.element.hover(true)
}

data.element.hover(true)
map.tooltip.text(data.tooltipText)
map._emit(data.event, [event, map.tooltip, data.code])

if (!defaultPrevented) {
if (!event.defaultPrevented) {
if (showTooltip) {
map.tooltip.show()
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class Map {
}

addLine(from, to, style = {}) {
console.warn('`addLine` method is depreacted, please use `addLines` instead.')
console.warn('`addLine` method is deprecated, please use `addLines` instead.')
this._createLines([{ from, to, style }], this.markers, true)
}

Expand Down Expand Up @@ -263,7 +263,7 @@ class Map {
}

removeLine(from, to) {
console.warn('`removeLine` method is depreacted, please use `removeLines` instead.')
console.warn('`removeLine` method is deprecated, please use `removeLines` instead.')
const uid = getLineUid(from, to)

if (this.lines.hasOwnProperty(uid)) {
Expand Down

0 comments on commit 286be35

Please sign in to comment.