@deck.gl/arcgis 8.9.0 → 8.9.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.
- package/dist/dist.dev.js +19 -4
- package/dist.min.js +11 -3
- package/package.json +2 -2
package/dist/dist.dev.js
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if (typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
|
+
else if (typeof exports === 'object') exports['deck'] = factory();
|
|
6
|
+
else root['deck'] = factory();})(globalThis, function () {
|
|
1
7
|
"use strict";
|
|
2
|
-
var
|
|
8
|
+
var __exports__ = (() => {
|
|
3
9
|
var __create = Object.create;
|
|
4
10
|
var __defProp = Object.defineProperty;
|
|
5
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
13
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
14
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var
|
|
15
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
16
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
17
|
+
}) : x)(function(x) {
|
|
18
|
+
if (typeof require !== "undefined")
|
|
19
|
+
return require.apply(this, arguments);
|
|
20
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
21
|
+
});
|
|
22
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
10
23
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
24
|
};
|
|
12
25
|
var __export = (target, all) => {
|
|
@@ -31,14 +44,14 @@ var deck = (() => {
|
|
|
31
44
|
// external-global-plugin:@deck.gl/core
|
|
32
45
|
var require_core = __commonJS({
|
|
33
46
|
"external-global-plugin:@deck.gl/core"(exports, module) {
|
|
34
|
-
module.exports =
|
|
47
|
+
module.exports = typeof __require === "function" ? require_core() : null;
|
|
35
48
|
}
|
|
36
49
|
});
|
|
37
50
|
|
|
38
51
|
// external-global-plugin:@luma.gl/core
|
|
39
52
|
var require_core2 = __commonJS({
|
|
40
53
|
"external-global-plugin:@luma.gl/core"(exports, module) {
|
|
41
|
-
module.exports =
|
|
54
|
+
module.exports = typeof __require === "function" ? require_core2() : null;
|
|
42
55
|
}
|
|
43
56
|
});
|
|
44
57
|
|
|
@@ -560,3 +573,5 @@ var deck = (() => {
|
|
|
560
573
|
}
|
|
561
574
|
return __toCommonJS(bundle_exports);
|
|
562
575
|
})();
|
|
576
|
+
return __exports__;
|
|
577
|
+
});
|
package/dist.min.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
"use strict";var deck=(()=>{var er=Object.create;var X=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var tr=Object.getOwnPropertyNames;var nr=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ar=(e,t)=>{for(var r in t)X(e,r,{get:t[r],enumerable:!0})},K=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of tr(t))!ir.call(e,u)&&u!==r&&X(e,u,{get:()=>t[u],enumerable:!(i=rr(t,u))||i.enumerable});return e},j=(e,t,r)=>(K(e,t,"default"),r&&K(r,t,"default")),L=(e,t,r)=>(r=e!=null?er(nr(e)):{},K(t||!e||!e.__esModule?X(r,"default",{value:e,enumerable:!0}):r,e)),or=e=>K(X({},"__esModule",{value:!0}),e);var Q=E((Lr,de)=>{de.exports=globalThis.deck});var ie=E((Pr,pe)=>{function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}pe.exports=ur});var ye=E((Er,me)=>{function sr(e){if(Array.isArray(e))return e}me.exports=sr});var ge=E((Ar,we)=>{function cr(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,u=!1,f=void 0;try{for(var l=e[Symbol.iterator](),v;!(i=(v=l.next()).done)&&(r.push(v.value),!(t&&r.length===t));i=!0);}catch(p){u=!0,f=p}finally{try{!i&&l.return!=null&&l.return()}finally{if(u)throw f}}return r}}we.exports=cr});var ke=E((Ir,be)=>{function fr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}be.exports=fr});var Z=E((Or,_e)=>{var lr=ye(),hr=ge(),dr=ke();function vr(e,t){return lr(e)||hr(e,t)||dr()}_e.exports=vr});var Pe=E((Dr,Se)=>{function Le(e,t,r,i,u,f,l){try{var v=e[f](l),p=v.value}catch(g){r(g);return}v.done?t(p):Promise.resolve(p).then(i,u)}function pr(e){return function(){var t=this,r=arguments;return new Promise(function(i,u){var f=e.apply(t,r);function l(p){Le(f,i,u,l,v,"next",p)}function v(p){Le(f,i,u,l,v,"throw",p)}l(void 0)})}}Se.exports=pr});var Ae=E((Tr,ae)=>{var Ee=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,i,u=typeof Symbol=="function"?Symbol:{},f=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",v=u.toStringTag||"@@toStringTag";function p(a,n,o,d){var c=n&&n.prototype instanceof N?n:N,w=Object.create(c.prototype),_=new k(d||[]);return w._invoke=h(a,o,_),w}e.wrap=p;function g(a,n,o){try{return{type:"normal",arg:a.call(n,o)}}catch(d){return{type:"throw",arg:d}}}var F="suspendedStart",B="suspendedYield",U="executing",M="completed",S={};function N(){}function V(){}function R(){}var x={};x[f]=function(){return this};var C=Object.getPrototypeOf,q=C&&C(C(P([])));q&&q!==t&&r.call(q,f)&&(x=q);var G=R.prototype=N.prototype=Object.create(x);V.prototype=G.constructor=R,R.constructor=V,R[v]=V.displayName="GeneratorFunction";function Y(a){["next","throw","return"].forEach(function(n){a[n]=function(o){return this._invoke(n,o)}})}e.isGeneratorFunction=function(a){var n=typeof a=="function"&&a.constructor;return n?n===V||(n.displayName||n.name)==="GeneratorFunction":!1},e.mark=function(a){return Object.setPrototypeOf?Object.setPrototypeOf(a,R):(a.__proto__=R,v in a||(a[v]="GeneratorFunction")),a.prototype=Object.create(G),a},e.awrap=function(a){return{__await:a}};function s(a){function n(c,w,_,A){var O=g(a[c],a,w);if(O.type==="throw")A(O.arg);else{var I=O.arg,H=I.value;return H&&typeof H=="object"&&r.call(H,"__await")?Promise.resolve(H.__await).then(function(z){n("next",z,_,A)},function(z){n("throw",z,_,A)}):Promise.resolve(H).then(function(z){I.value=z,_(I)},function(z){return n("throw",z,_,A)})}}var o;function d(c,w){function _(){return new Promise(function(A,O){n(c,w,A,O)})}return o=o?o.then(_,_):_()}this._invoke=d}Y(s.prototype),s.prototype[l]=function(){return this},e.AsyncIterator=s,e.async=function(a,n,o,d){var c=new s(p(a,n,o,d));return e.isGeneratorFunction(n)?c:c.next().then(function(w){return w.done?w.value:c.next()})};function h(a,n,o){var d=F;return function(w,_){if(d===U)throw new Error("Generator is already running");if(d===M){if(w==="throw")throw _;return J()}for(o.method=w,o.arg=_;;){var A=o.delegate;if(A){var O=m(A,o);if(O){if(O===S)continue;return O}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(d===F)throw d=M,o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);d=U;var I=g(a,n,o);if(I.type==="normal"){if(d=o.done?M:B,I.arg===S)continue;return{value:I.arg,done:o.done}}else I.type==="throw"&&(d=M,o.method="throw",o.arg=I.arg)}}}function m(a,n){var o=a.iterator[n.method];if(o===i){if(n.delegate=null,n.method==="throw"){if(a.iterator.return&&(n.method="return",n.arg=i,m(a,n),n.method==="throw"))return S;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var d=g(o,a.iterator,n.arg);if(d.type==="throw")return n.method="throw",n.arg=d.arg,n.delegate=null,S;var c=d.arg;if(!c)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,S;if(c.done)n[a.resultName]=c.value,n.next=a.nextLoc,n.method!=="return"&&(n.method="next",n.arg=i);else return c;return n.delegate=null,S}Y(G),G[v]="Generator",G[f]=function(){return this},G.toString=function(){return"[object Generator]"};function y(a){var n={tryLoc:a[0]};1 in a&&(n.catchLoc=a[1]),2 in a&&(n.finallyLoc=a[2],n.afterLoc=a[3]),this.tryEntries.push(n)}function b(a){var n=a.completion||{};n.type="normal",delete n.arg,a.completion=n}function k(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(y,this),this.reset(!0)}e.keys=function(a){var n=[];for(var o in a)n.push(o);return n.reverse(),function d(){for(;n.length;){var c=n.pop();if(c in a)return d.value=c,d.done=!1,d}return d.done=!0,d}};function P(a){if(a){var n=a[f];if(n)return n.call(a);if(typeof a.next=="function")return a;if(!isNaN(a.length)){var o=-1,d=function c(){for(;++o<a.length;)if(r.call(a,o))return c.value=a[o],c.done=!1,c;return c.value=i,c.done=!0,c};return d.next=d}}return{next:J}}e.values=P;function J(){return{value:i,done:!0}}return k.prototype={constructor:k,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(b),!a)for(var n in this)n.charAt(0)==="t"&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=i)},stop:function(){this.done=!0;var a=this.tryEntries[0],n=a.completion;if(n.type==="throw")throw n.arg;return this.rval},dispatchException:function(a){if(this.done)throw a;var n=this;function o(O,I){return w.type="throw",w.arg=a,n.next=O,I&&(n.method="next",n.arg=i),!!I}for(var d=this.tryEntries.length-1;d>=0;--d){var c=this.tryEntries[d],w=c.completion;if(c.tryLoc==="root")return o("end");if(c.tryLoc<=this.prev){var _=r.call(c,"catchLoc"),A=r.call(c,"finallyLoc");if(_&&A){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(_){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else if(A){if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(a,n){for(var o=this.tryEntries.length-1;o>=0;--o){var d=this.tryEntries[o];if(d.tryLoc<=this.prev&&r.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var c=d;break}}c&&(a==="break"||a==="continue")&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var w=c?c.completion:{};return w.type=a,w.arg=n,c?(this.method="next",this.next=c.finallyLoc,S):this.complete(w)},complete:function(a,n){if(a.type==="throw")throw a.arg;return a.type==="break"||a.type==="continue"?this.next=a.arg:a.type==="return"?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):a.type==="normal"&&n&&(this.next=n),S},finish:function(a){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===a)return this.complete(o.completion,o.afterLoc),b(o),S}},catch:function(a){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===a){var d=o.completion;if(d.type==="throw"){var c=d.arg;b(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(a,n,o){return this.delegate={iterator:P(a),resultName:n,nextLoc:o},this.method==="next"&&(this.arg=i),S}},e}(typeof ae=="object"?ae.exports:{});try{regeneratorRuntime=Ee}catch{Function("r","regeneratorRuntime = r")(Ee)}});var Oe=E((Gr,Ie)=>{Ie.exports=Ae()});var je=E((jr,Ce)=>{Ce.exports=globalThis.luma});var ze=E((zr,qe)=>{function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}qe.exports=yr});var Ve=E((Fr,Ne)=>{function Fe(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wr(e,t,r){return t&&Fe(e.prototype,t),r&&Fe(e,r),e}Ne.exports=wr});var He=E((ne,Je)=>{(function(e,t){typeof ne=="object"&&typeof Je<"u"?t(ne):typeof define=="function"&&define.amd?define(["exports"],t):t(e.esriLoader=e.esriLoader||{})})(ne,function(e){"use strict";var t=typeof window<"u",r={Promise:t?window.Promise:void 0},i="4.21",u="next";function f(s){if(s.toLowerCase()===u)return u;var h=s&&s.match(/^(\d)\.(\d+)/);return h&&{major:parseInt(h[1],10),minor:parseInt(h[2],10)}}function l(s){return s===void 0&&(s=i),"https://js.arcgis.com/"+s+"/"}function v(s){s===void 0&&(s=i);var h=l(s),m=f(s);if(m!==u&&m.major===3){var y=m.minor<=10?"js/":"";return""+h+y+"esri/css/esri.css"}else return h+"esri/themes/light/main.css"}function p(s){var h=document.createElement("link");return h.rel="stylesheet",h.href=s,h}function g(s,h){if(h){var m=document.querySelector(h);m.parentNode.insertBefore(s,m)}else document.head.appendChild(s)}function F(s){return document.querySelector('link[href*="'+s+'"]')}function B(s){return!s||f(s)?v(s):s}function U(s,h){var m=B(s),y=F(m);return y||(y=p(m),g(y,h)),y}var M={};function S(s){var h=document.createElement("script");return h.type="text/javascript",h.src=s,h.setAttribute("data-esri-loader","loading"),h}function N(s,h,m){var y;m&&(y=V(s,m));var b=function(){h(s),s.removeEventListener("load",b,!1),y&&s.removeEventListener("error",y,!1)};s.addEventListener("load",b,!1)}function V(s,h){var m=function(y){h(y.error||new Error("There was an error attempting to load "+s.src)),s.removeEventListener("error",m,!1)};return s.addEventListener("error",m,!1),m}function R(s){s===void 0&&(s={}),M=s}function x(){return document.querySelector("script[data-esri-loader]")}function C(){var s=window.require;return s&&s.on}function q(s){s===void 0&&(s={});var h={};[M,s].forEach(function(b){for(var k in b)Object.prototype.hasOwnProperty.call(b,k)&&(h[k]=b[k])});var m=h.version,y=h.url||l(m);return new r.Promise(function(b,k){var P=x();if(P){var J=P.getAttribute("src");J!==y?k(new Error("The ArcGIS API for JavaScript is already loaded ("+J+").")):C()?b(P):N(P,b,k)}else if(C())k(new Error("The ArcGIS API for JavaScript is already loaded."));else{var a=h.css;if(a){var n=a===!0;U(n?m:a,h.insertCssBefore)}P=S(y),N(P,function(){P.setAttribute("data-esri-loader","loaded"),b(P)},k),document.body.appendChild(P)}})}function G(s){return new r.Promise(function(h,m){var y=window.require.on("error",m);window.require(s,function(){for(var b=[],k=0;k<arguments.length;k++)b[k]=arguments[k];y.remove(),h(b)})})}function Y(s,h){if(h===void 0&&(h={}),C())return G(s);var m=x(),y=m&&m.getAttribute("src");return!h.url&&y&&(h.url=y),q(h).then(function(){return G(s)})}e.utils=r,e.loadModules=Y,e.getScript=x,e.isLoaded=C,e.loadScript=q,e.setDefaultOptions=R,e.loadCss=U,Object.defineProperty(e,"__esModule",{value:!0})})});var W={};ar(W,{loadArcGISModules:()=>br});var D={},ve=L(Q());j(D,L(Q()));if(!ve.Layer)throw new Error("@deck.gl/core is not found");j(W,D);var Xe=L(ie()),Qe=L(Z()),Ze=L(Pe()),fe=L(Oe());var Re=L(ie());function De(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=mr(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var i=0,u=function(){};return{s:u,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if (typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
|
+
else if (typeof exports === 'object') exports['deck'] = factory();
|
|
6
|
+
else root['deck'] = factory();})(globalThis, function () {
|
|
7
|
+
"use strict";var __exports__=(()=>{var rr=Object.create;var Q=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var nr=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty;var Z=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ar=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},X=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of nr(t))!or.call(e,u)&&u!==r&&Q(e,u,{get:()=>t[u],enumerable:!(i=tr(t,u))||i.enumerable});return e},j=(e,t,r)=>(X(e,t,"default"),r&&X(r,t,"default")),L=(e,t,r)=>(r=e!=null?rr(ir(e)):{},X(t||!e||!e.__esModule?Q(r,"default",{value:e,enumerable:!0}):r,e)),ur=e=>X(Q({},"__esModule",{value:!0}),e);var W=E((Sr,pe)=>{pe.exports=typeof Z=="function"?W():null});var oe=E((Ar,ye)=>{function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ye.exports=sr});var ge=E((Ir,we)=>{function cr(e){if(Array.isArray(e))return e}we.exports=cr});var ke=E((Or,be)=>{function fr(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,u=!1,f=void 0;try{for(var l=e[Symbol.iterator](),v;!(i=(v=l.next()).done)&&(r.push(v.value),!(t&&r.length===t));i=!0);}catch(p){u=!0,f=p}finally{try{!i&&l.return!=null&&l.return()}finally{if(u)throw f}}return r}}be.exports=fr});var Le=E((Dr,_e)=>{function lr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}_e.exports=lr});var ee=E((Tr,Se)=>{var hr=ge(),dr=ke(),vr=Le();function pr(e,t){return hr(e)||dr(e,t)||vr()}Se.exports=pr});var Ae=E((Gr,Ee)=>{function Pe(e,t,r,i,u,f,l){try{var v=e[f](l),p=v.value}catch(g){r(g);return}v.done?t(p):Promise.resolve(p).then(i,u)}function mr(e){return function(){var t=this,r=arguments;return new Promise(function(i,u){var f=e.apply(t,r);function l(p){Pe(f,i,u,l,v,"next",p)}function v(p){Pe(f,i,u,l,v,"throw",p)}l(void 0)})}}Ee.exports=mr});var Oe=E((Rr,ae)=>{var Ie=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,i,u=typeof Symbol=="function"?Symbol:{},f=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",v=u.toStringTag||"@@toStringTag";function p(o,n,a,d){var c=n&&n.prototype instanceof N?n:N,w=Object.create(c.prototype),_=new k(d||[]);return w._invoke=h(o,a,_),w}e.wrap=p;function g(o,n,a){try{return{type:"normal",arg:o.call(n,a)}}catch(d){return{type:"throw",arg:d}}}var F="suspendedStart",B="suspendedYield",U="executing",M="completed",S={};function N(){}function V(){}function R(){}var q={};q[f]=function(){return this};var C=Object.getPrototypeOf,x=C&&C(C(P([])));x&&x!==t&&r.call(x,f)&&(q=x);var G=R.prototype=N.prototype=Object.create(q);V.prototype=G.constructor=R,R.constructor=V,R[v]=V.displayName="GeneratorFunction";function K(o){["next","throw","return"].forEach(function(n){o[n]=function(a){return this._invoke(n,a)}})}e.isGeneratorFunction=function(o){var n=typeof o=="function"&&o.constructor;return n?n===V||(n.displayName||n.name)==="GeneratorFunction":!1},e.mark=function(o){return Object.setPrototypeOf?Object.setPrototypeOf(o,R):(o.__proto__=R,v in o||(o[v]="GeneratorFunction")),o.prototype=Object.create(G),o},e.awrap=function(o){return{__await:o}};function s(o){function n(c,w,_,A){var O=g(o[c],o,w);if(O.type==="throw")A(O.arg);else{var I=O.arg,H=I.value;return H&&typeof H=="object"&&r.call(H,"__await")?Promise.resolve(H.__await).then(function(z){n("next",z,_,A)},function(z){n("throw",z,_,A)}):Promise.resolve(H).then(function(z){I.value=z,_(I)},function(z){return n("throw",z,_,A)})}}var a;function d(c,w){function _(){return new Promise(function(A,O){n(c,w,A,O)})}return a=a?a.then(_,_):_()}this._invoke=d}K(s.prototype),s.prototype[l]=function(){return this},e.AsyncIterator=s,e.async=function(o,n,a,d){var c=new s(p(o,n,a,d));return e.isGeneratorFunction(n)?c:c.next().then(function(w){return w.done?w.value:c.next()})};function h(o,n,a){var d=F;return function(w,_){if(d===U)throw new Error("Generator is already running");if(d===M){if(w==="throw")throw _;return J()}for(a.method=w,a.arg=_;;){var A=a.delegate;if(A){var O=m(A,a);if(O){if(O===S)continue;return O}}if(a.method==="next")a.sent=a._sent=a.arg;else if(a.method==="throw"){if(d===F)throw d=M,a.arg;a.dispatchException(a.arg)}else a.method==="return"&&a.abrupt("return",a.arg);d=U;var I=g(o,n,a);if(I.type==="normal"){if(d=a.done?M:B,I.arg===S)continue;return{value:I.arg,done:a.done}}else I.type==="throw"&&(d=M,a.method="throw",a.arg=I.arg)}}}function m(o,n){var a=o.iterator[n.method];if(a===i){if(n.delegate=null,n.method==="throw"){if(o.iterator.return&&(n.method="return",n.arg=i,m(o,n),n.method==="throw"))return S;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var d=g(a,o.iterator,n.arg);if(d.type==="throw")return n.method="throw",n.arg=d.arg,n.delegate=null,S;var c=d.arg;if(!c)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,S;if(c.done)n[o.resultName]=c.value,n.next=o.nextLoc,n.method!=="return"&&(n.method="next",n.arg=i);else return c;return n.delegate=null,S}K(G),G[v]="Generator",G[f]=function(){return this},G.toString=function(){return"[object Generator]"};function y(o){var n={tryLoc:o[0]};1 in o&&(n.catchLoc=o[1]),2 in o&&(n.finallyLoc=o[2],n.afterLoc=o[3]),this.tryEntries.push(n)}function b(o){var n=o.completion||{};n.type="normal",delete n.arg,o.completion=n}function k(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(y,this),this.reset(!0)}e.keys=function(o){var n=[];for(var a in o)n.push(a);return n.reverse(),function d(){for(;n.length;){var c=n.pop();if(c in o)return d.value=c,d.done=!1,d}return d.done=!0,d}};function P(o){if(o){var n=o[f];if(n)return n.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var a=-1,d=function c(){for(;++a<o.length;)if(r.call(o,a))return c.value=o[a],c.done=!1,c;return c.value=i,c.done=!0,c};return d.next=d}}return{next:J}}e.values=P;function J(){return{value:i,done:!0}}return k.prototype={constructor:k,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(b),!o)for(var n in this)n.charAt(0)==="t"&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=i)},stop:function(){this.done=!0;var o=this.tryEntries[0],n=o.completion;if(n.type==="throw")throw n.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var n=this;function a(O,I){return w.type="throw",w.arg=o,n.next=O,I&&(n.method="next",n.arg=i),!!I}for(var d=this.tryEntries.length-1;d>=0;--d){var c=this.tryEntries[d],w=c.completion;if(c.tryLoc==="root")return a("end");if(c.tryLoc<=this.prev){var _=r.call(c,"catchLoc"),A=r.call(c,"finallyLoc");if(_&&A){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(_){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else if(A){if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(o,n){for(var a=this.tryEntries.length-1;a>=0;--a){var d=this.tryEntries[a];if(d.tryLoc<=this.prev&&r.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var c=d;break}}c&&(o==="break"||o==="continue")&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var w=c?c.completion:{};return w.type=o,w.arg=n,c?(this.method="next",this.next=c.finallyLoc,S):this.complete(w)},complete:function(o,n){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&n&&(this.next=n),S},finish:function(o){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.finallyLoc===o)return this.complete(a.completion,a.afterLoc),b(a),S}},catch:function(o){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc===o){var d=a.completion;if(d.type==="throw"){var c=d.arg;b(a)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(o,n,a){return this.delegate={iterator:P(o),resultName:n,nextLoc:a},this.method==="next"&&(this.arg=i),S}},e}(typeof ae=="object"?ae.exports:{});try{regeneratorRuntime=Ie}catch{Function("r","regeneratorRuntime = r")(Ie)}});var Te=E((Cr,De)=>{De.exports=Oe()});var ce=E((qr,Me)=>{Me.exports=typeof Z=="function"?ce():null});var Fe=E((Vr,ze)=>{function wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}ze.exports=wr});var $e=E(($r,Ve)=>{function Ne(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function gr(e,t,r){return t&&Ne(e.prototype,t),r&&Ne(e,r),e}Ve.exports=gr});var We=E((ie,He)=>{(function(e,t){typeof ie=="object"&&typeof He<"u"?t(ie):typeof define=="function"&&define.amd?define(["exports"],t):t(e.esriLoader=e.esriLoader||{})})(ie,function(e){"use strict";var t=typeof window<"u",r={Promise:t?window.Promise:void 0},i="4.21",u="next";function f(s){if(s.toLowerCase()===u)return u;var h=s&&s.match(/^(\d)\.(\d+)/);return h&&{major:parseInt(h[1],10),minor:parseInt(h[2],10)}}function l(s){return s===void 0&&(s=i),"https://js.arcgis.com/"+s+"/"}function v(s){s===void 0&&(s=i);var h=l(s),m=f(s);if(m!==u&&m.major===3){var y=m.minor<=10?"js/":"";return""+h+y+"esri/css/esri.css"}else return h+"esri/themes/light/main.css"}function p(s){var h=document.createElement("link");return h.rel="stylesheet",h.href=s,h}function g(s,h){if(h){var m=document.querySelector(h);m.parentNode.insertBefore(s,m)}else document.head.appendChild(s)}function F(s){return document.querySelector('link[href*="'+s+'"]')}function B(s){return!s||f(s)?v(s):s}function U(s,h){var m=B(s),y=F(m);return y||(y=p(m),g(y,h)),y}var M={};function S(s){var h=document.createElement("script");return h.type="text/javascript",h.src=s,h.setAttribute("data-esri-loader","loading"),h}function N(s,h,m){var y;m&&(y=V(s,m));var b=function(){h(s),s.removeEventListener("load",b,!1),y&&s.removeEventListener("error",y,!1)};s.addEventListener("load",b,!1)}function V(s,h){var m=function(y){h(y.error||new Error("There was an error attempting to load "+s.src)),s.removeEventListener("error",m,!1)};return s.addEventListener("error",m,!1),m}function R(s){s===void 0&&(s={}),M=s}function q(){return document.querySelector("script[data-esri-loader]")}function C(){var s=window.require;return s&&s.on}function x(s){s===void 0&&(s={});var h={};[M,s].forEach(function(b){for(var k in b)Object.prototype.hasOwnProperty.call(b,k)&&(h[k]=b[k])});var m=h.version,y=h.url||l(m);return new r.Promise(function(b,k){var P=q();if(P){var J=P.getAttribute("src");J!==y?k(new Error("The ArcGIS API for JavaScript is already loaded ("+J+").")):C()?b(P):N(P,b,k)}else if(C())k(new Error("The ArcGIS API for JavaScript is already loaded."));else{var o=h.css;if(o){var n=o===!0;U(n?m:o,h.insertCssBefore)}P=S(y),N(P,function(){P.setAttribute("data-esri-loader","loaded"),b(P)},k),document.body.appendChild(P)}})}function G(s){return new r.Promise(function(h,m){var y=window.require.on("error",m);window.require(s,function(){for(var b=[],k=0;k<arguments.length;k++)b[k]=arguments[k];y.remove(),h(b)})})}function K(s,h){if(h===void 0&&(h={}),C())return G(s);var m=q(),y=m&&m.getAttribute("src");return!h.url&&y&&(h.url=y),x(h).then(function(){return G(s)})}e.utils=r,e.loadModules=K,e.getScript=q,e.isLoaded=C,e.loadScript=x,e.setDefaultOptions=R,e.loadCss=U,Object.defineProperty(e,"__esModule",{value:!0})})});var Y={};ar(Y,{loadArcGISModules:()=>kr});var D={},me=L(W());j(D,L(W()));if(!me.Layer)throw new Error("@deck.gl/core is not found");j(Y,D);var Qe=L(oe()),Ze=L(ee()),er=L(Ae()),he=L(Te());var je=L(oe());function Ge(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yr(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var i=0,u=function(){};return{s:u,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,l=!1,v;return{s:function(){r=r.call(e)},n:function(){var g=r.next();return f=g.done,g},e:function(g){l=!0,v=g},f:function(){try{!f&&r.return!=null&&r.return()}finally{if(l)throw v}}}}function yr(e,t){if(e){if(typeof e=="string")return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}}function Re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var Ce={layers:{},layerFilter:{},parameters:{},effects:{},pickingRadius:{},onBeforeRender:{},onAfterRender:{},onClick:{},onHover:{},onDragStart:{},onDrag:{},onDragEnd:{},onError:{},debug:{},drawPickingColors:{},getCursor:{},getTooltip:{}};function ue(e){var t=e.createSubclass({properties:Ce,constructor:function(){var i=this;this._callbacks={},this.watch(Object.keys(Ce),function(u,f,l){i.emit("change",(0,je.default)({},l,u))})},on:function(i,u){this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push(u)},emit:function(i,u){var f=this._callbacks[i];if(f){var l=Ge(f),v;try{for(l.s();!(v=l.n()).done;){var p=v.value;p(u)}}catch(g){l.e(g)}finally{l.f()}}},toJSON:function(){var i={},u=Ge(this.keys()),f;try{for(u.s();!(f=u.n()).done;){var l=f.value;this[l]!==void 0&&(i[l]=this[l])}}catch(v){u.e(v)}finally{u.f()}return i}});return t}function se(e,t,r){return t.createSubclass({properties:{deck:{},blendMode:{},effect:{}},constructor:function(){this.deck=new e},createLayerView:function(u){return u.type==="2d"?new r({view:u,layer:this}):(console.error("DeckLayer does not support SceneView at the moment. Use DeckRenderer instead."),null)}})}var xe=L(ee());var qe=L(W()),T=L(ce());function re(e){var t=this;(0,T.instrumentGLContext)(e),this.buffer=new T.Buffer(e,new Int8Array([-1,-1,1,-1,-1,1,1,1])),this.model=new T.Model(e,{vs:`
|
|
3
9
|
attribute vec2 a_pos;
|
|
4
10
|
varying vec2 v_texcoord;
|
|
5
11
|
void main(void) {
|
|
@@ -15,4 +21,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15
21
|
rgba.rgb *= rgba.a;
|
|
16
22
|
gl_FragColor = rgba;
|
|
17
23
|
}
|
|
18
|
-
`,attributes:{a_pos:this.buffer},vertexCount:4,drawMode:5}),this.deckFbo=new T.Framebuffer(e,{width:1,height:1}),this.deckInstance=new
|
|
24
|
+
`,attributes:{a_pos:this.buffer},vertexCount:4,drawMode:5}),this.deckFbo=new T.Framebuffer(e,{width:1,height:1}),this.deckInstance=new qe.Deck({viewState:{},controller:!1,gl:e,parameters:{depthTest:!0},_framebuffer:this.deckFbo,width:null,height:null,_customRender:function(i){i==="arcgis"?t.deckInstance._drawLayers(i):t.redraw()}})}function te(e){var t=this,r=e.gl,i=e.width,u=e.height,f=e.viewState,l=r.getParameter(36006),v=window.devicePixelRatio;i=Math.round(i*v),u=Math.round(u*v),this.deckFbo.resize({width:i,height:u}),this.deckInstance.setProps({viewState:f}),this.deckInstance.redraw("arcgis"),(0,T.withParameters)(r,{blend:!0,blendFunc:[1,771],framebuffer:l,viewport:[0,0,i,u]},function(){t.model.setUniforms({u_texture:t.deckFbo}).draw()})}function ne(){var e,t,r,i;(e=this.deckInstance)===null||e===void 0||e.finalize(),this.deckInstance=null,(t=this.model)===null||t===void 0||t.delete(),(r=this.buffer)===null||r===void 0||r.delete(),(i=this.deckFbo)===null||i===void 0||i.delete()}function fe(e){return e.createSubclass({properties:{deckgl:{},deckFbo:{},model:{},buffer:{}},attach:function(){var r=this,i=this.context;re.call(this,i),this.layer.deck.on("change",function(u){return r.deckInstance.setProps(u)}),this.deckInstance.setProps(this.layer.deck.toJSON())},redraw:function(){this.requestRender()},detach:function(){ne.call(this)},render:function(r){var i=(0,xe.default)(this.view.state.size,2),u=i[0],f=i[1],l=r.state;te.call(this,{gl:r.context,width:u,height:f,viewState:{latitude:this.view.center.latitude,longitude:this.view.center.longitude,zoom:this.view.featuresTilingScheme.scaleToLevel(l.scale),bearing:-l.rotation,pitch:0}})}})}var Be=L(ee()),Ue=L(Fe()),Je=L($e());function br(e,t){var r=Math.sqrt(1+Math.pow(t,2)),i=e/2/180*Math.PI;return r/2/Math.tan(i)}function le(e,t){var r=function(){function i(u,f){(0,Ue.default)(this,i),this.view=u,this.deck=new e(f)}return(0,Je.default)(i,[{key:"setup",value:function(f){var l=this,v=f.gl;re.call(this,v),this.deck.on("change",function(p){return l.deckInstance.setProps(p)}),this.deckInstance.setProps(this.deck.toJSON())}},{key:"dispose",value:function(){ne.call(this)}},{key:"redraw",value:function(){t.requestRender(this.view)}},{key:"render",value:function(f){var l=(0,Be.default)(this.view.size,2),v=l[0],p=l[1];te.call(this,{gl:f.gl,width:v,height:p,viewState:{latitude:this.view.center.latitude,longitude:this.view.center.longitude,altitude:br(this.view.camera.fov,v/p),zoom:this.view.zoom,bearing:this.view.camera.heading,pitch:this.view.camera.tilt}})}}]),i}();return r}var ve=L(We());function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,i)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ye(Object(r),!0).forEach(function(i){(0,Qe.default)(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var $=null;function kr(e,t){return de.apply(this,arguments)}function de(){return de=(0,er.default)(he.default.mark(function e(t,r){var i;return he.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return i=Array.isArray(t)?null:t,f.next=3,_r(i,r);case 3:if(!Array.isArray(t)){f.next=5;break}return f.abrupt("return",(0,ve.loadModules)(t,r).then(function(l){return Ke(Ke({},$),{},{modules:l})}));case 5:return f.abrupt("return",$);case 6:case"end":return f.stop()}},e)})),de.apply(this,arguments)}function _r(e,t){if($)return $;if(e){var r=e.layers.Layer,i=e.core.Accessor,u=e.views["2d"].layers.BaseLayerViewGL2D,f=e.views["3d"].externalRenderers;return Xe(r,i,u,f)}return(0,ve.loadModules)(["esri/layers/Layer","esri/core/Accessor","esri/views/2d/layers/BaseLayerViewGL2D","esri/views/3d/externalRenderers"],t).then(function(l){var v=(0,Ze.default)(l,4),p=v[0],g=v[1],F=v[2],B=v[3];return Xe(p,g,F,B)})}function Xe(e,t,r,i){var u=ue(t),f=fe(r),l=se(u,e,f),v=le(u,i);return $={DeckLayer:l,DeckRenderer:v},$}return ur(Y);})();
|
|
25
|
+
return __exports__;
|
|
26
|
+
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/arcgis",
|
|
3
3
|
"description": "Use deck.gl as a custom ArcGIS API for JavaScript layer",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "8.9.
|
|
5
|
+
"version": "8.9.1",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"esri-loader": "^3.3.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "42c73e852794b7e054e1933b380779383efd7c31"
|
|
41
41
|
}
|