azure-maps-control 3.0.0 → 3.0.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="undefined"!=typeof globalThis?globalThis:t||self).atlas=t.atlas||{})}(this,function(t){"use strict";var o=(n.prototype.getLuminosity=function(){for(var t=[this.r,this.g,this.b],o=[],n=0;n<t.length;n++){var e=t[n]/255;o[n]=e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4)}return.2126*o[0]+.7152*o[1]+.0722*o[2]},n.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]]},n);function n(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 u=window&&window.__values||function(t){var o="function"==typeof Symbol&&Symbol.iterator,n=o&&t[o],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&e>=t.length?void 0:t)&&t[e++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},e=(p.prototype.merge=function(){for(var o,t,n,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s)for(var c in s)s.hasOwnProperty(c)&&this.hasOwnProperty(c)&&(void 0!==s[c]&&null!=s[c]?this[c]instanceof p?this[c].merge(s[c]):this[c]=s[c]:(n=n||new(Object.getPrototypeOf(this).constructor),this[c]=n[c]))}}catch(t){o={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return this},p);function p(){}var r,i,a=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 n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(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 n(){this.constructor=t}r(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}),s=window&&window.__read||function(t,o){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,i=n.call(t),a=[];try{for(;(void 0===o||0<o--)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},c=(a(l,i=e),l);function l(){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}f.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 ".concat(t.status,": ").concat(t.statusText))})},f.prototype.toString=function(){var t=this,o=Object.entries(t.options.queryParams).map(function(t){var o=s(t,2),t=o[0],o=o[1];return"".concat(t,"=").concat(o)}).join("&"),n=[],e=t.options.path||"";return f.protoRegEx.test(e)?n.push(e):(t.options.domain&&(f.protoRegEx.test(t.options.domain)||(n.push("".concat(t.options.protocol,"://")),n.push(t.options.subdomain?"".concat(t.options.subdomain,"."):"")),n.push(t.options.domain)),n.push(t.options.path?"/".concat(e):"")),n.push(o?"?".concat(o):""),n.join("")},f.protoRegEx=new RegExp(/^(((file|http|https):\/\/)|blob:)/i),e=f;function f(t){this.options=(new c).merge(t)}t.Color=o,t.Url=e});
2
+ !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((t="undefined"!=typeof globalThis?globalThis:t||self).atlas=t.atlas||{})}(this,function(t){"use strict";n.prototype.getLuminosity=function(){for(var t=[this.r,this.g,this.b],o=[],n=0;n<t.length;n++){var e=t[n]/255;o[n]=e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4)}return.2126*o[0]+.7152*o[1]+.0722*o[2]},n.prototype.getRBGA=function(t){var o=document.createElement("canvas").getContext("2d"),t=(o.globalAlpha=1,o.fillStyle=t,o.fillRect(0,0,1,1),o.getImageData(0,0,1,1).data);return[t[0],t[1],t[2],t[3]]};var o=n;function n(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 u=window&&window.__values||function(t){var o="function"==typeof Symbol&&Symbol.iterator,n=o&&t[o],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&e>=t.length?void 0:t)&&t[e++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};function p(){}p.prototype.merge=function(){for(var o,t,n,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s)for(var c in s)s.hasOwnProperty(c)&&this.hasOwnProperty(c)&&(void 0!==s[c]&&null!=s[c]?this[c]instanceof p?this[c].merge(s[c]):this[c]=s[c]:(n=n||new(Object.getPrototypeOf(this).constructor),this[c]=n[c]))}}catch(t){o={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return this};var e,r,i=window&&window.__extends||(e=function(t,o){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,o){t.__proto__=o}:function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}))(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 n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}),a=window&&window.__read||function(t,o){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,i=n.call(t),a=[];try{for(;(void 0===o||0<o--)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},s=(i(c,r=p),c);function c(){var t=null!==r&&r.apply(this,arguments)||this;return t.domain=void 0,t.headers={},t.path="",t.protocol="https",t.queryParams={},t.subdomain="",t}l.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 ".concat(t.status,": ").concat(t.statusText))})},l.prototype.toString=function(){var t=this,o=Object.entries(t.options.queryParams).map(function(t){var t=a(t,2),o=t[0],t=t[1];return"".concat(o,"=").concat(t)}).join("&"),n=[],e=t.options.path||"";return l.protoRegEx.test(e)?n.push(e):(t.options.domain&&(l.protoRegEx.test(t.options.domain)||(n.push("".concat(t.options.protocol,"://")),n.push(t.options.subdomain?"".concat(t.options.subdomain,"."):"")),n.push(t.options.domain)),n.push(t.options.path?"/".concat(e):"")),n.push(o?"?".concat(o):""),n.join("")},l.protoRegEx=new RegExp(/^(((file|http|https):\/\/)|blob:)/i);i=l;function l(t){this.options=(new s).merge(t)}t.Color=o,t.Url=i});
package/dist/atlas.css CHANGED
@@ -1120,7 +1120,7 @@
1120
1120
  background-color: #31acce;
1121
1121
  }
1122
1122
  .atlas-map .azure-maps-control-button[aria-current="true"] > .selected-icon {
1123
- background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M5.80001 -1.90735e-06C2.59675 -1.90735e-06 5.72205e-06 2.59675 5.72205e-06 5.8C5.72205e-06 9.00325 2.59675 11.6 5.80001 11.6C9.00326 11.6 11.6 9.00325 11.6 5.8C11.6 2.59675 9.00326 -1.90735e-06 5.80001 -1.90735e-06Z' fill='%2331ACCE'/%3E%3Cpath d='M8.90688 2.55L4.675 6.88763L2.69275 5.0085L1.3 6.402L4.675 9.675L10.3 3.94313L8.90688 2.55Z' fill='white'/%3E%3C/g%3E%3C/svg%3E");
1123
+ background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M5.80001 -1.90735e-06C2.59675 -1.90735e-06 5.72205e-06 2.59675 5.72205e-06 5.8C5.72205e-06 9.00325 2.59675 11.6 5.80001 11.6C9.00326 11.6 11.6 9.00325 11.6 5.8C11.6 2.59675 9.00326 -1.90735e-06 5.80001 -1.90735e-06Z' fill='%23249fc1'/%3E%3Cpath d='M8.90688 2.55L4.675 6.88763L2.69275 5.0085L1.3 6.402L4.675 9.675L10.3 3.94313L8.90688 2.55Z' fill='white'/%3E%3C/g%3E%3C/svg%3E");
1124
1124
  background-size: 12px 12px;
1125
1125
  background-repeat: no-repeat;
1126
1126
  background-position: center center;
@@ -1425,7 +1425,7 @@
1425
1425
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.6 11.6'%3E%3Cg transform='rotate(180 5.8 5.8)'%3E%3Ccircle cx='5.8' cy='5.8' r='5.05' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M6 9.5L3.5 5.9v-.2L6 2.4a.188.188 0 01.3 0l1.3 1a.188.188 0 010 .3L6 5.7A.188.188 0 006 6l1.6 2.4c.1.1 0 .2-.1.3l-1.3.8c-.1.1-.2.1-.2 0z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
1426
1426
  }
1427
1427
  .atlas-map .azure-maps-control-container.in-use .azure-maps-control-button.curr-style > .icon {
1428
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.6 11.6'%3E%3Cg transform='rotate(180 5.8 5.8)'%3E%3Ccircle cx='5.8' cy='5.8' r='5.8' fill='%2331acce'/%3E%3Cpath d='M6 9.5L3.5 5.9v-.2L6 2.4a.188.188 0 0 1 .3 0l1.3 1a.188.188 0 0 1 0 .3L6 5.7A.188.188 0 0 0 6 6l1.6 2.4c.1.1 0 .2-.1.3l-1.3.8c-.1.1-.2.1-.2 0z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
1428
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.6 11.6'%3E%3Cg transform='rotate(180 5.8 5.8)'%3E%3Ccircle cx='5.8' cy='5.8' r='5.8' fill='%23249fc1'/%3E%3Cpath d='M6 9.5L3.5 5.9v-.2L6 2.4a.188.188 0 0 1 .3 0l1.3 1a.188.188 0 0 1 0 .3L6 5.7A.188.188 0 0 0 6 6l1.6 2.4c.1.1 0 .2-.1.3l-1.3.8c-.1.1-.2.1-.2 0z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
1429
1429
  }
1430
1430
  .atlas-map .atlas-map.high-contrast-dark .azure-maps-control-container.in-use .azure-maps-control-button.curr-style > .icon,
1431
1431
  .atlas-map .atlas-map.high-contrast-light .azure-maps-control-container.in-use .azure-maps-control-button.curr-style > .icon {