@deck.gl/geo-layers 8.9.24 → 8.9.26
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/dist.min.js +1 -1
- package/package.json +2 -2
package/dist.min.js
CHANGED
|
@@ -37,7 +37,7 @@ varying float vTime;
|
|
|
37
37
|
}
|
|
38
38
|
`},i}},{key:"initializeState",value:function(){be(L(t.prototype),"initializeState",this).call(this);var i=this.getAttributeManager();i.addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}},{key:"draw",value:function(i){var a=this.props,o=a.fadeTrail,s=a.trailLength,u=a.currentTime;i.uniforms=Sg(Sg({},i.uniforms),{},{fadeTrail:o,trailLength:s,currentTime:u}),be(L(t.prototype),"draw",this).call(this,i)}}]),t}(wg.PathLayer);c(Do,"layerName","TripsLayer");c(Do,"defaultProps",Qw);q();Y();N();var Fg=X(hl()),Lg=X(xt());q();Y();N();Le();se();var qe=X(hl());var No=X(xt()),na=X(Tt());function eC(e){var r=tC();return function(){var n=L(e),i;if(r){var a=L(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $(this,i)}}function tC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bg(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Go(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bg(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bg(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function dl(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=rC(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
39
39
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function rC(e,r){if(e){if(typeof e=="string")return Mg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mg(e,r)}}function Mg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var nC=10;function Pg(e,r){r=r===void 0?e[0][0]:r;var t=dl(e),n;try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i[0]-r;a>180?i[0]-=360:a<-180&&(i[0]+=360)}}catch(o){t.e(o)}finally{t.f()}}function iC(e,r,t){var n=(0,qe.h3ToGeo)(e),i=G(n,2),a=i[0],o=i[1],s=r.length;Pg(r,o);for(var u=r[0]===r[s-1]?s-1:s,f=0;f<u;f++)r[f][0]=Ar(o,r[f][0],t),r[f][1]=Ar(a,r[f][1],t)}function aC(e,r,t){var n=e(r,t),i=(0,qe.h3ToGeo)(n),a=G(i,2),o=a[0],s=a[1];return[s,o]}function Og(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=(0,qe.h3ToGeoBoundary)(e,!0);return r!==1?iC(e,t,r):Pg(t),t}function oC(e){var r=new Float64Array(e.length*2),t=0,n=dl(e),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;r[t++]=a[0],r[t++]=a[1]}}catch(o){n.e(o)}finally{n.f()}return r}function sC(e,r){var t;return e==null?t=r:te(e)==="object"?t=Go(Go({},e),{},{coverage:r}):t={getHexagon:e,coverage:r},t}var uC=Go(Go({},na.PolygonLayer.defaultProps),{},{highPrecision:"auto",coverage:{type:"number",min:0,max:1,value:1},centerHexagon:null,getHexagon:{type:"accessor",value:function(r){return r.hexagon}},extruded:!0}),nn=function(e){H(t,e);var r=eC(t);function t(){var n;T(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=r.call.apply(r,[this].concat(a)),c(ae(n),"state",void 0),n}return C(t,[{key:"initializeState",value:function(){t._checkH3Lib(),this.state={edgeLengthKM:0,resolution:-1}}},{key:"shouldUpdateState",value:function(i){var a=i.changeFlags;return this._shouldUseHighPrecision()?a.propsOrDataChanged:a.somethingChanged}},{key:"updateState",value:function(i){var a=i.props,o=i.changeFlags;if(a.highPrecision!==!0&&(o.dataChanged||o.updateTriggersChanged&&o.updateTriggersChanged.getHexagon)){var s=this._calculateH3DataProps();this.setState(s)}this._updateVertices(this.context.viewport)}},{key:"_calculateH3DataProps",value:function(){var i=-1,a=!1,o=!1,s=(0,No.createIterable)(this.props.data),u=s.iterable,f=s.objectInfo,l=dl(u),h;try{for(l.s();!(h=l.n()).done;){var d=h.value;f.index++;var p=this.props.getHexagon(d,f),m=(0,qe.h3GetResolution)(p);if(i<0){if(i=m,!this.props.highPrecision)break}else if(i!==m){o=!0;break}if((0,qe.h3IsPentagon)(p)){a=!0;break}}}catch(v){l.e(v)}finally{l.f()}return{resolution:i,edgeLengthKM:i>=0?(0,qe.edgeLength)(i,"km"):0,hasMultipleRes:o,hasPentagon:a}}},{key:"_shouldUseHighPrecision",value:function(){if(this.props.highPrecision==="auto"){var i=this.state,a=i.resolution,o=i.hasPentagon,s=i.hasMultipleRes,u=this.context.viewport;return Boolean(u?.resolution)||s||o||a>=0&&a<=5}return this.props.highPrecision}},{key:"_updateVertices",value:function(i){if(!this._shouldUseHighPrecision()){var a=this.state,o=a.resolution,s=a.edgeLengthKM,u=a.centerHex;if(!(o<0)){var f=this.props.centerHexagon||(0,qe.geoToH3)(i.latitude,i.longitude,o);if(u!==f){if(u){var l=(0,qe.h3Distance)(u,f);if(l>=0&&l*s<nC)return}var h=i.distanceScales.unitsPerMeter,d=Og(f),p=(0,qe.h3ToGeo)(f),m=G(p,2),v=m[0],g=m[1],y=i.projectFlat([g,v]),A=G(y,2),x=A[0],b=A[1];d=d.map(function(B){var w=i.projectFlat(B);return[(w[0]-x)/h[0],(w[1]-b)/h[1]]}),this.setState({centerHex:f,vertices:d})}}}}},{key:"renderLayers",value:function(){return this._shouldUseHighPrecision()?this._renderPolygonLayer():this._renderColumnLayer()}},{key:"_getForwardProps",value:function(){var i=this.props,a=i.elevationScale,o=i.material,s=i.coverage,u=i.extruded,f=i.wireframe,l=i.stroked,h=i.filled,d=i.lineWidthUnits,p=i.lineWidthScale,m=i.lineWidthMinPixels,v=i.lineWidthMaxPixels,g=i.getFillColor,y=i.getElevation,A=i.getLineColor,x=i.getLineWidth,b=i.transitions,B=i.updateTriggers;return{elevationScale:a,extruded:u,coverage:s,wireframe:f,stroked:l,filled:h,lineWidthUnits:d,lineWidthScale:p,lineWidthMinPixels:m,lineWidthMaxPixels:v,material:o,getElevation:y,getFillColor:g,getLineColor:A,getLineWidth:x,transitions:b,updateTriggers:{getFillColor:B.getFillColor,getElevation:B.getElevation,getLineColor:B.getLineColor,getLineWidth:B.getLineWidth}}}},{key:"_renderPolygonLayer",value:function(){var i=this.props,a=i.data,o=i.getHexagon,s=i.updateTriggers,u=i.coverage,f=this.getSubLayerClass("hexagon-cell-hifi",na.PolygonLayer),l=this._getForwardProps();return l.updateTriggers.getPolygon=sC(s.getHexagon,u),new f(l,this.getSubLayerProps({id:"hexagon-cell-hifi",updateTriggers:l.updateTriggers}),{data:a,_normalize:!1,_windingOrder:"CCW",positionFormat:"XY",getPolygon:function(d,p){var m=o(d,p);return oC(Og(m,u))}})}},{key:"_renderColumnLayer",value:function(){var i=this.props,a=i.data,o=i.getHexagon,s=i.updateTriggers,u=this.getSubLayerClass("hexagon-cell",na.ColumnLayer),f=this._getForwardProps();return f.updateTriggers.getPosition=s.getHexagon,new u(f,this.getSubLayerProps({id:"hexagon-cell",flatShading:!0,updateTriggers:f.updateTriggers}),{data:a,diskResolution:6,radius:1,vertices:this.state.vertices,getPosition:aC.bind(null,o)})}}]),t}(No.CompositeLayer);c(nn,"defaultProps",uC);c(nn,"layerName","H3HexagonLayer");c(nn,"_checkH3Lib",function(){});function Ig(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=fC(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
40
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function fC(e,r){if(e){if(typeof e=="string")return Rg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rg(e,r)}}function Rg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function lC(e){var r=cC();return function(){var n=L(e),i;if(r){var a=L(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $(this,i)}}function cC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var hC={getHexagons:{type:"accessor",value:function(r){return r.hexagons}}},Uo=function(e){H(t,e);var r=lC(t);function t(){return T(this,t),r.apply(this,arguments)}return C(t,[{key:"initializeState",value:function(){nn._checkH3Lib()}},{key:"updateState",value:function(i){var a=i.props,o=i.changeFlags;if(o.dataChanged||o.updateTriggersChanged&&o.updateTriggersChanged.getHexagons){var s=a.data,u=a.getHexagons,f=[],l=(0,Lg.createIterable)(s),h=l.iterable,d=l.objectInfo,p=Ig(h),m;try{for(p.s();!(m=p.n()).done;){var v=m.value;d.index++;var g=u(v,d),y=(0,Fg.h3SetToMultiPolygon)(g,!0),A=Ig(y),x;try{for(A.s();!(x=A.n()).done;){var b=x.value;f.push(this.getSubLayerRow({polygon:b},v,d.index))}}catch(B){A.e(B)}finally{A.f()}}}catch(B){p.e(B)}finally{p.f()}this.setState({polygons:f})}}},{key:"indexToBounds",value:function(){var i=this.props,a=i.getElevation,o=i.getFillColor,s=i.getLineColor,u=i.getLineWidth;return{data:this.state.polygons,getPolygon:function(l){return l.polygon},getElevation:this.getSubLayerAccessor(a),getFillColor:this.getSubLayerAccessor(o),getLineColor:this.getSubLayerAccessor(s),getLineWidth:this.getSubLayerAccessor(u)}}}]),t}(mt);c(Uo,"layerName","H3ClusterLayer");c(Uo,"defaultProps",hC);q();Y();N();var ld=X(re()),M_=X(pl()),Gr=X(xt()),O_=X(Tt()),P_=X(jo());q();Y();N();Le();N();q();Y();N();Le();Le();function ml(e){if(typeof window<"u"&&te(window.process)==="object"&&window.process.type==="renderer"||typeof process<"u"&&te(process.versions)==="object"&&Boolean(process.versions.electron))return!0;var r=(typeof navigator>"u"?"undefined":te(navigator))==="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent,t=e||r;return!!(t&&t.indexOf("Electron")>=0)}function et(){var e=(typeof process>"u"?"undefined":te(process))==="object"&&String(process)==="[object process]"&&!process.browser;return!e||ml()}Le();var Sr={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document,process:(typeof process>"u"?"undefined":te(process))==="object"&&process};var dC=Sr.self||Sr.window||Sr.global,Kn=Sr.window||Sr.self||Sr.global,pC=Sr.document||{},an=Sr.process||{};var Ho="8.9.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function fC(e,r){if(e){if(typeof e=="string")return Rg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rg(e,r)}}function Rg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function lC(e){var r=cC();return function(){var n=L(e),i;if(r){var a=L(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $(this,i)}}function cC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var hC={getHexagons:{type:"accessor",value:function(r){return r.hexagons}}},Uo=function(e){H(t,e);var r=lC(t);function t(){return T(this,t),r.apply(this,arguments)}return C(t,[{key:"initializeState",value:function(){nn._checkH3Lib()}},{key:"updateState",value:function(i){var a=i.props,o=i.changeFlags;if(o.dataChanged||o.updateTriggersChanged&&o.updateTriggersChanged.getHexagons){var s=a.data,u=a.getHexagons,f=[],l=(0,Lg.createIterable)(s),h=l.iterable,d=l.objectInfo,p=Ig(h),m;try{for(p.s();!(m=p.n()).done;){var v=m.value;d.index++;var g=u(v,d),y=(0,Fg.h3SetToMultiPolygon)(g,!0),A=Ig(y),x;try{for(A.s();!(x=A.n()).done;){var b=x.value;f.push(this.getSubLayerRow({polygon:b},v,d.index))}}catch(B){A.e(B)}finally{A.f()}}}catch(B){p.e(B)}finally{p.f()}this.setState({polygons:f})}}},{key:"indexToBounds",value:function(){var i=this.props,a=i.getElevation,o=i.getFillColor,s=i.getLineColor,u=i.getLineWidth;return{data:this.state.polygons,getPolygon:function(l){return l.polygon},getElevation:this.getSubLayerAccessor(a),getFillColor:this.getSubLayerAccessor(o),getLineColor:this.getSubLayerAccessor(s),getLineWidth:this.getSubLayerAccessor(u)}}}]),t}(mt);c(Uo,"layerName","H3ClusterLayer");c(Uo,"defaultProps",hC);q();Y();N();var ld=X(re()),M_=X(pl()),Gr=X(xt()),O_=X(Tt()),P_=X(jo());q();Y();N();Le();N();q();Y();N();Le();Le();function ml(e){if(typeof window<"u"&&te(window.process)==="object"&&window.process.type==="renderer"||typeof process<"u"&&te(process.versions)==="object"&&Boolean(process.versions.electron))return!0;var r=(typeof navigator>"u"?"undefined":te(navigator))==="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent,t=e||r;return!!(t&&t.indexOf("Electron")>=0)}function et(){var e=(typeof process>"u"?"undefined":te(process))==="object"&&String(process)==="[object process]"&&!process.browser;return!e||ml()}Le();var Sr={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document,process:(typeof process>"u"?"undefined":te(process))==="object"&&process};var dC=Sr.self||Sr.window||Sr.global,Kn=Sr.window||Sr.self||Sr.global,pC=Sr.document||{},an=Sr.process||{};var Ho="8.9.26",Ij=et();q();Y();N();function mC(e){try{var r=window[e],t="__storage_test__";return r.setItem(t,t),r.removeItem(t),r}catch{return null}}var Gg=function(){function e(r){T(this,e);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"sessionStorage";c(this,"storage",void 0),c(this,"id",void 0),c(this,"config",{}),this.storage=mC(n),this.id=r,this.config={},Object.assign(this.config,t),this._loadConfiguration()}return C(e,[{key:"getConfiguration",value:function(){return this.config}},{key:"setConfiguration",value:function(t){return this.config={},this.updateConfiguration(t)}},{key:"updateConfiguration",value:function(t){if(Object.assign(this.config,t),this.storage){var n=JSON.stringify(this.config);this.storage.setItem(this.id,n)}return this}},{key:"_loadConfiguration",value:function(){var t={};if(this.storage){var n=this.storage.getItem(this.id);t=n?JSON.parse(n):{}}return Object.assign(this.config,t),this}}]),e}();function Ng(e){var r;return e<10?r="".concat(e.toFixed(2),"ms"):e<100?r="".concat(e.toFixed(1),"ms"):e<1e3?r="".concat(e.toFixed(0),"ms"):r="".concat((e/1e3).toFixed(2),"s"),r}function Ug(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8,t=Math.max(r-e.length,0);return"".concat(" ".repeat(t)).concat(e)}function Vo(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:600,i=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>n&&(t=Math.min(t,n/e.width));var a=e.width*t,o=e.height*t,s=["font-size:1px;","padding:".concat(Math.floor(o/2),"px ").concat(Math.floor(a/2),"px;"),"line-height:".concat(o,"px;"),"background:url(".concat(i,");"),"background-size:".concat(a,"px ").concat(o,"px;"),"color:transparent;"].join("");return["".concat(r," %c+"),s]}var zo;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(zo||(zo={}));function jg(e){return typeof e=="string"?zo[e.toUpperCase()]||zo.WHITE:e}function Hg(e,r,t){return!et&&typeof e=="string"&&(r&&(r=jg(r),e="\x1B[".concat(r,"m").concat(e,"\x1B[39m")),t&&(r=jg(t),e="\x1B[".concat(t+10,"m").concat(e,"\x1B[49m"))),e}function vC(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=gC(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
41
41
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function gC(e,r){if(e){if(typeof e=="string")return Vg(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vg(e,r)}}function Vg(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function zg(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["constructor"],t=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(t),i=vC(n),a;try{var o=function(){var u=a.value;typeof e[u]=="function"&&(r.find(function(f){return u===f})||(e[u]=e[u].bind(e)))};for(i.s();!(a=i.n()).done;)o()}catch(s){i.e(s)}finally{i.f()}}function Yn(e,r){if(!e)throw new Error(r||"Assertion failed")}function on(){var e;if(et&&"performance"in Kn){var r,t;e=Kn===null||Kn===void 0||(r=Kn.performance)===null||r===void 0||(t=r.now)===null||t===void 0?void 0:t.call(r)}else if("hrtime"in an){var n,i=an===null||an===void 0||(n=an.hrtime)===null||n===void 0?void 0:n.call(an);e=i[0]*1e3+i[1]/1e6}else e=Date.now();return e}var Zn={debug:et&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},yC={enabled:!0,level:0};function vt(){}var Wg={},Jg={once:!0},$n=function(){function e(){T(this,e);var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{id:""},t=r.id;c(this,"id",void 0),c(this,"VERSION",Ho),c(this,"_startTs",on()),c(this,"_deltaTs",on()),c(this,"_storage",void 0),c(this,"userData",{}),c(this,"LOG_THROTTLE_TIMEOUT",0),this.id=t,this._storage=new Gg("__probe-".concat(this.id,"__"),yC),this.userData={},this.timeStamp("".concat(this.id," started")),zg(this),Object.seal(this)}return C(e,[{key:"level",get:function(){return this.getLevel()},set:function(t){this.setLevel(t)}},{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((on()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((on()-this._deltaTs).toPrecision(10))}},{key:"priority",get:function(){return this.level},set:function(t){this.level=t}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._storage.updateConfiguration({enabled:t}),this}},{key:"setLevel",value:function(t){return this._storage.updateConfiguration({level:t}),this}},{key:"get",value:function(t){return this._storage.config[t]}},{key:"set",value:function(t,n){this._storage.updateConfiguration(c({},t,n))}},{key:"settings",value:function(){console.table?console.table(this._storage.config):console.log(this._storage.config)}},{key:"assert",value:function(t,n){Yn(t,n)}},{key:"warn",value:function(t){return this._getLogFunction(0,t,Zn.warn,arguments,Jg)}},{key:"error",value:function(t){return this._getLogFunction(0,t,Zn.error,arguments)}},{key:"deprecated",value:function(t,n){return this.warn("`".concat(t,"` is deprecated and will be removed in a later version. Use `").concat(n,"` instead"))}},{key:"removed",value:function(t,n){return this.error("`".concat(t,"` has been removed. Use `").concat(n,"` instead"))}},{key:"probe",value:function(t,n){return this._getLogFunction(t,n,Zn.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(t,n){return this._getLogFunction(t,n,Zn.debug,arguments)}},{key:"info",value:function(t,n){return this._getLogFunction(t,n,console.info,arguments)}},{key:"once",value:function(t,n){for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];return this._getLogFunction(t,n,Zn.debug||Zn.info,arguments,Jg)}},{key:"table",value:function(t,n,i){return n?this._getLogFunction(t,n,console.table||vt,i&&[i],{tag:TC(n)}):vt}},{key:"image",value:function(t){var n=t.logLevel,i=t.priority,a=t.image,o=t.message,s=o===void 0?"":o,u=t.scale,f=u===void 0?1:u;return this._shouldLog(n||i)?et?bC({image:a,message:s,scale:f}):_C({image:a,message:s,scale:f}):vt}},{key:"time",value:function(t,n){return this._getLogFunction(t,n,console.time?console.time:console.info)}},{key:"timeEnd",value:function(t,n){return this._getLogFunction(t,n,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(t,n){return this._getLogFunction(t,n,console.timeStamp||vt)}},{key:"group",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{collapsed:!1},a=Xg({logLevel:t,message:n,opts:i}),o=i.collapsed;return a.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(a)}},{key:"groupCollapsed",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.group(t,n,Object.assign({},i,{collapsed:!0}))}},{key:"groupEnd",value:function(t){return this._getLogFunction(t,"",console.groupEnd||vt)}},{key:"withGroup",value:function(t,n,i){this.group(t,n)();try{i()}finally{this.groupEnd(t)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(t){return this.isEnabled()&&this.getLevel()>=qg(t)}},{key:"_getLogFunction",value:function(t,n,i,a,o){if(this._shouldLog(t)){var s;o=Xg({logLevel:t,message:n,args:a,opts:o}),i=i||o.method,Yn(i),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=on();var u=o.tag||o.message;if(o.once)if(!Wg[u])Wg[u]=on();else return vt;return n=AC(this.id,o.message,o),(s=i).bind.apply(s,[console,n].concat(K(o.args)))}return vt}}]),e}();c($n,"VERSION",Ho);function qg(e){if(!e)return 0;var r;switch(te(e)){case"number":r=e;break;case"object":r=e.logLevel||e.priority||0;break;default:return 0}return Yn(Number.isFinite(r)&&r>=0),r}function Xg(e){var r=e.logLevel,t=e.message;e.logLevel=qg(r);for(var n=e.args?Array.from(e.args):[];n.length&&n.shift()!==t;);switch(te(r)){case"string":case"function":t!==void 0&&n.unshift(t),e.message=r;break;case"object":Object.assign(e,r);break;default:}typeof e.message=="function"&&(e.message=e.message());var i=te(e.message);return Yn(i==="string"||i==="object"),Object.assign(e,{args:n},e.opts)}function AC(e,r,t){if(typeof r=="string"){var n=t.time?Ug(Ng(t.total)):"";r=t.time?"".concat(e,": ").concat(n," ").concat(r):"".concat(e,": ").concat(r),r=Hg(r,t.color,t.background)}return r}function _C(e){var r=e.image,t=e.message,n=t===void 0?"":t,i=e.scale,a=i===void 0?1:i,o=null;try{o=module.require("asciify-image")}catch{}return o?function(){return o(r,{fit:"box",width:"".concat(Math.round(80*a),"%")}).then(function(s){return console.log(s)})}:vt}function bC(e){var r=e.image,t=e.message,n=t===void 0?"":t,i=e.scale,a=i===void 0?1:i;if(typeof r=="string"){var o=new Image;return o.onload=function(){var l,h=Vo(o,n,a);(l=console).log.apply(l,K(h))},o.src=r,vt}var s=r.nodeName||"";if(s.toLowerCase()==="img"){var u;return(u=console).log.apply(u,K(Vo(r,n,a))),vt}if(s.toLowerCase()==="canvas"){var f=new Image;return f.onload=function(){var l;return(l=console).log.apply(l,K(Vo(f,n,a)))},f.src=r.toDataURL(),vt}return vt}function TC(e){for(var r in e)for(var t in e[r])return t||"untitled";return"empty"}var dH=new $n({id:"@probe.gl/log"});var he=new $n({id:"luma.gl"});function Ue(e,r){if(!e)throw new Error(r||"luma.gl: assertion failed.")}var xC="Invalid WebGLRenderingContext";var EC="Requires WebGL2";function Wo(e){return typeof WebGLRenderingContext<"u"&&e instanceof WebGLRenderingContext||typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&Number.isFinite(e._version))}function pe(e){return typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&e._version===2)}function vl(e){return pe(e)?e:null}function ia(e){return Ue(Wo(e),xC),e}function We(e){return Ue(pe(e),EC),e}var aa={};function SC(e){globalThis.console&&globalThis.console.error&&globalThis.console.error(e)}function wC(e){globalThis.console&&globalThis.console.log&&globalThis.console.log(e)}function CC(e,r){aa[e]=!0,r!==void 0&&SC(r)}function BC(e){var r=e.getError;e.getError=function(){var n;do n=r.apply(e),n!==0&&(aa[n]=!0);while(n!==0);for(n in aa)if(aa[n])return delete aa[n],parseInt(n,10);return 0}}var oa=function e(r){var t=r.gl;this.ext=r,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(r.maxVertexAttribs);for(var n=0;n<this.attribs.length;n++){var i=new e.VertexAttrib(t);this.attribs[n]=i}this.maxAttrib=0};oa.VertexAttrib=function(r){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()};oa.VertexAttrib.prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var sn=function(r){var t=this;this.gl=r,BC(r);var n=this.original={getParameter:r.getParameter,enableVertexAttribArray:r.enableVertexAttribArray,disableVertexAttribArray:r.disableVertexAttribArray,bindBuffer:r.bindBuffer,getVertexAttrib:r.getVertexAttrib,vertexAttribPointer:r.vertexAttribPointer};r.getParameter=function(a){return a===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},r.enableVertexAttribArray=function(a){var o=t.currentVertexArrayObject;o.maxAttrib=Math.max(o.maxAttrib,a);var s=o.attribs[a];return s.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},r.disableVertexAttribArray=function(a){var o=t.currentVertexArrayObject;o.maxAttrib=Math.max(o.maxAttrib,a);var s=o.attribs[a];return s.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},r.bindBuffer=function(a,o){switch(a){case 34962:t.currentArrayBuffer=o;break;case 34963:t.currentVertexArrayObject.elementArrayBuffer=o;break;default:}return n.bindBuffer.apply(this,arguments)},r.getVertexAttrib=function(a,o){var s=t.currentVertexArrayObject,u=s.attribs[a];switch(o){case 34975:return u.buffer;case 34338:return u.enabled;case 34339:return u.size;case 34340:return u.stride;case 34341:return u.type;case 34922:return u.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},r.vertexAttribPointer=function(a,o,s,u,f,l){var h=t.currentVertexArrayObject;h.maxAttrib=Math.max(h.maxAttrib,a);var d=h.attribs[a];return d.buffer=t.currentArrayBuffer,d.size=o,d.type=s,d.normalized=u,d.stride=f,d.offset=l,d.recache(),n.vertexAttribPointer.apply(this,arguments)},r.instrumentExtension&&r.instrumentExtension(this,"OES_vertex_array_object"),r.canvas&&r.canvas.addEventListener("webglcontextrestored",function(){wC("OESVertexArrayObject emulation library context restored"),t.reset_()},!0),this.reset_()};sn.prototype.VERTEX_ARRAY_BINDING_OES=34229;sn.prototype.reset_=function(){var r=this.vertexArrayObjects!==void 0;if(r)for(var t=0;t<this.vertexArrayObjects.length;++t)this.vertexArrayObjects.isAlive=!1;var n=this.gl;this.maxVertexAttribs=n.getParameter(34921),this.defaultVertexArrayObject=new oa(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)};sn.prototype.createVertexArrayOES=function(){var r=new oa(this);return this.vertexArrayObjects.push(r),r};sn.prototype.deleteVertexArrayOES=function(r){r.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(r),1),this.currentVertexArrayObject===r&&this.bindVertexArrayOES(null)};sn.prototype.isVertexArrayOES=function(r){return!!(r&&r instanceof oa&&r.hasBeenBound&&r.ext===this)};sn.prototype.bindVertexArrayOES=function(r){var t=this.gl;if(r&&!r.isAlive){CC(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject");return}var n=this.original,i=this.currentVertexArrayObject;this.currentVertexArrayObject=r||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var a=this.currentVertexArrayObject;if(i!==a){(!i||a.elementArrayBuffer!==i.elementArrayBuffer)&&n.bindBuffer.call(t,34963,a.elementArrayBuffer);for(var o=this.currentArrayBuffer,s=Math.max(i?i.maxAttrib:0,a.maxAttrib),u=0;u<=s;u++){var f=a.attribs[u],l=i?i.attribs[u]:null;if((!i||f.enabled!==l.enabled)&&(f.enabled?n.enableVertexAttribArray.call(t,u):n.disableVertexAttribArray.call(t,u)),f.enabled){var h=!1;(!i||f.buffer!==l.buffer)&&(o!==f.buffer&&(n.bindBuffer.call(t,34962,f.buffer),o=f.buffer),h=!0),(h||f.cached!==l.cached)&&n.vertexAttribPointer.call(t,u,f.size,f.type,f.normalized,f.stride,f.offset)}}this.currentArrayBuffer!==o&&n.bindBuffer.call(t,34962,this.currentArrayBuffer)}};function Kg(e){if(typeof e.createVertexArray!="function"){var r=e.getSupportedExtensions;e.getSupportedExtensions=function(){var i=r.call(this)||[];return i.indexOf("OES_vertex_array_object")<0&&i.push("OES_vertex_array_object"),i};var t=e.getExtension;e.getExtension=function(i){var a=t.call(this,i);return a||(i!=="OES_vertex_array_object"?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new sn(this)),this.__OESVertexArrayObject))}}}N();N();var fe,Yg="OES_element_index",Zg="WEBGL_draw_buffers",MC="EXT_disjoint_timer_query",OC="EXT_disjoint_timer_query_webgl2",PC="EXT_texture_filter_anisotropic",$g="WEBGL_debug_renderer_info",IC=35723,RC=4352,FC=36795,LC=34047,kC=37445,DC=37446,Ee=function(r){return pe(r)?void 0:0},GC=(fe={},c(fe,3074,function(r){return pe(r)?void 0:36064}),c(fe,IC,function(e){return pe(e)?void 0:RC}),c(fe,35977,Ee),c(fe,32937,Ee),c(fe,FC,function(e,r){var t=pe(e)?e.getExtension(OC):e.getExtension(MC);return t&&t.GPU_DISJOINT_EXT?r(t.GPU_DISJOINT_EXT):0}),c(fe,kC,function(e,r){var t=e.getExtension($g);return r(t&&t.UNMASKED_VENDOR_WEBGL||7936)}),c(fe,DC,function(e,r){var t=e.getExtension($g);return r(t&&t.UNMASKED_RENDERER_WEBGL||7937)}),c(fe,LC,function(e,r){var t=e.luma.extensions[PC];return t?r(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1}),c(fe,32883,Ee),c(fe,35071,Ee),c(fe,37447,Ee),c(fe,36063,function(r,t){if(!pe(r)){var n=r.getExtension(Zg);return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}}),c(fe,35379,Ee),c(fe,35374,Ee),c(fe,35377,Ee),c(fe,34852,function(r){if(!pe(r)){var t=r.getExtension(Zg);return t?t.MAX_DRAW_BUFFERS_WEBGL:0}}),c(fe,36203,function(r){return r.getExtension(Yg)?2147483647:65535}),c(fe,33001,function(r){return r.getExtension(Yg)?16777216:65535}),c(fe,33e3,function(r){return 16777216}),c(fe,37157,Ee),c(fe,35373,Ee),c(fe,35657,Ee),c(fe,36183,Ee),c(fe,37137,Ee),c(fe,34045,Ee),c(fe,35978,Ee),c(fe,35979,Ee),c(fe,35968,Ee),c(fe,35376,Ee),c(fe,35375,Ee),c(fe,35659,Ee),c(fe,37154,Ee),c(fe,35371,Ee),c(fe,35658,Ee),c(fe,35076,Ee),c(fe,35077,Ee),c(fe,35380,Ee),fe);function Qg(e,r,t){var n=GC[t],i=typeof n=="function"?n(e,r,t):n,a=i!==void 0?i:r(t);return a}var Qn,NC="OES_vertex_array_object",ey="ANGLE_instanced_arrays",UC="WEBGL_draw_buffers",jC="EXT_disjoint_timer_query",HC="EXT_texture_filter_anisotropic",VC="VertexArray requires WebGL2 or OES_vertex_array_object extension";function zC(e,r){return{webgl2:pe(e),ext:e.getExtension(r)}}var gl=(Qn={},c(Qn,NC,{meta:{suffix:"OES"},createVertexArray:function(){Ue(!1,VC)},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),c(Qn,ey,{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(r,t){Ue(t===0,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),c(Qn,UC,{meta:{suffix:"WEBGL"},drawBuffers:function(){Ue(!1)}}),c(Qn,jC,{meta:{suffix:"EXT"},createQuery:function(){Ue(!1)},deleteQuery:function(){Ue(!1)},beginQuery:function(){Ue(!1)},endQuery:function(){},getQuery:function(r,t){return this.getQueryObject(r,t)},getQueryParameter:function(r,t){return this.getQueryObject(r,t)},getQueryObject:function(){}}),Qn),Jo={readBuffer:function(r,t,n){pe(r)&&t(n)},getVertexAttrib:function(r,t,n,i){var a=zC(r,ey),o=a.webgl2,s=a.ext,u;switch(i){case 35069:u=o?void 0:!1;break;case 35070:u=!o&&!s?0:void 0;break;default:}return u!==void 0?u:t(n,i)},getProgramParameter:function(r,t,n,i){if(!pe(r))switch(i){case 35967:return 35981;case 35971:return 0;case 35382:return 0;default:}return t(n,i)},getInternalformatParameter:function(r,t,n,i,a){if(!pe(r))switch(a){case 32937:return new Int32Array([0]);default:}return r.getInternalformatParameter(n,i,a)},getTexParameter:function(r,t,n,i){switch(i){case 34046:var a=r.luma.extensions,o=a[HC];i=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046;break;default:}return t(n,i)},getParameter:Qg,hint:function(r,t,n,i){return t(n,i)}};function ry(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=WC(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
42
42
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function WC(e,r){if(e){if(typeof e=="string")return ty(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ty(e,r)}}function ty(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ny(e){e.luma=e.luma||{};var r=e.luma;return r.polyfilled||(Kg(e),JC(e),qC(e,gl),XC(e,{target:r,target2:e}),r.polyfilled=!0),e}globalThis.polyfillContext=ny;function JC(e){e.luma.extensions={};var r=e.getSupportedExtensions()||[],t=ry(r),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;e.luma[i]=e.getExtension(i)}}catch(a){t.e(a)}finally{t.f()}}function XC(e,r){var t=r.target,n=r.target2;Object.keys(Jo).forEach(function(i){if(typeof Jo[i]=="function"){var a=e[i]?e[i].bind(e):function(){},o=Jo[i].bind(null,e,a);t[i]=o,n[i]=o}})}function qC(e,r){var t=ry(Object.getOwnPropertyNames(r)),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i!=="overrides"&&KC(e,{extension:i,target:e.luma,target2:e})}}catch(a){t.e(a)}finally{t.f()}}function KC(e,r){var t=r.extension,n=r.target,i=r.target2,a=gl[t];Ue(a);for(var o=a.meta,s=o===void 0?{}:o,u=s.suffix,f=u===void 0?"":u,l=e.getExtension(t),h=function(){var v=p[d],g="".concat(v).concat(f),y=null;v==="meta"||typeof e[v]=="function"||(l&&typeof l[g]=="function"?y=function(){return l[g].apply(l,arguments)}:typeof a[v]=="function"&&(y=a[v].bind(n))),y&&(n[v]=y,i[v]=y)},d=0,p=Object.keys(a);d<p.length;d++)h()}se();N();var Q,z,gt,Xo=(Q={},c(Q,3042,!1),c(Q,32773,new Float32Array([0,0,0,0])),c(Q,32777,32774),c(Q,34877,32774),c(Q,32969,1),c(Q,32968,0),c(Q,32971,1),c(Q,32970,0),c(Q,3106,new Float32Array([0,0,0,0])),c(Q,3107,[!0,!0,!0,!0]),c(Q,2884,!1),c(Q,2885,1029),c(Q,2929,!1),c(Q,2931,1),c(Q,2932,513),c(Q,2928,new Float32Array([0,1])),c(Q,2930,!0),c(Q,3024,!0),c(Q,36006,null),c(Q,2886,2305),c(Q,33170,4352),c(Q,2849,1),c(Q,32823,!1),c(Q,32824,0),c(Q,10752,0),c(Q,32938,1),c(Q,32939,!1),c(Q,3089,!1),c(Q,3088,new Int32Array([0,0,1024,1024])),c(Q,2960,!1),c(Q,2961,0),c(Q,2968,4294967295),c(Q,36005,4294967295),c(Q,2962,519),c(Q,2967,0),c(Q,2963,4294967295),c(Q,34816,519),c(Q,36003,0),c(Q,36004,4294967295),c(Q,2964,7680),c(Q,2965,7680),c(Q,2966,7680),c(Q,34817,7680),c(Q,34818,7680),c(Q,34819,7680),c(Q,2978,[0,0,1024,1024]),c(Q,3333,4),c(Q,3317,4),c(Q,37440,!1),c(Q,37441,!1),c(Q,37443,37444),c(Q,35723,4352),c(Q,36010,null),c(Q,35977,!1),c(Q,3330,0),c(Q,3332,0),c(Q,3331,0),c(Q,3314,0),c(Q,32878,0),c(Q,3316,0),c(Q,3315,0),c(Q,32877,0),Q),wr=function(r,t,n){return t?r.enable(n):r.disable(n)},iy=function(r,t,n){return r.hint(n,t)},ht=function(r,t,n){return r.pixelStorei(n,t)},YC=function(r,t){var n=pe(r)?36009:36160;return r.bindFramebuffer(n,t)},ZC=function(r,t){return r.bindFramebuffer(36008,t)};function sa(e){return Array.isArray(e)||ArrayBuffer.isView(e)}var ay=(z={},c(z,3042,wr),c(z,32773,function(r,t){return r.blendColor.apply(r,K(t))}),c(z,32777,"blendEquation"),c(z,34877,"blendEquation"),c(z,32969,"blendFunc"),c(z,32968,"blendFunc"),c(z,32971,"blendFunc"),c(z,32970,"blendFunc"),c(z,3106,function(r,t){return r.clearColor.apply(r,K(t))}),c(z,3107,function(r,t){return r.colorMask.apply(r,K(t))}),c(z,2884,wr),c(z,2885,function(r,t){return r.cullFace(t)}),c(z,2929,wr),c(z,2931,function(r,t){return r.clearDepth(t)}),c(z,2932,function(r,t){return r.depthFunc(t)}),c(z,2928,function(r,t){return r.depthRange.apply(r,K(t))}),c(z,2930,function(r,t){return r.depthMask(t)}),c(z,3024,wr),c(z,35723,iy),c(z,36006,YC),c(z,2886,function(r,t){return r.frontFace(t)}),c(z,33170,iy),c(z,2849,function(r,t){return r.lineWidth(t)}),c(z,32823,wr),c(z,32824,"polygonOffset"),c(z,10752,"polygonOffset"),c(z,35977,wr),c(z,32938,"sampleCoverage"),c(z,32939,"sampleCoverage"),c(z,3089,wr),c(z,3088,function(r,t){return r.scissor.apply(r,K(t))}),c(z,2960,wr),c(z,2961,function(r,t){return r.clearStencil(t)}),c(z,2968,function(r,t){return r.stencilMaskSeparate(1028,t)}),c(z,36005,function(r,t){return r.stencilMaskSeparate(1029,t)}),c(z,2962,"stencilFuncFront"),c(z,2967,"stencilFuncFront"),c(z,2963,"stencilFuncFront"),c(z,34816,"stencilFuncBack"),c(z,36003,"stencilFuncBack"),c(z,36004,"stencilFuncBack"),c(z,2964,"stencilOpFront"),c(z,2965,"stencilOpFront"),c(z,2966,"stencilOpFront"),c(z,34817,"stencilOpBack"),c(z,34818,"stencilOpBack"),c(z,34819,"stencilOpBack"),c(z,2978,function(r,t){return r.viewport.apply(r,K(t))}),c(z,3333,ht),c(z,3317,ht),c(z,37440,ht),c(z,37441,ht),c(z,37443,ht),c(z,3330,ht),c(z,3332,ht),c(z,3331,ht),c(z,36010,ZC),c(z,3314,ht),c(z,32878,ht),c(z,3316,ht),c(z,3315,ht),c(z,32877,ht),c(z,"framebuffer",function(r,t){var n=t&&"handle"in t?t.handle:t;return r.bindFramebuffer(36160,n)}),c(z,"blend",function(r,t){return t?r.enable(3042):r.disable(3042)}),c(z,"blendColor",function(r,t){return r.blendColor.apply(r,K(t))}),c(z,"blendEquation",function(r,t){t=sa(t)?t:[t,t],r.blendEquationSeparate.apply(r,K(t))}),c(z,"blendFunc",function(r,t){t=sa(t)&&t.length===2?[].concat(K(t),K(t)):t,r.blendFuncSeparate.apply(r,K(t))}),c(z,"clearColor",function(r,t){return r.clearColor.apply(r,K(t))}),c(z,"clearDepth",function(r,t){return r.clearDepth(t)}),c(z,"clearStencil",function(r,t){return r.clearStencil(t)}),c(z,"colorMask",function(r,t){return r.colorMask.apply(r,K(t))}),c(z,"cull",function(r,t){return t?r.enable(2884):r.disable(2884)}),c(z,"cullFace",function(r,t){return r.cullFace(t)}),c(z,"depthTest",function(r,t){return t?r.enable(2929):r.disable(2929)}),c(z,"depthFunc",function(r,t){return r.depthFunc(t)}),c(z,"depthMask",function(r,t){return r.depthMask(t)}),c(z,"depthRange",function(r,t){return r.depthRange.apply(r,K(t))}),c(z,"dither",function(r,t){return t?r.enable(3024):r.disable(3024)}),c(z,"derivativeHint",function(r,t){r.hint(35723,t)}),c(z,"frontFace",function(r,t){return r.frontFace(t)}),c(z,"mipmapHint",function(r,t){return r.hint(33170,t)}),c(z,"lineWidth",function(r,t){return r.lineWidth(t)}),c(z,"polygonOffsetFill",function(r,t){return t?r.enable(32823):r.disable(32823)}),c(z,"polygonOffset",function(r,t){return r.polygonOffset.apply(r,K(t))}),c(z,"sampleCoverage",function(r,t){return r.sampleCoverage.apply(r,K(t))}),c(z,"scissorTest",function(r,t){return t?r.enable(3089):r.disable(3089)}),c(z,"scissor",function(r,t){return r.scissor.apply(r,K(t))}),c(z,"stencilTest",function(r,t){return t?r.enable(2960):r.disable(2960)}),c(z,"stencilMask",function(r,t){t=sa(t)?t:[t,t];var n=t,i=G(n,2),a=i[0],o=i[1];r.stencilMaskSeparate(1028,a),r.stencilMaskSeparate(1029,o)}),c(z,"stencilFunc",function(r,t){t=sa(t)&&t.length===3?[].concat(K(t),K(t)):t;var n=t,i=G(n,6),a=i[0],o=i[1],s=i[2],u=i[3],f=i[4],l=i[5];r.stencilFuncSeparate(1028,a,o,s),r.stencilFuncSeparate(1029,u,f,l)}),c(z,"stencilOp",function(r,t){t=sa(t)&&t.length===3?[].concat(K(t),K(t)):t;var n=t,i=G(n,6),a=i[0],o=i[1],s=i[2],u=i[3],f=i[4],l=i[5];r.stencilOpSeparate(1028,a,o,s),r.stencilOpSeparate(1029,u,f,l)}),c(z,"viewport",function(r,t){return r.viewport.apply(r,K(t))}),z);function ke(e,r,t){return r[e]!==void 0?r[e]:t[e]}var oy={blendEquation:function(r,t,n){return r.blendEquationSeparate(ke(32777,t,n),ke(34877,t,n))},blendFunc:function(r,t,n){return r.blendFuncSeparate(ke(32969,t,n),ke(32968,t,n),ke(32971,t,n),ke(32970,t,n))},polygonOffset:function(r,t,n){return r.polygonOffset(ke(32824,t,n),ke(10752,t,n))},sampleCoverage:function(r,t,n){return r.sampleCoverage(ke(32938,t,n),ke(32939,t,n))},stencilFuncFront:function(r,t,n){return r.stencilFuncSeparate(1028,ke(2962,t,n),ke(2967,t,n),ke(2963,t,n))},stencilFuncBack:function(r,t,n){return r.stencilFuncSeparate(1029,ke(34816,t,n),ke(36003,t,n),ke(36004,t,n))},stencilOpFront:function(r,t,n){return r.stencilOpSeparate(1028,ke(2964,t,n),ke(2965,t,n),ke(2966,t,n))},stencilOpBack:function(r,t,n){return r.stencilOpSeparate(1029,ke(34817,t,n),ke(34818,t,n),ke(34819,t,n))}},yl={enable:function(r,t){return r(c({},t,!0))},disable:function(r,t){return r(c({},t,!1))},pixelStorei:function(r,t,n){return r(c({},t,n))},hint:function(r,t,n){return r(c({},t,n))},bindFramebuffer:function(r,t,n){var i;switch(t){case 36160:return r((i={},c(i,36006,n),c(i,36010,n),i));case 36009:return r(c({},36006,n));case 36008:return r(c({},36010,n));default:return null}},blendColor:function(r,t,n,i,a){return r(c({},32773,new Float32Array([t,n,i,a])))},blendEquation:function(r,t){var n;return r((n={},c(n,32777,t),c(n,34877,t),n))},blendEquationSeparate:function(r,t,n){var i;return r((i={},c(i,32777,t),c(i,34877,n),i))},blendFunc:function(r,t,n){var i;return r((i={},c(i,32969,t),c(i,32968,n),c(i,32971,t),c(i,32970,n),i))},blendFuncSeparate:function(r,t,n,i,a){var o;return r((o={},c(o,32969,t),c(o,32968,n),c(o,32971,i),c(o,32970,a),o))},clearColor:function(r,t,n,i,a){return r(c({},3106,new Float32Array([t,n,i,a])))},clearDepth:function(r,t){return r(c({},2931,t))},clearStencil:function(r,t){return r(c({},2961,t))},colorMask:function(r,t,n,i,a){return r(c({},3107,[t,n,i,a]))},cullFace:function(r,t){return r(c({},2885,t))},depthFunc:function(r,t){return r(c({},2932,t))},depthRange:function(r,t,n){return r(c({},2928,new Float32Array([t,n])))},depthMask:function(r,t){return r(c({},2930,t))},frontFace:function(r,t){return r(c({},2886,t))},lineWidth:function(r,t){return r(c({},2849,t))},polygonOffset:function(r,t,n){var i;return r((i={},c(i,32824,t),c(i,10752,n),i))},sampleCoverage:function(r,t,n){var i;return r((i={},c(i,32938,t),c(i,32939,n),i))},scissor:function(r,t,n,i,a){return r(c({},3088,new Int32Array([t,n,i,a])))},stencilMask:function(r,t){var n;return r((n={},c(n,2968,t),c(n,36005,t),n))},stencilMaskSeparate:function(r,t,n){return r(c({},t===1028?2968:36005,n))},stencilFunc:function(r,t,n,i){var a;return r((a={},c(a,2962,t),c(a,2967,n),c(a,2963,i),c(a,34816,t),c(a,36003,n),c(a,36004,i),a))},stencilFuncSeparate:function(r,t,n,i,a){var o;return r((o={},c(o,t===1028?2962:34816,n),c(o,t===1028?2967:36003,i),c(o,t===1028?2963:36004,a),o))},stencilOp:function(r,t,n,i){var a;return r((a={},c(a,2964,t),c(a,2965,n),c(a,2966,i),c(a,34817,t),c(a,34818,n),c(a,34819,i),a))},stencilOpSeparate:function(r,t,n,i,a){var o;return r((o={},c(o,t===1028?2964:34817,n),c(o,t===1028?2965:34818,i),c(o,t===1028?2966:34819,a),o))},viewport:function(r,t,n,i,a){return r(c({},2978,[t,n,i,a]))}},Ht=function(r,t){return r.isEnabled(t)},Al=(gt={},c(gt,3042,Ht),c(gt,2884,Ht),c(gt,2929,Ht),c(gt,3024,Ht),c(gt,32823,Ht),c(gt,32926,Ht),c(gt,32928,Ht),c(gt,3089,Ht),c(gt,2960,Ht),c(gt,35977,Ht),gt);q();Y();function _l(e){for(var r in e)return!1;return!0}function sy(e,r){if(e===r)return!0;var t=Array.isArray(e)||ArrayBuffer.isView(e),n=Array.isArray(r)||ArrayBuffer.isView(r);if(t&&n&&e.length===r.length){for(var i=0;i<e.length;++i)if(e[i]!==r[i])return!1;return!0}return!1}function uy(e,r){var t=e[r].bind(e);e[r]=function(){var i=arguments.length<=0?void 0:arguments[0];return i in e.state.cache&&e.state.enable?e.state.cache[i]:t.apply(void 0,arguments)},Object.defineProperty(e[r],"name",{value:"".concat(r,"-from-cache"),configurable:!1})}function $C(e,r,t){var n=e[r].bind(e);e[r]=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u=t.apply(void 0,[e.state._updateCache].concat(o)),f=u.valueChanged,l=u.oldValue;return f&&n.apply(void 0,o),l},Object.defineProperty(e[r],"name",{value:"".concat(r,"-to-cache"),configurable:!1})}function QC(e){var r=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(r(n),e.state.program=n)}}var e2=function(){function e(r){T(this,e);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.copyState,i=n===void 0?!1:n,a=t.log,o=a===void 0?function(){}:a;this.gl=r,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?xl(r):Object.assign({},Xo),this.log=o,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return C(e,[{key:"push",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.stateStack.push({})}},{key:"pop",value:function(){Ue(this.stateStack.length>0);var t=this.stateStack[this.stateStack.length-1];Ko(this.gl,t),this.stateStack.pop()}},{key:"_updateCache",value:function(t){var n=!1,i,a=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in t){Ue(o!==void 0);var s=t[o],u=this.cache[o];sy(s,u)||(n=!0,i=u,a&&!(o in a)&&(a[o]=u),this.cache[o]=s)}return{valueChanged:n,oldValue:i}}}]),e}();function bl(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.enable,n=t===void 0?!0:t,i=r.copyState;if(Ue(i!==void 0),!e.state){var a=globalThis.polyfillContext;a&&a(e),e.state=new e2(e,{copyState:i}),QC(e);for(var o in yl){var s=yl[o];$C(e,o,s)}uy(e,"getParameter"),uy(e,"isEnabled")}return e.state.enable=n,e}function Tl(e){e.state||bl(e,{copyState:!1}),e.state.push()}function qo(e){Ue(e.state),e.state.pop()}function t2(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=r2(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
43
43
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var f=t.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function r2(e,r){if(e){if(typeof e=="string")return fy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fy(e,r)}}function fy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Ko(e,r){if(Ue(Wo(e),"setParameters requires a WebGL context"),!_l(r)){var t={};for(var n in r){var i=Number(n),a=ay[n];a&&(typeof a=="string"?t[a]=!0:a(e,r[n],i))}var o=e.state&&e.state.cache;if(o)for(var s in t){var u=oy[s];u(e,r,o)}}}function xl(e,r){if(r=r||Xo,typeof r=="number"){var t=r,n=Al[t];return n?n(e,t):e.getParameter(t)}var i=Array.isArray(r)?r:Object.keys(r),a={},o=t2(i),s;try{for(o.s();!(s=o.n()).done;){var u=s.value,f=Al[u];a[u]=f?f(e,Number(u)):e.getParameter(Number(u))}}catch(l){o.e(l)}finally{o.f()}return a}function tr(e,r,t){if(_l(r))return t(e);var n=r.nocatch,i=n===void 0?!0:n;Tl(e),Ko(e,r);var a;if(i)a=t(e),qo(e);else try{a=t(e)}finally{qo(e)}return a}var sV=et();q();Y();q();Y();N();q();Y();N();function ua(){var e;if(typeof window<"u"&&window.performance)e=window.performance.now();else if(typeof process<"u"&&process.hrtime){var r=process.hrtime();e=r[0]*1e3+r[1]/1e6}else e=Date.now();return e}var Yo=function(){function e(r,t){T(this,e),c(this,"name",void 0),c(this,"type",void 0),c(this,"sampleSize",1),c(this,"time",void 0),c(this,"count",void 0),c(this,"samples",void 0),c(this,"lastTiming",void 0),c(this,"lastSampleTime",void 0),c(this,"lastSampleCount",void 0),c(this,"_count",0),c(this,"_time",0),c(this,"_samples",0),c(this,"_startTime",0),c(this,"_timerPending",!1),this.name=r,this.type=t,this.reset()}return C(e,[{key:"setSampleSize",value:function(t){return this.sampleSize=t,this}},{key:"incrementCount",value:function(){return this.addCount(1),this}},{key:"decrementCount",value:function(){return this.subtractCount(1),this}},{key:"addCount",value:function(t){return this._count+=t,this._samples++,this._checkSampling(),this}},{key:"subtractCount",value:function(t){return this._count-=t,this._samples++,this._checkSampling(),this}},{key:"addTime",value:function(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}},{key:"timeStart",value:function(){return this._startTime=ua(),this._timerPending=!0,this}},{key:"timeEnd",value:function(){return this._timerPending?(this.addTime(ua()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}},{key:"getSampleAverageCount",value:function(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}},{key:"getSampleAverageTime",value:function(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}},{key:"getSampleHz",value:function(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}},{key:"getAverageCount",value:function(){return this.samples>0?this.count/this.samples:0}},{key:"getAverageTime",value:function(){return this.samples>0?this.time/this.samples:0}},{key:"getHz",value:function(){return this.time>0?this.samples/(this.time/1e3):0}},{key:"reset",value:function(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}},{key:"_checkSampling",value:function(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}]),e}();var El=function(){function e(r){T(this,e),c(this,"id",void 0),c(this,"stats",{}),this.id=r.id,this.stats={},this._initializeStats(r.stats),Object.seal(this)}return C(e,[{key:"get",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"count";return this._getOrCreate({name:t,type:n})}},{key:"size",get:function(){return Object.keys(this.stats).length}},{key:"reset",value:function(){for(var t in this.stats)this.stats[t].reset();return this}},{key:"forEach",value:function(t){for(var n in this.stats)t(this.stats[n])}},{key:"getTable",value:function(){var t={};return this.forEach(function(n){t[n.name]={time:n.time||0,count:n.count||0,average:n.getAverageTime()||0,hz:n.getHz()||0}}),t}},{key:"_initializeStats",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(i){return t._getOrCreate(i)})}},{key:"_getOrCreate",value:function(t){if(!t||!t.name)return null;var n=t.name,i=t.type;return this.stats[n]||(t instanceof Yo?this.stats[n]=t:this.stats[n]=new Yo(n,i)),this.stats[n]}}]),e}();var fa="8.5.20",n2="set luma.log.level=1 (or higher) to trace rendering",i2=function(){function e(){T(this,e),this.stats=new Map}return C(e,[{key:"get",value:function(t){return this.stats.has(t)||this.stats.set(t,new El({id:t})),this.stats.get(t)}}]),e}(),ei=new i2;if(globalThis.luma&&globalThis.luma.VERSION!==fa)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(globalThis.luma.VERSION," vs ").concat(fa));globalThis.luma||(et()&&he.log(1,"luma.gl ".concat(fa," - ").concat(n2))(),globalThis.luma=globalThis.luma||{VERSION:fa,version:fa,log:he,stats:ei,globals:{modules:{},nodeIO:{}}});var zV=globalThis.luma;N();q();Y();se();q();Y();q();Y();function ne(e,r){if(!e)throw new Error(r||"luma.gl: assertion failed.")}function Zo(e,r){if(typeof r!="string")return r;var t=Number(r);if(!isNaN(t))return t;r=r.replace(/^.*\./,"");var n=e[r];return ne(n!==void 0,"Accessing undefined constant GL.".concat(r)),n}function un(e,r){r=Number(r);for(var t in e)if(e[t]===r)return"GL.".concat(t);return String(r)}var Sl={};function $o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"id";Sl[e]=Sl[e]||1;var r=Sl[e]++;return"".concat(e,"-").concat(r)}function wl(e){return ne(typeof e=="number","Input must be a number"),e&&(e&e-1)===0}function ly(e,r,t,n){var i="See luma.gl ".concat(t," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),a=Object.getPrototypeOf(e);n.forEach(function(o){a.methodName||(a[o]=function(){throw he.removed("Calling removed method ".concat(r,".").concat(o,": "),i)(),new Error(o)})})}function a2(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=o2(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/geo-layers",
|
|
3
3
|
"description": "deck.gl layers supporting geospatial use cases and GIS formats",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "8.9.
|
|
5
|
+
"version": "8.9.26",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"@loaders.gl/core": "^3.4.2",
|
|
57
57
|
"@luma.gl/core": "^8.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "3ed60c2dc561886f3a4f2f774977982215a5b1e3"
|
|
60
60
|
}
|