From e483d5f43c15ffcd473def2d518b4391e091f9e7 Mon Sep 17 00:00:00 2001 From: Travis Clarke Date: Thu, 18 Oct 2018 23:36:32 -0700 Subject: [PATCH] rebuild --- dist/image-map.es.js | 2 +- dist/image-map.js | 2 +- dist/image-map.min.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/image-map.es.js b/dist/image-map.es.js index fd64c6c..19cdb10 100644 --- a/dist/image-map.es.js +++ b/dist/image-map.es.js @@ -50,7 +50,7 @@ function _nonIterableSpread() { } var name = "image-map"; -var version = "1.1.1"; +var version = "1.1.2"; var description = "Response, dynamic image maps"; var main = "dist/image-map.js"; var module$1 = "dist/image-map.es.js"; diff --git a/dist/image-map.js b/dist/image-map.js index cbc5aa7..494eb02 100644 --- a/dist/image-map.js +++ b/dist/image-map.js @@ -56,7 +56,7 @@ } var name = "image-map"; - var version = "1.1.1"; + var version = "1.1.2"; var description = "Response, dynamic image maps"; var main = "dist/image-map.js"; var module$1 = "dist/image-map.es.js"; diff --git a/dist/image-map.min.js b/dist/image-map.min.js index 59bfa06..d0de311 100644 --- a/dist/image-map.min.js +++ b/dist/image-map.min.js @@ -5,4 +5,4 @@ * LICENSE file in the root directory of this source tree. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):e.ImageMap=t(e.$)}(this,function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var o=arguments.length,i=Array(o),a=0;a0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r){var i=r.target.width,a=r.target.height,u=t/100,c=n/100,f=r.target.getAttribute("usemap").replace(/^#/,"") -;o(document.querySelectorAll(e.genAreaSelector(f))).forEach(function(e){var t=e.dataset.coords=e.dataset.coords||e.getAttribute("coords"),n=t.split(",");e.setAttribute("coords",""+n.map(function(e,t){return t%2==0?+(n[t]/i*100*u):+(n[t]/a*100*c)}))})}}}],[{key:"genAreaSelector",value:function(e){return'map[name="'.concat(e,'"] area')}}]),e}();return void 0!==e&&e.fn&&(e.fn.imageMap=function(e){return new l(this.toArray(),e)}),c.VERSION="1.1.1",c}); \ No newline at end of file +;o(document.querySelectorAll(e.genAreaSelector(f))).forEach(function(e){var t=e.dataset.coords=e.dataset.coords||e.getAttribute("coords"),n=t.split(",");e.setAttribute("coords",""+n.map(function(e,t){return t%2==0?+(n[t]/i*100*u):+(n[t]/a*100*c)}))})}}}],[{key:"genAreaSelector",value:function(e){return'map[name="'.concat(e,'"] area')}}]),e}();return void 0!==e&&e.fn&&(e.fn.imageMap=function(e){return new l(this.toArray(),e)}),c.VERSION="1.1.2",c}); \ No newline at end of file