azure-maps-control 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
 
2
- !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((t=t||self).atlas=t.atlas||{})}(this,function(t){"use strict";var o=(e.prototype.getLuminosity=function(){for(var t=[this.r,this.g,this.b],o=[],e=0;e<t.length;e++){var r=t[e]/255;o[e]=r<=.03928?r/12.92:Math.pow((.055+r)/1.055,2.4)}return.2126*o[0]+.7152*o[1]+.0722*o[2]},e.prototype.getRBGA=function(t){var o=document.createElement("canvas").getContext("2d");o.globalAlpha=1,o.fillStyle=t,o.fillRect(0,0,1,1);o=o.getImageData(0,0,1,1).data;return[o[0],o[1],o[2],o[3]]},e);function e(t){var o;t&&(o=void 0,3<=(o="string"==typeof t?this.getRBGA(t):t).length&&(this.r=o[0],this.g=o[1],this.b=o[2],3<o.length&&(this.a=o[3])))}var r=function(t,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(t,o)};var n=(u.prototype.merge=function(){for(var o,t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var i=function(t){var o="function"==typeof Symbol&&Symbol.iterator,e=o&&t[o],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),a=i.next();!a.done;a=i.next()){var s=a.value;if(s)for(var p in s)s.hasOwnProperty(p)&&this.hasOwnProperty(p)&&(void 0!==s[p]&&null!=s[p]?this[p]instanceof u?this[p].merge(s[p]):this[p]=s[p]:(e=e||new(Object.getPrototypeOf(this).constructor),this[p]=e[p]))}}catch(t){o={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return this},u);function u(){}var i,a,s,p=(r(a=h,s=i=n),a.prototype=null===s?Object.create(s):(f.prototype=s.prototype,new f),h);function f(){this.constructor=a}function h(){var t=null!==i&&i.apply(this,arguments)||this;return t.domain=void 0,t.headers={},t.path="",t.protocol="https",t.queryParams={},t.subdomain="",t}var l=(c.prototype.get=function(){return fetch(this.toString(),{method:"GET",mode:"cors",headers:new Headers(this.options.headers)}).then(function(t){if(t.ok)return t.json();throw new Error("HTTP "+t.status+": "+t.statusText)})},c.prototype.toString=function(){var t=this,o=Object.entries(t.options.queryParams).map(function(t){t=function(t,o){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,n,i=e.call(t),a=[];try{for(;(void 0===o||0<o--)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return a}(t,2);return t[0]+"="+t[1]}).join("&"),e=[],r=t.options.path||"";return c.protoRegEx.test(r)?e.push(r):(t.options.domain&&(c.protoRegEx.test(t.options.domain)||(e.push(t.options.protocol+"://"),e.push(t.options.subdomain?t.options.subdomain+".":"")),e.push(t.options.domain)),e.push(t.options.path?"/"+r:"")),e.push(o?"?"+o:""),e.join("")},c.protoRegEx=new RegExp(/^(((file|http|https):\/\/)|blob:)/i),c);function c(t){this.options=(new p).merge(t)}t.Color=o,t.Url=l,Object.defineProperty(t,"__esModule",{value:!0})});
2
+ !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((t=t||self).atlas=t.atlas||{})}(this,function(t){"use strict";var o=(e.prototype.getLuminosity=function(){for(var t=[this.r,this.g,this.b],o=[],e=0;e<t.length;e++){var n=t[e]/255;o[e]=n<=.03928?n/12.92:Math.pow((.055+n)/1.055,2.4)}return.2126*o[0]+.7152*o[1]+.0722*o[2]},e.prototype.getRBGA=function(t){var o=document.createElement("canvas").getContext("2d");o.globalAlpha=1,o.fillStyle=t,o.fillRect(0,0,1,1);o=o.getImageData(0,0,1,1).data;return[o[0],o[1],o[2],o[3]]},e);function e(t){var o;t&&(o=void 0,3<=(o="string"==typeof t?this.getRBGA(t):t).length&&(this.r=o[0],this.g=o[1],this.b=o[2],3<o.length&&(this.a=o[3])))}var p=window&&window.__values||function(t){var o="function"==typeof Symbol&&Symbol.iterator,e=o&&t[o],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(l.prototype.merge=function(){for(var o,t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var i=p(n),s=i.next();!s.done;s=i.next()){var a=s.value;if(a)for(var u in a)a.hasOwnProperty(u)&&this.hasOwnProperty(u)&&(void 0!==a[u]&&null!=a[u]?this[u]instanceof l?this[u].merge(a[u]):this[u]=a[u]:(e=e||new(Object.getPrototypeOf(this).constructor),this[u]=e[u]))}}catch(t){o={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return this},l);function l(){}var r,i,s=window&&window.__extends||(r=function(t,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}r(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),a=window&&window.__read||function(t,o){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,r,i=e.call(t),s=[];try{for(;(void 0===o||0<o--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(r)throw r.error}}return s},u=(s(f,i=n),f);function f(){var t=null!==i&&i.apply(this,arguments)||this;return t.domain=void 0,t.headers={},t.path="",t.protocol="https",t.queryParams={},t.subdomain="",t}c.prototype.get=function(){return fetch(this.toString(),{method:"GET",mode:"cors",headers:new Headers(this.options.headers)}).then(function(t){if(t.ok)return t.json();throw new Error("HTTP "+t.status+": "+t.statusText)})},c.prototype.toString=function(){var t=this,o=Object.entries(t.options.queryParams).map(function(t){t=a(t,2);return t[0]+"="+t[1]}).join("&"),e=[],n=t.options.path||"";return c.protoRegEx.test(n)?e.push(n):(t.options.domain&&(c.protoRegEx.test(t.options.domain)||(e.push(t.options.protocol+"://"),e.push(t.options.subdomain?t.options.subdomain+".":"")),e.push(t.options.domain)),e.push(t.options.path?"/"+n:"")),e.push(o?"?"+o:""),e.join("")},c.protoRegEx=new RegExp(/^(((file|http|https):\/\/)|blob:)/i),n=c;function c(t){this.options=(new u).merge(t)}t.Color=o,t.Url=n,Object.defineProperty(t,"__esModule",{value:!0})});
package/dist/atlas.css CHANGED
@@ -852,42 +852,42 @@ a.azure-map-copyright[href]:hover {
852
852
  }
853
853
  @font-face {
854
854
  font-family: "segoeui";
855
- src: url('https://atlas.microsoft.com/styles/glyphs/segoeui.ttf');
855
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/segoeui.ttf');
856
856
  }
857
857
  .font-segoeui {
858
858
  font-family: "segoeui";
859
859
  }
860
860
  @font-face {
861
861
  font-family: "segoeui-b";
862
- src: url('https://atlas.microsoft.com/styles/glyphs/segoeuib.ttf');
862
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/segoeuib.ttf');
863
863
  }
864
864
  .font-segoeui-b {
865
865
  font-family: "segoeui-b";
866
866
  }
867
867
  @font-face {
868
868
  font-family: "segoeui-i";
869
- src: url('https://atlas.microsoft.com/styles/glyphs/segoeuii.ttf');
869
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/segoeuii.ttf');
870
870
  }
871
871
  .font-segoeui-i {
872
872
  font-family: "segoeui-i";
873
873
  }
874
874
  @font-face {
875
875
  font-family: "segoeui-sl";
876
- src: url('https://atlas.microsoft.com/styles/glyphs/segoeuisl.ttf');
876
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/segoeuisl.ttf');
877
877
  }
878
878
  .font-segoeui-sl {
879
879
  font-family: "segoeui-sl";
880
880
  }
881
881
  @font-face {
882
882
  font-family: "standard";
883
- src: url('https://atlas.microsoft.com/styles/glyphs/standardfont.ttf');
883
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/standardfont.ttf');
884
884
  }
885
885
  .font-standard {
886
886
  font-family: "standard";
887
887
  }
888
888
  @font-face {
889
889
  font-family: "standard-b";
890
- src: url('https://atlas.microsoft.com/styles/glyphs/standardfontbold.ttf');
890
+ src: url('https://t-azmaps.azurelbs.com/styles/glyphs/standardfontbold.ttf');
891
891
  }
892
892
  .font-standard-b {
893
893
  font-family: "standard-b";