Skip to content

Commit 60fb531

Browse files
committed
Release v1.7.0
1 parent 7adcf6d commit 60fb531

17 files changed

+115
-89
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
- Make callback data structures consistent
1515
- Improve docs
1616

17+
## Version 1.7.0 - 2024.04.28
18+
19+
- [Issue 138](https://github.com/jamietre/ImageMapster/issues/138) 📘 Docs incorrectly state that highlighting will be disabled when staticState option is specified
20+
- [Issue 228](https://github.com/jamietre/ImageMapster/issues/228) 📘 onClick event will not fire if `clickNavigate` is set to `true`
21+
- [Issue 322](https://github.com/jamietre/ImageMapster/issues/322) 📘 Migrate website to github
22+
- [Issue 382](https://github.com/jamietre/ImageMapster/issues/382) 📘 rebind docs are not correct regarding preserving selected state
23+
- [Issue 408](https://github.com/jamietre/ImageMapster/issues/408) 🐞 navigate example pages are unresponsive
24+
- [Issue 410](https://github.com/jamietre/ImageMapster/issues/410) 🐞 grunt docco task failing with Fatal error: marked is not a function
25+
- [Issue 412](https://github.com/jamietre/ImageMapster/issues/412) ✨ Improve ability to run tests with all supported libraries & versions
26+
- [Issue 414](https://github.com/jamietre/ImageMapster/issues/414) 🐞 configTimeout not respected for value specified
27+
- [Issue 415](https://github.com/jamietre/ImageMapster/issues/415) ✨ Add ESM support
28+
- [Issue 418](https://github.com/jamietre/ImageMapster/issues/418) 🐞 fadeDuration specified in area options is not honored for tooltips
29+
1730
## Version 1.6.0 - 2024.03.12
1831

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ImageMapster activates the areas in HTML image maps so you can highlight and sel
1313

1414
## Documentation
1515

16-
Available on the [ImageMapster Website](https://jamietre.github.io/ImageMapster).
16+
See the [ImageMapster website](https://jamietre.github.io/ImageMapster) for full documentation including [how to get started](https://jamietre.github.io/ImageMapster/overview/getting-started/), [demos](https://jamietre.github.io/ImageMapster/overview/demos/), and [live examples](https://jamietre.github.io/ImageMapster/resources/live-examples/).
1717

1818
## Release Information
1919

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.6.0",
3+
"version": "1.7.0",
44
"homepage": "https://jamietre.github.io/ImageMapster",
55
"description": "jQuery plugin that activates areas in HTML image maps with support for highlighting, selecting, tooltips, resizing and more",
66
"main": "dist/jquery.imagemapster.min.js",

dist/jquery.imagemapster.js

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* imagemapster - v1.6.0 - 2024-04-05
3-
* https://github.com/jamietre/ImageMapster/
2+
* imagemapster - v1.7.0 - 2024-04-29
3+
* https://jamietre.github.io/ImageMapster
44
* Copyright (c) 2011 - 2024 James Treworgy
55
* License: MIT
66
*/
@@ -106,7 +106,7 @@
106106
(function ($) {
107107
'use strict';
108108

109-
var mapster_version = '1.6.0';
109+
var mapster_version = '1.7.0';
110110

111111
// all public functions in $.mapster.impl are methods
112112
$.fn.mapster = function (method) {
@@ -139,7 +139,8 @@
139139
includeKeys: '',
140140
altImage: null,
141141
altImageId: null, // used internally
142-
altImages: {}
142+
altImages: {},
143+
altImageOpacity: null
143144
},
144145
defaults: {
145146
clickNavigate: false,
@@ -148,7 +149,7 @@
148149
wrapCss: null,
149150
onGetList: null,
150151
sortList: false,
151-
listenToList: false,
152+
// listenToList: false, // not used - see mapdata.js line 1002
152153
mapKey: '',
153154
mapValue: '',
154155
singleSelect: false,
@@ -170,7 +171,6 @@
170171
autoResizeDelay: 0,
171172
autoResizeDuration: 0,
172173
onAutoResize: null,
173-
safeLoad: false,
174174
areas: []
175175
},
176176
shared_defaults: {
@@ -357,6 +357,9 @@
357357
isFunction: function (obj) {
358358
return typeof obj === 'function';
359359
},
360+
isNumeric: function (obj) {
361+
return !isNaN(parseFloat(obj));
362+
},
360363
// evaluates "obj", if function, calls it with args
361364
// (todo - update this to handle variable lenght/more than one arg)
362365
ifFunction: function (obj, that, args) {
@@ -571,7 +574,7 @@
571574
* invoked on an image, or an area; then queues the command if the MapData is in an active state.
572575
*
573576
* @param {[jQuery]} that The target of the invocation
574-
* @param {[function]} func_map The callback if the target is an imagemap
577+
* @param {[function]} func_map The callback if the target is an image map
575578
* @param {[function]} func_area The callback if the target is an area
576579
* @param {[object]} opt Options: { key: a map key if passed explicitly
577580
* name: the command name, if it can be queued,
@@ -1203,11 +1206,11 @@
12031206
};
12041207
return me;
12051208
})();
1206-
1209+
console.log('foo3456');
12071210
$.mapster.impl.init();
12081211
})(jQuery);
12091212

1210-
/*
1213+
/*
12111214
graphics.js
12121215
Graphics object handles all rendering.
12131216
*/
@@ -1758,17 +1761,18 @@
17581761
);
17591762
})(jQuery);
17601763

1761-
/*
1764+
/*
17621765
mapimage.js
1763-
The MapImage object, repesents an instance of a single bound imagemap
1766+
The MapImage object, repesents an instance of a single bound image map
17641767
*/
17651768

17661769
(function ($) {
17671770
'use strict';
17681771

17691772
var m = $.mapster,
17701773
u = m.utils,
1771-
ap = [];
1774+
ap = [],
1775+
configCheckInterval = 50;
17721776
/**
17731777
* An object encapsulating all the images used by a MapData.
17741778
*/
@@ -1927,7 +1931,7 @@
19271931
bind: function () {
19281932
var me = this,
19291933
promise,
1930-
triesLeft = me.owner.options.configTimeout / 200,
1934+
triesLeft = me.owner.options.configTimeout / configCheckInterval,
19311935
/* A recursive function to continue checking that the images have been
19321936
loaded until a timeout has elapsed */
19331937

@@ -1953,7 +1957,7 @@
19531957
if (triesLeft-- > 0) {
19541958
me.imgTimeout = window.setTimeout(function () {
19551959
check.call(me, true);
1956-
}, 50);
1960+
}, configCheckInterval);
19571961
} else {
19581962
me.imageLoadError.call(me);
19591963
}
@@ -2039,7 +2043,7 @@
20392043

20402044
/*
20412045
mapdata.js
2042-
The MapData object, repesents an instance of a single bound imagemap
2046+
The MapData object, repesents an instance of a single bound image map
20432047
*/
20442048

20452049
(function ($) {
@@ -2809,7 +2813,7 @@
28092813
me.wrapper = wrap;
28102814

28112815
// me.images[1] is the copy of the original image. It should be loaded & at its native size now so we can obtain the true
2812-
// width & height. This is needed to scale the imagemap if not being shown at its native size. It is also needed purely
2816+
// width & height. This is needed to scale the image map if not being shown at its native size. It is also needed purely
28132817
// to finish binding in case the original image was not visible. It can be impossible in some browsers to obtain the
28142818
// native size of a hidden image.
28152819

@@ -2900,7 +2904,7 @@
29002904
$img = $(me.image),
29012905
opts = me.options;
29022906

2903-
if (opts.onConfigured && typeof opts.onConfigured === 'function') {
2907+
if (u.isFunction(opts.onConfigured)) {
29042908
opts.onConfigured.call($img, true);
29052909
}
29062910
},
@@ -3505,7 +3509,7 @@
35053509

35063510
/**
35073511
* Compute positions that will place a target with dimensions [width,height] outside
3508-
* but near the boundaries of the elements "elements". When an imagemap is passed, the
3512+
* but near the boundaries of the elements "elements". When an image map is passed, the
35093513
*
35103514
* @param {Element|Element[]} elements An element or an array of elements (such as a jQuery object)
35113515
* @param {Element} image The image to which area elements are bound, if this is an image map.
@@ -3682,7 +3686,7 @@
36823686
};
36833687
})(jQuery);
36843688

3685-
/*
3689+
/*
36863690
scale.js
36873691
Resize and zoom functionality
36883692
Requires areacorners.js
@@ -3737,7 +3741,7 @@
37373741
/**
37383742
* Resize the image map. Only one of newWidth and newHeight should be passed to preserve scale
37393743
*
3740-
* @param {int} width The new width OR an object containing named parameters matching this function sig
3744+
* @param {int} width The new width
37413745
* @param {int} height The new height
37423746
* @param {int} effectDuration Time in ms for the resize animation, or zero for no animation
37433747
* @param {function} callback A function to invoke when the operation finishes
@@ -4073,7 +4077,7 @@
40734077
*/
40744078
})(jQuery);
40754079

4076-
/*
4080+
/*
40774081
tooltip.js
40784082
Tooltip functionality
40794083
Requires areacorners.js
@@ -4348,7 +4352,7 @@
43484352
options.fadeDuration =
43494353
options.fadeDuration ||
43504354
(md.options.toolTipFade
4351-
? md.options.fadeDuration || areaOpts.fadeDuration
4355+
? u.isNumeric(areaOpts.fadeDuration) ? areaOpts.fadeDuration : md.options.fadeDuration
43524356
: 0);
43534357

43544358
target = ad.area

dist/jquery.imagemapster.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.imagemapster.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.imagemapster.min.mjs

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

dist/jquery.imagemapster.min.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)