From 1b4893aca589ff1cf3746c27d9fe51a0edecb37a Mon Sep 17 00:00:00 2001 From: viskin Date: Mon, 24 May 2021 10:50:00 +0300 Subject: [PATCH] bumped version --- bower.json | 74 +++++++++++++-------------- dist/MarkerWithGhost.min.js | 4 +- dist/MarkerWithGhost.min.js.map | 2 +- dist/SlidingMarker.min.js | 4 +- dist/SlidingMarker.min.js.map | 2 +- package.json | 90 ++++++++++++++++----------------- 6 files changed, 88 insertions(+), 88 deletions(-) diff --git a/bower.json b/bower.json index a043540..b3590fb 100644 --- a/bower.json +++ b/bower.json @@ -1,38 +1,38 @@ -{ - "name": "marker-animate-unobtrusive", - "main": "SlidingMarker.js", - "version": "0.2.8", - "description": "Unobtrusive Google Maps animated marker", - - "homepage": "https://github.com/terikon/marker-animate-unobtrusive", - "authors": [ - { "name": "Terikon Apps", "email": "npm@terikon.com", "homepage": "http://il.linkedin.com/in/romanviskin" } - ], - - "moduleType": [ - "amd", - "globals" - ], - - "repository": { - "type": "git", - "url": "https://github.com/terikon/marker-animate-unobtrusive.git" - }, - - "keywords": [ - "Google Maps", - "marker", - "marker animation", - "SlidingMarker" - ], - - "license": "MIT", - - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "tests" - ] - +{ + "name": "marker-animate-unobtrusive", + "main": "SlidingMarker.js", + "version": "0.2.9", + "description": "Unobtrusive Google Maps animated marker", + + "homepage": "https://github.com/terikon/marker-animate-unobtrusive", + "authors": [ + { "name": "Terikon Apps", "email": "npm@terikon.com", "homepage": "http://il.linkedin.com/in/romanviskin" } + ], + + "moduleType": [ + "amd", + "globals" + ], + + "repository": { + "type": "git", + "url": "https://github.com/terikon/marker-animate-unobtrusive.git" + }, + + "keywords": [ + "Google Maps", + "marker", + "marker animation", + "SlidingMarker" + ], + + "license": "MIT", + + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "tests" + ] + } \ No newline at end of file diff --git a/dist/MarkerWithGhost.min.js b/dist/MarkerWithGhost.min.js index c672c4d..ab215da 100644 --- a/dist/MarkerWithGhost.min.js +++ b/dist/MarkerWithGhost.min.js @@ -1,4 +1,4 @@ -/* MarkerWithGhost v0.2.8 19-02-2016 (C) 2015 Terikon Apps */ +/* MarkerWithGhost v0.2.8 24-05-2021 (C) 2015 Terikon Apps */ -!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["jquery","SlidingMarker"],b.bind(null,a)):"undefined"!=typeof module&&null!==module&&null!=module.exports?module.exports=b(a,require("jquery"),require("SlidingMarker")):a.MarkerWithGhost=b(a,a.jQuery,a.SlidingMarker)}(this,function(a,b,c){"use strict";b=b||{},b.extend=b.extend||function f(a){return Array.prototype.slice.call(arguments,1).forEach(function(b){if(b)for(var c in b)b[c]&&b[c].constructor===Object?a[c]&&a[c].constructor!==Object?a[c]=b[c]:(a[c]=a[c]||{},f(a[c],b[c])):a[c]=b[c]}),a};var d=function(a,b){function c(){}c.prototype=b.prototype,a.superClass_=b.prototype,a.prototype=new c,a.prototype.constructor=a},e=function(a){this.ghostPosition=null,this.ghostAnimationPosition=null,c.call(this,a),this.bindTo("ghostPosition",this,"position"),this.bindTo("ghostAnimationPosition",this._instance,"position")};return d(e,c),b.extend(e.prototype,{_isGhost:!1,set:function(a,b){if("position"===a)this._turnGhostModeOff();else if("ghostPosition"===a)return this._turnGhostModeOn(),this.originalSet("ghostPosition",b),void c.prototype._setInstancePositionAnimated.call(this,b);c.prototype.set.apply(this,arguments)},_rebindEventListener:null,_turnGhostModeOn:function(){this._isGhost||(this._rebindEventListener||(google.maps.event.removeListener(this._rebindEventListener),this._rebindEventListener=null),this.unbind("animationPosition"),this.unbind("ghostPosition"),this._isGhost=!0)},_turnGhostModeOff:function(){var a=this;this._isGhost&&(this._rebindEventListener=google.maps.event.addListener(this._instance,"position_changed",function(){a.getPosition()===a._instance.getPosition()&&(a.bindTo("animationPosition",a._instance,"position"),google.maps.event.removeListener(a._rebindEventListener),a._rebindEventListener=null)}),this.bindTo("ghostPosition",this,"position"),this._isGhost=!1)},getGhostPosition:function(){return this.get("ghostPosition")},setGhostPosition:function(a){this.set("ghostPosition",a)},getGhostAnimationPosition:function(){return this.get("ghostAnimationPosition")},position_changed:function(){this._turnGhostModeOff(),c.prototype.position_changed.apply(this,arguments)}}),e.initializeGlobally=function(){google.maps.Marker=e},e}); +!function(t,i){"use strict";"function"==typeof define&&define.amd?define(["jquery","SlidingMarker"],i.bind(null,t)):"undefined"!=typeof module&&null!==module&&null!=module.exports?module.exports=i(0,require("jquery"),require("SlidingMarker")):t.MarkerWithGhost=i(0,t.jQuery,t.SlidingMarker)}(this,function(t,i,n){"use strict";(i=i||{}).extend=i.extend||function n(o){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t)for(var i in t)!t[i]||t[i].constructor!==Object||o[i]&&o[i].constructor!==Object?o[i]=t[i]:(o[i]=o[i]||{},n(o[i],t[i]))}),o};function o(t){this.ghostPosition=null,this.ghostAnimationPosition=null,n.call(this,t),this.bindTo("ghostPosition",this,"position"),this.bindTo("ghostAnimationPosition",this._instance,"position")}var e,s;function r(){}return e=o,r.prototype=(s=n).prototype,e.superClass_=s.prototype,e.prototype=new r,e.prototype.constructor=e,i.extend(o.prototype,{_isGhost:!1,set:function(t,i){if("position"===t)this._turnGhostModeOff();else if("ghostPosition"===t)return this._turnGhostModeOn(),this.originalSet("ghostPosition",i),void n.prototype._setInstancePositionAnimated.call(this,i);n.prototype.set.apply(this,arguments)},_rebindEventListener:null,_turnGhostModeOn:function(){this._isGhost||(this._rebindEventListener||(google.maps.event.removeListener(this._rebindEventListener),this._rebindEventListener=null),this.unbind("animationPosition"),this.unbind("ghostPosition"),this._isGhost=!0)},_turnGhostModeOff:function(){var t=this;this._isGhost&&(this._rebindEventListener=google.maps.event.addListener(this._instance,"position_changed",function(){t.getPosition()===t._instance.getPosition()&&(t.bindTo("animationPosition",t._instance,"position"),google.maps.event.removeListener(t._rebindEventListener),t._rebindEventListener=null)}),this.bindTo("ghostPosition",this,"position"),this._isGhost=!1)},getGhostPosition:function(){return this.get("ghostPosition")},setGhostPosition:function(t){this.set("ghostPosition",t)},getGhostAnimationPosition:function(){return this.get("ghostAnimationPosition")},position_changed:function(){this._turnGhostModeOff(),n.prototype.position_changed.apply(this,arguments)}}),o.initializeGlobally=function(){google.maps.Marker=o},o}); //# sourceMappingURL=MarkerWithGhost.min.js.map \ No newline at end of file diff --git a/dist/MarkerWithGhost.min.js.map b/dist/MarkerWithGhost.min.js.map index bfecefd..03982b9 100644 --- a/dist/MarkerWithGhost.min.js.map +++ b/dist/MarkerWithGhost.min.js.map @@ -1 +1 @@ -{"version":3,"file":"MarkerWithGhost.min.js","sources":["../MarkerWithGhost.js"],"names":["root","factory","define","amd","bind","module","exports","require","MarkerWithGhost","jQuery","SlidingMarker","this","$","extend","obj","Array","prototype","slice","call","arguments","forEach","source","prop","constructor","Object","inherits","childCtor","parentCtor","TempCtor","superClass_","opt_options","ghostPosition","ghostAnimationPosition","bindTo","_instance","_isGhost","set","key","value","_turnGhostModeOff","_turnGhostModeOn","originalSet","_setInstancePositionAnimated","apply","_rebindEventListener","google","maps","event","removeListener","unbind","that","addListener","getPosition","getGhostPosition","get","setGhostPosition","getGhostAnimationPosition","position_changed","initializeGlobally","Marker"],"mappings":";;CAEC,SAAUA,EAAMC,GACb,YACsB,mBAAXC,SAAyBA,OAAOC,IAEvCD,QAAQ,SAAU,iBAAkBD,EAAQG,KAAK,KAAMJ,IAC9B,mBAAXK,SAAqC,OAAXA,QAAqC,MAAlBA,OAAOC,QAElED,OAAOC,QAAUL,EAAQD,EAAMO,QAAQ,UAAWA,QAAQ,kBAG1DP,EAAKQ,gBAAkBP,EAAQD,EAAMA,EAAKS,OAAQT,EAAKU,gBAE7DC,KACE,SAAUX,EAAMY,EAAGF,GACf,YAGAE,GAAIA,MACJA,EAAEC,OAASD,EAAEC,QAAU,QAASA,GAAOC,GAkBnC,MAhBAC,OAAMC,UAAUC,MAAMC,KAAKC,UAAW,GAAGC,QAAQ,SAAUC,GACvD,GAAIA,EACA,IAAK,G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YxC,KAAKuB,UAAW,mBAAoB,WACtFgB,EAAKE,gBAAkBF,EAAKhB,UAAUkB,gBAEtCF,EAAKjB,OAAO,oBAAqBiB,EAAKhB,UAAW,YAEjDW,OAAOC,KAAKC,MAAMC,eAAeE,EAAKN,sBACtCM,EAAKN,qBAAuB,QAIpCjC,KAAKsB,OAAO,gBAAiBtB,KAAM,YAEnCA,KAAKwB,UAAW,IAIxBkB,iBAAkB,WACd,MAAO1C,MAAK2C,IAAI,kBAGpBC,iBAAkB,SAAUxB,GACxBpB,KAAKyB,IAAI,gBAAiBL,IAG9ByB,0BAA2B,WACvB,MAAO7C,MAAK2C,IAAI,2BAIpBG,iBAAkB,WACd9C,KAAK4B,oBACL7B,EAAcM,UAAUyC,iBAAiBd,MAAMhC,KAAMQ,cAK7DX,EAAgBkD,mBAAqB,WACjCb,OAAOC,KAAKa,OAASnD,GAGlBA"} \ No newline at end of file +{"version":3,"file":"MarkerWithGhost.min.js","sources":["../MarkerWithGhost.js"],"names":["root","factory","define","amd","bind","module","exports","require","MarkerWithGhost","jQuery","SlidingMarker","this","$","extend","obj","Array","prototype","slice","call","arguments","forEach","source","prop","constructor","Object","opt_options","ghostPosition","ghostAnimationPosition","bindTo","_instance","childCtor","parentCtor","TempCtor","superClass_","_isGhost","set","key","value","_turnGhostModeOff","_turnGhostModeOn","originalSet","_setInstancePositionAnimated","apply","_rebindEventListener","google","maps","event","removeListener","unbind","that","addListener","getPosition","getGhostPosition","get","setGhostPosition","getGhostAnimationPosition","position_changed","initializeGlobally","Marker"],"mappings":";;CAEC,SAAUA,EAAMC,gBAES,mBAAXC,QAAyBA,OAAOC,IAEvCD,OAAO,CAAC,SAAU,iBAAkBD,EAAQG,KAAK,KAAMJ,IAC9B,oBAAXK,QAAqC,OAAXA,QAAqC,MAAlBA,OAAOC,QAElED,OAAOC,QAAUL,EAAQD,EAAMO,QAAQ,UAAWA,QAAQ,kBAG1DP,EAAKQ,gBAAkBP,EAAQD,EAAMA,EAAKS,OA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,qBAAuB,MAGhChC,KAAKqC,OAAO,qBACZrC,KAAKqC,OAAO,iBAEZrC,KAAKuB,UAAW,IAIxBI,kBAAmB,WACf,IAAIW,EAAOtC,KAEPA,KAAKuB,WAGLvB,KAAKgC,qBAAuBC,OAAOC,KAAKC,MAAMI,YAAYvC,KAAKkB,UAAW,mBAAoB,WACtFoB,EAAKE,gBAAkBF,EAAKpB,UAAUsB,gBAEtCF,EAAKrB,OAAO,oBAAqBqB,EAAKpB,UAAW,YAEjDe,OAAOC,KAAKC,MAAMC,eAAeE,EAAKN,sBACtCM,EAAKN,qBAAuB,QAIpChC,KAAKiB,OAAO,gBAAiBjB,KAAM,YAEnCA,KAAKuB,UAAW,IAIxBkB,iBAAkB,WACd,OAAOzC,KAAK0C,IAAI,kBAGpBC,iBAAkB,SAAU5B,GACxBf,KAAKwB,IAAI,gBAAiBT,IAG9B6B,0BAA2B,WACvB,OAAO5C,KAAK0C,IAAI,2BAIpBG,iBAAkB,WACd7C,KAAK2B,oBACL5B,EAAcM,UAAUwC,iBAAiBd,MAAM/B,KAAMQ,cAK7DX,EAAgBiD,mBAAqB,WACjCb,OAAOC,KAAKa,OAASlD,GAGlBA"} \ No newline at end of file diff --git a/dist/SlidingMarker.min.js b/dist/SlidingMarker.min.js index 957cf59..f7f0563 100644 --- a/dist/SlidingMarker.min.js +++ b/dist/SlidingMarker.min.js @@ -1,4 +1,4 @@ -/* SlidingMarker v0.2.8 19-02-2016 (C) 2015 Terikon Apps */ +/* SlidingMarker v0.2.8 24-05-2021 (C) 2015 Terikon Apps */ -!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["jquery","marker-animate"],b.bind(null,a)):"undefined"!=typeof module&&null!==module&&null!=module.exports?module.exports=b(a,require("jquery"),require("marker-animate")):a.SlidingMarker=b(a,a.jQuery)}(this,function(a,b){"use strict";b=b||{},b.extend=b.extend||function m(a){return Array.prototype.slice.call(arguments,1).forEach(function(b){if(b)for(var c in b)b[c]&&b[c].constructor===Object?a[c]&&a[c].constructor!==Object?a[c]=b[c]:(a[c]=a[c]||{},m(a[c],b[c])):a[c]=b[c]}),a};var c,d=google.maps.Marker,e=function(a,b,c){return null===a||void 0===a?void(window.cancelAnimationFrame?window.cancelAnimationFrame(this.AT_animationHandler):clearTimeout(this.AT_animationHandler)):void google.maps.Marker.prototype.animateTo.apply(this,arguments)},f={easing:"easeInOutQuint",duration:1e3,animateFunctionAdapter:function(a,b,d,f){if(!c){if(!google.maps.Marker.prototype.animateTo)throw new Error("Please either reference markerAnimate.js, or provide an alternative animateFunctionAdapter");c=e}c.call(a,b,{easing:d,duration:f,complete:function(){}})}},g=function(a,b){function c(){}c.prototype=b.prototype,a.superClass_=b.prototype,a.prototype=new c,a.prototype.constructor=a},h=function(a,c){g(a,c);var d=c.prototype;b.extend(a.prototype,{_instance:null,originalSet:function(){return d.set.apply(this,arguments)},set:function(a,b){var c=this;c.originalSet.apply(c,arguments),"position"===a&&c instanceof l?c._setInstancePositionAnimated(b):c.originalSet.apply(c._instance,arguments)},_setInstancePositionAnimated:function(a){var b=this;if(!b._constructing)return a&&b._instance.getPosition()?void b.get("animateFunctionAdapter").call(null,b._instance,a,b.get("easing"),b.get("duration")):void(b._instance.getPosition()!==a&&b._instance.setPosition(a))},originalAddListener:function(){return d.addListener.apply(this,arguments)},addListener:function(a,b){var c="map_changed"===a?this._instance:i.call(this,a);return this.originalAddListener.apply(c,arguments)},map_changed:function(){},position_changed:function(){this._suppress_animation?delete this._suppress_animation:this._setInstancePositionAnimated(this.getPosition())}})},i=function(a){return a.endsWith("_changed")?this:this._instance},j=google.maps.event.addListener;google.maps.event.addListener=function(a,b,c){if(a instanceof l){var d="map_changed"===b?a._instance:i.call(a,b);return j.call(this,d,b,c)}return j.apply(this,arguments)};var k=google.maps.event.trigger;google.maps.event.trigger=function(a,b){if(a instanceof l){var c="map_changed"===b?a:i.call(a,b),d=[c].concat(Array.prototype.slice.call(arguments,1));return k.apply(this,d)}return k.apply(this,arguments)},String.prototype.endsWith=String.prototype.endsWith||function(a){return-1!==this.indexOf(a,this.length-a.length)};var l=function(a){a=b.extend({},f,a),this._instance=new d(a),this.animationPosition=null,this._constructing=!0,d.call(this,a),delete this._constructing,this.bindTo("animationPosition",this._instance,"position"),this.bindTo("anchorPoint",this._instance,"anchorPoint"),this.bindTo("internalPosition",this._instance,"internalPosition")};return h(l,d),b.extend(l.prototype,{getAnimationPosition:function(){return this.get("animationPosition")},setPositionNotAnimated:function(a){this._suppress_animation=!0,this.get("animateFunctionAdapter").call(null,this._instance,null),this.originalSet("position",a),this._instance.setPosition(a)},setDuration:function(a){this.set("duration",a)},getDuration:function(){return this.get("duration")},setEasing:function(a){this.set("easing",a)},getEasing:function(){return this.get("easing")}}),l.initializeGlobally=function(){google.maps.Marker=l},l}); +!function(t,n){"use strict";"function"==typeof define&&define.amd?define(["jquery","marker-animate"],n.bind(null,t)):"undefined"!=typeof module&&null!==module&&null!=module.exports?module.exports=n(0,require("jquery"),require("marker-animate")):t.SlidingMarker=n(0,t.jQuery)}(this,function(t,s){"use strict";(s=s||{}).extend=s.extend||function i(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)!t[n]||t[n].constructor!==Object||e[n]&&e[n].constructor!==Object?e[n]=t[n]:(e[n]=e[n]||{},i(e[n],t[n]))}),e};function o(t,n,i){null!=t?google.maps.Marker.prototype.animateTo.apply(this,arguments):window.cancelAnimationFrame?window.cancelAnimationFrame(this.AT_animationHandler):clearTimeout(this.AT_animationHandler)}var a,n=google.maps.Marker,i={easing:"easeInOutQuint",duration:1e3,animateFunctionAdapter:function(t,n,i,e){if(!a){if(!google.maps.Marker.prototype.animateTo)throw new Error("Please either reference markerAnimate.js, or provide an alternative animateFunctionAdapter");a=o}a.call(t,n,{easing:i,duration:e,complete:function(){}})}},r=function(t){return t.endsWith("_changed")?this:this._instance},e=google.maps.event.addListener;google.maps.event.addListener=function(t,n,i){if(t instanceof u){t="map_changed"===n?t._instance:r.call(t,n);return e.call(this,t,n,i)}return e.apply(this,arguments)};var c=google.maps.event.trigger;google.maps.event.trigger=function(t,n){if(t instanceof u){n=["map_changed"===n?t:r.call(t,n)].concat(Array.prototype.slice.call(arguments,1));return c.apply(this,n)}return c.apply(this,arguments)},String.prototype.endsWith=String.prototype.endsWith||function(t){return-1!==this.indexOf(t,this.length-t.length)};var u=function(t){t=s.extend({},i,t),this._instance=new n(t),this.animationPosition=null,this._constructing=!0,n.call(this,t),delete this._constructing,this.bindTo("animationPosition",this._instance,"position"),this.bindTo("anchorPoint",this._instance,"anchorPoint"),this.bindTo("internalPosition",this._instance,"internalPosition")};return function(t,n){function i(){}var e,o;e=t,i.prototype=(o=n).prototype,e.superClass_=o.prototype,e.prototype=new i,e.prototype.constructor=e;var a=n.prototype;s.extend(t.prototype,{_instance:null,originalSet:function(){return a.set.apply(this,arguments)},set:function(t,n){var i=this;i.originalSet.apply(i,arguments),"position"===t&&i instanceof u?i._setInstancePositionAnimated(n):i.originalSet.apply(i._instance,arguments)},_setInstancePositionAnimated:function(t){var n=this;n._constructing||(t&&n._instance.getPosition()?n.get("animateFunctionAdapter").call(null,n._instance,t,n.get("easing"),n.get("duration")):n._instance.getPosition()!==t&&n._instance.setPosition(t))},originalAddListener:function(){return a.addListener.apply(this,arguments)},addListener:function(t,n){t="map_changed"===t?this._instance:r.call(this,t);return this.originalAddListener.apply(t,arguments)},map_changed:function(){},position_changed:function(){this._suppress_animation?delete this._suppress_animation:this._setInstancePositionAnimated(this.getPosition())}})}(u,n),s.extend(u.prototype,{getAnimationPosition:function(){return this.get("animationPosition")},setPositionNotAnimated:function(t){this._suppress_animation=!0,this.get("animateFunctionAdapter").call(null,this._instance,null),this.originalSet("position",t),this._instance.setPosition(t)},setDuration:function(t){this.set("duration",t)},getDuration:function(){return this.get("duration")},setEasing:function(t){this.set("easing",t)},getEasing:function(){return this.get("easing")}}),u.initializeGlobally=function(){google.maps.Marker=u},u}); //# sourceMappingURL=SlidingMarker.min.js.map \ No newline at end of file diff --git a/dist/SlidingMarker.min.js.map b/dist/SlidingMarker.min.js.map index 3c8ca08..6a4663e 100644 --- a/dist/SlidingMarker.min.js.map +++ b/dist/SlidingMarker.min.js.map @@ -1 +1 @@ -{"version":3,"file":"SlidingMarker.min.js","sources":["../SlidingMarker.js"],"names":["root","factory","define","amd","bind","module","exports","require","SlidingMarker","jQuery","this","$","extend","obj","Array","prototype","slice","call","arguments","forEach","source","prop","constructor","Object","animateTo","GoogleMarker","google","maps","Marker","markerAnimate_AnimateTo_Wrapper","destPosition","easing","duration","undefined","window","cancelAnimationFrame","AT_animationHandler","clearTimeout","apply","defaultOptions","animateFunctionAdapter","marker","Error","complete","inherits","childCtor","parentCtor","TempCtor","superClass_","decorates","parentPrototype","_instance","originalSet","set","key","value","that","_setInstancePositionAnimated","position","_constructing","getPosition","get","setPosition","originalAddListener","addListener","eventName","handler","target","getEventTarget","map_changed","position_changed","_suppress_animation","endsWith","event","instance","originalTrigger","trigger","newArgs","concat","String","suffix","indexOf","length","opt_options","animationPosition","bindTo","getAnimationPosition","setPositionNotAnimated","setDuration","getDuration","setEasing","getEasing","initializeGlobally"],"mappings":";;CAEC,SAAUA,EAAMC,GACb,YACsB,mBAAXC,SAAyBA,OAAOC,IAEvCD,QAAQ,SAAU,kBAAmBD,EAAQG,KAAK,KAAMJ,IAC/B,mBAAXK,SAAqC,OAAXA,QAAqC,MAAlBA,OAAOC,QAElED,OAAOC,QAAUL,EAAQD,EAAMO,QAAQ,UAAWA,QAAQ,mBAG1DP,EAAKQ,cAAgBP,EAAQD,EAAMA,EAAKS,SAE9CC,KACE,SAAUV,EAAMW,GACZ,YAGAA,GAAIA,MACJA,EAAEC,OAASD,EAAEC,QAAU,QAASA,GAAOC,GAkBnC,MAhBAC,OAAMC,UAAUC,MAAMC,KAAKC,UAAW,GAAGC,QAAQ,SAAUC,GACvD,GAAIA,EACA,IAAK,GAAIC,KAAQD,GACTA,EAAOC,IAASD,EAAOC,GAAMC,cAAgBC,OACxCV,EAAIQ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KAAKC,UAAW,GAEpE,OAAOyD,GAAgBrC,MAAM5B,KAAMmE,GAGvC,MAAOF,GAAgBrC,MAAM5B,KAAMQ,YAIvC6D,OAAOhE,UAAUyD,SAAWO,OAAOhE,UAAUyD,UAAY,SAASQ,GAC9D,MAA6D,KAAtDtE,KAAKuE,QAAQD,EAAQtE,KAAKwE,OAASF,EAAOE,QAIrD,IAAI1E,GAAgB,SAAU2E,GAE1BA,EAAcxE,EAAEC,UAAW2B,EAAgB4C,GAE3CzE,KAAKyC,UAAY,GAAI1B,GAAa0D,GAElCzE,KAAK0E,kBAAoB,KAEzB1E,KAAKiD,eAAgB,EAErBlC,EAAaR,KAAKP,KAAMyE,SACjBzE,MAAKiD,cAEZjD,KAAK2E,OAAO,oBAAqB3E,KAAKyC,UAAW,YACjDzC,KAAK2E,OAAO,cAAe3E,KAAKyC,UAAW,eAC3CzC,KAAK2E,OAAO,mBAAoB3E,KAAKyC,UAAW,oBA2CpD,OAvCAF,GAAUzC,EAAeiB,GAGzBd,EAAEC,OAAOJ,EAAcO,WAEnBuE,qBAAsB,WAClB,MAAO5E,MAAKmD,IAAI,sBAIpB0B,uBAAwB,SAAU7B,GAC9BhD,KAAK6D,qBAAsB,EAC3B7D,KAAKmD,IAAI,0BAA0B5C,KAAK,KAAMP,KAAKyC,UAAW,MAC9DzC,KAAK0C,YAAY,WAAYM,GAC7BhD,KAAKyC,UAAUW,YAAYJ,IAG/B8B,YAAa,SAAUjC,GACnB7C,KAAK2C,IAAI,WAAYE,IAGzBkC,YAAa,WACT,MAAO/E,MAAKmD,IAAI,aAGpB6B,UAAW,SAAUnC,GACjB7C,KAAK2C,IAAI,SAAUE,IAGvBoC,UAAW,WACP,MAAOjF,MAAKmD,IAAI,aAKxBrD,EAAcoF,mBAAqB,WAC/BlE,OAAOC,KAAKC,OAASpB,GAGlBA"} \ No newline at end of file +{"version":3,"file":"SlidingMarker.min.js","sources":["../SlidingMarker.js"],"names":["root","factory","define","amd","bind","module","exports","require","SlidingMarker","jQuery","this","$","extend","obj","Array","prototype","slice","call","arguments","forEach","source","prop","constructor","Object","markerAnimate_AnimateTo_Wrapper","destPosition","easing","duration","google","maps","Marker","animateTo","apply","window","cancelAnimationFrame","AT_animationHandler","clearTimeout","GoogleMarker","defaultOptions","animateFunctionAdapter","marker","Error","complete","getEventTarget","eventName","endsWith","_instance","originalAddListener","event","addListener","instance","handler","target","originalTrigger","trigger","newArgs","concat","String","suffix","indexOf","length","opt_options","animationPosition","_constructing","bindTo","childCtor","parentCtor","TempCtor","superClass_","parentPrototype","originalSet","set","key","value","that","_setInstancePositionAnimated","position","getPosition","get","setPosition","map_changed","position_changed","_suppress_animation","decorates","getAnimationPosition","setPositionNotAnimated","setDuration","getDuration","setEasing","getEasing","initializeGlobally"],"mappings":";;CAEC,SAAUA,EAAMC,gBAES,mBAAXC,QAAyBA,OAAOC,IAEvCD,OAAO,CAAC,SAAU,kBAAmBD,EAAQG,KAAK,KAAMJ,IAC/B,oBAAXK,QAAqC,OAAXA,QAAqC,MAAlBA,OAAOC,QAElED,OAAOC,QAAUL,EAAQD,EAAMO,QAAQ,UAAWA,QAAQ,mBAG1DP,EAAKQ,cAAgBP,EAAQD,EAAMA,EAAKS,QAVhD,CAYEC,KACE,SAAUV,EAAMW,iBAIZA,EAAIA,GAAK,IACPC,OAASD,EAAEC,QAAU,SAASA,EAAOC,GAkBnC,OAhBAC,MAAMC,UAAUC,MAAMC,KAAKC,UAAW,GAAGC,QAAQ,SAAUC,GACvD,GAAIA,EACA,IAAK,IAAIC,KAAQD,GACTA,EAAOC,IAASD,EAAOC,GAAMC,cAAgBC,QACxCV,EAAIQ,IAASR,EAAIQ,GAAMC,cAAgBC,OAO5CV,EAAIQ,GAAQD,EAAOC,IANfR,EAAIQ,GAAQR,EAAIQ,IAAS,GACzBT,EAAOC,EAAIQ,GAAOD,EAAOC,OAUtCR,GAM2B,SAAlCW,EAA2CC,EAAcC,EAAQC,GACzDF,MAAAA,EASJG,OAAOC,KAAK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7B,oBAAqB,WACjB,OAAOsB,EAAgBpB,YAAYjB,MAAMtB,KAAMQ,YAInD+B,YAAa,SAAUL,EAAWO,GAC1BC,EAAwB,gBAAdR,EAA+BlC,KAAKoC,UAAYH,EAAe1B,KAAKP,KAAMkC,GACxF,OAAOlC,KAAKqC,oBAAoBf,MAAMoB,EAAQlC,YAGlD8D,YAAa,aAMbC,iBAAkB,WACTvE,KAAKwE,2BAGCxE,KAAKwE,oBAFZxE,KAAKiE,6BAA6BjE,KAAKmE,kBAoEvDM,CAAU3E,EAAe6B,GAGzB1B,EAAEC,OAAOJ,EAAcO,UAAW,CAE9BqE,qBAAsB,WAClB,OAAO1E,KAAKoE,IAAI,sBAIpBO,uBAAwB,SAAUT,GAC9BlE,KAAKwE,qBAAsB,EAC3BxE,KAAKoE,IAAI,0BAA0B7D,KAAK,KAAMP,KAAKoC,UAAW,MAC9DpC,KAAK4D,YAAY,WAAYM,GAC7BlE,KAAKoC,UAAUiC,YAAYH,IAG/BU,YAAa,SAAUb,GACnB/D,KAAK6D,IAAI,WAAYE,IAGzBc,YAAa,WACT,OAAO7E,KAAKoE,IAAI,aAGpBU,UAAW,SAAUf,GACjB/D,KAAK6D,IAAI,SAAUE,IAGvBgB,UAAW,WACP,OAAO/E,KAAKoE,IAAI,aAKxBtE,EAAckF,mBAAqB,WAC/B9D,OAAOC,KAAKC,OAAStB,GAGlBA"} \ No newline at end of file diff --git a/package.json b/package.json index c3e0007..a6c47fe 100644 --- a/package.json +++ b/package.json @@ -1,45 +1,45 @@ -{ - "name": "marker-animate-unobtrusive", - "title": "SlidingMarker", - "version": "0.2.8", - "description": "Unobtrusive Google Maps animated marker", - "main": "SlidingMarker.js", - "scripts": { - "//": "use '|| true' to prevent warning", - "build": "npm install && grunt", - "test": "grunt test", - "jshint": "grunt jshint" - }, - "repository": { - "type": "git", - "url": "https://github.com/terikon/marker-animate-unobtrusive.git" - }, - "keywords": [ - "Google Maps", - "marker", - "marker animation", - "SlidingMarker" - ], - "author": { - "name": "Terikon Apps", - "email": "npm@terikon.com", - "url": "http://il.linkedin.com/in/romanviskin" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/terikon/marker-animate-unobtrusive/issues" - }, - "homepage": "https://github.com/terikon/marker-animate-unobtrusive", - "//": "you can use something like git+https://github.com/viskin/marker-animate.git#OverlappingMarkerSpiderfier", - "dependencies": { - "jasmine-core": "^2.3.4", - "jquery": "*", - "marker-animate": "^0.0.1" - }, - "devDependencies": { - "grunt": "^0.4.5", - "grunt-contrib-uglify": "^0.9.2", - "grunt-contrib-jshint": "^0.11.3", - "grunt-contrib-jasmine": "^0.9.2" - } -} +{ + "name": "marker-animate-unobtrusive", + "title": "SlidingMarker", + "version": "0.2.9", + "description": "Unobtrusive Google Maps animated marker", + "main": "SlidingMarker.js", + "scripts": { + "//": "use '|| true' to prevent warning", + "build": "npm install && grunt", + "test": "grunt test", + "jshint": "grunt jshint" + }, + "repository": { + "type": "git", + "url": "https://github.com/terikon/marker-animate-unobtrusive.git" + }, + "keywords": [ + "Google Maps", + "marker", + "marker animation", + "SlidingMarker" + ], + "author": { + "name": "Terikon Apps", + "email": "npm@terikon.com", + "url": "http://il.linkedin.com/in/romanviskin" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/terikon/marker-animate-unobtrusive/issues" + }, + "homepage": "https://github.com/terikon/marker-animate-unobtrusive", + "//": "you can use something like git+https://github.com/viskin/marker-animate.git#OverlappingMarkerSpiderfier", + "dependencies": { + "jasmine-core": "^3.7.1", + "jquery": "*", + "marker-animate": "^0.0.1" + }, + "devDependencies": { + "grunt": "^1.4.0", + "grunt-contrib-uglify": "^5.0.1", + "grunt-contrib-jshint": "^3.0.0", + "grunt-contrib-jasmine": "^3.0.0" + } +}