@vitessce/gl 3.0.1 → 3.1.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/{deflate-36830437.js → deflate-c9746f58.js} +1 -1
- package/dist/{index-d34ff949.js → index-72755d2f.js} +761 -1049
- package/dist/index.js +2 -2
- package/dist/{jpeg-a66190dc.js → jpeg-cb74431a.js} +1 -1
- package/dist/{lerc-21af7ec8.js → lerc-5dffa929.js} +1 -1
- package/dist/{lzw-76194936.js → lzw-85fa08a9.js} +1 -1
- package/dist/{packbits-bf7850c4.js → packbits-6b8314bf.js} +1 -1
- package/dist/{raw-05d82ade.js → raw-f12c17bf.js} +1 -1
- package/dist/{webimage-1ceac06a.js → webimage-99c1b585.js} +1 -1
- package/package.json +2 -2
|
@@ -17961,10 +17961,10 @@ const DEFAULT_LIGHT_INTENSITY$2 = 1;
|
|
|
17961
17961
|
let idCount$2 = 0;
|
|
17962
17962
|
class AmbientLight {
|
|
17963
17963
|
constructor(props2 = {}) {
|
|
17964
|
-
_defineProperty$
|
|
17965
|
-
_defineProperty$
|
|
17966
|
-
_defineProperty$
|
|
17967
|
-
_defineProperty$
|
|
17964
|
+
_defineProperty$f(this, "id", void 0);
|
|
17965
|
+
_defineProperty$f(this, "color", void 0);
|
|
17966
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
17967
|
+
_defineProperty$f(this, "type", "ambient");
|
|
17968
17968
|
const {
|
|
17969
17969
|
color = DEFAULT_LIGHT_COLOR$2
|
|
17970
17970
|
} = props2;
|
|
@@ -17982,12 +17982,12 @@ const DEFAULT_LIGHT_DIRECTION = [0, 0, -1];
|
|
|
17982
17982
|
let idCount$1 = 0;
|
|
17983
17983
|
class DirectionalLight {
|
|
17984
17984
|
constructor(props2 = {}) {
|
|
17985
|
-
_defineProperty$
|
|
17986
|
-
_defineProperty$
|
|
17987
|
-
_defineProperty$
|
|
17988
|
-
_defineProperty$
|
|
17989
|
-
_defineProperty$
|
|
17990
|
-
_defineProperty$
|
|
17985
|
+
_defineProperty$f(this, "id", void 0);
|
|
17986
|
+
_defineProperty$f(this, "color", void 0);
|
|
17987
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
17988
|
+
_defineProperty$f(this, "type", "directional");
|
|
17989
|
+
_defineProperty$f(this, "direction", void 0);
|
|
17990
|
+
_defineProperty$f(this, "shadow", void 0);
|
|
17991
17991
|
const {
|
|
17992
17992
|
color = DEFAULT_LIGHT_COLOR$1
|
|
17993
17993
|
} = props2;
|
|
@@ -18015,9 +18015,9 @@ class Pass {
|
|
|
18015
18015
|
constructor(gl, props2 = {
|
|
18016
18016
|
id: "pass"
|
|
18017
18017
|
}) {
|
|
18018
|
-
_defineProperty$
|
|
18019
|
-
_defineProperty$
|
|
18020
|
-
_defineProperty$
|
|
18018
|
+
_defineProperty$f(this, "id", void 0);
|
|
18019
|
+
_defineProperty$f(this, "gl", void 0);
|
|
18020
|
+
_defineProperty$f(this, "props", void 0);
|
|
18021
18021
|
const {
|
|
18022
18022
|
id
|
|
18023
18023
|
} = props2;
|
|
@@ -18038,7 +18038,7 @@ class Pass {
|
|
|
18038
18038
|
class LayersPass extends Pass {
|
|
18039
18039
|
constructor(...args) {
|
|
18040
18040
|
super(...args);
|
|
18041
|
-
_defineProperty$
|
|
18041
|
+
_defineProperty$f(this, "_lastRenderIndex", -1);
|
|
18042
18042
|
}
|
|
18043
18043
|
render(options) {
|
|
18044
18044
|
const gl = this.gl;
|
|
@@ -18285,9 +18285,9 @@ function clearGLCanvas(gl) {
|
|
|
18285
18285
|
class ShadowPass extends LayersPass {
|
|
18286
18286
|
constructor(gl, props2) {
|
|
18287
18287
|
super(gl, props2);
|
|
18288
|
-
_defineProperty$
|
|
18289
|
-
_defineProperty$
|
|
18290
|
-
_defineProperty$
|
|
18288
|
+
_defineProperty$f(this, "shadowMap", void 0);
|
|
18289
|
+
_defineProperty$f(this, "depthBuffer", void 0);
|
|
18290
|
+
_defineProperty$f(this, "fbo", void 0);
|
|
18291
18291
|
this.shadowMap = new Texture2D(gl, {
|
|
18292
18292
|
width: 1,
|
|
18293
18293
|
height: 1,
|
|
@@ -18377,18 +18377,18 @@ const DEFAULT_DIRECTIONAL_LIGHT_PROPS = [{
|
|
|
18377
18377
|
const DEFAULT_SHADOW_COLOR = [0, 0, 0, 200 / 255];
|
|
18378
18378
|
class LightingEffect {
|
|
18379
18379
|
constructor(props2 = {}) {
|
|
18380
|
-
_defineProperty$
|
|
18381
|
-
_defineProperty$
|
|
18382
|
-
_defineProperty$
|
|
18383
|
-
_defineProperty$
|
|
18384
|
-
_defineProperty$
|
|
18385
|
-
_defineProperty$
|
|
18386
|
-
_defineProperty$
|
|
18387
|
-
_defineProperty$
|
|
18388
|
-
_defineProperty$
|
|
18389
|
-
_defineProperty$
|
|
18390
|
-
_defineProperty$
|
|
18391
|
-
_defineProperty$
|
|
18380
|
+
_defineProperty$f(this, "id", "lighting-effect");
|
|
18381
|
+
_defineProperty$f(this, "props", null);
|
|
18382
|
+
_defineProperty$f(this, "shadowColor", DEFAULT_SHADOW_COLOR);
|
|
18383
|
+
_defineProperty$f(this, "shadow", void 0);
|
|
18384
|
+
_defineProperty$f(this, "ambientLight", null);
|
|
18385
|
+
_defineProperty$f(this, "directionalLights", []);
|
|
18386
|
+
_defineProperty$f(this, "pointLights", []);
|
|
18387
|
+
_defineProperty$f(this, "shadowPasses", []);
|
|
18388
|
+
_defineProperty$f(this, "shadowMaps", []);
|
|
18389
|
+
_defineProperty$f(this, "dummyShadowMap", null);
|
|
18390
|
+
_defineProperty$f(this, "programManager", void 0);
|
|
18391
|
+
_defineProperty$f(this, "shadowMatrices", void 0);
|
|
18392
18392
|
for (const key in props2) {
|
|
18393
18393
|
const lightSource = props2[key];
|
|
18394
18394
|
switch (lightSource.type) {
|
|
@@ -18511,8 +18511,8 @@ class LightingEffect {
|
|
|
18511
18511
|
}
|
|
18512
18512
|
class TypedArrayManager {
|
|
18513
18513
|
constructor(options = {}) {
|
|
18514
|
-
_defineProperty$
|
|
18515
|
-
_defineProperty$
|
|
18514
|
+
_defineProperty$f(this, "_pool", []);
|
|
18515
|
+
_defineProperty$f(this, "opts", {
|
|
18516
18516
|
overAlloc: 2,
|
|
18517
18517
|
poolSize: 100
|
|
18518
18518
|
});
|
|
@@ -18697,30 +18697,30 @@ function createProjectionMatrix({
|
|
|
18697
18697
|
}
|
|
18698
18698
|
class Viewport {
|
|
18699
18699
|
constructor(opts = {}) {
|
|
18700
|
-
_defineProperty$
|
|
18701
|
-
_defineProperty$
|
|
18702
|
-
_defineProperty$
|
|
18703
|
-
_defineProperty$
|
|
18704
|
-
_defineProperty$
|
|
18705
|
-
_defineProperty$
|
|
18706
|
-
_defineProperty$
|
|
18707
|
-
_defineProperty$
|
|
18708
|
-
_defineProperty$
|
|
18709
|
-
_defineProperty$
|
|
18710
|
-
_defineProperty$
|
|
18711
|
-
_defineProperty$
|
|
18712
|
-
_defineProperty$
|
|
18713
|
-
_defineProperty$
|
|
18714
|
-
_defineProperty$
|
|
18715
|
-
_defineProperty$
|
|
18716
|
-
_defineProperty$
|
|
18717
|
-
_defineProperty$
|
|
18718
|
-
_defineProperty$
|
|
18719
|
-
_defineProperty$
|
|
18720
|
-
_defineProperty$
|
|
18721
|
-
_defineProperty$
|
|
18722
|
-
_defineProperty$
|
|
18723
|
-
_defineProperty$
|
|
18700
|
+
_defineProperty$f(this, "id", void 0);
|
|
18701
|
+
_defineProperty$f(this, "x", void 0);
|
|
18702
|
+
_defineProperty$f(this, "y", void 0);
|
|
18703
|
+
_defineProperty$f(this, "width", void 0);
|
|
18704
|
+
_defineProperty$f(this, "height", void 0);
|
|
18705
|
+
_defineProperty$f(this, "padding", void 0);
|
|
18706
|
+
_defineProperty$f(this, "isGeospatial", void 0);
|
|
18707
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
18708
|
+
_defineProperty$f(this, "focalDistance", void 0);
|
|
18709
|
+
_defineProperty$f(this, "position", void 0);
|
|
18710
|
+
_defineProperty$f(this, "modelMatrix", void 0);
|
|
18711
|
+
_defineProperty$f(this, "distanceScales", void 0);
|
|
18712
|
+
_defineProperty$f(this, "scale", void 0);
|
|
18713
|
+
_defineProperty$f(this, "center", void 0);
|
|
18714
|
+
_defineProperty$f(this, "cameraPosition", void 0);
|
|
18715
|
+
_defineProperty$f(this, "projectionMatrix", void 0);
|
|
18716
|
+
_defineProperty$f(this, "viewMatrix", void 0);
|
|
18717
|
+
_defineProperty$f(this, "viewMatrixUncentered", void 0);
|
|
18718
|
+
_defineProperty$f(this, "viewMatrixInverse", void 0);
|
|
18719
|
+
_defineProperty$f(this, "viewProjectionMatrix", void 0);
|
|
18720
|
+
_defineProperty$f(this, "pixelProjectionMatrix", void 0);
|
|
18721
|
+
_defineProperty$f(this, "pixelUnprojectionMatrix", void 0);
|
|
18722
|
+
_defineProperty$f(this, "resolution", void 0);
|
|
18723
|
+
_defineProperty$f(this, "_frustumPlanes", {});
|
|
18724
18724
|
this.id = opts.id || this.constructor.displayName || "viewport";
|
|
18725
18725
|
this.x = opts.x || 0;
|
|
18726
18726
|
this.y = opts.y || 0;
|
|
@@ -18923,7 +18923,7 @@ class Viewport {
|
|
|
18923
18923
|
}
|
|
18924
18924
|
}
|
|
18925
18925
|
}
|
|
18926
|
-
_defineProperty$
|
|
18926
|
+
_defineProperty$f(Viewport, "displayName", "Viewport");
|
|
18927
18927
|
const TILE_SIZE$4 = 512;
|
|
18928
18928
|
const EARTH_CIRCUMFERENCE = 4003e4;
|
|
18929
18929
|
const DEGREES_TO_RADIANS$3 = Math.PI / 180;
|
|
@@ -18999,15 +18999,15 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
18999
18999
|
fovy,
|
|
19000
19000
|
focalDistance: altitude
|
|
19001
19001
|
});
|
|
19002
|
-
_defineProperty$
|
|
19003
|
-
_defineProperty$
|
|
19004
|
-
_defineProperty$
|
|
19005
|
-
_defineProperty$
|
|
19006
|
-
_defineProperty$
|
|
19007
|
-
_defineProperty$
|
|
19008
|
-
_defineProperty$
|
|
19009
|
-
_defineProperty$
|
|
19010
|
-
_defineProperty$
|
|
19002
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
19003
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
19004
|
+
_defineProperty$f(this, "pitch", void 0);
|
|
19005
|
+
_defineProperty$f(this, "bearing", void 0);
|
|
19006
|
+
_defineProperty$f(this, "altitude", void 0);
|
|
19007
|
+
_defineProperty$f(this, "fovy", void 0);
|
|
19008
|
+
_defineProperty$f(this, "orthographic", void 0);
|
|
19009
|
+
_defineProperty$f(this, "_subViewports", void 0);
|
|
19010
|
+
_defineProperty$f(this, "_pseudoMeters", void 0);
|
|
19011
19011
|
this.latitude = latitude;
|
|
19012
19012
|
this.longitude = longitude;
|
|
19013
19013
|
this.zoom = zoom;
|
|
@@ -19093,7 +19093,7 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
19093
19093
|
});
|
|
19094
19094
|
}
|
|
19095
19095
|
}
|
|
19096
|
-
_defineProperty$
|
|
19096
|
+
_defineProperty$f(WebMercatorViewport2, "displayName", "WebMercatorViewport");
|
|
19097
19097
|
function lngLatZToWorldPosition(lngLatZ, viewport, offsetMode = false) {
|
|
19098
19098
|
const p = viewport.projectPosition(lngLatZ);
|
|
19099
19099
|
if (offsetMode && viewport instanceof WebMercatorViewport2) {
|
|
@@ -19189,13 +19189,13 @@ const DEFAULT_LIGHT_POSITION = [0, 0, 1];
|
|
|
19189
19189
|
let idCount = 0;
|
|
19190
19190
|
class PointLight {
|
|
19191
19191
|
constructor(props2 = {}) {
|
|
19192
|
-
_defineProperty$
|
|
19193
|
-
_defineProperty$
|
|
19194
|
-
_defineProperty$
|
|
19195
|
-
_defineProperty$
|
|
19196
|
-
_defineProperty$
|
|
19197
|
-
_defineProperty$
|
|
19198
|
-
_defineProperty$
|
|
19192
|
+
_defineProperty$f(this, "id", void 0);
|
|
19193
|
+
_defineProperty$f(this, "color", void 0);
|
|
19194
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
19195
|
+
_defineProperty$f(this, "type", "point");
|
|
19196
|
+
_defineProperty$f(this, "position", void 0);
|
|
19197
|
+
_defineProperty$f(this, "attenuation", void 0);
|
|
19198
|
+
_defineProperty$f(this, "projectedLight", void 0);
|
|
19199
19199
|
const {
|
|
19200
19200
|
color = DEFAULT_LIGHT_COLOR
|
|
19201
19201
|
} = props2;
|
|
@@ -19352,7 +19352,7 @@ function getSunCoords(dates) {
|
|
|
19352
19352
|
class SunLight extends DirectionalLight {
|
|
19353
19353
|
constructor(opts) {
|
|
19354
19354
|
super(opts);
|
|
19355
|
-
_defineProperty$
|
|
19355
|
+
_defineProperty$f(this, "timestamp", void 0);
|
|
19356
19356
|
this.timestamp = opts.timestamp;
|
|
19357
19357
|
}
|
|
19358
19358
|
getProjectedLight({
|
|
@@ -19378,7 +19378,7 @@ class SunLight extends DirectionalLight {
|
|
|
19378
19378
|
class ScreenPass extends Pass {
|
|
19379
19379
|
constructor(gl, props2) {
|
|
19380
19380
|
super(gl, props2);
|
|
19381
|
-
_defineProperty$
|
|
19381
|
+
_defineProperty$f(this, "model", void 0);
|
|
19382
19382
|
const {
|
|
19383
19383
|
module: module2,
|
|
19384
19384
|
fs: fs2,
|
|
@@ -19426,10 +19426,10 @@ class ScreenPass extends Pass {
|
|
|
19426
19426
|
}
|
|
19427
19427
|
class PostProcessEffect {
|
|
19428
19428
|
constructor(module2, props2 = {}) {
|
|
19429
|
-
_defineProperty$
|
|
19430
|
-
_defineProperty$
|
|
19431
|
-
_defineProperty$
|
|
19432
|
-
_defineProperty$
|
|
19429
|
+
_defineProperty$f(this, "id", void 0);
|
|
19430
|
+
_defineProperty$f(this, "props", void 0);
|
|
19431
|
+
_defineProperty$f(this, "module", void 0);
|
|
19432
|
+
_defineProperty$f(this, "passes", void 0);
|
|
19433
19433
|
this.id = "".concat(module2.name, "-pass");
|
|
19434
19434
|
this.props = props2;
|
|
19435
19435
|
normalizeShaderModule(module2);
|
|
@@ -19558,16 +19558,16 @@ function fillArray({
|
|
|
19558
19558
|
}
|
|
19559
19559
|
class Resource2 {
|
|
19560
19560
|
constructor(id, data, context) {
|
|
19561
|
-
_defineProperty$
|
|
19562
|
-
_defineProperty$
|
|
19563
|
-
_defineProperty$
|
|
19564
|
-
_defineProperty$
|
|
19565
|
-
_defineProperty$
|
|
19566
|
-
_defineProperty$
|
|
19567
|
-
_defineProperty$
|
|
19568
|
-
_defineProperty$
|
|
19569
|
-
_defineProperty$
|
|
19570
|
-
_defineProperty$
|
|
19561
|
+
_defineProperty$f(this, "id", void 0);
|
|
19562
|
+
_defineProperty$f(this, "context", void 0);
|
|
19563
|
+
_defineProperty$f(this, "isLoaded", void 0);
|
|
19564
|
+
_defineProperty$f(this, "persistent", void 0);
|
|
19565
|
+
_defineProperty$f(this, "_loadCount", 0);
|
|
19566
|
+
_defineProperty$f(this, "_subscribers", /* @__PURE__ */ new Set());
|
|
19567
|
+
_defineProperty$f(this, "_data", void 0);
|
|
19568
|
+
_defineProperty$f(this, "_loader", void 0);
|
|
19569
|
+
_defineProperty$f(this, "_error", void 0);
|
|
19570
|
+
_defineProperty$f(this, "_content", void 0);
|
|
19571
19571
|
this.id = id;
|
|
19572
19572
|
this.context = context;
|
|
19573
19573
|
this.setData(data);
|
|
@@ -19625,11 +19625,11 @@ class ResourceManager {
|
|
|
19625
19625
|
gl,
|
|
19626
19626
|
protocol
|
|
19627
19627
|
}) {
|
|
19628
|
-
_defineProperty$
|
|
19629
|
-
_defineProperty$
|
|
19630
|
-
_defineProperty$
|
|
19631
|
-
_defineProperty$
|
|
19632
|
-
_defineProperty$
|
|
19628
|
+
_defineProperty$f(this, "protocol", void 0);
|
|
19629
|
+
_defineProperty$f(this, "_context", void 0);
|
|
19630
|
+
_defineProperty$f(this, "_resources", void 0);
|
|
19631
|
+
_defineProperty$f(this, "_consumers", void 0);
|
|
19632
|
+
_defineProperty$f(this, "_pruneRequest", void 0);
|
|
19633
19633
|
this.protocol = protocol || "resource://";
|
|
19634
19634
|
this._context = {
|
|
19635
19635
|
gl,
|
|
@@ -19756,15 +19756,15 @@ class LayerManager {
|
|
|
19756
19756
|
viewport: _viewport,
|
|
19757
19757
|
timeline
|
|
19758
19758
|
} = {}) {
|
|
19759
|
-
_defineProperty$
|
|
19760
|
-
_defineProperty$
|
|
19761
|
-
_defineProperty$
|
|
19762
|
-
_defineProperty$
|
|
19763
|
-
_defineProperty$
|
|
19764
|
-
_defineProperty$
|
|
19765
|
-
_defineProperty$
|
|
19766
|
-
_defineProperty$
|
|
19767
|
-
_defineProperty$
|
|
19759
|
+
_defineProperty$f(this, "layers", void 0);
|
|
19760
|
+
_defineProperty$f(this, "context", void 0);
|
|
19761
|
+
_defineProperty$f(this, "resourceManager", void 0);
|
|
19762
|
+
_defineProperty$f(this, "_lastRenderedLayers", []);
|
|
19763
|
+
_defineProperty$f(this, "_needsRedraw", false);
|
|
19764
|
+
_defineProperty$f(this, "_needsUpdate", false);
|
|
19765
|
+
_defineProperty$f(this, "_nextLayers", null);
|
|
19766
|
+
_defineProperty$f(this, "_debug", false);
|
|
19767
|
+
_defineProperty$f(this, "activateViewport", (viewport) => {
|
|
19768
19768
|
debug(TRACE_ACTIVATE_VIEWPORT, this, viewport);
|
|
19769
19769
|
if (viewport) {
|
|
19770
19770
|
this.context.viewport = viewport;
|
|
@@ -19975,19 +19975,19 @@ function deepEqual$2(a2, b) {
|
|
|
19975
19975
|
}
|
|
19976
19976
|
class ViewManager {
|
|
19977
19977
|
constructor(props2) {
|
|
19978
|
-
_defineProperty$
|
|
19979
|
-
_defineProperty$
|
|
19980
|
-
_defineProperty$
|
|
19981
|
-
_defineProperty$
|
|
19982
|
-
_defineProperty$
|
|
19983
|
-
_defineProperty$
|
|
19984
|
-
_defineProperty$
|
|
19985
|
-
_defineProperty$
|
|
19986
|
-
_defineProperty$
|
|
19987
|
-
_defineProperty$
|
|
19988
|
-
_defineProperty$
|
|
19989
|
-
_defineProperty$
|
|
19990
|
-
_defineProperty$
|
|
19978
|
+
_defineProperty$f(this, "width", void 0);
|
|
19979
|
+
_defineProperty$f(this, "height", void 0);
|
|
19980
|
+
_defineProperty$f(this, "views", void 0);
|
|
19981
|
+
_defineProperty$f(this, "viewState", void 0);
|
|
19982
|
+
_defineProperty$f(this, "controllers", void 0);
|
|
19983
|
+
_defineProperty$f(this, "timeline", void 0);
|
|
19984
|
+
_defineProperty$f(this, "_viewports", void 0);
|
|
19985
|
+
_defineProperty$f(this, "_viewportMap", void 0);
|
|
19986
|
+
_defineProperty$f(this, "_isUpdating", void 0);
|
|
19987
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
19988
|
+
_defineProperty$f(this, "_needsUpdate", void 0);
|
|
19989
|
+
_defineProperty$f(this, "_eventManager", void 0);
|
|
19990
|
+
_defineProperty$f(this, "_eventCallbacks", void 0);
|
|
19991
19991
|
this.views = [];
|
|
19992
19992
|
this.width = 100;
|
|
19993
19993
|
this.height = 100;
|
|
@@ -20261,14 +20261,14 @@ function assert$4(condition, message) {
|
|
|
20261
20261
|
}
|
|
20262
20262
|
class View {
|
|
20263
20263
|
constructor(props2) {
|
|
20264
|
-
_defineProperty$
|
|
20265
|
-
_defineProperty$
|
|
20266
|
-
_defineProperty$
|
|
20267
|
-
_defineProperty$
|
|
20268
|
-
_defineProperty$
|
|
20269
|
-
_defineProperty$
|
|
20270
|
-
_defineProperty$
|
|
20271
|
-
_defineProperty$
|
|
20264
|
+
_defineProperty$f(this, "id", void 0);
|
|
20265
|
+
_defineProperty$f(this, "viewportInstance", void 0);
|
|
20266
|
+
_defineProperty$f(this, "_x", void 0);
|
|
20267
|
+
_defineProperty$f(this, "_y", void 0);
|
|
20268
|
+
_defineProperty$f(this, "_width", void 0);
|
|
20269
|
+
_defineProperty$f(this, "_height", void 0);
|
|
20270
|
+
_defineProperty$f(this, "_padding", void 0);
|
|
20271
|
+
_defineProperty$f(this, "props", void 0);
|
|
20272
20272
|
const {
|
|
20273
20273
|
id,
|
|
20274
20274
|
x: x2 = 0,
|
|
@@ -20395,11 +20395,11 @@ class View {
|
|
|
20395
20395
|
}
|
|
20396
20396
|
class Transition {
|
|
20397
20397
|
constructor(timeline) {
|
|
20398
|
-
_defineProperty$
|
|
20399
|
-
_defineProperty$
|
|
20400
|
-
_defineProperty$
|
|
20401
|
-
_defineProperty$
|
|
20402
|
-
_defineProperty$
|
|
20398
|
+
_defineProperty$f(this, "_inProgress", void 0);
|
|
20399
|
+
_defineProperty$f(this, "_handle", void 0);
|
|
20400
|
+
_defineProperty$f(this, "_timeline", void 0);
|
|
20401
|
+
_defineProperty$f(this, "time", void 0);
|
|
20402
|
+
_defineProperty$f(this, "settings", void 0);
|
|
20403
20403
|
this._inProgress = false;
|
|
20404
20404
|
this._handle = null;
|
|
20405
20405
|
this._timeline = timeline;
|
|
@@ -20473,13 +20473,13 @@ const DEFAULT_EASING = (t) => t;
|
|
|
20473
20473
|
const DEFAULT_INTERRUPTION = TRANSITION_EVENTS.BREAK;
|
|
20474
20474
|
class TransitionManager {
|
|
20475
20475
|
constructor(opts) {
|
|
20476
|
-
_defineProperty$
|
|
20477
|
-
_defineProperty$
|
|
20478
|
-
_defineProperty$
|
|
20479
|
-
_defineProperty$
|
|
20480
|
-
_defineProperty$
|
|
20481
|
-
_defineProperty$
|
|
20482
|
-
_defineProperty$
|
|
20476
|
+
_defineProperty$f(this, "getControllerState", void 0);
|
|
20477
|
+
_defineProperty$f(this, "props", void 0);
|
|
20478
|
+
_defineProperty$f(this, "propsInTransition", void 0);
|
|
20479
|
+
_defineProperty$f(this, "transition", void 0);
|
|
20480
|
+
_defineProperty$f(this, "onViewStateChange", void 0);
|
|
20481
|
+
_defineProperty$f(this, "onStateChange", void 0);
|
|
20482
|
+
_defineProperty$f(this, "_onTransitionUpdate", (transition) => {
|
|
20483
20483
|
const {
|
|
20484
20484
|
time,
|
|
20485
20485
|
settings: {
|
|
@@ -20607,9 +20607,9 @@ class TransitionManager {
|
|
|
20607
20607
|
}
|
|
20608
20608
|
class TransitionInterpolator {
|
|
20609
20609
|
constructor(opts) {
|
|
20610
|
-
_defineProperty$
|
|
20611
|
-
_defineProperty$
|
|
20612
|
-
_defineProperty$
|
|
20610
|
+
_defineProperty$f(this, "_propsToCompare", void 0);
|
|
20611
|
+
_defineProperty$f(this, "_propsToExtract", void 0);
|
|
20612
|
+
_defineProperty$f(this, "_requiredProps", void 0);
|
|
20613
20613
|
const {
|
|
20614
20614
|
compare,
|
|
20615
20615
|
extract,
|
|
@@ -20670,7 +20670,7 @@ class LinearInterpolator extends TransitionInterpolator {
|
|
|
20670
20670
|
required: DEFAULT_REQUIRED_PROPS
|
|
20671
20671
|
};
|
|
20672
20672
|
super(normalizedOpts.transitionProps);
|
|
20673
|
-
_defineProperty$
|
|
20673
|
+
_defineProperty$f(this, "opts", void 0);
|
|
20674
20674
|
this.opts = normalizedOpts;
|
|
20675
20675
|
}
|
|
20676
20676
|
initializeProps(startProps, endProps) {
|
|
@@ -20724,31 +20724,31 @@ const EVENT_TYPES = {
|
|
|
20724
20724
|
const pinchEventWorkaround = {};
|
|
20725
20725
|
class Controller {
|
|
20726
20726
|
constructor(opts) {
|
|
20727
|
-
_defineProperty$
|
|
20728
|
-
_defineProperty$
|
|
20729
|
-
_defineProperty$
|
|
20730
|
-
_defineProperty$
|
|
20731
|
-
_defineProperty$
|
|
20732
|
-
_defineProperty$
|
|
20733
|
-
_defineProperty$
|
|
20734
|
-
_defineProperty$
|
|
20735
|
-
_defineProperty$
|
|
20736
|
-
_defineProperty$
|
|
20727
|
+
_defineProperty$f(this, "props", void 0);
|
|
20728
|
+
_defineProperty$f(this, "state", {});
|
|
20729
|
+
_defineProperty$f(this, "transitionManager", void 0);
|
|
20730
|
+
_defineProperty$f(this, "eventManager", void 0);
|
|
20731
|
+
_defineProperty$f(this, "onViewStateChange", void 0);
|
|
20732
|
+
_defineProperty$f(this, "onStateChange", void 0);
|
|
20733
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
20734
|
+
_defineProperty$f(this, "_controllerState", void 0);
|
|
20735
|
+
_defineProperty$f(this, "_events", {});
|
|
20736
|
+
_defineProperty$f(this, "_interactionState", {
|
|
20737
20737
|
isDragging: false
|
|
20738
20738
|
});
|
|
20739
|
-
_defineProperty$
|
|
20740
|
-
_defineProperty$
|
|
20741
|
-
_defineProperty$
|
|
20742
|
-
_defineProperty$
|
|
20743
|
-
_defineProperty$
|
|
20744
|
-
_defineProperty$
|
|
20745
|
-
_defineProperty$
|
|
20746
|
-
_defineProperty$
|
|
20747
|
-
_defineProperty$
|
|
20748
|
-
_defineProperty$
|
|
20749
|
-
_defineProperty$
|
|
20750
|
-
_defineProperty$
|
|
20751
|
-
_defineProperty$
|
|
20739
|
+
_defineProperty$f(this, "_customEvents", []);
|
|
20740
|
+
_defineProperty$f(this, "_eventStartBlocked", null);
|
|
20741
|
+
_defineProperty$f(this, "_panMove", false);
|
|
20742
|
+
_defineProperty$f(this, "invertPan", false);
|
|
20743
|
+
_defineProperty$f(this, "dragMode", "rotate");
|
|
20744
|
+
_defineProperty$f(this, "inertia", 0);
|
|
20745
|
+
_defineProperty$f(this, "scrollZoom", true);
|
|
20746
|
+
_defineProperty$f(this, "dragPan", true);
|
|
20747
|
+
_defineProperty$f(this, "dragRotate", true);
|
|
20748
|
+
_defineProperty$f(this, "doubleClickZoom", true);
|
|
20749
|
+
_defineProperty$f(this, "touchZoom", true);
|
|
20750
|
+
_defineProperty$f(this, "touchRotate", false);
|
|
20751
|
+
_defineProperty$f(this, "keyboard", true);
|
|
20752
20752
|
this.transitionManager = new TransitionManager({
|
|
20753
20753
|
...opts,
|
|
20754
20754
|
getControllerState: (props2) => new this.ControllerState(props2),
|
|
@@ -21359,8 +21359,8 @@ class Controller {
|
|
|
21359
21359
|
}
|
|
21360
21360
|
class ViewState {
|
|
21361
21361
|
constructor(props2, state) {
|
|
21362
|
-
_defineProperty$
|
|
21363
|
-
_defineProperty$
|
|
21362
|
+
_defineProperty$f(this, "_viewportProps", void 0);
|
|
21363
|
+
_defineProperty$f(this, "_state", void 0);
|
|
21364
21364
|
this._viewportProps = this.applyConstraints(props2);
|
|
21365
21365
|
this._state = state;
|
|
21366
21366
|
}
|
|
@@ -21423,7 +21423,7 @@ class MapState extends ViewState {
|
|
|
21423
21423
|
startPitch,
|
|
21424
21424
|
startZoom
|
|
21425
21425
|
});
|
|
21426
|
-
_defineProperty$
|
|
21426
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
21427
21427
|
this.makeViewport = options.makeViewport;
|
|
21428
21428
|
}
|
|
21429
21429
|
panStart({
|
|
@@ -21683,8 +21683,8 @@ class MapState extends ViewState {
|
|
|
21683
21683
|
class MapController extends Controller {
|
|
21684
21684
|
constructor(...args) {
|
|
21685
21685
|
super(...args);
|
|
21686
|
-
_defineProperty$
|
|
21687
|
-
_defineProperty$
|
|
21686
|
+
_defineProperty$f(this, "ControllerState", MapState);
|
|
21687
|
+
_defineProperty$f(this, "transition", {
|
|
21688
21688
|
transitionDuration: 300,
|
|
21689
21689
|
transitionInterpolator: new LinearInterpolator({
|
|
21690
21690
|
transitionProps: {
|
|
@@ -21693,7 +21693,7 @@ class MapController extends Controller {
|
|
|
21693
21693
|
}
|
|
21694
21694
|
})
|
|
21695
21695
|
});
|
|
21696
|
-
_defineProperty$
|
|
21696
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
21697
21697
|
}
|
|
21698
21698
|
setProps(props2) {
|
|
21699
21699
|
props2.position = props2.position || [0, 0, 0];
|
|
@@ -21717,12 +21717,12 @@ class MapView extends View {
|
|
|
21717
21717
|
return MapController;
|
|
21718
21718
|
}
|
|
21719
21719
|
}
|
|
21720
|
-
_defineProperty$
|
|
21720
|
+
_defineProperty$f(MapView, "displayName", "MapView");
|
|
21721
21721
|
class MaskPass extends LayersPass {
|
|
21722
21722
|
constructor(gl, props2) {
|
|
21723
21723
|
super(gl, props2);
|
|
21724
|
-
_defineProperty$
|
|
21725
|
-
_defineProperty$
|
|
21724
|
+
_defineProperty$f(this, "maskMap", void 0);
|
|
21725
|
+
_defineProperty$f(this, "fbo", void 0);
|
|
21726
21726
|
const {
|
|
21727
21727
|
mapSize = 2048
|
|
21728
21728
|
} = props2;
|
|
@@ -21909,7 +21909,7 @@ class OrbitState extends ViewState {
|
|
|
21909
21909
|
startZoomPosition,
|
|
21910
21910
|
startZoom
|
|
21911
21911
|
});
|
|
21912
|
-
_defineProperty$
|
|
21912
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
21913
21913
|
this.makeViewport = options.makeViewport;
|
|
21914
21914
|
}
|
|
21915
21915
|
panStart({
|
|
@@ -22146,8 +22146,8 @@ class OrbitState extends ViewState {
|
|
|
22146
22146
|
class OrbitController extends Controller {
|
|
22147
22147
|
constructor(...args) {
|
|
22148
22148
|
super(...args);
|
|
22149
|
-
_defineProperty$
|
|
22150
|
-
_defineProperty$
|
|
22149
|
+
_defineProperty$f(this, "ControllerState", OrbitState);
|
|
22150
|
+
_defineProperty$f(this, "transition", {
|
|
22151
22151
|
transitionDuration: 300,
|
|
22152
22152
|
transitionInterpolator: new LinearInterpolator({
|
|
22153
22153
|
transitionProps: {
|
|
@@ -22161,7 +22161,7 @@ class OrbitController extends Controller {
|
|
|
22161
22161
|
class OrthographicState extends OrbitState {
|
|
22162
22162
|
constructor(props2) {
|
|
22163
22163
|
super(props2);
|
|
22164
|
-
_defineProperty$
|
|
22164
|
+
_defineProperty$f(this, "zoomAxis", void 0);
|
|
22165
22165
|
this.zoomAxis = props2.zoomAxis || "all";
|
|
22166
22166
|
}
|
|
22167
22167
|
_calculateNewZoom({
|
|
@@ -22205,12 +22205,12 @@ class OrthographicState extends OrbitState {
|
|
|
22205
22205
|
class OrthographicController extends Controller {
|
|
22206
22206
|
constructor(...args) {
|
|
22207
22207
|
super(...args);
|
|
22208
|
-
_defineProperty$
|
|
22209
|
-
_defineProperty$
|
|
22208
|
+
_defineProperty$f(this, "ControllerState", OrthographicState);
|
|
22209
|
+
_defineProperty$f(this, "transition", {
|
|
22210
22210
|
transitionDuration: 300,
|
|
22211
22211
|
transitionInterpolator: new LinearInterpolator(["target", "zoom"])
|
|
22212
22212
|
});
|
|
22213
|
-
_defineProperty$
|
|
22213
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
22214
22214
|
}
|
|
22215
22215
|
_onPanRotate() {
|
|
22216
22216
|
return false;
|
|
@@ -22224,7 +22224,7 @@ class OrthographicView extends View {
|
|
|
22224
22224
|
return OrthographicController;
|
|
22225
22225
|
}
|
|
22226
22226
|
}
|
|
22227
|
-
_defineProperty$
|
|
22227
|
+
_defineProperty$f(OrthographicView, "displayName", "OrthographicView");
|
|
22228
22228
|
function getMaskBounds({
|
|
22229
22229
|
layers,
|
|
22230
22230
|
viewport
|
|
@@ -22317,15 +22317,15 @@ function _doubleBounds(bounds2) {
|
|
|
22317
22317
|
}
|
|
22318
22318
|
class MaskEffect {
|
|
22319
22319
|
constructor() {
|
|
22320
|
-
_defineProperty$
|
|
22321
|
-
_defineProperty$
|
|
22322
|
-
_defineProperty$
|
|
22323
|
-
_defineProperty$
|
|
22324
|
-
_defineProperty$
|
|
22325
|
-
_defineProperty$
|
|
22326
|
-
_defineProperty$
|
|
22327
|
-
_defineProperty$
|
|
22328
|
-
_defineProperty$
|
|
22320
|
+
_defineProperty$f(this, "id", "mask-effect");
|
|
22321
|
+
_defineProperty$f(this, "props", null);
|
|
22322
|
+
_defineProperty$f(this, "useInPicking", true);
|
|
22323
|
+
_defineProperty$f(this, "dummyMaskMap", void 0);
|
|
22324
|
+
_defineProperty$f(this, "channels", []);
|
|
22325
|
+
_defineProperty$f(this, "masks", null);
|
|
22326
|
+
_defineProperty$f(this, "maskPass", void 0);
|
|
22327
|
+
_defineProperty$f(this, "maskMap", void 0);
|
|
22328
|
+
_defineProperty$f(this, "lastViewport", void 0);
|
|
22329
22329
|
}
|
|
22330
22330
|
preRender(gl, {
|
|
22331
22331
|
layers,
|
|
@@ -22485,9 +22485,9 @@ class MaskEffect {
|
|
|
22485
22485
|
const DEFAULT_LIGHTING_EFFECT = new LightingEffect();
|
|
22486
22486
|
class EffectManager {
|
|
22487
22487
|
constructor() {
|
|
22488
|
-
_defineProperty$
|
|
22489
|
-
_defineProperty$
|
|
22490
|
-
_defineProperty$
|
|
22488
|
+
_defineProperty$f(this, "effects", void 0);
|
|
22489
|
+
_defineProperty$f(this, "_internalEffects", void 0);
|
|
22490
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
22491
22491
|
this.effects = [];
|
|
22492
22492
|
this._internalEffects = [];
|
|
22493
22493
|
this._needsRedraw = "Initial render";
|
|
@@ -22548,8 +22548,8 @@ const PICKING_PARAMETERS = {
|
|
|
22548
22548
|
class PickLayersPass extends LayersPass {
|
|
22549
22549
|
constructor(...args) {
|
|
22550
22550
|
super(...args);
|
|
22551
|
-
_defineProperty$
|
|
22552
|
-
_defineProperty$
|
|
22551
|
+
_defineProperty$f(this, "pickZ", void 0);
|
|
22552
|
+
_defineProperty$f(this, "_colors", null);
|
|
22553
22553
|
}
|
|
22554
22554
|
render(props2) {
|
|
22555
22555
|
if (props2.pickingFBO) {
|
|
@@ -22980,13 +22980,13 @@ function getViewportFromCoordinates(viewports, pixel) {
|
|
|
22980
22980
|
}
|
|
22981
22981
|
class DeckPicker {
|
|
22982
22982
|
constructor(gl) {
|
|
22983
|
-
_defineProperty$
|
|
22984
|
-
_defineProperty$
|
|
22985
|
-
_defineProperty$
|
|
22986
|
-
_defineProperty$
|
|
22987
|
-
_defineProperty$
|
|
22988
|
-
_defineProperty$
|
|
22989
|
-
_defineProperty$
|
|
22983
|
+
_defineProperty$f(this, "gl", void 0);
|
|
22984
|
+
_defineProperty$f(this, "pickingFBO", void 0);
|
|
22985
|
+
_defineProperty$f(this, "depthFBO", void 0);
|
|
22986
|
+
_defineProperty$f(this, "pickLayersPass", void 0);
|
|
22987
|
+
_defineProperty$f(this, "layerFilter", void 0);
|
|
22988
|
+
_defineProperty$f(this, "lastPickedInfo", void 0);
|
|
22989
|
+
_defineProperty$f(this, "_pickable", true);
|
|
22990
22990
|
this.gl = gl;
|
|
22991
22991
|
this.pickLayersPass = new PickLayersPass(gl);
|
|
22992
22992
|
this.lastPickedInfo = {
|
|
@@ -23358,8 +23358,8 @@ const defaultStyle = {
|
|
|
23358
23358
|
};
|
|
23359
23359
|
class Tooltip {
|
|
23360
23360
|
constructor(canvas) {
|
|
23361
|
-
_defineProperty$
|
|
23362
|
-
_defineProperty$
|
|
23361
|
+
_defineProperty$f(this, "el", null);
|
|
23362
|
+
_defineProperty$f(this, "isVisible", false);
|
|
23363
23363
|
const canvasParent = canvas.parentElement;
|
|
23364
23364
|
if (canvasParent) {
|
|
23365
23365
|
this.el = document.createElement("div");
|
|
@@ -26122,28 +26122,28 @@ const defaultProps$M = {
|
|
|
26122
26122
|
};
|
|
26123
26123
|
class Deck {
|
|
26124
26124
|
constructor(props2) {
|
|
26125
|
-
_defineProperty$
|
|
26126
|
-
_defineProperty$
|
|
26127
|
-
_defineProperty$
|
|
26128
|
-
_defineProperty$
|
|
26129
|
-
_defineProperty$
|
|
26130
|
-
_defineProperty$
|
|
26131
|
-
_defineProperty$
|
|
26132
|
-
_defineProperty$
|
|
26133
|
-
_defineProperty$
|
|
26134
|
-
_defineProperty$
|
|
26135
|
-
_defineProperty$
|
|
26136
|
-
_defineProperty$
|
|
26137
|
-
_defineProperty$
|
|
26138
|
-
_defineProperty$
|
|
26139
|
-
_defineProperty$
|
|
26140
|
-
_defineProperty$
|
|
26141
|
-
_defineProperty$
|
|
26142
|
-
_defineProperty$
|
|
26143
|
-
_defineProperty$
|
|
26144
|
-
_defineProperty$
|
|
26145
|
-
_defineProperty$
|
|
26146
|
-
_defineProperty$
|
|
26125
|
+
_defineProperty$f(this, "props", void 0);
|
|
26126
|
+
_defineProperty$f(this, "width", 0);
|
|
26127
|
+
_defineProperty$f(this, "height", 0);
|
|
26128
|
+
_defineProperty$f(this, "userData", {});
|
|
26129
|
+
_defineProperty$f(this, "canvas", null);
|
|
26130
|
+
_defineProperty$f(this, "viewManager", null);
|
|
26131
|
+
_defineProperty$f(this, "layerManager", null);
|
|
26132
|
+
_defineProperty$f(this, "effectManager", null);
|
|
26133
|
+
_defineProperty$f(this, "deckRenderer", null);
|
|
26134
|
+
_defineProperty$f(this, "deckPicker", null);
|
|
26135
|
+
_defineProperty$f(this, "eventManager", null);
|
|
26136
|
+
_defineProperty$f(this, "tooltip", null);
|
|
26137
|
+
_defineProperty$f(this, "metrics", void 0);
|
|
26138
|
+
_defineProperty$f(this, "animationLoop", void 0);
|
|
26139
|
+
_defineProperty$f(this, "stats", void 0);
|
|
26140
|
+
_defineProperty$f(this, "viewState", void 0);
|
|
26141
|
+
_defineProperty$f(this, "cursorState", void 0);
|
|
26142
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
26143
|
+
_defineProperty$f(this, "_pickRequest", void 0);
|
|
26144
|
+
_defineProperty$f(this, "_lastPointerDownInfo", null);
|
|
26145
|
+
_defineProperty$f(this, "_metricsCounter", void 0);
|
|
26146
|
+
_defineProperty$f(this, "_onPointerMove", (event) => {
|
|
26147
26147
|
const {
|
|
26148
26148
|
_pickRequest
|
|
26149
26149
|
} = this;
|
|
@@ -26170,7 +26170,7 @@ class Deck {
|
|
|
26170
26170
|
}
|
|
26171
26171
|
_pickRequest.event = event;
|
|
26172
26172
|
});
|
|
26173
|
-
_defineProperty$
|
|
26173
|
+
_defineProperty$f(this, "_onEvent", (event) => {
|
|
26174
26174
|
const eventOptions = EVENTS[event.type];
|
|
26175
26175
|
const pos = event.offsetCenter;
|
|
26176
26176
|
if (!eventOptions || !pos || !this.layerManager) {
|
|
@@ -26196,7 +26196,7 @@ class Deck {
|
|
|
26196
26196
|
rootHandler(info, event);
|
|
26197
26197
|
}
|
|
26198
26198
|
});
|
|
26199
|
-
_defineProperty$
|
|
26199
|
+
_defineProperty$f(this, "_onPointerDown", (event) => {
|
|
26200
26200
|
const pos = event.offsetCenter;
|
|
26201
26201
|
const pickedInfo = this._pick("pickObject", "pickObject Time", {
|
|
26202
26202
|
x: pos.x,
|
|
@@ -26708,12 +26708,12 @@ class Deck {
|
|
|
26708
26708
|
metrics.gpuMemory = memoryStats.get("GPU Memory").count;
|
|
26709
26709
|
}
|
|
26710
26710
|
}
|
|
26711
|
-
_defineProperty$
|
|
26712
|
-
_defineProperty$
|
|
26711
|
+
_defineProperty$f(Deck, "defaultProps", defaultProps$M);
|
|
26712
|
+
_defineProperty$f(Deck, "VERSION", deckGlobal.VERSION);
|
|
26713
26713
|
class ShaderAttribute {
|
|
26714
26714
|
constructor(dataColumn, opts) {
|
|
26715
|
-
_defineProperty$
|
|
26716
|
-
_defineProperty$
|
|
26715
|
+
_defineProperty$f(this, "opts", void 0);
|
|
26716
|
+
_defineProperty$f(this, "source", void 0);
|
|
26717
26717
|
this.opts = opts;
|
|
26718
26718
|
this.source = dataColumn;
|
|
26719
26719
|
}
|
|
@@ -26803,14 +26803,14 @@ function resolveDoublePrecisionShaderAttributes(baseAccessor, shaderAttributeOpt
|
|
|
26803
26803
|
}
|
|
26804
26804
|
class DataColumn {
|
|
26805
26805
|
constructor(gl, opts, state) {
|
|
26806
|
-
_defineProperty$
|
|
26807
|
-
_defineProperty$
|
|
26808
|
-
_defineProperty$
|
|
26809
|
-
_defineProperty$
|
|
26810
|
-
_defineProperty$
|
|
26811
|
-
_defineProperty$
|
|
26812
|
-
_defineProperty$
|
|
26813
|
-
_defineProperty$
|
|
26806
|
+
_defineProperty$f(this, "gl", void 0);
|
|
26807
|
+
_defineProperty$f(this, "id", void 0);
|
|
26808
|
+
_defineProperty$f(this, "size", void 0);
|
|
26809
|
+
_defineProperty$f(this, "settings", void 0);
|
|
26810
|
+
_defineProperty$f(this, "value", void 0);
|
|
26811
|
+
_defineProperty$f(this, "doublePrecision", void 0);
|
|
26812
|
+
_defineProperty$f(this, "_buffer", void 0);
|
|
26813
|
+
_defineProperty$f(this, "state", void 0);
|
|
26814
26814
|
this.gl = gl;
|
|
26815
26815
|
this.id = opts.id || "";
|
|
26816
26816
|
this.size = opts.size || 1;
|
|
@@ -27463,7 +27463,7 @@ class Attribute extends DataColumn {
|
|
|
27463
27463
|
needsRedraw: false,
|
|
27464
27464
|
updateRanges: FULL
|
|
27465
27465
|
});
|
|
27466
|
-
_defineProperty$
|
|
27466
|
+
_defineProperty$f(this, "constant", false);
|
|
27467
27467
|
this.settings.update = opts.update || (opts.accessor ? this._autoUpdater : void 0);
|
|
27468
27468
|
Object.seal(this.settings);
|
|
27469
27469
|
Object.seal(this.state);
|
|
@@ -27785,16 +27785,16 @@ class GPUInterpolationTransition {
|
|
|
27785
27785
|
attribute,
|
|
27786
27786
|
timeline
|
|
27787
27787
|
}) {
|
|
27788
|
-
_defineProperty$
|
|
27789
|
-
_defineProperty$
|
|
27790
|
-
_defineProperty$
|
|
27791
|
-
_defineProperty$
|
|
27792
|
-
_defineProperty$
|
|
27793
|
-
_defineProperty$
|
|
27794
|
-
_defineProperty$
|
|
27795
|
-
_defineProperty$
|
|
27796
|
-
_defineProperty$
|
|
27797
|
-
_defineProperty$
|
|
27788
|
+
_defineProperty$f(this, "gl", void 0);
|
|
27789
|
+
_defineProperty$f(this, "type", "interpolation");
|
|
27790
|
+
_defineProperty$f(this, "attributeInTransition", void 0);
|
|
27791
|
+
_defineProperty$f(this, "settings", void 0);
|
|
27792
|
+
_defineProperty$f(this, "attribute", void 0);
|
|
27793
|
+
_defineProperty$f(this, "transition", void 0);
|
|
27794
|
+
_defineProperty$f(this, "currentStartIndices", void 0);
|
|
27795
|
+
_defineProperty$f(this, "currentLength", void 0);
|
|
27796
|
+
_defineProperty$f(this, "transform", void 0);
|
|
27797
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
27798
27798
|
this.gl = gl;
|
|
27799
27799
|
this.transition = new Transition(timeline);
|
|
27800
27800
|
this.attribute = attribute;
|
|
@@ -27902,18 +27902,18 @@ class GPUSpringTransition {
|
|
|
27902
27902
|
attribute,
|
|
27903
27903
|
timeline
|
|
27904
27904
|
}) {
|
|
27905
|
-
_defineProperty$
|
|
27906
|
-
_defineProperty$
|
|
27907
|
-
_defineProperty$
|
|
27908
|
-
_defineProperty$
|
|
27909
|
-
_defineProperty$
|
|
27910
|
-
_defineProperty$
|
|
27911
|
-
_defineProperty$
|
|
27912
|
-
_defineProperty$
|
|
27913
|
-
_defineProperty$
|
|
27914
|
-
_defineProperty$
|
|
27915
|
-
_defineProperty$
|
|
27916
|
-
_defineProperty$
|
|
27905
|
+
_defineProperty$f(this, "gl", void 0);
|
|
27906
|
+
_defineProperty$f(this, "type", "spring");
|
|
27907
|
+
_defineProperty$f(this, "attributeInTransition", void 0);
|
|
27908
|
+
_defineProperty$f(this, "settings", void 0);
|
|
27909
|
+
_defineProperty$f(this, "attribute", void 0);
|
|
27910
|
+
_defineProperty$f(this, "transition", void 0);
|
|
27911
|
+
_defineProperty$f(this, "currentStartIndices", void 0);
|
|
27912
|
+
_defineProperty$f(this, "currentLength", void 0);
|
|
27913
|
+
_defineProperty$f(this, "texture", void 0);
|
|
27914
|
+
_defineProperty$f(this, "framebuffer", void 0);
|
|
27915
|
+
_defineProperty$f(this, "transform", void 0);
|
|
27916
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
27917
27917
|
this.gl = gl;
|
|
27918
27918
|
this.type = "spring";
|
|
27919
27919
|
this.transition = new Transition(timeline);
|
|
@@ -28075,13 +28075,13 @@ class AttributeTransitionManager {
|
|
|
28075
28075
|
id,
|
|
28076
28076
|
timeline
|
|
28077
28077
|
}) {
|
|
28078
|
-
_defineProperty$
|
|
28079
|
-
_defineProperty$
|
|
28080
|
-
_defineProperty$
|
|
28081
|
-
_defineProperty$
|
|
28082
|
-
_defineProperty$
|
|
28083
|
-
_defineProperty$
|
|
28084
|
-
_defineProperty$
|
|
28078
|
+
_defineProperty$f(this, "id", void 0);
|
|
28079
|
+
_defineProperty$f(this, "isSupported", void 0);
|
|
28080
|
+
_defineProperty$f(this, "gl", void 0);
|
|
28081
|
+
_defineProperty$f(this, "timeline", void 0);
|
|
28082
|
+
_defineProperty$f(this, "transitions", void 0);
|
|
28083
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
28084
|
+
_defineProperty$f(this, "numInstances", void 0);
|
|
28085
28085
|
this.id = id;
|
|
28086
28086
|
this.gl = gl;
|
|
28087
28087
|
this.timeline = timeline;
|
|
@@ -28188,14 +28188,14 @@ class AttributeManager {
|
|
|
28188
28188
|
stats,
|
|
28189
28189
|
timeline
|
|
28190
28190
|
} = {}) {
|
|
28191
|
-
_defineProperty$
|
|
28192
|
-
_defineProperty$
|
|
28193
|
-
_defineProperty$
|
|
28194
|
-
_defineProperty$
|
|
28195
|
-
_defineProperty$
|
|
28196
|
-
_defineProperty$
|
|
28197
|
-
_defineProperty$
|
|
28198
|
-
_defineProperty$
|
|
28191
|
+
_defineProperty$f(this, "id", void 0);
|
|
28192
|
+
_defineProperty$f(this, "gl", void 0);
|
|
28193
|
+
_defineProperty$f(this, "attributes", void 0);
|
|
28194
|
+
_defineProperty$f(this, "updateTriggers", void 0);
|
|
28195
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
28196
|
+
_defineProperty$f(this, "userData", void 0);
|
|
28197
|
+
_defineProperty$f(this, "stats", void 0);
|
|
28198
|
+
_defineProperty$f(this, "attributeTransitionManager", void 0);
|
|
28199
28199
|
this.id = id;
|
|
28200
28200
|
this.gl = gl;
|
|
28201
28201
|
this.attributes = {};
|
|
@@ -29174,9 +29174,9 @@ function getComponentName(componentClass) {
|
|
|
29174
29174
|
let counter = 0;
|
|
29175
29175
|
class Component {
|
|
29176
29176
|
constructor(...propObjects) {
|
|
29177
|
-
_defineProperty$
|
|
29178
|
-
_defineProperty$
|
|
29179
|
-
_defineProperty$
|
|
29177
|
+
_defineProperty$f(this, "id", void 0);
|
|
29178
|
+
_defineProperty$f(this, "props", void 0);
|
|
29179
|
+
_defineProperty$f(this, "count", void 0);
|
|
29180
29180
|
this.props = createProps(this, propObjects);
|
|
29181
29181
|
this.id = this.props.id;
|
|
29182
29182
|
this.count = counter++;
|
|
@@ -29200,16 +29200,16 @@ class Component {
|
|
|
29200
29200
|
});
|
|
29201
29201
|
}
|
|
29202
29202
|
}
|
|
29203
|
-
_defineProperty$
|
|
29204
|
-
_defineProperty$
|
|
29203
|
+
_defineProperty$f(Component, "componentName", "Component");
|
|
29204
|
+
_defineProperty$f(Component, "defaultProps", {});
|
|
29205
29205
|
const EMPTY_PROPS = Object.freeze({});
|
|
29206
29206
|
class ComponentState {
|
|
29207
29207
|
constructor(component) {
|
|
29208
|
-
_defineProperty$
|
|
29209
|
-
_defineProperty$
|
|
29210
|
-
_defineProperty$
|
|
29211
|
-
_defineProperty$
|
|
29212
|
-
_defineProperty$
|
|
29208
|
+
_defineProperty$f(this, "component", void 0);
|
|
29209
|
+
_defineProperty$f(this, "onAsyncPropUpdated", void 0);
|
|
29210
|
+
_defineProperty$f(this, "asyncProps", void 0);
|
|
29211
|
+
_defineProperty$f(this, "oldProps", void 0);
|
|
29212
|
+
_defineProperty$f(this, "oldAsyncProps", void 0);
|
|
29213
29213
|
this.component = component;
|
|
29214
29214
|
this.asyncProps = {};
|
|
29215
29215
|
this.onAsyncPropUpdated = () => {
|
|
@@ -29412,15 +29412,15 @@ class LayerState extends ComponentState {
|
|
|
29412
29412
|
layer
|
|
29413
29413
|
}) {
|
|
29414
29414
|
super(layer);
|
|
29415
|
-
_defineProperty$
|
|
29416
|
-
_defineProperty$
|
|
29417
|
-
_defineProperty$
|
|
29418
|
-
_defineProperty$
|
|
29419
|
-
_defineProperty$
|
|
29420
|
-
_defineProperty$
|
|
29421
|
-
_defineProperty$
|
|
29422
|
-
_defineProperty$
|
|
29423
|
-
_defineProperty$
|
|
29415
|
+
_defineProperty$f(this, "attributeManager", void 0);
|
|
29416
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
29417
|
+
_defineProperty$f(this, "needsUpdate", void 0);
|
|
29418
|
+
_defineProperty$f(this, "subLayers", void 0);
|
|
29419
|
+
_defineProperty$f(this, "usesPickingColorCache", void 0);
|
|
29420
|
+
_defineProperty$f(this, "changeFlags", void 0);
|
|
29421
|
+
_defineProperty$f(this, "viewport", void 0);
|
|
29422
|
+
_defineProperty$f(this, "uniformTransitions", void 0);
|
|
29423
|
+
_defineProperty$f(this, "propsInTransition", void 0);
|
|
29424
29424
|
this.attributeManager = attributeManager;
|
|
29425
29425
|
this.needsRedraw = true;
|
|
29426
29426
|
this.needsUpdate = true;
|
|
@@ -29640,11 +29640,11 @@ const defaultProps$L = {
|
|
|
29640
29640
|
class Layer extends Component {
|
|
29641
29641
|
constructor(...args) {
|
|
29642
29642
|
super(...args);
|
|
29643
|
-
_defineProperty$
|
|
29644
|
-
_defineProperty$
|
|
29645
|
-
_defineProperty$
|
|
29646
|
-
_defineProperty$
|
|
29647
|
-
_defineProperty$
|
|
29643
|
+
_defineProperty$f(this, "internalState", null);
|
|
29644
|
+
_defineProperty$f(this, "lifecycle", LIFECYCLE.NO_STATE);
|
|
29645
|
+
_defineProperty$f(this, "context", void 0);
|
|
29646
|
+
_defineProperty$f(this, "state", void 0);
|
|
29647
|
+
_defineProperty$f(this, "parent", null);
|
|
29648
29648
|
}
|
|
29649
29649
|
get root() {
|
|
29650
29650
|
let layer = this;
|
|
@@ -30346,8 +30346,8 @@ class Layer extends Component {
|
|
|
30346
30346
|
this.setNeedsUpdate();
|
|
30347
30347
|
}
|
|
30348
30348
|
}
|
|
30349
|
-
_defineProperty$
|
|
30350
|
-
_defineProperty$
|
|
30349
|
+
_defineProperty$f(Layer, "defaultProps", defaultProps$L);
|
|
30350
|
+
_defineProperty$f(Layer, "layerName", "Layer");
|
|
30351
30351
|
const TRACE_RENDER_LAYERS = "compositeLayer.renderLayers";
|
|
30352
30352
|
class CompositeLayer extends Layer {
|
|
30353
30353
|
get isComposite() {
|
|
@@ -30509,7 +30509,7 @@ class CompositeLayer extends Layer {
|
|
|
30509
30509
|
}
|
|
30510
30510
|
}
|
|
30511
30511
|
}
|
|
30512
|
-
_defineProperty$
|
|
30512
|
+
_defineProperty$f(CompositeLayer, "layerName", "CompositeLayer");
|
|
30513
30513
|
const DEGREES_TO_RADIANS$1 = Math.PI / 180;
|
|
30514
30514
|
const RADIANS_TO_DEGREES = 180 / Math.PI;
|
|
30515
30515
|
const EARTH_RADIUS = 6370972;
|
|
@@ -30565,9 +30565,9 @@ class GlobeViewport extends Viewport {
|
|
|
30565
30565
|
near: nearZMultiplier,
|
|
30566
30566
|
far: Math.min(2, 1 / relativeScale + 1) * altitude * farZMultiplier
|
|
30567
30567
|
});
|
|
30568
|
-
_defineProperty$
|
|
30569
|
-
_defineProperty$
|
|
30570
|
-
_defineProperty$
|
|
30568
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
30569
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
30570
|
+
_defineProperty$f(this, "resolution", void 0);
|
|
30571
30571
|
this.latitude = latitude;
|
|
30572
30572
|
this.longitude = longitude;
|
|
30573
30573
|
this.resolution = resolution;
|
|
@@ -30715,7 +30715,7 @@ class OrbitViewport extends Viewport {
|
|
|
30715
30715
|
position: target,
|
|
30716
30716
|
zoom
|
|
30717
30717
|
});
|
|
30718
|
-
_defineProperty$
|
|
30718
|
+
_defineProperty$f(this, "projectedCenter", void 0);
|
|
30719
30719
|
this.projectedCenter = this.project(this.center);
|
|
30720
30720
|
}
|
|
30721
30721
|
unproject(xyz, {
|
|
@@ -30764,8 +30764,8 @@ class FirstPersonViewport extends Viewport {
|
|
|
30764
30764
|
zoom,
|
|
30765
30765
|
viewMatrix: viewMatrix2
|
|
30766
30766
|
});
|
|
30767
|
-
_defineProperty$
|
|
30768
|
-
_defineProperty$
|
|
30767
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
30768
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
30769
30769
|
this.latitude = latitude;
|
|
30770
30770
|
this.longitude = longitude;
|
|
30771
30771
|
}
|
|
@@ -30994,8 +30994,8 @@ class FirstPersonState extends ViewState {
|
|
|
30994
30994
|
class FirstPersonController extends Controller {
|
|
30995
30995
|
constructor(...args) {
|
|
30996
30996
|
super(...args);
|
|
30997
|
-
_defineProperty$
|
|
30998
|
-
_defineProperty$
|
|
30997
|
+
_defineProperty$f(this, "ControllerState", FirstPersonState);
|
|
30998
|
+
_defineProperty$f(this, "transition", {
|
|
30999
30999
|
transitionDuration: 300,
|
|
31000
31000
|
transitionInterpolator: new LinearInterpolator(["position", "pitch", "bearing"])
|
|
31001
31001
|
});
|
|
@@ -31009,7 +31009,7 @@ class FirstPersonView extends View {
|
|
|
31009
31009
|
return FirstPersonController;
|
|
31010
31010
|
}
|
|
31011
31011
|
}
|
|
31012
|
-
_defineProperty$
|
|
31012
|
+
_defineProperty$f(FirstPersonView, "displayName", "FirstPersonView");
|
|
31013
31013
|
class OrbitView extends View {
|
|
31014
31014
|
constructor(props2 = {}) {
|
|
31015
31015
|
super(props2);
|
|
@@ -31022,7 +31022,7 @@ class OrbitView extends View {
|
|
|
31022
31022
|
return OrbitController;
|
|
31023
31023
|
}
|
|
31024
31024
|
}
|
|
31025
|
-
_defineProperty$
|
|
31025
|
+
_defineProperty$f(OrbitView, "displayName", "OrbitView");
|
|
31026
31026
|
class GlobeState extends MapState {
|
|
31027
31027
|
applyConstraints(props2) {
|
|
31028
31028
|
const {
|
|
@@ -31045,12 +31045,12 @@ class GlobeState extends MapState {
|
|
|
31045
31045
|
class GlobeController extends Controller {
|
|
31046
31046
|
constructor(...args) {
|
|
31047
31047
|
super(...args);
|
|
31048
|
-
_defineProperty$
|
|
31049
|
-
_defineProperty$
|
|
31048
|
+
_defineProperty$f(this, "ControllerState", GlobeState);
|
|
31049
|
+
_defineProperty$f(this, "transition", {
|
|
31050
31050
|
transitionDuration: 300,
|
|
31051
31051
|
transitionInterpolator: new LinearInterpolator(["longitude", "latitude", "zoom"])
|
|
31052
31052
|
});
|
|
31053
|
-
_defineProperty$
|
|
31053
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
31054
31054
|
}
|
|
31055
31055
|
setProps(props2) {
|
|
31056
31056
|
super.setProps(props2);
|
|
@@ -31066,10 +31066,10 @@ class GlobeView extends View {
|
|
|
31066
31066
|
return GlobeController;
|
|
31067
31067
|
}
|
|
31068
31068
|
}
|
|
31069
|
-
_defineProperty$
|
|
31069
|
+
_defineProperty$f(GlobeView, "displayName", "GlobeView");
|
|
31070
31070
|
class LayerExtension {
|
|
31071
31071
|
constructor(opts) {
|
|
31072
|
-
_defineProperty$
|
|
31072
|
+
_defineProperty$f(this, "opts", void 0);
|
|
31073
31073
|
if (opts) {
|
|
31074
31074
|
this.opts = opts;
|
|
31075
31075
|
}
|
|
@@ -31114,7 +31114,7 @@ class LayerExtension {
|
|
|
31114
31114
|
finalizeState(context, extension) {
|
|
31115
31115
|
}
|
|
31116
31116
|
}
|
|
31117
|
-
_defineProperty$
|
|
31117
|
+
_defineProperty$f(LayerExtension, "defaultProps", {});
|
|
31118
31118
|
const LINEARLY_INTERPOLATED_PROPS = ["bearing", "pitch"];
|
|
31119
31119
|
const DEFAULT_OPTS = {
|
|
31120
31120
|
speed: 1.2,
|
|
@@ -31127,7 +31127,7 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
31127
31127
|
extract: ["width", "height", "longitude", "latitude", "zoom", "bearing", "pitch"],
|
|
31128
31128
|
required: ["width", "height", "latitude", "longitude", "zoom"]
|
|
31129
31129
|
});
|
|
31130
|
-
_defineProperty$
|
|
31130
|
+
_defineProperty$f(this, "opts", void 0);
|
|
31131
31131
|
this.opts = {
|
|
31132
31132
|
...DEFAULT_OPTS,
|
|
31133
31133
|
...opts
|
|
@@ -31152,20 +31152,20 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
31152
31152
|
}
|
|
31153
31153
|
class Tesselator {
|
|
31154
31154
|
constructor(opts) {
|
|
31155
|
-
_defineProperty$
|
|
31156
|
-
_defineProperty$
|
|
31157
|
-
_defineProperty$
|
|
31158
|
-
_defineProperty$
|
|
31159
|
-
_defineProperty$
|
|
31160
|
-
_defineProperty$
|
|
31161
|
-
_defineProperty$
|
|
31162
|
-
_defineProperty$
|
|
31163
|
-
_defineProperty$
|
|
31164
|
-
_defineProperty$
|
|
31165
|
-
_defineProperty$
|
|
31166
|
-
_defineProperty$
|
|
31167
|
-
_defineProperty$
|
|
31168
|
-
_defineProperty$
|
|
31155
|
+
_defineProperty$f(this, "opts", void 0);
|
|
31156
|
+
_defineProperty$f(this, "typedArrayManager", void 0);
|
|
31157
|
+
_defineProperty$f(this, "indexStarts", [0]);
|
|
31158
|
+
_defineProperty$f(this, "vertexStarts", [0]);
|
|
31159
|
+
_defineProperty$f(this, "vertexCount", 0);
|
|
31160
|
+
_defineProperty$f(this, "instanceCount", 0);
|
|
31161
|
+
_defineProperty$f(this, "attributes", void 0);
|
|
31162
|
+
_defineProperty$f(this, "_attributeDefs", void 0);
|
|
31163
|
+
_defineProperty$f(this, "data", void 0);
|
|
31164
|
+
_defineProperty$f(this, "getGeometry", void 0);
|
|
31165
|
+
_defineProperty$f(this, "geometryBuffer", void 0);
|
|
31166
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
31167
|
+
_defineProperty$f(this, "positionSize", void 0);
|
|
31168
|
+
_defineProperty$f(this, "normalize", void 0);
|
|
31169
31169
|
const {
|
|
31170
31170
|
attributes = {}
|
|
31171
31171
|
} = opts;
|
|
@@ -31438,8 +31438,8 @@ class ClipExtension extends LayerExtension {
|
|
|
31438
31438
|
}
|
|
31439
31439
|
}
|
|
31440
31440
|
}
|
|
31441
|
-
_defineProperty$
|
|
31442
|
-
_defineProperty$
|
|
31441
|
+
_defineProperty$f(ClipExtension, "defaultProps", defaultProps$K);
|
|
31442
|
+
_defineProperty$f(ClipExtension, "extensionName", "ClipExtension");
|
|
31443
31443
|
const vs$h = "#define SHADER_NAME arc-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\nattribute float instanceHeights;\nattribute float instanceTilts;\n\nuniform bool greatCircle;\nuniform bool useShortestPath;\nuniform float numSegments;\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nfloat paraboloid(float distance, float sourceZ, float targetZ, float ratio) {\n // d: distance on the xy plane\n // r: ratio of the current point\n // p: ratio of the peak of the arc\n // h: height multiplier\n // z = f(r) = sqrt(r * (p * 2 - r)) * d * h\n // f(0) = 0\n // f(1) = dz\n\n float deltaZ = targetZ - sourceZ;\n float dh = distance * instanceHeights;\n if (dh == 0.0) {\n return sourceZ + deltaZ * ratio;\n }\n float unitZ = deltaZ / dh;\n float p2 = unitZ * unitZ + 1.0;\n\n // sqrt does not deal with negative values, manually flip source and target if delta.z < 0\n float dir = step(deltaZ, 0.0);\n float z0 = mix(sourceZ, targetZ, dir);\n float r = mix(ratio, 1.0 - ratio, dir);\n return sqrt(r * (p2 - r)) * dh + z0;\n}\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvec3 interpolateFlat(vec3 source, vec3 target, float segmentRatio) {\n float distance = length(source.xy - target.xy);\n float z = paraboloid(distance, source.z, target.z, segmentRatio);\n\n float tiltAngle = radians(instanceTilts);\n vec2 tiltDirection = normalize(target.xy - source.xy);\n vec2 tilt = vec2(-tiltDirection.y, tiltDirection.x) * z * sin(tiltAngle);\n\n return vec3(\n mix(source.xy, target.xy, segmentRatio) + tilt,\n z * cos(tiltAngle)\n );\n}\n\n/* Great circle interpolation\n * http://www.movable-type.co.uk/scripts/latlong.html\n */\nfloat getAngularDist (vec2 source, vec2 target) {\n vec2 sourceRadians = radians(source);\n vec2 targetRadians = radians(target);\n vec2 sin_half_delta = sin((sourceRadians - targetRadians) / 2.0);\n vec2 shd_sq = sin_half_delta * sin_half_delta;\n\n float a = shd_sq.y + cos(sourceRadians.y) * cos(targetRadians.y) * shd_sq.x;\n return 2.0 * asin(sqrt(a));\n}\n\nvec3 interpolateGreatCircle(vec3 source, vec3 target, vec3 source3D, vec3 target3D, float angularDist, float t) {\n vec2 lngLat;\n\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n if(abs(angularDist - PI) < 0.001) {\n lngLat = (1.0 - t) * source.xy + t * target.xy;\n } else {\n float a = sin((1.0 - t) * angularDist);\n float b = sin(t * angularDist);\n vec3 p = source3D.yxz * a + target3D.yxz * b;\n lngLat = degrees(vec2(atan(p.y, -p.x), atan(p.z, length(p.xy))));\n }\n\n float z = paraboloid(angularDist * EARTH_RADIUS, source.z, target.z, t);\n\n return vec3(lngLat, z);\n}\n\n/* END GREAT CIRCLE */\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float prevSegmentRatio = getSegmentRatio(max(0.0, segmentIndex - 1.0));\n float nextSegmentRatio = getSegmentRatio(min(numSegments - 1.0, segmentIndex + 1.0));\n\n // if it's the first point, use next - current as direction\n // otherwise use current - prev\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n isValid = 1.0;\n\n uv = vec2(segmentRatio, positions.y);\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n vec4 curr;\n vec4 next;\n vec3 source;\n vec3 target;\n\n if ((greatCircle || project_uProjectionMode == PROJECTION_MODE_GLOBE) && project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n source = project_globe_(vec3(instanceSourcePositions.xy, 0.0));\n target = project_globe_(vec3(instanceTargetPositions.xy, 0.0));\n float angularDist = getAngularDist(instanceSourcePositions.xy, instanceTargetPositions.xy);\n\n vec3 prevPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, prevSegmentRatio);\n vec3 currPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, segmentRatio);\n vec3 nextPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, nextSegmentRatio);\n\n if (abs(currPos.x - prevPos.x) > 180.0) {\n indexDir = -1.0;\n isValid = 0.0;\n } else if (abs(currPos.x - nextPos.x) > 180.0) {\n indexDir = 1.0;\n isValid = 0.0;\n }\n nextPos = indexDir < 0.0 ? prevPos : nextPos;\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n\n if (isValid == 0.0) {\n // split at the 180th meridian\n nextPos.x += nextPos.x > 0.0 ? -360.0 : 360.0;\n float t = ((currPos.x > 0.0 ? 180.0 : -180.0) - currPos.x) / (nextPos.x - currPos.x);\n currPos = mix(currPos, nextPos, t);\n segmentRatio = mix(segmentRatio, nextSegmentRatio, t);\n }\n\n vec3 currPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, segmentRatio);\n vec3 nextPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, nextSegmentRatio);\n \n curr = project_position_to_clipspace(currPos, currPos64Low, vec3(0.0), geometry.position);\n next = project_position_to_clipspace(nextPos, nextPos64Low, vec3(0.0));\n \n } else {\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n if (useShortestPath) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n\n float deltaLng = target_world.x - source_world.x;\n if (deltaLng > 180.) target_world.x -= 360.;\n if (deltaLng < -180.) source_world.x -= 360.;\n }\n source = project_position(source_world, instanceSourcePositions64Low);\n target = project_position(target_world, instanceTargetPositions64Low);\n\n // common x at longitude=-180\n float antiMeridianX = 0.0;\n\n if (useShortestPath) {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n antiMeridianX = -(project_uCoordinateOrigin.x + 180.) / 360. * TILE_SIZE;\n }\n float thresholdRatio = (antiMeridianX - source.x) / (target.x - source.x);\n\n if (prevSegmentRatio <= thresholdRatio && nextSegmentRatio > thresholdRatio) {\n isValid = 0.0;\n indexDir = sign(segmentRatio - thresholdRatio);\n segmentRatio = thresholdRatio;\n }\n }\n\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n vec3 currPos = interpolateFlat(source, target, segmentRatio);\n vec3 nextPos = interpolateFlat(source, target, nextSegmentRatio);\n\n if (useShortestPath) {\n if (nextPos.x < antiMeridianX) {\n currPos.x += TILE_SIZE;\n nextPos.x += TILE_SIZE;\n }\n }\n\n curr = project_common_position_to_clipspace(vec4(currPos, 1.0));\n next = project_common_position_to_clipspace(vec4(nextPos, 1.0));\n geometry.position = vec4(currPos, 1.0);\n }\n\n // Multiply out width and clamp to limits\n // mercator pixels are interpreted as screen pixels\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n\n // extrude\n vec3 offset = vec3(\n getExtrusionOffset((next.xy - curr.xy) * indexDir, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = curr + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio);\n vColor = vec4(color.rgb, color.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
|
31444
31444
|
const fs$j = "#define SHADER_NAME arc-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nvoid main(void) {\n if (isValid == 0.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n geometry.uv = uv;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
|
31445
31445
|
const DEFAULT_COLOR$a = [0, 0, 0, 255];
|
|
@@ -31493,7 +31493,7 @@ const defaultProps$J = {
|
|
|
31493
31493
|
class ArcLayer extends Layer {
|
|
31494
31494
|
constructor(...args) {
|
|
31495
31495
|
super(...args);
|
|
31496
|
-
_defineProperty$
|
|
31496
|
+
_defineProperty$f(this, "state", void 0);
|
|
31497
31497
|
}
|
|
31498
31498
|
getShaders() {
|
|
31499
31499
|
return super.getShaders({
|
|
@@ -31613,8 +31613,8 @@ class ArcLayer extends Layer {
|
|
|
31613
31613
|
return model;
|
|
31614
31614
|
}
|
|
31615
31615
|
}
|
|
31616
|
-
_defineProperty$
|
|
31617
|
-
_defineProperty$
|
|
31616
|
+
_defineProperty$f(ArcLayer, "layerName", "ArcLayer");
|
|
31617
|
+
_defineProperty$f(ArcLayer, "defaultProps", defaultProps$J);
|
|
31618
31618
|
const DEFAULT_INDICES = new Uint16Array([0, 2, 1, 0, 3, 2]);
|
|
31619
31619
|
const DEFAULT_TEX_COORDS = new Float32Array([0, 1, 0, 0, 1, 0, 1, 1]);
|
|
31620
31620
|
function createMesh(bounds2, resolution) {
|
|
@@ -31709,7 +31709,7 @@ const defaultProps$I = {
|
|
|
31709
31709
|
let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
31710
31710
|
constructor(...args) {
|
|
31711
31711
|
super(...args);
|
|
31712
|
-
_defineProperty$
|
|
31712
|
+
_defineProperty$f(this, "state", void 0);
|
|
31713
31713
|
}
|
|
31714
31714
|
getShaders() {
|
|
31715
31715
|
return super.getShaders({
|
|
@@ -31911,8 +31911,8 @@ let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
|
31911
31911
|
};
|
|
31912
31912
|
}
|
|
31913
31913
|
};
|
|
31914
|
-
_defineProperty$
|
|
31915
|
-
_defineProperty$
|
|
31914
|
+
_defineProperty$f(BitmapLayer$1, "layerName", "BitmapLayer");
|
|
31915
|
+
_defineProperty$f(BitmapLayer$1, "defaultProps", defaultProps$I);
|
|
31916
31916
|
function unpackUVsFromRGB(color) {
|
|
31917
31917
|
const [u, v, fracUV] = color;
|
|
31918
31918
|
const vFrac = (fracUV & 240) / 256;
|
|
@@ -32060,23 +32060,23 @@ class IconManager {
|
|
|
32060
32060
|
onUpdate = noop$1,
|
|
32061
32061
|
onError = noop$1
|
|
32062
32062
|
}) {
|
|
32063
|
-
_defineProperty$
|
|
32064
|
-
_defineProperty$
|
|
32065
|
-
_defineProperty$
|
|
32066
|
-
_defineProperty$
|
|
32067
|
-
_defineProperty$
|
|
32068
|
-
_defineProperty$
|
|
32069
|
-
_defineProperty$
|
|
32070
|
-
_defineProperty$
|
|
32071
|
-
_defineProperty$
|
|
32072
|
-
_defineProperty$
|
|
32073
|
-
_defineProperty$
|
|
32074
|
-
_defineProperty$
|
|
32075
|
-
_defineProperty$
|
|
32076
|
-
_defineProperty$
|
|
32077
|
-
_defineProperty$
|
|
32078
|
-
_defineProperty$
|
|
32079
|
-
_defineProperty$
|
|
32063
|
+
_defineProperty$f(this, "gl", void 0);
|
|
32064
|
+
_defineProperty$f(this, "onUpdate", void 0);
|
|
32065
|
+
_defineProperty$f(this, "onError", void 0);
|
|
32066
|
+
_defineProperty$f(this, "_loadOptions", null);
|
|
32067
|
+
_defineProperty$f(this, "_texture", null);
|
|
32068
|
+
_defineProperty$f(this, "_externalTexture", null);
|
|
32069
|
+
_defineProperty$f(this, "_mapping", {});
|
|
32070
|
+
_defineProperty$f(this, "_textureParameters", null);
|
|
32071
|
+
_defineProperty$f(this, "_pendingCount", 0);
|
|
32072
|
+
_defineProperty$f(this, "_autoPacking", false);
|
|
32073
|
+
_defineProperty$f(this, "_xOffset", 0);
|
|
32074
|
+
_defineProperty$f(this, "_yOffset", 0);
|
|
32075
|
+
_defineProperty$f(this, "_rowHeight", 0);
|
|
32076
|
+
_defineProperty$f(this, "_buffer", DEFAULT_BUFFER$1);
|
|
32077
|
+
_defineProperty$f(this, "_canvasWidth", DEFAULT_CANVAS_WIDTH);
|
|
32078
|
+
_defineProperty$f(this, "_canvasHeight", 0);
|
|
32079
|
+
_defineProperty$f(this, "_canvas", null);
|
|
32080
32080
|
this.gl = gl;
|
|
32081
32081
|
this.onUpdate = onUpdate;
|
|
32082
32082
|
this.onError = onError;
|
|
@@ -32267,7 +32267,7 @@ const defaultProps$H = {
|
|
|
32267
32267
|
class IconLayer extends Layer {
|
|
32268
32268
|
constructor(...args) {
|
|
32269
32269
|
super(...args);
|
|
32270
|
-
_defineProperty$
|
|
32270
|
+
_defineProperty$f(this, "state", void 0);
|
|
32271
32271
|
}
|
|
32272
32272
|
getShaders() {
|
|
32273
32273
|
return super.getShaders({
|
|
@@ -32464,8 +32464,8 @@ class IconLayer extends Layer {
|
|
|
32464
32464
|
return [x2, y2, width, height];
|
|
32465
32465
|
}
|
|
32466
32466
|
}
|
|
32467
|
-
_defineProperty$
|
|
32468
|
-
_defineProperty$
|
|
32467
|
+
_defineProperty$f(IconLayer, "defaultProps", defaultProps$H);
|
|
32468
|
+
_defineProperty$f(IconLayer, "layerName", "IconLayer");
|
|
32469
32469
|
const vs$e = "#define SHADER_NAME line-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\n\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float useShortestPath;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nvec3 splitLine(vec3 a, vec3 b, float x) {\n float t = (x - a.x) / (b.x - a.x);\n return vec3(x, mix(a.yz, b.yz, t));\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n vec3 source_world_64low = instanceSourcePositions64Low;\n vec3 target_world_64low = instanceTargetPositions64Low;\n\n if (useShortestPath > 0.5 || useShortestPath < -0.5) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n float deltaLng = target_world.x - source_world.x;\n\n if (deltaLng * useShortestPath > 180.) {\n source_world.x += 360. * useShortestPath;\n source_world = splitLine(source_world, target_world, 180. * useShortestPath);\n source_world_64low = vec3(0.0);\n } else if (deltaLng * useShortestPath < -180.) {\n target_world.x += 360. * useShortestPath;\n target_world = splitLine(source_world, target_world, 180. * useShortestPath);\n target_world_64low = vec3(0.0);\n } else if (useShortestPath < 0.) {\n // Line is not split, abort\n gl_Position = vec4(0.);\n return;\n }\n }\n\n // Position\n vec4 source_commonspace;\n vec4 target_commonspace;\n vec4 source = project_position_to_clipspace(source_world, source_world_64low, vec3(0.), source_commonspace);\n vec4 target = project_position_to_clipspace(target_world, target_world_64low, vec3(0.), target_commonspace);\n \n // linear interpolation of source & target to pick right coord\n float segmentIndex = positions.x;\n vec4 p = mix(source, target, segmentIndex);\n geometry.position = mix(source_commonspace, target_commonspace, segmentIndex);\n uv = positions.xy;\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n // Multiply out width and clamp to limits\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n\n // extrude\n vec3 offset = vec3(\n getExtrusionOffset(target.xy - source.xy, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = p + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Color\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
|
32470
32470
|
const fs$g = "#define SHADER_NAME line-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
|
32471
32471
|
const DEFAULT_COLOR$8 = [0, 0, 0, 255];
|
|
@@ -32597,8 +32597,8 @@ class LineLayer extends Layer {
|
|
|
32597
32597
|
});
|
|
32598
32598
|
}
|
|
32599
32599
|
}
|
|
32600
|
-
_defineProperty$
|
|
32601
|
-
_defineProperty$
|
|
32600
|
+
_defineProperty$f(LineLayer, "layerName", "LineLayer");
|
|
32601
|
+
_defineProperty$f(LineLayer, "defaultProps", defaultProps$G);
|
|
32602
32602
|
const vs$d = "#define SHADER_NAME point-cloud-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\nuniform int sizeUnits;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.normal = project_normal(instanceNormals);\n\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n // Find the center of the point and add the current vertex\n vec3 offset = vec3(positions.xy * project_size_to_pixel(radiusPixels, sizeUnits), 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.), geometry.position);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Apply lighting\n vec3 lightColor = lighting_getLightColor(instanceColors.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n\n // Apply opacity to instance color, or return instance picking color\n vColor = vec4(lightColor, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
|
32603
32603
|
const fs$f = "#define SHADER_NAME point-cloud-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
|
32604
32604
|
const DEFAULT_COLOR$7 = [0, 0, 0, 255];
|
|
@@ -32729,8 +32729,8 @@ class PointCloudLayer extends Layer {
|
|
|
32729
32729
|
});
|
|
32730
32730
|
}
|
|
32731
32731
|
}
|
|
32732
|
-
_defineProperty$
|
|
32733
|
-
_defineProperty$
|
|
32732
|
+
_defineProperty$f(PointCloudLayer, "layerName", "PointCloudLayer");
|
|
32733
|
+
_defineProperty$f(PointCloudLayer, "defaultProps", defaultProps$F);
|
|
32734
32734
|
const vs$c = "#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool antialiasing;\nuniform bool billboard;\nuniform int radiusUnits;\nuniform int lineWidthUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n\n // Multiply out radius and clamp to limits\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius, radiusUnits),\n radiusMinPixels, radiusMaxPixels\n );\n \n // Multiply out line width and clamp to limits\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths, lineWidthUnits),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n\n // outer radius needs to offset by half stroke width\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n\n // Expand geometry to accomodate edge smoothing\n float edgePadding = antialiasing ? (outerRadiusPixels + SMOOTH_EDGE_RADIUS) / outerRadiusPixels : 1.0;\n\n // position on the containing square in [-1, 1] space\n unitPosition = edgePadding * positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = edgePadding * positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = edgePadding * positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n }\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Apply opacity to instance color, or return instance picking color\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n";
|
|
32735
32735
|
const fs$e = "#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (filled) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
|
32736
32736
|
const DEFAULT_COLOR$6 = [0, 0, 0, 255];
|
|
@@ -32911,8 +32911,8 @@ class ScatterplotLayer extends Layer {
|
|
|
32911
32911
|
});
|
|
32912
32912
|
}
|
|
32913
32913
|
}
|
|
32914
|
-
_defineProperty$
|
|
32915
|
-
_defineProperty$
|
|
32914
|
+
_defineProperty$f(ScatterplotLayer, "defaultProps", defaultProps$E);
|
|
32915
|
+
_defineProperty$f(ScatterplotLayer, "layerName", "ScatterplotLayer");
|
|
32916
32916
|
const WINDING = {
|
|
32917
32917
|
CLOCKWISE: 1,
|
|
32918
32918
|
COUNTER_CLOCKWISE: -1
|
|
@@ -34180,8 +34180,8 @@ class ColumnLayer extends Layer {
|
|
|
34180
34180
|
}
|
|
34181
34181
|
}
|
|
34182
34182
|
}
|
|
34183
|
-
_defineProperty$
|
|
34184
|
-
_defineProperty$
|
|
34183
|
+
_defineProperty$f(ColumnLayer, "layerName", "ColumnLayer");
|
|
34184
|
+
_defineProperty$f(ColumnLayer, "defaultProps", defaultProps$D);
|
|
34185
34185
|
const defaultProps$C = {
|
|
34186
34186
|
cellSize: {
|
|
34187
34187
|
type: "number",
|
|
@@ -34222,8 +34222,8 @@ class GridCellLayer extends ColumnLayer {
|
|
|
34222
34222
|
}).draw();
|
|
34223
34223
|
}
|
|
34224
34224
|
}
|
|
34225
|
-
_defineProperty$
|
|
34226
|
-
_defineProperty$
|
|
34225
|
+
_defineProperty$f(GridCellLayer, "layerName", "GridCellLayer");
|
|
34226
|
+
_defineProperty$f(GridCellLayer, "defaultProps", defaultProps$C);
|
|
34227
34227
|
function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
34228
34228
|
let flatPath;
|
|
34229
34229
|
if (Array.isArray(path[0])) {
|
|
@@ -34438,7 +34438,7 @@ const ATTRIBUTE_TRANSITION$1 = {
|
|
|
34438
34438
|
class PathLayer extends Layer {
|
|
34439
34439
|
constructor(...args) {
|
|
34440
34440
|
super(...args);
|
|
34441
|
-
_defineProperty$
|
|
34441
|
+
_defineProperty$f(this, "state", void 0);
|
|
34442
34442
|
}
|
|
34443
34443
|
getShaders() {
|
|
34444
34444
|
return super.getShaders({
|
|
@@ -34641,8 +34641,8 @@ class PathLayer extends Layer {
|
|
|
34641
34641
|
attribute.value = pathTesselator.get("segmentTypes");
|
|
34642
34642
|
}
|
|
34643
34643
|
}
|
|
34644
|
-
_defineProperty$
|
|
34645
|
-
_defineProperty$
|
|
34644
|
+
_defineProperty$f(PathLayer, "defaultProps", defaultProps$B);
|
|
34645
|
+
_defineProperty$f(PathLayer, "layerName", "PathLayer");
|
|
34646
34646
|
var earcut$2 = { exports: {} };
|
|
34647
34647
|
earcut$2.exports = earcut;
|
|
34648
34648
|
earcut$2.exports.default = earcut;
|
|
@@ -35452,7 +35452,7 @@ const ATTRIBUTE_TRANSITION = {
|
|
|
35452
35452
|
class SolidPolygonLayer extends Layer {
|
|
35453
35453
|
constructor(...args) {
|
|
35454
35454
|
super(...args);
|
|
35455
|
-
_defineProperty$
|
|
35455
|
+
_defineProperty$f(this, "state", void 0);
|
|
35456
35456
|
}
|
|
35457
35457
|
getShaders(type) {
|
|
35458
35458
|
return super.getShaders({
|
|
@@ -35776,8 +35776,8 @@ class SolidPolygonLayer extends Layer {
|
|
|
35776
35776
|
attribute.value = this.state.polygonTesselator.get("vertexValid");
|
|
35777
35777
|
}
|
|
35778
35778
|
}
|
|
35779
|
-
_defineProperty$
|
|
35780
|
-
_defineProperty$
|
|
35779
|
+
_defineProperty$f(SolidPolygonLayer, "defaultProps", defaultProps$A);
|
|
35780
|
+
_defineProperty$f(SolidPolygonLayer, "layerName", "SolidPolygonLayer");
|
|
35781
35781
|
function replaceInRange({
|
|
35782
35782
|
data,
|
|
35783
35783
|
getIndex,
|
|
@@ -36029,8 +36029,8 @@ class PolygonLayer extends CompositeLayer {
|
|
|
36029
36029
|
return [!extruded && polygonLayer, polygonLineLayer, extruded && polygonLayer];
|
|
36030
36030
|
}
|
|
36031
36031
|
}
|
|
36032
|
-
_defineProperty$
|
|
36033
|
-
_defineProperty$
|
|
36032
|
+
_defineProperty$f(PolygonLayer, "layerName", "PolygonLayer");
|
|
36033
|
+
_defineProperty$f(PolygonLayer, "defaultProps", defaultProps$z);
|
|
36034
36034
|
function binaryToFeatureForAccesor(data, index2) {
|
|
36035
36035
|
if (!data) {
|
|
36036
36036
|
return null;
|
|
@@ -36091,7 +36091,7 @@ const defaultProps$y = {
|
|
|
36091
36091
|
class MultiIconLayer extends IconLayer {
|
|
36092
36092
|
constructor(...args) {
|
|
36093
36093
|
super(...args);
|
|
36094
|
-
_defineProperty$
|
|
36094
|
+
_defineProperty$f(this, "state", void 0);
|
|
36095
36095
|
}
|
|
36096
36096
|
getShaders() {
|
|
36097
36097
|
return {
|
|
@@ -36166,8 +36166,8 @@ class MultiIconLayer extends IconLayer {
|
|
|
36166
36166
|
return icons ? Array.from(icons).flatMap((icon) => super.getInstanceIconFrame(icon)) : EMPTY_ARRAY;
|
|
36167
36167
|
}
|
|
36168
36168
|
}
|
|
36169
|
-
_defineProperty$
|
|
36170
|
-
_defineProperty$
|
|
36169
|
+
_defineProperty$f(MultiIconLayer, "defaultProps", defaultProps$y);
|
|
36170
|
+
_defineProperty$f(MultiIconLayer, "layerName", "MultiIconLayer");
|
|
36171
36171
|
var tinySdf = { exports: {} };
|
|
36172
36172
|
tinySdf.exports = TinySDF;
|
|
36173
36173
|
tinySdf.exports.default = TinySDF;
|
|
@@ -36535,9 +36535,9 @@ function getTextFromBuffer({
|
|
|
36535
36535
|
}
|
|
36536
36536
|
class LRUCache {
|
|
36537
36537
|
constructor(limit = 5) {
|
|
36538
|
-
_defineProperty$
|
|
36539
|
-
_defineProperty$
|
|
36540
|
-
_defineProperty$
|
|
36538
|
+
_defineProperty$f(this, "limit", void 0);
|
|
36539
|
+
_defineProperty$f(this, "_cache", {});
|
|
36540
|
+
_defineProperty$f(this, "_order", []);
|
|
36541
36541
|
this.limit = limit;
|
|
36542
36542
|
}
|
|
36543
36543
|
get(key) {
|
|
@@ -36636,11 +36636,11 @@ function setFontAtlasCacheLimit(limit) {
|
|
|
36636
36636
|
}
|
|
36637
36637
|
class FontAtlasManager {
|
|
36638
36638
|
constructor() {
|
|
36639
|
-
_defineProperty$
|
|
36639
|
+
_defineProperty$f(this, "props", {
|
|
36640
36640
|
...DEFAULT_FONT_SETTINGS
|
|
36641
36641
|
});
|
|
36642
|
-
_defineProperty$
|
|
36643
|
-
_defineProperty$
|
|
36642
|
+
_defineProperty$f(this, "_key", void 0);
|
|
36643
|
+
_defineProperty$f(this, "_atlas", void 0);
|
|
36644
36644
|
}
|
|
36645
36645
|
get texture() {
|
|
36646
36646
|
return this._atlas;
|
|
@@ -36792,7 +36792,7 @@ const defaultProps$x = {
|
|
|
36792
36792
|
class TextBackgroundLayer extends Layer {
|
|
36793
36793
|
constructor(...args) {
|
|
36794
36794
|
super(...args);
|
|
36795
|
-
_defineProperty$
|
|
36795
|
+
_defineProperty$f(this, "state", void 0);
|
|
36796
36796
|
}
|
|
36797
36797
|
getShaders() {
|
|
36798
36798
|
return super.getShaders({
|
|
@@ -36915,8 +36915,8 @@ class TextBackgroundLayer extends Layer {
|
|
|
36915
36915
|
});
|
|
36916
36916
|
}
|
|
36917
36917
|
}
|
|
36918
|
-
_defineProperty$
|
|
36919
|
-
_defineProperty$
|
|
36918
|
+
_defineProperty$f(TextBackgroundLayer, "defaultProps", defaultProps$x);
|
|
36919
|
+
_defineProperty$f(TextBackgroundLayer, "layerName", "TextBackgroundLayer");
|
|
36920
36920
|
const TEXT_ANCHOR = {
|
|
36921
36921
|
start: 1,
|
|
36922
36922
|
middle: 0,
|
|
@@ -37013,8 +37013,8 @@ const defaultProps$w = {
|
|
|
37013
37013
|
class TextLayer extends CompositeLayer {
|
|
37014
37014
|
constructor(...args) {
|
|
37015
37015
|
super(...args);
|
|
37016
|
-
_defineProperty$
|
|
37017
|
-
_defineProperty$
|
|
37016
|
+
_defineProperty$f(this, "state", void 0);
|
|
37017
|
+
_defineProperty$f(this, "getBoundingRect", (object2, objectInfo) => {
|
|
37018
37018
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
37019
37019
|
const getText = this.state.getText;
|
|
37020
37020
|
const {
|
|
@@ -37032,7 +37032,7 @@ class TextLayer extends CompositeLayer {
|
|
|
37032
37032
|
const anchorY = ALIGNMENT_BASELINE[typeof getAlignmentBaseline === "function" ? getAlignmentBaseline(object2, objectInfo) : getAlignmentBaseline];
|
|
37033
37033
|
return [(anchorX - 1) * width / 2, (anchorY - 1) * height / 2, width, height];
|
|
37034
37034
|
});
|
|
37035
|
-
_defineProperty$
|
|
37035
|
+
_defineProperty$f(this, "getIconOffsets", (object2, objectInfo) => {
|
|
37036
37036
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
37037
37037
|
const getText = this.state.getText;
|
|
37038
37038
|
const {
|
|
@@ -37312,8 +37312,8 @@ class TextLayer extends CompositeLayer {
|
|
|
37312
37312
|
setFontAtlasCacheLimit(limit);
|
|
37313
37313
|
}
|
|
37314
37314
|
}
|
|
37315
|
-
_defineProperty$
|
|
37316
|
-
_defineProperty$
|
|
37315
|
+
_defineProperty$f(TextLayer, "defaultProps", defaultProps$w);
|
|
37316
|
+
_defineProperty$f(TextLayer, "layerName", "TextLayer");
|
|
37317
37317
|
const POINT_LAYER = {
|
|
37318
37318
|
circle: {
|
|
37319
37319
|
type: ScatterplotLayer,
|
|
@@ -37952,8 +37952,8 @@ class GeoJsonLayer extends CompositeLayer {
|
|
|
37952
37952
|
};
|
|
37953
37953
|
}
|
|
37954
37954
|
}
|
|
37955
|
-
_defineProperty$
|
|
37956
|
-
_defineProperty$
|
|
37955
|
+
_defineProperty$f(GeoJsonLayer, "layerName", "GeoJsonLayer");
|
|
37956
|
+
_defineProperty$f(GeoJsonLayer, "defaultProps", defaultProps$v);
|
|
37957
37957
|
const esm$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37958
37958
|
__proto__: null,
|
|
37959
37959
|
ArcLayer,
|
|
@@ -37981,8 +37981,8 @@ const defaultProps$u = {
|
|
|
37981
37981
|
};
|
|
37982
37982
|
class GreatCircleLayer extends ArcLayer {
|
|
37983
37983
|
}
|
|
37984
|
-
_defineProperty$
|
|
37985
|
-
_defineProperty$
|
|
37984
|
+
_defineProperty$f(GreatCircleLayer, "layerName", "GreatCircleLayer");
|
|
37985
|
+
_defineProperty$f(GreatCircleLayer, "defaultProps", defaultProps$u);
|
|
37986
37986
|
const defaultProps$t = {
|
|
37987
37987
|
...PolygonLayer.defaultProps
|
|
37988
37988
|
};
|
|
@@ -38045,8 +38045,8 @@ class GeoCellLayer extends CompositeLayer {
|
|
|
38045
38045
|
}), this.indexToBounds());
|
|
38046
38046
|
}
|
|
38047
38047
|
}
|
|
38048
|
-
_defineProperty$
|
|
38049
|
-
_defineProperty$
|
|
38048
|
+
_defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
|
|
38049
|
+
_defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
|
|
38050
38050
|
function commonjsRequire(path) {
|
|
38051
38051
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
38052
38052
|
}
|
|
@@ -38763,8 +38763,8 @@ class S2Layer extends GeoCellLayer {
|
|
|
38763
38763
|
};
|
|
38764
38764
|
}
|
|
38765
38765
|
}
|
|
38766
|
-
_defineProperty$
|
|
38767
|
-
_defineProperty$
|
|
38766
|
+
_defineProperty$f(S2Layer, "layerName", "S2Layer");
|
|
38767
|
+
_defineProperty$f(S2Layer, "defaultProps", defaultProps$s);
|
|
38768
38768
|
const TILE_SIZE$3 = 512;
|
|
38769
38769
|
function quadkeyToWorldBounds(quadkey) {
|
|
38770
38770
|
let x2 = 0;
|
|
@@ -38807,28 +38807,28 @@ class QuadkeyLayer extends GeoCellLayer {
|
|
|
38807
38807
|
};
|
|
38808
38808
|
}
|
|
38809
38809
|
}
|
|
38810
|
-
_defineProperty$
|
|
38811
|
-
_defineProperty$
|
|
38810
|
+
_defineProperty$f(QuadkeyLayer, "layerName", "QuadkeyLayer");
|
|
38811
|
+
_defineProperty$f(QuadkeyLayer, "defaultProps", defaultProps$r);
|
|
38812
38812
|
class Tile2DHeader {
|
|
38813
38813
|
constructor(index2) {
|
|
38814
|
-
_defineProperty$
|
|
38815
|
-
_defineProperty$
|
|
38816
|
-
_defineProperty$
|
|
38817
|
-
_defineProperty$
|
|
38818
|
-
_defineProperty$
|
|
38819
|
-
_defineProperty$
|
|
38820
|
-
_defineProperty$
|
|
38821
|
-
_defineProperty$
|
|
38822
|
-
_defineProperty$
|
|
38823
|
-
_defineProperty$
|
|
38824
|
-
_defineProperty$
|
|
38825
|
-
_defineProperty$
|
|
38826
|
-
_defineProperty$
|
|
38827
|
-
_defineProperty$
|
|
38828
|
-
_defineProperty$
|
|
38829
|
-
_defineProperty$
|
|
38830
|
-
_defineProperty$
|
|
38831
|
-
_defineProperty$
|
|
38814
|
+
_defineProperty$f(this, "index", void 0);
|
|
38815
|
+
_defineProperty$f(this, "isVisible", void 0);
|
|
38816
|
+
_defineProperty$f(this, "isSelected", void 0);
|
|
38817
|
+
_defineProperty$f(this, "parent", void 0);
|
|
38818
|
+
_defineProperty$f(this, "children", void 0);
|
|
38819
|
+
_defineProperty$f(this, "content", void 0);
|
|
38820
|
+
_defineProperty$f(this, "state", void 0);
|
|
38821
|
+
_defineProperty$f(this, "layers", void 0);
|
|
38822
|
+
_defineProperty$f(this, "id", void 0);
|
|
38823
|
+
_defineProperty$f(this, "bbox", void 0);
|
|
38824
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
38825
|
+
_defineProperty$f(this, "userData", void 0);
|
|
38826
|
+
_defineProperty$f(this, "_abortController", void 0);
|
|
38827
|
+
_defineProperty$f(this, "_loader", void 0);
|
|
38828
|
+
_defineProperty$f(this, "_loaderId", void 0);
|
|
38829
|
+
_defineProperty$f(this, "_isLoaded", void 0);
|
|
38830
|
+
_defineProperty$f(this, "_isCancelled", void 0);
|
|
38831
|
+
_defineProperty$f(this, "_needsReload", void 0);
|
|
38832
38832
|
this.index = index2;
|
|
38833
38833
|
this.isVisible = false;
|
|
38834
38834
|
this.isSelected = false;
|
|
@@ -39604,12 +39604,12 @@ const REF_POINTS_9 = REF_POINTS_5.concat([[0, 0.5], [0.5, 0], [1, 0.5], [0.5, 1]
|
|
|
39604
39604
|
const REF_POINTS_11 = REF_POINTS_9.concat([[0.25, 0.5], [0.75, 0.5]]);
|
|
39605
39605
|
class OSMNode {
|
|
39606
39606
|
constructor(x2, y2, z) {
|
|
39607
|
-
_defineProperty$
|
|
39608
|
-
_defineProperty$
|
|
39609
|
-
_defineProperty$
|
|
39610
|
-
_defineProperty$
|
|
39611
|
-
_defineProperty$
|
|
39612
|
-
_defineProperty$
|
|
39607
|
+
_defineProperty$f(this, "x", void 0);
|
|
39608
|
+
_defineProperty$f(this, "y", void 0);
|
|
39609
|
+
_defineProperty$f(this, "z", void 0);
|
|
39610
|
+
_defineProperty$f(this, "childVisible", void 0);
|
|
39611
|
+
_defineProperty$f(this, "selected", void 0);
|
|
39612
|
+
_defineProperty$f(this, "_children", void 0);
|
|
39613
39613
|
this.x = x2;
|
|
39614
39614
|
this.y = y2;
|
|
39615
39615
|
this.z = z;
|
|
@@ -39956,22 +39956,22 @@ const STRATEGIES = {
|
|
|
39956
39956
|
};
|
|
39957
39957
|
class Tileset2D {
|
|
39958
39958
|
constructor(opts) {
|
|
39959
|
-
_defineProperty$
|
|
39960
|
-
_defineProperty$
|
|
39961
|
-
_defineProperty$
|
|
39962
|
-
_defineProperty$
|
|
39963
|
-
_defineProperty$
|
|
39964
|
-
_defineProperty$
|
|
39965
|
-
_defineProperty$
|
|
39966
|
-
_defineProperty$
|
|
39967
|
-
_defineProperty$
|
|
39968
|
-
_defineProperty$
|
|
39969
|
-
_defineProperty$
|
|
39970
|
-
_defineProperty$
|
|
39971
|
-
_defineProperty$
|
|
39972
|
-
_defineProperty$
|
|
39973
|
-
_defineProperty$
|
|
39974
|
-
_defineProperty$
|
|
39959
|
+
_defineProperty$f(this, "opts", void 0);
|
|
39960
|
+
_defineProperty$f(this, "_requestScheduler", void 0);
|
|
39961
|
+
_defineProperty$f(this, "_cache", void 0);
|
|
39962
|
+
_defineProperty$f(this, "_dirty", void 0);
|
|
39963
|
+
_defineProperty$f(this, "_tiles", void 0);
|
|
39964
|
+
_defineProperty$f(this, "_cacheByteSize", void 0);
|
|
39965
|
+
_defineProperty$f(this, "_viewport", void 0);
|
|
39966
|
+
_defineProperty$f(this, "_zRange", void 0);
|
|
39967
|
+
_defineProperty$f(this, "_selectedTiles", void 0);
|
|
39968
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
39969
|
+
_defineProperty$f(this, "_modelMatrix", void 0);
|
|
39970
|
+
_defineProperty$f(this, "_modelMatrixInverse", void 0);
|
|
39971
|
+
_defineProperty$f(this, "_maxZoom", void 0);
|
|
39972
|
+
_defineProperty$f(this, "_minZoom", void 0);
|
|
39973
|
+
_defineProperty$f(this, "onTileLoad", void 0);
|
|
39974
|
+
_defineProperty$f(this, "_getCullBounds", memoize$1(getCullBounds));
|
|
39975
39975
|
this.opts = opts;
|
|
39976
39976
|
this.onTileLoad = (tile) => {
|
|
39977
39977
|
this.opts.onTileLoad(tile);
|
|
@@ -40584,8 +40584,8 @@ class TileLayer extends CompositeLayer {
|
|
|
40584
40584
|
return this.state.tileset.isTileVisible(tile, cullRect);
|
|
40585
40585
|
}
|
|
40586
40586
|
}
|
|
40587
|
-
_defineProperty$
|
|
40588
|
-
_defineProperty$
|
|
40587
|
+
_defineProperty$f(TileLayer, "defaultProps", defaultProps$q);
|
|
40588
|
+
_defineProperty$f(TileLayer, "layerName", "TileLayer");
|
|
40589
40589
|
const defaultProps$p = {
|
|
40590
40590
|
fadeTrail: true,
|
|
40591
40591
|
trailLength: {
|
|
@@ -40648,8 +40648,8 @@ class TripsLayer extends PathLayer {
|
|
|
40648
40648
|
super.draw(params);
|
|
40649
40649
|
}
|
|
40650
40650
|
}
|
|
40651
|
-
_defineProperty$
|
|
40652
|
-
_defineProperty$
|
|
40651
|
+
_defineProperty$f(TripsLayer, "layerName", "TripsLayer");
|
|
40652
|
+
_defineProperty$f(TripsLayer, "defaultProps", defaultProps$p);
|
|
40653
40653
|
var libh3 = function(libh32) {
|
|
40654
40654
|
libh32 = libh32 || {};
|
|
40655
40655
|
var Module = typeof libh32 !== "undefined" ? libh32 : {};
|
|
@@ -52208,8 +52208,8 @@ class H3ClusterLayer extends GeoCellLayer {
|
|
|
52208
52208
|
};
|
|
52209
52209
|
}
|
|
52210
52210
|
}
|
|
52211
|
-
_defineProperty$
|
|
52212
|
-
_defineProperty$
|
|
52211
|
+
_defineProperty$f(H3ClusterLayer, "layerName", "H3ClusterLayer");
|
|
52212
|
+
_defineProperty$f(H3ClusterLayer, "defaultProps", defaultProps$o);
|
|
52213
52213
|
const UPDATE_THRESHOLD_KM = 10;
|
|
52214
52214
|
function normalizeLongitudes(vertices, refLng) {
|
|
52215
52215
|
refLng = refLng === void 0 ? vertices[0][0] : refLng;
|
|
@@ -52291,7 +52291,7 @@ const defaultProps$n = {
|
|
|
52291
52291
|
class H3HexagonLayer extends CompositeLayer {
|
|
52292
52292
|
constructor(...args) {
|
|
52293
52293
|
super(...args);
|
|
52294
|
-
_defineProperty$
|
|
52294
|
+
_defineProperty$f(this, "state", void 0);
|
|
52295
52295
|
}
|
|
52296
52296
|
initializeState() {
|
|
52297
52297
|
H3HexagonLayer._checkH3Lib();
|
|
@@ -52492,9 +52492,9 @@ class H3HexagonLayer extends CompositeLayer {
|
|
|
52492
52492
|
});
|
|
52493
52493
|
}
|
|
52494
52494
|
}
|
|
52495
|
-
_defineProperty$
|
|
52496
|
-
_defineProperty$
|
|
52497
|
-
_defineProperty$
|
|
52495
|
+
_defineProperty$f(H3HexagonLayer, "defaultProps", defaultProps$n);
|
|
52496
|
+
_defineProperty$f(H3HexagonLayer, "layerName", "H3HexagonLayer");
|
|
52497
|
+
_defineProperty$f(H3HexagonLayer, "_checkH3Lib", () => {
|
|
52498
52498
|
});
|
|
52499
52499
|
const RADIAN_PER_DEGREE = Math.PI / 180;
|
|
52500
52500
|
const modelMatrix = new Float32Array(16);
|
|
@@ -52713,7 +52713,7 @@ const defaultProps$m = {
|
|
|
52713
52713
|
class SimpleMeshLayer extends Layer {
|
|
52714
52714
|
constructor(...args) {
|
|
52715
52715
|
super(...args);
|
|
52716
|
-
_defineProperty$
|
|
52716
|
+
_defineProperty$f(this, "state", void 0);
|
|
52717
52717
|
}
|
|
52718
52718
|
getShaders() {
|
|
52719
52719
|
const transpileToGLSL100 = !isWebGL2$1(this.context.gl);
|
|
@@ -52839,8 +52839,8 @@ class SimpleMeshLayer extends Layer {
|
|
|
52839
52839
|
}
|
|
52840
52840
|
}
|
|
52841
52841
|
}
|
|
52842
|
-
_defineProperty$
|
|
52843
|
-
_defineProperty$
|
|
52842
|
+
_defineProperty$f(SimpleMeshLayer, "defaultProps", defaultProps$m);
|
|
52843
|
+
_defineProperty$f(SimpleMeshLayer, "layerName", "SimpleMeshLayer");
|
|
52844
52844
|
class ScenegraphNode {
|
|
52845
52845
|
constructor() {
|
|
52846
52846
|
let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -54158,9 +54158,9 @@ const DEFAULT_GLTF_JSON = {
|
|
|
54158
54158
|
};
|
|
54159
54159
|
class GLTFScenegraph {
|
|
54160
54160
|
constructor(gltf) {
|
|
54161
|
-
_defineProperty$
|
|
54162
|
-
_defineProperty$
|
|
54163
|
-
_defineProperty$
|
|
54161
|
+
_defineProperty$f(this, "gltf", void 0);
|
|
54162
|
+
_defineProperty$f(this, "sourceBuffers", void 0);
|
|
54163
|
+
_defineProperty$f(this, "byteLength", void 0);
|
|
54164
54164
|
this.gltf = gltf || {
|
|
54165
54165
|
json: {
|
|
54166
54166
|
...DEFAULT_GLTF_JSON
|
|
@@ -54778,8 +54778,8 @@ function assert$2(condition, message) {
|
|
|
54778
54778
|
}
|
|
54779
54779
|
class Schema {
|
|
54780
54780
|
constructor(fields, metadata) {
|
|
54781
|
-
_defineProperty$
|
|
54782
|
-
_defineProperty$
|
|
54781
|
+
_defineProperty$f(this, "fields", void 0);
|
|
54782
|
+
_defineProperty$f(this, "metadata", void 0);
|
|
54783
54783
|
assert$2(Array.isArray(fields));
|
|
54784
54784
|
checkNames(fields);
|
|
54785
54785
|
this.fields = fields;
|
|
@@ -54846,10 +54846,10 @@ function mergeMaps(m1, m2) {
|
|
|
54846
54846
|
}
|
|
54847
54847
|
class Field {
|
|
54848
54848
|
constructor(name2, type, nullable = false, metadata = /* @__PURE__ */ new Map()) {
|
|
54849
|
-
_defineProperty$
|
|
54850
|
-
_defineProperty$
|
|
54851
|
-
_defineProperty$
|
|
54852
|
-
_defineProperty$
|
|
54849
|
+
_defineProperty$f(this, "name", void 0);
|
|
54850
|
+
_defineProperty$f(this, "type", void 0);
|
|
54851
|
+
_defineProperty$f(this, "nullable", void 0);
|
|
54852
|
+
_defineProperty$f(this, "metadata", void 0);
|
|
54853
54853
|
this.name = name2;
|
|
54854
54854
|
this.type = type;
|
|
54855
54855
|
this.nullable = nullable;
|
|
@@ -54982,8 +54982,8 @@ _Symbol$toStringTag = Symbol.toStringTag;
|
|
|
54982
54982
|
class Int extends DataType {
|
|
54983
54983
|
constructor(isSigned, bitWidth) {
|
|
54984
54984
|
super();
|
|
54985
|
-
_defineProperty$
|
|
54986
|
-
_defineProperty$
|
|
54985
|
+
_defineProperty$f(this, "isSigned", void 0);
|
|
54986
|
+
_defineProperty$f(this, "bitWidth", void 0);
|
|
54987
54987
|
this.isSigned = isSigned;
|
|
54988
54988
|
this.bitWidth = bitWidth;
|
|
54989
54989
|
}
|
|
@@ -55036,7 +55036,7 @@ _Symbol$toStringTag2 = Symbol.toStringTag;
|
|
|
55036
55036
|
class Float extends DataType {
|
|
55037
55037
|
constructor(precision) {
|
|
55038
55038
|
super();
|
|
55039
|
-
_defineProperty$
|
|
55039
|
+
_defineProperty$f(this, "precision", void 0);
|
|
55040
55040
|
this.precision = precision;
|
|
55041
55041
|
}
|
|
55042
55042
|
get typeId() {
|
|
@@ -55063,8 +55063,8 @@ _Symbol$toStringTag7 = Symbol.toStringTag;
|
|
|
55063
55063
|
class FixedSizeList extends DataType {
|
|
55064
55064
|
constructor(listSize, child) {
|
|
55065
55065
|
super();
|
|
55066
|
-
_defineProperty$
|
|
55067
|
-
_defineProperty$
|
|
55066
|
+
_defineProperty$f(this, "listSize", void 0);
|
|
55067
|
+
_defineProperty$f(this, "children", void 0);
|
|
55068
55068
|
this.listSize = listSize;
|
|
55069
55069
|
this.children = [child];
|
|
55070
55070
|
}
|
|
@@ -55960,7 +55960,7 @@ const GLTF_KEYS = {
|
|
|
55960
55960
|
};
|
|
55961
55961
|
class GLTFV1Normalizer {
|
|
55962
55962
|
constructor() {
|
|
55963
|
-
_defineProperty$
|
|
55963
|
+
_defineProperty$f(this, "idToIndexMap", {
|
|
55964
55964
|
animations: {},
|
|
55965
55965
|
accessors: {},
|
|
55966
55966
|
buffers: {},
|
|
@@ -55974,7 +55974,7 @@ class GLTFV1Normalizer {
|
|
|
55974
55974
|
skins: {},
|
|
55975
55975
|
textures: {}
|
|
55976
55976
|
});
|
|
55977
|
-
_defineProperty$
|
|
55977
|
+
_defineProperty$f(this, "json", void 0);
|
|
55978
55978
|
}
|
|
55979
55979
|
normalize(gltf, options) {
|
|
55980
55980
|
this.json = gltf.json;
|
|
@@ -56176,10 +56176,10 @@ function getSizeFromAccessorType(type) {
|
|
|
56176
56176
|
}
|
|
56177
56177
|
class GLTFPostProcessor {
|
|
56178
56178
|
constructor() {
|
|
56179
|
-
_defineProperty$
|
|
56180
|
-
_defineProperty$
|
|
56181
|
-
_defineProperty$
|
|
56182
|
-
_defineProperty$
|
|
56179
|
+
_defineProperty$f(this, "baseUri", "");
|
|
56180
|
+
_defineProperty$f(this, "json", {});
|
|
56181
|
+
_defineProperty$f(this, "buffers", []);
|
|
56182
|
+
_defineProperty$f(this, "images", []);
|
|
56183
56183
|
}
|
|
56184
56184
|
postProcess(gltf, options = {}) {
|
|
56185
56185
|
const {
|
|
@@ -56834,7 +56834,7 @@ const defaultProps$l = {
|
|
|
56834
56834
|
class ScenegraphLayer extends Layer {
|
|
56835
56835
|
constructor(...args) {
|
|
56836
56836
|
super(...args);
|
|
56837
|
-
_defineProperty$
|
|
56837
|
+
_defineProperty$f(this, "state", void 0);
|
|
56838
56838
|
}
|
|
56839
56839
|
getShaders() {
|
|
56840
56840
|
const modules = [project32, picking];
|
|
@@ -57049,8 +57049,8 @@ class ScenegraphLayer extends Layer {
|
|
|
57049
57049
|
});
|
|
57050
57050
|
}
|
|
57051
57051
|
}
|
|
57052
|
-
_defineProperty$
|
|
57053
|
-
_defineProperty$
|
|
57052
|
+
_defineProperty$f(ScenegraphLayer, "defaultProps", defaultProps$l);
|
|
57053
|
+
_defineProperty$f(ScenegraphLayer, "layerName", "ScenegraphLayer");
|
|
57054
57054
|
const esm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
57055
57055
|
__proto__: null,
|
|
57056
57056
|
ScenegraphLayer,
|
|
@@ -57209,8 +57209,8 @@ class MeshLayer extends SimpleMeshLayer {
|
|
|
57209
57209
|
});
|
|
57210
57210
|
}
|
|
57211
57211
|
}
|
|
57212
|
-
_defineProperty$
|
|
57213
|
-
_defineProperty$
|
|
57212
|
+
_defineProperty$f(MeshLayer, "layerName", "MeshLayer");
|
|
57213
|
+
_defineProperty$f(MeshLayer, "defaultProps", defaultProps$k);
|
|
57214
57214
|
const WGS84_RADIUS_X$1 = 6378137;
|
|
57215
57215
|
const WGS84_RADIUS_Y$1 = 6378137;
|
|
57216
57216
|
const WGS84_RADIUS_Z$1 = 6356752314245179e-9;
|
|
@@ -57550,9 +57550,9 @@ class Ellipsoid {
|
|
|
57550
57550
|
_defineProperty$f(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X$1, WGS84_RADIUS_Y$1, WGS84_RADIUS_Z$1));
|
|
57551
57551
|
class DoublyLinkedListNode {
|
|
57552
57552
|
constructor(item, previous, next3) {
|
|
57553
|
-
_defineProperty$
|
|
57554
|
-
_defineProperty$
|
|
57555
|
-
_defineProperty$
|
|
57553
|
+
_defineProperty$f(this, "item", void 0);
|
|
57554
|
+
_defineProperty$f(this, "previous", void 0);
|
|
57555
|
+
_defineProperty$f(this, "next", void 0);
|
|
57556
57556
|
this.item = item;
|
|
57557
57557
|
this.previous = previous;
|
|
57558
57558
|
this.next = next3;
|
|
@@ -57560,9 +57560,9 @@ class DoublyLinkedListNode {
|
|
|
57560
57560
|
}
|
|
57561
57561
|
class DoublyLinkedList {
|
|
57562
57562
|
constructor() {
|
|
57563
|
-
_defineProperty$
|
|
57564
|
-
_defineProperty$
|
|
57565
|
-
_defineProperty$
|
|
57563
|
+
_defineProperty$f(this, "head", null);
|
|
57564
|
+
_defineProperty$f(this, "tail", null);
|
|
57565
|
+
_defineProperty$f(this, "_length", 0);
|
|
57566
57566
|
}
|
|
57567
57567
|
get length() {
|
|
57568
57568
|
return this._length;
|
|
@@ -57625,9 +57625,9 @@ function defined$4(x2) {
|
|
|
57625
57625
|
}
|
|
57626
57626
|
class TilesetCache {
|
|
57627
57627
|
constructor() {
|
|
57628
|
-
_defineProperty$
|
|
57629
|
-
_defineProperty$
|
|
57630
|
-
_defineProperty$
|
|
57628
|
+
_defineProperty$f(this, "_list", void 0);
|
|
57629
|
+
_defineProperty$f(this, "_sentinel", void 0);
|
|
57630
|
+
_defineProperty$f(this, "_trimTiles", void 0);
|
|
57631
57631
|
this._list = new DoublyLinkedList();
|
|
57632
57632
|
this._sentinel = this._list.add("sentinel");
|
|
57633
57633
|
this._trimTiles = false;
|
|
@@ -58070,9 +58070,9 @@ function get3dTilesOptions(tileset) {
|
|
|
58070
58070
|
}
|
|
58071
58071
|
class ManagedArray {
|
|
58072
58072
|
constructor(length2 = 0) {
|
|
58073
|
-
_defineProperty$
|
|
58074
|
-
_defineProperty$
|
|
58075
|
-
_defineProperty$
|
|
58073
|
+
_defineProperty$f(this, "_map", /* @__PURE__ */ new Map());
|
|
58074
|
+
_defineProperty$f(this, "_array", void 0);
|
|
58075
|
+
_defineProperty$f(this, "_length", void 0);
|
|
58076
58076
|
this._array = new Array(length2);
|
|
58077
58077
|
this._length = length2;
|
|
58078
58078
|
}
|
|
@@ -58166,16 +58166,16 @@ class TilesetTraverser {
|
|
|
58166
58166
|
return true;
|
|
58167
58167
|
}
|
|
58168
58168
|
constructor(options) {
|
|
58169
|
-
_defineProperty$
|
|
58170
|
-
_defineProperty$
|
|
58171
|
-
_defineProperty$
|
|
58172
|
-
_defineProperty$
|
|
58173
|
-
_defineProperty$
|
|
58174
|
-
_defineProperty$
|
|
58175
|
-
_defineProperty$
|
|
58176
|
-
_defineProperty$
|
|
58177
|
-
_defineProperty$
|
|
58178
|
-
_defineProperty$
|
|
58169
|
+
_defineProperty$f(this, "options", void 0);
|
|
58170
|
+
_defineProperty$f(this, "root", void 0);
|
|
58171
|
+
_defineProperty$f(this, "requestedTiles", void 0);
|
|
58172
|
+
_defineProperty$f(this, "selectedTiles", void 0);
|
|
58173
|
+
_defineProperty$f(this, "emptyTiles", void 0);
|
|
58174
|
+
_defineProperty$f(this, "lastUpdate", (/* @__PURE__ */ new Date()).getTime());
|
|
58175
|
+
_defineProperty$f(this, "updateDebounceTime", 1e3);
|
|
58176
|
+
_defineProperty$f(this, "_traversalStack", void 0);
|
|
58177
|
+
_defineProperty$f(this, "_emptyTraversalStack", void 0);
|
|
58178
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
58179
58179
|
this.options = {
|
|
58180
58180
|
...DEFAULT_PROPS$1,
|
|
58181
58181
|
...options
|
|
@@ -58396,52 +58396,52 @@ function defined$2(x2) {
|
|
|
58396
58396
|
}
|
|
58397
58397
|
class TileHeader {
|
|
58398
58398
|
constructor(tileset, header, parentHeader, extendedId = "") {
|
|
58399
|
-
_defineProperty$
|
|
58400
|
-
_defineProperty$
|
|
58401
|
-
_defineProperty$
|
|
58402
|
-
_defineProperty$
|
|
58403
|
-
_defineProperty$
|
|
58404
|
-
_defineProperty$
|
|
58405
|
-
_defineProperty$
|
|
58406
|
-
_defineProperty$
|
|
58407
|
-
_defineProperty$
|
|
58408
|
-
_defineProperty$
|
|
58409
|
-
_defineProperty$
|
|
58410
|
-
_defineProperty$
|
|
58411
|
-
_defineProperty$
|
|
58412
|
-
_defineProperty$
|
|
58413
|
-
_defineProperty$
|
|
58414
|
-
_defineProperty$
|
|
58415
|
-
_defineProperty$
|
|
58416
|
-
_defineProperty$
|
|
58417
|
-
_defineProperty$
|
|
58418
|
-
_defineProperty$
|
|
58419
|
-
_defineProperty$
|
|
58420
|
-
_defineProperty$
|
|
58421
|
-
_defineProperty$
|
|
58422
|
-
_defineProperty$
|
|
58423
|
-
_defineProperty$
|
|
58424
|
-
_defineProperty$
|
|
58425
|
-
_defineProperty$
|
|
58426
|
-
_defineProperty$
|
|
58427
|
-
_defineProperty$
|
|
58428
|
-
_defineProperty$
|
|
58429
|
-
_defineProperty$
|
|
58430
|
-
_defineProperty$
|
|
58431
|
-
_defineProperty$
|
|
58432
|
-
_defineProperty$
|
|
58433
|
-
_defineProperty$
|
|
58434
|
-
_defineProperty$
|
|
58435
|
-
_defineProperty$
|
|
58436
|
-
_defineProperty$
|
|
58437
|
-
_defineProperty$
|
|
58438
|
-
_defineProperty$
|
|
58439
|
-
_defineProperty$
|
|
58440
|
-
_defineProperty$
|
|
58441
|
-
_defineProperty$
|
|
58442
|
-
_defineProperty$
|
|
58443
|
-
_defineProperty$
|
|
58444
|
-
_defineProperty$
|
|
58399
|
+
_defineProperty$f(this, "tileset", void 0);
|
|
58400
|
+
_defineProperty$f(this, "header", void 0);
|
|
58401
|
+
_defineProperty$f(this, "id", void 0);
|
|
58402
|
+
_defineProperty$f(this, "url", void 0);
|
|
58403
|
+
_defineProperty$f(this, "parent", void 0);
|
|
58404
|
+
_defineProperty$f(this, "refine", void 0);
|
|
58405
|
+
_defineProperty$f(this, "type", void 0);
|
|
58406
|
+
_defineProperty$f(this, "contentUrl", void 0);
|
|
58407
|
+
_defineProperty$f(this, "lodMetricType", void 0);
|
|
58408
|
+
_defineProperty$f(this, "lodMetricValue", void 0);
|
|
58409
|
+
_defineProperty$f(this, "boundingVolume", void 0);
|
|
58410
|
+
_defineProperty$f(this, "content", void 0);
|
|
58411
|
+
_defineProperty$f(this, "contentState", void 0);
|
|
58412
|
+
_defineProperty$f(this, "gpuMemoryUsageInBytes", void 0);
|
|
58413
|
+
_defineProperty$f(this, "children", void 0);
|
|
58414
|
+
_defineProperty$f(this, "depth", void 0);
|
|
58415
|
+
_defineProperty$f(this, "viewportIds", void 0);
|
|
58416
|
+
_defineProperty$f(this, "transform", void 0);
|
|
58417
|
+
_defineProperty$f(this, "extensions", void 0);
|
|
58418
|
+
_defineProperty$f(this, "userData", void 0);
|
|
58419
|
+
_defineProperty$f(this, "computedTransform", void 0);
|
|
58420
|
+
_defineProperty$f(this, "hasEmptyContent", void 0);
|
|
58421
|
+
_defineProperty$f(this, "hasTilesetContent", void 0);
|
|
58422
|
+
_defineProperty$f(this, "traverser", void 0);
|
|
58423
|
+
_defineProperty$f(this, "_cacheNode", void 0);
|
|
58424
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
58425
|
+
_defineProperty$f(this, "_lodJudge", void 0);
|
|
58426
|
+
_defineProperty$f(this, "_expireDate", void 0);
|
|
58427
|
+
_defineProperty$f(this, "_expiredContent", void 0);
|
|
58428
|
+
_defineProperty$f(this, "_shouldRefine", void 0);
|
|
58429
|
+
_defineProperty$f(this, "_distanceToCamera", void 0);
|
|
58430
|
+
_defineProperty$f(this, "_centerZDepth", void 0);
|
|
58431
|
+
_defineProperty$f(this, "_screenSpaceError", void 0);
|
|
58432
|
+
_defineProperty$f(this, "_visibilityPlaneMask", void 0);
|
|
58433
|
+
_defineProperty$f(this, "_visible", void 0);
|
|
58434
|
+
_defineProperty$f(this, "_inRequestVolume", void 0);
|
|
58435
|
+
_defineProperty$f(this, "_stackLength", void 0);
|
|
58436
|
+
_defineProperty$f(this, "_selectionDepth", void 0);
|
|
58437
|
+
_defineProperty$f(this, "_touchedFrame", void 0);
|
|
58438
|
+
_defineProperty$f(this, "_visitedFrame", void 0);
|
|
58439
|
+
_defineProperty$f(this, "_selectedFrame", void 0);
|
|
58440
|
+
_defineProperty$f(this, "_requestedFrame", void 0);
|
|
58441
|
+
_defineProperty$f(this, "_priority", void 0);
|
|
58442
|
+
_defineProperty$f(this, "_contentBoundingVolume", void 0);
|
|
58443
|
+
_defineProperty$f(this, "_viewerRequestVolume", void 0);
|
|
58444
|
+
_defineProperty$f(this, "_initialTransform", void 0);
|
|
58445
58445
|
this.header = header;
|
|
58446
58446
|
this.tileset = tileset;
|
|
58447
58447
|
this.id = extendedId || header.id;
|
|
@@ -58834,7 +58834,7 @@ class Tileset3DTraverser extends TilesetTraverser {
|
|
|
58834
58834
|
}
|
|
58835
58835
|
class I3SPendingTilesRegister {
|
|
58836
58836
|
constructor() {
|
|
58837
|
-
_defineProperty$
|
|
58837
|
+
_defineProperty$f(this, "frameNumberMap", /* @__PURE__ */ new Map());
|
|
58838
58838
|
}
|
|
58839
58839
|
register(viewportId, frameNumber) {
|
|
58840
58840
|
const viewportMap = this.frameNumberMap.get(viewportId) || /* @__PURE__ */ new Map();
|
|
@@ -58863,8 +58863,8 @@ const STATUS = {
|
|
|
58863
58863
|
};
|
|
58864
58864
|
class I3STileManager {
|
|
58865
58865
|
constructor() {
|
|
58866
|
-
_defineProperty$
|
|
58867
|
-
_defineProperty$
|
|
58866
|
+
_defineProperty$f(this, "_statusMap", void 0);
|
|
58867
|
+
_defineProperty$f(this, "pendingTilesRegister", new I3SPendingTilesRegister());
|
|
58868
58868
|
this._statusMap = {};
|
|
58869
58869
|
}
|
|
58870
58870
|
add(request, key, callback, frameState) {
|
|
@@ -58938,7 +58938,7 @@ class I3STilesetTraverser extends TilesetTraverser {
|
|
|
58938
58938
|
}
|
|
58939
58939
|
constructor(options) {
|
|
58940
58940
|
super(options);
|
|
58941
|
-
_defineProperty$
|
|
58941
|
+
_defineProperty$f(this, "_tileManager", void 0);
|
|
58942
58942
|
this._tileManager = new I3STileManager();
|
|
58943
58943
|
}
|
|
58944
58944
|
shouldRefine(tile, frameState) {
|
|
@@ -59035,52 +59035,52 @@ const POINTS_COUNT = "Points/Vertices";
|
|
|
59035
59035
|
const TILES_GPU_MEMORY = "Tile Memory Use";
|
|
59036
59036
|
class Tileset3D {
|
|
59037
59037
|
constructor(json, options) {
|
|
59038
|
-
_defineProperty$
|
|
59039
|
-
_defineProperty$
|
|
59040
|
-
_defineProperty$
|
|
59041
|
-
_defineProperty$
|
|
59042
|
-
_defineProperty$
|
|
59043
|
-
_defineProperty$
|
|
59044
|
-
_defineProperty$
|
|
59045
|
-
_defineProperty$
|
|
59046
|
-
_defineProperty$
|
|
59047
|
-
_defineProperty$
|
|
59048
|
-
_defineProperty$
|
|
59049
|
-
_defineProperty$
|
|
59050
|
-
_defineProperty$
|
|
59051
|
-
_defineProperty$
|
|
59052
|
-
_defineProperty$
|
|
59053
|
-
_defineProperty$
|
|
59054
|
-
_defineProperty$
|
|
59055
|
-
_defineProperty$
|
|
59056
|
-
_defineProperty$
|
|
59057
|
-
_defineProperty$
|
|
59058
|
-
_defineProperty$
|
|
59059
|
-
_defineProperty$
|
|
59060
|
-
_defineProperty$
|
|
59061
|
-
_defineProperty$
|
|
59062
|
-
_defineProperty$
|
|
59063
|
-
_defineProperty$
|
|
59064
|
-
_defineProperty$
|
|
59065
|
-
_defineProperty$
|
|
59066
|
-
_defineProperty$
|
|
59067
|
-
_defineProperty$
|
|
59068
|
-
_defineProperty$
|
|
59069
|
-
_defineProperty$
|
|
59070
|
-
_defineProperty$
|
|
59071
|
-
_defineProperty$
|
|
59072
|
-
_defineProperty$
|
|
59073
|
-
_defineProperty$
|
|
59074
|
-
_defineProperty$
|
|
59075
|
-
_defineProperty$
|
|
59076
|
-
_defineProperty$
|
|
59077
|
-
_defineProperty$
|
|
59078
|
-
_defineProperty$
|
|
59079
|
-
_defineProperty$
|
|
59080
|
-
_defineProperty$
|
|
59081
|
-
_defineProperty$
|
|
59082
|
-
_defineProperty$
|
|
59083
|
-
_defineProperty$
|
|
59038
|
+
_defineProperty$f(this, "options", void 0);
|
|
59039
|
+
_defineProperty$f(this, "loadOptions", void 0);
|
|
59040
|
+
_defineProperty$f(this, "type", void 0);
|
|
59041
|
+
_defineProperty$f(this, "tileset", void 0);
|
|
59042
|
+
_defineProperty$f(this, "loader", void 0);
|
|
59043
|
+
_defineProperty$f(this, "url", void 0);
|
|
59044
|
+
_defineProperty$f(this, "basePath", void 0);
|
|
59045
|
+
_defineProperty$f(this, "modelMatrix", void 0);
|
|
59046
|
+
_defineProperty$f(this, "ellipsoid", void 0);
|
|
59047
|
+
_defineProperty$f(this, "lodMetricType", void 0);
|
|
59048
|
+
_defineProperty$f(this, "lodMetricValue", void 0);
|
|
59049
|
+
_defineProperty$f(this, "refine", void 0);
|
|
59050
|
+
_defineProperty$f(this, "root", void 0);
|
|
59051
|
+
_defineProperty$f(this, "roots", void 0);
|
|
59052
|
+
_defineProperty$f(this, "asset", void 0);
|
|
59053
|
+
_defineProperty$f(this, "description", void 0);
|
|
59054
|
+
_defineProperty$f(this, "properties", void 0);
|
|
59055
|
+
_defineProperty$f(this, "extras", void 0);
|
|
59056
|
+
_defineProperty$f(this, "attributions", void 0);
|
|
59057
|
+
_defineProperty$f(this, "credits", void 0);
|
|
59058
|
+
_defineProperty$f(this, "stats", void 0);
|
|
59059
|
+
_defineProperty$f(this, "traverseCounter", void 0);
|
|
59060
|
+
_defineProperty$f(this, "geometricError", void 0);
|
|
59061
|
+
_defineProperty$f(this, "selectedTiles", void 0);
|
|
59062
|
+
_defineProperty$f(this, "updatePromise", null);
|
|
59063
|
+
_defineProperty$f(this, "tilesetInitializationPromise", void 0);
|
|
59064
|
+
_defineProperty$f(this, "cartographicCenter", void 0);
|
|
59065
|
+
_defineProperty$f(this, "cartesianCenter", void 0);
|
|
59066
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
59067
|
+
_defineProperty$f(this, "boundingVolume", void 0);
|
|
59068
|
+
_defineProperty$f(this, "gpuMemoryUsageInBytes", void 0);
|
|
59069
|
+
_defineProperty$f(this, "dynamicScreenSpaceErrorComputedDensity", void 0);
|
|
59070
|
+
_defineProperty$f(this, "_traverser", void 0);
|
|
59071
|
+
_defineProperty$f(this, "_cache", void 0);
|
|
59072
|
+
_defineProperty$f(this, "_requestScheduler", void 0);
|
|
59073
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
59074
|
+
_defineProperty$f(this, "_queryParamsString", void 0);
|
|
59075
|
+
_defineProperty$f(this, "_queryParams", void 0);
|
|
59076
|
+
_defineProperty$f(this, "_extensionsUsed", void 0);
|
|
59077
|
+
_defineProperty$f(this, "_tiles", void 0);
|
|
59078
|
+
_defineProperty$f(this, "_pendingCount", void 0);
|
|
59079
|
+
_defineProperty$f(this, "lastUpdatedVieports", void 0);
|
|
59080
|
+
_defineProperty$f(this, "_requestedTiles", void 0);
|
|
59081
|
+
_defineProperty$f(this, "_emptyTiles", void 0);
|
|
59082
|
+
_defineProperty$f(this, "frameStateData", void 0);
|
|
59083
|
+
_defineProperty$f(this, "maximumMemoryUsage", void 0);
|
|
59084
59084
|
assert$c(json);
|
|
59085
59085
|
this.options = {
|
|
59086
59086
|
...DEFAULT_PROPS,
|
|
@@ -59736,10 +59736,10 @@ function octDecode(x2, y2, result) {
|
|
|
59736
59736
|
}
|
|
59737
59737
|
class Tile3DFeatureTable {
|
|
59738
59738
|
constructor(featureTableJson, featureTableBinary) {
|
|
59739
|
-
_defineProperty$
|
|
59740
|
-
_defineProperty$
|
|
59741
|
-
_defineProperty$
|
|
59742
|
-
_defineProperty$
|
|
59739
|
+
_defineProperty$f(this, "json", void 0);
|
|
59740
|
+
_defineProperty$f(this, "buffer", void 0);
|
|
59741
|
+
_defineProperty$f(this, "featuresLength", 0);
|
|
59742
|
+
_defineProperty$f(this, "_cachedTypedArrays", {});
|
|
59743
59743
|
this.json = featureTableJson;
|
|
59744
59744
|
this.buffer = featureTableBinary;
|
|
59745
59745
|
}
|
|
@@ -60073,13 +60073,13 @@ const IGNORED_PROPERTY_FIELDS = {
|
|
|
60073
60073
|
class Tile3DBatchTableParser {
|
|
60074
60074
|
constructor(json, binary, featureCount, options = {}) {
|
|
60075
60075
|
var _this$json;
|
|
60076
|
-
_defineProperty$
|
|
60077
|
-
_defineProperty$
|
|
60078
|
-
_defineProperty$
|
|
60079
|
-
_defineProperty$
|
|
60080
|
-
_defineProperty$
|
|
60081
|
-
_defineProperty$
|
|
60082
|
-
_defineProperty$
|
|
60076
|
+
_defineProperty$f(this, "json", void 0);
|
|
60077
|
+
_defineProperty$f(this, "binary", void 0);
|
|
60078
|
+
_defineProperty$f(this, "featureCount", void 0);
|
|
60079
|
+
_defineProperty$f(this, "_extensions", void 0);
|
|
60080
|
+
_defineProperty$f(this, "_properties", void 0);
|
|
60081
|
+
_defineProperty$f(this, "_binaryProperties", void 0);
|
|
60082
|
+
_defineProperty$f(this, "_hierarchy", void 0);
|
|
60083
60083
|
assert$c(featureCount >= 0);
|
|
60084
60084
|
this.json = json || {};
|
|
60085
60085
|
this.binary = binary;
|
|
@@ -61424,7 +61424,7 @@ const defaultProps$j = {
|
|
|
61424
61424
|
class Tile3DLayer extends CompositeLayer {
|
|
61425
61425
|
constructor(...args) {
|
|
61426
61426
|
super(...args);
|
|
61427
|
-
_defineProperty$
|
|
61427
|
+
_defineProperty$f(this, "state", void 0);
|
|
61428
61428
|
}
|
|
61429
61429
|
initializeState() {
|
|
61430
61430
|
if ("onTileLoadFail" in this.props) {
|
|
@@ -61745,8 +61745,8 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
61745
61745
|
}).filter(Boolean);
|
|
61746
61746
|
}
|
|
61747
61747
|
}
|
|
61748
|
-
_defineProperty$
|
|
61749
|
-
_defineProperty$
|
|
61748
|
+
_defineProperty$f(Tile3DLayer, "defaultProps", defaultProps$j);
|
|
61749
|
+
_defineProperty$f(Tile3DLayer, "layerName", "Tile3DLayer");
|
|
61750
61750
|
function getMeshGeometry(contentAttributes) {
|
|
61751
61751
|
const attributes = {};
|
|
61752
61752
|
attributes.positions = {
|
|
@@ -62576,7 +62576,7 @@ function urlTemplateToUpdateTrigger(template) {
|
|
|
62576
62576
|
class TerrainLayer extends CompositeLayer {
|
|
62577
62577
|
constructor(...args) {
|
|
62578
62578
|
super(...args);
|
|
62579
|
-
_defineProperty$
|
|
62579
|
+
_defineProperty$f(this, "state", void 0);
|
|
62580
62580
|
}
|
|
62581
62581
|
updateState({
|
|
62582
62582
|
props: props2,
|
|
@@ -62791,8 +62791,8 @@ class TerrainLayer extends CompositeLayer {
|
|
|
62791
62791
|
});
|
|
62792
62792
|
}
|
|
62793
62793
|
}
|
|
62794
|
-
_defineProperty$
|
|
62795
|
-
_defineProperty$
|
|
62794
|
+
_defineProperty$f(TerrainLayer, "defaultProps", defaultProps$i);
|
|
62795
|
+
_defineProperty$f(TerrainLayer, "layerName", "TerrainLayer");
|
|
62796
62796
|
function flatGeojsonToBinary(features, geometryInfo, options) {
|
|
62797
62797
|
const propArrayTypes = extractNumericPropTypes(features);
|
|
62798
62798
|
const numericPropKeys = Object.keys(propArrayTypes).filter((k) => propArrayTypes[k] !== Array);
|
|
@@ -64082,14 +64082,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
64082
64082
|
return ["Unknown", "Point", "LineString", "Polygon"];
|
|
64083
64083
|
}
|
|
64084
64084
|
constructor(pbf2, end, extent2, keys3, values2) {
|
|
64085
|
-
_defineProperty$
|
|
64086
|
-
_defineProperty$
|
|
64087
|
-
_defineProperty$
|
|
64088
|
-
_defineProperty$
|
|
64089
|
-
_defineProperty$
|
|
64090
|
-
_defineProperty$
|
|
64091
|
-
_defineProperty$
|
|
64092
|
-
_defineProperty$
|
|
64085
|
+
_defineProperty$f(this, "properties", void 0);
|
|
64086
|
+
_defineProperty$f(this, "extent", void 0);
|
|
64087
|
+
_defineProperty$f(this, "type", void 0);
|
|
64088
|
+
_defineProperty$f(this, "id", void 0);
|
|
64089
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
64090
|
+
_defineProperty$f(this, "_geometry", void 0);
|
|
64091
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
64092
|
+
_defineProperty$f(this, "_values", void 0);
|
|
64093
64093
|
this.properties = {};
|
|
64094
64094
|
this.extent = extent2;
|
|
64095
64095
|
this.type = 0;
|
|
@@ -64246,14 +64246,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
64246
64246
|
};
|
|
64247
64247
|
let VectorTileLayer$1 = class VectorTileLayer {
|
|
64248
64248
|
constructor(pbf2, end) {
|
|
64249
|
-
_defineProperty$
|
|
64250
|
-
_defineProperty$
|
|
64251
|
-
_defineProperty$
|
|
64252
|
-
_defineProperty$
|
|
64253
|
-
_defineProperty$
|
|
64254
|
-
_defineProperty$
|
|
64255
|
-
_defineProperty$
|
|
64256
|
-
_defineProperty$
|
|
64249
|
+
_defineProperty$f(this, "version", void 0);
|
|
64250
|
+
_defineProperty$f(this, "name", void 0);
|
|
64251
|
+
_defineProperty$f(this, "extent", void 0);
|
|
64252
|
+
_defineProperty$f(this, "length", void 0);
|
|
64253
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
64254
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
64255
|
+
_defineProperty$f(this, "_values", void 0);
|
|
64256
|
+
_defineProperty$f(this, "_features", void 0);
|
|
64257
64257
|
this.version = 1;
|
|
64258
64258
|
this.name = "";
|
|
64259
64259
|
this.extent = 4096;
|
|
@@ -64301,7 +64301,7 @@ function readValueMessage$1(pbf2) {
|
|
|
64301
64301
|
}
|
|
64302
64302
|
let VectorTile$1 = class VectorTile {
|
|
64303
64303
|
constructor(pbf2, end) {
|
|
64304
|
-
_defineProperty$
|
|
64304
|
+
_defineProperty$f(this, "layers", void 0);
|
|
64305
64305
|
this.layers = pbf2.readFields(readTile$1, {}, end);
|
|
64306
64306
|
}
|
|
64307
64307
|
};
|
|
@@ -64405,15 +64405,15 @@ let y;
|
|
|
64405
64405
|
let i$2;
|
|
64406
64406
|
class VectorTileFeature2 {
|
|
64407
64407
|
constructor(pbf2, end, extent2, keys3, values2, geometryInfo) {
|
|
64408
|
-
_defineProperty$
|
|
64409
|
-
_defineProperty$
|
|
64410
|
-
_defineProperty$
|
|
64411
|
-
_defineProperty$
|
|
64412
|
-
_defineProperty$
|
|
64413
|
-
_defineProperty$
|
|
64414
|
-
_defineProperty$
|
|
64415
|
-
_defineProperty$
|
|
64416
|
-
_defineProperty$
|
|
64408
|
+
_defineProperty$f(this, "properties", void 0);
|
|
64409
|
+
_defineProperty$f(this, "extent", void 0);
|
|
64410
|
+
_defineProperty$f(this, "type", void 0);
|
|
64411
|
+
_defineProperty$f(this, "id", void 0);
|
|
64412
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
64413
|
+
_defineProperty$f(this, "_geometry", void 0);
|
|
64414
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
64415
|
+
_defineProperty$f(this, "_values", void 0);
|
|
64416
|
+
_defineProperty$f(this, "_geometryInfo", void 0);
|
|
64417
64417
|
this.properties = {};
|
|
64418
64418
|
this.extent = extent2;
|
|
64419
64419
|
this.type = 0;
|
|
@@ -64528,14 +64528,14 @@ class VectorTileFeature2 {
|
|
|
64528
64528
|
}
|
|
64529
64529
|
class VectorTileLayer2 {
|
|
64530
64530
|
constructor(pbf2, end) {
|
|
64531
|
-
_defineProperty$
|
|
64532
|
-
_defineProperty$
|
|
64533
|
-
_defineProperty$
|
|
64534
|
-
_defineProperty$
|
|
64535
|
-
_defineProperty$
|
|
64536
|
-
_defineProperty$
|
|
64537
|
-
_defineProperty$
|
|
64538
|
-
_defineProperty$
|
|
64531
|
+
_defineProperty$f(this, "version", void 0);
|
|
64532
|
+
_defineProperty$f(this, "name", void 0);
|
|
64533
|
+
_defineProperty$f(this, "extent", void 0);
|
|
64534
|
+
_defineProperty$f(this, "length", void 0);
|
|
64535
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
64536
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
64537
|
+
_defineProperty$f(this, "_values", void 0);
|
|
64538
|
+
_defineProperty$f(this, "_features", void 0);
|
|
64539
64539
|
this.version = 1;
|
|
64540
64540
|
this.name = "";
|
|
64541
64541
|
this.extent = 4096;
|
|
@@ -64583,7 +64583,7 @@ function readValueMessage(pbf2) {
|
|
|
64583
64583
|
}
|
|
64584
64584
|
class VectorTile2 {
|
|
64585
64585
|
constructor(pbf2, end) {
|
|
64586
|
-
_defineProperty$
|
|
64586
|
+
_defineProperty$f(this, "layers", void 0);
|
|
64587
64587
|
this.layers = pbf2.readFields(readTile, {}, end);
|
|
64588
64588
|
}
|
|
64589
64589
|
}
|
|
@@ -65194,8 +65194,8 @@ class MVTLayer extends TileLayer {
|
|
|
65194
65194
|
});
|
|
65195
65195
|
}
|
|
65196
65196
|
}
|
|
65197
|
-
_defineProperty$
|
|
65198
|
-
_defineProperty$
|
|
65197
|
+
_defineProperty$f(MVTLayer, "layerName", "MVTLayer");
|
|
65198
|
+
_defineProperty$f(MVTLayer, "defaultProps", defaultProps$h);
|
|
65199
65199
|
function getFeatureUniqueId(feature2, uniqueIdProperty) {
|
|
65200
65200
|
if (feature2.properties && uniqueIdProperty) {
|
|
65201
65201
|
return feature2.properties[uniqueIdProperty];
|
|
@@ -65293,8 +65293,8 @@ class GeohashLayer extends GeoCellLayer {
|
|
|
65293
65293
|
};
|
|
65294
65294
|
}
|
|
65295
65295
|
}
|
|
65296
|
-
_defineProperty$
|
|
65297
|
-
_defineProperty$
|
|
65296
|
+
_defineProperty$f(GeohashLayer, "layerName", "GeohashLayer");
|
|
65297
|
+
_defineProperty$f(GeohashLayer, "defaultProps", defaultProps$g);
|
|
65298
65298
|
const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65299
65299
|
__proto__: null,
|
|
65300
65300
|
GeohashLayer,
|
|
@@ -69155,13 +69155,13 @@ var shams$1 = function hasSymbols() {
|
|
|
69155
69155
|
}
|
|
69156
69156
|
return true;
|
|
69157
69157
|
};
|
|
69158
|
-
var hasSymbols$
|
|
69158
|
+
var hasSymbols$3 = shams$1;
|
|
69159
69159
|
var shams = function hasToStringTagShams() {
|
|
69160
|
-
return hasSymbols$
|
|
69160
|
+
return hasSymbols$3() && !!Symbol.toStringTag;
|
|
69161
69161
|
};
|
|
69162
69162
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
69163
69163
|
var hasSymbolSham = shams$1;
|
|
69164
|
-
var hasSymbols$
|
|
69164
|
+
var hasSymbols$2 = function hasNativeSymbols() {
|
|
69165
69165
|
if (typeof origSymbol !== "function") {
|
|
69166
69166
|
return false;
|
|
69167
69167
|
}
|
|
@@ -69176,6 +69176,13 @@ var hasSymbols$3 = function hasNativeSymbols() {
|
|
|
69176
69176
|
}
|
|
69177
69177
|
return hasSymbolSham();
|
|
69178
69178
|
};
|
|
69179
|
+
var test = {
|
|
69180
|
+
foo: {}
|
|
69181
|
+
};
|
|
69182
|
+
var $Object = Object;
|
|
69183
|
+
var hasProto$1 = function hasProto() {
|
|
69184
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
69185
|
+
};
|
|
69179
69186
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
69180
69187
|
var slice$1 = Array.prototype.slice;
|
|
69181
69188
|
var toStr$2 = Object.prototype.toString;
|
|
@@ -69221,374 +69228,8 @@ var implementation$7 = function bind2(that) {
|
|
|
69221
69228
|
};
|
|
69222
69229
|
var implementation$6 = implementation$7;
|
|
69223
69230
|
var functionBind = Function.prototype.bind || implementation$6;
|
|
69224
|
-
var bind$2 = functionBind;
|
|
69225
|
-
var src = bind$2.call(Function.call, Object.prototype.hasOwnProperty);
|
|
69226
|
-
var undefined$2;
|
|
69227
|
-
var $SyntaxError$1 = SyntaxError;
|
|
69228
|
-
var $Function$1 = Function;
|
|
69229
|
-
var $TypeError$1 = TypeError;
|
|
69230
|
-
var getEvalledConstructor$1 = function(expressionSyntax) {
|
|
69231
|
-
try {
|
|
69232
|
-
return $Function$1('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
69233
|
-
} catch (e2) {
|
|
69234
|
-
}
|
|
69235
|
-
};
|
|
69236
|
-
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
69237
|
-
if ($gOPD$2) {
|
|
69238
|
-
try {
|
|
69239
|
-
$gOPD$2({}, "");
|
|
69240
|
-
} catch (e2) {
|
|
69241
|
-
$gOPD$2 = null;
|
|
69242
|
-
}
|
|
69243
|
-
}
|
|
69244
|
-
var throwTypeError$1 = function() {
|
|
69245
|
-
throw new $TypeError$1();
|
|
69246
|
-
};
|
|
69247
|
-
var ThrowTypeError$1 = $gOPD$2 ? function() {
|
|
69248
|
-
try {
|
|
69249
|
-
arguments.callee;
|
|
69250
|
-
return throwTypeError$1;
|
|
69251
|
-
} catch (calleeThrows) {
|
|
69252
|
-
try {
|
|
69253
|
-
return $gOPD$2(arguments, "callee").get;
|
|
69254
|
-
} catch (gOPDthrows) {
|
|
69255
|
-
return throwTypeError$1;
|
|
69256
|
-
}
|
|
69257
|
-
}
|
|
69258
|
-
}() : throwTypeError$1;
|
|
69259
|
-
var hasSymbols$2 = hasSymbols$3();
|
|
69260
|
-
var getProto$2 = Object.getPrototypeOf || function(x2) {
|
|
69261
|
-
return x2.__proto__;
|
|
69262
|
-
};
|
|
69263
|
-
var needsEval$1 = {};
|
|
69264
|
-
var TypedArray$2 = typeof Uint8Array === "undefined" ? undefined$2 : getProto$2(Uint8Array);
|
|
69265
|
-
var INTRINSICS$1 = {
|
|
69266
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$2 : AggregateError,
|
|
69267
|
-
"%Array%": Array,
|
|
69268
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$2 : ArrayBuffer,
|
|
69269
|
-
"%ArrayIteratorPrototype%": hasSymbols$2 ? getProto$2([][Symbol.iterator]()) : undefined$2,
|
|
69270
|
-
"%AsyncFromSyncIteratorPrototype%": undefined$2,
|
|
69271
|
-
"%AsyncFunction%": needsEval$1,
|
|
69272
|
-
"%AsyncGenerator%": needsEval$1,
|
|
69273
|
-
"%AsyncGeneratorFunction%": needsEval$1,
|
|
69274
|
-
"%AsyncIteratorPrototype%": needsEval$1,
|
|
69275
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined$2 : Atomics,
|
|
69276
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined$2 : BigInt,
|
|
69277
|
-
"%Boolean%": Boolean,
|
|
69278
|
-
"%DataView%": typeof DataView === "undefined" ? undefined$2 : DataView,
|
|
69279
|
-
"%Date%": Date,
|
|
69280
|
-
"%decodeURI%": decodeURI,
|
|
69281
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
69282
|
-
"%encodeURI%": encodeURI,
|
|
69283
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
69284
|
-
"%Error%": Error,
|
|
69285
|
-
"%eval%": eval,
|
|
69286
|
-
// eslint-disable-line no-eval
|
|
69287
|
-
"%EvalError%": EvalError,
|
|
69288
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$2 : Float32Array,
|
|
69289
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$2 : Float64Array,
|
|
69290
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$2 : FinalizationRegistry,
|
|
69291
|
-
"%Function%": $Function$1,
|
|
69292
|
-
"%GeneratorFunction%": needsEval$1,
|
|
69293
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined$2 : Int8Array,
|
|
69294
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined$2 : Int16Array,
|
|
69295
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$2 : Int32Array,
|
|
69296
|
-
"%isFinite%": isFinite,
|
|
69297
|
-
"%isNaN%": isNaN,
|
|
69298
|
-
"%IteratorPrototype%": hasSymbols$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$2,
|
|
69299
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined$2,
|
|
69300
|
-
"%Map%": typeof Map === "undefined" ? undefined$2 : Map,
|
|
69301
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 ? undefined$2 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
69302
|
-
"%Math%": Math,
|
|
69303
|
-
"%Number%": Number,
|
|
69304
|
-
"%Object%": Object,
|
|
69305
|
-
"%parseFloat%": parseFloat,
|
|
69306
|
-
"%parseInt%": parseInt,
|
|
69307
|
-
"%Promise%": typeof Promise === "undefined" ? undefined$2 : Promise,
|
|
69308
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined$2 : Proxy,
|
|
69309
|
-
"%RangeError%": RangeError,
|
|
69310
|
-
"%ReferenceError%": ReferenceError,
|
|
69311
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined$2 : Reflect,
|
|
69312
|
-
"%RegExp%": RegExp,
|
|
69313
|
-
"%Set%": typeof Set === "undefined" ? undefined$2 : Set,
|
|
69314
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 ? undefined$2 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
69315
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$2 : SharedArrayBuffer,
|
|
69316
|
-
"%String%": String,
|
|
69317
|
-
"%StringIteratorPrototype%": hasSymbols$2 ? getProto$2(""[Symbol.iterator]()) : undefined$2,
|
|
69318
|
-
"%Symbol%": hasSymbols$2 ? Symbol : undefined$2,
|
|
69319
|
-
"%SyntaxError%": $SyntaxError$1,
|
|
69320
|
-
"%ThrowTypeError%": ThrowTypeError$1,
|
|
69321
|
-
"%TypedArray%": TypedArray$2,
|
|
69322
|
-
"%TypeError%": $TypeError$1,
|
|
69323
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$2 : Uint8Array,
|
|
69324
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$2 : Uint8ClampedArray,
|
|
69325
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$2 : Uint16Array,
|
|
69326
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$2 : Uint32Array,
|
|
69327
|
-
"%URIError%": URIError,
|
|
69328
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined$2 : WeakMap,
|
|
69329
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined$2 : WeakRef,
|
|
69330
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined$2 : WeakSet
|
|
69331
|
-
};
|
|
69332
|
-
var doEval$1 = function doEval(name2) {
|
|
69333
|
-
var value;
|
|
69334
|
-
if (name2 === "%AsyncFunction%") {
|
|
69335
|
-
value = getEvalledConstructor$1("async function () {}");
|
|
69336
|
-
} else if (name2 === "%GeneratorFunction%") {
|
|
69337
|
-
value = getEvalledConstructor$1("function* () {}");
|
|
69338
|
-
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
69339
|
-
value = getEvalledConstructor$1("async function* () {}");
|
|
69340
|
-
} else if (name2 === "%AsyncGenerator%") {
|
|
69341
|
-
var fn = doEval("%AsyncGeneratorFunction%");
|
|
69342
|
-
if (fn) {
|
|
69343
|
-
value = fn.prototype;
|
|
69344
|
-
}
|
|
69345
|
-
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
69346
|
-
var gen = doEval("%AsyncGenerator%");
|
|
69347
|
-
if (gen) {
|
|
69348
|
-
value = getProto$2(gen.prototype);
|
|
69349
|
-
}
|
|
69350
|
-
}
|
|
69351
|
-
INTRINSICS$1[name2] = value;
|
|
69352
|
-
return value;
|
|
69353
|
-
};
|
|
69354
|
-
var LEGACY_ALIASES$1 = {
|
|
69355
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
69356
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
69357
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
69358
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
69359
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
69360
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
69361
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
69362
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
69363
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
69364
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
69365
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
69366
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
69367
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
69368
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
69369
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
69370
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
69371
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
69372
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
69373
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
69374
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
69375
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
69376
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
69377
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
69378
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
69379
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
69380
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
69381
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
69382
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
69383
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
69384
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
69385
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
69386
|
-
"%Promise_all%": ["Promise", "all"],
|
|
69387
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
69388
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
69389
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
69390
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
69391
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
69392
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
69393
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
69394
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
69395
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
69396
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
69397
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
69398
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
69399
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
69400
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
69401
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
69402
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
69403
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
69404
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
69405
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
69406
|
-
};
|
|
69407
69231
|
var bind$1 = functionBind;
|
|
69408
|
-
var
|
|
69409
|
-
var $concat$1 = bind$1.call(Function.call, Array.prototype.concat);
|
|
69410
|
-
var $spliceApply$1 = bind$1.call(Function.apply, Array.prototype.splice);
|
|
69411
|
-
var $replace$1 = bind$1.call(Function.call, String.prototype.replace);
|
|
69412
|
-
var $strSlice$1 = bind$1.call(Function.call, String.prototype.slice);
|
|
69413
|
-
var $exec$2 = bind$1.call(Function.call, RegExp.prototype.exec);
|
|
69414
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
69415
|
-
var reEscapeChar$1 = /\\(\\)?/g;
|
|
69416
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
69417
|
-
var first = $strSlice$1(string, 0, 1);
|
|
69418
|
-
var last = $strSlice$1(string, -1);
|
|
69419
|
-
if (first === "%" && last !== "%") {
|
|
69420
|
-
throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
|
|
69421
|
-
} else if (last === "%" && first !== "%") {
|
|
69422
|
-
throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
|
|
69423
|
-
}
|
|
69424
|
-
var result = [];
|
|
69425
|
-
$replace$1(string, rePropName$1, function(match, number, quote, subString) {
|
|
69426
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, "$1") : number || match;
|
|
69427
|
-
});
|
|
69428
|
-
return result;
|
|
69429
|
-
};
|
|
69430
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name2, allowMissing) {
|
|
69431
|
-
var intrinsicName = name2;
|
|
69432
|
-
var alias;
|
|
69433
|
-
if (hasOwn$1(LEGACY_ALIASES$1, intrinsicName)) {
|
|
69434
|
-
alias = LEGACY_ALIASES$1[intrinsicName];
|
|
69435
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
69436
|
-
}
|
|
69437
|
-
if (hasOwn$1(INTRINSICS$1, intrinsicName)) {
|
|
69438
|
-
var value = INTRINSICS$1[intrinsicName];
|
|
69439
|
-
if (value === needsEval$1) {
|
|
69440
|
-
value = doEval$1(intrinsicName);
|
|
69441
|
-
}
|
|
69442
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
69443
|
-
throw new $TypeError$1("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
69444
|
-
}
|
|
69445
|
-
return {
|
|
69446
|
-
alias,
|
|
69447
|
-
name: intrinsicName,
|
|
69448
|
-
value
|
|
69449
|
-
};
|
|
69450
|
-
}
|
|
69451
|
-
throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
|
|
69452
|
-
};
|
|
69453
|
-
var getIntrinsic$1 = function GetIntrinsic(name2, allowMissing) {
|
|
69454
|
-
if (typeof name2 !== "string" || name2.length === 0) {
|
|
69455
|
-
throw new $TypeError$1("intrinsic name must be a non-empty string");
|
|
69456
|
-
}
|
|
69457
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
69458
|
-
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
69459
|
-
}
|
|
69460
|
-
if ($exec$2(/^%?[^%]*%?$/, name2) === null) {
|
|
69461
|
-
throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
69462
|
-
}
|
|
69463
|
-
var parts = stringToPath$1(name2);
|
|
69464
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
69465
|
-
var intrinsic = getBaseIntrinsic$1("%" + intrinsicBaseName + "%", allowMissing);
|
|
69466
|
-
var intrinsicRealName = intrinsic.name;
|
|
69467
|
-
var value = intrinsic.value;
|
|
69468
|
-
var skipFurtherCaching = false;
|
|
69469
|
-
var alias = intrinsic.alias;
|
|
69470
|
-
if (alias) {
|
|
69471
|
-
intrinsicBaseName = alias[0];
|
|
69472
|
-
$spliceApply$1(parts, $concat$1([0, 1], alias));
|
|
69473
|
-
}
|
|
69474
|
-
for (var i2 = 1, isOwn = true; i2 < parts.length; i2 += 1) {
|
|
69475
|
-
var part = parts[i2];
|
|
69476
|
-
var first = $strSlice$1(part, 0, 1);
|
|
69477
|
-
var last = $strSlice$1(part, -1);
|
|
69478
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
69479
|
-
throw new $SyntaxError$1("property names with quotes must have matching quotes");
|
|
69480
|
-
}
|
|
69481
|
-
if (part === "constructor" || !isOwn) {
|
|
69482
|
-
skipFurtherCaching = true;
|
|
69483
|
-
}
|
|
69484
|
-
intrinsicBaseName += "." + part;
|
|
69485
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
69486
|
-
if (hasOwn$1(INTRINSICS$1, intrinsicRealName)) {
|
|
69487
|
-
value = INTRINSICS$1[intrinsicRealName];
|
|
69488
|
-
} else if (value != null) {
|
|
69489
|
-
if (!(part in value)) {
|
|
69490
|
-
if (!allowMissing) {
|
|
69491
|
-
throw new $TypeError$1("base intrinsic for " + name2 + " exists, but the property is not available.");
|
|
69492
|
-
}
|
|
69493
|
-
return void 0;
|
|
69494
|
-
}
|
|
69495
|
-
if ($gOPD$2 && i2 + 1 >= parts.length) {
|
|
69496
|
-
var desc = $gOPD$2(value, part);
|
|
69497
|
-
isOwn = !!desc;
|
|
69498
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
69499
|
-
value = desc.get;
|
|
69500
|
-
} else {
|
|
69501
|
-
value = value[part];
|
|
69502
|
-
}
|
|
69503
|
-
} else {
|
|
69504
|
-
isOwn = hasOwn$1(value, part);
|
|
69505
|
-
value = value[part];
|
|
69506
|
-
}
|
|
69507
|
-
if (isOwn && !skipFurtherCaching) {
|
|
69508
|
-
INTRINSICS$1[intrinsicRealName] = value;
|
|
69509
|
-
}
|
|
69510
|
-
}
|
|
69511
|
-
}
|
|
69512
|
-
return value;
|
|
69513
|
-
};
|
|
69514
|
-
var callBind$3 = { exports: {} };
|
|
69515
|
-
(function(module2) {
|
|
69516
|
-
var bind4 = functionBind;
|
|
69517
|
-
var GetIntrinsic4 = getIntrinsic$1;
|
|
69518
|
-
var $apply = GetIntrinsic4("%Function.prototype.apply%");
|
|
69519
|
-
var $call = GetIntrinsic4("%Function.prototype.call%");
|
|
69520
|
-
var $reflectApply = GetIntrinsic4("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
69521
|
-
var $gOPD2 = GetIntrinsic4("%Object.getOwnPropertyDescriptor%", true);
|
|
69522
|
-
var $defineProperty2 = GetIntrinsic4("%Object.defineProperty%", true);
|
|
69523
|
-
var $max = GetIntrinsic4("%Math.max%");
|
|
69524
|
-
if ($defineProperty2) {
|
|
69525
|
-
try {
|
|
69526
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
69527
|
-
} catch (e2) {
|
|
69528
|
-
$defineProperty2 = null;
|
|
69529
|
-
}
|
|
69530
|
-
}
|
|
69531
|
-
module2.exports = function callBind2(originalFunction) {
|
|
69532
|
-
var func = $reflectApply(bind4, $call, arguments);
|
|
69533
|
-
if ($gOPD2 && $defineProperty2) {
|
|
69534
|
-
var desc = $gOPD2(func, "length");
|
|
69535
|
-
if (desc.configurable) {
|
|
69536
|
-
$defineProperty2(
|
|
69537
|
-
func,
|
|
69538
|
-
"length",
|
|
69539
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
69540
|
-
);
|
|
69541
|
-
}
|
|
69542
|
-
}
|
|
69543
|
-
return func;
|
|
69544
|
-
};
|
|
69545
|
-
var applyBind = function applyBind2() {
|
|
69546
|
-
return $reflectApply(bind4, $apply, arguments);
|
|
69547
|
-
};
|
|
69548
|
-
if ($defineProperty2) {
|
|
69549
|
-
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
69550
|
-
} else {
|
|
69551
|
-
module2.exports.apply = applyBind;
|
|
69552
|
-
}
|
|
69553
|
-
})(callBind$3);
|
|
69554
|
-
var callBindExports = callBind$3.exports;
|
|
69555
|
-
var GetIntrinsic$1 = getIntrinsic$1;
|
|
69556
|
-
var callBind$2 = callBindExports;
|
|
69557
|
-
var $indexOf = callBind$2(GetIntrinsic$1("String.prototype.indexOf"));
|
|
69558
|
-
var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
69559
|
-
var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
|
|
69560
|
-
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
69561
|
-
return callBind$2(intrinsic);
|
|
69562
|
-
}
|
|
69563
|
-
return intrinsic;
|
|
69564
|
-
};
|
|
69565
|
-
var hasToStringTag$2 = shams();
|
|
69566
|
-
var callBound$1 = callBound$2;
|
|
69567
|
-
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
69568
|
-
var isStandardArguments = function isArguments2(value) {
|
|
69569
|
-
if (hasToStringTag$2 && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
69570
|
-
return false;
|
|
69571
|
-
}
|
|
69572
|
-
return $toString$1(value) === "[object Arguments]";
|
|
69573
|
-
};
|
|
69574
|
-
var isLegacyArguments = function isArguments3(value) {
|
|
69575
|
-
if (isStandardArguments(value)) {
|
|
69576
|
-
return true;
|
|
69577
|
-
}
|
|
69578
|
-
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
|
|
69579
|
-
};
|
|
69580
|
-
var supportsStandardArguments = function() {
|
|
69581
|
-
return isStandardArguments(arguments);
|
|
69582
|
-
}();
|
|
69583
|
-
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
69584
|
-
var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
69585
|
-
var test = {
|
|
69586
|
-
foo: {}
|
|
69587
|
-
};
|
|
69588
|
-
var $Object = Object;
|
|
69589
|
-
var hasProto$1 = function hasProto() {
|
|
69590
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
69591
|
-
};
|
|
69232
|
+
var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
|
|
69592
69233
|
var undefined$1;
|
|
69593
69234
|
var $SyntaxError = SyntaxError;
|
|
69594
69235
|
var $Function = Function;
|
|
@@ -69622,7 +69263,7 @@ var ThrowTypeError = $gOPD$1 ? function() {
|
|
|
69622
69263
|
}
|
|
69623
69264
|
}
|
|
69624
69265
|
}() : throwTypeError;
|
|
69625
|
-
var hasSymbols$1 = hasSymbols$
|
|
69266
|
+
var hasSymbols$1 = hasSymbols$2();
|
|
69626
69267
|
var hasProto2 = hasProto$1();
|
|
69627
69268
|
var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
|
|
69628
69269
|
return x2.__proto__;
|
|
@@ -69706,7 +69347,7 @@ if (getProto$1) {
|
|
|
69706
69347
|
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
69707
69348
|
}
|
|
69708
69349
|
}
|
|
69709
|
-
var
|
|
69350
|
+
var doEval = function doEval2(name2) {
|
|
69710
69351
|
var value;
|
|
69711
69352
|
if (name2 === "%AsyncFunction%") {
|
|
69712
69353
|
value = getEvalledConstructor("async function () {}");
|
|
@@ -69715,12 +69356,12 @@ var doEval2 = function doEval3(name2) {
|
|
|
69715
69356
|
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
69716
69357
|
value = getEvalledConstructor("async function* () {}");
|
|
69717
69358
|
} else if (name2 === "%AsyncGenerator%") {
|
|
69718
|
-
var fn =
|
|
69359
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
69719
69360
|
if (fn) {
|
|
69720
69361
|
value = fn.prototype;
|
|
69721
69362
|
}
|
|
69722
69363
|
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
69723
|
-
var gen =
|
|
69364
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
69724
69365
|
if (gen && getProto$1) {
|
|
69725
69366
|
value = getProto$1(gen.prototype);
|
|
69726
69367
|
}
|
|
@@ -69790,7 +69431,7 @@ var $strSlice = bind3.call(Function.call, String.prototype.slice);
|
|
|
69790
69431
|
var $exec$1 = bind3.call(Function.call, RegExp.prototype.exec);
|
|
69791
69432
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
69792
69433
|
var reEscapeChar = /\\(\\)?/g;
|
|
69793
|
-
var
|
|
69434
|
+
var stringToPath = function stringToPath2(string) {
|
|
69794
69435
|
var first = $strSlice(string, 0, 1);
|
|
69795
69436
|
var last = $strSlice(string, -1);
|
|
69796
69437
|
if (first === "%" && last !== "%") {
|
|
@@ -69804,7 +69445,7 @@ var stringToPath2 = function stringToPath3(string) {
|
|
|
69804
69445
|
});
|
|
69805
69446
|
return result;
|
|
69806
69447
|
};
|
|
69807
|
-
var
|
|
69448
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
|
|
69808
69449
|
var intrinsicName = name2;
|
|
69809
69450
|
var alias;
|
|
69810
69451
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
@@ -69814,7 +69455,7 @@ var getBaseIntrinsic2 = function getBaseIntrinsic3(name2, allowMissing) {
|
|
|
69814
69455
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
69815
69456
|
var value = INTRINSICS[intrinsicName];
|
|
69816
69457
|
if (value === needsEval) {
|
|
69817
|
-
value =
|
|
69458
|
+
value = doEval(intrinsicName);
|
|
69818
69459
|
}
|
|
69819
69460
|
if (typeof value === "undefined" && !allowMissing) {
|
|
69820
69461
|
throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
@@ -69827,7 +69468,7 @@ var getBaseIntrinsic2 = function getBaseIntrinsic3(name2, allowMissing) {
|
|
|
69827
69468
|
}
|
|
69828
69469
|
throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
|
|
69829
69470
|
};
|
|
69830
|
-
var getIntrinsic = function
|
|
69471
|
+
var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
69831
69472
|
if (typeof name2 !== "string" || name2.length === 0) {
|
|
69832
69473
|
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
69833
69474
|
}
|
|
@@ -69837,9 +69478,9 @@ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
|
|
|
69837
69478
|
if ($exec$1(/^%?[^%]*%?$/, name2) === null) {
|
|
69838
69479
|
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
69839
69480
|
}
|
|
69840
|
-
var parts =
|
|
69481
|
+
var parts = stringToPath(name2);
|
|
69841
69482
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
69842
|
-
var intrinsic =
|
|
69483
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
69843
69484
|
var intrinsicRealName = intrinsic.name;
|
|
69844
69485
|
var value = intrinsic.value;
|
|
69845
69486
|
var skipFurtherCaching = false;
|
|
@@ -69888,8 +69529,79 @@ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
|
|
|
69888
69529
|
}
|
|
69889
69530
|
return value;
|
|
69890
69531
|
};
|
|
69891
|
-
var
|
|
69892
|
-
|
|
69532
|
+
var callBind$3 = { exports: {} };
|
|
69533
|
+
(function(module2) {
|
|
69534
|
+
var bind4 = functionBind;
|
|
69535
|
+
var GetIntrinsic3 = getIntrinsic;
|
|
69536
|
+
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
69537
|
+
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
69538
|
+
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
69539
|
+
var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
|
|
69540
|
+
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
|
|
69541
|
+
var $max = GetIntrinsic3("%Math.max%");
|
|
69542
|
+
if ($defineProperty2) {
|
|
69543
|
+
try {
|
|
69544
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
69545
|
+
} catch (e2) {
|
|
69546
|
+
$defineProperty2 = null;
|
|
69547
|
+
}
|
|
69548
|
+
}
|
|
69549
|
+
module2.exports = function callBind2(originalFunction) {
|
|
69550
|
+
var func = $reflectApply(bind4, $call, arguments);
|
|
69551
|
+
if ($gOPD2 && $defineProperty2) {
|
|
69552
|
+
var desc = $gOPD2(func, "length");
|
|
69553
|
+
if (desc.configurable) {
|
|
69554
|
+
$defineProperty2(
|
|
69555
|
+
func,
|
|
69556
|
+
"length",
|
|
69557
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
69558
|
+
);
|
|
69559
|
+
}
|
|
69560
|
+
}
|
|
69561
|
+
return func;
|
|
69562
|
+
};
|
|
69563
|
+
var applyBind = function applyBind2() {
|
|
69564
|
+
return $reflectApply(bind4, $apply, arguments);
|
|
69565
|
+
};
|
|
69566
|
+
if ($defineProperty2) {
|
|
69567
|
+
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
69568
|
+
} else {
|
|
69569
|
+
module2.exports.apply = applyBind;
|
|
69570
|
+
}
|
|
69571
|
+
})(callBind$3);
|
|
69572
|
+
var callBindExports = callBind$3.exports;
|
|
69573
|
+
var GetIntrinsic$1 = getIntrinsic;
|
|
69574
|
+
var callBind$2 = callBindExports;
|
|
69575
|
+
var $indexOf = callBind$2(GetIntrinsic$1("String.prototype.indexOf"));
|
|
69576
|
+
var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
69577
|
+
var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
|
|
69578
|
+
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
69579
|
+
return callBind$2(intrinsic);
|
|
69580
|
+
}
|
|
69581
|
+
return intrinsic;
|
|
69582
|
+
};
|
|
69583
|
+
var hasToStringTag$2 = shams();
|
|
69584
|
+
var callBound$1 = callBound$2;
|
|
69585
|
+
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
69586
|
+
var isStandardArguments = function isArguments2(value) {
|
|
69587
|
+
if (hasToStringTag$2 && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
69588
|
+
return false;
|
|
69589
|
+
}
|
|
69590
|
+
return $toString$1(value) === "[object Arguments]";
|
|
69591
|
+
};
|
|
69592
|
+
var isLegacyArguments = function isArguments3(value) {
|
|
69593
|
+
if (isStandardArguments(value)) {
|
|
69594
|
+
return true;
|
|
69595
|
+
}
|
|
69596
|
+
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
|
|
69597
|
+
};
|
|
69598
|
+
var supportsStandardArguments = function() {
|
|
69599
|
+
return isStandardArguments(arguments);
|
|
69600
|
+
}();
|
|
69601
|
+
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
69602
|
+
var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
69603
|
+
var GetIntrinsic2 = getIntrinsic;
|
|
69604
|
+
var $defineProperty = GetIntrinsic2("%Object.defineProperty%", true);
|
|
69893
69605
|
var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
|
|
69894
69606
|
if ($defineProperty) {
|
|
69895
69607
|
try {
|
|
@@ -104180,16 +103892,16 @@ async function getDecoder(fileDirectory) {
|
|
|
104180
103892
|
const Decoder = await importFn();
|
|
104181
103893
|
return new Decoder(fileDirectory);
|
|
104182
103894
|
}
|
|
104183
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
104184
|
-
addDecoder(5, () => import("./lzw-
|
|
103895
|
+
addDecoder([void 0, 1], () => import("./raw-f12c17bf.js").then((m) => m.default));
|
|
103896
|
+
addDecoder(5, () => import("./lzw-85fa08a9.js").then((m) => m.default));
|
|
104185
103897
|
addDecoder(6, () => {
|
|
104186
103898
|
throw new Error("old style JPEG compression is not supported.");
|
|
104187
103899
|
});
|
|
104188
|
-
addDecoder(7, () => import("./jpeg-
|
|
104189
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
104190
|
-
addDecoder(32773, () => import("./packbits-
|
|
104191
|
-
addDecoder(34887, () => import("./lerc-
|
|
104192
|
-
addDecoder(50001, () => import("./webimage-
|
|
103900
|
+
addDecoder(7, () => import("./jpeg-cb74431a.js").then((m) => m.default));
|
|
103901
|
+
addDecoder([8, 32946], () => import("./deflate-c9746f58.js").then((m) => m.default));
|
|
103902
|
+
addDecoder(32773, () => import("./packbits-6b8314bf.js").then((m) => m.default));
|
|
103903
|
+
addDecoder(34887, () => import("./lerc-5dffa929.js").then((m) => m.default));
|
|
103904
|
+
addDecoder(50001, () => import("./webimage-99c1b585.js").then((m) => m.default));
|
|
104193
103905
|
function copyNewSize(array2, width, height, samplesPerPixel = 1) {
|
|
104194
103906
|
return new (Object.getPrototypeOf(array2)).constructor(width * height * samplesPerPixel);
|
|
104195
103907
|
}
|