Skip to content

Commit

Permalink
Release v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
techfg committed Mar 13, 2024
1 parent b7bc69b commit 05db123
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 38 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
- Make callback data structures consistent
- Improve docs

## Version 1.6.0 - 2024.03.12
- [Issue 394](https://github.com/jamietre/ImageMapster/issues/394) [TouchScreen only] Weird highlight glitch when touch on the other area beside the map.

## Version 1.5.4 - 2021.02.20
- [Issue 83](https://github.com/jamietre/ImageMapster/issues/83) Fix boundlist sync with selected state
- [Issue 377](https://github.com/jamietre/ImageMapster/issues/377) onConfigured not called after rebind
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ ImageMapster includes several examples. To view the examples:

## Zepto Compatibility

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.4](https://github.com/jamietre/ImageMapster/releases/tag/v1.5.4).
As of ImageMapster v1.3.2, ImageMapster contains full support for Zepto v1.2.0. The latest Zepto compatible version of ImageMapster is [1.6.0](https://github.com/jamietre/ImageMapster/releases/tag/v1.6.0).

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.

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

: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._**

1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.4) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.5.4
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.5.4) - https://cdnjs.com/libraries/imagemapster/1.5.4
1. [jsDelivr](https://www.jsdelivr.com/package/npm/imagemapster?version=1.6.0) - https://www.jsdelivr.com/package/npm/imagemapster?version=1.6.0
2. [cdnjs](https://cdnjs.com/libraries/imagemapster/1.6.0) - https://cdnjs.com/libraries/imagemapster/1.6.0

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

Expand All @@ -194,7 +194,7 @@ Use `jquery.imagemapster.zepto.min.js`
></script>
<script
language="text/javascript"
src="/path/to/cdn/for/v1.5.4/dist/jquery.imagemapster.zepto.min.js"
src="/path/to/cdn/for/v1.6.0/dist/jquery.imagemapster.zepto.min.js"
></script>
```

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

```sh
npm install zepto-modules imagemapster@1.5.4 --save
npm install zepto-modules imagemapster@1.6.0 --save
```

#### src/yourzepto.js
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ImageMapster",
"version": "1.5.4",
"version": "1.6.0",
"homepage": "https://github.com/jamietre/ImageMapster",
"description": "jQuery plugin that activates areas in HTML imagemaps with support for highlighting, selecting, tooltips, resizing and more",
"main": "dist/jquery.imagemapster.min.js",
Expand Down
19 changes: 9 additions & 10 deletions dist/jquery.imagemapster.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* imagemapster - v1.5.4 - 2021-02-20
* imagemapster - v1.6.0 - 2024-03-12
* https://github.com/jamietre/ImageMapster/
* Copyright (c) 2011 - 2021 James Treworgy
* Copyright (c) 2011 - 2024 James Treworgy
* License: MIT
*/
(function (factory) {
Expand Down Expand Up @@ -31,7 +31,7 @@
factory(jQuery);
}
}(function (jQuery) {
/*
/*
jqueryextensions.js
Extend/intercept jquery behavior
*/
Expand Down Expand Up @@ -66,23 +66,22 @@
// https://github.com/jquery/jquery/issues/2871#issuecomment-175175180
// https://jsbin.com/bupesajoza/edit?html,js,output
var setupListener = function (ns, type, listener) {
if (ns.includes('noPreventDefault')) {
window.addEventListener(type, listener, { passive: true });
if (ns.includes('mapster') && ns.includes('noPreventDefault')) {
this.addEventListener(type, listener, { passive: true });
} else {
console.warn('non-passive events - listener not added');
return false;
}
};

// special events for noPreventDefault
// special events for mapster.noPreventDefault
$.event.special.touchstart = {
setup: function (_, ns, listener) {
return setupListener(ns, 'touchstart', listener);
return setupListener.call(this, ns, 'touchstart', listener);
}
};
$.event.special.touchend = {
setup: function (_, ns, listener) {
return setupListener(ns, 'touchend', listener);
return setupListener.call(this, ns, 'touchend', listener);
}
};
}
Expand All @@ -107,7 +106,7 @@
(function ($) {
'use strict';

var mapster_version = '1.5.4';
var mapster_version = '1.6.0';

// all public functions in $.mapster.impl are methods
$.fn.mapster = function (method) {
Expand Down
7 changes: 3 additions & 4 deletions dist/jquery.imagemapster.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.imagemapster.min.js.map

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions dist/jquery.imagemapster.zepto.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* imagemapster - v1.5.4 - 2021-02-20
* imagemapster - v1.6.0 - 2024-03-12
* https://github.com/jamietre/ImageMapster/
* Copyright (c) 2011 - 2021 James Treworgy
* Copyright (c) 2011 - 2024 James Treworgy
* License: MIT
*/
(function (root, factory) {
Expand Down Expand Up @@ -57,7 +57,7 @@
});
})(jQuery);

/*
/*
jqueryextensions.js
Extend/intercept jquery behavior
*/
Expand Down Expand Up @@ -92,23 +92,22 @@
// https://github.com/jquery/jquery/issues/2871#issuecomment-175175180
// https://jsbin.com/bupesajoza/edit?html,js,output
var setupListener = function (ns, type, listener) {
if (ns.includes('noPreventDefault')) {
window.addEventListener(type, listener, { passive: true });
if (ns.includes('mapster') && ns.includes('noPreventDefault')) {
this.addEventListener(type, listener, { passive: true });
} else {
console.warn('non-passive events - listener not added');
return false;
}
};

// special events for noPreventDefault
// special events for mapster.noPreventDefault
$.event.special.touchstart = {
setup: function (_, ns, listener) {
return setupListener(ns, 'touchstart', listener);
return setupListener.call(this, ns, 'touchstart', listener);
}
};
$.event.special.touchend = {
setup: function (_, ns, listener) {
return setupListener(ns, 'touchend', listener);
return setupListener.call(this, ns, 'touchend', listener);
}
};
}
Expand All @@ -133,7 +132,7 @@
(function ($) {
'use strict';

var mapster_version = '1.5.4';
var mapster_version = '1.6.0';

// all public functions in $.mapster.impl are methods
$.fn.mapster = function (method) {
Expand Down
7 changes: 3 additions & 4 deletions dist/jquery.imagemapster.zepto.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.imagemapster.zepto.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imagemapster",
"version": "1.5.4",
"version": "1.6.0",
"description": "jQuery plugin that activates areas in HTML imagemaps with support for highlighting, selecting, tooltips, resizing and more",
"main": "dist/jquery.imagemapster.min.js",
"files": [
Expand Down

0 comments on commit 05db123

Please sign in to comment.