Skip to content

Commit bd056bb

Browse files
committed
Release v1.5.2
1 parent 2325a1a commit bd056bb

12 files changed

+311
-112
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
- Migrate to modern testframework
1212
- Update website and host on Github
1313

14+
## Version 1.5.2 - 2021.02.14
15+
- [Issue 137](https://github.com/jamietre/ImageMapster/issues/137) area href empty or not specified
16+
- [Issue 170](https://github.com/jamietre/ImageMapster/issues/170) Tooltips/Highlight/Select incorrect when AREA `shape` attribute is missing or its value is non-conforming/empty
17+
- [Issue 364](https://github.com/jamietre/ImageMapster/issues/364) `Uncaught (in promise) undefined` when mouseoutDelay -1
18+
- [Issue 365](https://github.com/jamietre/ImageMapster/issues/365) Visual 'selection' cannot be removed via API when `staticState === true`
19+
- [Issue 366](https://github.com/jamietre/ImageMapster/issues/366) area w/ `staticState === false` that has been selected via API becomes unselected when clicking another area
20+
- [Issue 367](https://github.com/jamietre/ImageMapster/issues/367) `select`/`set` options not applied or not applied correctly
21+
1422
## Version 1.5.1 - 2021.01.30
1523

1624
- [Issue 362](https://github.com/jamietre/ImageMapster/issues/362) Apply width/height to hidden elements on `resize` when `duration` specified

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ A bug is a _demonstrable problem_ that is caused by the code in the repository.
1818

1919
Guidelines for bug reports:
2020

21-
0. **Lint your code** — Use [jshint](http://jshint.com/) to ensure your problem isn't caused by a simple error in your own code.
22-
21+
1. **Lint your code** — Use [eslint](http://eslint.org/) to ensure your problem isn't caused by a simple error in your own code.
2322
1. **Use the GitHub issue search** — check if the issue has already been reported.
24-
2523
1. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository.
26-
2724
1. **Isolate the problem** — ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a [live example](https://jsfiddle.net).
2825

2926
A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and OS experience the problem? Do other browsers show the bug differently? What would you expect to be the outcome? All these details will help people to fix any potential bugs.

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ Alternatively, you can include ImageMapster from one of the following CDNs:
5757
Activate all image maps on the page with default options: on mouseover areas are highlighted with a gray fill with no border, and clicking an area causes it to become selected.
5858

5959
```js
60-
$('img').mapster();
60+
$('img[usemap]').mapster();
6161
```
6262

63-
Activate image maps with some specific options.
63+
Activate all image maps on the page with some specific options.
6464

6565
```js
66-
$('img').mapster({
66+
$('img[usemap]').mapster({
6767
fillColor: 'ff0000',
6868
stroke: true,
6969
singleSelect: true
@@ -82,7 +82,7 @@ $('area').mapster('select');
8282

8383
Programatically select elements from the image map. The programmatic selection/deselection methods will not honor the staticState property.
8484

85-
**deselect**: Cause an area to become "selected"
85+
**deselect**: Cause an area to become "deselected"
8686

8787
```js
8888
$('area').mapster('deselect');
@@ -97,15 +97,15 @@ $('area').mapster('set', selected);
9797
You can also select or deselect areas using a their `mapKey`. This is an attribute on each area in your HTML that identifies it. You define a mapKey using a configuration option: `mapKey: 'data-key'`.
9898

9999
```js
100-
$('img').mapster('set', true, 'key1,key2');
100+
$('img[usemap]').mapster('set', true, 'key1,key2');
101101
```
102102

103103
If two areas share the same value for the `mapKey` they will be automatically grouped together when activated. You can also use the values of the mapKey to select areas from code.
104104

105105
You can pass options to change the rendering effects when using set as the last parameter:
106106

107107
```js
108-
$('img').mapster('set', true, 'key', { fillColor: 'ff0000' });
108+
$('img[usemap]').mapster('set', true, 'key', { fillColor: 'ff0000' });
109109
```
110110

111111
MapKeys can contain more than one value. The first value always defines groups when you mouse over. Other values can be used to create logical groups. For example:
@@ -135,10 +135,10 @@ Mousing over each state would cause just that state to be higlighted. You can al
135135

136136
```js
137137
// select all New England states
138-
$('img').mapster('set', true, 'new-england');
138+
$('#usamap').mapster('set', true, 'new-england');
139139

140140
// select just Maine, New Hampshire & Vermont
141-
$('img').mapster('set', true, 'really-cold');
141+
$('#usamap').mapster('set', true, 'really-cold');
142142
```
143143

144144
Groups created this way are _independent_ of the primary group. If you select "new-england" from code, you can't unselect just "MA" by clicking on it. You would have to unselect "new-england" from code.
@@ -158,7 +158,7 @@ ImageMapster includes several examples. To view the examples:
158158

159159
## Zepto Compatibility
160160

161-
As of ImageMapster v1.3.2, ImageMapster contains full support for Zepto v1.2.0. The latest Zepto compatible version of ImageMapster is [1.5.1](https://github.com/jamietre/ImageMapster/releases/tag/v1.5.1).
161+
As of ImageMapster v1.3.2, ImageMapster contains full support for Zepto v1.2.0. The latest Zepto compatible version of ImageMapster is [1.5.2](https://github.com/jamietre/ImageMapster/releases/tag/v1.5.2).
162162

163163
Prior to ImageMapster v1.3.2 and with any version of Zepto except v1.2.0, ImageMapster is unlikely to work as expected. In the early versions of ImageMapster, Zepto support was maintained, however due to changes in Zepto, as of v1.2.5 of ImageMapster, support for Zepto compatability was not maintained as it required too much effort and pushing ImageMapster forward with jQuery was the priority.
164164

@@ -177,8 +177,8 @@ To use ImageMapster >= v1.3.2 < 2.0.0 with Zepto v.1.2.0, Zepto must contain the
177177

178178
:warning: **_As of ImageMapster v1.3.0, if targeting ES5 browers, you must include a Promise polyfill such as [es6-promise](https://www.npmjs.com/package/es6-promise). See [Issue 341](https://github.com/jamietre/ImageMapster/issues/341) for details._**
179179

180-
1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.1) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.1
181-
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.5.1) - https://cdnjs.com/libraries/imagemapster/1.5.1
180+
1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.2) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.2
181+
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.5.2) - https://cdnjs.com/libraries/imagemapster/1.5.2
182182

183183
Use `jquery.imagemapster.zepto.min.js`
184184

@@ -194,7 +194,7 @@ Use `jquery.imagemapster.zepto.min.js`
194194
></script>
195195
<script
196196
language="text/javascript"
197-
src="/path/to/cdn/for/v1.5.1/dist/jquery.imagemapster.zepto.min.js"
197+
src="/path/to/cdn/for/v1.5.2/dist/jquery.imagemapster.zepto.min.js"
198198
></script>
199199
```
200200

@@ -207,7 +207,7 @@ Using `webpack` and `zepto-modules` as an example:
207207
#### Install from NPM
208208

209209
```sh
210-
npm install zepto-modules [email protected].1 --save
210+
npm install zepto-modules [email protected].2 --save
211211
```
212212

213213
#### src/yourzepto.js

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ImageMapster",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"homepage": "https://github.com/jamietre/ImageMapster",
55
"description": "jQuery plugin that activates areas in HTML imagemaps with support for highlighting, selecting, tooltips, resizing and more",
66
"main": "dist/jquery.imagemapster.min.js",

0 commit comments

Comments
 (0)