Skip to content

Commit

Permalink
Merge pull request #315 from techfg/modernize
Browse files Browse the repository at this point in the history
Resolves #311, #312, #313, #314, #316 & #317
  • Loading branch information
techfg authored Jan 10, 2021
2 parents 296523b + 1210ebe commit a971464
Show file tree
Hide file tree
Showing 22 changed files with 9,272 additions and 10,778 deletions.
90 changes: 55 additions & 35 deletions CHANGES.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,62 @@
####Version 1.3.0 (planned)
# Changelog

Features:
## Roadmap

* Return promises from asynchronous events rather than requiring callbacks like "onConfigured"
* Return a non-jQuery object exposing the imagemapster API to simplify coding against it

####Version 1.2.14 (unreleased)

* Enable mouseover events when touchscreen found (to account for proliferation of machines with mouse pointer + touchscreen)
* TODO - detect input device actively to determine when highlight effect should be enabled

####Version 1.2.13
* Detect input device actively to determine when highlight effect should be enabled
* Rewrite in Typescript
* Create React component
* Migrate to modern testframework
* Update website and host on Github

## Version 2.0.0 (planned)
* Update to conform with jQuery 3.5.1 (latest release)
* Add NPM support
* Improve build system
* Improve _target for AREA elements with href
* Fix Passive Event Listeners for touchstart/touchend

## Version 1.2.14 - 2021.01.06

