ol 6.14.2-dev.1653925030182 → 6.14.2-dev.1653925083056

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "6.14.2-dev.1653925030182",
3
+ "version": "6.14.2-dev.1653925083056",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -1,6 +1,6 @@
1
1
 
2
2
  export function create() {
3
- const source = "function e(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function r(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&o(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function a(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}var u=\"change\",f=function(){function t(){e(this,t),this.disposed=!1}return n(t,[{key:\"dispose\",value:function(){this.disposed||(this.disposed=!0,this.disposeInternal())}},{key:\"disposeInternal\",value:function(){}}]),t}(),l=function(){function t(n){e(this,t),this.propagationStopped,this.defaultPrevented,this.type=n,this.target=null}return n(t,[{key:\"preventDefault\",value:function(){this.defaultPrevented=!0}},{key:\"stopPropagation\",value:function(){this.propagationStopped=!0}}]),t}();function c(){}var v=\"function\"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function h(e){for(var t in e)delete e[t]}var p=function(t){r(o,f);var i=a(o);function o(t){var n;return e(this,o),(n=i.call(this)).eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return n(o,[{key:\"addEventListener\",value:function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}}},{key:\"dispatchEvent\",value:function(e){var t=\"string\"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new l(e):e;i.target||(i.target=this.eventTarget_||this);var o,s=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in s||(s[n]=0,a[n]=0),++s[n];for(var u=0,f=r.length;u<f;++u)if(!1===(o=\"handleEvent\"in r[u]?r[u].handleEvent(i):r[u].call(this,i))||i.propagationStopped){o=!1;break}if(0==--s[n]){var v=a[n];for(delete a[n];v--;)this.removeEventListener(n,c);delete s[n]}return o}}},{key:\"disposeInternal\",value:function(){this.listeners_&&h(this.listeners_)}},{key:\"getListeners\",value:function(e){return this.listeners_&&this.listeners_[e]||void 0}},{key:\"hasListener\",value:function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}},{key:\"removeEventListener\",value:function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}}]),o}();function d(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var s={target:e,type:t,listener:n};return e.addEventListener(t,n),s}function y(e,t,n,r){return d(e,t,n,r,!0)}function g(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),h(e))}var _=function(t){r(o,p);var i=a(o);function o(){var t;return e(this,o),(t=i.call(this)).on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return n(o,[{key:\"changed\",value:function(){++this.revision_,this.dispatchEvent(u)}},{key:\"getRevision\",value:function(){return this.revision_}},{key:\"onInternal\",value:function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=d(this,e[i],t);return r}return d(this,e,t)}},{key:\"onceInternal\",value:function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=y(this,e[i],t)}else n=y(this,e,t);return t.ol_key=n,n}},{key:\"unInternal\",value:function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)g(e[t]);else g(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}]),o}();_.prototype.on,_.prototype.once,_.prototype.un;var b=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";b.indexOf(\"firefox\"),-1!==b.indexOf(\"safari\")&&-1==b.indexOf(\"chrom\")&&(b.indexOf(\"version/15.4\")>=0||b.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==b.indexOf(\"webkit\")&&b.indexOf(\"edge\"),b.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,t),window.removeEventListener(\"_\",null,t)}catch(e){}}(),new Array(6);var O=\"GENERATE_BUFFERS\",w=[],k={vertexPosition:0,indexPosition:0};function m(e,t,n,r,i){e[t+0]=n,e[t+1]=r,e[t+2]=i}function E(e,t,n,r,i,o){var s=3+i,a=e[t+0],u=e[t+1],f=w;f.length=i;for(var l=0;l<f.length;l++)f[l]=e[t+2+l];var c=o?o.vertexPosition:0,v=o?o.indexPosition:0,h=c/s;return m(n,c,a,u,0),f.length&&n.set(f,c+3),m(n,c+=s,a,u,1),f.length&&n.set(f,c+3),m(n,c+=s,a,u,2),f.length&&n.set(f,c+3),m(n,c+=s,a,u,3),f.length&&n.set(f,c+3),c+=s,r[v++]=h,r[v++]=h+1,r[v++]=h+3,r[v++]=h+1,r[v++]=h+2,r[v++]=h+3,k.vertexPosition=c,k.indexPosition=v,k}var x=self;x.onmessage=function(e){var t=e.data;if(t.type===O){for(var n,r=t.customAttributesCount,i=2+r,o=new Float32Array(t.renderInstructions),s=o.length/i,a=4*s*(r+3),u=new Uint32Array(6*s),f=new Float32Array(a),l=0;l<o.length;l+=i)n=E(o,l,f,u,r,n);var c=v({vertexBuffer:f.buffer,indexBuffer:u.buffer,renderInstructions:o.buffer},t);x.postMessage(c,[f.buffer,u.buffer,o.buffer])}};";
3
+ const source = "function e(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function r(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&o(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function a(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}var u=\"change\",f=function(){function t(){e(this,t),this.disposed=!1}return n(t,[{key:\"dispose\",value:function(){this.disposed||(this.disposed=!0,this.disposeInternal())}},{key:\"disposeInternal\",value:function(){}}]),t}(),l=function(){function t(n){e(this,t),this.propagationStopped,this.defaultPrevented,this.type=n,this.target=null}return n(t,[{key:\"preventDefault\",value:function(){this.defaultPrevented=!0}},{key:\"stopPropagation\",value:function(){this.propagationStopped=!0}}]),t}();function c(){}var v=\"function\"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function h(e){for(var t in e)delete e[t]}var p=function(t){r(o,f);var i=a(o);function o(t){var n;return e(this,o),(n=i.call(this)).eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return n(o,[{key:\"addEventListener\",value:function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}}},{key:\"dispatchEvent\",value:function(e){var t=\"string\"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new l(e):e;i.target||(i.target=this.eventTarget_||this);var o,s=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in s||(s[n]=0,a[n]=0),++s[n];for(var u=0,f=r.length;u<f;++u)if(!1===(o=\"handleEvent\"in r[u]?r[u].handleEvent(i):r[u].call(this,i))||i.propagationStopped){o=!1;break}if(0==--s[n]){var v=a[n];for(delete a[n];v--;)this.removeEventListener(n,c);delete s[n]}return o}}},{key:\"disposeInternal\",value:function(){this.listeners_&&h(this.listeners_)}},{key:\"getListeners\",value:function(e){return this.listeners_&&this.listeners_[e]||void 0}},{key:\"hasListener\",value:function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}},{key:\"removeEventListener\",value:function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}}]),o}();function d(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var s={target:e,type:t,listener:n};return e.addEventListener(t,n),s}function y(e,t,n,r){return d(e,t,n,r,!0)}function g(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),h(e))}var _=function(t){r(o,p);var i=a(o);function o(){var t;return e(this,o),(t=i.call(this)).on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return n(o,[{key:\"changed\",value:function(){++this.revision_,this.dispatchEvent(u)}},{key:\"getRevision\",value:function(){return this.revision_}},{key:\"onInternal\",value:function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=d(this,e[i],t);return r}return d(this,e,t)}},{key:\"onceInternal\",value:function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=y(this,e[i],t)}else n=y(this,e,t);return t.ol_key=n,n}},{key:\"unInternal\",value:function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)g(e[t]);else g(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}]),o}();_.prototype.on,_.prototype.once,_.prototype.un;var b=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";b.indexOf(\"firefox\"),-1!==b.indexOf(\"safari\")&&-1==b.indexOf(\"chrom\")&&(b.indexOf(\"version/15.4\")>=0||b.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==b.indexOf(\"webkit\")&&b.indexOf(\"edge\"),b.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,t),window.removeEventListener(\"_\",null,t)}catch(e){}}(),new Array(6);var O=\"GENERATE_BUFFERS\",w=[],k={vertexPosition:0,indexPosition:0};function m(e,t,n,r,i){e[t+0]=n,e[t+1]=r,e[t+2]=i}function E(e,t,n,r,i,o){var s=3+i,a=e[t+0],u=e[t+1],f=w;f.length=i;for(var l=0;l<f.length;l++)f[l]=e[t+2+l];var c=o?o.vertexPosition:0,v=o?o.indexPosition:0,h=c/s;return m(n,c,a,u,0),f.length&&n.set(f,c+3),m(n,c+=s,a,u,1),f.length&&n.set(f,c+3),m(n,c+=s,a,u,2),f.length&&n.set(f,c+3),m(n,c+=s,a,u,3),f.length&&n.set(f,c+3),c+=s,r[v++]=h,r[v++]=h+1,r[v++]=h+3,r[v++]=h+1,r[v++]=h+2,r[v++]=h+3,k.vertexPosition=c,k.indexPosition=v,k}var x=self;x.onmessage=function(e){var t=e.data;if(t.type===O){for(var n,r=t.customAttributesCount,i=2+r,o=new Float32Array(t.renderInstructions),s=o.length/i,a=4*s*(r+3),u=new Uint32Array(6*s),f=new Float32Array(a),l=0;l<o.length;l+=i)n=E(o,l,f,u,r,n);var c=v({vertexBuffer:f.buffer,indexBuffer:u.buffer,renderInstructions:o.buffer},t);x.postMessage(c,[f.buffer,u.buffer,o.buffer])}};";
4
4
  return new Worker(typeof Blob === 'undefined'
5
5
  ? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
6
6
  : URL.createObjectURL(new Blob([source], {type: 'application/javascript'})));
package/util.js CHANGED
@@ -31,5 +31,5 @@ export function getUid(obj) {
31
31
  * OpenLayers version.
32
32
  * @type {string}
33
33
  */
34
- export var VERSION = '6.14.2-dev.1653925030182';
34
+ export var VERSION = '6.14.2-dev.1653925083056';
35
35
  //# sourceMappingURL=util.js.map
package/worker/webgl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export function create() {
2
- var source = "function e(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function r(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&o(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function a(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}var u=\"change\",f=function(){function t(){e(this,t),this.disposed=!1}return n(t,[{key:\"dispose\",value:function(){this.disposed||(this.disposed=!0,this.disposeInternal())}},{key:\"disposeInternal\",value:function(){}}]),t}(),l=function(){function t(n){e(this,t),this.propagationStopped,this.defaultPrevented,this.type=n,this.target=null}return n(t,[{key:\"preventDefault\",value:function(){this.defaultPrevented=!0}},{key:\"stopPropagation\",value:function(){this.propagationStopped=!0}}]),t}();function c(){}var v=\"function\"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function h(e){for(var t in e)delete e[t]}var p=function(t){r(o,f);var i=a(o);function o(t){var n;return e(this,o),(n=i.call(this)).eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return n(o,[{key:\"addEventListener\",value:function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}}},{key:\"dispatchEvent\",value:function(e){var t=\"string\"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new l(e):e;i.target||(i.target=this.eventTarget_||this);var o,s=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in s||(s[n]=0,a[n]=0),++s[n];for(var u=0,f=r.length;u<f;++u)if(!1===(o=\"handleEvent\"in r[u]?r[u].handleEvent(i):r[u].call(this,i))||i.propagationStopped){o=!1;break}if(0==--s[n]){var v=a[n];for(delete a[n];v--;)this.removeEventListener(n,c);delete s[n]}return o}}},{key:\"disposeInternal\",value:function(){this.listeners_&&h(this.listeners_)}},{key:\"getListeners\",value:function(e){return this.listeners_&&this.listeners_[e]||void 0}},{key:\"hasListener\",value:function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}},{key:\"removeEventListener\",value:function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}}]),o}();function d(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var s={target:e,type:t,listener:n};return e.addEventListener(t,n),s}function y(e,t,n,r){return d(e,t,n,r,!0)}function g(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),h(e))}var _=function(t){r(o,p);var i=a(o);function o(){var t;return e(this,o),(t=i.call(this)).on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return n(o,[{key:\"changed\",value:function(){++this.revision_,this.dispatchEvent(u)}},{key:\"getRevision\",value:function(){return this.revision_}},{key:\"onInternal\",value:function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=d(this,e[i],t);return r}return d(this,e,t)}},{key:\"onceInternal\",value:function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=y(this,e[i],t)}else n=y(this,e,t);return t.ol_key=n,n}},{key:\"unInternal\",value:function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)g(e[t]);else g(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}]),o}();_.prototype.on,_.prototype.once,_.prototype.un;var b=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";b.indexOf(\"firefox\"),-1!==b.indexOf(\"safari\")&&-1==b.indexOf(\"chrom\")&&(b.indexOf(\"version/15.4\")>=0||b.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==b.indexOf(\"webkit\")&&b.indexOf(\"edge\"),b.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,t),window.removeEventListener(\"_\",null,t)}catch(e){}}(),new Array(6);var O=\"GENERATE_BUFFERS\",w=[],k={vertexPosition:0,indexPosition:0};function m(e,t,n,r,i){e[t+0]=n,e[t+1]=r,e[t+2]=i}function E(e,t,n,r,i,o){var s=3+i,a=e[t+0],u=e[t+1],f=w;f.length=i;for(var l=0;l<f.length;l++)f[l]=e[t+2+l];var c=o?o.vertexPosition:0,v=o?o.indexPosition:0,h=c/s;return m(n,c,a,u,0),f.length&&n.set(f,c+3),m(n,c+=s,a,u,1),f.length&&n.set(f,c+3),m(n,c+=s,a,u,2),f.length&&n.set(f,c+3),m(n,c+=s,a,u,3),f.length&&n.set(f,c+3),c+=s,r[v++]=h,r[v++]=h+1,r[v++]=h+3,r[v++]=h+1,r[v++]=h+2,r[v++]=h+3,k.vertexPosition=c,k.indexPosition=v,k}var x=self;x.onmessage=function(e){var t=e.data;if(t.type===O){for(var n,r=t.customAttributesCount,i=2+r,o=new Float32Array(t.renderInstructions),s=o.length/i,a=4*s*(r+3),u=new Uint32Array(6*s),f=new Float32Array(a),l=0;l<o.length;l+=i)n=E(o,l,f,u,r,n);var c=v({vertexBuffer:f.buffer,indexBuffer:u.buffer,renderInstructions:o.buffer},t);x.postMessage(c,[f.buffer,u.buffer,o.buffer])}};";
2
+ var source = "function e(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function r(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&o(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function a(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}var u=\"change\",f=function(){function t(){e(this,t),this.disposed=!1}return n(t,[{key:\"dispose\",value:function(){this.disposed||(this.disposed=!0,this.disposeInternal())}},{key:\"disposeInternal\",value:function(){}}]),t}(),l=function(){function t(n){e(this,t),this.propagationStopped,this.defaultPrevented,this.type=n,this.target=null}return n(t,[{key:\"preventDefault\",value:function(){this.defaultPrevented=!0}},{key:\"stopPropagation\",value:function(){this.propagationStopped=!0}}]),t}();function c(){}var v=\"function\"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function h(e){for(var t in e)delete e[t]}var p=function(t){r(o,f);var i=a(o);function o(t){var n;return e(this,o),(n=i.call(this)).eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return n(o,[{key:\"addEventListener\",value:function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}}},{key:\"dispatchEvent\",value:function(e){var t=\"string\"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new l(e):e;i.target||(i.target=this.eventTarget_||this);var o,s=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in s||(s[n]=0,a[n]=0),++s[n];for(var u=0,f=r.length;u<f;++u)if(!1===(o=\"handleEvent\"in r[u]?r[u].handleEvent(i):r[u].call(this,i))||i.propagationStopped){o=!1;break}if(0==--s[n]){var v=a[n];for(delete a[n];v--;)this.removeEventListener(n,c);delete s[n]}return o}}},{key:\"disposeInternal\",value:function(){this.listeners_&&h(this.listeners_)}},{key:\"getListeners\",value:function(e){return this.listeners_&&this.listeners_[e]||void 0}},{key:\"hasListener\",value:function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}},{key:\"removeEventListener\",value:function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}}}]),o}();function d(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var s={target:e,type:t,listener:n};return e.addEventListener(t,n),s}function y(e,t,n,r){return d(e,t,n,r,!0)}function g(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),h(e))}var _=function(t){r(o,p);var i=a(o);function o(){var t;return e(this,o),(t=i.call(this)).on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return n(o,[{key:\"changed\",value:function(){++this.revision_,this.dispatchEvent(u)}},{key:\"getRevision\",value:function(){return this.revision_}},{key:\"onInternal\",value:function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=d(this,e[i],t);return r}return d(this,e,t)}},{key:\"onceInternal\",value:function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=y(this,e[i],t)}else n=y(this,e,t);return t.ol_key=n,n}},{key:\"unInternal\",value:function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)g(e[t]);else g(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}]),o}();_.prototype.on,_.prototype.once,_.prototype.un;var b=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";b.indexOf(\"firefox\"),-1!==b.indexOf(\"safari\")&&-1==b.indexOf(\"chrom\")&&(b.indexOf(\"version/15.4\")>=0||b.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==b.indexOf(\"webkit\")&&b.indexOf(\"edge\"),b.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,t),window.removeEventListener(\"_\",null,t)}catch(e){}}(),new Array(6);var O=\"GENERATE_BUFFERS\",w=[],k={vertexPosition:0,indexPosition:0};function m(e,t,n,r,i){e[t+0]=n,e[t+1]=r,e[t+2]=i}function E(e,t,n,r,i,o){var s=3+i,a=e[t+0],u=e[t+1],f=w;f.length=i;for(var l=0;l<f.length;l++)f[l]=e[t+2+l];var c=o?o.vertexPosition:0,v=o?o.indexPosition:0,h=c/s;return m(n,c,a,u,0),f.length&&n.set(f,c+3),m(n,c+=s,a,u,1),f.length&&n.set(f,c+3),m(n,c+=s,a,u,2),f.length&&n.set(f,c+3),m(n,c+=s,a,u,3),f.length&&n.set(f,c+3),c+=s,r[v++]=h,r[v++]=h+1,r[v++]=h+3,r[v++]=h+1,r[v++]=h+2,r[v++]=h+3,k.vertexPosition=c,k.indexPosition=v,k}var x=self;x.onmessage=function(e){var t=e.data;if(t.type===O){for(var n,r=t.customAttributesCount,i=2+r,o=new Float32Array(t.renderInstructions),s=o.length/i,a=4*s*(r+3),u=new Uint32Array(6*s),f=new Float32Array(a),l=0;l<o.length;l+=i)n=E(o,l,f,u,r,n);var c=v({vertexBuffer:f.buffer,indexBuffer:u.buffer,renderInstructions:o.buffer},t);x.postMessage(c,[f.buffer,u.buffer,o.buffer])}};";
3
3
  return new Worker(typeof Blob === 'undefined'
4
4
  ? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
5
5
  : URL.createObjectURL(new Blob([source], { type: 'application/javascript' })));
@@ -1 +1 @@
1
- {"version":3,"file":"webgl.js","sourceRoot":"","sources":["../src/worker/webgl.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG,woNAAwoN,CAAC;IACxpN,OAAO,IAAI,MAAM,CAAC,OAAO,IAAI,KAAK,WAAW;QAC3C,CAAC,CAAC,qCAAqC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC1F,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC,CAAC,CAAC,CAAC;AACjF,CAAC"}
1
+ {"version":3,"file":"webgl.js","sourceRoot":"","sources":["../src/worker/webgl.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG,2qNAA2qN,CAAC;IAC3rN,OAAO,IAAI,MAAM,CAAC,OAAO,IAAI,KAAK,WAAW;QAC3C,CAAC,CAAC,qCAAqC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC1F,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC,CAAC,CAAC,CAAC;AACjF,CAAC"}