You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@
11
11
- Migrate to modern testframework
12
12
- Update website and host on Github
13
13
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
+
14
22
## Version 1.5.1 - 2021.01.30
15
23
16
24
-[Issue 362](https://github.com/jamietre/ImageMapster/issues/362) Apply width/height to hidden elements on `resize` when `duration` specified
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,9 @@ A bug is a _demonstrable problem_ that is caused by the code in the repository.
18
18
19
19
Guidelines for bug reports:
20
20
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.
23
22
1.**Use the GitHub issue search**— check if the issue has already been reported.
24
-
25
23
1.**Check if the issue has been fixed**— try to reproduce it using the latest `master` or development branch in the repository.
26
-
27
24
1.**Isolate the problem**— ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a [live example](https://jsfiddle.net).
28
25
29
26
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.
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,13 @@ Alternatively, you can include ImageMapster from one of the following CDNs:
57
57
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.
58
58
59
59
```js
60
-
$('img').mapster();
60
+
$('img[usemap]').mapster();
61
61
```
62
62
63
-
Activate image maps with some specific options.
63
+
Activate all image maps on the page with some specific options.
64
64
65
65
```js
66
-
$('img').mapster({
66
+
$('img[usemap]').mapster({
67
67
fillColor:'ff0000',
68
68
stroke:true,
69
69
singleSelect:true
@@ -82,7 +82,7 @@ $('area').mapster('select');
82
82
83
83
Programatically select elements from the image map. The programmatic selection/deselection methods will not honor the staticState property.
84
84
85
-
**deselect**: Cause an area to become "selected"
85
+
**deselect**: Cause an area to become "deselected"
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'`.
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.
104
104
105
105
You can pass options to change the rendering effects when using set as the last parameter:
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
135
135
136
136
```js
137
137
// select all New England states
138
-
$('img').mapster('set', true, 'new-england');
138
+
$('#usamap').mapster('set', true, 'new-england');
139
139
140
140
// select just Maine, New Hampshire & Vermont
141
-
$('img').mapster('set', true, 'really-cold');
141
+
$('#usamap').mapster('set', true, 'really-cold');
142
142
```
143
143
144
144
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:
158
158
159
159
## Zepto Compatibility
160
160
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).
162
162
163
163
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.
164
164
@@ -177,8 +177,8 @@ To use ImageMapster >= v1.3.2 < 2.0.0 with Zepto v.1.2.0, Zepto must contain the
177
177
178
178
: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._**
0 commit comments