@vitessce/scatterplot-embedding 3.0.0 → 3.1.0
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-42fdcd50.js → deflate-2c31a4dd.js} +1 -1
- package/dist/{index-50142996.js → index-d8ac68c1.js} +917 -1165
- package/dist/index.js +1 -1
- package/dist/{jpeg-da9c788c.js → jpeg-07b73b88.js} +1 -1
- package/dist/{lerc-86149bd3.js → lerc-8b917065.js} +1 -1
- package/dist/{lzw-91ba018e.js → lzw-ad66c72b.js} +1 -1
- package/dist/{packbits-45ead78a.js → packbits-8c472a15.js} +1 -1
- package/dist/{raw-09626c2a.js → raw-58aad486.js} +1 -1
- package/dist/{webimage-d82eb077.js → webimage-adebb0c3.js} +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.js +26 -23
- package/package.json +9 -9
- package/src/EmbeddingScatterplotSubscriber.js +41 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useLayoutEffect, useEffect, cloneElement, createElement, forwardRef, useState, useRef, useMemo, useImperativeHandle, Children, isValidElement, PureComponent, useCallback } from "react";
|
|
3
|
-
import { usePlotOptionsStyles, OptionsContainer, CellColorEncodingOption, OptionSelect, useVitessceContainer, useComponentHover, useComponentViewInfo, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination,
|
|
3
|
+
import { usePlotOptionsStyles, OptionsContainer, CellColorEncodingOption, OptionSelect, useVitessceContainer, useComponentHover, useComponentViewInfo, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useInitialCoordination, useDeckCanvasSize, useMultiObsLabels, useObsEmbeddingData, useObsSetsData, useFeatureSelection, useObsFeatureMatrixIndices, useFeatureLabelsData, useReady, useUrls, useGetObsInfo, useUint8FeatureSelection, useExpressionValueGetter, TitleInfo } from "@vitessce/vit-s";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
function _mergeNamespaces(n2, m2) {
|
|
6
6
|
for (var i2 = 0; i2 < m2.length; i2++) {
|
|
@@ -11095,6 +11095,10 @@ const FileType$1 = {
|
|
|
11095
11095
|
ANNDATA_EXPRESSION_MATRIX_ZARR: "anndata-expression-matrix.zarr"
|
|
11096
11096
|
};
|
|
11097
11097
|
const CoordinationType$1 = {
|
|
11098
|
+
// Meta coordination scopes
|
|
11099
|
+
META_COORDINATION_SCOPES: "metaCoordinationScopes",
|
|
11100
|
+
META_COORDINATION_SCOPES_BY: "metaCoordinationScopesBy",
|
|
11101
|
+
// Other coordination scopes
|
|
11098
11102
|
DATASET: "dataset",
|
|
11099
11103
|
// Entity types
|
|
11100
11104
|
OBS_TYPE: "obsType",
|
|
@@ -17148,7 +17152,7 @@ var json2csv_umd = { exports: {} };
|
|
|
17148
17152
|
return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
|
|
17149
17153
|
}
|
|
17150
17154
|
function castPath(value) {
|
|
17151
|
-
return isArray$22(value) ? value :
|
|
17155
|
+
return isArray$22(value) ? value : stringToPath3(value);
|
|
17152
17156
|
}
|
|
17153
17157
|
function getMapData2(map2, key) {
|
|
17154
17158
|
var data = map2.__data__;
|
|
@@ -17175,7 +17179,7 @@ var json2csv_umd = { exports: {} };
|
|
|
17175
17179
|
function isMasked2(func) {
|
|
17176
17180
|
return !!maskSrcKey2 && maskSrcKey2 in func;
|
|
17177
17181
|
}
|
|
17178
|
-
var
|
|
17182
|
+
var stringToPath3 = memoize3(function(string2) {
|
|
17179
17183
|
string2 = toString$12(string2);
|
|
17180
17184
|
var result = [];
|
|
17181
17185
|
if (reLeadingDot.test(string2)) {
|
|
@@ -36952,10 +36956,10 @@ const DEFAULT_LIGHT_INTENSITY$2 = 1;
|
|
|
36952
36956
|
let idCount$2 = 0;
|
|
36953
36957
|
class AmbientLight {
|
|
36954
36958
|
constructor(props2 = {}) {
|
|
36955
|
-
_defineProperty$
|
|
36956
|
-
_defineProperty$
|
|
36957
|
-
_defineProperty$
|
|
36958
|
-
_defineProperty$
|
|
36959
|
+
_defineProperty$f(this, "id", void 0);
|
|
36960
|
+
_defineProperty$f(this, "color", void 0);
|
|
36961
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
36962
|
+
_defineProperty$f(this, "type", "ambient");
|
|
36959
36963
|
const {
|
|
36960
36964
|
color: color2 = DEFAULT_LIGHT_COLOR$2
|
|
36961
36965
|
} = props2;
|
|
@@ -36973,12 +36977,12 @@ const DEFAULT_LIGHT_DIRECTION = [0, 0, -1];
|
|
|
36973
36977
|
let idCount$1 = 0;
|
|
36974
36978
|
class DirectionalLight {
|
|
36975
36979
|
constructor(props2 = {}) {
|
|
36976
|
-
_defineProperty$
|
|
36977
|
-
_defineProperty$
|
|
36978
|
-
_defineProperty$
|
|
36979
|
-
_defineProperty$
|
|
36980
|
-
_defineProperty$
|
|
36981
|
-
_defineProperty$
|
|
36980
|
+
_defineProperty$f(this, "id", void 0);
|
|
36981
|
+
_defineProperty$f(this, "color", void 0);
|
|
36982
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
36983
|
+
_defineProperty$f(this, "type", "directional");
|
|
36984
|
+
_defineProperty$f(this, "direction", void 0);
|
|
36985
|
+
_defineProperty$f(this, "shadow", void 0);
|
|
36982
36986
|
const {
|
|
36983
36987
|
color: color2 = DEFAULT_LIGHT_COLOR$1
|
|
36984
36988
|
} = props2;
|
|
@@ -37006,9 +37010,9 @@ class Pass {
|
|
|
37006
37010
|
constructor(gl, props2 = {
|
|
37007
37011
|
id: "pass"
|
|
37008
37012
|
}) {
|
|
37009
|
-
_defineProperty$
|
|
37010
|
-
_defineProperty$
|
|
37011
|
-
_defineProperty$
|
|
37013
|
+
_defineProperty$f(this, "id", void 0);
|
|
37014
|
+
_defineProperty$f(this, "gl", void 0);
|
|
37015
|
+
_defineProperty$f(this, "props", void 0);
|
|
37012
37016
|
const {
|
|
37013
37017
|
id
|
|
37014
37018
|
} = props2;
|
|
@@ -37029,7 +37033,7 @@ class Pass {
|
|
|
37029
37033
|
class LayersPass extends Pass {
|
|
37030
37034
|
constructor(...args) {
|
|
37031
37035
|
super(...args);
|
|
37032
|
-
_defineProperty$
|
|
37036
|
+
_defineProperty$f(this, "_lastRenderIndex", -1);
|
|
37033
37037
|
}
|
|
37034
37038
|
render(options) {
|
|
37035
37039
|
const gl = this.gl;
|
|
@@ -37276,9 +37280,9 @@ function clearGLCanvas(gl) {
|
|
|
37276
37280
|
class ShadowPass extends LayersPass {
|
|
37277
37281
|
constructor(gl, props2) {
|
|
37278
37282
|
super(gl, props2);
|
|
37279
|
-
_defineProperty$
|
|
37280
|
-
_defineProperty$
|
|
37281
|
-
_defineProperty$
|
|
37283
|
+
_defineProperty$f(this, "shadowMap", void 0);
|
|
37284
|
+
_defineProperty$f(this, "depthBuffer", void 0);
|
|
37285
|
+
_defineProperty$f(this, "fbo", void 0);
|
|
37282
37286
|
this.shadowMap = new Texture2D(gl, {
|
|
37283
37287
|
width: 1,
|
|
37284
37288
|
height: 1,
|
|
@@ -37368,18 +37372,18 @@ const DEFAULT_DIRECTIONAL_LIGHT_PROPS = [{
|
|
|
37368
37372
|
const DEFAULT_SHADOW_COLOR = [0, 0, 0, 200 / 255];
|
|
37369
37373
|
class LightingEffect {
|
|
37370
37374
|
constructor(props2 = {}) {
|
|
37371
|
-
_defineProperty$
|
|
37372
|
-
_defineProperty$
|
|
37373
|
-
_defineProperty$
|
|
37374
|
-
_defineProperty$
|
|
37375
|
-
_defineProperty$
|
|
37376
|
-
_defineProperty$
|
|
37377
|
-
_defineProperty$
|
|
37378
|
-
_defineProperty$
|
|
37379
|
-
_defineProperty$
|
|
37380
|
-
_defineProperty$
|
|
37381
|
-
_defineProperty$
|
|
37382
|
-
_defineProperty$
|
|
37375
|
+
_defineProperty$f(this, "id", "lighting-effect");
|
|
37376
|
+
_defineProperty$f(this, "props", null);
|
|
37377
|
+
_defineProperty$f(this, "shadowColor", DEFAULT_SHADOW_COLOR);
|
|
37378
|
+
_defineProperty$f(this, "shadow", void 0);
|
|
37379
|
+
_defineProperty$f(this, "ambientLight", null);
|
|
37380
|
+
_defineProperty$f(this, "directionalLights", []);
|
|
37381
|
+
_defineProperty$f(this, "pointLights", []);
|
|
37382
|
+
_defineProperty$f(this, "shadowPasses", []);
|
|
37383
|
+
_defineProperty$f(this, "shadowMaps", []);
|
|
37384
|
+
_defineProperty$f(this, "dummyShadowMap", null);
|
|
37385
|
+
_defineProperty$f(this, "programManager", void 0);
|
|
37386
|
+
_defineProperty$f(this, "shadowMatrices", void 0);
|
|
37383
37387
|
for (const key in props2) {
|
|
37384
37388
|
const lightSource = props2[key];
|
|
37385
37389
|
switch (lightSource.type) {
|
|
@@ -37502,8 +37506,8 @@ class LightingEffect {
|
|
|
37502
37506
|
}
|
|
37503
37507
|
class TypedArrayManager {
|
|
37504
37508
|
constructor(options = {}) {
|
|
37505
|
-
_defineProperty$
|
|
37506
|
-
_defineProperty$
|
|
37509
|
+
_defineProperty$f(this, "_pool", []);
|
|
37510
|
+
_defineProperty$f(this, "opts", {
|
|
37507
37511
|
overAlloc: 2,
|
|
37508
37512
|
poolSize: 100
|
|
37509
37513
|
});
|
|
@@ -37688,30 +37692,30 @@ function createProjectionMatrix({
|
|
|
37688
37692
|
}
|
|
37689
37693
|
class Viewport {
|
|
37690
37694
|
constructor(opts2 = {}) {
|
|
37691
|
-
_defineProperty$
|
|
37692
|
-
_defineProperty$
|
|
37693
|
-
_defineProperty$
|
|
37694
|
-
_defineProperty$
|
|
37695
|
-
_defineProperty$
|
|
37696
|
-
_defineProperty$
|
|
37697
|
-
_defineProperty$
|
|
37698
|
-
_defineProperty$
|
|
37699
|
-
_defineProperty$
|
|
37700
|
-
_defineProperty$
|
|
37701
|
-
_defineProperty$
|
|
37702
|
-
_defineProperty$
|
|
37703
|
-
_defineProperty$
|
|
37704
|
-
_defineProperty$
|
|
37705
|
-
_defineProperty$
|
|
37706
|
-
_defineProperty$
|
|
37707
|
-
_defineProperty$
|
|
37708
|
-
_defineProperty$
|
|
37709
|
-
_defineProperty$
|
|
37710
|
-
_defineProperty$
|
|
37711
|
-
_defineProperty$
|
|
37712
|
-
_defineProperty$
|
|
37713
|
-
_defineProperty$
|
|
37714
|
-
_defineProperty$
|
|
37695
|
+
_defineProperty$f(this, "id", void 0);
|
|
37696
|
+
_defineProperty$f(this, "x", void 0);
|
|
37697
|
+
_defineProperty$f(this, "y", void 0);
|
|
37698
|
+
_defineProperty$f(this, "width", void 0);
|
|
37699
|
+
_defineProperty$f(this, "height", void 0);
|
|
37700
|
+
_defineProperty$f(this, "padding", void 0);
|
|
37701
|
+
_defineProperty$f(this, "isGeospatial", void 0);
|
|
37702
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
37703
|
+
_defineProperty$f(this, "focalDistance", void 0);
|
|
37704
|
+
_defineProperty$f(this, "position", void 0);
|
|
37705
|
+
_defineProperty$f(this, "modelMatrix", void 0);
|
|
37706
|
+
_defineProperty$f(this, "distanceScales", void 0);
|
|
37707
|
+
_defineProperty$f(this, "scale", void 0);
|
|
37708
|
+
_defineProperty$f(this, "center", void 0);
|
|
37709
|
+
_defineProperty$f(this, "cameraPosition", void 0);
|
|
37710
|
+
_defineProperty$f(this, "projectionMatrix", void 0);
|
|
37711
|
+
_defineProperty$f(this, "viewMatrix", void 0);
|
|
37712
|
+
_defineProperty$f(this, "viewMatrixUncentered", void 0);
|
|
37713
|
+
_defineProperty$f(this, "viewMatrixInverse", void 0);
|
|
37714
|
+
_defineProperty$f(this, "viewProjectionMatrix", void 0);
|
|
37715
|
+
_defineProperty$f(this, "pixelProjectionMatrix", void 0);
|
|
37716
|
+
_defineProperty$f(this, "pixelUnprojectionMatrix", void 0);
|
|
37717
|
+
_defineProperty$f(this, "resolution", void 0);
|
|
37718
|
+
_defineProperty$f(this, "_frustumPlanes", {});
|
|
37715
37719
|
this.id = opts2.id || this.constructor.displayName || "viewport";
|
|
37716
37720
|
this.x = opts2.x || 0;
|
|
37717
37721
|
this.y = opts2.y || 0;
|
|
@@ -37914,7 +37918,7 @@ class Viewport {
|
|
|
37914
37918
|
}
|
|
37915
37919
|
}
|
|
37916
37920
|
}
|
|
37917
|
-
_defineProperty$
|
|
37921
|
+
_defineProperty$f(Viewport, "displayName", "Viewport");
|
|
37918
37922
|
const TILE_SIZE$4 = 512;
|
|
37919
37923
|
const EARTH_CIRCUMFERENCE = 4003e4;
|
|
37920
37924
|
const DEGREES_TO_RADIANS$3 = Math.PI / 180;
|
|
@@ -37990,15 +37994,15 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
37990
37994
|
fovy,
|
|
37991
37995
|
focalDistance: altitude
|
|
37992
37996
|
});
|
|
37993
|
-
_defineProperty$
|
|
37994
|
-
_defineProperty$
|
|
37995
|
-
_defineProperty$
|
|
37996
|
-
_defineProperty$
|
|
37997
|
-
_defineProperty$
|
|
37998
|
-
_defineProperty$
|
|
37999
|
-
_defineProperty$
|
|
38000
|
-
_defineProperty$
|
|
38001
|
-
_defineProperty$
|
|
37997
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
37998
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
37999
|
+
_defineProperty$f(this, "pitch", void 0);
|
|
38000
|
+
_defineProperty$f(this, "bearing", void 0);
|
|
38001
|
+
_defineProperty$f(this, "altitude", void 0);
|
|
38002
|
+
_defineProperty$f(this, "fovy", void 0);
|
|
38003
|
+
_defineProperty$f(this, "orthographic", void 0);
|
|
38004
|
+
_defineProperty$f(this, "_subViewports", void 0);
|
|
38005
|
+
_defineProperty$f(this, "_pseudoMeters", void 0);
|
|
38002
38006
|
this.latitude = latitude;
|
|
38003
38007
|
this.longitude = longitude;
|
|
38004
38008
|
this.zoom = zoom;
|
|
@@ -38084,7 +38088,7 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
38084
38088
|
});
|
|
38085
38089
|
}
|
|
38086
38090
|
}
|
|
38087
|
-
_defineProperty$
|
|
38091
|
+
_defineProperty$f(WebMercatorViewport2, "displayName", "WebMercatorViewport");
|
|
38088
38092
|
function lngLatZToWorldPosition(lngLatZ, viewport, offsetMode = false) {
|
|
38089
38093
|
const p = viewport.projectPosition(lngLatZ);
|
|
38090
38094
|
if (offsetMode && viewport instanceof WebMercatorViewport2) {
|
|
@@ -38180,13 +38184,13 @@ const DEFAULT_LIGHT_POSITION = [0, 0, 1];
|
|
|
38180
38184
|
let idCount = 0;
|
|
38181
38185
|
class PointLight {
|
|
38182
38186
|
constructor(props2 = {}) {
|
|
38183
|
-
_defineProperty$
|
|
38184
|
-
_defineProperty$
|
|
38185
|
-
_defineProperty$
|
|
38186
|
-
_defineProperty$
|
|
38187
|
-
_defineProperty$
|
|
38188
|
-
_defineProperty$
|
|
38189
|
-
_defineProperty$
|
|
38187
|
+
_defineProperty$f(this, "id", void 0);
|
|
38188
|
+
_defineProperty$f(this, "color", void 0);
|
|
38189
|
+
_defineProperty$f(this, "intensity", void 0);
|
|
38190
|
+
_defineProperty$f(this, "type", "point");
|
|
38191
|
+
_defineProperty$f(this, "position", void 0);
|
|
38192
|
+
_defineProperty$f(this, "attenuation", void 0);
|
|
38193
|
+
_defineProperty$f(this, "projectedLight", void 0);
|
|
38190
38194
|
const {
|
|
38191
38195
|
color: color2 = DEFAULT_LIGHT_COLOR
|
|
38192
38196
|
} = props2;
|
|
@@ -38343,7 +38347,7 @@ function getSunCoords(dates) {
|
|
|
38343
38347
|
class SunLight extends DirectionalLight {
|
|
38344
38348
|
constructor(opts2) {
|
|
38345
38349
|
super(opts2);
|
|
38346
|
-
_defineProperty$
|
|
38350
|
+
_defineProperty$f(this, "timestamp", void 0);
|
|
38347
38351
|
this.timestamp = opts2.timestamp;
|
|
38348
38352
|
}
|
|
38349
38353
|
getProjectedLight({
|
|
@@ -38369,7 +38373,7 @@ class SunLight extends DirectionalLight {
|
|
|
38369
38373
|
class ScreenPass extends Pass {
|
|
38370
38374
|
constructor(gl, props2) {
|
|
38371
38375
|
super(gl, props2);
|
|
38372
|
-
_defineProperty$
|
|
38376
|
+
_defineProperty$f(this, "model", void 0);
|
|
38373
38377
|
const {
|
|
38374
38378
|
module: module2,
|
|
38375
38379
|
fs: fs2,
|
|
@@ -38417,10 +38421,10 @@ class ScreenPass extends Pass {
|
|
|
38417
38421
|
}
|
|
38418
38422
|
class PostProcessEffect {
|
|
38419
38423
|
constructor(module2, props2 = {}) {
|
|
38420
|
-
_defineProperty$
|
|
38421
|
-
_defineProperty$
|
|
38422
|
-
_defineProperty$
|
|
38423
|
-
_defineProperty$
|
|
38424
|
+
_defineProperty$f(this, "id", void 0);
|
|
38425
|
+
_defineProperty$f(this, "props", void 0);
|
|
38426
|
+
_defineProperty$f(this, "module", void 0);
|
|
38427
|
+
_defineProperty$f(this, "passes", void 0);
|
|
38424
38428
|
this.id = "".concat(module2.name, "-pass");
|
|
38425
38429
|
this.props = props2;
|
|
38426
38430
|
normalizeShaderModule(module2);
|
|
@@ -38549,16 +38553,16 @@ function fillArray({
|
|
|
38549
38553
|
}
|
|
38550
38554
|
class Resource2 {
|
|
38551
38555
|
constructor(id, data, context) {
|
|
38552
|
-
_defineProperty$
|
|
38553
|
-
_defineProperty$
|
|
38554
|
-
_defineProperty$
|
|
38555
|
-
_defineProperty$
|
|
38556
|
-
_defineProperty$
|
|
38557
|
-
_defineProperty$
|
|
38558
|
-
_defineProperty$
|
|
38559
|
-
_defineProperty$
|
|
38560
|
-
_defineProperty$
|
|
38561
|
-
_defineProperty$
|
|
38556
|
+
_defineProperty$f(this, "id", void 0);
|
|
38557
|
+
_defineProperty$f(this, "context", void 0);
|
|
38558
|
+
_defineProperty$f(this, "isLoaded", void 0);
|
|
38559
|
+
_defineProperty$f(this, "persistent", void 0);
|
|
38560
|
+
_defineProperty$f(this, "_loadCount", 0);
|
|
38561
|
+
_defineProperty$f(this, "_subscribers", /* @__PURE__ */ new Set());
|
|
38562
|
+
_defineProperty$f(this, "_data", void 0);
|
|
38563
|
+
_defineProperty$f(this, "_loader", void 0);
|
|
38564
|
+
_defineProperty$f(this, "_error", void 0);
|
|
38565
|
+
_defineProperty$f(this, "_content", void 0);
|
|
38562
38566
|
this.id = id;
|
|
38563
38567
|
this.context = context;
|
|
38564
38568
|
this.setData(data);
|
|
@@ -38616,11 +38620,11 @@ class ResourceManager {
|
|
|
38616
38620
|
gl,
|
|
38617
38621
|
protocol
|
|
38618
38622
|
}) {
|
|
38619
|
-
_defineProperty$
|
|
38620
|
-
_defineProperty$
|
|
38621
|
-
_defineProperty$
|
|
38622
|
-
_defineProperty$
|
|
38623
|
-
_defineProperty$
|
|
38623
|
+
_defineProperty$f(this, "protocol", void 0);
|
|
38624
|
+
_defineProperty$f(this, "_context", void 0);
|
|
38625
|
+
_defineProperty$f(this, "_resources", void 0);
|
|
38626
|
+
_defineProperty$f(this, "_consumers", void 0);
|
|
38627
|
+
_defineProperty$f(this, "_pruneRequest", void 0);
|
|
38624
38628
|
this.protocol = protocol || "resource://";
|
|
38625
38629
|
this._context = {
|
|
38626
38630
|
gl,
|
|
@@ -38747,15 +38751,15 @@ class LayerManager {
|
|
|
38747
38751
|
viewport: _viewport,
|
|
38748
38752
|
timeline
|
|
38749
38753
|
} = {}) {
|
|
38750
|
-
_defineProperty$
|
|
38751
|
-
_defineProperty$
|
|
38752
|
-
_defineProperty$
|
|
38753
|
-
_defineProperty$
|
|
38754
|
-
_defineProperty$
|
|
38755
|
-
_defineProperty$
|
|
38756
|
-
_defineProperty$
|
|
38757
|
-
_defineProperty$
|
|
38758
|
-
_defineProperty$
|
|
38754
|
+
_defineProperty$f(this, "layers", void 0);
|
|
38755
|
+
_defineProperty$f(this, "context", void 0);
|
|
38756
|
+
_defineProperty$f(this, "resourceManager", void 0);
|
|
38757
|
+
_defineProperty$f(this, "_lastRenderedLayers", []);
|
|
38758
|
+
_defineProperty$f(this, "_needsRedraw", false);
|
|
38759
|
+
_defineProperty$f(this, "_needsUpdate", false);
|
|
38760
|
+
_defineProperty$f(this, "_nextLayers", null);
|
|
38761
|
+
_defineProperty$f(this, "_debug", false);
|
|
38762
|
+
_defineProperty$f(this, "activateViewport", (viewport) => {
|
|
38759
38763
|
debug(TRACE_ACTIVATE_VIEWPORT, this, viewport);
|
|
38760
38764
|
if (viewport) {
|
|
38761
38765
|
this.context.viewport = viewport;
|
|
@@ -38966,19 +38970,19 @@ function deepEqual$2(a2, b) {
|
|
|
38966
38970
|
}
|
|
38967
38971
|
class ViewManager {
|
|
38968
38972
|
constructor(props2) {
|
|
38969
|
-
_defineProperty$
|
|
38970
|
-
_defineProperty$
|
|
38971
|
-
_defineProperty$
|
|
38972
|
-
_defineProperty$
|
|
38973
|
-
_defineProperty$
|
|
38974
|
-
_defineProperty$
|
|
38975
|
-
_defineProperty$
|
|
38976
|
-
_defineProperty$
|
|
38977
|
-
_defineProperty$
|
|
38978
|
-
_defineProperty$
|
|
38979
|
-
_defineProperty$
|
|
38980
|
-
_defineProperty$
|
|
38981
|
-
_defineProperty$
|
|
38973
|
+
_defineProperty$f(this, "width", void 0);
|
|
38974
|
+
_defineProperty$f(this, "height", void 0);
|
|
38975
|
+
_defineProperty$f(this, "views", void 0);
|
|
38976
|
+
_defineProperty$f(this, "viewState", void 0);
|
|
38977
|
+
_defineProperty$f(this, "controllers", void 0);
|
|
38978
|
+
_defineProperty$f(this, "timeline", void 0);
|
|
38979
|
+
_defineProperty$f(this, "_viewports", void 0);
|
|
38980
|
+
_defineProperty$f(this, "_viewportMap", void 0);
|
|
38981
|
+
_defineProperty$f(this, "_isUpdating", void 0);
|
|
38982
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
38983
|
+
_defineProperty$f(this, "_needsUpdate", void 0);
|
|
38984
|
+
_defineProperty$f(this, "_eventManager", void 0);
|
|
38985
|
+
_defineProperty$f(this, "_eventCallbacks", void 0);
|
|
38982
38986
|
this.views = [];
|
|
38983
38987
|
this.width = 100;
|
|
38984
38988
|
this.height = 100;
|
|
@@ -39252,14 +39256,14 @@ function assert$4(condition, message) {
|
|
|
39252
39256
|
}
|
|
39253
39257
|
class View {
|
|
39254
39258
|
constructor(props2) {
|
|
39255
|
-
_defineProperty$
|
|
39256
|
-
_defineProperty$
|
|
39257
|
-
_defineProperty$
|
|
39258
|
-
_defineProperty$
|
|
39259
|
-
_defineProperty$
|
|
39260
|
-
_defineProperty$
|
|
39261
|
-
_defineProperty$
|
|
39262
|
-
_defineProperty$
|
|
39259
|
+
_defineProperty$f(this, "id", void 0);
|
|
39260
|
+
_defineProperty$f(this, "viewportInstance", void 0);
|
|
39261
|
+
_defineProperty$f(this, "_x", void 0);
|
|
39262
|
+
_defineProperty$f(this, "_y", void 0);
|
|
39263
|
+
_defineProperty$f(this, "_width", void 0);
|
|
39264
|
+
_defineProperty$f(this, "_height", void 0);
|
|
39265
|
+
_defineProperty$f(this, "_padding", void 0);
|
|
39266
|
+
_defineProperty$f(this, "props", void 0);
|
|
39263
39267
|
const {
|
|
39264
39268
|
id,
|
|
39265
39269
|
x: x2 = 0,
|
|
@@ -39386,11 +39390,11 @@ class View {
|
|
|
39386
39390
|
}
|
|
39387
39391
|
class Transition {
|
|
39388
39392
|
constructor(timeline) {
|
|
39389
|
-
_defineProperty$
|
|
39390
|
-
_defineProperty$
|
|
39391
|
-
_defineProperty$
|
|
39392
|
-
_defineProperty$
|
|
39393
|
-
_defineProperty$
|
|
39393
|
+
_defineProperty$f(this, "_inProgress", void 0);
|
|
39394
|
+
_defineProperty$f(this, "_handle", void 0);
|
|
39395
|
+
_defineProperty$f(this, "_timeline", void 0);
|
|
39396
|
+
_defineProperty$f(this, "time", void 0);
|
|
39397
|
+
_defineProperty$f(this, "settings", void 0);
|
|
39394
39398
|
this._inProgress = false;
|
|
39395
39399
|
this._handle = null;
|
|
39396
39400
|
this._timeline = timeline;
|
|
@@ -39464,13 +39468,13 @@ const DEFAULT_EASING = (t2) => t2;
|
|
|
39464
39468
|
const DEFAULT_INTERRUPTION = TRANSITION_EVENTS.BREAK;
|
|
39465
39469
|
class TransitionManager {
|
|
39466
39470
|
constructor(opts2) {
|
|
39467
|
-
_defineProperty$
|
|
39468
|
-
_defineProperty$
|
|
39469
|
-
_defineProperty$
|
|
39470
|
-
_defineProperty$
|
|
39471
|
-
_defineProperty$
|
|
39472
|
-
_defineProperty$
|
|
39473
|
-
_defineProperty$
|
|
39471
|
+
_defineProperty$f(this, "getControllerState", void 0);
|
|
39472
|
+
_defineProperty$f(this, "props", void 0);
|
|
39473
|
+
_defineProperty$f(this, "propsInTransition", void 0);
|
|
39474
|
+
_defineProperty$f(this, "transition", void 0);
|
|
39475
|
+
_defineProperty$f(this, "onViewStateChange", void 0);
|
|
39476
|
+
_defineProperty$f(this, "onStateChange", void 0);
|
|
39477
|
+
_defineProperty$f(this, "_onTransitionUpdate", (transition2) => {
|
|
39474
39478
|
const {
|
|
39475
39479
|
time,
|
|
39476
39480
|
settings: {
|
|
@@ -39598,9 +39602,9 @@ class TransitionManager {
|
|
|
39598
39602
|
}
|
|
39599
39603
|
class TransitionInterpolator {
|
|
39600
39604
|
constructor(opts2) {
|
|
39601
|
-
_defineProperty$
|
|
39602
|
-
_defineProperty$
|
|
39603
|
-
_defineProperty$
|
|
39605
|
+
_defineProperty$f(this, "_propsToCompare", void 0);
|
|
39606
|
+
_defineProperty$f(this, "_propsToExtract", void 0);
|
|
39607
|
+
_defineProperty$f(this, "_requiredProps", void 0);
|
|
39604
39608
|
const {
|
|
39605
39609
|
compare: compare2,
|
|
39606
39610
|
extract,
|
|
@@ -39661,7 +39665,7 @@ class LinearInterpolator extends TransitionInterpolator {
|
|
|
39661
39665
|
required: DEFAULT_REQUIRED_PROPS
|
|
39662
39666
|
};
|
|
39663
39667
|
super(normalizedOpts.transitionProps);
|
|
39664
|
-
_defineProperty$
|
|
39668
|
+
_defineProperty$f(this, "opts", void 0);
|
|
39665
39669
|
this.opts = normalizedOpts;
|
|
39666
39670
|
}
|
|
39667
39671
|
initializeProps(startProps, endProps) {
|
|
@@ -39715,31 +39719,31 @@ const EVENT_TYPES = {
|
|
|
39715
39719
|
const pinchEventWorkaround = {};
|
|
39716
39720
|
class Controller {
|
|
39717
39721
|
constructor(opts2) {
|
|
39718
|
-
_defineProperty$
|
|
39719
|
-
_defineProperty$
|
|
39720
|
-
_defineProperty$
|
|
39721
|
-
_defineProperty$
|
|
39722
|
-
_defineProperty$
|
|
39723
|
-
_defineProperty$
|
|
39724
|
-
_defineProperty$
|
|
39725
|
-
_defineProperty$
|
|
39726
|
-
_defineProperty$
|
|
39727
|
-
_defineProperty$
|
|
39722
|
+
_defineProperty$f(this, "props", void 0);
|
|
39723
|
+
_defineProperty$f(this, "state", {});
|
|
39724
|
+
_defineProperty$f(this, "transitionManager", void 0);
|
|
39725
|
+
_defineProperty$f(this, "eventManager", void 0);
|
|
39726
|
+
_defineProperty$f(this, "onViewStateChange", void 0);
|
|
39727
|
+
_defineProperty$f(this, "onStateChange", void 0);
|
|
39728
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
39729
|
+
_defineProperty$f(this, "_controllerState", void 0);
|
|
39730
|
+
_defineProperty$f(this, "_events", {});
|
|
39731
|
+
_defineProperty$f(this, "_interactionState", {
|
|
39728
39732
|
isDragging: false
|
|
39729
39733
|
});
|
|
39730
|
-
_defineProperty$
|
|
39731
|
-
_defineProperty$
|
|
39732
|
-
_defineProperty$
|
|
39733
|
-
_defineProperty$
|
|
39734
|
-
_defineProperty$
|
|
39735
|
-
_defineProperty$
|
|
39736
|
-
_defineProperty$
|
|
39737
|
-
_defineProperty$
|
|
39738
|
-
_defineProperty$
|
|
39739
|
-
_defineProperty$
|
|
39740
|
-
_defineProperty$
|
|
39741
|
-
_defineProperty$
|
|
39742
|
-
_defineProperty$
|
|
39734
|
+
_defineProperty$f(this, "_customEvents", []);
|
|
39735
|
+
_defineProperty$f(this, "_eventStartBlocked", null);
|
|
39736
|
+
_defineProperty$f(this, "_panMove", false);
|
|
39737
|
+
_defineProperty$f(this, "invertPan", false);
|
|
39738
|
+
_defineProperty$f(this, "dragMode", "rotate");
|
|
39739
|
+
_defineProperty$f(this, "inertia", 0);
|
|
39740
|
+
_defineProperty$f(this, "scrollZoom", true);
|
|
39741
|
+
_defineProperty$f(this, "dragPan", true);
|
|
39742
|
+
_defineProperty$f(this, "dragRotate", true);
|
|
39743
|
+
_defineProperty$f(this, "doubleClickZoom", true);
|
|
39744
|
+
_defineProperty$f(this, "touchZoom", true);
|
|
39745
|
+
_defineProperty$f(this, "touchRotate", false);
|
|
39746
|
+
_defineProperty$f(this, "keyboard", true);
|
|
39743
39747
|
this.transitionManager = new TransitionManager({
|
|
39744
39748
|
...opts2,
|
|
39745
39749
|
getControllerState: (props2) => new this.ControllerState(props2),
|
|
@@ -40350,8 +40354,8 @@ class Controller {
|
|
|
40350
40354
|
}
|
|
40351
40355
|
class ViewState {
|
|
40352
40356
|
constructor(props2, state) {
|
|
40353
|
-
_defineProperty$
|
|
40354
|
-
_defineProperty$
|
|
40357
|
+
_defineProperty$f(this, "_viewportProps", void 0);
|
|
40358
|
+
_defineProperty$f(this, "_state", void 0);
|
|
40355
40359
|
this._viewportProps = this.applyConstraints(props2);
|
|
40356
40360
|
this._state = state;
|
|
40357
40361
|
}
|
|
@@ -40414,7 +40418,7 @@ class MapState extends ViewState {
|
|
|
40414
40418
|
startPitch,
|
|
40415
40419
|
startZoom
|
|
40416
40420
|
});
|
|
40417
|
-
_defineProperty$
|
|
40421
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
40418
40422
|
this.makeViewport = options.makeViewport;
|
|
40419
40423
|
}
|
|
40420
40424
|
panStart({
|
|
@@ -40674,8 +40678,8 @@ class MapState extends ViewState {
|
|
|
40674
40678
|
class MapController extends Controller {
|
|
40675
40679
|
constructor(...args) {
|
|
40676
40680
|
super(...args);
|
|
40677
|
-
_defineProperty$
|
|
40678
|
-
_defineProperty$
|
|
40681
|
+
_defineProperty$f(this, "ControllerState", MapState);
|
|
40682
|
+
_defineProperty$f(this, "transition", {
|
|
40679
40683
|
transitionDuration: 300,
|
|
40680
40684
|
transitionInterpolator: new LinearInterpolator({
|
|
40681
40685
|
transitionProps: {
|
|
@@ -40684,7 +40688,7 @@ class MapController extends Controller {
|
|
|
40684
40688
|
}
|
|
40685
40689
|
})
|
|
40686
40690
|
});
|
|
40687
|
-
_defineProperty$
|
|
40691
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
40688
40692
|
}
|
|
40689
40693
|
setProps(props2) {
|
|
40690
40694
|
props2.position = props2.position || [0, 0, 0];
|
|
@@ -40708,12 +40712,12 @@ class MapView extends View {
|
|
|
40708
40712
|
return MapController;
|
|
40709
40713
|
}
|
|
40710
40714
|
}
|
|
40711
|
-
_defineProperty$
|
|
40715
|
+
_defineProperty$f(MapView, "displayName", "MapView");
|
|
40712
40716
|
class MaskPass extends LayersPass {
|
|
40713
40717
|
constructor(gl, props2) {
|
|
40714
40718
|
super(gl, props2);
|
|
40715
|
-
_defineProperty$
|
|
40716
|
-
_defineProperty$
|
|
40719
|
+
_defineProperty$f(this, "maskMap", void 0);
|
|
40720
|
+
_defineProperty$f(this, "fbo", void 0);
|
|
40717
40721
|
const {
|
|
40718
40722
|
mapSize = 2048
|
|
40719
40723
|
} = props2;
|
|
@@ -40900,7 +40904,7 @@ class OrbitState extends ViewState {
|
|
|
40900
40904
|
startZoomPosition,
|
|
40901
40905
|
startZoom
|
|
40902
40906
|
});
|
|
40903
|
-
_defineProperty$
|
|
40907
|
+
_defineProperty$f(this, "makeViewport", void 0);
|
|
40904
40908
|
this.makeViewport = options.makeViewport;
|
|
40905
40909
|
}
|
|
40906
40910
|
panStart({
|
|
@@ -41137,8 +41141,8 @@ class OrbitState extends ViewState {
|
|
|
41137
41141
|
class OrbitController extends Controller {
|
|
41138
41142
|
constructor(...args) {
|
|
41139
41143
|
super(...args);
|
|
41140
|
-
_defineProperty$
|
|
41141
|
-
_defineProperty$
|
|
41144
|
+
_defineProperty$f(this, "ControllerState", OrbitState);
|
|
41145
|
+
_defineProperty$f(this, "transition", {
|
|
41142
41146
|
transitionDuration: 300,
|
|
41143
41147
|
transitionInterpolator: new LinearInterpolator({
|
|
41144
41148
|
transitionProps: {
|
|
@@ -41152,7 +41156,7 @@ class OrbitController extends Controller {
|
|
|
41152
41156
|
class OrthographicState extends OrbitState {
|
|
41153
41157
|
constructor(props2) {
|
|
41154
41158
|
super(props2);
|
|
41155
|
-
_defineProperty$
|
|
41159
|
+
_defineProperty$f(this, "zoomAxis", void 0);
|
|
41156
41160
|
this.zoomAxis = props2.zoomAxis || "all";
|
|
41157
41161
|
}
|
|
41158
41162
|
_calculateNewZoom({
|
|
@@ -41196,12 +41200,12 @@ class OrthographicState extends OrbitState {
|
|
|
41196
41200
|
class OrthographicController extends Controller {
|
|
41197
41201
|
constructor(...args) {
|
|
41198
41202
|
super(...args);
|
|
41199
|
-
_defineProperty$
|
|
41200
|
-
_defineProperty$
|
|
41203
|
+
_defineProperty$f(this, "ControllerState", OrthographicState);
|
|
41204
|
+
_defineProperty$f(this, "transition", {
|
|
41201
41205
|
transitionDuration: 300,
|
|
41202
41206
|
transitionInterpolator: new LinearInterpolator(["target", "zoom"])
|
|
41203
41207
|
});
|
|
41204
|
-
_defineProperty$
|
|
41208
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
41205
41209
|
}
|
|
41206
41210
|
_onPanRotate() {
|
|
41207
41211
|
return false;
|
|
@@ -41215,7 +41219,7 @@ class OrthographicView extends View {
|
|
|
41215
41219
|
return OrthographicController;
|
|
41216
41220
|
}
|
|
41217
41221
|
}
|
|
41218
|
-
_defineProperty$
|
|
41222
|
+
_defineProperty$f(OrthographicView, "displayName", "OrthographicView");
|
|
41219
41223
|
function getMaskBounds({
|
|
41220
41224
|
layers,
|
|
41221
41225
|
viewport
|
|
@@ -41308,15 +41312,15 @@ function _doubleBounds(bounds2) {
|
|
|
41308
41312
|
}
|
|
41309
41313
|
class MaskEffect {
|
|
41310
41314
|
constructor() {
|
|
41311
|
-
_defineProperty$
|
|
41312
|
-
_defineProperty$
|
|
41313
|
-
_defineProperty$
|
|
41314
|
-
_defineProperty$
|
|
41315
|
-
_defineProperty$
|
|
41316
|
-
_defineProperty$
|
|
41317
|
-
_defineProperty$
|
|
41318
|
-
_defineProperty$
|
|
41319
|
-
_defineProperty$
|
|
41315
|
+
_defineProperty$f(this, "id", "mask-effect");
|
|
41316
|
+
_defineProperty$f(this, "props", null);
|
|
41317
|
+
_defineProperty$f(this, "useInPicking", true);
|
|
41318
|
+
_defineProperty$f(this, "dummyMaskMap", void 0);
|
|
41319
|
+
_defineProperty$f(this, "channels", []);
|
|
41320
|
+
_defineProperty$f(this, "masks", null);
|
|
41321
|
+
_defineProperty$f(this, "maskPass", void 0);
|
|
41322
|
+
_defineProperty$f(this, "maskMap", void 0);
|
|
41323
|
+
_defineProperty$f(this, "lastViewport", void 0);
|
|
41320
41324
|
}
|
|
41321
41325
|
preRender(gl, {
|
|
41322
41326
|
layers,
|
|
@@ -41476,9 +41480,9 @@ class MaskEffect {
|
|
|
41476
41480
|
const DEFAULT_LIGHTING_EFFECT = new LightingEffect();
|
|
41477
41481
|
class EffectManager {
|
|
41478
41482
|
constructor() {
|
|
41479
|
-
_defineProperty$
|
|
41480
|
-
_defineProperty$
|
|
41481
|
-
_defineProperty$
|
|
41483
|
+
_defineProperty$f(this, "effects", void 0);
|
|
41484
|
+
_defineProperty$f(this, "_internalEffects", void 0);
|
|
41485
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
41482
41486
|
this.effects = [];
|
|
41483
41487
|
this._internalEffects = [];
|
|
41484
41488
|
this._needsRedraw = "Initial render";
|
|
@@ -41539,8 +41543,8 @@ const PICKING_PARAMETERS = {
|
|
|
41539
41543
|
class PickLayersPass extends LayersPass {
|
|
41540
41544
|
constructor(...args) {
|
|
41541
41545
|
super(...args);
|
|
41542
|
-
_defineProperty$
|
|
41543
|
-
_defineProperty$
|
|
41546
|
+
_defineProperty$f(this, "pickZ", void 0);
|
|
41547
|
+
_defineProperty$f(this, "_colors", null);
|
|
41544
41548
|
}
|
|
41545
41549
|
render(props2) {
|
|
41546
41550
|
if (props2.pickingFBO) {
|
|
@@ -41971,13 +41975,13 @@ function getViewportFromCoordinates(viewports, pixel) {
|
|
|
41971
41975
|
}
|
|
41972
41976
|
class DeckPicker {
|
|
41973
41977
|
constructor(gl) {
|
|
41974
|
-
_defineProperty$
|
|
41975
|
-
_defineProperty$
|
|
41976
|
-
_defineProperty$
|
|
41977
|
-
_defineProperty$
|
|
41978
|
-
_defineProperty$
|
|
41979
|
-
_defineProperty$
|
|
41980
|
-
_defineProperty$
|
|
41978
|
+
_defineProperty$f(this, "gl", void 0);
|
|
41979
|
+
_defineProperty$f(this, "pickingFBO", void 0);
|
|
41980
|
+
_defineProperty$f(this, "depthFBO", void 0);
|
|
41981
|
+
_defineProperty$f(this, "pickLayersPass", void 0);
|
|
41982
|
+
_defineProperty$f(this, "layerFilter", void 0);
|
|
41983
|
+
_defineProperty$f(this, "lastPickedInfo", void 0);
|
|
41984
|
+
_defineProperty$f(this, "_pickable", true);
|
|
41981
41985
|
this.gl = gl;
|
|
41982
41986
|
this.pickLayersPass = new PickLayersPass(gl);
|
|
41983
41987
|
this.lastPickedInfo = {
|
|
@@ -42349,8 +42353,8 @@ const defaultStyle = {
|
|
|
42349
42353
|
};
|
|
42350
42354
|
let Tooltip$1 = class Tooltip {
|
|
42351
42355
|
constructor(canvas) {
|
|
42352
|
-
_defineProperty$
|
|
42353
|
-
_defineProperty$
|
|
42356
|
+
_defineProperty$f(this, "el", null);
|
|
42357
|
+
_defineProperty$f(this, "isVisible", false);
|
|
42354
42358
|
const canvasParent = canvas.parentElement;
|
|
42355
42359
|
if (canvasParent) {
|
|
42356
42360
|
this.el = document.createElement("div");
|
|
@@ -45080,28 +45084,28 @@ const defaultProps$M = {
|
|
|
45080
45084
|
};
|
|
45081
45085
|
class Deck {
|
|
45082
45086
|
constructor(props2) {
|
|
45083
|
-
_defineProperty$
|
|
45084
|
-
_defineProperty$
|
|
45085
|
-
_defineProperty$
|
|
45086
|
-
_defineProperty$
|
|
45087
|
-
_defineProperty$
|
|
45088
|
-
_defineProperty$
|
|
45089
|
-
_defineProperty$
|
|
45090
|
-
_defineProperty$
|
|
45091
|
-
_defineProperty$
|
|
45092
|
-
_defineProperty$
|
|
45093
|
-
_defineProperty$
|
|
45094
|
-
_defineProperty$
|
|
45095
|
-
_defineProperty$
|
|
45096
|
-
_defineProperty$
|
|
45097
|
-
_defineProperty$
|
|
45098
|
-
_defineProperty$
|
|
45099
|
-
_defineProperty$
|
|
45100
|
-
_defineProperty$
|
|
45101
|
-
_defineProperty$
|
|
45102
|
-
_defineProperty$
|
|
45103
|
-
_defineProperty$
|
|
45104
|
-
_defineProperty$
|
|
45087
|
+
_defineProperty$f(this, "props", void 0);
|
|
45088
|
+
_defineProperty$f(this, "width", 0);
|
|
45089
|
+
_defineProperty$f(this, "height", 0);
|
|
45090
|
+
_defineProperty$f(this, "userData", {});
|
|
45091
|
+
_defineProperty$f(this, "canvas", null);
|
|
45092
|
+
_defineProperty$f(this, "viewManager", null);
|
|
45093
|
+
_defineProperty$f(this, "layerManager", null);
|
|
45094
|
+
_defineProperty$f(this, "effectManager", null);
|
|
45095
|
+
_defineProperty$f(this, "deckRenderer", null);
|
|
45096
|
+
_defineProperty$f(this, "deckPicker", null);
|
|
45097
|
+
_defineProperty$f(this, "eventManager", null);
|
|
45098
|
+
_defineProperty$f(this, "tooltip", null);
|
|
45099
|
+
_defineProperty$f(this, "metrics", void 0);
|
|
45100
|
+
_defineProperty$f(this, "animationLoop", void 0);
|
|
45101
|
+
_defineProperty$f(this, "stats", void 0);
|
|
45102
|
+
_defineProperty$f(this, "viewState", void 0);
|
|
45103
|
+
_defineProperty$f(this, "cursorState", void 0);
|
|
45104
|
+
_defineProperty$f(this, "_needsRedraw", void 0);
|
|
45105
|
+
_defineProperty$f(this, "_pickRequest", void 0);
|
|
45106
|
+
_defineProperty$f(this, "_lastPointerDownInfo", null);
|
|
45107
|
+
_defineProperty$f(this, "_metricsCounter", void 0);
|
|
45108
|
+
_defineProperty$f(this, "_onPointerMove", (event) => {
|
|
45105
45109
|
const {
|
|
45106
45110
|
_pickRequest
|
|
45107
45111
|
} = this;
|
|
@@ -45128,7 +45132,7 @@ class Deck {
|
|
|
45128
45132
|
}
|
|
45129
45133
|
_pickRequest.event = event;
|
|
45130
45134
|
});
|
|
45131
|
-
_defineProperty$
|
|
45135
|
+
_defineProperty$f(this, "_onEvent", (event) => {
|
|
45132
45136
|
const eventOptions = EVENTS[event.type];
|
|
45133
45137
|
const pos = event.offsetCenter;
|
|
45134
45138
|
if (!eventOptions || !pos || !this.layerManager) {
|
|
@@ -45154,7 +45158,7 @@ class Deck {
|
|
|
45154
45158
|
rootHandler(info, event);
|
|
45155
45159
|
}
|
|
45156
45160
|
});
|
|
45157
|
-
_defineProperty$
|
|
45161
|
+
_defineProperty$f(this, "_onPointerDown", (event) => {
|
|
45158
45162
|
const pos = event.offsetCenter;
|
|
45159
45163
|
const pickedInfo = this._pick("pickObject", "pickObject Time", {
|
|
45160
45164
|
x: pos.x,
|
|
@@ -45666,12 +45670,12 @@ class Deck {
|
|
|
45666
45670
|
metrics.gpuMemory = memoryStats.get("GPU Memory").count;
|
|
45667
45671
|
}
|
|
45668
45672
|
}
|
|
45669
|
-
_defineProperty$
|
|
45670
|
-
_defineProperty$
|
|
45673
|
+
_defineProperty$f(Deck, "defaultProps", defaultProps$M);
|
|
45674
|
+
_defineProperty$f(Deck, "VERSION", deckGlobal.VERSION);
|
|
45671
45675
|
class ShaderAttribute {
|
|
45672
45676
|
constructor(dataColumn, opts2) {
|
|
45673
|
-
_defineProperty$
|
|
45674
|
-
_defineProperty$
|
|
45677
|
+
_defineProperty$f(this, "opts", void 0);
|
|
45678
|
+
_defineProperty$f(this, "source", void 0);
|
|
45675
45679
|
this.opts = opts2;
|
|
45676
45680
|
this.source = dataColumn;
|
|
45677
45681
|
}
|
|
@@ -45761,14 +45765,14 @@ function resolveDoublePrecisionShaderAttributes(baseAccessor, shaderAttributeOpt
|
|
|
45761
45765
|
}
|
|
45762
45766
|
class DataColumn {
|
|
45763
45767
|
constructor(gl, opts2, state) {
|
|
45764
|
-
_defineProperty$
|
|
45765
|
-
_defineProperty$
|
|
45766
|
-
_defineProperty$
|
|
45767
|
-
_defineProperty$
|
|
45768
|
-
_defineProperty$
|
|
45769
|
-
_defineProperty$
|
|
45770
|
-
_defineProperty$
|
|
45771
|
-
_defineProperty$
|
|
45768
|
+
_defineProperty$f(this, "gl", void 0);
|
|
45769
|
+
_defineProperty$f(this, "id", void 0);
|
|
45770
|
+
_defineProperty$f(this, "size", void 0);
|
|
45771
|
+
_defineProperty$f(this, "settings", void 0);
|
|
45772
|
+
_defineProperty$f(this, "value", void 0);
|
|
45773
|
+
_defineProperty$f(this, "doublePrecision", void 0);
|
|
45774
|
+
_defineProperty$f(this, "_buffer", void 0);
|
|
45775
|
+
_defineProperty$f(this, "state", void 0);
|
|
45772
45776
|
this.gl = gl;
|
|
45773
45777
|
this.id = opts2.id || "";
|
|
45774
45778
|
this.size = opts2.size || 1;
|
|
@@ -46421,7 +46425,7 @@ class Attribute extends DataColumn {
|
|
|
46421
46425
|
needsRedraw: false,
|
|
46422
46426
|
updateRanges: FULL
|
|
46423
46427
|
});
|
|
46424
|
-
_defineProperty$
|
|
46428
|
+
_defineProperty$f(this, "constant", false);
|
|
46425
46429
|
this.settings.update = opts2.update || (opts2.accessor ? this._autoUpdater : void 0);
|
|
46426
46430
|
Object.seal(this.settings);
|
|
46427
46431
|
Object.seal(this.state);
|
|
@@ -46743,16 +46747,16 @@ class GPUInterpolationTransition {
|
|
|
46743
46747
|
attribute,
|
|
46744
46748
|
timeline
|
|
46745
46749
|
}) {
|
|
46746
|
-
_defineProperty$
|
|
46747
|
-
_defineProperty$
|
|
46748
|
-
_defineProperty$
|
|
46749
|
-
_defineProperty$
|
|
46750
|
-
_defineProperty$
|
|
46751
|
-
_defineProperty$
|
|
46752
|
-
_defineProperty$
|
|
46753
|
-
_defineProperty$
|
|
46754
|
-
_defineProperty$
|
|
46755
|
-
_defineProperty$
|
|
46750
|
+
_defineProperty$f(this, "gl", void 0);
|
|
46751
|
+
_defineProperty$f(this, "type", "interpolation");
|
|
46752
|
+
_defineProperty$f(this, "attributeInTransition", void 0);
|
|
46753
|
+
_defineProperty$f(this, "settings", void 0);
|
|
46754
|
+
_defineProperty$f(this, "attribute", void 0);
|
|
46755
|
+
_defineProperty$f(this, "transition", void 0);
|
|
46756
|
+
_defineProperty$f(this, "currentStartIndices", void 0);
|
|
46757
|
+
_defineProperty$f(this, "currentLength", void 0);
|
|
46758
|
+
_defineProperty$f(this, "transform", void 0);
|
|
46759
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
46756
46760
|
this.gl = gl;
|
|
46757
46761
|
this.transition = new Transition(timeline);
|
|
46758
46762
|
this.attribute = attribute;
|
|
@@ -46860,18 +46864,18 @@ class GPUSpringTransition {
|
|
|
46860
46864
|
attribute,
|
|
46861
46865
|
timeline
|
|
46862
46866
|
}) {
|
|
46863
|
-
_defineProperty$
|
|
46864
|
-
_defineProperty$
|
|
46865
|
-
_defineProperty$
|
|
46866
|
-
_defineProperty$
|
|
46867
|
-
_defineProperty$
|
|
46868
|
-
_defineProperty$
|
|
46869
|
-
_defineProperty$
|
|
46870
|
-
_defineProperty$
|
|
46871
|
-
_defineProperty$
|
|
46872
|
-
_defineProperty$
|
|
46873
|
-
_defineProperty$
|
|
46874
|
-
_defineProperty$
|
|
46867
|
+
_defineProperty$f(this, "gl", void 0);
|
|
46868
|
+
_defineProperty$f(this, "type", "spring");
|
|
46869
|
+
_defineProperty$f(this, "attributeInTransition", void 0);
|
|
46870
|
+
_defineProperty$f(this, "settings", void 0);
|
|
46871
|
+
_defineProperty$f(this, "attribute", void 0);
|
|
46872
|
+
_defineProperty$f(this, "transition", void 0);
|
|
46873
|
+
_defineProperty$f(this, "currentStartIndices", void 0);
|
|
46874
|
+
_defineProperty$f(this, "currentLength", void 0);
|
|
46875
|
+
_defineProperty$f(this, "texture", void 0);
|
|
46876
|
+
_defineProperty$f(this, "framebuffer", void 0);
|
|
46877
|
+
_defineProperty$f(this, "transform", void 0);
|
|
46878
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
46875
46879
|
this.gl = gl;
|
|
46876
46880
|
this.type = "spring";
|
|
46877
46881
|
this.transition = new Transition(timeline);
|
|
@@ -47033,13 +47037,13 @@ class AttributeTransitionManager {
|
|
|
47033
47037
|
id,
|
|
47034
47038
|
timeline
|
|
47035
47039
|
}) {
|
|
47036
|
-
_defineProperty$
|
|
47037
|
-
_defineProperty$
|
|
47038
|
-
_defineProperty$
|
|
47039
|
-
_defineProperty$
|
|
47040
|
-
_defineProperty$
|
|
47041
|
-
_defineProperty$
|
|
47042
|
-
_defineProperty$
|
|
47040
|
+
_defineProperty$f(this, "id", void 0);
|
|
47041
|
+
_defineProperty$f(this, "isSupported", void 0);
|
|
47042
|
+
_defineProperty$f(this, "gl", void 0);
|
|
47043
|
+
_defineProperty$f(this, "timeline", void 0);
|
|
47044
|
+
_defineProperty$f(this, "transitions", void 0);
|
|
47045
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
47046
|
+
_defineProperty$f(this, "numInstances", void 0);
|
|
47043
47047
|
this.id = id;
|
|
47044
47048
|
this.gl = gl;
|
|
47045
47049
|
this.timeline = timeline;
|
|
@@ -47146,14 +47150,14 @@ class AttributeManager {
|
|
|
47146
47150
|
stats,
|
|
47147
47151
|
timeline
|
|
47148
47152
|
} = {}) {
|
|
47149
|
-
_defineProperty$
|
|
47150
|
-
_defineProperty$
|
|
47151
|
-
_defineProperty$
|
|
47152
|
-
_defineProperty$
|
|
47153
|
-
_defineProperty$
|
|
47154
|
-
_defineProperty$
|
|
47155
|
-
_defineProperty$
|
|
47156
|
-
_defineProperty$
|
|
47153
|
+
_defineProperty$f(this, "id", void 0);
|
|
47154
|
+
_defineProperty$f(this, "gl", void 0);
|
|
47155
|
+
_defineProperty$f(this, "attributes", void 0);
|
|
47156
|
+
_defineProperty$f(this, "updateTriggers", void 0);
|
|
47157
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
47158
|
+
_defineProperty$f(this, "userData", void 0);
|
|
47159
|
+
_defineProperty$f(this, "stats", void 0);
|
|
47160
|
+
_defineProperty$f(this, "attributeTransitionManager", void 0);
|
|
47157
47161
|
this.id = id;
|
|
47158
47162
|
this.gl = gl;
|
|
47159
47163
|
this.attributes = {};
|
|
@@ -48132,9 +48136,9 @@ function getComponentName(componentClass) {
|
|
|
48132
48136
|
let counter = 0;
|
|
48133
48137
|
class Component {
|
|
48134
48138
|
constructor(...propObjects) {
|
|
48135
|
-
_defineProperty$
|
|
48136
|
-
_defineProperty$
|
|
48137
|
-
_defineProperty$
|
|
48139
|
+
_defineProperty$f(this, "id", void 0);
|
|
48140
|
+
_defineProperty$f(this, "props", void 0);
|
|
48141
|
+
_defineProperty$f(this, "count", void 0);
|
|
48138
48142
|
this.props = createProps(this, propObjects);
|
|
48139
48143
|
this.id = this.props.id;
|
|
48140
48144
|
this.count = counter++;
|
|
@@ -48158,16 +48162,16 @@ class Component {
|
|
|
48158
48162
|
});
|
|
48159
48163
|
}
|
|
48160
48164
|
}
|
|
48161
|
-
_defineProperty$
|
|
48162
|
-
_defineProperty$
|
|
48165
|
+
_defineProperty$f(Component, "componentName", "Component");
|
|
48166
|
+
_defineProperty$f(Component, "defaultProps", {});
|
|
48163
48167
|
const EMPTY_PROPS = Object.freeze({});
|
|
48164
48168
|
class ComponentState {
|
|
48165
48169
|
constructor(component) {
|
|
48166
|
-
_defineProperty$
|
|
48167
|
-
_defineProperty$
|
|
48168
|
-
_defineProperty$
|
|
48169
|
-
_defineProperty$
|
|
48170
|
-
_defineProperty$
|
|
48170
|
+
_defineProperty$f(this, "component", void 0);
|
|
48171
|
+
_defineProperty$f(this, "onAsyncPropUpdated", void 0);
|
|
48172
|
+
_defineProperty$f(this, "asyncProps", void 0);
|
|
48173
|
+
_defineProperty$f(this, "oldProps", void 0);
|
|
48174
|
+
_defineProperty$f(this, "oldAsyncProps", void 0);
|
|
48171
48175
|
this.component = component;
|
|
48172
48176
|
this.asyncProps = {};
|
|
48173
48177
|
this.onAsyncPropUpdated = () => {
|
|
@@ -48370,15 +48374,15 @@ class LayerState extends ComponentState {
|
|
|
48370
48374
|
layer
|
|
48371
48375
|
}) {
|
|
48372
48376
|
super(layer);
|
|
48373
|
-
_defineProperty$
|
|
48374
|
-
_defineProperty$
|
|
48375
|
-
_defineProperty$
|
|
48376
|
-
_defineProperty$
|
|
48377
|
-
_defineProperty$
|
|
48378
|
-
_defineProperty$
|
|
48379
|
-
_defineProperty$
|
|
48380
|
-
_defineProperty$
|
|
48381
|
-
_defineProperty$
|
|
48377
|
+
_defineProperty$f(this, "attributeManager", void 0);
|
|
48378
|
+
_defineProperty$f(this, "needsRedraw", void 0);
|
|
48379
|
+
_defineProperty$f(this, "needsUpdate", void 0);
|
|
48380
|
+
_defineProperty$f(this, "subLayers", void 0);
|
|
48381
|
+
_defineProperty$f(this, "usesPickingColorCache", void 0);
|
|
48382
|
+
_defineProperty$f(this, "changeFlags", void 0);
|
|
48383
|
+
_defineProperty$f(this, "viewport", void 0);
|
|
48384
|
+
_defineProperty$f(this, "uniformTransitions", void 0);
|
|
48385
|
+
_defineProperty$f(this, "propsInTransition", void 0);
|
|
48382
48386
|
this.attributeManager = attributeManager;
|
|
48383
48387
|
this.needsRedraw = true;
|
|
48384
48388
|
this.needsUpdate = true;
|
|
@@ -48598,11 +48602,11 @@ const defaultProps$L = {
|
|
|
48598
48602
|
class Layer extends Component {
|
|
48599
48603
|
constructor(...args) {
|
|
48600
48604
|
super(...args);
|
|
48601
|
-
_defineProperty$
|
|
48602
|
-
_defineProperty$
|
|
48603
|
-
_defineProperty$
|
|
48604
|
-
_defineProperty$
|
|
48605
|
-
_defineProperty$
|
|
48605
|
+
_defineProperty$f(this, "internalState", null);
|
|
48606
|
+
_defineProperty$f(this, "lifecycle", LIFECYCLE.NO_STATE);
|
|
48607
|
+
_defineProperty$f(this, "context", void 0);
|
|
48608
|
+
_defineProperty$f(this, "state", void 0);
|
|
48609
|
+
_defineProperty$f(this, "parent", null);
|
|
48606
48610
|
}
|
|
48607
48611
|
get root() {
|
|
48608
48612
|
let layer = this;
|
|
@@ -49304,8 +49308,8 @@ class Layer extends Component {
|
|
|
49304
49308
|
this.setNeedsUpdate();
|
|
49305
49309
|
}
|
|
49306
49310
|
}
|
|
49307
|
-
_defineProperty$
|
|
49308
|
-
_defineProperty$
|
|
49311
|
+
_defineProperty$f(Layer, "defaultProps", defaultProps$L);
|
|
49312
|
+
_defineProperty$f(Layer, "layerName", "Layer");
|
|
49309
49313
|
const TRACE_RENDER_LAYERS = "compositeLayer.renderLayers";
|
|
49310
49314
|
class CompositeLayer extends Layer {
|
|
49311
49315
|
get isComposite() {
|
|
@@ -49467,7 +49471,7 @@ class CompositeLayer extends Layer {
|
|
|
49467
49471
|
}
|
|
49468
49472
|
}
|
|
49469
49473
|
}
|
|
49470
|
-
_defineProperty$
|
|
49474
|
+
_defineProperty$f(CompositeLayer, "layerName", "CompositeLayer");
|
|
49471
49475
|
const DEGREES_TO_RADIANS$1 = Math.PI / 180;
|
|
49472
49476
|
const RADIANS_TO_DEGREES = 180 / Math.PI;
|
|
49473
49477
|
const EARTH_RADIUS = 6370972;
|
|
@@ -49523,9 +49527,9 @@ class GlobeViewport extends Viewport {
|
|
|
49523
49527
|
near: nearZMultiplier,
|
|
49524
49528
|
far: Math.min(2, 1 / relativeScale + 1) * altitude * farZMultiplier
|
|
49525
49529
|
});
|
|
49526
|
-
_defineProperty$
|
|
49527
|
-
_defineProperty$
|
|
49528
|
-
_defineProperty$
|
|
49530
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
49531
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
49532
|
+
_defineProperty$f(this, "resolution", void 0);
|
|
49529
49533
|
this.latitude = latitude;
|
|
49530
49534
|
this.longitude = longitude;
|
|
49531
49535
|
this.resolution = resolution;
|
|
@@ -49673,7 +49677,7 @@ class OrbitViewport extends Viewport {
|
|
|
49673
49677
|
position: target,
|
|
49674
49678
|
zoom
|
|
49675
49679
|
});
|
|
49676
|
-
_defineProperty$
|
|
49680
|
+
_defineProperty$f(this, "projectedCenter", void 0);
|
|
49677
49681
|
this.projectedCenter = this.project(this.center);
|
|
49678
49682
|
}
|
|
49679
49683
|
unproject(xyz, {
|
|
@@ -49722,8 +49726,8 @@ class FirstPersonViewport extends Viewport {
|
|
|
49722
49726
|
zoom,
|
|
49723
49727
|
viewMatrix: viewMatrix2
|
|
49724
49728
|
});
|
|
49725
|
-
_defineProperty$
|
|
49726
|
-
_defineProperty$
|
|
49729
|
+
_defineProperty$f(this, "longitude", void 0);
|
|
49730
|
+
_defineProperty$f(this, "latitude", void 0);
|
|
49727
49731
|
this.latitude = latitude;
|
|
49728
49732
|
this.longitude = longitude;
|
|
49729
49733
|
}
|
|
@@ -49952,8 +49956,8 @@ class FirstPersonState extends ViewState {
|
|
|
49952
49956
|
class FirstPersonController extends Controller {
|
|
49953
49957
|
constructor(...args) {
|
|
49954
49958
|
super(...args);
|
|
49955
|
-
_defineProperty$
|
|
49956
|
-
_defineProperty$
|
|
49959
|
+
_defineProperty$f(this, "ControllerState", FirstPersonState);
|
|
49960
|
+
_defineProperty$f(this, "transition", {
|
|
49957
49961
|
transitionDuration: 300,
|
|
49958
49962
|
transitionInterpolator: new LinearInterpolator(["position", "pitch", "bearing"])
|
|
49959
49963
|
});
|
|
@@ -49967,7 +49971,7 @@ class FirstPersonView extends View {
|
|
|
49967
49971
|
return FirstPersonController;
|
|
49968
49972
|
}
|
|
49969
49973
|
}
|
|
49970
|
-
_defineProperty$
|
|
49974
|
+
_defineProperty$f(FirstPersonView, "displayName", "FirstPersonView");
|
|
49971
49975
|
class OrbitView extends View {
|
|
49972
49976
|
constructor(props2 = {}) {
|
|
49973
49977
|
super(props2);
|
|
@@ -49980,7 +49984,7 @@ class OrbitView extends View {
|
|
|
49980
49984
|
return OrbitController;
|
|
49981
49985
|
}
|
|
49982
49986
|
}
|
|
49983
|
-
_defineProperty$
|
|
49987
|
+
_defineProperty$f(OrbitView, "displayName", "OrbitView");
|
|
49984
49988
|
class GlobeState extends MapState {
|
|
49985
49989
|
applyConstraints(props2) {
|
|
49986
49990
|
const {
|
|
@@ -50003,12 +50007,12 @@ class GlobeState extends MapState {
|
|
|
50003
50007
|
class GlobeController extends Controller {
|
|
50004
50008
|
constructor(...args) {
|
|
50005
50009
|
super(...args);
|
|
50006
|
-
_defineProperty$
|
|
50007
|
-
_defineProperty$
|
|
50010
|
+
_defineProperty$f(this, "ControllerState", GlobeState);
|
|
50011
|
+
_defineProperty$f(this, "transition", {
|
|
50008
50012
|
transitionDuration: 300,
|
|
50009
50013
|
transitionInterpolator: new LinearInterpolator(["longitude", "latitude", "zoom"])
|
|
50010
50014
|
});
|
|
50011
|
-
_defineProperty$
|
|
50015
|
+
_defineProperty$f(this, "dragMode", "pan");
|
|
50012
50016
|
}
|
|
50013
50017
|
setProps(props2) {
|
|
50014
50018
|
super.setProps(props2);
|
|
@@ -50024,10 +50028,10 @@ class GlobeView extends View {
|
|
|
50024
50028
|
return GlobeController;
|
|
50025
50029
|
}
|
|
50026
50030
|
}
|
|
50027
|
-
_defineProperty$
|
|
50031
|
+
_defineProperty$f(GlobeView, "displayName", "GlobeView");
|
|
50028
50032
|
class LayerExtension {
|
|
50029
50033
|
constructor(opts2) {
|
|
50030
|
-
_defineProperty$
|
|
50034
|
+
_defineProperty$f(this, "opts", void 0);
|
|
50031
50035
|
if (opts2) {
|
|
50032
50036
|
this.opts = opts2;
|
|
50033
50037
|
}
|
|
@@ -50072,7 +50076,7 @@ class LayerExtension {
|
|
|
50072
50076
|
finalizeState(context, extension) {
|
|
50073
50077
|
}
|
|
50074
50078
|
}
|
|
50075
|
-
_defineProperty$
|
|
50079
|
+
_defineProperty$f(LayerExtension, "defaultProps", {});
|
|
50076
50080
|
const LINEARLY_INTERPOLATED_PROPS = ["bearing", "pitch"];
|
|
50077
50081
|
const DEFAULT_OPTS = {
|
|
50078
50082
|
speed: 1.2,
|
|
@@ -50085,7 +50089,7 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
50085
50089
|
extract: ["width", "height", "longitude", "latitude", "zoom", "bearing", "pitch"],
|
|
50086
50090
|
required: ["width", "height", "latitude", "longitude", "zoom"]
|
|
50087
50091
|
});
|
|
50088
|
-
_defineProperty$
|
|
50092
|
+
_defineProperty$f(this, "opts", void 0);
|
|
50089
50093
|
this.opts = {
|
|
50090
50094
|
...DEFAULT_OPTS,
|
|
50091
50095
|
...opts2
|
|
@@ -50110,20 +50114,20 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
50110
50114
|
}
|
|
50111
50115
|
class Tesselator {
|
|
50112
50116
|
constructor(opts2) {
|
|
50113
|
-
_defineProperty$
|
|
50114
|
-
_defineProperty$
|
|
50115
|
-
_defineProperty$
|
|
50116
|
-
_defineProperty$
|
|
50117
|
-
_defineProperty$
|
|
50118
|
-
_defineProperty$
|
|
50119
|
-
_defineProperty$
|
|
50120
|
-
_defineProperty$
|
|
50121
|
-
_defineProperty$
|
|
50122
|
-
_defineProperty$
|
|
50123
|
-
_defineProperty$
|
|
50124
|
-
_defineProperty$
|
|
50125
|
-
_defineProperty$
|
|
50126
|
-
_defineProperty$
|
|
50117
|
+
_defineProperty$f(this, "opts", void 0);
|
|
50118
|
+
_defineProperty$f(this, "typedArrayManager", void 0);
|
|
50119
|
+
_defineProperty$f(this, "indexStarts", [0]);
|
|
50120
|
+
_defineProperty$f(this, "vertexStarts", [0]);
|
|
50121
|
+
_defineProperty$f(this, "vertexCount", 0);
|
|
50122
|
+
_defineProperty$f(this, "instanceCount", 0);
|
|
50123
|
+
_defineProperty$f(this, "attributes", void 0);
|
|
50124
|
+
_defineProperty$f(this, "_attributeDefs", void 0);
|
|
50125
|
+
_defineProperty$f(this, "data", void 0);
|
|
50126
|
+
_defineProperty$f(this, "getGeometry", void 0);
|
|
50127
|
+
_defineProperty$f(this, "geometryBuffer", void 0);
|
|
50128
|
+
_defineProperty$f(this, "buffers", void 0);
|
|
50129
|
+
_defineProperty$f(this, "positionSize", void 0);
|
|
50130
|
+
_defineProperty$f(this, "normalize", void 0);
|
|
50127
50131
|
const {
|
|
50128
50132
|
attributes = {}
|
|
50129
50133
|
} = opts2;
|
|
@@ -50396,8 +50400,8 @@ class ClipExtension extends LayerExtension {
|
|
|
50396
50400
|
}
|
|
50397
50401
|
}
|
|
50398
50402
|
}
|
|
50399
|
-
_defineProperty$
|
|
50400
|
-
_defineProperty$
|
|
50403
|
+
_defineProperty$f(ClipExtension, "defaultProps", defaultProps$K);
|
|
50404
|
+
_defineProperty$f(ClipExtension, "extensionName", "ClipExtension");
|
|
50401
50405
|
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";
|
|
50402
50406
|
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";
|
|
50403
50407
|
const DEFAULT_COLOR$a = [0, 0, 0, 255];
|
|
@@ -50451,7 +50455,7 @@ const defaultProps$J = {
|
|
|
50451
50455
|
class ArcLayer extends Layer {
|
|
50452
50456
|
constructor(...args) {
|
|
50453
50457
|
super(...args);
|
|
50454
|
-
_defineProperty$
|
|
50458
|
+
_defineProperty$f(this, "state", void 0);
|
|
50455
50459
|
}
|
|
50456
50460
|
getShaders() {
|
|
50457
50461
|
return super.getShaders({
|
|
@@ -50571,8 +50575,8 @@ class ArcLayer extends Layer {
|
|
|
50571
50575
|
return model;
|
|
50572
50576
|
}
|
|
50573
50577
|
}
|
|
50574
|
-
_defineProperty$
|
|
50575
|
-
_defineProperty$
|
|
50578
|
+
_defineProperty$f(ArcLayer, "layerName", "ArcLayer");
|
|
50579
|
+
_defineProperty$f(ArcLayer, "defaultProps", defaultProps$J);
|
|
50576
50580
|
const DEFAULT_INDICES = new Uint16Array([0, 2, 1, 0, 3, 2]);
|
|
50577
50581
|
const DEFAULT_TEX_COORDS = new Float32Array([0, 1, 0, 0, 1, 0, 1, 1]);
|
|
50578
50582
|
function createMesh(bounds2, resolution) {
|
|
@@ -50667,7 +50671,7 @@ const defaultProps$I = {
|
|
|
50667
50671
|
let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
50668
50672
|
constructor(...args) {
|
|
50669
50673
|
super(...args);
|
|
50670
|
-
_defineProperty$
|
|
50674
|
+
_defineProperty$f(this, "state", void 0);
|
|
50671
50675
|
}
|
|
50672
50676
|
getShaders() {
|
|
50673
50677
|
return super.getShaders({
|
|
@@ -50869,8 +50873,8 @@ let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
|
50869
50873
|
};
|
|
50870
50874
|
}
|
|
50871
50875
|
};
|
|
50872
|
-
_defineProperty$
|
|
50873
|
-
_defineProperty$
|
|
50876
|
+
_defineProperty$f(BitmapLayer$1, "layerName", "BitmapLayer");
|
|
50877
|
+
_defineProperty$f(BitmapLayer$1, "defaultProps", defaultProps$I);
|
|
50874
50878
|
function unpackUVsFromRGB(color2) {
|
|
50875
50879
|
const [u, v, fracUV] = color2;
|
|
50876
50880
|
const vFrac = (fracUV & 240) / 256;
|
|
@@ -51018,23 +51022,23 @@ class IconManager {
|
|
|
51018
51022
|
onUpdate: onUpdate2 = noop$1,
|
|
51019
51023
|
onError = noop$1
|
|
51020
51024
|
}) {
|
|
51021
|
-
_defineProperty$
|
|
51022
|
-
_defineProperty$
|
|
51023
|
-
_defineProperty$
|
|
51024
|
-
_defineProperty$
|
|
51025
|
-
_defineProperty$
|
|
51026
|
-
_defineProperty$
|
|
51027
|
-
_defineProperty$
|
|
51028
|
-
_defineProperty$
|
|
51029
|
-
_defineProperty$
|
|
51030
|
-
_defineProperty$
|
|
51031
|
-
_defineProperty$
|
|
51032
|
-
_defineProperty$
|
|
51033
|
-
_defineProperty$
|
|
51034
|
-
_defineProperty$
|
|
51035
|
-
_defineProperty$
|
|
51036
|
-
_defineProperty$
|
|
51037
|
-
_defineProperty$
|
|
51025
|
+
_defineProperty$f(this, "gl", void 0);
|
|
51026
|
+
_defineProperty$f(this, "onUpdate", void 0);
|
|
51027
|
+
_defineProperty$f(this, "onError", void 0);
|
|
51028
|
+
_defineProperty$f(this, "_loadOptions", null);
|
|
51029
|
+
_defineProperty$f(this, "_texture", null);
|
|
51030
|
+
_defineProperty$f(this, "_externalTexture", null);
|
|
51031
|
+
_defineProperty$f(this, "_mapping", {});
|
|
51032
|
+
_defineProperty$f(this, "_textureParameters", null);
|
|
51033
|
+
_defineProperty$f(this, "_pendingCount", 0);
|
|
51034
|
+
_defineProperty$f(this, "_autoPacking", false);
|
|
51035
|
+
_defineProperty$f(this, "_xOffset", 0);
|
|
51036
|
+
_defineProperty$f(this, "_yOffset", 0);
|
|
51037
|
+
_defineProperty$f(this, "_rowHeight", 0);
|
|
51038
|
+
_defineProperty$f(this, "_buffer", DEFAULT_BUFFER$1);
|
|
51039
|
+
_defineProperty$f(this, "_canvasWidth", DEFAULT_CANVAS_WIDTH);
|
|
51040
|
+
_defineProperty$f(this, "_canvasHeight", 0);
|
|
51041
|
+
_defineProperty$f(this, "_canvas", null);
|
|
51038
51042
|
this.gl = gl;
|
|
51039
51043
|
this.onUpdate = onUpdate2;
|
|
51040
51044
|
this.onError = onError;
|
|
@@ -51225,7 +51229,7 @@ const defaultProps$H = {
|
|
|
51225
51229
|
class IconLayer extends Layer {
|
|
51226
51230
|
constructor(...args) {
|
|
51227
51231
|
super(...args);
|
|
51228
|
-
_defineProperty$
|
|
51232
|
+
_defineProperty$f(this, "state", void 0);
|
|
51229
51233
|
}
|
|
51230
51234
|
getShaders() {
|
|
51231
51235
|
return super.getShaders({
|
|
@@ -51422,8 +51426,8 @@ class IconLayer extends Layer {
|
|
|
51422
51426
|
return [x2, y2, width, height];
|
|
51423
51427
|
}
|
|
51424
51428
|
}
|
|
51425
|
-
_defineProperty$
|
|
51426
|
-
_defineProperty$
|
|
51429
|
+
_defineProperty$f(IconLayer, "defaultProps", defaultProps$H);
|
|
51430
|
+
_defineProperty$f(IconLayer, "layerName", "IconLayer");
|
|
51427
51431
|
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";
|
|
51428
51432
|
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";
|
|
51429
51433
|
const DEFAULT_COLOR$8 = [0, 0, 0, 255];
|
|
@@ -51555,8 +51559,8 @@ class LineLayer extends Layer {
|
|
|
51555
51559
|
});
|
|
51556
51560
|
}
|
|
51557
51561
|
}
|
|
51558
|
-
_defineProperty$
|
|
51559
|
-
_defineProperty$
|
|
51562
|
+
_defineProperty$f(LineLayer, "layerName", "LineLayer");
|
|
51563
|
+
_defineProperty$f(LineLayer, "defaultProps", defaultProps$G);
|
|
51560
51564
|
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";
|
|
51561
51565
|
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";
|
|
51562
51566
|
const DEFAULT_COLOR$7 = [0, 0, 0, 255];
|
|
@@ -51687,8 +51691,8 @@ class PointCloudLayer extends Layer {
|
|
|
51687
51691
|
});
|
|
51688
51692
|
}
|
|
51689
51693
|
}
|
|
51690
|
-
_defineProperty$
|
|
51691
|
-
_defineProperty$
|
|
51694
|
+
_defineProperty$f(PointCloudLayer, "layerName", "PointCloudLayer");
|
|
51695
|
+
_defineProperty$f(PointCloudLayer, "defaultProps", defaultProps$F);
|
|
51692
51696
|
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";
|
|
51693
51697
|
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";
|
|
51694
51698
|
const DEFAULT_COLOR$6 = [0, 0, 0, 255];
|
|
@@ -51869,8 +51873,8 @@ class ScatterplotLayer extends Layer {
|
|
|
51869
51873
|
});
|
|
51870
51874
|
}
|
|
51871
51875
|
}
|
|
51872
|
-
_defineProperty$
|
|
51873
|
-
_defineProperty$
|
|
51876
|
+
_defineProperty$f(ScatterplotLayer, "defaultProps", defaultProps$E);
|
|
51877
|
+
_defineProperty$f(ScatterplotLayer, "layerName", "ScatterplotLayer");
|
|
51874
51878
|
const WINDING = {
|
|
51875
51879
|
CLOCKWISE: 1,
|
|
51876
51880
|
COUNTER_CLOCKWISE: -1
|
|
@@ -53138,8 +53142,8 @@ class ColumnLayer extends Layer {
|
|
|
53138
53142
|
}
|
|
53139
53143
|
}
|
|
53140
53144
|
}
|
|
53141
|
-
_defineProperty$
|
|
53142
|
-
_defineProperty$
|
|
53145
|
+
_defineProperty$f(ColumnLayer, "layerName", "ColumnLayer");
|
|
53146
|
+
_defineProperty$f(ColumnLayer, "defaultProps", defaultProps$D);
|
|
53143
53147
|
const defaultProps$C = {
|
|
53144
53148
|
cellSize: {
|
|
53145
53149
|
type: "number",
|
|
@@ -53180,8 +53184,8 @@ class GridCellLayer extends ColumnLayer {
|
|
|
53180
53184
|
}).draw();
|
|
53181
53185
|
}
|
|
53182
53186
|
}
|
|
53183
|
-
_defineProperty$
|
|
53184
|
-
_defineProperty$
|
|
53187
|
+
_defineProperty$f(GridCellLayer, "layerName", "GridCellLayer");
|
|
53188
|
+
_defineProperty$f(GridCellLayer, "defaultProps", defaultProps$C);
|
|
53185
53189
|
function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
53186
53190
|
let flatPath;
|
|
53187
53191
|
if (Array.isArray(path[0])) {
|
|
@@ -53396,7 +53400,7 @@ const ATTRIBUTE_TRANSITION$1 = {
|
|
|
53396
53400
|
class PathLayer extends Layer {
|
|
53397
53401
|
constructor(...args) {
|
|
53398
53402
|
super(...args);
|
|
53399
|
-
_defineProperty$
|
|
53403
|
+
_defineProperty$f(this, "state", void 0);
|
|
53400
53404
|
}
|
|
53401
53405
|
getShaders() {
|
|
53402
53406
|
return super.getShaders({
|
|
@@ -53599,8 +53603,8 @@ class PathLayer extends Layer {
|
|
|
53599
53603
|
attribute.value = pathTesselator.get("segmentTypes");
|
|
53600
53604
|
}
|
|
53601
53605
|
}
|
|
53602
|
-
_defineProperty$
|
|
53603
|
-
_defineProperty$
|
|
53606
|
+
_defineProperty$f(PathLayer, "defaultProps", defaultProps$B);
|
|
53607
|
+
_defineProperty$f(PathLayer, "layerName", "PathLayer");
|
|
53604
53608
|
var earcut$2 = { exports: {} };
|
|
53605
53609
|
earcut$2.exports = earcut;
|
|
53606
53610
|
earcut$2.exports.default = earcut;
|
|
@@ -54410,7 +54414,7 @@ const ATTRIBUTE_TRANSITION = {
|
|
|
54410
54414
|
class SolidPolygonLayer extends Layer {
|
|
54411
54415
|
constructor(...args) {
|
|
54412
54416
|
super(...args);
|
|
54413
|
-
_defineProperty$
|
|
54417
|
+
_defineProperty$f(this, "state", void 0);
|
|
54414
54418
|
}
|
|
54415
54419
|
getShaders(type) {
|
|
54416
54420
|
return super.getShaders({
|
|
@@ -54734,8 +54738,8 @@ class SolidPolygonLayer extends Layer {
|
|
|
54734
54738
|
attribute.value = this.state.polygonTesselator.get("vertexValid");
|
|
54735
54739
|
}
|
|
54736
54740
|
}
|
|
54737
|
-
_defineProperty$
|
|
54738
|
-
_defineProperty$
|
|
54741
|
+
_defineProperty$f(SolidPolygonLayer, "defaultProps", defaultProps$A);
|
|
54742
|
+
_defineProperty$f(SolidPolygonLayer, "layerName", "SolidPolygonLayer");
|
|
54739
54743
|
function replaceInRange({
|
|
54740
54744
|
data,
|
|
54741
54745
|
getIndex,
|
|
@@ -54987,8 +54991,8 @@ class PolygonLayer extends CompositeLayer {
|
|
|
54987
54991
|
return [!extruded && polygonLayer, polygonLineLayer, extruded && polygonLayer];
|
|
54988
54992
|
}
|
|
54989
54993
|
}
|
|
54990
|
-
_defineProperty$
|
|
54991
|
-
_defineProperty$
|
|
54994
|
+
_defineProperty$f(PolygonLayer, "layerName", "PolygonLayer");
|
|
54995
|
+
_defineProperty$f(PolygonLayer, "defaultProps", defaultProps$z);
|
|
54992
54996
|
function binaryToFeatureForAccesor(data, index2) {
|
|
54993
54997
|
if (!data) {
|
|
54994
54998
|
return null;
|
|
@@ -55049,7 +55053,7 @@ const defaultProps$y = {
|
|
|
55049
55053
|
class MultiIconLayer extends IconLayer {
|
|
55050
55054
|
constructor(...args) {
|
|
55051
55055
|
super(...args);
|
|
55052
|
-
_defineProperty$
|
|
55056
|
+
_defineProperty$f(this, "state", void 0);
|
|
55053
55057
|
}
|
|
55054
55058
|
getShaders() {
|
|
55055
55059
|
return {
|
|
@@ -55124,8 +55128,8 @@ class MultiIconLayer extends IconLayer {
|
|
|
55124
55128
|
return icons ? Array.from(icons).flatMap((icon) => super.getInstanceIconFrame(icon)) : EMPTY_ARRAY;
|
|
55125
55129
|
}
|
|
55126
55130
|
}
|
|
55127
|
-
_defineProperty$
|
|
55128
|
-
_defineProperty$
|
|
55131
|
+
_defineProperty$f(MultiIconLayer, "defaultProps", defaultProps$y);
|
|
55132
|
+
_defineProperty$f(MultiIconLayer, "layerName", "MultiIconLayer");
|
|
55129
55133
|
var tinySdf = { exports: {} };
|
|
55130
55134
|
tinySdf.exports = TinySDF;
|
|
55131
55135
|
tinySdf.exports.default = TinySDF;
|
|
@@ -55493,9 +55497,9 @@ function getTextFromBuffer({
|
|
|
55493
55497
|
}
|
|
55494
55498
|
class LRUCache2 {
|
|
55495
55499
|
constructor(limit = 5) {
|
|
55496
|
-
_defineProperty$
|
|
55497
|
-
_defineProperty$
|
|
55498
|
-
_defineProperty$
|
|
55500
|
+
_defineProperty$f(this, "limit", void 0);
|
|
55501
|
+
_defineProperty$f(this, "_cache", {});
|
|
55502
|
+
_defineProperty$f(this, "_order", []);
|
|
55499
55503
|
this.limit = limit;
|
|
55500
55504
|
}
|
|
55501
55505
|
get(key) {
|
|
@@ -55594,11 +55598,11 @@ function setFontAtlasCacheLimit(limit) {
|
|
|
55594
55598
|
}
|
|
55595
55599
|
class FontAtlasManager {
|
|
55596
55600
|
constructor() {
|
|
55597
|
-
_defineProperty$
|
|
55601
|
+
_defineProperty$f(this, "props", {
|
|
55598
55602
|
...DEFAULT_FONT_SETTINGS
|
|
55599
55603
|
});
|
|
55600
|
-
_defineProperty$
|
|
55601
|
-
_defineProperty$
|
|
55604
|
+
_defineProperty$f(this, "_key", void 0);
|
|
55605
|
+
_defineProperty$f(this, "_atlas", void 0);
|
|
55602
55606
|
}
|
|
55603
55607
|
get texture() {
|
|
55604
55608
|
return this._atlas;
|
|
@@ -55750,7 +55754,7 @@ const defaultProps$x = {
|
|
|
55750
55754
|
class TextBackgroundLayer extends Layer {
|
|
55751
55755
|
constructor(...args) {
|
|
55752
55756
|
super(...args);
|
|
55753
|
-
_defineProperty$
|
|
55757
|
+
_defineProperty$f(this, "state", void 0);
|
|
55754
55758
|
}
|
|
55755
55759
|
getShaders() {
|
|
55756
55760
|
return super.getShaders({
|
|
@@ -55873,8 +55877,8 @@ class TextBackgroundLayer extends Layer {
|
|
|
55873
55877
|
});
|
|
55874
55878
|
}
|
|
55875
55879
|
}
|
|
55876
|
-
_defineProperty$
|
|
55877
|
-
_defineProperty$
|
|
55880
|
+
_defineProperty$f(TextBackgroundLayer, "defaultProps", defaultProps$x);
|
|
55881
|
+
_defineProperty$f(TextBackgroundLayer, "layerName", "TextBackgroundLayer");
|
|
55878
55882
|
const TEXT_ANCHOR = {
|
|
55879
55883
|
start: 1,
|
|
55880
55884
|
middle: 0,
|
|
@@ -55971,8 +55975,8 @@ const defaultProps$w = {
|
|
|
55971
55975
|
class TextLayer extends CompositeLayer {
|
|
55972
55976
|
constructor(...args) {
|
|
55973
55977
|
super(...args);
|
|
55974
|
-
_defineProperty$
|
|
55975
|
-
_defineProperty$
|
|
55978
|
+
_defineProperty$f(this, "state", void 0);
|
|
55979
|
+
_defineProperty$f(this, "getBoundingRect", (object2, objectInfo) => {
|
|
55976
55980
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
55977
55981
|
const getText = this.state.getText;
|
|
55978
55982
|
const {
|
|
@@ -55990,7 +55994,7 @@ class TextLayer extends CompositeLayer {
|
|
|
55990
55994
|
const anchorY = ALIGNMENT_BASELINE[typeof getAlignmentBaseline === "function" ? getAlignmentBaseline(object2, objectInfo) : getAlignmentBaseline];
|
|
55991
55995
|
return [(anchorX - 1) * width / 2, (anchorY - 1) * height / 2, width, height];
|
|
55992
55996
|
});
|
|
55993
|
-
_defineProperty$
|
|
55997
|
+
_defineProperty$f(this, "getIconOffsets", (object2, objectInfo) => {
|
|
55994
55998
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
55995
55999
|
const getText = this.state.getText;
|
|
55996
56000
|
const {
|
|
@@ -56270,8 +56274,8 @@ class TextLayer extends CompositeLayer {
|
|
|
56270
56274
|
setFontAtlasCacheLimit(limit);
|
|
56271
56275
|
}
|
|
56272
56276
|
}
|
|
56273
|
-
_defineProperty$
|
|
56274
|
-
_defineProperty$
|
|
56277
|
+
_defineProperty$f(TextLayer, "defaultProps", defaultProps$w);
|
|
56278
|
+
_defineProperty$f(TextLayer, "layerName", "TextLayer");
|
|
56275
56279
|
const POINT_LAYER = {
|
|
56276
56280
|
circle: {
|
|
56277
56281
|
type: ScatterplotLayer,
|
|
@@ -56910,8 +56914,8 @@ class GeoJsonLayer extends CompositeLayer {
|
|
|
56910
56914
|
};
|
|
56911
56915
|
}
|
|
56912
56916
|
}
|
|
56913
|
-
_defineProperty$
|
|
56914
|
-
_defineProperty$
|
|
56917
|
+
_defineProperty$f(GeoJsonLayer, "layerName", "GeoJsonLayer");
|
|
56918
|
+
_defineProperty$f(GeoJsonLayer, "defaultProps", defaultProps$v);
|
|
56915
56919
|
const esm$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
56916
56920
|
__proto__: null,
|
|
56917
56921
|
ArcLayer,
|
|
@@ -56939,8 +56943,8 @@ const defaultProps$u = {
|
|
|
56939
56943
|
};
|
|
56940
56944
|
class GreatCircleLayer extends ArcLayer {
|
|
56941
56945
|
}
|
|
56942
|
-
_defineProperty$
|
|
56943
|
-
_defineProperty$
|
|
56946
|
+
_defineProperty$f(GreatCircleLayer, "layerName", "GreatCircleLayer");
|
|
56947
|
+
_defineProperty$f(GreatCircleLayer, "defaultProps", defaultProps$u);
|
|
56944
56948
|
const defaultProps$t = {
|
|
56945
56949
|
...PolygonLayer.defaultProps
|
|
56946
56950
|
};
|
|
@@ -57003,8 +57007,8 @@ class GeoCellLayer extends CompositeLayer {
|
|
|
57003
57007
|
}), this.indexToBounds());
|
|
57004
57008
|
}
|
|
57005
57009
|
}
|
|
57006
|
-
_defineProperty$
|
|
57007
|
-
_defineProperty$
|
|
57010
|
+
_defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
|
|
57011
|
+
_defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
|
|
57008
57012
|
function commonjsRequire(path) {
|
|
57009
57013
|
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.');
|
|
57010
57014
|
}
|
|
@@ -57721,8 +57725,8 @@ class S2Layer extends GeoCellLayer {
|
|
|
57721
57725
|
};
|
|
57722
57726
|
}
|
|
57723
57727
|
}
|
|
57724
|
-
_defineProperty$
|
|
57725
|
-
_defineProperty$
|
|
57728
|
+
_defineProperty$f(S2Layer, "layerName", "S2Layer");
|
|
57729
|
+
_defineProperty$f(S2Layer, "defaultProps", defaultProps$s);
|
|
57726
57730
|
const TILE_SIZE$3 = 512;
|
|
57727
57731
|
function quadkeyToWorldBounds(quadkey) {
|
|
57728
57732
|
let x2 = 0;
|
|
@@ -57765,28 +57769,28 @@ class QuadkeyLayer extends GeoCellLayer {
|
|
|
57765
57769
|
};
|
|
57766
57770
|
}
|
|
57767
57771
|
}
|
|
57768
|
-
_defineProperty$
|
|
57769
|
-
_defineProperty$
|
|
57772
|
+
_defineProperty$f(QuadkeyLayer, "layerName", "QuadkeyLayer");
|
|
57773
|
+
_defineProperty$f(QuadkeyLayer, "defaultProps", defaultProps$r);
|
|
57770
57774
|
class Tile2DHeader {
|
|
57771
57775
|
constructor(index2) {
|
|
57772
|
-
_defineProperty$
|
|
57773
|
-
_defineProperty$
|
|
57774
|
-
_defineProperty$
|
|
57775
|
-
_defineProperty$
|
|
57776
|
-
_defineProperty$
|
|
57777
|
-
_defineProperty$
|
|
57778
|
-
_defineProperty$
|
|
57779
|
-
_defineProperty$
|
|
57780
|
-
_defineProperty$
|
|
57781
|
-
_defineProperty$
|
|
57782
|
-
_defineProperty$
|
|
57783
|
-
_defineProperty$
|
|
57784
|
-
_defineProperty$
|
|
57785
|
-
_defineProperty$
|
|
57786
|
-
_defineProperty$
|
|
57787
|
-
_defineProperty$
|
|
57788
|
-
_defineProperty$
|
|
57789
|
-
_defineProperty$
|
|
57776
|
+
_defineProperty$f(this, "index", void 0);
|
|
57777
|
+
_defineProperty$f(this, "isVisible", void 0);
|
|
57778
|
+
_defineProperty$f(this, "isSelected", void 0);
|
|
57779
|
+
_defineProperty$f(this, "parent", void 0);
|
|
57780
|
+
_defineProperty$f(this, "children", void 0);
|
|
57781
|
+
_defineProperty$f(this, "content", void 0);
|
|
57782
|
+
_defineProperty$f(this, "state", void 0);
|
|
57783
|
+
_defineProperty$f(this, "layers", void 0);
|
|
57784
|
+
_defineProperty$f(this, "id", void 0);
|
|
57785
|
+
_defineProperty$f(this, "bbox", void 0);
|
|
57786
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
57787
|
+
_defineProperty$f(this, "userData", void 0);
|
|
57788
|
+
_defineProperty$f(this, "_abortController", void 0);
|
|
57789
|
+
_defineProperty$f(this, "_loader", void 0);
|
|
57790
|
+
_defineProperty$f(this, "_loaderId", void 0);
|
|
57791
|
+
_defineProperty$f(this, "_isLoaded", void 0);
|
|
57792
|
+
_defineProperty$f(this, "_isCancelled", void 0);
|
|
57793
|
+
_defineProperty$f(this, "_needsReload", void 0);
|
|
57790
57794
|
this.index = index2;
|
|
57791
57795
|
this.isVisible = false;
|
|
57792
57796
|
this.isSelected = false;
|
|
@@ -58562,12 +58566,12 @@ const REF_POINTS_9 = REF_POINTS_5.concat([[0, 0.5], [0.5, 0], [1, 0.5], [0.5, 1]
|
|
|
58562
58566
|
const REF_POINTS_11 = REF_POINTS_9.concat([[0.25, 0.5], [0.75, 0.5]]);
|
|
58563
58567
|
class OSMNode {
|
|
58564
58568
|
constructor(x2, y2, z2) {
|
|
58565
|
-
_defineProperty$
|
|
58566
|
-
_defineProperty$
|
|
58567
|
-
_defineProperty$
|
|
58568
|
-
_defineProperty$
|
|
58569
|
-
_defineProperty$
|
|
58570
|
-
_defineProperty$
|
|
58569
|
+
_defineProperty$f(this, "x", void 0);
|
|
58570
|
+
_defineProperty$f(this, "y", void 0);
|
|
58571
|
+
_defineProperty$f(this, "z", void 0);
|
|
58572
|
+
_defineProperty$f(this, "childVisible", void 0);
|
|
58573
|
+
_defineProperty$f(this, "selected", void 0);
|
|
58574
|
+
_defineProperty$f(this, "_children", void 0);
|
|
58571
58575
|
this.x = x2;
|
|
58572
58576
|
this.y = y2;
|
|
58573
58577
|
this.z = z2;
|
|
@@ -58914,22 +58918,22 @@ const STRATEGIES = {
|
|
|
58914
58918
|
};
|
|
58915
58919
|
class Tileset2D {
|
|
58916
58920
|
constructor(opts2) {
|
|
58917
|
-
_defineProperty$
|
|
58918
|
-
_defineProperty$
|
|
58919
|
-
_defineProperty$
|
|
58920
|
-
_defineProperty$
|
|
58921
|
-
_defineProperty$
|
|
58922
|
-
_defineProperty$
|
|
58923
|
-
_defineProperty$
|
|
58924
|
-
_defineProperty$
|
|
58925
|
-
_defineProperty$
|
|
58926
|
-
_defineProperty$
|
|
58927
|
-
_defineProperty$
|
|
58928
|
-
_defineProperty$
|
|
58929
|
-
_defineProperty$
|
|
58930
|
-
_defineProperty$
|
|
58931
|
-
_defineProperty$
|
|
58932
|
-
_defineProperty$
|
|
58921
|
+
_defineProperty$f(this, "opts", void 0);
|
|
58922
|
+
_defineProperty$f(this, "_requestScheduler", void 0);
|
|
58923
|
+
_defineProperty$f(this, "_cache", void 0);
|
|
58924
|
+
_defineProperty$f(this, "_dirty", void 0);
|
|
58925
|
+
_defineProperty$f(this, "_tiles", void 0);
|
|
58926
|
+
_defineProperty$f(this, "_cacheByteSize", void 0);
|
|
58927
|
+
_defineProperty$f(this, "_viewport", void 0);
|
|
58928
|
+
_defineProperty$f(this, "_zRange", void 0);
|
|
58929
|
+
_defineProperty$f(this, "_selectedTiles", void 0);
|
|
58930
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
58931
|
+
_defineProperty$f(this, "_modelMatrix", void 0);
|
|
58932
|
+
_defineProperty$f(this, "_modelMatrixInverse", void 0);
|
|
58933
|
+
_defineProperty$f(this, "_maxZoom", void 0);
|
|
58934
|
+
_defineProperty$f(this, "_minZoom", void 0);
|
|
58935
|
+
_defineProperty$f(this, "onTileLoad", void 0);
|
|
58936
|
+
_defineProperty$f(this, "_getCullBounds", memoize$2(getCullBounds));
|
|
58933
58937
|
this.opts = opts2;
|
|
58934
58938
|
this.onTileLoad = (tile) => {
|
|
58935
58939
|
this.opts.onTileLoad(tile);
|
|
@@ -59542,8 +59546,8 @@ class TileLayer extends CompositeLayer {
|
|
|
59542
59546
|
return this.state.tileset.isTileVisible(tile, cullRect);
|
|
59543
59547
|
}
|
|
59544
59548
|
}
|
|
59545
|
-
_defineProperty$
|
|
59546
|
-
_defineProperty$
|
|
59549
|
+
_defineProperty$f(TileLayer, "defaultProps", defaultProps$q);
|
|
59550
|
+
_defineProperty$f(TileLayer, "layerName", "TileLayer");
|
|
59547
59551
|
const defaultProps$p = {
|
|
59548
59552
|
fadeTrail: true,
|
|
59549
59553
|
trailLength: {
|
|
@@ -59606,8 +59610,8 @@ class TripsLayer extends PathLayer {
|
|
|
59606
59610
|
super.draw(params);
|
|
59607
59611
|
}
|
|
59608
59612
|
}
|
|
59609
|
-
_defineProperty$
|
|
59610
|
-
_defineProperty$
|
|
59613
|
+
_defineProperty$f(TripsLayer, "layerName", "TripsLayer");
|
|
59614
|
+
_defineProperty$f(TripsLayer, "defaultProps", defaultProps$p);
|
|
59611
59615
|
var libh3 = function(libh32) {
|
|
59612
59616
|
libh32 = libh32 || {};
|
|
59613
59617
|
var Module = typeof libh32 !== "undefined" ? libh32 : {};
|
|
@@ -71166,8 +71170,8 @@ class H3ClusterLayer extends GeoCellLayer {
|
|
|
71166
71170
|
};
|
|
71167
71171
|
}
|
|
71168
71172
|
}
|
|
71169
|
-
_defineProperty$
|
|
71170
|
-
_defineProperty$
|
|
71173
|
+
_defineProperty$f(H3ClusterLayer, "layerName", "H3ClusterLayer");
|
|
71174
|
+
_defineProperty$f(H3ClusterLayer, "defaultProps", defaultProps$o);
|
|
71171
71175
|
const UPDATE_THRESHOLD_KM = 10;
|
|
71172
71176
|
function normalizeLongitudes(vertices, refLng) {
|
|
71173
71177
|
refLng = refLng === void 0 ? vertices[0][0] : refLng;
|
|
@@ -71249,7 +71253,7 @@ const defaultProps$n = {
|
|
|
71249
71253
|
class H3HexagonLayer extends CompositeLayer {
|
|
71250
71254
|
constructor(...args) {
|
|
71251
71255
|
super(...args);
|
|
71252
|
-
_defineProperty$
|
|
71256
|
+
_defineProperty$f(this, "state", void 0);
|
|
71253
71257
|
}
|
|
71254
71258
|
initializeState() {
|
|
71255
71259
|
H3HexagonLayer._checkH3Lib();
|
|
@@ -71450,9 +71454,9 @@ class H3HexagonLayer extends CompositeLayer {
|
|
|
71450
71454
|
});
|
|
71451
71455
|
}
|
|
71452
71456
|
}
|
|
71453
|
-
_defineProperty$
|
|
71454
|
-
_defineProperty$
|
|
71455
|
-
_defineProperty$
|
|
71457
|
+
_defineProperty$f(H3HexagonLayer, "defaultProps", defaultProps$n);
|
|
71458
|
+
_defineProperty$f(H3HexagonLayer, "layerName", "H3HexagonLayer");
|
|
71459
|
+
_defineProperty$f(H3HexagonLayer, "_checkH3Lib", () => {
|
|
71456
71460
|
});
|
|
71457
71461
|
const RADIAN_PER_DEGREE = Math.PI / 180;
|
|
71458
71462
|
const modelMatrix = new Float32Array(16);
|
|
@@ -71671,7 +71675,7 @@ const defaultProps$m = {
|
|
|
71671
71675
|
class SimpleMeshLayer extends Layer {
|
|
71672
71676
|
constructor(...args) {
|
|
71673
71677
|
super(...args);
|
|
71674
|
-
_defineProperty$
|
|
71678
|
+
_defineProperty$f(this, "state", void 0);
|
|
71675
71679
|
}
|
|
71676
71680
|
getShaders() {
|
|
71677
71681
|
const transpileToGLSL100 = !isWebGL2$1(this.context.gl);
|
|
@@ -71797,8 +71801,8 @@ class SimpleMeshLayer extends Layer {
|
|
|
71797
71801
|
}
|
|
71798
71802
|
}
|
|
71799
71803
|
}
|
|
71800
|
-
_defineProperty$
|
|
71801
|
-
_defineProperty$
|
|
71804
|
+
_defineProperty$f(SimpleMeshLayer, "defaultProps", defaultProps$m);
|
|
71805
|
+
_defineProperty$f(SimpleMeshLayer, "layerName", "SimpleMeshLayer");
|
|
71802
71806
|
class ScenegraphNode {
|
|
71803
71807
|
constructor() {
|
|
71804
71808
|
let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -73116,9 +73120,9 @@ const DEFAULT_GLTF_JSON = {
|
|
|
73116
73120
|
};
|
|
73117
73121
|
class GLTFScenegraph {
|
|
73118
73122
|
constructor(gltf) {
|
|
73119
|
-
_defineProperty$
|
|
73120
|
-
_defineProperty$
|
|
73121
|
-
_defineProperty$
|
|
73123
|
+
_defineProperty$f(this, "gltf", void 0);
|
|
73124
|
+
_defineProperty$f(this, "sourceBuffers", void 0);
|
|
73125
|
+
_defineProperty$f(this, "byteLength", void 0);
|
|
73122
73126
|
this.gltf = gltf || {
|
|
73123
73127
|
json: {
|
|
73124
73128
|
...DEFAULT_GLTF_JSON
|
|
@@ -73736,8 +73740,8 @@ function assert$2(condition, message) {
|
|
|
73736
73740
|
}
|
|
73737
73741
|
class Schema {
|
|
73738
73742
|
constructor(fields, metadata) {
|
|
73739
|
-
_defineProperty$
|
|
73740
|
-
_defineProperty$
|
|
73743
|
+
_defineProperty$f(this, "fields", void 0);
|
|
73744
|
+
_defineProperty$f(this, "metadata", void 0);
|
|
73741
73745
|
assert$2(Array.isArray(fields));
|
|
73742
73746
|
checkNames(fields);
|
|
73743
73747
|
this.fields = fields;
|
|
@@ -73804,10 +73808,10 @@ function mergeMaps(m1, m2) {
|
|
|
73804
73808
|
}
|
|
73805
73809
|
class Field {
|
|
73806
73810
|
constructor(name2, type, nullable = false, metadata = /* @__PURE__ */ new Map()) {
|
|
73807
|
-
_defineProperty$
|
|
73808
|
-
_defineProperty$
|
|
73809
|
-
_defineProperty$
|
|
73810
|
-
_defineProperty$
|
|
73811
|
+
_defineProperty$f(this, "name", void 0);
|
|
73812
|
+
_defineProperty$f(this, "type", void 0);
|
|
73813
|
+
_defineProperty$f(this, "nullable", void 0);
|
|
73814
|
+
_defineProperty$f(this, "metadata", void 0);
|
|
73811
73815
|
this.name = name2;
|
|
73812
73816
|
this.type = type;
|
|
73813
73817
|
this.nullable = nullable;
|
|
@@ -73940,8 +73944,8 @@ _Symbol$toStringTag = Symbol.toStringTag;
|
|
|
73940
73944
|
class Int extends DataType {
|
|
73941
73945
|
constructor(isSigned, bitWidth) {
|
|
73942
73946
|
super();
|
|
73943
|
-
_defineProperty$
|
|
73944
|
-
_defineProperty$
|
|
73947
|
+
_defineProperty$f(this, "isSigned", void 0);
|
|
73948
|
+
_defineProperty$f(this, "bitWidth", void 0);
|
|
73945
73949
|
this.isSigned = isSigned;
|
|
73946
73950
|
this.bitWidth = bitWidth;
|
|
73947
73951
|
}
|
|
@@ -73994,7 +73998,7 @@ _Symbol$toStringTag2 = Symbol.toStringTag;
|
|
|
73994
73998
|
class Float extends DataType {
|
|
73995
73999
|
constructor(precision) {
|
|
73996
74000
|
super();
|
|
73997
|
-
_defineProperty$
|
|
74001
|
+
_defineProperty$f(this, "precision", void 0);
|
|
73998
74002
|
this.precision = precision;
|
|
73999
74003
|
}
|
|
74000
74004
|
get typeId() {
|
|
@@ -74021,8 +74025,8 @@ _Symbol$toStringTag7 = Symbol.toStringTag;
|
|
|
74021
74025
|
class FixedSizeList extends DataType {
|
|
74022
74026
|
constructor(listSize, child2) {
|
|
74023
74027
|
super();
|
|
74024
|
-
_defineProperty$
|
|
74025
|
-
_defineProperty$
|
|
74028
|
+
_defineProperty$f(this, "listSize", void 0);
|
|
74029
|
+
_defineProperty$f(this, "children", void 0);
|
|
74026
74030
|
this.listSize = listSize;
|
|
74027
74031
|
this.children = [child2];
|
|
74028
74032
|
}
|
|
@@ -74918,7 +74922,7 @@ const GLTF_KEYS = {
|
|
|
74918
74922
|
};
|
|
74919
74923
|
class GLTFV1Normalizer {
|
|
74920
74924
|
constructor() {
|
|
74921
|
-
_defineProperty$
|
|
74925
|
+
_defineProperty$f(this, "idToIndexMap", {
|
|
74922
74926
|
animations: {},
|
|
74923
74927
|
accessors: {},
|
|
74924
74928
|
buffers: {},
|
|
@@ -74932,7 +74936,7 @@ class GLTFV1Normalizer {
|
|
|
74932
74936
|
skins: {},
|
|
74933
74937
|
textures: {}
|
|
74934
74938
|
});
|
|
74935
|
-
_defineProperty$
|
|
74939
|
+
_defineProperty$f(this, "json", void 0);
|
|
74936
74940
|
}
|
|
74937
74941
|
normalize(gltf, options) {
|
|
74938
74942
|
this.json = gltf.json;
|
|
@@ -75134,10 +75138,10 @@ function getSizeFromAccessorType(type) {
|
|
|
75134
75138
|
}
|
|
75135
75139
|
class GLTFPostProcessor {
|
|
75136
75140
|
constructor() {
|
|
75137
|
-
_defineProperty$
|
|
75138
|
-
_defineProperty$
|
|
75139
|
-
_defineProperty$
|
|
75140
|
-
_defineProperty$
|
|
75141
|
+
_defineProperty$f(this, "baseUri", "");
|
|
75142
|
+
_defineProperty$f(this, "json", {});
|
|
75143
|
+
_defineProperty$f(this, "buffers", []);
|
|
75144
|
+
_defineProperty$f(this, "images", []);
|
|
75141
75145
|
}
|
|
75142
75146
|
postProcess(gltf, options = {}) {
|
|
75143
75147
|
const {
|
|
@@ -75792,7 +75796,7 @@ const defaultProps$l = {
|
|
|
75792
75796
|
class ScenegraphLayer extends Layer {
|
|
75793
75797
|
constructor(...args) {
|
|
75794
75798
|
super(...args);
|
|
75795
|
-
_defineProperty$
|
|
75799
|
+
_defineProperty$f(this, "state", void 0);
|
|
75796
75800
|
}
|
|
75797
75801
|
getShaders() {
|
|
75798
75802
|
const modules = [project32, picking];
|
|
@@ -76007,8 +76011,8 @@ class ScenegraphLayer extends Layer {
|
|
|
76007
76011
|
});
|
|
76008
76012
|
}
|
|
76009
76013
|
}
|
|
76010
|
-
_defineProperty$
|
|
76011
|
-
_defineProperty$
|
|
76014
|
+
_defineProperty$f(ScenegraphLayer, "defaultProps", defaultProps$l);
|
|
76015
|
+
_defineProperty$f(ScenegraphLayer, "layerName", "ScenegraphLayer");
|
|
76012
76016
|
const esm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76013
76017
|
__proto__: null,
|
|
76014
76018
|
ScenegraphLayer,
|
|
@@ -76167,8 +76171,8 @@ class MeshLayer extends SimpleMeshLayer {
|
|
|
76167
76171
|
});
|
|
76168
76172
|
}
|
|
76169
76173
|
}
|
|
76170
|
-
_defineProperty$
|
|
76171
|
-
_defineProperty$
|
|
76174
|
+
_defineProperty$f(MeshLayer, "layerName", "MeshLayer");
|
|
76175
|
+
_defineProperty$f(MeshLayer, "defaultProps", defaultProps$k);
|
|
76172
76176
|
const WGS84_RADIUS_X$1 = 6378137;
|
|
76173
76177
|
const WGS84_RADIUS_Y$1 = 6378137;
|
|
76174
76178
|
const WGS84_RADIUS_Z$1 = 6356752314245179e-9;
|
|
@@ -76508,9 +76512,9 @@ class Ellipsoid {
|
|
|
76508
76512
|
_defineProperty$f(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X$1, WGS84_RADIUS_Y$1, WGS84_RADIUS_Z$1));
|
|
76509
76513
|
class DoublyLinkedListNode {
|
|
76510
76514
|
constructor(item, previous, next) {
|
|
76511
|
-
_defineProperty$
|
|
76512
|
-
_defineProperty$
|
|
76513
|
-
_defineProperty$
|
|
76515
|
+
_defineProperty$f(this, "item", void 0);
|
|
76516
|
+
_defineProperty$f(this, "previous", void 0);
|
|
76517
|
+
_defineProperty$f(this, "next", void 0);
|
|
76514
76518
|
this.item = item;
|
|
76515
76519
|
this.previous = previous;
|
|
76516
76520
|
this.next = next;
|
|
@@ -76518,9 +76522,9 @@ class DoublyLinkedListNode {
|
|
|
76518
76522
|
}
|
|
76519
76523
|
class DoublyLinkedList {
|
|
76520
76524
|
constructor() {
|
|
76521
|
-
_defineProperty$
|
|
76522
|
-
_defineProperty$
|
|
76523
|
-
_defineProperty$
|
|
76525
|
+
_defineProperty$f(this, "head", null);
|
|
76526
|
+
_defineProperty$f(this, "tail", null);
|
|
76527
|
+
_defineProperty$f(this, "_length", 0);
|
|
76524
76528
|
}
|
|
76525
76529
|
get length() {
|
|
76526
76530
|
return this._length;
|
|
@@ -76583,9 +76587,9 @@ function defined$4(x2) {
|
|
|
76583
76587
|
}
|
|
76584
76588
|
class TilesetCache {
|
|
76585
76589
|
constructor() {
|
|
76586
|
-
_defineProperty$
|
|
76587
|
-
_defineProperty$
|
|
76588
|
-
_defineProperty$
|
|
76590
|
+
_defineProperty$f(this, "_list", void 0);
|
|
76591
|
+
_defineProperty$f(this, "_sentinel", void 0);
|
|
76592
|
+
_defineProperty$f(this, "_trimTiles", void 0);
|
|
76589
76593
|
this._list = new DoublyLinkedList();
|
|
76590
76594
|
this._sentinel = this._list.add("sentinel");
|
|
76591
76595
|
this._trimTiles = false;
|
|
@@ -77028,9 +77032,9 @@ function get3dTilesOptions(tileset) {
|
|
|
77028
77032
|
}
|
|
77029
77033
|
class ManagedArray {
|
|
77030
77034
|
constructor(length2 = 0) {
|
|
77031
|
-
_defineProperty$
|
|
77032
|
-
_defineProperty$
|
|
77033
|
-
_defineProperty$
|
|
77035
|
+
_defineProperty$f(this, "_map", /* @__PURE__ */ new Map());
|
|
77036
|
+
_defineProperty$f(this, "_array", void 0);
|
|
77037
|
+
_defineProperty$f(this, "_length", void 0);
|
|
77034
77038
|
this._array = new Array(length2);
|
|
77035
77039
|
this._length = length2;
|
|
77036
77040
|
}
|
|
@@ -77124,16 +77128,16 @@ class TilesetTraverser {
|
|
|
77124
77128
|
return true;
|
|
77125
77129
|
}
|
|
77126
77130
|
constructor(options) {
|
|
77127
|
-
_defineProperty$
|
|
77128
|
-
_defineProperty$
|
|
77129
|
-
_defineProperty$
|
|
77130
|
-
_defineProperty$
|
|
77131
|
-
_defineProperty$
|
|
77132
|
-
_defineProperty$
|
|
77133
|
-
_defineProperty$
|
|
77134
|
-
_defineProperty$
|
|
77135
|
-
_defineProperty$
|
|
77136
|
-
_defineProperty$
|
|
77131
|
+
_defineProperty$f(this, "options", void 0);
|
|
77132
|
+
_defineProperty$f(this, "root", void 0);
|
|
77133
|
+
_defineProperty$f(this, "requestedTiles", void 0);
|
|
77134
|
+
_defineProperty$f(this, "selectedTiles", void 0);
|
|
77135
|
+
_defineProperty$f(this, "emptyTiles", void 0);
|
|
77136
|
+
_defineProperty$f(this, "lastUpdate", (/* @__PURE__ */ new Date()).getTime());
|
|
77137
|
+
_defineProperty$f(this, "updateDebounceTime", 1e3);
|
|
77138
|
+
_defineProperty$f(this, "_traversalStack", void 0);
|
|
77139
|
+
_defineProperty$f(this, "_emptyTraversalStack", void 0);
|
|
77140
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
77137
77141
|
this.options = {
|
|
77138
77142
|
...DEFAULT_PROPS$1,
|
|
77139
77143
|
...options
|
|
@@ -77354,52 +77358,52 @@ function defined$2(x2) {
|
|
|
77354
77358
|
}
|
|
77355
77359
|
class TileHeader {
|
|
77356
77360
|
constructor(tileset, header, parentHeader, extendedId = "") {
|
|
77357
|
-
_defineProperty$
|
|
77358
|
-
_defineProperty$
|
|
77359
|
-
_defineProperty$
|
|
77360
|
-
_defineProperty$
|
|
77361
|
-
_defineProperty$
|
|
77362
|
-
_defineProperty$
|
|
77363
|
-
_defineProperty$
|
|
77364
|
-
_defineProperty$
|
|
77365
|
-
_defineProperty$
|
|
77366
|
-
_defineProperty$
|
|
77367
|
-
_defineProperty$
|
|
77368
|
-
_defineProperty$
|
|
77369
|
-
_defineProperty$
|
|
77370
|
-
_defineProperty$
|
|
77371
|
-
_defineProperty$
|
|
77372
|
-
_defineProperty$
|
|
77373
|
-
_defineProperty$
|
|
77374
|
-
_defineProperty$
|
|
77375
|
-
_defineProperty$
|
|
77376
|
-
_defineProperty$
|
|
77377
|
-
_defineProperty$
|
|
77378
|
-
_defineProperty$
|
|
77379
|
-
_defineProperty$
|
|
77380
|
-
_defineProperty$
|
|
77381
|
-
_defineProperty$
|
|
77382
|
-
_defineProperty$
|
|
77383
|
-
_defineProperty$
|
|
77384
|
-
_defineProperty$
|
|
77385
|
-
_defineProperty$
|
|
77386
|
-
_defineProperty$
|
|
77387
|
-
_defineProperty$
|
|
77388
|
-
_defineProperty$
|
|
77389
|
-
_defineProperty$
|
|
77390
|
-
_defineProperty$
|
|
77391
|
-
_defineProperty$
|
|
77392
|
-
_defineProperty$
|
|
77393
|
-
_defineProperty$
|
|
77394
|
-
_defineProperty$
|
|
77395
|
-
_defineProperty$
|
|
77396
|
-
_defineProperty$
|
|
77397
|
-
_defineProperty$
|
|
77398
|
-
_defineProperty$
|
|
77399
|
-
_defineProperty$
|
|
77400
|
-
_defineProperty$
|
|
77401
|
-
_defineProperty$
|
|
77402
|
-
_defineProperty$
|
|
77361
|
+
_defineProperty$f(this, "tileset", void 0);
|
|
77362
|
+
_defineProperty$f(this, "header", void 0);
|
|
77363
|
+
_defineProperty$f(this, "id", void 0);
|
|
77364
|
+
_defineProperty$f(this, "url", void 0);
|
|
77365
|
+
_defineProperty$f(this, "parent", void 0);
|
|
77366
|
+
_defineProperty$f(this, "refine", void 0);
|
|
77367
|
+
_defineProperty$f(this, "type", void 0);
|
|
77368
|
+
_defineProperty$f(this, "contentUrl", void 0);
|
|
77369
|
+
_defineProperty$f(this, "lodMetricType", void 0);
|
|
77370
|
+
_defineProperty$f(this, "lodMetricValue", void 0);
|
|
77371
|
+
_defineProperty$f(this, "boundingVolume", void 0);
|
|
77372
|
+
_defineProperty$f(this, "content", void 0);
|
|
77373
|
+
_defineProperty$f(this, "contentState", void 0);
|
|
77374
|
+
_defineProperty$f(this, "gpuMemoryUsageInBytes", void 0);
|
|
77375
|
+
_defineProperty$f(this, "children", void 0);
|
|
77376
|
+
_defineProperty$f(this, "depth", void 0);
|
|
77377
|
+
_defineProperty$f(this, "viewportIds", void 0);
|
|
77378
|
+
_defineProperty$f(this, "transform", void 0);
|
|
77379
|
+
_defineProperty$f(this, "extensions", void 0);
|
|
77380
|
+
_defineProperty$f(this, "userData", void 0);
|
|
77381
|
+
_defineProperty$f(this, "computedTransform", void 0);
|
|
77382
|
+
_defineProperty$f(this, "hasEmptyContent", void 0);
|
|
77383
|
+
_defineProperty$f(this, "hasTilesetContent", void 0);
|
|
77384
|
+
_defineProperty$f(this, "traverser", void 0);
|
|
77385
|
+
_defineProperty$f(this, "_cacheNode", void 0);
|
|
77386
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
77387
|
+
_defineProperty$f(this, "_lodJudge", void 0);
|
|
77388
|
+
_defineProperty$f(this, "_expireDate", void 0);
|
|
77389
|
+
_defineProperty$f(this, "_expiredContent", void 0);
|
|
77390
|
+
_defineProperty$f(this, "_shouldRefine", void 0);
|
|
77391
|
+
_defineProperty$f(this, "_distanceToCamera", void 0);
|
|
77392
|
+
_defineProperty$f(this, "_centerZDepth", void 0);
|
|
77393
|
+
_defineProperty$f(this, "_screenSpaceError", void 0);
|
|
77394
|
+
_defineProperty$f(this, "_visibilityPlaneMask", void 0);
|
|
77395
|
+
_defineProperty$f(this, "_visible", void 0);
|
|
77396
|
+
_defineProperty$f(this, "_inRequestVolume", void 0);
|
|
77397
|
+
_defineProperty$f(this, "_stackLength", void 0);
|
|
77398
|
+
_defineProperty$f(this, "_selectionDepth", void 0);
|
|
77399
|
+
_defineProperty$f(this, "_touchedFrame", void 0);
|
|
77400
|
+
_defineProperty$f(this, "_visitedFrame", void 0);
|
|
77401
|
+
_defineProperty$f(this, "_selectedFrame", void 0);
|
|
77402
|
+
_defineProperty$f(this, "_requestedFrame", void 0);
|
|
77403
|
+
_defineProperty$f(this, "_priority", void 0);
|
|
77404
|
+
_defineProperty$f(this, "_contentBoundingVolume", void 0);
|
|
77405
|
+
_defineProperty$f(this, "_viewerRequestVolume", void 0);
|
|
77406
|
+
_defineProperty$f(this, "_initialTransform", void 0);
|
|
77403
77407
|
this.header = header;
|
|
77404
77408
|
this.tileset = tileset;
|
|
77405
77409
|
this.id = extendedId || header.id;
|
|
@@ -77792,7 +77796,7 @@ class Tileset3DTraverser extends TilesetTraverser {
|
|
|
77792
77796
|
}
|
|
77793
77797
|
class I3SPendingTilesRegister {
|
|
77794
77798
|
constructor() {
|
|
77795
|
-
_defineProperty$
|
|
77799
|
+
_defineProperty$f(this, "frameNumberMap", /* @__PURE__ */ new Map());
|
|
77796
77800
|
}
|
|
77797
77801
|
register(viewportId, frameNumber) {
|
|
77798
77802
|
const viewportMap = this.frameNumberMap.get(viewportId) || /* @__PURE__ */ new Map();
|
|
@@ -77821,8 +77825,8 @@ const STATUS = {
|
|
|
77821
77825
|
};
|
|
77822
77826
|
class I3STileManager {
|
|
77823
77827
|
constructor() {
|
|
77824
|
-
_defineProperty$
|
|
77825
|
-
_defineProperty$
|
|
77828
|
+
_defineProperty$f(this, "_statusMap", void 0);
|
|
77829
|
+
_defineProperty$f(this, "pendingTilesRegister", new I3SPendingTilesRegister());
|
|
77826
77830
|
this._statusMap = {};
|
|
77827
77831
|
}
|
|
77828
77832
|
add(request, key, callback, frameState) {
|
|
@@ -77896,7 +77900,7 @@ class I3STilesetTraverser extends TilesetTraverser {
|
|
|
77896
77900
|
}
|
|
77897
77901
|
constructor(options) {
|
|
77898
77902
|
super(options);
|
|
77899
|
-
_defineProperty$
|
|
77903
|
+
_defineProperty$f(this, "_tileManager", void 0);
|
|
77900
77904
|
this._tileManager = new I3STileManager();
|
|
77901
77905
|
}
|
|
77902
77906
|
shouldRefine(tile, frameState) {
|
|
@@ -77993,52 +77997,52 @@ const POINTS_COUNT = "Points/Vertices";
|
|
|
77993
77997
|
const TILES_GPU_MEMORY = "Tile Memory Use";
|
|
77994
77998
|
class Tileset3D {
|
|
77995
77999
|
constructor(json, options) {
|
|
77996
|
-
_defineProperty$
|
|
77997
|
-
_defineProperty$
|
|
77998
|
-
_defineProperty$
|
|
77999
|
-
_defineProperty$
|
|
78000
|
-
_defineProperty$
|
|
78001
|
-
_defineProperty$
|
|
78002
|
-
_defineProperty$
|
|
78003
|
-
_defineProperty$
|
|
78004
|
-
_defineProperty$
|
|
78005
|
-
_defineProperty$
|
|
78006
|
-
_defineProperty$
|
|
78007
|
-
_defineProperty$
|
|
78008
|
-
_defineProperty$
|
|
78009
|
-
_defineProperty$
|
|
78010
|
-
_defineProperty$
|
|
78011
|
-
_defineProperty$
|
|
78012
|
-
_defineProperty$
|
|
78013
|
-
_defineProperty$
|
|
78014
|
-
_defineProperty$
|
|
78015
|
-
_defineProperty$
|
|
78016
|
-
_defineProperty$
|
|
78017
|
-
_defineProperty$
|
|
78018
|
-
_defineProperty$
|
|
78019
|
-
_defineProperty$
|
|
78020
|
-
_defineProperty$
|
|
78021
|
-
_defineProperty$
|
|
78022
|
-
_defineProperty$
|
|
78023
|
-
_defineProperty$
|
|
78024
|
-
_defineProperty$
|
|
78025
|
-
_defineProperty$
|
|
78026
|
-
_defineProperty$
|
|
78027
|
-
_defineProperty$
|
|
78028
|
-
_defineProperty$
|
|
78029
|
-
_defineProperty$
|
|
78030
|
-
_defineProperty$
|
|
78031
|
-
_defineProperty$
|
|
78032
|
-
_defineProperty$
|
|
78033
|
-
_defineProperty$
|
|
78034
|
-
_defineProperty$
|
|
78035
|
-
_defineProperty$
|
|
78036
|
-
_defineProperty$
|
|
78037
|
-
_defineProperty$
|
|
78038
|
-
_defineProperty$
|
|
78039
|
-
_defineProperty$
|
|
78040
|
-
_defineProperty$
|
|
78041
|
-
_defineProperty$
|
|
78000
|
+
_defineProperty$f(this, "options", void 0);
|
|
78001
|
+
_defineProperty$f(this, "loadOptions", void 0);
|
|
78002
|
+
_defineProperty$f(this, "type", void 0);
|
|
78003
|
+
_defineProperty$f(this, "tileset", void 0);
|
|
78004
|
+
_defineProperty$f(this, "loader", void 0);
|
|
78005
|
+
_defineProperty$f(this, "url", void 0);
|
|
78006
|
+
_defineProperty$f(this, "basePath", void 0);
|
|
78007
|
+
_defineProperty$f(this, "modelMatrix", void 0);
|
|
78008
|
+
_defineProperty$f(this, "ellipsoid", void 0);
|
|
78009
|
+
_defineProperty$f(this, "lodMetricType", void 0);
|
|
78010
|
+
_defineProperty$f(this, "lodMetricValue", void 0);
|
|
78011
|
+
_defineProperty$f(this, "refine", void 0);
|
|
78012
|
+
_defineProperty$f(this, "root", void 0);
|
|
78013
|
+
_defineProperty$f(this, "roots", void 0);
|
|
78014
|
+
_defineProperty$f(this, "asset", void 0);
|
|
78015
|
+
_defineProperty$f(this, "description", void 0);
|
|
78016
|
+
_defineProperty$f(this, "properties", void 0);
|
|
78017
|
+
_defineProperty$f(this, "extras", void 0);
|
|
78018
|
+
_defineProperty$f(this, "attributions", void 0);
|
|
78019
|
+
_defineProperty$f(this, "credits", void 0);
|
|
78020
|
+
_defineProperty$f(this, "stats", void 0);
|
|
78021
|
+
_defineProperty$f(this, "traverseCounter", void 0);
|
|
78022
|
+
_defineProperty$f(this, "geometricError", void 0);
|
|
78023
|
+
_defineProperty$f(this, "selectedTiles", void 0);
|
|
78024
|
+
_defineProperty$f(this, "updatePromise", null);
|
|
78025
|
+
_defineProperty$f(this, "tilesetInitializationPromise", void 0);
|
|
78026
|
+
_defineProperty$f(this, "cartographicCenter", void 0);
|
|
78027
|
+
_defineProperty$f(this, "cartesianCenter", void 0);
|
|
78028
|
+
_defineProperty$f(this, "zoom", void 0);
|
|
78029
|
+
_defineProperty$f(this, "boundingVolume", void 0);
|
|
78030
|
+
_defineProperty$f(this, "gpuMemoryUsageInBytes", void 0);
|
|
78031
|
+
_defineProperty$f(this, "dynamicScreenSpaceErrorComputedDensity", void 0);
|
|
78032
|
+
_defineProperty$f(this, "_traverser", void 0);
|
|
78033
|
+
_defineProperty$f(this, "_cache", void 0);
|
|
78034
|
+
_defineProperty$f(this, "_requestScheduler", void 0);
|
|
78035
|
+
_defineProperty$f(this, "_frameNumber", void 0);
|
|
78036
|
+
_defineProperty$f(this, "_queryParamsString", void 0);
|
|
78037
|
+
_defineProperty$f(this, "_queryParams", void 0);
|
|
78038
|
+
_defineProperty$f(this, "_extensionsUsed", void 0);
|
|
78039
|
+
_defineProperty$f(this, "_tiles", void 0);
|
|
78040
|
+
_defineProperty$f(this, "_pendingCount", void 0);
|
|
78041
|
+
_defineProperty$f(this, "lastUpdatedVieports", void 0);
|
|
78042
|
+
_defineProperty$f(this, "_requestedTiles", void 0);
|
|
78043
|
+
_defineProperty$f(this, "_emptyTiles", void 0);
|
|
78044
|
+
_defineProperty$f(this, "frameStateData", void 0);
|
|
78045
|
+
_defineProperty$f(this, "maximumMemoryUsage", void 0);
|
|
78042
78046
|
assert$c(json);
|
|
78043
78047
|
this.options = {
|
|
78044
78048
|
...DEFAULT_PROPS,
|
|
@@ -78694,10 +78698,10 @@ function octDecode(x2, y2, result) {
|
|
|
78694
78698
|
}
|
|
78695
78699
|
class Tile3DFeatureTable {
|
|
78696
78700
|
constructor(featureTableJson, featureTableBinary) {
|
|
78697
|
-
_defineProperty$
|
|
78698
|
-
_defineProperty$
|
|
78699
|
-
_defineProperty$
|
|
78700
|
-
_defineProperty$
|
|
78701
|
+
_defineProperty$f(this, "json", void 0);
|
|
78702
|
+
_defineProperty$f(this, "buffer", void 0);
|
|
78703
|
+
_defineProperty$f(this, "featuresLength", 0);
|
|
78704
|
+
_defineProperty$f(this, "_cachedTypedArrays", {});
|
|
78701
78705
|
this.json = featureTableJson;
|
|
78702
78706
|
this.buffer = featureTableBinary;
|
|
78703
78707
|
}
|
|
@@ -79031,13 +79035,13 @@ const IGNORED_PROPERTY_FIELDS = {
|
|
|
79031
79035
|
class Tile3DBatchTableParser {
|
|
79032
79036
|
constructor(json, binary, featureCount, options = {}) {
|
|
79033
79037
|
var _this$json;
|
|
79034
|
-
_defineProperty$
|
|
79035
|
-
_defineProperty$
|
|
79036
|
-
_defineProperty$
|
|
79037
|
-
_defineProperty$
|
|
79038
|
-
_defineProperty$
|
|
79039
|
-
_defineProperty$
|
|
79040
|
-
_defineProperty$
|
|
79038
|
+
_defineProperty$f(this, "json", void 0);
|
|
79039
|
+
_defineProperty$f(this, "binary", void 0);
|
|
79040
|
+
_defineProperty$f(this, "featureCount", void 0);
|
|
79041
|
+
_defineProperty$f(this, "_extensions", void 0);
|
|
79042
|
+
_defineProperty$f(this, "_properties", void 0);
|
|
79043
|
+
_defineProperty$f(this, "_binaryProperties", void 0);
|
|
79044
|
+
_defineProperty$f(this, "_hierarchy", void 0);
|
|
79041
79045
|
assert$c(featureCount >= 0);
|
|
79042
79046
|
this.json = json || {};
|
|
79043
79047
|
this.binary = binary;
|
|
@@ -80382,7 +80386,7 @@ const defaultProps$j = {
|
|
|
80382
80386
|
class Tile3DLayer extends CompositeLayer {
|
|
80383
80387
|
constructor(...args) {
|
|
80384
80388
|
super(...args);
|
|
80385
|
-
_defineProperty$
|
|
80389
|
+
_defineProperty$f(this, "state", void 0);
|
|
80386
80390
|
}
|
|
80387
80391
|
initializeState() {
|
|
80388
80392
|
if ("onTileLoadFail" in this.props) {
|
|
@@ -80703,8 +80707,8 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
80703
80707
|
}).filter(Boolean);
|
|
80704
80708
|
}
|
|
80705
80709
|
}
|
|
80706
|
-
_defineProperty$
|
|
80707
|
-
_defineProperty$
|
|
80710
|
+
_defineProperty$f(Tile3DLayer, "defaultProps", defaultProps$j);
|
|
80711
|
+
_defineProperty$f(Tile3DLayer, "layerName", "Tile3DLayer");
|
|
80708
80712
|
function getMeshGeometry(contentAttributes) {
|
|
80709
80713
|
const attributes = {};
|
|
80710
80714
|
attributes.positions = {
|
|
@@ -81534,7 +81538,7 @@ function urlTemplateToUpdateTrigger(template) {
|
|
|
81534
81538
|
class TerrainLayer extends CompositeLayer {
|
|
81535
81539
|
constructor(...args) {
|
|
81536
81540
|
super(...args);
|
|
81537
|
-
_defineProperty$
|
|
81541
|
+
_defineProperty$f(this, "state", void 0);
|
|
81538
81542
|
}
|
|
81539
81543
|
updateState({
|
|
81540
81544
|
props: props2,
|
|
@@ -81749,8 +81753,8 @@ class TerrainLayer extends CompositeLayer {
|
|
|
81749
81753
|
});
|
|
81750
81754
|
}
|
|
81751
81755
|
}
|
|
81752
|
-
_defineProperty$
|
|
81753
|
-
_defineProperty$
|
|
81756
|
+
_defineProperty$f(TerrainLayer, "defaultProps", defaultProps$i);
|
|
81757
|
+
_defineProperty$f(TerrainLayer, "layerName", "TerrainLayer");
|
|
81754
81758
|
function flatGeojsonToBinary(features, geometryInfo, options) {
|
|
81755
81759
|
const propArrayTypes = extractNumericPropTypes(features);
|
|
81756
81760
|
const numericPropKeys = Object.keys(propArrayTypes).filter((k) => propArrayTypes[k] !== Array);
|
|
@@ -83040,14 +83044,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
83040
83044
|
return ["Unknown", "Point", "LineString", "Polygon"];
|
|
83041
83045
|
}
|
|
83042
83046
|
constructor(pbf2, end, extent2, keys3, values2) {
|
|
83043
|
-
_defineProperty$
|
|
83044
|
-
_defineProperty$
|
|
83045
|
-
_defineProperty$
|
|
83046
|
-
_defineProperty$
|
|
83047
|
-
_defineProperty$
|
|
83048
|
-
_defineProperty$
|
|
83049
|
-
_defineProperty$
|
|
83050
|
-
_defineProperty$
|
|
83047
|
+
_defineProperty$f(this, "properties", void 0);
|
|
83048
|
+
_defineProperty$f(this, "extent", void 0);
|
|
83049
|
+
_defineProperty$f(this, "type", void 0);
|
|
83050
|
+
_defineProperty$f(this, "id", void 0);
|
|
83051
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
83052
|
+
_defineProperty$f(this, "_geometry", void 0);
|
|
83053
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
83054
|
+
_defineProperty$f(this, "_values", void 0);
|
|
83051
83055
|
this.properties = {};
|
|
83052
83056
|
this.extent = extent2;
|
|
83053
83057
|
this.type = 0;
|
|
@@ -83204,14 +83208,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
83204
83208
|
};
|
|
83205
83209
|
let VectorTileLayer$1 = class VectorTileLayer {
|
|
83206
83210
|
constructor(pbf2, end) {
|
|
83207
|
-
_defineProperty$
|
|
83208
|
-
_defineProperty$
|
|
83209
|
-
_defineProperty$
|
|
83210
|
-
_defineProperty$
|
|
83211
|
-
_defineProperty$
|
|
83212
|
-
_defineProperty$
|
|
83213
|
-
_defineProperty$
|
|
83214
|
-
_defineProperty$
|
|
83211
|
+
_defineProperty$f(this, "version", void 0);
|
|
83212
|
+
_defineProperty$f(this, "name", void 0);
|
|
83213
|
+
_defineProperty$f(this, "extent", void 0);
|
|
83214
|
+
_defineProperty$f(this, "length", void 0);
|
|
83215
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
83216
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
83217
|
+
_defineProperty$f(this, "_values", void 0);
|
|
83218
|
+
_defineProperty$f(this, "_features", void 0);
|
|
83215
83219
|
this.version = 1;
|
|
83216
83220
|
this.name = "";
|
|
83217
83221
|
this.extent = 4096;
|
|
@@ -83259,7 +83263,7 @@ function readValueMessage$1(pbf2) {
|
|
|
83259
83263
|
}
|
|
83260
83264
|
let VectorTile$1 = class VectorTile {
|
|
83261
83265
|
constructor(pbf2, end) {
|
|
83262
|
-
_defineProperty$
|
|
83266
|
+
_defineProperty$f(this, "layers", void 0);
|
|
83263
83267
|
this.layers = pbf2.readFields(readTile$1, {}, end);
|
|
83264
83268
|
}
|
|
83265
83269
|
};
|
|
@@ -83363,15 +83367,15 @@ let y;
|
|
|
83363
83367
|
let i$2;
|
|
83364
83368
|
class VectorTileFeature2 {
|
|
83365
83369
|
constructor(pbf2, end, extent2, keys3, values2, geometryInfo) {
|
|
83366
|
-
_defineProperty$
|
|
83367
|
-
_defineProperty$
|
|
83368
|
-
_defineProperty$
|
|
83369
|
-
_defineProperty$
|
|
83370
|
-
_defineProperty$
|
|
83371
|
-
_defineProperty$
|
|
83372
|
-
_defineProperty$
|
|
83373
|
-
_defineProperty$
|
|
83374
|
-
_defineProperty$
|
|
83370
|
+
_defineProperty$f(this, "properties", void 0);
|
|
83371
|
+
_defineProperty$f(this, "extent", void 0);
|
|
83372
|
+
_defineProperty$f(this, "type", void 0);
|
|
83373
|
+
_defineProperty$f(this, "id", void 0);
|
|
83374
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
83375
|
+
_defineProperty$f(this, "_geometry", void 0);
|
|
83376
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
83377
|
+
_defineProperty$f(this, "_values", void 0);
|
|
83378
|
+
_defineProperty$f(this, "_geometryInfo", void 0);
|
|
83375
83379
|
this.properties = {};
|
|
83376
83380
|
this.extent = extent2;
|
|
83377
83381
|
this.type = 0;
|
|
@@ -83486,14 +83490,14 @@ class VectorTileFeature2 {
|
|
|
83486
83490
|
}
|
|
83487
83491
|
class VectorTileLayer2 {
|
|
83488
83492
|
constructor(pbf2, end) {
|
|
83489
|
-
_defineProperty$
|
|
83490
|
-
_defineProperty$
|
|
83491
|
-
_defineProperty$
|
|
83492
|
-
_defineProperty$
|
|
83493
|
-
_defineProperty$
|
|
83494
|
-
_defineProperty$
|
|
83495
|
-
_defineProperty$
|
|
83496
|
-
_defineProperty$
|
|
83493
|
+
_defineProperty$f(this, "version", void 0);
|
|
83494
|
+
_defineProperty$f(this, "name", void 0);
|
|
83495
|
+
_defineProperty$f(this, "extent", void 0);
|
|
83496
|
+
_defineProperty$f(this, "length", void 0);
|
|
83497
|
+
_defineProperty$f(this, "_pbf", void 0);
|
|
83498
|
+
_defineProperty$f(this, "_keys", void 0);
|
|
83499
|
+
_defineProperty$f(this, "_values", void 0);
|
|
83500
|
+
_defineProperty$f(this, "_features", void 0);
|
|
83497
83501
|
this.version = 1;
|
|
83498
83502
|
this.name = "";
|
|
83499
83503
|
this.extent = 4096;
|
|
@@ -83541,7 +83545,7 @@ function readValueMessage(pbf2) {
|
|
|
83541
83545
|
}
|
|
83542
83546
|
class VectorTile2 {
|
|
83543
83547
|
constructor(pbf2, end) {
|
|
83544
|
-
_defineProperty$
|
|
83548
|
+
_defineProperty$f(this, "layers", void 0);
|
|
83545
83549
|
this.layers = pbf2.readFields(readTile, {}, end);
|
|
83546
83550
|
}
|
|
83547
83551
|
}
|
|
@@ -84152,8 +84156,8 @@ class MVTLayer extends TileLayer {
|
|
|
84152
84156
|
});
|
|
84153
84157
|
}
|
|
84154
84158
|
}
|
|
84155
|
-
_defineProperty$
|
|
84156
|
-
_defineProperty$
|
|
84159
|
+
_defineProperty$f(MVTLayer, "layerName", "MVTLayer");
|
|
84160
|
+
_defineProperty$f(MVTLayer, "defaultProps", defaultProps$h);
|
|
84157
84161
|
function getFeatureUniqueId(feature2, uniqueIdProperty) {
|
|
84158
84162
|
if (feature2.properties && uniqueIdProperty) {
|
|
84159
84163
|
return feature2.properties[uniqueIdProperty];
|
|
@@ -84251,8 +84255,8 @@ class GeohashLayer extends GeoCellLayer {
|
|
|
84251
84255
|
};
|
|
84252
84256
|
}
|
|
84253
84257
|
}
|
|
84254
|
-
_defineProperty$
|
|
84255
|
-
_defineProperty$
|
|
84258
|
+
_defineProperty$f(GeohashLayer, "layerName", "GeohashLayer");
|
|
84259
|
+
_defineProperty$f(GeohashLayer, "defaultProps", defaultProps$g);
|
|
84256
84260
|
const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
84257
84261
|
__proto__: null,
|
|
84258
84262
|
GeohashLayer,
|
|
@@ -86900,13 +86904,13 @@ var shams$1 = function hasSymbols() {
|
|
|
86900
86904
|
}
|
|
86901
86905
|
return true;
|
|
86902
86906
|
};
|
|
86903
|
-
var hasSymbols$
|
|
86907
|
+
var hasSymbols$3 = shams$1;
|
|
86904
86908
|
var shams = function hasToStringTagShams() {
|
|
86905
|
-
return hasSymbols$
|
|
86909
|
+
return hasSymbols$3() && !!Symbol.toStringTag;
|
|
86906
86910
|
};
|
|
86907
86911
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
86908
86912
|
var hasSymbolSham = shams$1;
|
|
86909
|
-
var hasSymbols$
|
|
86913
|
+
var hasSymbols$2 = function hasNativeSymbols() {
|
|
86910
86914
|
if (typeof origSymbol !== "function") {
|
|
86911
86915
|
return false;
|
|
86912
86916
|
}
|
|
@@ -86921,6 +86925,13 @@ var hasSymbols$3 = function hasNativeSymbols() {
|
|
|
86921
86925
|
}
|
|
86922
86926
|
return hasSymbolSham();
|
|
86923
86927
|
};
|
|
86928
|
+
var test = {
|
|
86929
|
+
foo: {}
|
|
86930
|
+
};
|
|
86931
|
+
var $Object = Object;
|
|
86932
|
+
var hasProto$1 = function hasProto() {
|
|
86933
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
86934
|
+
};
|
|
86924
86935
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
86925
86936
|
var slice = Array.prototype.slice;
|
|
86926
86937
|
var toStr$2 = Object.prototype.toString;
|
|
@@ -86966,374 +86977,8 @@ var implementation$7 = function bind2(that2) {
|
|
|
86966
86977
|
};
|
|
86967
86978
|
var implementation$6 = implementation$7;
|
|
86968
86979
|
var functionBind = Function.prototype.bind || implementation$6;
|
|
86969
|
-
var bind$2 = functionBind;
|
|
86970
|
-
var src = bind$2.call(Function.call, Object.prototype.hasOwnProperty);
|
|
86971
|
-
var undefined$2;
|
|
86972
|
-
var $SyntaxError$1 = SyntaxError;
|
|
86973
|
-
var $Function$1 = Function;
|
|
86974
|
-
var $TypeError$1 = TypeError;
|
|
86975
|
-
var getEvalledConstructor$1 = function(expressionSyntax) {
|
|
86976
|
-
try {
|
|
86977
|
-
return $Function$1('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
86978
|
-
} catch (e3) {
|
|
86979
|
-
}
|
|
86980
|
-
};
|
|
86981
|
-
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
86982
|
-
if ($gOPD$2) {
|
|
86983
|
-
try {
|
|
86984
|
-
$gOPD$2({}, "");
|
|
86985
|
-
} catch (e3) {
|
|
86986
|
-
$gOPD$2 = null;
|
|
86987
|
-
}
|
|
86988
|
-
}
|
|
86989
|
-
var throwTypeError$1 = function() {
|
|
86990
|
-
throw new $TypeError$1();
|
|
86991
|
-
};
|
|
86992
|
-
var ThrowTypeError$1 = $gOPD$2 ? function() {
|
|
86993
|
-
try {
|
|
86994
|
-
arguments.callee;
|
|
86995
|
-
return throwTypeError$1;
|
|
86996
|
-
} catch (calleeThrows) {
|
|
86997
|
-
try {
|
|
86998
|
-
return $gOPD$2(arguments, "callee").get;
|
|
86999
|
-
} catch (gOPDthrows) {
|
|
87000
|
-
return throwTypeError$1;
|
|
87001
|
-
}
|
|
87002
|
-
}
|
|
87003
|
-
}() : throwTypeError$1;
|
|
87004
|
-
var hasSymbols$2 = hasSymbols$3();
|
|
87005
|
-
var getProto$2 = Object.getPrototypeOf || function(x2) {
|
|
87006
|
-
return x2.__proto__;
|
|
87007
|
-
};
|
|
87008
|
-
var needsEval$1 = {};
|
|
87009
|
-
var TypedArray$1 = typeof Uint8Array === "undefined" ? undefined$2 : getProto$2(Uint8Array);
|
|
87010
|
-
var INTRINSICS$1 = {
|
|
87011
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$2 : AggregateError,
|
|
87012
|
-
"%Array%": Array,
|
|
87013
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$2 : ArrayBuffer,
|
|
87014
|
-
"%ArrayIteratorPrototype%": hasSymbols$2 ? getProto$2([][Symbol.iterator]()) : undefined$2,
|
|
87015
|
-
"%AsyncFromSyncIteratorPrototype%": undefined$2,
|
|
87016
|
-
"%AsyncFunction%": needsEval$1,
|
|
87017
|
-
"%AsyncGenerator%": needsEval$1,
|
|
87018
|
-
"%AsyncGeneratorFunction%": needsEval$1,
|
|
87019
|
-
"%AsyncIteratorPrototype%": needsEval$1,
|
|
87020
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined$2 : Atomics,
|
|
87021
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined$2 : BigInt,
|
|
87022
|
-
"%Boolean%": Boolean,
|
|
87023
|
-
"%DataView%": typeof DataView === "undefined" ? undefined$2 : DataView,
|
|
87024
|
-
"%Date%": Date,
|
|
87025
|
-
"%decodeURI%": decodeURI,
|
|
87026
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
87027
|
-
"%encodeURI%": encodeURI,
|
|
87028
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
87029
|
-
"%Error%": Error,
|
|
87030
|
-
"%eval%": eval,
|
|
87031
|
-
// eslint-disable-line no-eval
|
|
87032
|
-
"%EvalError%": EvalError,
|
|
87033
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$2 : Float32Array,
|
|
87034
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$2 : Float64Array,
|
|
87035
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$2 : FinalizationRegistry,
|
|
87036
|
-
"%Function%": $Function$1,
|
|
87037
|
-
"%GeneratorFunction%": needsEval$1,
|
|
87038
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined$2 : Int8Array,
|
|
87039
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined$2 : Int16Array,
|
|
87040
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$2 : Int32Array,
|
|
87041
|
-
"%isFinite%": isFinite,
|
|
87042
|
-
"%isNaN%": isNaN,
|
|
87043
|
-
"%IteratorPrototype%": hasSymbols$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$2,
|
|
87044
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined$2,
|
|
87045
|
-
"%Map%": typeof Map === "undefined" ? undefined$2 : Map,
|
|
87046
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 ? undefined$2 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
87047
|
-
"%Math%": Math,
|
|
87048
|
-
"%Number%": Number,
|
|
87049
|
-
"%Object%": Object,
|
|
87050
|
-
"%parseFloat%": parseFloat,
|
|
87051
|
-
"%parseInt%": parseInt,
|
|
87052
|
-
"%Promise%": typeof Promise === "undefined" ? undefined$2 : Promise,
|
|
87053
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined$2 : Proxy,
|
|
87054
|
-
"%RangeError%": RangeError,
|
|
87055
|
-
"%ReferenceError%": ReferenceError,
|
|
87056
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined$2 : Reflect,
|
|
87057
|
-
"%RegExp%": RegExp,
|
|
87058
|
-
"%Set%": typeof Set === "undefined" ? undefined$2 : Set,
|
|
87059
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 ? undefined$2 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
87060
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$2 : SharedArrayBuffer,
|
|
87061
|
-
"%String%": String,
|
|
87062
|
-
"%StringIteratorPrototype%": hasSymbols$2 ? getProto$2(""[Symbol.iterator]()) : undefined$2,
|
|
87063
|
-
"%Symbol%": hasSymbols$2 ? Symbol : undefined$2,
|
|
87064
|
-
"%SyntaxError%": $SyntaxError$1,
|
|
87065
|
-
"%ThrowTypeError%": ThrowTypeError$1,
|
|
87066
|
-
"%TypedArray%": TypedArray$1,
|
|
87067
|
-
"%TypeError%": $TypeError$1,
|
|
87068
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$2 : Uint8Array,
|
|
87069
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$2 : Uint8ClampedArray,
|
|
87070
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$2 : Uint16Array,
|
|
87071
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$2 : Uint32Array,
|
|
87072
|
-
"%URIError%": URIError,
|
|
87073
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined$2 : WeakMap,
|
|
87074
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined$2 : WeakRef,
|
|
87075
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined$2 : WeakSet
|
|
87076
|
-
};
|
|
87077
|
-
var doEval$1 = function doEval(name2) {
|
|
87078
|
-
var value;
|
|
87079
|
-
if (name2 === "%AsyncFunction%") {
|
|
87080
|
-
value = getEvalledConstructor$1("async function () {}");
|
|
87081
|
-
} else if (name2 === "%GeneratorFunction%") {
|
|
87082
|
-
value = getEvalledConstructor$1("function* () {}");
|
|
87083
|
-
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
87084
|
-
value = getEvalledConstructor$1("async function* () {}");
|
|
87085
|
-
} else if (name2 === "%AsyncGenerator%") {
|
|
87086
|
-
var fn = doEval("%AsyncGeneratorFunction%");
|
|
87087
|
-
if (fn) {
|
|
87088
|
-
value = fn.prototype;
|
|
87089
|
-
}
|
|
87090
|
-
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
87091
|
-
var gen = doEval("%AsyncGenerator%");
|
|
87092
|
-
if (gen) {
|
|
87093
|
-
value = getProto$2(gen.prototype);
|
|
87094
|
-
}
|
|
87095
|
-
}
|
|
87096
|
-
INTRINSICS$1[name2] = value;
|
|
87097
|
-
return value;
|
|
87098
|
-
};
|
|
87099
|
-
var LEGACY_ALIASES$1 = {
|
|
87100
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
87101
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
87102
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
87103
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
87104
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
87105
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
87106
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
87107
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
87108
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
87109
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
87110
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
87111
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
87112
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
87113
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
87114
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
87115
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
87116
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
87117
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
87118
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
87119
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
87120
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
87121
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
87122
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
87123
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
87124
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
87125
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
87126
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
87127
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
87128
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
87129
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
87130
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
87131
|
-
"%Promise_all%": ["Promise", "all"],
|
|
87132
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
87133
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
87134
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
87135
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
87136
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
87137
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
87138
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
87139
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
87140
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
87141
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
87142
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
87143
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
87144
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
87145
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
87146
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
87147
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
87148
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
87149
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
87150
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
87151
|
-
};
|
|
87152
86980
|
var bind$1 = functionBind;
|
|
87153
|
-
var
|
|
87154
|
-
var $concat$1 = bind$1.call(Function.call, Array.prototype.concat);
|
|
87155
|
-
var $spliceApply$1 = bind$1.call(Function.apply, Array.prototype.splice);
|
|
87156
|
-
var $replace$1 = bind$1.call(Function.call, String.prototype.replace);
|
|
87157
|
-
var $strSlice$1 = bind$1.call(Function.call, String.prototype.slice);
|
|
87158
|
-
var $exec$2 = bind$1.call(Function.call, RegExp.prototype.exec);
|
|
87159
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
87160
|
-
var reEscapeChar$1 = /\\(\\)?/g;
|
|
87161
|
-
var stringToPath$1 = function stringToPath(string2) {
|
|
87162
|
-
var first = $strSlice$1(string2, 0, 1);
|
|
87163
|
-
var last = $strSlice$1(string2, -1);
|
|
87164
|
-
if (first === "%" && last !== "%") {
|
|
87165
|
-
throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
|
|
87166
|
-
} else if (last === "%" && first !== "%") {
|
|
87167
|
-
throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
|
|
87168
|
-
}
|
|
87169
|
-
var result = [];
|
|
87170
|
-
$replace$1(string2, rePropName$1, function(match, number2, quote, subString) {
|
|
87171
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, "$1") : number2 || match;
|
|
87172
|
-
});
|
|
87173
|
-
return result;
|
|
87174
|
-
};
|
|
87175
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name2, allowMissing) {
|
|
87176
|
-
var intrinsicName = name2;
|
|
87177
|
-
var alias;
|
|
87178
|
-
if (hasOwn$1(LEGACY_ALIASES$1, intrinsicName)) {
|
|
87179
|
-
alias = LEGACY_ALIASES$1[intrinsicName];
|
|
87180
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
87181
|
-
}
|
|
87182
|
-
if (hasOwn$1(INTRINSICS$1, intrinsicName)) {
|
|
87183
|
-
var value = INTRINSICS$1[intrinsicName];
|
|
87184
|
-
if (value === needsEval$1) {
|
|
87185
|
-
value = doEval$1(intrinsicName);
|
|
87186
|
-
}
|
|
87187
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
87188
|
-
throw new $TypeError$1("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
87189
|
-
}
|
|
87190
|
-
return {
|
|
87191
|
-
alias,
|
|
87192
|
-
name: intrinsicName,
|
|
87193
|
-
value
|
|
87194
|
-
};
|
|
87195
|
-
}
|
|
87196
|
-
throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
|
|
87197
|
-
};
|
|
87198
|
-
var getIntrinsic$1 = function GetIntrinsic(name2, allowMissing) {
|
|
87199
|
-
if (typeof name2 !== "string" || name2.length === 0) {
|
|
87200
|
-
throw new $TypeError$1("intrinsic name must be a non-empty string");
|
|
87201
|
-
}
|
|
87202
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
87203
|
-
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
87204
|
-
}
|
|
87205
|
-
if ($exec$2(/^%?[^%]*%?$/, name2) === null) {
|
|
87206
|
-
throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
87207
|
-
}
|
|
87208
|
-
var parts = stringToPath$1(name2);
|
|
87209
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
87210
|
-
var intrinsic = getBaseIntrinsic$1("%" + intrinsicBaseName + "%", allowMissing);
|
|
87211
|
-
var intrinsicRealName = intrinsic.name;
|
|
87212
|
-
var value = intrinsic.value;
|
|
87213
|
-
var skipFurtherCaching = false;
|
|
87214
|
-
var alias = intrinsic.alias;
|
|
87215
|
-
if (alias) {
|
|
87216
|
-
intrinsicBaseName = alias[0];
|
|
87217
|
-
$spliceApply$1(parts, $concat$1([0, 1], alias));
|
|
87218
|
-
}
|
|
87219
|
-
for (var i2 = 1, isOwn = true; i2 < parts.length; i2 += 1) {
|
|
87220
|
-
var part = parts[i2];
|
|
87221
|
-
var first = $strSlice$1(part, 0, 1);
|
|
87222
|
-
var last = $strSlice$1(part, -1);
|
|
87223
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
87224
|
-
throw new $SyntaxError$1("property names with quotes must have matching quotes");
|
|
87225
|
-
}
|
|
87226
|
-
if (part === "constructor" || !isOwn) {
|
|
87227
|
-
skipFurtherCaching = true;
|
|
87228
|
-
}
|
|
87229
|
-
intrinsicBaseName += "." + part;
|
|
87230
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
87231
|
-
if (hasOwn$1(INTRINSICS$1, intrinsicRealName)) {
|
|
87232
|
-
value = INTRINSICS$1[intrinsicRealName];
|
|
87233
|
-
} else if (value != null) {
|
|
87234
|
-
if (!(part in value)) {
|
|
87235
|
-
if (!allowMissing) {
|
|
87236
|
-
throw new $TypeError$1("base intrinsic for " + name2 + " exists, but the property is not available.");
|
|
87237
|
-
}
|
|
87238
|
-
return void 0;
|
|
87239
|
-
}
|
|
87240
|
-
if ($gOPD$2 && i2 + 1 >= parts.length) {
|
|
87241
|
-
var desc = $gOPD$2(value, part);
|
|
87242
|
-
isOwn = !!desc;
|
|
87243
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
87244
|
-
value = desc.get;
|
|
87245
|
-
} else {
|
|
87246
|
-
value = value[part];
|
|
87247
|
-
}
|
|
87248
|
-
} else {
|
|
87249
|
-
isOwn = hasOwn$1(value, part);
|
|
87250
|
-
value = value[part];
|
|
87251
|
-
}
|
|
87252
|
-
if (isOwn && !skipFurtherCaching) {
|
|
87253
|
-
INTRINSICS$1[intrinsicRealName] = value;
|
|
87254
|
-
}
|
|
87255
|
-
}
|
|
87256
|
-
}
|
|
87257
|
-
return value;
|
|
87258
|
-
};
|
|
87259
|
-
var callBind$3 = { exports: {} };
|
|
87260
|
-
(function(module2) {
|
|
87261
|
-
var bind4 = functionBind;
|
|
87262
|
-
var GetIntrinsic4 = getIntrinsic$1;
|
|
87263
|
-
var $apply = GetIntrinsic4("%Function.prototype.apply%");
|
|
87264
|
-
var $call = GetIntrinsic4("%Function.prototype.call%");
|
|
87265
|
-
var $reflectApply = GetIntrinsic4("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
87266
|
-
var $gOPD2 = GetIntrinsic4("%Object.getOwnPropertyDescriptor%", true);
|
|
87267
|
-
var $defineProperty2 = GetIntrinsic4("%Object.defineProperty%", true);
|
|
87268
|
-
var $max = GetIntrinsic4("%Math.max%");
|
|
87269
|
-
if ($defineProperty2) {
|
|
87270
|
-
try {
|
|
87271
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
87272
|
-
} catch (e3) {
|
|
87273
|
-
$defineProperty2 = null;
|
|
87274
|
-
}
|
|
87275
|
-
}
|
|
87276
|
-
module2.exports = function callBind2(originalFunction) {
|
|
87277
|
-
var func = $reflectApply(bind4, $call, arguments);
|
|
87278
|
-
if ($gOPD2 && $defineProperty2) {
|
|
87279
|
-
var desc = $gOPD2(func, "length");
|
|
87280
|
-
if (desc.configurable) {
|
|
87281
|
-
$defineProperty2(
|
|
87282
|
-
func,
|
|
87283
|
-
"length",
|
|
87284
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
87285
|
-
);
|
|
87286
|
-
}
|
|
87287
|
-
}
|
|
87288
|
-
return func;
|
|
87289
|
-
};
|
|
87290
|
-
var applyBind = function applyBind2() {
|
|
87291
|
-
return $reflectApply(bind4, $apply, arguments);
|
|
87292
|
-
};
|
|
87293
|
-
if ($defineProperty2) {
|
|
87294
|
-
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
87295
|
-
} else {
|
|
87296
|
-
module2.exports.apply = applyBind;
|
|
87297
|
-
}
|
|
87298
|
-
})(callBind$3);
|
|
87299
|
-
var callBindExports = callBind$3.exports;
|
|
87300
|
-
var GetIntrinsic$1 = getIntrinsic$1;
|
|
87301
|
-
var callBind$2 = callBindExports;
|
|
87302
|
-
var $indexOf = callBind$2(GetIntrinsic$1("String.prototype.indexOf"));
|
|
87303
|
-
var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
87304
|
-
var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
|
|
87305
|
-
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
87306
|
-
return callBind$2(intrinsic);
|
|
87307
|
-
}
|
|
87308
|
-
return intrinsic;
|
|
87309
|
-
};
|
|
87310
|
-
var hasToStringTag$2 = shams();
|
|
87311
|
-
var callBound$1 = callBound$2;
|
|
87312
|
-
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
87313
|
-
var isStandardArguments = function isArguments2(value) {
|
|
87314
|
-
if (hasToStringTag$2 && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
87315
|
-
return false;
|
|
87316
|
-
}
|
|
87317
|
-
return $toString$1(value) === "[object Arguments]";
|
|
87318
|
-
};
|
|
87319
|
-
var isLegacyArguments = function isArguments3(value) {
|
|
87320
|
-
if (isStandardArguments(value)) {
|
|
87321
|
-
return true;
|
|
87322
|
-
}
|
|
87323
|
-
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
|
|
87324
|
-
};
|
|
87325
|
-
var supportsStandardArguments = function() {
|
|
87326
|
-
return isStandardArguments(arguments);
|
|
87327
|
-
}();
|
|
87328
|
-
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
87329
|
-
var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
87330
|
-
var test = {
|
|
87331
|
-
foo: {}
|
|
87332
|
-
};
|
|
87333
|
-
var $Object = Object;
|
|
87334
|
-
var hasProto$1 = function hasProto() {
|
|
87335
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
87336
|
-
};
|
|
86981
|
+
var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
|
|
87337
86982
|
var undefined$1;
|
|
87338
86983
|
var $SyntaxError = SyntaxError;
|
|
87339
86984
|
var $Function = Function;
|
|
@@ -87367,7 +87012,7 @@ var ThrowTypeError = $gOPD$1 ? function() {
|
|
|
87367
87012
|
}
|
|
87368
87013
|
}
|
|
87369
87014
|
}() : throwTypeError;
|
|
87370
|
-
var hasSymbols$1 = hasSymbols$
|
|
87015
|
+
var hasSymbols$1 = hasSymbols$2();
|
|
87371
87016
|
var hasProto2 = hasProto$1();
|
|
87372
87017
|
var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
|
|
87373
87018
|
return x2.__proto__;
|
|
@@ -87451,7 +87096,7 @@ if (getProto$1) {
|
|
|
87451
87096
|
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
87452
87097
|
}
|
|
87453
87098
|
}
|
|
87454
|
-
var
|
|
87099
|
+
var doEval = function doEval2(name2) {
|
|
87455
87100
|
var value;
|
|
87456
87101
|
if (name2 === "%AsyncFunction%") {
|
|
87457
87102
|
value = getEvalledConstructor("async function () {}");
|
|
@@ -87460,12 +87105,12 @@ var doEval2 = function doEval3(name2) {
|
|
|
87460
87105
|
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
87461
87106
|
value = getEvalledConstructor("async function* () {}");
|
|
87462
87107
|
} else if (name2 === "%AsyncGenerator%") {
|
|
87463
|
-
var fn =
|
|
87108
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
87464
87109
|
if (fn) {
|
|
87465
87110
|
value = fn.prototype;
|
|
87466
87111
|
}
|
|
87467
87112
|
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
87468
|
-
var gen =
|
|
87113
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
87469
87114
|
if (gen && getProto$1) {
|
|
87470
87115
|
value = getProto$1(gen.prototype);
|
|
87471
87116
|
}
|
|
@@ -87535,7 +87180,7 @@ var $strSlice = bind3.call(Function.call, String.prototype.slice);
|
|
|
87535
87180
|
var $exec$1 = bind3.call(Function.call, RegExp.prototype.exec);
|
|
87536
87181
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
87537
87182
|
var reEscapeChar = /\\(\\)?/g;
|
|
87538
|
-
var
|
|
87183
|
+
var stringToPath = function stringToPath2(string2) {
|
|
87539
87184
|
var first = $strSlice(string2, 0, 1);
|
|
87540
87185
|
var last = $strSlice(string2, -1);
|
|
87541
87186
|
if (first === "%" && last !== "%") {
|
|
@@ -87549,7 +87194,7 @@ var stringToPath2 = function stringToPath3(string2) {
|
|
|
87549
87194
|
});
|
|
87550
87195
|
return result;
|
|
87551
87196
|
};
|
|
87552
|
-
var
|
|
87197
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
|
|
87553
87198
|
var intrinsicName = name2;
|
|
87554
87199
|
var alias;
|
|
87555
87200
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
@@ -87559,7 +87204,7 @@ var getBaseIntrinsic2 = function getBaseIntrinsic3(name2, allowMissing) {
|
|
|
87559
87204
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
87560
87205
|
var value = INTRINSICS[intrinsicName];
|
|
87561
87206
|
if (value === needsEval) {
|
|
87562
|
-
value =
|
|
87207
|
+
value = doEval(intrinsicName);
|
|
87563
87208
|
}
|
|
87564
87209
|
if (typeof value === "undefined" && !allowMissing) {
|
|
87565
87210
|
throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
@@ -87572,7 +87217,7 @@ var getBaseIntrinsic2 = function getBaseIntrinsic3(name2, allowMissing) {
|
|
|
87572
87217
|
}
|
|
87573
87218
|
throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
|
|
87574
87219
|
};
|
|
87575
|
-
var getIntrinsic = function
|
|
87220
|
+
var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
87576
87221
|
if (typeof name2 !== "string" || name2.length === 0) {
|
|
87577
87222
|
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
87578
87223
|
}
|
|
@@ -87582,9 +87227,9 @@ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
|
|
|
87582
87227
|
if ($exec$1(/^%?[^%]*%?$/, name2) === null) {
|
|
87583
87228
|
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
87584
87229
|
}
|
|
87585
|
-
var parts =
|
|
87230
|
+
var parts = stringToPath(name2);
|
|
87586
87231
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
87587
|
-
var intrinsic =
|
|
87232
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
87588
87233
|
var intrinsicRealName = intrinsic.name;
|
|
87589
87234
|
var value = intrinsic.value;
|
|
87590
87235
|
var skipFurtherCaching = false;
|
|
@@ -87633,8 +87278,79 @@ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
|
|
|
87633
87278
|
}
|
|
87634
87279
|
return value;
|
|
87635
87280
|
};
|
|
87636
|
-
var
|
|
87637
|
-
|
|
87281
|
+
var callBind$3 = { exports: {} };
|
|
87282
|
+
(function(module2) {
|
|
87283
|
+
var bind4 = functionBind;
|
|
87284
|
+
var GetIntrinsic3 = getIntrinsic;
|
|
87285
|
+
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
87286
|
+
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
87287
|
+
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
87288
|
+
var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
|
|
87289
|
+
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
|
|
87290
|
+
var $max = GetIntrinsic3("%Math.max%");
|
|
87291
|
+
if ($defineProperty2) {
|
|
87292
|
+
try {
|
|
87293
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
87294
|
+
} catch (e3) {
|
|
87295
|
+
$defineProperty2 = null;
|
|
87296
|
+
}
|
|
87297
|
+
}
|
|
87298
|
+
module2.exports = function callBind2(originalFunction) {
|
|
87299
|
+
var func = $reflectApply(bind4, $call, arguments);
|
|
87300
|
+
if ($gOPD2 && $defineProperty2) {
|
|
87301
|
+
var desc = $gOPD2(func, "length");
|
|
87302
|
+
if (desc.configurable) {
|
|
87303
|
+
$defineProperty2(
|
|
87304
|
+
func,
|
|
87305
|
+
"length",
|
|
87306
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
87307
|
+
);
|
|
87308
|
+
}
|
|
87309
|
+
}
|
|
87310
|
+
return func;
|
|
87311
|
+
};
|
|
87312
|
+
var applyBind = function applyBind2() {
|
|
87313
|
+
return $reflectApply(bind4, $apply, arguments);
|
|
87314
|
+
};
|
|
87315
|
+
if ($defineProperty2) {
|
|
87316
|
+
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
87317
|
+
} else {
|
|
87318
|
+
module2.exports.apply = applyBind;
|
|
87319
|
+
}
|
|
87320
|
+
})(callBind$3);
|
|
87321
|
+
var callBindExports = callBind$3.exports;
|
|
87322
|
+
var GetIntrinsic$1 = getIntrinsic;
|
|
87323
|
+
var callBind$2 = callBindExports;
|
|
87324
|
+
var $indexOf = callBind$2(GetIntrinsic$1("String.prototype.indexOf"));
|
|
87325
|
+
var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
87326
|
+
var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
|
|
87327
|
+
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
87328
|
+
return callBind$2(intrinsic);
|
|
87329
|
+
}
|
|
87330
|
+
return intrinsic;
|
|
87331
|
+
};
|
|
87332
|
+
var hasToStringTag$2 = shams();
|
|
87333
|
+
var callBound$1 = callBound$2;
|
|
87334
|
+
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
87335
|
+
var isStandardArguments = function isArguments2(value) {
|
|
87336
|
+
if (hasToStringTag$2 && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
87337
|
+
return false;
|
|
87338
|
+
}
|
|
87339
|
+
return $toString$1(value) === "[object Arguments]";
|
|
87340
|
+
};
|
|
87341
|
+
var isLegacyArguments = function isArguments3(value) {
|
|
87342
|
+
if (isStandardArguments(value)) {
|
|
87343
|
+
return true;
|
|
87344
|
+
}
|
|
87345
|
+
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
|
|
87346
|
+
};
|
|
87347
|
+
var supportsStandardArguments = function() {
|
|
87348
|
+
return isStandardArguments(arguments);
|
|
87349
|
+
}();
|
|
87350
|
+
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
87351
|
+
var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
87352
|
+
var GetIntrinsic2 = getIntrinsic;
|
|
87353
|
+
var $defineProperty = GetIntrinsic2("%Object.defineProperty%", true);
|
|
87638
87354
|
var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
|
|
87639
87355
|
if ($defineProperty) {
|
|
87640
87356
|
try {
|
|
@@ -121236,16 +120952,16 @@ function addDecoder(cases, importFn) {
|
|
|
121236
120952
|
}
|
|
121237
120953
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
121238
120954
|
}
|
|
121239
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
121240
|
-
addDecoder(5, () => import("./lzw-
|
|
120955
|
+
addDecoder([void 0, 1], () => import("./raw-58aad486.js").then((m2) => m2.default));
|
|
120956
|
+
addDecoder(5, () => import("./lzw-ad66c72b.js").then((m2) => m2.default));
|
|
121241
120957
|
addDecoder(6, () => {
|
|
121242
120958
|
throw new Error("old style JPEG compression is not supported.");
|
|
121243
120959
|
});
|
|
121244
|
-
addDecoder(7, () => import("./jpeg-
|
|
121245
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
121246
|
-
addDecoder(32773, () => import("./packbits-
|
|
121247
|
-
addDecoder(34887, () => import("./lerc-
|
|
121248
|
-
addDecoder(50001, () => import("./webimage-
|
|
120960
|
+
addDecoder(7, () => import("./jpeg-07b73b88.js").then((m2) => m2.default));
|
|
120961
|
+
addDecoder([8, 32946], () => import("./deflate-2c31a4dd.js").then((m2) => m2.default));
|
|
120962
|
+
addDecoder(32773, () => import("./packbits-8c472a15.js").then((m2) => m2.default));
|
|
120963
|
+
addDecoder(34887, () => import("./lerc-8b917065.js").then((m2) => m2.default));
|
|
120964
|
+
addDecoder(50001, () => import("./webimage-adebb0c3.js").then((m2) => m2.default));
|
|
121249
120965
|
function decodeRowAcc(row, stride) {
|
|
121250
120966
|
let length2 = row.length - stride;
|
|
121251
120967
|
let offset5 = 0;
|
|
@@ -132129,16 +131845,8 @@ function _extends$2() {
|
|
|
132129
131845
|
};
|
|
132130
131846
|
return _extends$2.apply(this, arguments);
|
|
132131
131847
|
}
|
|
132132
|
-
function _typeof$1(obj) {
|
|
132133
|
-
"@babel/helpers - typeof";
|
|
132134
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
132135
|
-
return typeof obj2;
|
|
132136
|
-
} : function(obj2) {
|
|
132137
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
132138
|
-
}, _typeof$1(obj);
|
|
132139
|
-
}
|
|
132140
131848
|
function isPlainObject(item) {
|
|
132141
|
-
return item && _typeof$
|
|
131849
|
+
return item && _typeof$x(item) === "object" && item.constructor === Object;
|
|
132142
131850
|
}
|
|
132143
131851
|
function deepmerge(target, source) {
|
|
132144
131852
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
@@ -132913,7 +132621,7 @@ function elementTypeAcceptingRef(props2, propName, componentName, location, prop
|
|
|
132913
132621
|
const elementTypeAcceptingRef$1 = chainPropTypes(propTypesExports.elementType, elementTypeAcceptingRef);
|
|
132914
132622
|
var specialProperty = "exact-prop: ";
|
|
132915
132623
|
function exactProp(propTypes2) {
|
|
132916
|
-
return _extends$2({}, propTypes2, _defineProperty$
|
|
132624
|
+
return _extends$2({}, propTypes2, _defineProperty$f({}, specialProperty, function(props2) {
|
|
132917
132625
|
var unsupportedProps = Object.keys(props2).filter(function(prop) {
|
|
132918
132626
|
return !propTypes2.hasOwnProperty(prop);
|
|
132919
132627
|
});
|
|
@@ -133144,7 +132852,7 @@ function getDisplayName(Component2) {
|
|
|
133144
132852
|
if (typeof Component2 === "function") {
|
|
133145
132853
|
return getFunctionComponentName(Component2, "Component");
|
|
133146
132854
|
}
|
|
133147
|
-
if (_typeof$
|
|
132855
|
+
if (_typeof$x(Component2) === "object") {
|
|
133148
132856
|
switch (Component2.$$typeof) {
|
|
133149
132857
|
case reactIsExports.ForwardRef:
|
|
133150
132858
|
return getWrappedName(Component2, Component2.render, "ForwardRef");
|
|
@@ -133327,6 +133035,20 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
133327
133035
|
}
|
|
133328
133036
|
return target;
|
|
133329
133037
|
}
|
|
133038
|
+
function _extends$1() {
|
|
133039
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
133040
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
133041
|
+
var source = arguments[i2];
|
|
133042
|
+
for (var key in source) {
|
|
133043
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
133044
|
+
target[key] = source[key];
|
|
133045
|
+
}
|
|
133046
|
+
}
|
|
133047
|
+
}
|
|
133048
|
+
return target;
|
|
133049
|
+
};
|
|
133050
|
+
return _extends$1.apply(this, arguments);
|
|
133051
|
+
}
|
|
133330
133052
|
var keys2 = ["xs", "sm", "md", "lg", "xl"];
|
|
133331
133053
|
function createBreakpoints(breakpoints) {
|
|
133332
133054
|
var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
|
|
@@ -133369,7 +133091,7 @@ function createBreakpoints(breakpoints) {
|
|
|
133369
133091
|
}
|
|
133370
133092
|
return values2[key];
|
|
133371
133093
|
}
|
|
133372
|
-
return _extends$
|
|
133094
|
+
return _extends$1({
|
|
133373
133095
|
keys: keys2,
|
|
133374
133096
|
values: values2,
|
|
133375
133097
|
up,
|
|
@@ -133381,14 +133103,14 @@ function createBreakpoints(breakpoints) {
|
|
|
133381
133103
|
}
|
|
133382
133104
|
function createMixins(breakpoints, spacing, mixins) {
|
|
133383
133105
|
var _toolbar;
|
|
133384
|
-
return _extends$
|
|
133106
|
+
return _extends$1({
|
|
133385
133107
|
gutters: function gutters() {
|
|
133386
133108
|
var styles11 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
133387
133109
|
console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
|
|
133388
|
-
return _extends$
|
|
133110
|
+
return _extends$1({
|
|
133389
133111
|
paddingLeft: spacing(2),
|
|
133390
133112
|
paddingRight: spacing(2)
|
|
133391
|
-
}, styles11, _defineProperty$e({}, breakpoints.up("sm"), _extends$
|
|
133113
|
+
}, styles11, _defineProperty$e({}, breakpoints.up("sm"), _extends$1({
|
|
133392
133114
|
paddingLeft: spacing(3),
|
|
133393
133115
|
paddingRight: spacing(3)
|
|
133394
133116
|
}, styles11[breakpoints.up("sm")])));
|
|
@@ -133522,7 +133244,7 @@ function createPalette(palette) {
|
|
|
133522
133244
|
var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
|
|
133523
133245
|
var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
|
|
133524
133246
|
var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
133525
|
-
color2 = _extends$
|
|
133247
|
+
color2 = _extends$1({}, color2);
|
|
133526
133248
|
if (!color2.main && color2[mainShade]) {
|
|
133527
133249
|
color2.main = color2[mainShade];
|
|
133528
133250
|
}
|
|
@@ -133548,7 +133270,7 @@ function createPalette(palette) {
|
|
|
133548
133270
|
console.error("Material-UI: The palette type `".concat(type, "` is not supported."));
|
|
133549
133271
|
}
|
|
133550
133272
|
}
|
|
133551
|
-
var paletteOutput = deepmerge(_extends$
|
|
133273
|
+
var paletteOutput = deepmerge(_extends$1({
|
|
133552
133274
|
// A collection of common colors.
|
|
133553
133275
|
common: common$1,
|
|
133554
133276
|
// The palette type, can be light or dark.
|
|
@@ -133613,7 +133335,7 @@ function createTypography(palette, typography) {
|
|
|
133613
133335
|
return "".concat(size / htmlFontSize * coef, "rem");
|
|
133614
133336
|
};
|
|
133615
133337
|
var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
|
|
133616
|
-
return _extends$
|
|
133338
|
+
return _extends$1({
|
|
133617
133339
|
fontFamily,
|
|
133618
133340
|
fontWeight,
|
|
133619
133341
|
fontSize: pxToRem(size),
|
|
@@ -133638,7 +133360,7 @@ function createTypography(palette, typography) {
|
|
|
133638
133360
|
caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
|
|
133639
133361
|
overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
|
|
133640
133362
|
};
|
|
133641
|
-
return deepmerge(_extends$
|
|
133363
|
+
return deepmerge(_extends$1({
|
|
133642
133364
|
htmlFontSize,
|
|
133643
133365
|
pxToRem,
|
|
133644
133366
|
round: roundWithDeprecationWarning,
|
|
@@ -133703,6 +133425,14 @@ function _nonIterableSpread$1() {
|
|
|
133703
133425
|
function _toConsumableArray$1(arr) {
|
|
133704
133426
|
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
133705
133427
|
}
|
|
133428
|
+
function _typeof$1(obj) {
|
|
133429
|
+
"@babel/helpers - typeof";
|
|
133430
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
133431
|
+
return typeof obj2;
|
|
133432
|
+
} : function(obj2) {
|
|
133433
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
133434
|
+
}, _typeof$1(obj);
|
|
133435
|
+
}
|
|
133706
133436
|
function _arrayWithHoles(arr) {
|
|
133707
133437
|
if (Array.isArray(arr))
|
|
133708
133438
|
return arr;
|
|
@@ -134024,20 +133754,6 @@ function warning(condition, message) {
|
|
|
134024
133754
|
}
|
|
134025
133755
|
}
|
|
134026
133756
|
}
|
|
134027
|
-
function _extends$1() {
|
|
134028
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
134029
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
134030
|
-
var source = arguments[i2];
|
|
134031
|
-
for (var key in source) {
|
|
134032
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
134033
|
-
target[key] = source[key];
|
|
134034
|
-
}
|
|
134035
|
-
}
|
|
134036
|
-
}
|
|
134037
|
-
return target;
|
|
134038
|
-
};
|
|
134039
|
-
return _extends$1.apply(this, arguments);
|
|
134040
|
-
}
|
|
134041
133757
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
134042
133758
|
return typeof obj;
|
|
134043
133759
|
} : function(obj) {
|
|
@@ -134321,7 +134037,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
|
134321
134037
|
_proto2.toString = function toString2(options) {
|
|
134322
134038
|
var sheet = this.options.sheet;
|
|
134323
134039
|
var link2 = sheet ? sheet.options.link : false;
|
|
134324
|
-
var opts2 = link2 ? _extends$
|
|
134040
|
+
var opts2 = link2 ? _extends$2({}, options, {
|
|
134325
134041
|
allowEmpty: true
|
|
134326
134042
|
}) : options;
|
|
134327
134043
|
return toCss(this.selectorText, this.style, opts2);
|
|
@@ -134368,7 +134084,7 @@ var ConditionalRule = /* @__PURE__ */ function() {
|
|
|
134368
134084
|
this.at = atMatch ? atMatch[1] : "unknown";
|
|
134369
134085
|
this.query = options.name || "@" + this.at;
|
|
134370
134086
|
this.options = options;
|
|
134371
|
-
this.rules = new RuleList(_extends$
|
|
134087
|
+
this.rules = new RuleList(_extends$2({}, options, {
|
|
134372
134088
|
parent: this
|
|
134373
134089
|
}));
|
|
134374
134090
|
for (var name2 in styles11) {
|
|
@@ -134440,11 +134156,11 @@ var KeyframesRule = /* @__PURE__ */ function() {
|
|
|
134440
134156
|
this.options = options;
|
|
134441
134157
|
var scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
|
|
134442
134158
|
this.id = scoped === false ? this.name : escape(generateId(this, sheet));
|
|
134443
|
-
this.rules = new RuleList(_extends$
|
|
134159
|
+
this.rules = new RuleList(_extends$2({}, options, {
|
|
134444
134160
|
parent: this
|
|
134445
134161
|
}));
|
|
134446
134162
|
for (var name2 in frames) {
|
|
134447
|
-
this.rules.add(name2, frames[name2], _extends$
|
|
134163
|
+
this.rules.add(name2, frames[name2], _extends$2({}, options, {
|
|
134448
134164
|
parent: this
|
|
134449
134165
|
}));
|
|
134450
134166
|
}
|
|
@@ -134529,7 +134245,7 @@ var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
|
134529
134245
|
_proto.toString = function toString2(options) {
|
|
134530
134246
|
var sheet = this.options.sheet;
|
|
134531
134247
|
var link2 = sheet ? sheet.options.link : false;
|
|
134532
|
-
var opts2 = link2 ? _extends$
|
|
134248
|
+
var opts2 = link2 ? _extends$2({}, options, {
|
|
134533
134249
|
allowEmpty: true
|
|
134534
134250
|
}) : options;
|
|
134535
134251
|
return toCss(this.key, this.style, opts2);
|
|
@@ -134653,7 +134369,7 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
134653
134369
|
var _proto = RuleList2.prototype;
|
|
134654
134370
|
_proto.add = function add2(name2, decl, ruleOptions) {
|
|
134655
134371
|
var _this$options = this.options, parent = _this$options.parent, sheet = _this$options.sheet, jss2 = _this$options.jss, Renderer = _this$options.Renderer, generateId = _this$options.generateId, scoped = _this$options.scoped;
|
|
134656
|
-
var options = _extends$
|
|
134372
|
+
var options = _extends$2({
|
|
134657
134373
|
classes: this.classes,
|
|
134658
134374
|
parent,
|
|
134659
134375
|
sheet,
|
|
@@ -134689,7 +134405,7 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
134689
134405
|
}
|
|
134690
134406
|
var options = ruleOptions;
|
|
134691
134407
|
if (oldIndex !== -1)
|
|
134692
|
-
options = _extends$
|
|
134408
|
+
options = _extends$2({}, ruleOptions, {
|
|
134693
134409
|
index: oldIndex
|
|
134694
134410
|
});
|
|
134695
134411
|
return this.add(name2, decl, options);
|
|
@@ -134802,7 +134518,7 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
134802
134518
|
this.deployed = false;
|
|
134803
134519
|
this.classes = {};
|
|
134804
134520
|
this.keyframes = {};
|
|
134805
|
-
this.options = _extends$
|
|
134521
|
+
this.options = _extends$2({}, options, {
|
|
134806
134522
|
sheet: this,
|
|
134807
134523
|
parent: this,
|
|
134808
134524
|
classes: this.classes,
|
|
@@ -135421,7 +135137,7 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
135421
135137
|
this.options.createGenerateId = options.createGenerateId;
|
|
135422
135138
|
}
|
|
135423
135139
|
if (options.id) {
|
|
135424
|
-
this.options.id = _extends$
|
|
135140
|
+
this.options.id = _extends$2({}, this.options.id, options.id);
|
|
135425
135141
|
}
|
|
135426
135142
|
if (options.createGenerateId || options.id) {
|
|
135427
135143
|
this.generateId = this.options.createGenerateId(this.options.id);
|
|
@@ -135443,7 +135159,7 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
135443
135159
|
if (typeof index2 !== "number") {
|
|
135444
135160
|
index2 = sheets.index === 0 ? 0 : sheets.index + 1;
|
|
135445
135161
|
}
|
|
135446
|
-
var sheet = new StyleSheet(styles11, _extends$
|
|
135162
|
+
var sheet = new StyleSheet(styles11, _extends$2({}, options, {
|
|
135447
135163
|
jss: this,
|
|
135448
135164
|
generateId: options.generateId || this.generateId,
|
|
135449
135165
|
insertionPoint: this.options.insertionPoint,
|
|
@@ -135468,7 +135184,7 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
135468
135184
|
if (typeof name2 === "object") {
|
|
135469
135185
|
return this.createRule(void 0, name2, style);
|
|
135470
135186
|
}
|
|
135471
|
-
var ruleOptions = _extends$
|
|
135187
|
+
var ruleOptions = _extends$2({}, options, {
|
|
135472
135188
|
name: name2,
|
|
135473
135189
|
jss: this,
|
|
135474
135190
|
Renderer: this.options.Renderer
|
|
@@ -135579,7 +135295,7 @@ var GlobalContainerRule = /* @__PURE__ */ function() {
|
|
|
135579
135295
|
this.isProcessed = false;
|
|
135580
135296
|
this.key = key;
|
|
135581
135297
|
this.options = options;
|
|
135582
|
-
this.rules = new RuleList(_extends$
|
|
135298
|
+
this.rules = new RuleList(_extends$1({}, options, {
|
|
135583
135299
|
parent: this
|
|
135584
135300
|
}));
|
|
135585
135301
|
for (var selector2 in styles11) {
|
|
@@ -135619,7 +135335,7 @@ var GlobalPrefixedRule = /* @__PURE__ */ function() {
|
|
|
135619
135335
|
this.key = key;
|
|
135620
135336
|
this.options = options;
|
|
135621
135337
|
var selector2 = key.substr(atPrefix.length);
|
|
135622
|
-
this.rule = options.jss.createRule(selector2, style, _extends$
|
|
135338
|
+
this.rule = options.jss.createRule(selector2, style, _extends$1({}, options, {
|
|
135623
135339
|
parent: this
|
|
135624
135340
|
}));
|
|
135625
135341
|
}
|
|
@@ -135646,7 +135362,7 @@ function handleNestedGlobalContainerRule(rule, sheet) {
|
|
|
135646
135362
|
if (!rules)
|
|
135647
135363
|
return;
|
|
135648
135364
|
for (var name2 in rules) {
|
|
135649
|
-
sheet.addRule(name2, rules[name2], _extends$
|
|
135365
|
+
sheet.addRule(name2, rules[name2], _extends$1({}, options, {
|
|
135650
135366
|
selector: addScope(name2, rule.selector)
|
|
135651
135367
|
}));
|
|
135652
135368
|
}
|
|
@@ -135658,7 +135374,7 @@ function handlePrefixedGlobalRule(rule, sheet) {
|
|
|
135658
135374
|
if (prop[0] !== "@" || prop.substr(0, at.length) !== at)
|
|
135659
135375
|
continue;
|
|
135660
135376
|
var selector2 = addScope(prop.substr(at.length), rule.selector);
|
|
135661
|
-
sheet.addRule(selector2, style[prop], _extends$
|
|
135377
|
+
sheet.addRule(selector2, style[prop], _extends$1({}, options, {
|
|
135662
135378
|
selector: selector2
|
|
135663
135379
|
}));
|
|
135664
135380
|
delete style[prop];
|
|
@@ -135727,12 +135443,12 @@ function jssNested() {
|
|
|
135727
135443
|
}
|
|
135728
135444
|
function getOptions(rule, container, prevOptions) {
|
|
135729
135445
|
if (prevOptions)
|
|
135730
|
-
return _extends$
|
|
135446
|
+
return _extends$2({}, prevOptions, {
|
|
135731
135447
|
index: prevOptions.index + 1
|
|
135732
135448
|
});
|
|
135733
135449
|
var nestingLevel = rule.options.nestingLevel;
|
|
135734
135450
|
nestingLevel = nestingLevel === void 0 ? 1 : nestingLevel + 1;
|
|
135735
|
-
var options = _extends$
|
|
135451
|
+
var options = _extends$2({}, rule.options, {
|
|
135736
135452
|
nestingLevel,
|
|
135737
135453
|
index: container.indexOf(rule) + 1
|
|
135738
135454
|
// We don't need the parent name to be set options for chlid.
|
|
@@ -135760,11 +135476,11 @@ function jssNested() {
|
|
|
135760
135476
|
selector2 = selector2.replace(refRegExp, replaceRef3);
|
|
135761
135477
|
var name2 = styleRule.key + "-" + prop;
|
|
135762
135478
|
if ("replaceRule" in container) {
|
|
135763
|
-
container.replaceRule(name2, style[prop], _extends$
|
|
135479
|
+
container.replaceRule(name2, style[prop], _extends$2({}, options, {
|
|
135764
135480
|
selector: selector2
|
|
135765
135481
|
}));
|
|
135766
135482
|
} else {
|
|
135767
|
-
container.addRule(name2, style[prop], _extends$
|
|
135483
|
+
container.addRule(name2, style[prop], _extends$2({}, options, {
|
|
135768
135484
|
selector: selector2
|
|
135769
135485
|
}));
|
|
135770
135486
|
}
|
|
@@ -136534,7 +136250,7 @@ function mergeClasses() {
|
|
|
136534
136250
|
if (!newClasses) {
|
|
136535
136251
|
return baseClasses;
|
|
136536
136252
|
}
|
|
136537
|
-
var nextClasses = _extends$
|
|
136253
|
+
var nextClasses = _extends$1({}, baseClasses);
|
|
136538
136254
|
{
|
|
136539
136255
|
if (typeof newClasses === "string") {
|
|
136540
136256
|
console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component2), " is incorrect."), "You might want to use the className prop instead."].join("\n"));
|
|
@@ -136606,7 +136322,7 @@ var injectFirstNode;
|
|
|
136606
136322
|
function StylesProvider(props2) {
|
|
136607
136323
|
var children2 = props2.children, _props$injectFirst = props2.injectFirst, injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, _props$disableGenerat = props2.disableGeneration, disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, localOptions = _objectWithoutProperties(props2, ["children", "injectFirst", "disableGeneration"]);
|
|
136608
136324
|
var outerOptions = React__default.useContext(StylesContext);
|
|
136609
|
-
var context = _extends$
|
|
136325
|
+
var context = _extends$1({}, outerOptions, {
|
|
136610
136326
|
disableGeneration
|
|
136611
136327
|
}, localOptions);
|
|
136612
136328
|
{
|
|
@@ -136732,7 +136448,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
136732
136448
|
return styles11;
|
|
136733
136449
|
}
|
|
136734
136450
|
var overrides = theme.overrides[name2];
|
|
136735
|
-
var stylesWithOverrides = _extends$
|
|
136451
|
+
var stylesWithOverrides = _extends$1({}, styles11);
|
|
136736
136452
|
Object.keys(overrides).forEach(function(key) {
|
|
136737
136453
|
{
|
|
136738
136454
|
if (!stylesWithOverrides[key]) {
|
|
@@ -136793,7 +136509,7 @@ function attach(_ref2, props2) {
|
|
|
136793
136509
|
};
|
|
136794
136510
|
multiKeyStore$1.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
|
|
136795
136511
|
}
|
|
136796
|
-
var options = _extends$
|
|
136512
|
+
var options = _extends$1({}, stylesCreator.options, stylesOptions, {
|
|
136797
136513
|
theme,
|
|
136798
136514
|
flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
|
|
136799
136515
|
});
|
|
@@ -136806,7 +136522,7 @@ function attach(_ref2, props2) {
|
|
|
136806
136522
|
}
|
|
136807
136523
|
var styles11 = stylesCreator.create(theme, name2);
|
|
136808
136524
|
if (!staticSheet) {
|
|
136809
|
-
staticSheet = stylesOptions.jss.createStyleSheet(styles11, _extends$
|
|
136525
|
+
staticSheet = stylesOptions.jss.createStyleSheet(styles11, _extends$1({
|
|
136810
136526
|
link: false
|
|
136811
136527
|
}, options));
|
|
136812
136528
|
staticSheet.attach();
|
|
@@ -136821,7 +136537,7 @@ function attach(_ref2, props2) {
|
|
|
136821
136537
|
sheetManager.dynamicStyles = getDynamicStyles(styles11);
|
|
136822
136538
|
}
|
|
136823
136539
|
if (sheetManager.dynamicStyles) {
|
|
136824
|
-
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$
|
|
136540
|
+
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$1({
|
|
136825
136541
|
link: true
|
|
136826
136542
|
}, options));
|
|
136827
136543
|
dynamicSheet.update(props2);
|
|
@@ -136903,7 +136619,7 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
136903
136619
|
var useStyles2 = function useStyles3() {
|
|
136904
136620
|
var props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
136905
136621
|
var theme = useTheme$1() || defaultTheme2;
|
|
136906
|
-
var stylesOptions = _extends$
|
|
136622
|
+
var stylesOptions = _extends$1({}, React__default.useContext(StylesContext), stylesOptions2);
|
|
136907
136623
|
var instance = React__default.useRef();
|
|
136908
136624
|
var shouldUpdate = React__default.useRef();
|
|
136909
136625
|
useSynchronousEffect(function() {
|
|
@@ -137035,7 +136751,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
137035
136751
|
}
|
|
137036
136752
|
}
|
|
137037
136753
|
}
|
|
137038
|
-
var useStyles2 = makeStyles$1(stylesOrCreator, _extends$
|
|
136754
|
+
var useStyles2 = makeStyles$1(stylesOrCreator, _extends$1({
|
|
137039
136755
|
defaultTheme: defaultTheme2,
|
|
137040
136756
|
Component: Component2,
|
|
137041
136757
|
name: name2 || Component2.displayName,
|
|
@@ -137044,7 +136760,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
137044
136760
|
var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props2, ref) {
|
|
137045
136761
|
props2.classes;
|
|
137046
136762
|
var innerRef = props2.innerRef, other = _objectWithoutProperties(props2, ["classes", "innerRef"]);
|
|
137047
|
-
var classes = useStyles2(_extends$
|
|
136763
|
+
var classes = useStyles2(_extends$1({}, Component2.defaultProps, props2));
|
|
137048
136764
|
var theme;
|
|
137049
136765
|
var more = other;
|
|
137050
136766
|
if (typeof name2 === "string" || withTheme) {
|
|
@@ -137060,7 +136776,7 @@ var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
|
137060
136776
|
more.theme = theme;
|
|
137061
136777
|
}
|
|
137062
136778
|
}
|
|
137063
|
-
return /* @__PURE__ */ React__default.createElement(Component2, _extends$
|
|
136779
|
+
return /* @__PURE__ */ React__default.createElement(Component2, _extends$1({
|
|
137064
136780
|
ref: innerRef || ref,
|
|
137065
136781
|
classes
|
|
137066
136782
|
}, more));
|
|
@@ -137098,7 +136814,7 @@ var defaultTheme = createTheme();
|
|
|
137098
136814
|
const defaultTheme$1 = defaultTheme;
|
|
137099
136815
|
function makeStyles(stylesOrCreator) {
|
|
137100
136816
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
137101
|
-
return makeStyles$1(stylesOrCreator, _extends$
|
|
136817
|
+
return makeStyles$1(stylesOrCreator, _extends$1({
|
|
137102
136818
|
defaultTheme: defaultTheme$1
|
|
137103
136819
|
}, options));
|
|
137104
136820
|
}
|
|
@@ -137110,7 +136826,7 @@ function useTheme() {
|
|
|
137110
136826
|
return theme;
|
|
137111
136827
|
}
|
|
137112
136828
|
function withStyles2(stylesOrCreator, options) {
|
|
137113
|
-
return withStylesWithoutDefault(stylesOrCreator, _extends$
|
|
136829
|
+
return withStylesWithoutDefault(stylesOrCreator, _extends$1({
|
|
137114
136830
|
defaultTheme: defaultTheme$1
|
|
137115
136831
|
}, options));
|
|
137116
136832
|
}
|
|
@@ -137194,7 +136910,7 @@ var styles$b = function styles(theme) {
|
|
|
137194
136910
|
};
|
|
137195
136911
|
var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props2, ref) {
|
|
137196
136912
|
var children2 = props2.children, classes = props2.classes, className = props2.className, _props$color = props2.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props2.component, Component2 = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props2.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props2.htmlColor, titleAccess = props2.titleAccess, _props$viewBox = props2.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props2, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
|
137197
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
136913
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$1({
|
|
137198
136914
|
className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize(color2))], fontSize !== "default" && fontSize !== "medium" && classes["fontSize".concat(capitalize(fontSize))]),
|
|
137199
136915
|
focusable: "false",
|
|
137200
136916
|
viewBox,
|
|
@@ -137272,7 +136988,7 @@ const SvgIcon$1 = withStyles2(styles$b, {
|
|
|
137272
136988
|
})(SvgIcon);
|
|
137273
136989
|
function createSvgIcon(path, displayName) {
|
|
137274
136990
|
var Component2 = function Component3(props2, ref) {
|
|
137275
|
-
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$
|
|
136991
|
+
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$1({
|
|
137276
136992
|
ref
|
|
137277
136993
|
}, props2), path);
|
|
137278
136994
|
};
|
|
@@ -137600,7 +137316,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
137600
137316
|
}
|
|
137601
137317
|
if (this.mounted) {
|
|
137602
137318
|
this.setState(function(state) {
|
|
137603
|
-
var children2 = _extends$
|
|
137319
|
+
var children2 = _extends$1({}, state.children);
|
|
137604
137320
|
delete children2[child2.key];
|
|
137605
137321
|
return {
|
|
137606
137322
|
children: children2
|
|
@@ -137688,7 +137404,7 @@ var styles$a = function styles2(theme) {
|
|
|
137688
137404
|
boxShadow: shadow2
|
|
137689
137405
|
};
|
|
137690
137406
|
});
|
|
137691
|
-
return _extends$
|
|
137407
|
+
return _extends$1({
|
|
137692
137408
|
/* Styles applied to the root element. */
|
|
137693
137409
|
root: {
|
|
137694
137410
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -137707,7 +137423,7 @@ var styles$a = function styles2(theme) {
|
|
|
137707
137423
|
};
|
|
137708
137424
|
var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props2, ref) {
|
|
137709
137425
|
var classes = props2.classes, className = props2.className, _props$component = props2.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$square = props2.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props2.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props2.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props2, ["classes", "className", "component", "square", "elevation", "variant"]);
|
|
137710
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
137426
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$1({
|
|
137711
137427
|
className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
|
|
137712
137428
|
ref
|
|
137713
137429
|
}, other));
|
|
@@ -138046,7 +137762,7 @@ var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props2,
|
|
|
138046
137762
|
stop
|
|
138047
137763
|
};
|
|
138048
137764
|
}, [pulsate, start, stop]);
|
|
138049
|
-
return /* @__PURE__ */ React.createElement("span", _extends$
|
|
137765
|
+
return /* @__PURE__ */ React.createElement("span", _extends$1({
|
|
138050
137766
|
className: clsx(classes.root, className),
|
|
138051
137767
|
ref: container
|
|
138052
137768
|
}, other), /* @__PURE__ */ React.createElement(TransitionGroup$1, {
|
|
@@ -138265,7 +137981,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props2, r
|
|
|
138265
137981
|
}
|
|
138266
137982
|
}, [enableTouchRipple]);
|
|
138267
137983
|
}
|
|
138268
|
-
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$
|
|
137984
|
+
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$1({
|
|
138269
137985
|
className: clsx(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled),
|
|
138270
137986
|
onBlur: handleBlur,
|
|
138271
137987
|
onClick,
|
|
@@ -138283,7 +137999,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props2, r
|
|
|
138283
137999
|
tabIndex: disabled ? -1 : tabIndex
|
|
138284
138000
|
}, buttonProps, other), children2, enableTouchRipple ? (
|
|
138285
138001
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
138286
|
-
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$
|
|
138002
|
+
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$1({
|
|
138287
138003
|
ref: rippleRef,
|
|
138288
138004
|
center: centerRipple
|
|
138289
138005
|
}, TouchRippleProps))
|
|
@@ -138515,7 +138231,7 @@ var styles$7 = function styles4(theme) {
|
|
|
138515
138231
|
};
|
|
138516
138232
|
var IconButton$1 = /* @__PURE__ */ React.forwardRef(function IconButton(props2, ref) {
|
|
138517
138233
|
var _props$edge = props2.edge, edge = _props$edge === void 0 ? false : _props$edge, children2 = props2.children, classes = props2.classes, className = props2.className, _props$color = props2.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$disabled = props2.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props2.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props2.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props2, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
|
138518
|
-
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$
|
|
138234
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$1({
|
|
138519
138235
|
className: clsx(classes.root, className, color2 !== "default" && classes["color".concat(capitalize(color2))], disabled && classes.disabled, size === "small" && classes["size".concat(capitalize(size))], {
|
|
138520
138236
|
"start": classes.edgeStart,
|
|
138521
138237
|
"end": classes.edgeEnd
|
|
@@ -138648,7 +138364,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props2, r
|
|
|
138648
138364
|
}
|
|
138649
138365
|
}
|
|
138650
138366
|
var hasLabelFor = type === "checkbox" || type === "radio";
|
|
138651
|
-
return /* @__PURE__ */ React.createElement(IconButton$2, _extends$
|
|
138367
|
+
return /* @__PURE__ */ React.createElement(IconButton$2, _extends$1({
|
|
138652
138368
|
component: "span",
|
|
138653
138369
|
className: clsx(classes.root, className, checked && classes.checked, disabled && classes.disabled),
|
|
138654
138370
|
disabled,
|
|
@@ -138657,7 +138373,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props2, r
|
|
|
138657
138373
|
onFocus: handleFocus,
|
|
138658
138374
|
onBlur: handleBlur,
|
|
138659
138375
|
ref
|
|
138660
|
-
}, other), /* @__PURE__ */ React.createElement("input", _extends$
|
|
138376
|
+
}, other), /* @__PURE__ */ React.createElement("input", _extends$1({
|
|
138661
138377
|
autoFocus,
|
|
138662
138378
|
checked: checkedProp,
|
|
138663
138379
|
defaultChecked,
|
|
@@ -138826,7 +138542,7 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props2, ref)
|
|
|
138826
138542
|
var _props$checkedIcon = props2.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon : _props$checkedIcon, classes = props2.classes, _props$color = props2.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props2.icon, iconProp = _props$icon === void 0 ? defaultIcon : _props$icon, _props$indeterminate = props2.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props2.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props2.inputProps, _props$size = props2.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props2, ["checkedIcon", "classes", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"]);
|
|
138827
138543
|
var icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
138828
138544
|
var indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
138829
|
-
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$
|
|
138545
|
+
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$1({
|
|
138830
138546
|
type: "checkbox",
|
|
138831
138547
|
classes: {
|
|
138832
138548
|
root: clsx(classes.root, classes["color".concat(capitalize(color2))], indeterminate && classes.indeterminate),
|
|
@@ -138834,7 +138550,7 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props2, ref)
|
|
|
138834
138550
|
disabled: classes.disabled
|
|
138835
138551
|
},
|
|
138836
138552
|
color: color2,
|
|
138837
|
-
inputProps: _extends$
|
|
138553
|
+
inputProps: _extends$1({
|
|
138838
138554
|
"data-indeterminate": indeterminate
|
|
138839
138555
|
}, inputProps),
|
|
138840
138556
|
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
@@ -140606,10 +140322,10 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props2, ref) {
|
|
|
140606
140322
|
}
|
|
140607
140323
|
}
|
|
140608
140324
|
}
|
|
140609
|
-
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$
|
|
140325
|
+
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$1({
|
|
140610
140326
|
placement: rtlPlacement
|
|
140611
140327
|
}, popperOptions, {
|
|
140612
|
-
modifiers: _extends$
|
|
140328
|
+
modifiers: _extends$1({}, disablePortal ? {} : {
|
|
140613
140329
|
// It's using scrollParent by default, we can use the viewport when using a portal.
|
|
140614
140330
|
preventOverflow: {
|
|
140615
140331
|
boundariesElement: "window"
|
|
@@ -140666,11 +140382,11 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props2, ref) {
|
|
|
140666
140382
|
return /* @__PURE__ */ React.createElement(Portal$1, {
|
|
140667
140383
|
disablePortal,
|
|
140668
140384
|
container
|
|
140669
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
140385
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$1({
|
|
140670
140386
|
ref: handleRef,
|
|
140671
140387
|
role: "tooltip"
|
|
140672
140388
|
}, other, {
|
|
140673
|
-
style: _extends$
|
|
140389
|
+
style: _extends$1({
|
|
140674
140390
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
140675
140391
|
position: "fixed",
|
|
140676
140392
|
// Fix Popper.js display issue
|
|
@@ -140774,7 +140490,7 @@ var styles$4 = function styles6(theme) {
|
|
|
140774
140490
|
}
|
|
140775
140491
|
},
|
|
140776
140492
|
open: {},
|
|
140777
|
-
offset: _extends$
|
|
140493
|
+
offset: _extends$1({
|
|
140778
140494
|
zIndex: 1
|
|
140779
140495
|
}, theme.typography.body2, {
|
|
140780
140496
|
fontSize: theme.typography.pxToRem(12),
|
|
@@ -141125,7 +140841,7 @@ var styles$3 = function styles7(theme) {
|
|
|
141125
140841
|
opacity: 0.8
|
|
141126
140842
|
},
|
|
141127
140843
|
/* Styles applied to the mark label element. */
|
|
141128
|
-
markLabel: _extends$
|
|
140844
|
+
markLabel: _extends$1({}, theme.typography.body2, {
|
|
141129
140845
|
color: theme.palette.text.secondary,
|
|
141130
140846
|
position: "absolute",
|
|
141131
140847
|
top: 26,
|
|
@@ -141431,8 +141147,8 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props2, ref) {
|
|
|
141431
141147
|
});
|
|
141432
141148
|
var trackOffset = valueToPercent(range2 ? values2[0] : min, min, max);
|
|
141433
141149
|
var trackLeap = valueToPercent(values2[values2.length - 1], min, max) - trackOffset;
|
|
141434
|
-
var trackStyle = _extends$
|
|
141435
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
141150
|
+
var trackStyle = _extends$1({}, axisProps[axis2].offset(trackOffset), axisProps[axis2].leap(trackLeap));
|
|
141151
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$1({
|
|
141436
141152
|
ref: handleRef,
|
|
141437
141153
|
className: clsx(classes.root, classes["color".concat(capitalize(color2))], className, disabled && classes.disabled, marks.length > 0 && marks.some(function(mark) {
|
|
141438
141154
|
return mark.label;
|
|
@@ -141676,7 +141392,7 @@ const Tablelvl2Context$1 = Tablelvl2Context;
|
|
|
141676
141392
|
var styles$2 = function styles8(theme) {
|
|
141677
141393
|
return {
|
|
141678
141394
|
/* Styles applied to the root element. */
|
|
141679
|
-
root: _extends$
|
|
141395
|
+
root: _extends$1({}, theme.typography.body2, {
|
|
141680
141396
|
display: "table-cell",
|
|
141681
141397
|
verticalAlign: "inherit",
|
|
141682
141398
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
@@ -141788,7 +141504,7 @@ var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props2, ref
|
|
|
141788
141504
|
if (sortDirection) {
|
|
141789
141505
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
141790
141506
|
}
|
|
141791
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
141507
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$1({
|
|
141792
141508
|
ref,
|
|
141793
141509
|
className: clsx(classes.root, classes[variant], className, align !== "inherit" && classes["align".concat(capitalize(align))], padding !== "normal" && classes["padding".concat(capitalize(padding))], size !== "medium" && classes["size".concat(capitalize(size))], variant === "head" && table && table.stickyHeader && classes.stickyHeader),
|
|
141794
141510
|
"aria-sort": ariaSort,
|
|
@@ -141885,7 +141601,7 @@ var defaultComponent = "tr";
|
|
|
141885
141601
|
var TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(props2, ref) {
|
|
141886
141602
|
var classes = props2.classes, className = props2.className, _props$component = props2.component, Component2 = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props2.hover, hover = _props$hover === void 0 ? false : _props$hover, _props$selected = props2.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props2, ["classes", "className", "component", "hover", "selected"]);
|
|
141887
141603
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
141888
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
141604
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$1({
|
|
141889
141605
|
ref,
|
|
141890
141606
|
className: clsx(classes.root, className, tablelvl2 && {
|
|
141891
141607
|
"head": classes.head,
|
|
@@ -141929,7 +141645,7 @@ const CenterFocusStrong = createSvgIcon(/* @__PURE__ */ React.createElement("pat
|
|
|
141929
141645
|
d: "M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"
|
|
141930
141646
|
}), "CenterFocusStrong");
|
|
141931
141647
|
const useStyles$2 = makeStyles(() => ({
|
|
141932
|
-
|
|
141648
|
+
toolButton: {
|
|
141933
141649
|
display: "inline-flex",
|
|
141934
141650
|
"&:active": {
|
|
141935
141651
|
opacity: ".65",
|
|
@@ -141952,7 +141668,7 @@ const useStyles$2 = makeStyles(() => ({
|
|
|
141952
141668
|
transform: "scale(0.98)"
|
|
141953
141669
|
// make the button slightly smaller
|
|
141954
141670
|
},
|
|
141955
|
-
|
|
141671
|
+
toolIcon: {
|
|
141956
141672
|
// btn btn-outline-secondary mr-2 icon
|
|
141957
141673
|
padding: "0",
|
|
141958
141674
|
height: "2em",
|
|
@@ -141990,12 +141706,12 @@ const useStyles$2 = makeStyles(() => ({
|
|
|
141990
141706
|
function IconTool(props2) {
|
|
141991
141707
|
const { alt, onClick, isActive, children: children2 } = props2;
|
|
141992
141708
|
const classes = useStyles$2();
|
|
141993
|
-
return jsxRuntimeExports.jsx("button", { className: clsx(classes.
|
|
141709
|
+
return jsxRuntimeExports.jsx("button", { className: clsx(classes.toolIcon, { [classes.toolActive]: isActive }), onClick, type: "button", title: alt, children: children2 });
|
|
141994
141710
|
}
|
|
141995
141711
|
function IconButton2(props2) {
|
|
141996
141712
|
const { alt, onClick, children: children2 } = props2;
|
|
141997
141713
|
const classes = useStyles$2();
|
|
141998
|
-
return jsxRuntimeExports.jsx("button", { className: clsx(classes.
|
|
141714
|
+
return jsxRuntimeExports.jsx("button", { className: clsx(classes.toolIcon, classes.toolButton), onClick, type: "button", title: alt, children: children2 });
|
|
141999
141715
|
}
|
|
142000
141716
|
function ToolMenu(props2) {
|
|
142001
141717
|
const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
|
|
@@ -142099,7 +141815,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
142099
141815
|
// eslint-disable-next-line consistent-return
|
|
142100
141816
|
onHover(info) {
|
|
142101
141817
|
const { coordinate, sourceLayer: layer, tile } = info;
|
|
142102
|
-
const { setCellHighlight, cellHighlight, setComponentHover, layers } = this.props;
|
|
141818
|
+
const { setCellHighlight, cellHighlight, setComponentHover, layers, setHoverInfo } = this.props;
|
|
142103
141819
|
const hasBitmask = (layers || []).some((l2) => l2.type === "bitmask");
|
|
142104
141820
|
if (!setCellHighlight || !tile) {
|
|
142105
141821
|
return null;
|
|
@@ -142108,6 +141824,9 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
142108
141824
|
if (cellHighlight && hasBitmask) {
|
|
142109
141825
|
setCellHighlight(null);
|
|
142110
141826
|
}
|
|
141827
|
+
if (setHoverInfo) {
|
|
141828
|
+
setHoverInfo(null, null);
|
|
141829
|
+
}
|
|
142111
141830
|
return null;
|
|
142112
141831
|
}
|
|
142113
141832
|
const { content, bbox: bbox2, index: { z: z2 } } = tile;
|
|
@@ -142115,6 +141834,9 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
142115
141834
|
if (cellHighlight && hasBitmask) {
|
|
142116
141835
|
setCellHighlight(null);
|
|
142117
141836
|
}
|
|
141837
|
+
if (setHoverInfo) {
|
|
141838
|
+
setHoverInfo(null, null);
|
|
141839
|
+
}
|
|
142118
141840
|
return null;
|
|
142119
141841
|
}
|
|
142120
141842
|
const { data, width, height } = content;
|
|
@@ -142146,6 +141868,13 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
142146
141868
|
}
|
|
142147
141869
|
setCellHighlight(cellId ? String(cellId) : null);
|
|
142148
141870
|
}
|
|
141871
|
+
if (setHoverInfo) {
|
|
141872
|
+
if (cellId) {
|
|
141873
|
+
setHoverInfo(hoverData, coordinate);
|
|
141874
|
+
} else {
|
|
141875
|
+
setHoverInfo(null, null);
|
|
141876
|
+
}
|
|
141877
|
+
}
|
|
142149
141878
|
}
|
|
142150
141879
|
}
|
|
142151
141880
|
/**
|
|
@@ -142160,7 +141889,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
142160
141889
|
if (updateViewInfo && viewport) {
|
|
142161
141890
|
updateViewInfo({
|
|
142162
141891
|
uuid,
|
|
142163
|
-
project:
|
|
141892
|
+
project: viewport.project,
|
|
141893
|
+
projectFromId: (obsId) => {
|
|
142164
141894
|
try {
|
|
142165
141895
|
if (obsIndex && obsLocations) {
|
|
142166
141896
|
const getObsCoords = makeGetObsCoords(obsLocations);
|
|
@@ -142775,7 +142505,7 @@ function ScatterplotTooltipSubscriber(props2) {
|
|
|
142775
142505
|
const viewInfo = useComponentViewInfo(parentUuid);
|
|
142776
142506
|
const [cellInfo, x2, y2] = obsHighlight && getObsInfo ? [
|
|
142777
142507
|
getObsInfo(obsHighlight),
|
|
142778
|
-
...viewInfo && viewInfo.
|
|
142508
|
+
...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight) : [null, null]
|
|
142779
142509
|
] : [null, null, null];
|
|
142780
142510
|
return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width, parentHeight: height, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
|
|
142781
142511
|
}
|
|
@@ -144802,31 +144532,39 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144802
144532
|
setFeatureValueColormapRange: setGeneExpressionColormapRange,
|
|
144803
144533
|
setTooltipsVisible
|
|
144804
144534
|
}] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$1.SCATTERPLOT], coordinationScopes);
|
|
144535
|
+
const {
|
|
144536
|
+
embeddingZoom: initialZoom,
|
|
144537
|
+
embeddingTargetX: initialTargetX,
|
|
144538
|
+
embeddingTargetY: initialTargetY
|
|
144539
|
+
} = useInitialCoordination(
|
|
144540
|
+
COMPONENT_COORDINATION_TYPES[ViewType$1.SCATTERPLOT],
|
|
144541
|
+
coordinationScopes
|
|
144542
|
+
);
|
|
144805
144543
|
const observationsLabel = observationsLabelOverride || obsType;
|
|
144806
|
-
const [urls, addUrl] = useUrls(loaders, dataset);
|
|
144807
144544
|
const [width, height, deckRef] = useDeckCanvasSize();
|
|
144808
144545
|
const title = titleOverride || `Scatterplot (${mapping})`;
|
|
144809
144546
|
const [obsLabelsTypes, obsLabelsData] = useMultiObsLabels(
|
|
144810
144547
|
coordinationScopes,
|
|
144811
144548
|
obsType,
|
|
144812
144549
|
loaders,
|
|
144813
|
-
dataset
|
|
144814
|
-
addUrl
|
|
144550
|
+
dataset
|
|
144815
144551
|
);
|
|
144816
|
-
const [
|
|
144552
|
+
const [
|
|
144553
|
+
{ obsIndex: obsEmbeddingIndex, obsEmbedding },
|
|
144554
|
+
obsEmbeddingStatus,
|
|
144555
|
+
obsEmbeddingUrls
|
|
144556
|
+
] = useObsEmbeddingData(
|
|
144817
144557
|
loaders,
|
|
144818
144558
|
dataset,
|
|
144819
|
-
addUrl,
|
|
144820
144559
|
true,
|
|
144821
144560
|
{},
|
|
144822
144561
|
{},
|
|
144823
144562
|
{ obsType, embeddingType: mapping }
|
|
144824
144563
|
);
|
|
144825
144564
|
const cellsCount = (obsEmbeddingIndex == null ? void 0 : obsEmbeddingIndex.length) || 0;
|
|
144826
|
-
const [{ obsSets: cellSets, obsSetsMembership }, obsSetsStatus] = useObsSetsData(
|
|
144565
|
+
const [{ obsSets: cellSets, obsSetsMembership }, obsSetsStatus, obsSetsUrls] = useObsSetsData(
|
|
144827
144566
|
loaders,
|
|
144828
144567
|
dataset,
|
|
144829
|
-
addUrl,
|
|
144830
144568
|
false,
|
|
144831
144569
|
{ setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor },
|
|
144832
144570
|
{ obsSetSelection: cellSetSelection, obsSetColor: cellSetColor },
|
|
@@ -144839,17 +144577,19 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144839
144577
|
geneSelection,
|
|
144840
144578
|
{ obsType, featureType, featureValueType }
|
|
144841
144579
|
);
|
|
144842
|
-
const [
|
|
144580
|
+
const [
|
|
144581
|
+
{ obsIndex: matrixObsIndex },
|
|
144582
|
+
matrixIndicesStatus,
|
|
144583
|
+
matrixIndicesUrls
|
|
144584
|
+
] = useObsFeatureMatrixIndices(
|
|
144843
144585
|
loaders,
|
|
144844
144586
|
dataset,
|
|
144845
|
-
addUrl,
|
|
144846
144587
|
false,
|
|
144847
144588
|
{ obsType, featureType, featureValueType }
|
|
144848
144589
|
);
|
|
144849
|
-
const [{ featureLabelsMap }, featureLabelsStatus] = useFeatureLabelsData(
|
|
144590
|
+
const [{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
|
144850
144591
|
loaders,
|
|
144851
144592
|
dataset,
|
|
144852
|
-
addUrl,
|
|
144853
144593
|
false,
|
|
144854
144594
|
{},
|
|
144855
144595
|
{},
|
|
@@ -144862,6 +144602,12 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144862
144602
|
featureLabelsStatus,
|
|
144863
144603
|
matrixIndicesStatus
|
|
144864
144604
|
]);
|
|
144605
|
+
const urls = useUrls([
|
|
144606
|
+
obsEmbeddingUrls,
|
|
144607
|
+
obsSetsUrls,
|
|
144608
|
+
matrixIndicesUrls,
|
|
144609
|
+
featureLabelsUrls
|
|
144610
|
+
]);
|
|
144865
144611
|
const [dynamicCellRadius, setDynamicCellRadius] = useState(cellRadiusFixed);
|
|
144866
144612
|
const [dynamicCellOpacity, setDynamicCellOpacity] = useState(cellOpacityFixed);
|
|
144867
144613
|
const [originalViewState, setOriginalViewState] = useState(null);
|
|
@@ -144945,7 +144691,7 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144945
144691
|
return [null, null, null, null, null];
|
|
144946
144692
|
}, [obsEmbedding]);
|
|
144947
144693
|
useEffect(() => {
|
|
144948
|
-
if (xRange && yRange
|
|
144694
|
+
if (xRange && yRange) {
|
|
144949
144695
|
const pointSizeDevicePixels = getPointSizeDevicePixels(
|
|
144950
144696
|
window.devicePixelRatio,
|
|
144951
144697
|
zoom,
|
|
@@ -144965,28 +144711,34 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144965
144711
|
averageFillDensity
|
|
144966
144712
|
);
|
|
144967
144713
|
setDynamicCellOpacity(nextCellOpacityScale);
|
|
144968
|
-
if (typeof
|
|
144714
|
+
if (typeof initialTargetX !== "number" || typeof initialTargetY !== "number") {
|
|
144969
144715
|
const newTargetX = xExtent[0] + xRange / 2;
|
|
144970
144716
|
const newTargetY = yExtent[0] + yRange / 2;
|
|
144971
144717
|
const newZoom = Math.log2(Math.min(width / xRange, height / yRange));
|
|
144972
|
-
|
|
144973
|
-
|
|
144974
|
-
|
|
144718
|
+
const notYetInitialized = typeof targetX !== "number" || typeof targetY !== "number";
|
|
144719
|
+
const stillDefaultInitialized = targetX === newTargetX && targetY === -newTargetY;
|
|
144720
|
+
if (notYetInitialized || stillDefaultInitialized) {
|
|
144721
|
+
setTargetX(newTargetX);
|
|
144722
|
+
setTargetY(-newTargetY);
|
|
144723
|
+
setZoom(newZoom);
|
|
144724
|
+
}
|
|
144975
144725
|
setOriginalViewState({ target: [newTargetX, -newTargetY, 0], zoom: newZoom });
|
|
144976
144726
|
} else if (!originalViewState) {
|
|
144977
|
-
setOriginalViewState({ target: [
|
|
144727
|
+
setOriginalViewState({ target: [initialTargetX, initialTargetY, 0], zoom: initialZoom });
|
|
144978
144728
|
}
|
|
144979
144729
|
}
|
|
144980
144730
|
}, [
|
|
144981
144731
|
xRange,
|
|
144982
144732
|
yRange,
|
|
144983
|
-
isReady,
|
|
144984
144733
|
xExtent,
|
|
144985
144734
|
yExtent,
|
|
144986
144735
|
numCells,
|
|
144987
144736
|
width,
|
|
144988
144737
|
height,
|
|
144738
|
+
initialZoom,
|
|
144989
144739
|
zoom,
|
|
144740
|
+
initialTargetX,
|
|
144741
|
+
initialTargetY,
|
|
144990
144742
|
averageFillDensity
|
|
144991
144743
|
]);
|
|
144992
144744
|
const getObsInfo = useGetObsInfo(
|