* [Issue 148](https://github.com/jamietre/ImageMapster/issues/148) Enable mouseover events when touchscreen found
* [PR 248](https://github.com/jamietre/ImageMapster/pull/248) Add touchstart/touchend support
* [Issue 284](https://github.com/jamietre/ImageMapster/issues/284) Fix size not a function as of jQuery 3.0
* [PR 263](https://github.com/jamietre/ImageMapster/pull/263) Fix EDGE issue when no map data found
* [Issue 311](https://github.com/jamietre/ImageMapster/issues/311) Update /dist with latest code
* [Issue 312](https://github.com/jamietre/ImageMapster/issues/312) Fix tests
* [Issue 313](https://github.com/jamietre/ImageMapster/issues/313) Fix events not be cleared
* [Issue 314](https://github.com/jamietre/ImageMapster/issues/314) Eliminate when.js dependency from distribution
* [Issue 316](https://github.com/jamietre/ImageMapster/issues/316) Fix AltImage
* [Issue 317](https://github.com/jamietre/ImageMapster/issues/317) Fix USA Example

## Version 1.2.13

* Fix problem with mouseoutdelay=01

####Version 1.2.12
## Version 1.2.12

* Fix issue with $.inArray on IE8
* Fix problem with boundList when using "set" to toggle a multiple areas at once (from 1.2.11 issue - not quite fixed)

####Version 1.2.11
## Version 1.2.11

* Fix problem de-selecting boundlist when using "set" to toggle

####Version 1.2.10
## Version 1.2.10

* [Issue 120](https://github.com/jamietre/ImageMapster/issues/114) 1.2.9 broke IE9

####Version 1.2.9
## Version 1.2.9

* [Issue 114](https://github.com/jamietre/ImageMapster/issues/114) Fix jQuery 1.9 compatibility problem

####version 1.2.8
## Version 1.2.8

* [Issue 108](https://github.com/jamietre/ImageMapster/issues/108) Opacity of tooltip container not preserved
* [Issue 107](https://github.com/jamietre/ImageMapster/issues/107) mouseoutDelay broken

####version 1.2.7
## Version 1.2.7

* [Issue 95](https://github.com/jamietre/ImageMapster/issues/95) SingleSelect broken in 1.2.6.099
* [Issue 87](https://github.com/jamietre/ImageMapster/issues/87) Resize callback not working
Expand Down Expand Up @@ -72,14 +92,14 @@ then:
The aliases can also be used in the initial configuration options, both globally and for specific areas.


####version 1.2.6 - 2012.07.13
## Version 1.2.6 - 2012.07.13

Bug Fixes:

* [Issue #69](https://github.com/jamietre/ImageMapster/issues/69) `fill` setting not being honored sometimes in IE6-8
* [Issue #68](https://github.com/jamietre/ImageMapster/issues/68) Accept `areas` array with dangling commas

####version 1.2.5 - 2012.06.19
## Version 1.2.5 - 2012.06.19



Expand Down Expand Up @@ -118,27 +138,27 @@ each map instance completely, problem solved.
* Fix canvases re-ordered after first selection making effect sometimes inconsistent
* Fix resize bug when area groups are used

####version 1.2.4 - 2011.09.27
## Version 1.2.4 - 2011.09.27

* [Issue #14](https://github.com/jamietre/ImageMapster/issues/14) Resize bug in IE <9 fixed

####version 1.2.3
## Version 1.2.3

* Resize with multiple images affecting other images - fixed

####version 1.2.2 - 2011.09.22
## Version 1.2.2 - 2011.09.22

* masks not working in Firefox 6.0 only. behavior of context.globalCompositeOperation='source-out' and
save/restore somehow changed in ff6. updated code to not depend (possibly) on idiosyncracies of chrome
and ie9. honestly not sure why it worked before as it appears I may have been doing something wrong,
but the code is more explicit now and it works across all browsers.

####version 1.2.1
## Version 1.2.1

* Click callback "this" is not set - fixed
* Replace u.isFunction with $.isFunction to save a few bytes

####version 1.2
## Version 1.2

* fixed fader problem for old IE (again, really this time)
* allow selecting includeKeys areas from staticState areas
Expand All @@ -154,7 +174,7 @@ each map instance completely, problem solved.
* fix css flickering when debinding/rebinding in HTML5 browsers
* add "scaleMap" option to automatically resize image maps when a bound image is resized dynamically. Enabled by default if an image is displayed at a size other than its native size.

####version 1.1.3
## Version 1.1.3

* revised "highlight" method API (previously undocumented). Added tests & documented.
* added a generic prototype for parsing method data to improve consistency & stability
Expand All @@ -173,11 +193,11 @@ each map instance completely, problem solved.
* remove map data when unbinding+preserveState -- it should act as if not there
* IE performance improvements (optimizing rendering code a little bit)

####version 1.1.2 - 2011.06-15
## Version 1.1.2 - 2011.06-15

* minor bugfix release

####version 1.1.1 - 2011.06.03
## Version 1.1.1 - 2011.06.03

* Performance improvement: cache area groups on map binding to eliminate need for attribute selector
* Significant enhancement to permit complex area grouping and area exclusions (masks):
Expand All @@ -190,7 +210,7 @@ each map instance completely, problem solved.
* bugfix: ignore areas with no mapkey when it is provided
* bugfix: not binding properly when no mapkey provided

####version 1.1
## Version 1.1

* added: per-action options (highlight, select)
* fixed some memory leaks
Expand All @@ -203,14 +223,14 @@ each map instance completely, problem solved.
* fixed problems with cleanup (not removing wrap)
* added failure timeout for configure

####Version 1.0.10 - 2011.05.12
## Version 1.0.10 - 2011.05.12

* ignore errors when binding mapster to invalid elements
* minor performance improvements
* fixed command queue problem (broke in 1.0.9) for commands issued after bind, but before image is ready
* enhanced tests

####version 1.0.9 - 2011.05.10
## Version 1.0.9 - 2011.05.10

* added "unbind" option to remove mapster from an image
* add 'options' option
Expand All @@ -221,40 +241,40 @@ each map instance completely, problem solved.
* add unbind options
* clear command queue after processing

####version 1.0.8 - 2011.05.05
## Version 1.0.8 - 2011.05.05

* Handle problem when "img.complete" is not true at config time and "set" commands are issued after initial config call but before config is complete. Queue any "set" commands and process them after the timer callback.
* Pass listTarget to onClick callback even when !isSelectable (previously passed null)
* Pass ref to toolTip element on callback
* Don't show tooltip again if the one for an area is already displayed
* Add singleSelect option - clears any other selected item when a new item is selected

####Version 1.0.6 - 2011.04.27
## Version 1.0.6 - 2011.04.27

* Problem when not using mapKey
* staticState=false not working

####Version 1.0.5 - 2011.04.26
## Version 1.0.5 - 2011.04.26

* Corrected jquery attribute selector (not using quote marks)
* added area persistence behavior options
* tooltips not working in Firefox - bug in area data management. Deprecated use of jquery.data for passing area-specific options, added "areas" option to replace
* fixed "showToolTip" default property name (was showToolTips) - should have had no effect

####Version 1.0.4 - 2011.04.20
## Version 1.0.4 - 2011.04.20

* allow using jQuery object for toolTip text
* happy earth day

####Version 1.0.3
## Version 1.0.3

* missing preventDefault on click (post refactor issue)

####Version 1.0.2
## Version 1.0.2

* fixed tooltip in IE6

####Version 1.0.0 - 2011.04.19 - **first official release**
## Version 1.0.0 - 2011.04.19 - **first official release**

* refactored from remaining old to use a clean namespace
* added simple mouseover dialog
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ImageMapster activates the areas in HTML imagemaps so you can highlight and sele

### Release Information

See the [change log](https://github.com/jamietre/ImageMapster/blob/master/CHANGES.md) for details on the current release.
See the [change log](https://github.com/jamietre/ImageMapster/blob/master/CHANGELOG.md) for details on the current release.

Read the [release notes](http://blog.outsharked.com/2012/06/imagemapster-125-released.html) for 1.2.5, the last significant update.

Expand Down Expand Up @@ -122,6 +122,8 @@ The source code is broken into several modules to make management easier and to
### Code use license.

LICENSE (MIT License)

Copyright (c) 2011-2021 James Treworgy

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand All @@ -140,4 +142,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 0 additions & 2 deletions build/rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ MAPSTER_PKG = File.join(MAPSTER_ROOT, '../pkg')

MAPSTER_COMPONENTS = [
'license',
'redist/when',
'core',
'graphics',
'mapimage',
Expand All @@ -25,7 +24,6 @@ MAPSTER_COMPONENTS = [
MAPSTER_ZEPTO_COMPONENTS = [
'license',
'zepto',
'redist/when',
'core',
'graphics',
'mapdata',
Expand Down
Loading

0 comments on commit a971464

Please sign in to comment.