@vitessce/heatmap 3.5.2 → 3.5.3
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-2c11533f.js → deflate-dc778494.js} +1 -1
- package/dist/{index-6ef9e70c.js → index-fc077d81.js} +958 -996
- package/dist/index.js +1 -1
- package/dist/{jpeg-578f0ca5.js → jpeg-66adb130.js} +1 -1
- package/dist/{lerc-357448de.js → lerc-53ffc64c.js} +1 -1
- package/dist/{lzw-fde46e44.js → lzw-f00259f5.js} +1 -1
- package/dist/{packbits-5ed5b9c6.js → packbits-a8d6509a.js} +1 -1
- package/dist/{raw-f6b0dad1.js → raw-4e18410c.js} +1 -1
- package/dist/{webimage-13174dd3.js → webimage-8894b594.js} +1 -1
- package/dist-tsc/Heatmap.d.ts.map +1 -1
- package/dist-tsc/Heatmap.js +7 -3
- package/dist-tsc/HeatmapSubscriber.d.ts.map +1 -1
- package/dist-tsc/HeatmapSubscriber.js +10 -5
- package/dist-tsc/HeatmapTooltipSubscriber.d.ts.map +1 -1
- package/dist-tsc/HeatmapTooltipSubscriber.js +2 -2
- package/package.json +9 -9
- package/src/Heatmap.js +11 -2
- package/src/HeatmapSubscriber.js +16 -3
- package/src/HeatmapTooltipSubscriber.js +7 -1
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import React__default, { Children, isValidElement, cloneElement, useRef, useMemo, useEffect, useLayoutEffect, createElement, forwardRef, useState, useImperativeHandle, useReducer, useCallback, useContext } from "react";
|
|
9
|
-
import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
|
|
9
|
+
import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
|
|
10
10
|
import * as ReactDOM from "react-dom";
|
|
11
11
|
function _mergeNamespaces(n2, m) {
|
|
12
12
|
for (var i2 = 0; i2 < m.length; i2++) {
|
|
@@ -1315,6 +1315,12 @@ function pluralize(word, count2 = null) {
|
|
|
1315
1315
|
function getLongestString(strings2) {
|
|
1316
1316
|
return strings2.reduce((prevLongest, currentValue) => prevLongest.length > currentValue.length ? prevLongest : currentValue);
|
|
1317
1317
|
}
|
|
1318
|
+
function cleanFeatureId(featureName) {
|
|
1319
|
+
if (featureName.startsWith("ENSG")) {
|
|
1320
|
+
return featureName.split(".")[0];
|
|
1321
|
+
}
|
|
1322
|
+
return featureName;
|
|
1323
|
+
}
|
|
1318
1324
|
function getNextScope(prevScopes) {
|
|
1319
1325
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
1320
1326
|
const nextCharIndices = [0];
|
|
@@ -10995,7 +11001,8 @@ const ViewType$1 = {
|
|
|
10995
11001
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
10996
11002
|
DOT_PLOT: "dotPlot",
|
|
10997
11003
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
10998
|
-
BIOMARKER_SELECT: "biomarkerSelect"
|
|
11004
|
+
BIOMARKER_SELECT: "biomarkerSelect",
|
|
11005
|
+
LINK_CONTROLLER: "linkController"
|
|
10999
11006
|
};
|
|
11000
11007
|
const DataType$2 = {
|
|
11001
11008
|
OBS_LABELS: "obsLabels",
|
|
@@ -11691,6 +11698,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
11691
11698
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
11692
11699
|
CoordinationType$1.ADDITIONAL_OBS_SETS
|
|
11693
11700
|
],
|
|
11701
|
+
[ViewType$1.LINK_CONTROLLER]: [],
|
|
11694
11702
|
[ViewType$1.BIOMARKER_SELECT]: [
|
|
11695
11703
|
CoordinationType$1.FEATURE_SELECTION,
|
|
11696
11704
|
CoordinationType$1.SAMPLE_SET_SELECTION
|
|
@@ -19755,7 +19763,7 @@ function _toPropertyKey(arg) {
|
|
|
19755
19763
|
var key = _toPrimitive(arg, "string");
|
|
19756
19764
|
return _typeof$w(key) === "symbol" ? key : String(key);
|
|
19757
19765
|
}
|
|
19758
|
-
function _defineProperty$
|
|
19766
|
+
function _defineProperty$e(obj, key, value) {
|
|
19759
19767
|
key = _toPropertyKey(key);
|
|
19760
19768
|
if (key in obj) {
|
|
19761
19769
|
Object.defineProperty(obj, key, {
|
|
@@ -19771,7 +19779,7 @@ function _defineProperty$f(obj, key, value) {
|
|
|
19771
19779
|
}
|
|
19772
19780
|
var specialProperty = "exact-prop: ";
|
|
19773
19781
|
function exactProp(propTypes2) {
|
|
19774
|
-
return _extends$2({}, propTypes2, _defineProperty$
|
|
19782
|
+
return _extends$2({}, propTypes2, _defineProperty$e({}, specialProperty, function(props) {
|
|
19775
19783
|
var unsupportedProps = Object.keys(props).filter(function(prop) {
|
|
19776
19784
|
return !propTypes2.hasOwnProperty(prop);
|
|
19777
19785
|
});
|
|
@@ -20153,20 +20161,7 @@ function lighten(color2, coefficient) {
|
|
|
20153
20161
|
}
|
|
20154
20162
|
return recomposeColor(color2);
|
|
20155
20163
|
}
|
|
20156
|
-
function
|
|
20157
|
-
if (key in obj) {
|
|
20158
|
-
Object.defineProperty(obj, key, {
|
|
20159
|
-
value,
|
|
20160
|
-
enumerable: true,
|
|
20161
|
-
configurable: true,
|
|
20162
|
-
writable: true
|
|
20163
|
-
});
|
|
20164
|
-
} else {
|
|
20165
|
-
obj[key] = value;
|
|
20166
|
-
}
|
|
20167
|
-
return obj;
|
|
20168
|
-
}
|
|
20169
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
20164
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
20170
20165
|
if (source == null)
|
|
20171
20166
|
return {};
|
|
20172
20167
|
var target = {};
|
|
@@ -20180,10 +20175,10 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
20180
20175
|
}
|
|
20181
20176
|
return target;
|
|
20182
20177
|
}
|
|
20183
|
-
function _objectWithoutProperties
|
|
20178
|
+
function _objectWithoutProperties(source, excluded) {
|
|
20184
20179
|
if (source == null)
|
|
20185
20180
|
return {};
|
|
20186
|
-
var target = _objectWithoutPropertiesLoose
|
|
20181
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
20187
20182
|
var key, i2;
|
|
20188
20183
|
if (Object.getOwnPropertySymbols) {
|
|
20189
20184
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -20198,20 +20193,6 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
20198
20193
|
}
|
|
20199
20194
|
return target;
|
|
20200
20195
|
}
|
|
20201
|
-
function _extends$1() {
|
|
20202
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
20203
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
20204
|
-
var source = arguments[i2];
|
|
20205
|
-
for (var key in source) {
|
|
20206
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20207
|
-
target[key] = source[key];
|
|
20208
|
-
}
|
|
20209
|
-
}
|
|
20210
|
-
}
|
|
20211
|
-
return target;
|
|
20212
|
-
};
|
|
20213
|
-
return _extends$1.apply(this, arguments);
|
|
20214
|
-
}
|
|
20215
20196
|
var keys$1 = ["xs", "sm", "md", "lg", "xl"];
|
|
20216
20197
|
function createBreakpoints(breakpoints) {
|
|
20217
20198
|
var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
|
|
@@ -20220,7 +20201,7 @@ function createBreakpoints(breakpoints) {
|
|
|
20220
20201
|
md: 960,
|
|
20221
20202
|
lg: 1280,
|
|
20222
20203
|
xl: 1920
|
|
20223
|
-
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties
|
|
20204
|
+
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
|
|
20224
20205
|
function up(key) {
|
|
20225
20206
|
var value = typeof values2[key] === "number" ? values2[key] : key;
|
|
20226
20207
|
return "@media (min-width:".concat(value).concat(unit2, ")");
|
|
@@ -20254,7 +20235,7 @@ function createBreakpoints(breakpoints) {
|
|
|
20254
20235
|
}
|
|
20255
20236
|
return values2[key];
|
|
20256
20237
|
}
|
|
20257
|
-
return _extends$
|
|
20238
|
+
return _extends$2({
|
|
20258
20239
|
keys: keys$1,
|
|
20259
20240
|
values: values2,
|
|
20260
20241
|
up,
|
|
@@ -20266,14 +20247,14 @@ function createBreakpoints(breakpoints) {
|
|
|
20266
20247
|
}
|
|
20267
20248
|
function createMixins(breakpoints, spacing, mixins) {
|
|
20268
20249
|
var _toolbar;
|
|
20269
|
-
return _extends$
|
|
20250
|
+
return _extends$2({
|
|
20270
20251
|
gutters: function gutters() {
|
|
20271
20252
|
var styles11 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
20272
20253
|
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"));
|
|
20273
|
-
return _extends$
|
|
20254
|
+
return _extends$2({
|
|
20274
20255
|
paddingLeft: spacing(2),
|
|
20275
20256
|
paddingRight: spacing(2)
|
|
20276
|
-
}, styles11, _defineProperty$e({}, breakpoints.up("sm"), _extends$
|
|
20257
|
+
}, styles11, _defineProperty$e({}, breakpoints.up("sm"), _extends$2({
|
|
20277
20258
|
paddingLeft: spacing(3),
|
|
20278
20259
|
paddingRight: spacing(3)
|
|
20279
20260
|
}, styles11[breakpoints.up("sm")])));
|
|
@@ -20392,7 +20373,7 @@ function createPalette(palette) {
|
|
|
20392
20373
|
light: green$1[300],
|
|
20393
20374
|
main: green$1[500],
|
|
20394
20375
|
dark: green$1[700]
|
|
20395
|
-
} : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties
|
|
20376
|
+
} : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
20396
20377
|
function getContrastText(background) {
|
|
20397
20378
|
var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
|
20398
20379
|
{
|
|
@@ -20407,7 +20388,7 @@ function createPalette(palette) {
|
|
|
20407
20388
|
var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
|
|
20408
20389
|
var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
|
|
20409
20390
|
var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
20410
|
-
color2 = _extends$
|
|
20391
|
+
color2 = _extends$2({}, color2);
|
|
20411
20392
|
if (!color2.main && color2[mainShade]) {
|
|
20412
20393
|
color2.main = color2[mainShade];
|
|
20413
20394
|
}
|
|
@@ -20433,7 +20414,7 @@ function createPalette(palette) {
|
|
|
20433
20414
|
console.error("Material-UI: The palette type `".concat(type2, "` is not supported."));
|
|
20434
20415
|
}
|
|
20435
20416
|
}
|
|
20436
|
-
var paletteOutput = deepmerge(_extends$
|
|
20417
|
+
var paletteOutput = deepmerge(_extends$2({
|
|
20437
20418
|
// A collection of common colors.
|
|
20438
20419
|
common: common$3,
|
|
20439
20420
|
// The palette type, can be light or dark.
|
|
@@ -20484,7 +20465,7 @@ var caseAllCaps = {
|
|
|
20484
20465
|
};
|
|
20485
20466
|
var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
20486
20467
|
function createTypography(palette, typography) {
|
|
20487
|
-
var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties
|
|
20468
|
+
var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
20488
20469
|
{
|
|
20489
20470
|
if (typeof fontSize !== "number") {
|
|
20490
20471
|
console.error("Material-UI: `fontSize` is required to be a number.");
|
|
@@ -20498,7 +20479,7 @@ function createTypography(palette, typography) {
|
|
|
20498
20479
|
return "".concat(size / htmlFontSize * coef, "rem");
|
|
20499
20480
|
};
|
|
20500
20481
|
var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
|
|
20501
|
-
return _extends$
|
|
20482
|
+
return _extends$2({
|
|
20502
20483
|
fontFamily,
|
|
20503
20484
|
fontWeight,
|
|
20504
20485
|
fontSize: pxToRem(size),
|
|
@@ -20523,7 +20504,7 @@ function createTypography(palette, typography) {
|
|
|
20523
20504
|
caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
|
|
20524
20505
|
overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
|
|
20525
20506
|
};
|
|
20526
|
-
return deepmerge(_extends$
|
|
20507
|
+
return deepmerge(_extends$2({
|
|
20527
20508
|
htmlFontSize,
|
|
20528
20509
|
pxToRem,
|
|
20529
20510
|
round: roundWithDeprecationWarning,
|
|
@@ -20553,39 +20534,75 @@ var shape = {
|
|
|
20553
20534
|
const shape$1 = shape;
|
|
20554
20535
|
var responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]);
|
|
20555
20536
|
const responsivePropType$1 = responsivePropType;
|
|
20556
|
-
function _arrayLikeToArray$
|
|
20537
|
+
function _arrayLikeToArray$j(arr, len2) {
|
|
20557
20538
|
if (len2 == null || len2 > arr.length)
|
|
20558
20539
|
len2 = arr.length;
|
|
20559
20540
|
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++)
|
|
20560
20541
|
arr2[i2] = arr[i2];
|
|
20561
20542
|
return arr2;
|
|
20562
20543
|
}
|
|
20563
|
-
function _arrayWithoutHoles$
|
|
20544
|
+
function _arrayWithoutHoles$i(arr) {
|
|
20564
20545
|
if (Array.isArray(arr))
|
|
20565
|
-
return _arrayLikeToArray$
|
|
20546
|
+
return _arrayLikeToArray$j(arr);
|
|
20566
20547
|
}
|
|
20567
|
-
function _iterableToArray$
|
|
20548
|
+
function _iterableToArray$i(iter) {
|
|
20568
20549
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
20569
20550
|
return Array.from(iter);
|
|
20570
20551
|
}
|
|
20571
|
-
function _unsupportedIterableToArray$
|
|
20552
|
+
function _unsupportedIterableToArray$j(o2, minLen) {
|
|
20572
20553
|
if (!o2)
|
|
20573
20554
|
return;
|
|
20574
20555
|
if (typeof o2 === "string")
|
|
20575
|
-
return _arrayLikeToArray$
|
|
20556
|
+
return _arrayLikeToArray$j(o2, minLen);
|
|
20576
20557
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
20577
20558
|
if (n2 === "Object" && o2.constructor)
|
|
20578
20559
|
n2 = o2.constructor.name;
|
|
20579
20560
|
if (n2 === "Map" || n2 === "Set")
|
|
20580
20561
|
return Array.from(o2);
|
|
20581
20562
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
20582
|
-
return _arrayLikeToArray$
|
|
20563
|
+
return _arrayLikeToArray$j(o2, minLen);
|
|
20583
20564
|
}
|
|
20584
|
-
function _nonIterableSpread$
|
|
20565
|
+
function _nonIterableSpread$i() {
|
|
20585
20566
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20586
20567
|
}
|
|
20587
|
-
function _toConsumableArray$
|
|
20588
|
-
return _arrayWithoutHoles$
|
|
20568
|
+
function _toConsumableArray$i(arr) {
|
|
20569
|
+
return _arrayWithoutHoles$i(arr) || _iterableToArray$i(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$i();
|
|
20570
|
+
}
|
|
20571
|
+
function _arrayWithHoles$6(arr) {
|
|
20572
|
+
if (Array.isArray(arr))
|
|
20573
|
+
return arr;
|
|
20574
|
+
}
|
|
20575
|
+
function _iterableToArrayLimit$6(arr, i2) {
|
|
20576
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
20577
|
+
if (null != _i) {
|
|
20578
|
+
var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
|
|
20579
|
+
try {
|
|
20580
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i2) {
|
|
20581
|
+
if (Object(_i) !== _i)
|
|
20582
|
+
return;
|
|
20583
|
+
_n = false;
|
|
20584
|
+
} else
|
|
20585
|
+
for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true)
|
|
20586
|
+
;
|
|
20587
|
+
} catch (err2) {
|
|
20588
|
+
_d = true, _e = err2;
|
|
20589
|
+
} finally {
|
|
20590
|
+
try {
|
|
20591
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
|
|
20592
|
+
return;
|
|
20593
|
+
} finally {
|
|
20594
|
+
if (_d)
|
|
20595
|
+
throw _e;
|
|
20596
|
+
}
|
|
20597
|
+
}
|
|
20598
|
+
return _arr;
|
|
20599
|
+
}
|
|
20600
|
+
}
|
|
20601
|
+
function _nonIterableRest$6() {
|
|
20602
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20603
|
+
}
|
|
20604
|
+
function _slicedToArray$6(arr, i2) {
|
|
20605
|
+
return _arrayWithHoles$6(arr) || _iterableToArrayLimit$6(arr, i2) || _unsupportedIterableToArray$j(arr, i2) || _nonIterableRest$6();
|
|
20589
20606
|
}
|
|
20590
20607
|
var spacingKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
|
|
20591
20608
|
function createUnarySpacing(theme) {
|
|
@@ -20703,7 +20720,7 @@ const transitions = {
|
|
|
20703
20720
|
create: function create() {
|
|
20704
20721
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
|
|
20705
20722
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
20706
|
-
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties
|
|
20723
|
+
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
|
|
20707
20724
|
{
|
|
20708
20725
|
var isString = function isString2(value) {
|
|
20709
20726
|
return typeof value === "string";
|
|
@@ -20751,7 +20768,7 @@ var zIndex = {
|
|
|
20751
20768
|
const zIndex$1 = zIndex;
|
|
20752
20769
|
function createTheme() {
|
|
20753
20770
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
20754
|
-
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties
|
|
20771
|
+
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
|
20755
20772
|
var palette = createPalette(paletteInput);
|
|
20756
20773
|
var breakpoints = createBreakpoints(breakpointsInput);
|
|
20757
20774
|
var spacing = createSpacing(spacingInput);
|
|
@@ -20914,20 +20931,6 @@ function _assertThisInitialized$v(self2) {
|
|
|
20914
20931
|
}
|
|
20915
20932
|
return self2;
|
|
20916
20933
|
}
|
|
20917
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
20918
|
-
if (source == null)
|
|
20919
|
-
return {};
|
|
20920
|
-
var target = {};
|
|
20921
|
-
var sourceKeys = Object.keys(source);
|
|
20922
|
-
var key, i2;
|
|
20923
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
20924
|
-
key = sourceKeys[i2];
|
|
20925
|
-
if (excluded.indexOf(key) >= 0)
|
|
20926
|
-
continue;
|
|
20927
|
-
target[key] = source[key];
|
|
20928
|
-
}
|
|
20929
|
-
return target;
|
|
20930
|
-
}
|
|
20931
20934
|
var plainObjectConstrurctor = {}.constructor;
|
|
20932
20935
|
function cloneStyle(style2) {
|
|
20933
20936
|
if (style2 == null || typeof style2 !== "object")
|
|
@@ -22402,6 +22405,20 @@ var functionPlugin = function functionPlugin2() {
|
|
|
22402
22405
|
};
|
|
22403
22406
|
};
|
|
22404
22407
|
const functions = functionPlugin;
|
|
22408
|
+
function _extends$1() {
|
|
22409
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
22410
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
22411
|
+
var source = arguments[i2];
|
|
22412
|
+
for (var key in source) {
|
|
22413
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22414
|
+
target[key] = source[key];
|
|
22415
|
+
}
|
|
22416
|
+
}
|
|
22417
|
+
}
|
|
22418
|
+
return target;
|
|
22419
|
+
};
|
|
22420
|
+
return _extends$1.apply(this, arguments);
|
|
22421
|
+
}
|
|
22405
22422
|
var at = "@global";
|
|
22406
22423
|
var atPrefix = "@global ";
|
|
22407
22424
|
var GlobalContainerRule = /* @__PURE__ */ function() {
|
|
@@ -23150,7 +23167,7 @@ var propertyDetectors = plugins.filter(function(p) {
|
|
|
23150
23167
|
var noPrefill = plugins.filter(function(p) {
|
|
23151
23168
|
return p.noPrefill;
|
|
23152
23169
|
}).reduce(function(a2, p) {
|
|
23153
|
-
a2.push.apply(a2, _toConsumableArray$
|
|
23170
|
+
a2.push.apply(a2, _toConsumableArray$i(p.noPrefill));
|
|
23154
23171
|
return a2;
|
|
23155
23172
|
}, []);
|
|
23156
23173
|
var el;
|
|
@@ -23326,24 +23343,6 @@ function jssPreset() {
|
|
|
23326
23343
|
]
|
|
23327
23344
|
};
|
|
23328
23345
|
}
|
|
23329
|
-
function _objectWithoutProperties(source, excluded) {
|
|
23330
|
-
if (source == null)
|
|
23331
|
-
return {};
|
|
23332
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
23333
|
-
var key, i2;
|
|
23334
|
-
if (Object.getOwnPropertySymbols) {
|
|
23335
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
23336
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
23337
|
-
key = sourceSymbolKeys[i2];
|
|
23338
|
-
if (excluded.indexOf(key) >= 0)
|
|
23339
|
-
continue;
|
|
23340
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
23341
|
-
continue;
|
|
23342
|
-
target[key] = source[key];
|
|
23343
|
-
}
|
|
23344
|
-
}
|
|
23345
|
-
return target;
|
|
23346
|
-
}
|
|
23347
23346
|
function mergeClasses() {
|
|
23348
23347
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23349
23348
|
var baseClasses = options.baseClasses, newClasses = options.newClasses, Component2 = options.Component;
|
|
@@ -23914,7 +23913,7 @@ var defaultTheme = createTheme();
|
|
|
23914
23913
|
const defaultTheme$1 = defaultTheme;
|
|
23915
23914
|
function makeStyles(stylesOrCreator) {
|
|
23916
23915
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
23917
|
-
return makeStyles$1(stylesOrCreator, _extends$
|
|
23916
|
+
return makeStyles$1(stylesOrCreator, _extends$2({
|
|
23918
23917
|
defaultTheme: defaultTheme$1
|
|
23919
23918
|
}, options));
|
|
23920
23919
|
}
|
|
@@ -23926,7 +23925,7 @@ function useTheme() {
|
|
|
23926
23925
|
return theme;
|
|
23927
23926
|
}
|
|
23928
23927
|
function withStyles2(stylesOrCreator, options) {
|
|
23929
|
-
return withStylesWithoutDefault(stylesOrCreator, _extends$
|
|
23928
|
+
return withStylesWithoutDefault(stylesOrCreator, _extends$2({
|
|
23930
23929
|
defaultTheme: defaultTheme$1
|
|
23931
23930
|
}, options));
|
|
23932
23931
|
}
|
|
@@ -24009,8 +24008,8 @@ var styles$b = function styles(theme) {
|
|
|
24009
24008
|
};
|
|
24010
24009
|
};
|
|
24011
24010
|
var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props, ref2) {
|
|
24012
|
-
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties
|
|
24013
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
24011
|
+
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
|
24012
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
|
24014
24013
|
className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize(color2))], fontSize !== "default" && fontSize !== "medium" && classes["fontSize".concat(capitalize(fontSize))]),
|
|
24015
24014
|
focusable: "false",
|
|
24016
24015
|
viewBox,
|
|
@@ -24088,7 +24087,7 @@ const SvgIcon$1 = withStyles2(styles$b, {
|
|
|
24088
24087
|
})(SvgIcon);
|
|
24089
24088
|
function createSvgIcon(path, displayName) {
|
|
24090
24089
|
var Component2 = function Component3(props, ref2) {
|
|
24091
|
-
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$
|
|
24090
|
+
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$2({
|
|
24092
24091
|
ref: ref2
|
|
24093
24092
|
}, props), path);
|
|
24094
24093
|
};
|
|
@@ -24249,69 +24248,6 @@ function useIsFocusVisible() {
|
|
|
24249
24248
|
ref: ref2
|
|
24250
24249
|
};
|
|
24251
24250
|
}
|
|
24252
|
-
function _arrayWithHoles$6(arr) {
|
|
24253
|
-
if (Array.isArray(arr))
|
|
24254
|
-
return arr;
|
|
24255
|
-
}
|
|
24256
|
-
function _iterableToArray$i(iter) {
|
|
24257
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
24258
|
-
return Array.from(iter);
|
|
24259
|
-
}
|
|
24260
|
-
function _arrayLikeToArray$j(arr, len2) {
|
|
24261
|
-
if (len2 == null || len2 > arr.length)
|
|
24262
|
-
len2 = arr.length;
|
|
24263
|
-
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) {
|
|
24264
|
-
arr2[i2] = arr[i2];
|
|
24265
|
-
}
|
|
24266
|
-
return arr2;
|
|
24267
|
-
}
|
|
24268
|
-
function _unsupportedIterableToArray$j(o2, minLen) {
|
|
24269
|
-
if (!o2)
|
|
24270
|
-
return;
|
|
24271
|
-
if (typeof o2 === "string")
|
|
24272
|
-
return _arrayLikeToArray$j(o2, minLen);
|
|
24273
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
24274
|
-
if (n2 === "Object" && o2.constructor)
|
|
24275
|
-
n2 = o2.constructor.name;
|
|
24276
|
-
if (n2 === "Map" || n2 === "Set")
|
|
24277
|
-
return Array.from(o2);
|
|
24278
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
24279
|
-
return _arrayLikeToArray$j(o2, minLen);
|
|
24280
|
-
}
|
|
24281
|
-
function _nonIterableRest$6() {
|
|
24282
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24283
|
-
}
|
|
24284
|
-
function _iterableToArrayLimit$6(arr, i2) {
|
|
24285
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24286
|
-
if (_i == null)
|
|
24287
|
-
return;
|
|
24288
|
-
var _arr = [];
|
|
24289
|
-
var _n = true;
|
|
24290
|
-
var _d = false;
|
|
24291
|
-
var _s, _e;
|
|
24292
|
-
try {
|
|
24293
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
24294
|
-
_arr.push(_s.value);
|
|
24295
|
-
if (i2 && _arr.length === i2)
|
|
24296
|
-
break;
|
|
24297
|
-
}
|
|
24298
|
-
} catch (err2) {
|
|
24299
|
-
_d = true;
|
|
24300
|
-
_e = err2;
|
|
24301
|
-
} finally {
|
|
24302
|
-
try {
|
|
24303
|
-
if (!_n && _i["return"] != null)
|
|
24304
|
-
_i["return"]();
|
|
24305
|
-
} finally {
|
|
24306
|
-
if (_d)
|
|
24307
|
-
throw _e;
|
|
24308
|
-
}
|
|
24309
|
-
}
|
|
24310
|
-
return _arr;
|
|
24311
|
-
}
|
|
24312
|
-
function _slicedToArray$6(arr, i2) {
|
|
24313
|
-
return _arrayWithHoles$6(arr) || _iterableToArrayLimit$6(arr, i2) || _unsupportedIterableToArray$j(arr, i2) || _nonIterableRest$6();
|
|
24314
|
-
}
|
|
24315
24251
|
const TransitionGroupContext = React__default.createContext(null);
|
|
24316
24252
|
function getChildMapping(children2, mapFn) {
|
|
24317
24253
|
var mapper = function mapper2(child) {
|
|
@@ -24549,7 +24485,7 @@ var styles$a = function styles2(theme) {
|
|
|
24549
24485
|
boxShadow: shadow2
|
|
24550
24486
|
};
|
|
24551
24487
|
});
|
|
24552
|
-
return _extends$
|
|
24488
|
+
return _extends$2({
|
|
24553
24489
|
/* Styles applied to the root element. */
|
|
24554
24490
|
root: {
|
|
24555
24491
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -24567,8 +24503,8 @@ var styles$a = function styles2(theme) {
|
|
|
24567
24503
|
}, elevations);
|
|
24568
24504
|
};
|
|
24569
24505
|
var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref2) {
|
|
24570
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties
|
|
24571
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
24506
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "square", "elevation", "variant"]);
|
|
24507
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
|
24572
24508
|
className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
|
|
24573
24509
|
ref: ref2
|
|
24574
24510
|
}, other));
|
|
@@ -24622,16 +24558,6 @@ Paper.propTypes = {
|
|
|
24622
24558
|
const Paper$1 = withStyles2(styles$a, {
|
|
24623
24559
|
name: "MuiPaper"
|
|
24624
24560
|
})(Paper);
|
|
24625
|
-
function _arrayWithoutHoles$i(arr) {
|
|
24626
|
-
if (Array.isArray(arr))
|
|
24627
|
-
return _arrayLikeToArray$j(arr);
|
|
24628
|
-
}
|
|
24629
|
-
function _nonIterableSpread$i() {
|
|
24630
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24631
|
-
}
|
|
24632
|
-
function _toConsumableArray$i(arr) {
|
|
24633
|
-
return _arrayWithoutHoles$i(arr) || _iterableToArray$i(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$i();
|
|
24634
|
-
}
|
|
24635
24561
|
var useEnhancedEffect$2 = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
24636
24562
|
function Ripple(props) {
|
|
24637
24563
|
var classes = props.classes, _props$pulsate = props.pulsate, pulsate = _props$pulsate === void 0 ? false : _props$pulsate, rippleX = props.rippleX, rippleY = props.rippleY, rippleSize = props.rippleSize, inProp = props.in, _props$onExited = props.onExited, onExited = _props$onExited === void 0 ? function() {
|
|
@@ -24782,7 +24708,7 @@ var styles$9 = function styles3(theme) {
|
|
|
24782
24708
|
};
|
|
24783
24709
|
};
|
|
24784
24710
|
var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props, ref2) {
|
|
24785
|
-
var _props$center = props.center, centerProp = _props$center === void 0 ? false : _props$center, classes = props.classes, className = props.className, other = _objectWithoutProperties
|
|
24711
|
+
var _props$center = props.center, centerProp = _props$center === void 0 ? false : _props$center, classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["center", "classes", "className"]);
|
|
24786
24712
|
var _React$useState = React.useState([]), ripples = _React$useState[0], setRipples = _React$useState[1];
|
|
24787
24713
|
var nextKey = React.useRef(0);
|
|
24788
24714
|
var rippleCallback = React.useRef(null);
|
|
@@ -24917,7 +24843,7 @@ var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props,
|
|
|
24917
24843
|
stop
|
|
24918
24844
|
};
|
|
24919
24845
|
}, [pulsate, start, stop]);
|
|
24920
|
-
return /* @__PURE__ */ React.createElement("span", _extends$
|
|
24846
|
+
return /* @__PURE__ */ React.createElement("span", _extends$2({
|
|
24921
24847
|
className: clsx(classes.root, className),
|
|
24922
24848
|
ref: container
|
|
24923
24849
|
}, other), /* @__PURE__ */ React.createElement(TransitionGroup$1, {
|
|
@@ -24992,7 +24918,7 @@ var styles$8 = {
|
|
|
24992
24918
|
focusVisible: {}
|
|
24993
24919
|
};
|
|
24994
24920
|
var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, ref2) {
|
|
24995
|
-
var action = props.action, buttonRefProp = props.buttonRef, _props$centerRipple = props.centerRipple, centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$disableTouchRi = props.disableTouchRipple, disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, _props$focusRipple = props.focusRipple, focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, focusVisibleClassName = props.focusVisibleClassName, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, onMouseUp = props.onMouseUp, onTouchEnd = props.onTouchEnd, onTouchMove = props.onTouchMove, onTouchStart = props.onTouchStart, onDragLeave = props.onDragLeave, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, TouchRippleProps = props.TouchRippleProps, _props$type = props.type, type2 = _props$type === void 0 ? "button" : _props$type, other = _objectWithoutProperties
|
|
24921
|
+
var action = props.action, buttonRefProp = props.buttonRef, _props$centerRipple = props.centerRipple, centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$disableTouchRi = props.disableTouchRipple, disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, _props$focusRipple = props.focusRipple, focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, focusVisibleClassName = props.focusVisibleClassName, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, onMouseUp = props.onMouseUp, onTouchEnd = props.onTouchEnd, onTouchMove = props.onTouchMove, onTouchStart = props.onTouchStart, onDragLeave = props.onDragLeave, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, TouchRippleProps = props.TouchRippleProps, _props$type = props.type, type2 = _props$type === void 0 ? "button" : _props$type, other = _objectWithoutProperties(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]);
|
|
24996
24922
|
var buttonRef = React.useRef(null);
|
|
24997
24923
|
function getButtonNode() {
|
|
24998
24924
|
return ReactDOM.findDOMNode(buttonRef.current);
|
|
@@ -25136,7 +25062,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, re
|
|
|
25136
25062
|
}
|
|
25137
25063
|
}, [enableTouchRipple]);
|
|
25138
25064
|
}
|
|
25139
|
-
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$
|
|
25065
|
+
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$2({
|
|
25140
25066
|
className: clsx(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled),
|
|
25141
25067
|
onBlur: handleBlur,
|
|
25142
25068
|
onClick,
|
|
@@ -25154,7 +25080,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, re
|
|
|
25154
25080
|
tabIndex: disabled ? -1 : tabIndex
|
|
25155
25081
|
}, buttonProps, other), children2, enableTouchRipple ? (
|
|
25156
25082
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
25157
|
-
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$
|
|
25083
|
+
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$2({
|
|
25158
25084
|
ref: rippleRef,
|
|
25159
25085
|
center: centerRipple
|
|
25160
25086
|
}, TouchRippleProps))
|
|
@@ -25385,8 +25311,8 @@ var styles$7 = function styles4(theme) {
|
|
|
25385
25311
|
};
|
|
25386
25312
|
};
|
|
25387
25313
|
var IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(props, ref2) {
|
|
25388
|
-
var _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
25389
|
-
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$
|
|
25314
|
+
var _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
|
25315
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$2({
|
|
25390
25316
|
className: clsx(classes.root, className, color2 !== "default" && classes["color".concat(capitalize(color2))], disabled && classes.disabled, size === "small" && classes["size".concat(capitalize(size))], {
|
|
25391
25317
|
"start": classes.edgeStart,
|
|
25392
25318
|
"end": classes.edgeEnd
|
|
@@ -25481,7 +25407,7 @@ var styles$6 = {
|
|
|
25481
25407
|
}
|
|
25482
25408
|
};
|
|
25483
25409
|
var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, ref2) {
|
|
25484
|
-
var autoFocus = props.autoFocus, checkedProp = props.checked, checkedIcon = props.checkedIcon, classes = props.classes, className = props.className, defaultChecked = props.defaultChecked, disabledProp = props.disabled, icon = props.icon, id = props.id, inputProps = props.inputProps, inputRef = props.inputRef, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, readOnly = props.readOnly, required = props.required, tabIndex = props.tabIndex, type2 = props.type, value = props.value, other = _objectWithoutProperties
|
|
25410
|
+
var autoFocus = props.autoFocus, checkedProp = props.checked, checkedIcon = props.checkedIcon, classes = props.classes, className = props.className, defaultChecked = props.defaultChecked, disabledProp = props.disabled, icon = props.icon, id = props.id, inputProps = props.inputProps, inputRef = props.inputRef, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, readOnly = props.readOnly, required = props.required, tabIndex = props.tabIndex, type2 = props.type, value = props.value, other = _objectWithoutProperties(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
|
|
25485
25411
|
var _useControlled = useControlled({
|
|
25486
25412
|
controlled: checkedProp,
|
|
25487
25413
|
default: Boolean(defaultChecked),
|
|
@@ -25519,7 +25445,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, re
|
|
|
25519
25445
|
}
|
|
25520
25446
|
}
|
|
25521
25447
|
var hasLabelFor = type2 === "checkbox" || type2 === "radio";
|
|
25522
|
-
return /* @__PURE__ */ React.createElement(IconButton$1, _extends$
|
|
25448
|
+
return /* @__PURE__ */ React.createElement(IconButton$1, _extends$2({
|
|
25523
25449
|
component: "span",
|
|
25524
25450
|
className: clsx(classes.root, className, checked && classes.checked, disabled && classes.disabled),
|
|
25525
25451
|
disabled,
|
|
@@ -25528,7 +25454,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, re
|
|
|
25528
25454
|
onFocus: handleFocus,
|
|
25529
25455
|
onBlur: handleBlur,
|
|
25530
25456
|
ref: ref2
|
|
25531
|
-
}, other), /* @__PURE__ */ React.createElement("input", _extends$
|
|
25457
|
+
}, other), /* @__PURE__ */ React.createElement("input", _extends$2({
|
|
25532
25458
|
autoFocus,
|
|
25533
25459
|
checked: checkedProp,
|
|
25534
25460
|
defaultChecked,
|
|
@@ -25694,10 +25620,10 @@ var defaultCheckedIcon = /* @__PURE__ */ React.createElement(CheckBoxIcon, null)
|
|
|
25694
25620
|
var defaultIcon = /* @__PURE__ */ React.createElement(CheckBoxOutlineBlankIcon, null);
|
|
25695
25621
|
var defaultIndeterminateIcon = /* @__PURE__ */ React.createElement(IndeterminateCheckBoxIcon, null);
|
|
25696
25622
|
var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props, ref2) {
|
|
25697
|
-
var _props$checkedIcon = props.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon : _props$checkedIcon, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props.icon, iconProp = _props$icon === void 0 ? defaultIcon : _props$icon, _props$indeterminate = props.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props.inputProps, _props$size = props.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
25623
|
+
var _props$checkedIcon = props.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon : _props$checkedIcon, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props.icon, iconProp = _props$icon === void 0 ? defaultIcon : _props$icon, _props$indeterminate = props.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props.inputProps, _props$size = props.size, size = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["checkedIcon", "classes", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"]);
|
|
25698
25624
|
var icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
25699
25625
|
var indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
25700
|
-
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$
|
|
25626
|
+
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$2({
|
|
25701
25627
|
type: "checkbox",
|
|
25702
25628
|
classes: {
|
|
25703
25629
|
root: clsx(classes.root, classes["color".concat(capitalize(color2))], indeterminate && classes.indeterminate),
|
|
@@ -25705,7 +25631,7 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props, ref2)
|
|
|
25705
25631
|
disabled: classes.disabled
|
|
25706
25632
|
},
|
|
25707
25633
|
color: color2,
|
|
25708
|
-
inputProps: _extends$
|
|
25634
|
+
inputProps: _extends$2({
|
|
25709
25635
|
"data-indeterminate": indeterminate
|
|
25710
25636
|
}, inputProps),
|
|
25711
25637
|
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
@@ -27436,7 +27362,7 @@ function getAnchorEl(anchorEl) {
|
|
|
27436
27362
|
var useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
27437
27363
|
var defaultPopperOptions = {};
|
|
27438
27364
|
var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref2) {
|
|
27439
|
-
var anchorEl = props.anchorEl, children2 = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style2 = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties
|
|
27365
|
+
var anchorEl = props.anchorEl, children2 = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style2 = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties(props, ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"]);
|
|
27440
27366
|
var tooltipRef = React.useRef(null);
|
|
27441
27367
|
var ownRef = useForkRef(tooltipRef, ref2);
|
|
27442
27368
|
var popperRef = React.useRef(null);
|
|
@@ -27477,10 +27403,10 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref2) {
|
|
|
27477
27403
|
}
|
|
27478
27404
|
}
|
|
27479
27405
|
}
|
|
27480
|
-
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$
|
|
27406
|
+
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$2({
|
|
27481
27407
|
placement: rtlPlacement
|
|
27482
27408
|
}, popperOptions, {
|
|
27483
|
-
modifiers: _extends$
|
|
27409
|
+
modifiers: _extends$2({}, disablePortal ? {} : {
|
|
27484
27410
|
// It's using scrollParent by default, we can use the viewport when using a portal.
|
|
27485
27411
|
preventOverflow: {
|
|
27486
27412
|
boundariesElement: "window"
|
|
@@ -27537,11 +27463,11 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref2) {
|
|
|
27537
27463
|
return /* @__PURE__ */ React.createElement(Portal$1, {
|
|
27538
27464
|
disablePortal,
|
|
27539
27465
|
container
|
|
27540
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
27466
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
27541
27467
|
ref: handleRef,
|
|
27542
27468
|
role: "tooltip"
|
|
27543
27469
|
}, other, {
|
|
27544
|
-
style: _extends$
|
|
27470
|
+
style: _extends$2({
|
|
27545
27471
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
27546
27472
|
position: "fixed",
|
|
27547
27473
|
// Fix Popper.js display issue
|
|
@@ -27645,7 +27571,7 @@ var styles$4 = function styles6(theme) {
|
|
|
27645
27571
|
}
|
|
27646
27572
|
},
|
|
27647
27573
|
open: {},
|
|
27648
|
-
offset: _extends$
|
|
27574
|
+
offset: _extends$2({
|
|
27649
27575
|
zIndex: 1
|
|
27650
27576
|
}, theme.typography.body2, {
|
|
27651
27577
|
fontSize: theme.typography.pxToRem(12),
|
|
@@ -27996,7 +27922,7 @@ var styles$3 = function styles7(theme) {
|
|
|
27996
27922
|
opacity: 0.8
|
|
27997
27923
|
},
|
|
27998
27924
|
/* Styles applied to the mark label element. */
|
|
27999
|
-
markLabel: _extends$
|
|
27925
|
+
markLabel: _extends$2({}, theme.typography.body2, {
|
|
28000
27926
|
color: theme.palette.text.secondary,
|
|
28001
27927
|
position: "absolute",
|
|
28002
27928
|
top: 26,
|
|
@@ -28021,7 +27947,7 @@ var styles$3 = function styles7(theme) {
|
|
|
28021
27947
|
};
|
|
28022
27948
|
};
|
|
28023
27949
|
var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props, ref2) {
|
|
28024
|
-
var ariaLabel = props["aria-label"], ariaLabelledby = props["aria-labelledby"], ariaValuetext = props["aria-valuetext"], classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "span" : _props$component, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, getAriaLabel = props.getAriaLabel, getAriaValueText = props.getAriaValueText, _props$marks = props.marks, marksProp = _props$marks === void 0 ? false : _props$marks, _props$max = props.max, max2 = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min = _props$min === void 0 ? 0 : _props$min, name2 = props.name, onChange = props.onChange, onChangeCommitted = props.onChangeCommitted, onMouseDown = props.onMouseDown, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$scale = props.scale, scale2 = _props$scale === void 0 ? Identity : _props$scale, _props$step = props.step, step = _props$step === void 0 ? 1 : _props$step, _props$ThumbComponent = props.ThumbComponent, ThumbComponent = _props$ThumbComponent === void 0 ? "span" : _props$ThumbComponent, _props$track = props.track, track = _props$track === void 0 ? "normal" : _props$track, valueProp = props.value, _props$ValueLabelComp = props.ValueLabelComponent, ValueLabelComponent = _props$ValueLabelComp === void 0 ? ValueLabel$1 : _props$ValueLabelComp, _props$valueLabelDisp = props.valueLabelDisplay, valueLabelDisplay = _props$valueLabelDisp === void 0 ? "off" : _props$valueLabelDisp, _props$valueLabelForm = props.valueLabelFormat, valueLabelFormat = _props$valueLabelForm === void 0 ? Identity : _props$valueLabelForm, other = _objectWithoutProperties
|
|
27950
|
+
var ariaLabel = props["aria-label"], ariaLabelledby = props["aria-labelledby"], ariaValuetext = props["aria-valuetext"], classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "span" : _props$component, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, getAriaLabel = props.getAriaLabel, getAriaValueText = props.getAriaValueText, _props$marks = props.marks, marksProp = _props$marks === void 0 ? false : _props$marks, _props$max = props.max, max2 = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min = _props$min === void 0 ? 0 : _props$min, name2 = props.name, onChange = props.onChange, onChangeCommitted = props.onChangeCommitted, onMouseDown = props.onMouseDown, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$scale = props.scale, scale2 = _props$scale === void 0 ? Identity : _props$scale, _props$step = props.step, step = _props$step === void 0 ? 1 : _props$step, _props$ThumbComponent = props.ThumbComponent, ThumbComponent = _props$ThumbComponent === void 0 ? "span" : _props$ThumbComponent, _props$track = props.track, track = _props$track === void 0 ? "normal" : _props$track, valueProp = props.value, _props$ValueLabelComp = props.ValueLabelComponent, ValueLabelComponent = _props$ValueLabelComp === void 0 ? ValueLabel$1 : _props$ValueLabelComp, _props$valueLabelDisp = props.valueLabelDisplay, valueLabelDisplay = _props$valueLabelDisp === void 0 ? "off" : _props$valueLabelDisp, _props$valueLabelForm = props.valueLabelFormat, valueLabelFormat = _props$valueLabelForm === void 0 ? Identity : _props$valueLabelForm, other = _objectWithoutProperties(props, ["aria-label", "aria-labelledby", "aria-valuetext", "classes", "className", "color", "component", "defaultValue", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "ThumbComponent", "track", "value", "ValueLabelComponent", "valueLabelDisplay", "valueLabelFormat"]);
|
|
28025
27951
|
var theme = useTheme();
|
|
28026
27952
|
var touchId = React.useRef();
|
|
28027
27953
|
var _React$useState = React.useState(-1), active = _React$useState[0], setActive = _React$useState[1];
|
|
@@ -28302,8 +28228,8 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props, ref2) {
|
|
|
28302
28228
|
});
|
|
28303
28229
|
var trackOffset = valueToPercent(range2 ? values2[0] : min, min, max2);
|
|
28304
28230
|
var trackLeap = valueToPercent(values2[values2.length - 1], min, max2) - trackOffset;
|
|
28305
|
-
var trackStyle = _extends$
|
|
28306
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
28231
|
+
var trackStyle = _extends$2({}, axisProps[axis2].offset(trackOffset), axisProps[axis2].leap(trackLeap));
|
|
28232
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
|
28307
28233
|
ref: handleRef,
|
|
28308
28234
|
className: clsx(classes.root, classes["color".concat(capitalize(color2))], className, disabled && classes.disabled, marks.length > 0 && marks.some(function(mark) {
|
|
28309
28235
|
return mark.label;
|
|
@@ -28547,7 +28473,7 @@ const Tablelvl2Context$1 = Tablelvl2Context;
|
|
|
28547
28473
|
var styles$2 = function styles8(theme) {
|
|
28548
28474
|
return {
|
|
28549
28475
|
/* Styles applied to the root element. */
|
|
28550
|
-
root: _extends$
|
|
28476
|
+
root: _extends$2({}, theme.typography.body2, {
|
|
28551
28477
|
display: "table-cell",
|
|
28552
28478
|
verticalAlign: "inherit",
|
|
28553
28479
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
@@ -28636,7 +28562,7 @@ var styles$2 = function styles8(theme) {
|
|
|
28636
28562
|
};
|
|
28637
28563
|
};
|
|
28638
28564
|
var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref2) {
|
|
28639
|
-
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties
|
|
28565
|
+
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
|
|
28640
28566
|
var table = React.useContext(TableContext$1);
|
|
28641
28567
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
28642
28568
|
var isHeadCell = tablelvl2 && tablelvl2.variant === "head";
|
|
@@ -28659,7 +28585,7 @@ var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref2
|
|
|
28659
28585
|
if (sortDirection) {
|
|
28660
28586
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
28661
28587
|
}
|
|
28662
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
28588
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
|
28663
28589
|
ref: ref2,
|
|
28664
28590
|
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),
|
|
28665
28591
|
"aria-sort": ariaSort,
|
|
@@ -28754,9 +28680,9 @@ var styles$1 = function styles9(theme) {
|
|
|
28754
28680
|
};
|
|
28755
28681
|
var defaultComponent = "tr";
|
|
28756
28682
|
var TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(props, ref2) {
|
|
28757
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties
|
|
28683
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props, ["classes", "className", "component", "hover", "selected"]);
|
|
28758
28684
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
28759
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
28685
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
|
28760
28686
|
ref: ref2,
|
|
28761
28687
|
className: clsx(classes.root, className, tablelvl2 && {
|
|
28762
28688
|
"head": classes.head,
|
|
@@ -31385,7 +31311,7 @@ function Legend(props) {
|
|
|
31385
31311
|
});
|
|
31386
31312
|
});
|
|
31387
31313
|
}
|
|
31388
|
-
const featureSelectionLabelRaw = featureSelection && featureSelection.length >= 1 && !isStaticColor ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(featureSelection[0])) || featureSelection[0] : null;
|
|
31314
|
+
const featureSelectionLabelRaw = featureSelection && featureSelection.length >= 1 && !isStaticColor ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(featureSelection[0])) || (featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(featureSelection[0]))) || featureSelection[0] : null;
|
|
31389
31315
|
const featureSelectionLabel = missing ? `${featureSelectionLabelRaw} (${Math.round(missing * 100)}% NaN)` : featureSelectionLabelRaw;
|
|
31390
31316
|
const obsLabel = capitalize$1(obsType);
|
|
31391
31317
|
const featureLabel = considerSelections ? featureSelectionLabel || capitalize$1(featureValueType) : capitalize$1(featureValueType);
|
|
@@ -31489,13 +31415,13 @@ const matches = typeof process !== "undefined" && process.version && /v([0-9]*)/
|
|
|
31489
31415
|
matches && parseFloat(matches[1]) || 0;
|
|
31490
31416
|
class WorkerJob {
|
|
31491
31417
|
constructor(jobName, workerThread) {
|
|
31492
|
-
_defineProperty$
|
|
31493
|
-
_defineProperty$
|
|
31494
|
-
_defineProperty$
|
|
31495
|
-
_defineProperty$
|
|
31496
|
-
_defineProperty$
|
|
31418
|
+
_defineProperty$e(this, "name", void 0);
|
|
31419
|
+
_defineProperty$e(this, "workerThread", void 0);
|
|
31420
|
+
_defineProperty$e(this, "isRunning", true);
|
|
31421
|
+
_defineProperty$e(this, "result", void 0);
|
|
31422
|
+
_defineProperty$e(this, "_resolve", () => {
|
|
31497
31423
|
});
|
|
31498
|
-
_defineProperty$
|
|
31424
|
+
_defineProperty$e(this, "_reject", () => {
|
|
31499
31425
|
});
|
|
31500
31426
|
this.name = jobName;
|
|
31501
31427
|
this.workerThread = workerThread;
|
|
@@ -31599,14 +31525,14 @@ class WorkerThread {
|
|
|
31599
31525
|
return typeof Worker !== "undefined" && isBrowser$2 || typeof Worker$1 !== "undefined" && !isBrowser$2;
|
|
31600
31526
|
}
|
|
31601
31527
|
constructor(props) {
|
|
31602
|
-
_defineProperty$
|
|
31603
|
-
_defineProperty$
|
|
31604
|
-
_defineProperty$
|
|
31605
|
-
_defineProperty$
|
|
31606
|
-
_defineProperty$
|
|
31607
|
-
_defineProperty$
|
|
31608
|
-
_defineProperty$
|
|
31609
|
-
_defineProperty$
|
|
31528
|
+
_defineProperty$e(this, "name", void 0);
|
|
31529
|
+
_defineProperty$e(this, "source", void 0);
|
|
31530
|
+
_defineProperty$e(this, "url", void 0);
|
|
31531
|
+
_defineProperty$e(this, "terminated", false);
|
|
31532
|
+
_defineProperty$e(this, "worker", void 0);
|
|
31533
|
+
_defineProperty$e(this, "onMessage", void 0);
|
|
31534
|
+
_defineProperty$e(this, "onError", void 0);
|
|
31535
|
+
_defineProperty$e(this, "_loadableURL", "");
|
|
31610
31536
|
const {
|
|
31611
31537
|
name: name2,
|
|
31612
31538
|
source,
|
|
@@ -31697,19 +31623,19 @@ class WorkerPool {
|
|
|
31697
31623
|
return WorkerThread.isSupported();
|
|
31698
31624
|
}
|
|
31699
31625
|
constructor(props) {
|
|
31700
|
-
_defineProperty$
|
|
31701
|
-
_defineProperty$
|
|
31702
|
-
_defineProperty$
|
|
31703
|
-
_defineProperty$
|
|
31704
|
-
_defineProperty$
|
|
31705
|
-
_defineProperty$
|
|
31706
|
-
});
|
|
31707
|
-
_defineProperty$
|
|
31708
|
-
_defineProperty$
|
|
31709
|
-
_defineProperty$
|
|
31710
|
-
_defineProperty$
|
|
31711
|
-
_defineProperty$
|
|
31712
|
-
_defineProperty$
|
|
31626
|
+
_defineProperty$e(this, "name", "unnamed");
|
|
31627
|
+
_defineProperty$e(this, "source", void 0);
|
|
31628
|
+
_defineProperty$e(this, "url", void 0);
|
|
31629
|
+
_defineProperty$e(this, "maxConcurrency", 1);
|
|
31630
|
+
_defineProperty$e(this, "maxMobileConcurrency", 1);
|
|
31631
|
+
_defineProperty$e(this, "onDebug", () => {
|
|
31632
|
+
});
|
|
31633
|
+
_defineProperty$e(this, "reuseWorkers", true);
|
|
31634
|
+
_defineProperty$e(this, "props", {});
|
|
31635
|
+
_defineProperty$e(this, "jobQueue", []);
|
|
31636
|
+
_defineProperty$e(this, "idleQueue", []);
|
|
31637
|
+
_defineProperty$e(this, "count", 0);
|
|
31638
|
+
_defineProperty$e(this, "isDestroyed", false);
|
|
31713
31639
|
this.source = props.source;
|
|
31714
31640
|
this.url = props.url;
|
|
31715
31641
|
this.setProps(props);
|
|
@@ -31827,8 +31753,8 @@ class WorkerFarm {
|
|
|
31827
31753
|
return WorkerFarm._workerFarm;
|
|
31828
31754
|
}
|
|
31829
31755
|
constructor(props) {
|
|
31830
|
-
_defineProperty$
|
|
31831
|
-
_defineProperty$
|
|
31756
|
+
_defineProperty$e(this, "props", void 0);
|
|
31757
|
+
_defineProperty$e(this, "workerPools", /* @__PURE__ */ new Map());
|
|
31832
31758
|
this.props = {
|
|
31833
31759
|
...DEFAULT_PROPS$4
|
|
31834
31760
|
};
|
|
@@ -31877,7 +31803,7 @@ class WorkerFarm {
|
|
|
31877
31803
|
};
|
|
31878
31804
|
}
|
|
31879
31805
|
}
|
|
31880
|
-
_defineProperty$
|
|
31806
|
+
_defineProperty$e(WorkerFarm, "_workerFarm", void 0);
|
|
31881
31807
|
const NPM_TAG = "latest";
|
|
31882
31808
|
function getWorkerURL(worker, options = {}) {
|
|
31883
31809
|
const workerOptions = options[worker.id] || {};
|
|
@@ -32184,20 +32110,20 @@ function getHiResTimestamp$1() {
|
|
|
32184
32110
|
}
|
|
32185
32111
|
class Stat {
|
|
32186
32112
|
constructor(name2, type2) {
|
|
32187
|
-
_defineProperty$
|
|
32188
|
-
_defineProperty$
|
|
32189
|
-
_defineProperty$
|
|
32190
|
-
_defineProperty$
|
|
32191
|
-
_defineProperty$
|
|
32192
|
-
_defineProperty$
|
|
32193
|
-
_defineProperty$
|
|
32194
|
-
_defineProperty$
|
|
32195
|
-
_defineProperty$
|
|
32196
|
-
_defineProperty$
|
|
32197
|
-
_defineProperty$
|
|
32198
|
-
_defineProperty$
|
|
32199
|
-
_defineProperty$
|
|
32200
|
-
_defineProperty$
|
|
32113
|
+
_defineProperty$e(this, "name", void 0);
|
|
32114
|
+
_defineProperty$e(this, "type", void 0);
|
|
32115
|
+
_defineProperty$e(this, "sampleSize", 1);
|
|
32116
|
+
_defineProperty$e(this, "time", void 0);
|
|
32117
|
+
_defineProperty$e(this, "count", void 0);
|
|
32118
|
+
_defineProperty$e(this, "samples", void 0);
|
|
32119
|
+
_defineProperty$e(this, "lastTiming", void 0);
|
|
32120
|
+
_defineProperty$e(this, "lastSampleTime", void 0);
|
|
32121
|
+
_defineProperty$e(this, "lastSampleCount", void 0);
|
|
32122
|
+
_defineProperty$e(this, "_count", 0);
|
|
32123
|
+
_defineProperty$e(this, "_time", 0);
|
|
32124
|
+
_defineProperty$e(this, "_samples", 0);
|
|
32125
|
+
_defineProperty$e(this, "_startTime", 0);
|
|
32126
|
+
_defineProperty$e(this, "_timerPending", false);
|
|
32201
32127
|
this.name = name2;
|
|
32202
32128
|
this.type = type2;
|
|
32203
32129
|
this.reset();
|
|
@@ -32294,8 +32220,8 @@ class Stat {
|
|
|
32294
32220
|
}
|
|
32295
32221
|
class Stats {
|
|
32296
32222
|
constructor(options) {
|
|
32297
|
-
_defineProperty$
|
|
32298
|
-
_defineProperty$
|
|
32223
|
+
_defineProperty$e(this, "id", void 0);
|
|
32224
|
+
_defineProperty$e(this, "stats", {});
|
|
32299
32225
|
this.id = options.id;
|
|
32300
32226
|
this.stats = {};
|
|
32301
32227
|
this._initializeStats(options.stats);
|
|
@@ -32368,12 +32294,12 @@ const DEFAULT_PROPS$3 = {
|
|
|
32368
32294
|
};
|
|
32369
32295
|
class RequestScheduler {
|
|
32370
32296
|
constructor(props = {}) {
|
|
32371
|
-
_defineProperty$
|
|
32372
|
-
_defineProperty$
|
|
32373
|
-
_defineProperty$
|
|
32374
|
-
_defineProperty$
|
|
32375
|
-
_defineProperty$
|
|
32376
|
-
_defineProperty$
|
|
32297
|
+
_defineProperty$e(this, "props", void 0);
|
|
32298
|
+
_defineProperty$e(this, "stats", void 0);
|
|
32299
|
+
_defineProperty$e(this, "activeRequestCount", 0);
|
|
32300
|
+
_defineProperty$e(this, "requestQueue", []);
|
|
32301
|
+
_defineProperty$e(this, "requestMap", /* @__PURE__ */ new Map());
|
|
32302
|
+
_defineProperty$e(this, "deferredUpdate", null);
|
|
32377
32303
|
this.props = {
|
|
32378
32304
|
...DEFAULT_PROPS$3,
|
|
32379
32305
|
...props
|
|
@@ -32736,9 +32662,9 @@ class LocalStorage {
|
|
|
32736
32662
|
constructor(id) {
|
|
32737
32663
|
let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32738
32664
|
let type2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
|
|
32739
|
-
_defineProperty$
|
|
32740
|
-
_defineProperty$
|
|
32741
|
-
_defineProperty$
|
|
32665
|
+
_defineProperty$e(this, "storage", void 0);
|
|
32666
|
+
_defineProperty$e(this, "id", void 0);
|
|
32667
|
+
_defineProperty$e(this, "config", {});
|
|
32742
32668
|
this.storage = getStorage(type2);
|
|
32743
32669
|
this.id = id;
|
|
32744
32670
|
this.config = {};
|
|
@@ -32889,13 +32815,13 @@ class Log {
|
|
|
32889
32815
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
32890
32816
|
id: ""
|
|
32891
32817
|
};
|
|
32892
|
-
_defineProperty$
|
|
32893
|
-
_defineProperty$
|
|
32894
|
-
_defineProperty$
|
|
32895
|
-
_defineProperty$
|
|
32896
|
-
_defineProperty$
|
|
32897
|
-
_defineProperty$
|
|
32898
|
-
_defineProperty$
|
|
32818
|
+
_defineProperty$e(this, "id", void 0);
|
|
32819
|
+
_defineProperty$e(this, "VERSION", VERSION$9);
|
|
32820
|
+
_defineProperty$e(this, "_startTs", getHiResTimestamp());
|
|
32821
|
+
_defineProperty$e(this, "_deltaTs", getHiResTimestamp());
|
|
32822
|
+
_defineProperty$e(this, "_storage", void 0);
|
|
32823
|
+
_defineProperty$e(this, "userData", {});
|
|
32824
|
+
_defineProperty$e(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
32899
32825
|
this.id = id;
|
|
32900
32826
|
this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
|
|
32901
32827
|
this.userData = {};
|
|
@@ -33096,7 +33022,7 @@ class Log {
|
|
|
33096
33022
|
return noop$4;
|
|
33097
33023
|
}
|
|
33098
33024
|
}
|
|
33099
|
-
_defineProperty$
|
|
33025
|
+
_defineProperty$e(Log, "VERSION", VERSION$9);
|
|
33100
33026
|
function normalizeLogLevel(logLevel) {
|
|
33101
33027
|
if (!logLevel) {
|
|
33102
33028
|
return 0;
|
|
@@ -33225,7 +33151,7 @@ class NullLog {
|
|
|
33225
33151
|
}
|
|
33226
33152
|
class ConsoleLog {
|
|
33227
33153
|
constructor() {
|
|
33228
|
-
_defineProperty$
|
|
33154
|
+
_defineProperty$e(this, "console", void 0);
|
|
33229
33155
|
this.console = console;
|
|
33230
33156
|
}
|
|
33231
33157
|
log(...args) {
|
|
@@ -45049,10 +44975,10 @@ class SphericalCoordinates {
|
|
|
45049
44975
|
altitude,
|
|
45050
44976
|
radiusScale = EARTH_RADIUS_METERS
|
|
45051
44977
|
} = {}) {
|
|
45052
|
-
_defineProperty$
|
|
45053
|
-
_defineProperty$
|
|
45054
|
-
_defineProperty$
|
|
45055
|
-
_defineProperty$
|
|
44978
|
+
_defineProperty$e(this, "phi", void 0);
|
|
44979
|
+
_defineProperty$e(this, "theta", void 0);
|
|
44980
|
+
_defineProperty$e(this, "radius", void 0);
|
|
44981
|
+
_defineProperty$e(this, "radiusScale", void 0);
|
|
45056
44982
|
this.phi = phi;
|
|
45057
44983
|
this.theta = theta;
|
|
45058
44984
|
this.radius = radius || altitude || 1;
|
|
@@ -45586,8 +45512,8 @@ class Pose {
|
|
|
45586
45512
|
position,
|
|
45587
45513
|
orientation
|
|
45588
45514
|
} = {}) {
|
|
45589
|
-
_defineProperty$
|
|
45590
|
-
_defineProperty$
|
|
45515
|
+
_defineProperty$e(this, "position", void 0);
|
|
45516
|
+
_defineProperty$e(this, "orientation", void 0);
|
|
45591
45517
|
if (Array.isArray(position) && position.length === 3) {
|
|
45592
45518
|
this.position = new Vector3(position);
|
|
45593
45519
|
} else {
|
|
@@ -48859,31 +48785,31 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
|
48859
48785
|
width: 1,
|
|
48860
48786
|
height: 1
|
|
48861
48787
|
}) {
|
|
48862
|
-
_defineProperty$
|
|
48863
|
-
_defineProperty$
|
|
48864
|
-
_defineProperty$
|
|
48865
|
-
_defineProperty$
|
|
48866
|
-
_defineProperty$
|
|
48867
|
-
_defineProperty$
|
|
48868
|
-
_defineProperty$
|
|
48869
|
-
_defineProperty$
|
|
48870
|
-
_defineProperty$
|
|
48871
|
-
_defineProperty$
|
|
48872
|
-
_defineProperty$
|
|
48873
|
-
_defineProperty$
|
|
48874
|
-
_defineProperty$
|
|
48875
|
-
_defineProperty$
|
|
48876
|
-
_defineProperty$
|
|
48877
|
-
_defineProperty$
|
|
48878
|
-
_defineProperty$
|
|
48879
|
-
_defineProperty$
|
|
48880
|
-
_defineProperty$
|
|
48788
|
+
_defineProperty$e(this, "latitude", void 0);
|
|
48789
|
+
_defineProperty$e(this, "longitude", void 0);
|
|
48790
|
+
_defineProperty$e(this, "zoom", void 0);
|
|
48791
|
+
_defineProperty$e(this, "pitch", void 0);
|
|
48792
|
+
_defineProperty$e(this, "bearing", void 0);
|
|
48793
|
+
_defineProperty$e(this, "altitude", void 0);
|
|
48794
|
+
_defineProperty$e(this, "fovy", void 0);
|
|
48795
|
+
_defineProperty$e(this, "meterOffset", void 0);
|
|
48796
|
+
_defineProperty$e(this, "center", void 0);
|
|
48797
|
+
_defineProperty$e(this, "width", void 0);
|
|
48798
|
+
_defineProperty$e(this, "height", void 0);
|
|
48799
|
+
_defineProperty$e(this, "scale", void 0);
|
|
48800
|
+
_defineProperty$e(this, "distanceScales", void 0);
|
|
48801
|
+
_defineProperty$e(this, "viewMatrix", void 0);
|
|
48802
|
+
_defineProperty$e(this, "projectionMatrix", void 0);
|
|
48803
|
+
_defineProperty$e(this, "viewProjectionMatrix", void 0);
|
|
48804
|
+
_defineProperty$e(this, "pixelProjectionMatrix", void 0);
|
|
48805
|
+
_defineProperty$e(this, "pixelUnprojectionMatrix", void 0);
|
|
48806
|
+
_defineProperty$e(this, "equals", (viewport) => {
|
|
48881
48807
|
if (!(viewport instanceof WebMercatorViewport)) {
|
|
48882
48808
|
return false;
|
|
48883
48809
|
}
|
|
48884
48810
|
return viewport.width === this.width && viewport.height === this.height && equals$2(viewport.projectionMatrix, this.projectionMatrix) && equals$2(viewport.viewMatrix, this.viewMatrix);
|
|
48885
48811
|
});
|
|
48886
|
-
_defineProperty$
|
|
48812
|
+
_defineProperty$e(this, "project", (lngLatZ, options = {}) => {
|
|
48887
48813
|
const {
|
|
48888
48814
|
topLeft = true
|
|
48889
48815
|
} = options;
|
|
@@ -48893,7 +48819,7 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
|
48893
48819
|
const y22 = topLeft ? y2 : this.height - y2;
|
|
48894
48820
|
return lngLatZ.length === 2 ? [x2, y22] : [x2, y22, coord[2]];
|
|
48895
48821
|
});
|
|
48896
|
-
_defineProperty$
|
|
48822
|
+
_defineProperty$e(this, "unproject", (xyz, options = {}) => {
|
|
48897
48823
|
const {
|
|
48898
48824
|
topLeft = true,
|
|
48899
48825
|
targetZ = void 0
|
|
@@ -48908,12 +48834,12 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
|
48908
48834
|
}
|
|
48909
48835
|
return Number.isFinite(targetZ) ? [X, Y, targetZ] : [X, Y];
|
|
48910
48836
|
});
|
|
48911
|
-
_defineProperty$
|
|
48837
|
+
_defineProperty$e(this, "projectPosition", (xyz) => {
|
|
48912
48838
|
const [X, Y] = lngLatToWorld(xyz);
|
|
48913
48839
|
const Z = (xyz[2] || 0) * this.distanceScales.unitsPerMeter[2];
|
|
48914
48840
|
return [X, Y, Z];
|
|
48915
48841
|
});
|
|
48916
|
-
_defineProperty$
|
|
48842
|
+
_defineProperty$e(this, "unprojectPosition", (xyz) => {
|
|
48917
48843
|
const [X, Y] = worldToLngLat(xyz);
|
|
48918
48844
|
const Z = (xyz[2] || 0) * this.distanceScales.metersPerUnit[2];
|
|
48919
48845
|
return [X, Y, Z];
|
|
@@ -49350,10 +49276,10 @@ const DEFAULT_LIGHT_INTENSITY$2 = 1;
|
|
|
49350
49276
|
let idCount$2 = 0;
|
|
49351
49277
|
class AmbientLight {
|
|
49352
49278
|
constructor(props = {}) {
|
|
49353
|
-
_defineProperty$
|
|
49354
|
-
_defineProperty$
|
|
49355
|
-
_defineProperty$
|
|
49356
|
-
_defineProperty$
|
|
49279
|
+
_defineProperty$e(this, "id", void 0);
|
|
49280
|
+
_defineProperty$e(this, "color", void 0);
|
|
49281
|
+
_defineProperty$e(this, "intensity", void 0);
|
|
49282
|
+
_defineProperty$e(this, "type", "ambient");
|
|
49357
49283
|
const {
|
|
49358
49284
|
color: color2 = DEFAULT_LIGHT_COLOR$2
|
|
49359
49285
|
} = props;
|
|
@@ -49371,12 +49297,12 @@ const DEFAULT_LIGHT_DIRECTION = [0, 0, -1];
|
|
|
49371
49297
|
let idCount$1 = 0;
|
|
49372
49298
|
class DirectionalLight {
|
|
49373
49299
|
constructor(props = {}) {
|
|
49374
|
-
_defineProperty$
|
|
49375
|
-
_defineProperty$
|
|
49376
|
-
_defineProperty$
|
|
49377
|
-
_defineProperty$
|
|
49378
|
-
_defineProperty$
|
|
49379
|
-
_defineProperty$
|
|
49300
|
+
_defineProperty$e(this, "id", void 0);
|
|
49301
|
+
_defineProperty$e(this, "color", void 0);
|
|
49302
|
+
_defineProperty$e(this, "intensity", void 0);
|
|
49303
|
+
_defineProperty$e(this, "type", "directional");
|
|
49304
|
+
_defineProperty$e(this, "direction", void 0);
|
|
49305
|
+
_defineProperty$e(this, "shadow", void 0);
|
|
49380
49306
|
const {
|
|
49381
49307
|
color: color2 = DEFAULT_LIGHT_COLOR$1
|
|
49382
49308
|
} = props;
|
|
@@ -49404,9 +49330,9 @@ class Pass {
|
|
|
49404
49330
|
constructor(gl, props = {
|
|
49405
49331
|
id: "pass"
|
|
49406
49332
|
}) {
|
|
49407
|
-
_defineProperty$
|
|
49408
|
-
_defineProperty$
|
|
49409
|
-
_defineProperty$
|
|
49333
|
+
_defineProperty$e(this, "id", void 0);
|
|
49334
|
+
_defineProperty$e(this, "gl", void 0);
|
|
49335
|
+
_defineProperty$e(this, "props", void 0);
|
|
49410
49336
|
const {
|
|
49411
49337
|
id
|
|
49412
49338
|
} = props;
|
|
@@ -49427,7 +49353,7 @@ class Pass {
|
|
|
49427
49353
|
class LayersPass extends Pass {
|
|
49428
49354
|
constructor(...args) {
|
|
49429
49355
|
super(...args);
|
|
49430
|
-
_defineProperty$
|
|
49356
|
+
_defineProperty$e(this, "_lastRenderIndex", -1);
|
|
49431
49357
|
}
|
|
49432
49358
|
render(options) {
|
|
49433
49359
|
const gl = this.gl;
|
|
@@ -49674,9 +49600,9 @@ function clearGLCanvas(gl) {
|
|
|
49674
49600
|
class ShadowPass extends LayersPass {
|
|
49675
49601
|
constructor(gl, props) {
|
|
49676
49602
|
super(gl, props);
|
|
49677
|
-
_defineProperty$
|
|
49678
|
-
_defineProperty$
|
|
49679
|
-
_defineProperty$
|
|
49603
|
+
_defineProperty$e(this, "shadowMap", void 0);
|
|
49604
|
+
_defineProperty$e(this, "depthBuffer", void 0);
|
|
49605
|
+
_defineProperty$e(this, "fbo", void 0);
|
|
49680
49606
|
this.shadowMap = new Texture2D(gl, {
|
|
49681
49607
|
width: 1,
|
|
49682
49608
|
height: 1,
|
|
@@ -49766,18 +49692,18 @@ const DEFAULT_DIRECTIONAL_LIGHT_PROPS = [{
|
|
|
49766
49692
|
const DEFAULT_SHADOW_COLOR = [0, 0, 0, 200 / 255];
|
|
49767
49693
|
class LightingEffect {
|
|
49768
49694
|
constructor(props = {}) {
|
|
49769
|
-
_defineProperty$
|
|
49770
|
-
_defineProperty$
|
|
49771
|
-
_defineProperty$
|
|
49772
|
-
_defineProperty$
|
|
49773
|
-
_defineProperty$
|
|
49774
|
-
_defineProperty$
|
|
49775
|
-
_defineProperty$
|
|
49776
|
-
_defineProperty$
|
|
49777
|
-
_defineProperty$
|
|
49778
|
-
_defineProperty$
|
|
49779
|
-
_defineProperty$
|
|
49780
|
-
_defineProperty$
|
|
49695
|
+
_defineProperty$e(this, "id", "lighting-effect");
|
|
49696
|
+
_defineProperty$e(this, "props", null);
|
|
49697
|
+
_defineProperty$e(this, "shadowColor", DEFAULT_SHADOW_COLOR);
|
|
49698
|
+
_defineProperty$e(this, "shadow", void 0);
|
|
49699
|
+
_defineProperty$e(this, "ambientLight", null);
|
|
49700
|
+
_defineProperty$e(this, "directionalLights", []);
|
|
49701
|
+
_defineProperty$e(this, "pointLights", []);
|
|
49702
|
+
_defineProperty$e(this, "shadowPasses", []);
|
|
49703
|
+
_defineProperty$e(this, "shadowMaps", []);
|
|
49704
|
+
_defineProperty$e(this, "dummyShadowMap", null);
|
|
49705
|
+
_defineProperty$e(this, "programManager", void 0);
|
|
49706
|
+
_defineProperty$e(this, "shadowMatrices", void 0);
|
|
49781
49707
|
for (const key in props) {
|
|
49782
49708
|
const lightSource = props[key];
|
|
49783
49709
|
switch (lightSource.type) {
|
|
@@ -49900,8 +49826,8 @@ class LightingEffect {
|
|
|
49900
49826
|
}
|
|
49901
49827
|
class TypedArrayManager {
|
|
49902
49828
|
constructor(options = {}) {
|
|
49903
|
-
_defineProperty$
|
|
49904
|
-
_defineProperty$
|
|
49829
|
+
_defineProperty$e(this, "_pool", []);
|
|
49830
|
+
_defineProperty$e(this, "opts", {
|
|
49905
49831
|
overAlloc: 2,
|
|
49906
49832
|
poolSize: 100
|
|
49907
49833
|
});
|
|
@@ -50086,30 +50012,30 @@ function createProjectionMatrix({
|
|
|
50086
50012
|
}
|
|
50087
50013
|
class Viewport {
|
|
50088
50014
|
constructor(opts2 = {}) {
|
|
50089
|
-
_defineProperty$
|
|
50090
|
-
_defineProperty$
|
|
50091
|
-
_defineProperty$
|
|
50092
|
-
_defineProperty$
|
|
50093
|
-
_defineProperty$
|
|
50094
|
-
_defineProperty$
|
|
50095
|
-
_defineProperty$
|
|
50096
|
-
_defineProperty$
|
|
50097
|
-
_defineProperty$
|
|
50098
|
-
_defineProperty$
|
|
50099
|
-
_defineProperty$
|
|
50100
|
-
_defineProperty$
|
|
50101
|
-
_defineProperty$
|
|
50102
|
-
_defineProperty$
|
|
50103
|
-
_defineProperty$
|
|
50104
|
-
_defineProperty$
|
|
50105
|
-
_defineProperty$
|
|
50106
|
-
_defineProperty$
|
|
50107
|
-
_defineProperty$
|
|
50108
|
-
_defineProperty$
|
|
50109
|
-
_defineProperty$
|
|
50110
|
-
_defineProperty$
|
|
50111
|
-
_defineProperty$
|
|
50112
|
-
_defineProperty$
|
|
50015
|
+
_defineProperty$e(this, "id", void 0);
|
|
50016
|
+
_defineProperty$e(this, "x", void 0);
|
|
50017
|
+
_defineProperty$e(this, "y", void 0);
|
|
50018
|
+
_defineProperty$e(this, "width", void 0);
|
|
50019
|
+
_defineProperty$e(this, "height", void 0);
|
|
50020
|
+
_defineProperty$e(this, "padding", void 0);
|
|
50021
|
+
_defineProperty$e(this, "isGeospatial", void 0);
|
|
50022
|
+
_defineProperty$e(this, "zoom", void 0);
|
|
50023
|
+
_defineProperty$e(this, "focalDistance", void 0);
|
|
50024
|
+
_defineProperty$e(this, "position", void 0);
|
|
50025
|
+
_defineProperty$e(this, "modelMatrix", void 0);
|
|
50026
|
+
_defineProperty$e(this, "distanceScales", void 0);
|
|
50027
|
+
_defineProperty$e(this, "scale", void 0);
|
|
50028
|
+
_defineProperty$e(this, "center", void 0);
|
|
50029
|
+
_defineProperty$e(this, "cameraPosition", void 0);
|
|
50030
|
+
_defineProperty$e(this, "projectionMatrix", void 0);
|
|
50031
|
+
_defineProperty$e(this, "viewMatrix", void 0);
|
|
50032
|
+
_defineProperty$e(this, "viewMatrixUncentered", void 0);
|
|
50033
|
+
_defineProperty$e(this, "viewMatrixInverse", void 0);
|
|
50034
|
+
_defineProperty$e(this, "viewProjectionMatrix", void 0);
|
|
50035
|
+
_defineProperty$e(this, "pixelProjectionMatrix", void 0);
|
|
50036
|
+
_defineProperty$e(this, "pixelUnprojectionMatrix", void 0);
|
|
50037
|
+
_defineProperty$e(this, "resolution", void 0);
|
|
50038
|
+
_defineProperty$e(this, "_frustumPlanes", {});
|
|
50113
50039
|
this.id = opts2.id || this.constructor.displayName || "viewport";
|
|
50114
50040
|
this.x = opts2.x || 0;
|
|
50115
50041
|
this.y = opts2.y || 0;
|
|
@@ -50315,7 +50241,7 @@ class Viewport {
|
|
|
50315
50241
|
}
|
|
50316
50242
|
}
|
|
50317
50243
|
}
|
|
50318
|
-
_defineProperty$
|
|
50244
|
+
_defineProperty$e(Viewport, "displayName", "Viewport");
|
|
50319
50245
|
const TILE_SIZE$4 = 512;
|
|
50320
50246
|
const EARTH_CIRCUMFERENCE = 4003e4;
|
|
50321
50247
|
const DEGREES_TO_RADIANS$3 = Math.PI / 180;
|
|
@@ -50391,15 +50317,15 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
50391
50317
|
fovy,
|
|
50392
50318
|
focalDistance: altitude
|
|
50393
50319
|
});
|
|
50394
|
-
_defineProperty$
|
|
50395
|
-
_defineProperty$
|
|
50396
|
-
_defineProperty$
|
|
50397
|
-
_defineProperty$
|
|
50398
|
-
_defineProperty$
|
|
50399
|
-
_defineProperty$
|
|
50400
|
-
_defineProperty$
|
|
50401
|
-
_defineProperty$
|
|
50402
|
-
_defineProperty$
|
|
50320
|
+
_defineProperty$e(this, "longitude", void 0);
|
|
50321
|
+
_defineProperty$e(this, "latitude", void 0);
|
|
50322
|
+
_defineProperty$e(this, "pitch", void 0);
|
|
50323
|
+
_defineProperty$e(this, "bearing", void 0);
|
|
50324
|
+
_defineProperty$e(this, "altitude", void 0);
|
|
50325
|
+
_defineProperty$e(this, "fovy", void 0);
|
|
50326
|
+
_defineProperty$e(this, "orthographic", void 0);
|
|
50327
|
+
_defineProperty$e(this, "_subViewports", void 0);
|
|
50328
|
+
_defineProperty$e(this, "_pseudoMeters", void 0);
|
|
50403
50329
|
this.latitude = latitude;
|
|
50404
50330
|
this.longitude = longitude;
|
|
50405
50331
|
this.zoom = zoom;
|
|
@@ -50485,7 +50411,7 @@ class WebMercatorViewport2 extends Viewport {
|
|
|
50485
50411
|
});
|
|
50486
50412
|
}
|
|
50487
50413
|
}
|
|
50488
|
-
_defineProperty$
|
|
50414
|
+
_defineProperty$e(WebMercatorViewport2, "displayName", "WebMercatorViewport");
|
|
50489
50415
|
function lngLatZToWorldPosition(lngLatZ, viewport, offsetMode = false) {
|
|
50490
50416
|
const p = viewport.projectPosition(lngLatZ);
|
|
50491
50417
|
if (offsetMode && viewport instanceof WebMercatorViewport2) {
|
|
@@ -50581,13 +50507,13 @@ const DEFAULT_LIGHT_POSITION = [0, 0, 1];
|
|
|
50581
50507
|
let idCount = 0;
|
|
50582
50508
|
class PointLight {
|
|
50583
50509
|
constructor(props = {}) {
|
|
50584
|
-
_defineProperty$
|
|
50585
|
-
_defineProperty$
|
|
50586
|
-
_defineProperty$
|
|
50587
|
-
_defineProperty$
|
|
50588
|
-
_defineProperty$
|
|
50589
|
-
_defineProperty$
|
|
50590
|
-
_defineProperty$
|
|
50510
|
+
_defineProperty$e(this, "id", void 0);
|
|
50511
|
+
_defineProperty$e(this, "color", void 0);
|
|
50512
|
+
_defineProperty$e(this, "intensity", void 0);
|
|
50513
|
+
_defineProperty$e(this, "type", "point");
|
|
50514
|
+
_defineProperty$e(this, "position", void 0);
|
|
50515
|
+
_defineProperty$e(this, "attenuation", void 0);
|
|
50516
|
+
_defineProperty$e(this, "projectedLight", void 0);
|
|
50591
50517
|
const {
|
|
50592
50518
|
color: color2 = DEFAULT_LIGHT_COLOR
|
|
50593
50519
|
} = props;
|
|
@@ -50744,7 +50670,7 @@ function getSunCoords(dates) {
|
|
|
50744
50670
|
class SunLight extends DirectionalLight {
|
|
50745
50671
|
constructor(opts2) {
|
|
50746
50672
|
super(opts2);
|
|
50747
|
-
_defineProperty$
|
|
50673
|
+
_defineProperty$e(this, "timestamp", void 0);
|
|
50748
50674
|
this.timestamp = opts2.timestamp;
|
|
50749
50675
|
}
|
|
50750
50676
|
getProjectedLight({
|
|
@@ -50770,7 +50696,7 @@ class SunLight extends DirectionalLight {
|
|
|
50770
50696
|
class ScreenPass extends Pass {
|
|
50771
50697
|
constructor(gl, props) {
|
|
50772
50698
|
super(gl, props);
|
|
50773
|
-
_defineProperty$
|
|
50699
|
+
_defineProperty$e(this, "model", void 0);
|
|
50774
50700
|
const {
|
|
50775
50701
|
module: module2,
|
|
50776
50702
|
fs: fs2,
|
|
@@ -50818,10 +50744,10 @@ class ScreenPass extends Pass {
|
|
|
50818
50744
|
}
|
|
50819
50745
|
class PostProcessEffect {
|
|
50820
50746
|
constructor(module2, props = {}) {
|
|
50821
|
-
_defineProperty$
|
|
50822
|
-
_defineProperty$
|
|
50823
|
-
_defineProperty$
|
|
50824
|
-
_defineProperty$
|
|
50747
|
+
_defineProperty$e(this, "id", void 0);
|
|
50748
|
+
_defineProperty$e(this, "props", void 0);
|
|
50749
|
+
_defineProperty$e(this, "module", void 0);
|
|
50750
|
+
_defineProperty$e(this, "passes", void 0);
|
|
50825
50751
|
this.id = "".concat(module2.name, "-pass");
|
|
50826
50752
|
this.props = props;
|
|
50827
50753
|
normalizeShaderModule(module2);
|
|
@@ -50950,16 +50876,16 @@ function fillArray({
|
|
|
50950
50876
|
}
|
|
50951
50877
|
class Resource2 {
|
|
50952
50878
|
constructor(id, data, context) {
|
|
50953
|
-
_defineProperty$
|
|
50954
|
-
_defineProperty$
|
|
50955
|
-
_defineProperty$
|
|
50956
|
-
_defineProperty$
|
|
50957
|
-
_defineProperty$
|
|
50958
|
-
_defineProperty$
|
|
50959
|
-
_defineProperty$
|
|
50960
|
-
_defineProperty$
|
|
50961
|
-
_defineProperty$
|
|
50962
|
-
_defineProperty$
|
|
50879
|
+
_defineProperty$e(this, "id", void 0);
|
|
50880
|
+
_defineProperty$e(this, "context", void 0);
|
|
50881
|
+
_defineProperty$e(this, "isLoaded", void 0);
|
|
50882
|
+
_defineProperty$e(this, "persistent", void 0);
|
|
50883
|
+
_defineProperty$e(this, "_loadCount", 0);
|
|
50884
|
+
_defineProperty$e(this, "_subscribers", /* @__PURE__ */ new Set());
|
|
50885
|
+
_defineProperty$e(this, "_data", void 0);
|
|
50886
|
+
_defineProperty$e(this, "_loader", void 0);
|
|
50887
|
+
_defineProperty$e(this, "_error", void 0);
|
|
50888
|
+
_defineProperty$e(this, "_content", void 0);
|
|
50963
50889
|
this.id = id;
|
|
50964
50890
|
this.context = context;
|
|
50965
50891
|
this.setData(data);
|
|
@@ -51017,11 +50943,11 @@ class ResourceManager {
|
|
|
51017
50943
|
gl,
|
|
51018
50944
|
protocol
|
|
51019
50945
|
}) {
|
|
51020
|
-
_defineProperty$
|
|
51021
|
-
_defineProperty$
|
|
51022
|
-
_defineProperty$
|
|
51023
|
-
_defineProperty$
|
|
51024
|
-
_defineProperty$
|
|
50946
|
+
_defineProperty$e(this, "protocol", void 0);
|
|
50947
|
+
_defineProperty$e(this, "_context", void 0);
|
|
50948
|
+
_defineProperty$e(this, "_resources", void 0);
|
|
50949
|
+
_defineProperty$e(this, "_consumers", void 0);
|
|
50950
|
+
_defineProperty$e(this, "_pruneRequest", void 0);
|
|
51025
50951
|
this.protocol = protocol || "resource://";
|
|
51026
50952
|
this._context = {
|
|
51027
50953
|
gl,
|
|
@@ -51148,15 +51074,15 @@ class LayerManager {
|
|
|
51148
51074
|
viewport: _viewport,
|
|
51149
51075
|
timeline
|
|
51150
51076
|
} = {}) {
|
|
51151
|
-
_defineProperty$
|
|
51152
|
-
_defineProperty$
|
|
51153
|
-
_defineProperty$
|
|
51154
|
-
_defineProperty$
|
|
51155
|
-
_defineProperty$
|
|
51156
|
-
_defineProperty$
|
|
51157
|
-
_defineProperty$
|
|
51158
|
-
_defineProperty$
|
|
51159
|
-
_defineProperty$
|
|
51077
|
+
_defineProperty$e(this, "layers", void 0);
|
|
51078
|
+
_defineProperty$e(this, "context", void 0);
|
|
51079
|
+
_defineProperty$e(this, "resourceManager", void 0);
|
|
51080
|
+
_defineProperty$e(this, "_lastRenderedLayers", []);
|
|
51081
|
+
_defineProperty$e(this, "_needsRedraw", false);
|
|
51082
|
+
_defineProperty$e(this, "_needsUpdate", false);
|
|
51083
|
+
_defineProperty$e(this, "_nextLayers", null);
|
|
51084
|
+
_defineProperty$e(this, "_debug", false);
|
|
51085
|
+
_defineProperty$e(this, "activateViewport", (viewport) => {
|
|
51160
51086
|
debug(TRACE_ACTIVATE_VIEWPORT, this, viewport);
|
|
51161
51087
|
if (viewport) {
|
|
51162
51088
|
this.context.viewport = viewport;
|
|
@@ -51367,19 +51293,19 @@ function deepEqual$2(a2, b) {
|
|
|
51367
51293
|
}
|
|
51368
51294
|
class ViewManager {
|
|
51369
51295
|
constructor(props) {
|
|
51370
|
-
_defineProperty$
|
|
51371
|
-
_defineProperty$
|
|
51372
|
-
_defineProperty$
|
|
51373
|
-
_defineProperty$
|
|
51374
|
-
_defineProperty$
|
|
51375
|
-
_defineProperty$
|
|
51376
|
-
_defineProperty$
|
|
51377
|
-
_defineProperty$
|
|
51378
|
-
_defineProperty$
|
|
51379
|
-
_defineProperty$
|
|
51380
|
-
_defineProperty$
|
|
51381
|
-
_defineProperty$
|
|
51382
|
-
_defineProperty$
|
|
51296
|
+
_defineProperty$e(this, "width", void 0);
|
|
51297
|
+
_defineProperty$e(this, "height", void 0);
|
|
51298
|
+
_defineProperty$e(this, "views", void 0);
|
|
51299
|
+
_defineProperty$e(this, "viewState", void 0);
|
|
51300
|
+
_defineProperty$e(this, "controllers", void 0);
|
|
51301
|
+
_defineProperty$e(this, "timeline", void 0);
|
|
51302
|
+
_defineProperty$e(this, "_viewports", void 0);
|
|
51303
|
+
_defineProperty$e(this, "_viewportMap", void 0);
|
|
51304
|
+
_defineProperty$e(this, "_isUpdating", void 0);
|
|
51305
|
+
_defineProperty$e(this, "_needsRedraw", void 0);
|
|
51306
|
+
_defineProperty$e(this, "_needsUpdate", void 0);
|
|
51307
|
+
_defineProperty$e(this, "_eventManager", void 0);
|
|
51308
|
+
_defineProperty$e(this, "_eventCallbacks", void 0);
|
|
51383
51309
|
this.views = [];
|
|
51384
51310
|
this.width = 100;
|
|
51385
51311
|
this.height = 100;
|
|
@@ -51653,14 +51579,14 @@ function assert$4(condition, message) {
|
|
|
51653
51579
|
}
|
|
51654
51580
|
class View {
|
|
51655
51581
|
constructor(props) {
|
|
51656
|
-
_defineProperty$
|
|
51657
|
-
_defineProperty$
|
|
51658
|
-
_defineProperty$
|
|
51659
|
-
_defineProperty$
|
|
51660
|
-
_defineProperty$
|
|
51661
|
-
_defineProperty$
|
|
51662
|
-
_defineProperty$
|
|
51663
|
-
_defineProperty$
|
|
51582
|
+
_defineProperty$e(this, "id", void 0);
|
|
51583
|
+
_defineProperty$e(this, "viewportInstance", void 0);
|
|
51584
|
+
_defineProperty$e(this, "_x", void 0);
|
|
51585
|
+
_defineProperty$e(this, "_y", void 0);
|
|
51586
|
+
_defineProperty$e(this, "_width", void 0);
|
|
51587
|
+
_defineProperty$e(this, "_height", void 0);
|
|
51588
|
+
_defineProperty$e(this, "_padding", void 0);
|
|
51589
|
+
_defineProperty$e(this, "props", void 0);
|
|
51664
51590
|
const {
|
|
51665
51591
|
id,
|
|
51666
51592
|
x: x2 = 0,
|
|
@@ -51787,11 +51713,11 @@ class View {
|
|
|
51787
51713
|
}
|
|
51788
51714
|
class Transition {
|
|
51789
51715
|
constructor(timeline) {
|
|
51790
|
-
_defineProperty$
|
|
51791
|
-
_defineProperty$
|
|
51792
|
-
_defineProperty$
|
|
51793
|
-
_defineProperty$
|
|
51794
|
-
_defineProperty$
|
|
51716
|
+
_defineProperty$e(this, "_inProgress", void 0);
|
|
51717
|
+
_defineProperty$e(this, "_handle", void 0);
|
|
51718
|
+
_defineProperty$e(this, "_timeline", void 0);
|
|
51719
|
+
_defineProperty$e(this, "time", void 0);
|
|
51720
|
+
_defineProperty$e(this, "settings", void 0);
|
|
51795
51721
|
this._inProgress = false;
|
|
51796
51722
|
this._handle = null;
|
|
51797
51723
|
this._timeline = timeline;
|
|
@@ -51865,13 +51791,13 @@ const DEFAULT_EASING = (t2) => t2;
|
|
|
51865
51791
|
const DEFAULT_INTERRUPTION = TRANSITION_EVENTS.BREAK;
|
|
51866
51792
|
class TransitionManager {
|
|
51867
51793
|
constructor(opts2) {
|
|
51868
|
-
_defineProperty$
|
|
51869
|
-
_defineProperty$
|
|
51870
|
-
_defineProperty$
|
|
51871
|
-
_defineProperty$
|
|
51872
|
-
_defineProperty$
|
|
51873
|
-
_defineProperty$
|
|
51874
|
-
_defineProperty$
|
|
51794
|
+
_defineProperty$e(this, "getControllerState", void 0);
|
|
51795
|
+
_defineProperty$e(this, "props", void 0);
|
|
51796
|
+
_defineProperty$e(this, "propsInTransition", void 0);
|
|
51797
|
+
_defineProperty$e(this, "transition", void 0);
|
|
51798
|
+
_defineProperty$e(this, "onViewStateChange", void 0);
|
|
51799
|
+
_defineProperty$e(this, "onStateChange", void 0);
|
|
51800
|
+
_defineProperty$e(this, "_onTransitionUpdate", (transition2) => {
|
|
51875
51801
|
const {
|
|
51876
51802
|
time,
|
|
51877
51803
|
settings: {
|
|
@@ -51999,9 +51925,9 @@ class TransitionManager {
|
|
|
51999
51925
|
}
|
|
52000
51926
|
class TransitionInterpolator {
|
|
52001
51927
|
constructor(opts2) {
|
|
52002
|
-
_defineProperty$
|
|
52003
|
-
_defineProperty$
|
|
52004
|
-
_defineProperty$
|
|
51928
|
+
_defineProperty$e(this, "_propsToCompare", void 0);
|
|
51929
|
+
_defineProperty$e(this, "_propsToExtract", void 0);
|
|
51930
|
+
_defineProperty$e(this, "_requiredProps", void 0);
|
|
52005
51931
|
const {
|
|
52006
51932
|
compare: compare2,
|
|
52007
51933
|
extract,
|
|
@@ -52062,7 +51988,7 @@ class LinearInterpolator extends TransitionInterpolator {
|
|
|
52062
51988
|
required: DEFAULT_REQUIRED_PROPS
|
|
52063
51989
|
};
|
|
52064
51990
|
super(normalizedOpts.transitionProps);
|
|
52065
|
-
_defineProperty$
|
|
51991
|
+
_defineProperty$e(this, "opts", void 0);
|
|
52066
51992
|
this.opts = normalizedOpts;
|
|
52067
51993
|
}
|
|
52068
51994
|
initializeProps(startProps, endProps) {
|
|
@@ -52116,31 +52042,31 @@ const EVENT_TYPES = {
|
|
|
52116
52042
|
const pinchEventWorkaround = {};
|
|
52117
52043
|
class Controller {
|
|
52118
52044
|
constructor(opts2) {
|
|
52119
|
-
_defineProperty$
|
|
52120
|
-
_defineProperty$
|
|
52121
|
-
_defineProperty$
|
|
52122
|
-
_defineProperty$
|
|
52123
|
-
_defineProperty$
|
|
52124
|
-
_defineProperty$
|
|
52125
|
-
_defineProperty$
|
|
52126
|
-
_defineProperty$
|
|
52127
|
-
_defineProperty$
|
|
52128
|
-
_defineProperty$
|
|
52045
|
+
_defineProperty$e(this, "props", void 0);
|
|
52046
|
+
_defineProperty$e(this, "state", {});
|
|
52047
|
+
_defineProperty$e(this, "transitionManager", void 0);
|
|
52048
|
+
_defineProperty$e(this, "eventManager", void 0);
|
|
52049
|
+
_defineProperty$e(this, "onViewStateChange", void 0);
|
|
52050
|
+
_defineProperty$e(this, "onStateChange", void 0);
|
|
52051
|
+
_defineProperty$e(this, "makeViewport", void 0);
|
|
52052
|
+
_defineProperty$e(this, "_controllerState", void 0);
|
|
52053
|
+
_defineProperty$e(this, "_events", {});
|
|
52054
|
+
_defineProperty$e(this, "_interactionState", {
|
|
52129
52055
|
isDragging: false
|
|
52130
52056
|
});
|
|
52131
|
-
_defineProperty$
|
|
52132
|
-
_defineProperty$
|
|
52133
|
-
_defineProperty$
|
|
52134
|
-
_defineProperty$
|
|
52135
|
-
_defineProperty$
|
|
52136
|
-
_defineProperty$
|
|
52137
|
-
_defineProperty$
|
|
52138
|
-
_defineProperty$
|
|
52139
|
-
_defineProperty$
|
|
52140
|
-
_defineProperty$
|
|
52141
|
-
_defineProperty$
|
|
52142
|
-
_defineProperty$
|
|
52143
|
-
_defineProperty$
|
|
52057
|
+
_defineProperty$e(this, "_customEvents", []);
|
|
52058
|
+
_defineProperty$e(this, "_eventStartBlocked", null);
|
|
52059
|
+
_defineProperty$e(this, "_panMove", false);
|
|
52060
|
+
_defineProperty$e(this, "invertPan", false);
|
|
52061
|
+
_defineProperty$e(this, "dragMode", "rotate");
|
|
52062
|
+
_defineProperty$e(this, "inertia", 0);
|
|
52063
|
+
_defineProperty$e(this, "scrollZoom", true);
|
|
52064
|
+
_defineProperty$e(this, "dragPan", true);
|
|
52065
|
+
_defineProperty$e(this, "dragRotate", true);
|
|
52066
|
+
_defineProperty$e(this, "doubleClickZoom", true);
|
|
52067
|
+
_defineProperty$e(this, "touchZoom", true);
|
|
52068
|
+
_defineProperty$e(this, "touchRotate", false);
|
|
52069
|
+
_defineProperty$e(this, "keyboard", true);
|
|
52144
52070
|
this.transitionManager = new TransitionManager({
|
|
52145
52071
|
...opts2,
|
|
52146
52072
|
getControllerState: (props) => new this.ControllerState(props),
|
|
@@ -52751,8 +52677,8 @@ class Controller {
|
|
|
52751
52677
|
}
|
|
52752
52678
|
class ViewState {
|
|
52753
52679
|
constructor(props, state) {
|
|
52754
|
-
_defineProperty$
|
|
52755
|
-
_defineProperty$
|
|
52680
|
+
_defineProperty$e(this, "_viewportProps", void 0);
|
|
52681
|
+
_defineProperty$e(this, "_state", void 0);
|
|
52756
52682
|
this._viewportProps = this.applyConstraints(props);
|
|
52757
52683
|
this._state = state;
|
|
52758
52684
|
}
|
|
@@ -52815,7 +52741,7 @@ class MapState extends ViewState {
|
|
|
52815
52741
|
startPitch,
|
|
52816
52742
|
startZoom
|
|
52817
52743
|
});
|
|
52818
|
-
_defineProperty$
|
|
52744
|
+
_defineProperty$e(this, "makeViewport", void 0);
|
|
52819
52745
|
this.makeViewport = options.makeViewport;
|
|
52820
52746
|
}
|
|
52821
52747
|
panStart({
|
|
@@ -53075,8 +53001,8 @@ class MapState extends ViewState {
|
|
|
53075
53001
|
class MapController extends Controller {
|
|
53076
53002
|
constructor(...args) {
|
|
53077
53003
|
super(...args);
|
|
53078
|
-
_defineProperty$
|
|
53079
|
-
_defineProperty$
|
|
53004
|
+
_defineProperty$e(this, "ControllerState", MapState);
|
|
53005
|
+
_defineProperty$e(this, "transition", {
|
|
53080
53006
|
transitionDuration: 300,
|
|
53081
53007
|
transitionInterpolator: new LinearInterpolator({
|
|
53082
53008
|
transitionProps: {
|
|
@@ -53085,7 +53011,7 @@ class MapController extends Controller {
|
|
|
53085
53011
|
}
|
|
53086
53012
|
})
|
|
53087
53013
|
});
|
|
53088
|
-
_defineProperty$
|
|
53014
|
+
_defineProperty$e(this, "dragMode", "pan");
|
|
53089
53015
|
}
|
|
53090
53016
|
setProps(props) {
|
|
53091
53017
|
props.position = props.position || [0, 0, 0];
|
|
@@ -53109,12 +53035,12 @@ class MapView extends View {
|
|
|
53109
53035
|
return MapController;
|
|
53110
53036
|
}
|
|
53111
53037
|
}
|
|
53112
|
-
_defineProperty$
|
|
53038
|
+
_defineProperty$e(MapView, "displayName", "MapView");
|
|
53113
53039
|
class MaskPass extends LayersPass {
|
|
53114
53040
|
constructor(gl, props) {
|
|
53115
53041
|
super(gl, props);
|
|
53116
|
-
_defineProperty$
|
|
53117
|
-
_defineProperty$
|
|
53042
|
+
_defineProperty$e(this, "maskMap", void 0);
|
|
53043
|
+
_defineProperty$e(this, "fbo", void 0);
|
|
53118
53044
|
const {
|
|
53119
53045
|
mapSize = 2048
|
|
53120
53046
|
} = props;
|
|
@@ -53301,7 +53227,7 @@ class OrbitState extends ViewState {
|
|
|
53301
53227
|
startZoomPosition,
|
|
53302
53228
|
startZoom
|
|
53303
53229
|
});
|
|
53304
|
-
_defineProperty$
|
|
53230
|
+
_defineProperty$e(this, "makeViewport", void 0);
|
|
53305
53231
|
this.makeViewport = options.makeViewport;
|
|
53306
53232
|
}
|
|
53307
53233
|
panStart({
|
|
@@ -53538,8 +53464,8 @@ class OrbitState extends ViewState {
|
|
|
53538
53464
|
class OrbitController extends Controller {
|
|
53539
53465
|
constructor(...args) {
|
|
53540
53466
|
super(...args);
|
|
53541
|
-
_defineProperty$
|
|
53542
|
-
_defineProperty$
|
|
53467
|
+
_defineProperty$e(this, "ControllerState", OrbitState);
|
|
53468
|
+
_defineProperty$e(this, "transition", {
|
|
53543
53469
|
transitionDuration: 300,
|
|
53544
53470
|
transitionInterpolator: new LinearInterpolator({
|
|
53545
53471
|
transitionProps: {
|
|
@@ -53553,7 +53479,7 @@ class OrbitController extends Controller {
|
|
|
53553
53479
|
class OrthographicState extends OrbitState {
|
|
53554
53480
|
constructor(props) {
|
|
53555
53481
|
super(props);
|
|
53556
|
-
_defineProperty$
|
|
53482
|
+
_defineProperty$e(this, "zoomAxis", void 0);
|
|
53557
53483
|
this.zoomAxis = props.zoomAxis || "all";
|
|
53558
53484
|
}
|
|
53559
53485
|
_calculateNewZoom({
|
|
@@ -53597,12 +53523,12 @@ class OrthographicState extends OrbitState {
|
|
|
53597
53523
|
class OrthographicController extends Controller {
|
|
53598
53524
|
constructor(...args) {
|
|
53599
53525
|
super(...args);
|
|
53600
|
-
_defineProperty$
|
|
53601
|
-
_defineProperty$
|
|
53526
|
+
_defineProperty$e(this, "ControllerState", OrthographicState);
|
|
53527
|
+
_defineProperty$e(this, "transition", {
|
|
53602
53528
|
transitionDuration: 300,
|
|
53603
53529
|
transitionInterpolator: new LinearInterpolator(["target", "zoom"])
|
|
53604
53530
|
});
|
|
53605
|
-
_defineProperty$
|
|
53531
|
+
_defineProperty$e(this, "dragMode", "pan");
|
|
53606
53532
|
}
|
|
53607
53533
|
_onPanRotate() {
|
|
53608
53534
|
return false;
|
|
@@ -53616,7 +53542,7 @@ class OrthographicView extends View {
|
|
|
53616
53542
|
return OrthographicController;
|
|
53617
53543
|
}
|
|
53618
53544
|
}
|
|
53619
|
-
_defineProperty$
|
|
53545
|
+
_defineProperty$e(OrthographicView, "displayName", "OrthographicView");
|
|
53620
53546
|
function getMaskBounds({
|
|
53621
53547
|
layers,
|
|
53622
53548
|
viewport
|
|
@@ -53709,15 +53635,15 @@ function _doubleBounds(bounds2) {
|
|
|
53709
53635
|
}
|
|
53710
53636
|
class MaskEffect {
|
|
53711
53637
|
constructor() {
|
|
53712
|
-
_defineProperty$
|
|
53713
|
-
_defineProperty$
|
|
53714
|
-
_defineProperty$
|
|
53715
|
-
_defineProperty$
|
|
53716
|
-
_defineProperty$
|
|
53717
|
-
_defineProperty$
|
|
53718
|
-
_defineProperty$
|
|
53719
|
-
_defineProperty$
|
|
53720
|
-
_defineProperty$
|
|
53638
|
+
_defineProperty$e(this, "id", "mask-effect");
|
|
53639
|
+
_defineProperty$e(this, "props", null);
|
|
53640
|
+
_defineProperty$e(this, "useInPicking", true);
|
|
53641
|
+
_defineProperty$e(this, "dummyMaskMap", void 0);
|
|
53642
|
+
_defineProperty$e(this, "channels", []);
|
|
53643
|
+
_defineProperty$e(this, "masks", null);
|
|
53644
|
+
_defineProperty$e(this, "maskPass", void 0);
|
|
53645
|
+
_defineProperty$e(this, "maskMap", void 0);
|
|
53646
|
+
_defineProperty$e(this, "lastViewport", void 0);
|
|
53721
53647
|
}
|
|
53722
53648
|
preRender(gl, {
|
|
53723
53649
|
layers,
|
|
@@ -53877,9 +53803,9 @@ class MaskEffect {
|
|
|
53877
53803
|
const DEFAULT_LIGHTING_EFFECT = new LightingEffect();
|
|
53878
53804
|
class EffectManager {
|
|
53879
53805
|
constructor() {
|
|
53880
|
-
_defineProperty$
|
|
53881
|
-
_defineProperty$
|
|
53882
|
-
_defineProperty$
|
|
53806
|
+
_defineProperty$e(this, "effects", void 0);
|
|
53807
|
+
_defineProperty$e(this, "_internalEffects", void 0);
|
|
53808
|
+
_defineProperty$e(this, "_needsRedraw", void 0);
|
|
53883
53809
|
this.effects = [];
|
|
53884
53810
|
this._internalEffects = [];
|
|
53885
53811
|
this._needsRedraw = "Initial render";
|
|
@@ -53940,8 +53866,8 @@ const PICKING_PARAMETERS = {
|
|
|
53940
53866
|
class PickLayersPass extends LayersPass {
|
|
53941
53867
|
constructor(...args) {
|
|
53942
53868
|
super(...args);
|
|
53943
|
-
_defineProperty$
|
|
53944
|
-
_defineProperty$
|
|
53869
|
+
_defineProperty$e(this, "pickZ", void 0);
|
|
53870
|
+
_defineProperty$e(this, "_colors", null);
|
|
53945
53871
|
}
|
|
53946
53872
|
render(props) {
|
|
53947
53873
|
if (props.pickingFBO) {
|
|
@@ -54372,13 +54298,13 @@ function getViewportFromCoordinates(viewports, pixel) {
|
|
|
54372
54298
|
}
|
|
54373
54299
|
class DeckPicker {
|
|
54374
54300
|
constructor(gl) {
|
|
54375
|
-
_defineProperty$
|
|
54376
|
-
_defineProperty$
|
|
54377
|
-
_defineProperty$
|
|
54378
|
-
_defineProperty$
|
|
54379
|
-
_defineProperty$
|
|
54380
|
-
_defineProperty$
|
|
54381
|
-
_defineProperty$
|
|
54301
|
+
_defineProperty$e(this, "gl", void 0);
|
|
54302
|
+
_defineProperty$e(this, "pickingFBO", void 0);
|
|
54303
|
+
_defineProperty$e(this, "depthFBO", void 0);
|
|
54304
|
+
_defineProperty$e(this, "pickLayersPass", void 0);
|
|
54305
|
+
_defineProperty$e(this, "layerFilter", void 0);
|
|
54306
|
+
_defineProperty$e(this, "lastPickedInfo", void 0);
|
|
54307
|
+
_defineProperty$e(this, "_pickable", true);
|
|
54382
54308
|
this.gl = gl;
|
|
54383
54309
|
this.pickLayersPass = new PickLayersPass(gl);
|
|
54384
54310
|
this.lastPickedInfo = {
|
|
@@ -54750,8 +54676,8 @@ const defaultStyle = {
|
|
|
54750
54676
|
};
|
|
54751
54677
|
let Tooltip$1 = class Tooltip {
|
|
54752
54678
|
constructor(canvas) {
|
|
54753
|
-
_defineProperty$
|
|
54754
|
-
_defineProperty$
|
|
54679
|
+
_defineProperty$e(this, "el", null);
|
|
54680
|
+
_defineProperty$e(this, "isVisible", false);
|
|
54755
54681
|
const canvasParent = canvas.parentElement;
|
|
54756
54682
|
if (canvasParent) {
|
|
54757
54683
|
this.el = document.createElement("div");
|
|
@@ -57481,28 +57407,28 @@ const defaultProps$M = {
|
|
|
57481
57407
|
};
|
|
57482
57408
|
class Deck {
|
|
57483
57409
|
constructor(props) {
|
|
57484
|
-
_defineProperty$
|
|
57485
|
-
_defineProperty$
|
|
57486
|
-
_defineProperty$
|
|
57487
|
-
_defineProperty$
|
|
57488
|
-
_defineProperty$
|
|
57489
|
-
_defineProperty$
|
|
57490
|
-
_defineProperty$
|
|
57491
|
-
_defineProperty$
|
|
57492
|
-
_defineProperty$
|
|
57493
|
-
_defineProperty$
|
|
57494
|
-
_defineProperty$
|
|
57495
|
-
_defineProperty$
|
|
57496
|
-
_defineProperty$
|
|
57497
|
-
_defineProperty$
|
|
57498
|
-
_defineProperty$
|
|
57499
|
-
_defineProperty$
|
|
57500
|
-
_defineProperty$
|
|
57501
|
-
_defineProperty$
|
|
57502
|
-
_defineProperty$
|
|
57503
|
-
_defineProperty$
|
|
57504
|
-
_defineProperty$
|
|
57505
|
-
_defineProperty$
|
|
57410
|
+
_defineProperty$e(this, "props", void 0);
|
|
57411
|
+
_defineProperty$e(this, "width", 0);
|
|
57412
|
+
_defineProperty$e(this, "height", 0);
|
|
57413
|
+
_defineProperty$e(this, "userData", {});
|
|
57414
|
+
_defineProperty$e(this, "canvas", null);
|
|
57415
|
+
_defineProperty$e(this, "viewManager", null);
|
|
57416
|
+
_defineProperty$e(this, "layerManager", null);
|
|
57417
|
+
_defineProperty$e(this, "effectManager", null);
|
|
57418
|
+
_defineProperty$e(this, "deckRenderer", null);
|
|
57419
|
+
_defineProperty$e(this, "deckPicker", null);
|
|
57420
|
+
_defineProperty$e(this, "eventManager", null);
|
|
57421
|
+
_defineProperty$e(this, "tooltip", null);
|
|
57422
|
+
_defineProperty$e(this, "metrics", void 0);
|
|
57423
|
+
_defineProperty$e(this, "animationLoop", void 0);
|
|
57424
|
+
_defineProperty$e(this, "stats", void 0);
|
|
57425
|
+
_defineProperty$e(this, "viewState", void 0);
|
|
57426
|
+
_defineProperty$e(this, "cursorState", void 0);
|
|
57427
|
+
_defineProperty$e(this, "_needsRedraw", void 0);
|
|
57428
|
+
_defineProperty$e(this, "_pickRequest", void 0);
|
|
57429
|
+
_defineProperty$e(this, "_lastPointerDownInfo", null);
|
|
57430
|
+
_defineProperty$e(this, "_metricsCounter", void 0);
|
|
57431
|
+
_defineProperty$e(this, "_onPointerMove", (event) => {
|
|
57506
57432
|
const {
|
|
57507
57433
|
_pickRequest
|
|
57508
57434
|
} = this;
|
|
@@ -57529,7 +57455,7 @@ class Deck {
|
|
|
57529
57455
|
}
|
|
57530
57456
|
_pickRequest.event = event;
|
|
57531
57457
|
});
|
|
57532
|
-
_defineProperty$
|
|
57458
|
+
_defineProperty$e(this, "_onEvent", (event) => {
|
|
57533
57459
|
const eventOptions = EVENTS[event.type];
|
|
57534
57460
|
const pos = event.offsetCenter;
|
|
57535
57461
|
if (!eventOptions || !pos || !this.layerManager) {
|
|
@@ -57555,7 +57481,7 @@ class Deck {
|
|
|
57555
57481
|
rootHandler(info, event);
|
|
57556
57482
|
}
|
|
57557
57483
|
});
|
|
57558
|
-
_defineProperty$
|
|
57484
|
+
_defineProperty$e(this, "_onPointerDown", (event) => {
|
|
57559
57485
|
const pos = event.offsetCenter;
|
|
57560
57486
|
const pickedInfo = this._pick("pickObject", "pickObject Time", {
|
|
57561
57487
|
x: pos.x,
|
|
@@ -58067,12 +57993,12 @@ class Deck {
|
|
|
58067
57993
|
metrics.gpuMemory = memoryStats.get("GPU Memory").count;
|
|
58068
57994
|
}
|
|
58069
57995
|
}
|
|
58070
|
-
_defineProperty$
|
|
58071
|
-
_defineProperty$
|
|
57996
|
+
_defineProperty$e(Deck, "defaultProps", defaultProps$M);
|
|
57997
|
+
_defineProperty$e(Deck, "VERSION", deckGlobal.VERSION);
|
|
58072
57998
|
class ShaderAttribute {
|
|
58073
57999
|
constructor(dataColumn, opts2) {
|
|
58074
|
-
_defineProperty$
|
|
58075
|
-
_defineProperty$
|
|
58000
|
+
_defineProperty$e(this, "opts", void 0);
|
|
58001
|
+
_defineProperty$e(this, "source", void 0);
|
|
58076
58002
|
this.opts = opts2;
|
|
58077
58003
|
this.source = dataColumn;
|
|
58078
58004
|
}
|
|
@@ -58162,14 +58088,14 @@ function resolveDoublePrecisionShaderAttributes(baseAccessor, shaderAttributeOpt
|
|
|
58162
58088
|
}
|
|
58163
58089
|
class DataColumn {
|
|
58164
58090
|
constructor(gl, opts2, state) {
|
|
58165
|
-
_defineProperty$
|
|
58166
|
-
_defineProperty$
|
|
58167
|
-
_defineProperty$
|
|
58168
|
-
_defineProperty$
|
|
58169
|
-
_defineProperty$
|
|
58170
|
-
_defineProperty$
|
|
58171
|
-
_defineProperty$
|
|
58172
|
-
_defineProperty$
|
|
58091
|
+
_defineProperty$e(this, "gl", void 0);
|
|
58092
|
+
_defineProperty$e(this, "id", void 0);
|
|
58093
|
+
_defineProperty$e(this, "size", void 0);
|
|
58094
|
+
_defineProperty$e(this, "settings", void 0);
|
|
58095
|
+
_defineProperty$e(this, "value", void 0);
|
|
58096
|
+
_defineProperty$e(this, "doublePrecision", void 0);
|
|
58097
|
+
_defineProperty$e(this, "_buffer", void 0);
|
|
58098
|
+
_defineProperty$e(this, "state", void 0);
|
|
58173
58099
|
this.gl = gl;
|
|
58174
58100
|
this.id = opts2.id || "";
|
|
58175
58101
|
this.size = opts2.size || 1;
|
|
@@ -58822,7 +58748,7 @@ class Attribute extends DataColumn {
|
|
|
58822
58748
|
needsRedraw: false,
|
|
58823
58749
|
updateRanges: FULL
|
|
58824
58750
|
});
|
|
58825
|
-
_defineProperty$
|
|
58751
|
+
_defineProperty$e(this, "constant", false);
|
|
58826
58752
|
this.settings.update = opts2.update || (opts2.accessor ? this._autoUpdater : void 0);
|
|
58827
58753
|
Object.seal(this.settings);
|
|
58828
58754
|
Object.seal(this.state);
|
|
@@ -59144,16 +59070,16 @@ class GPUInterpolationTransition {
|
|
|
59144
59070
|
attribute,
|
|
59145
59071
|
timeline
|
|
59146
59072
|
}) {
|
|
59147
|
-
_defineProperty$
|
|
59148
|
-
_defineProperty$
|
|
59149
|
-
_defineProperty$
|
|
59150
|
-
_defineProperty$
|
|
59151
|
-
_defineProperty$
|
|
59152
|
-
_defineProperty$
|
|
59153
|
-
_defineProperty$
|
|
59154
|
-
_defineProperty$
|
|
59155
|
-
_defineProperty$
|
|
59156
|
-
_defineProperty$
|
|
59073
|
+
_defineProperty$e(this, "gl", void 0);
|
|
59074
|
+
_defineProperty$e(this, "type", "interpolation");
|
|
59075
|
+
_defineProperty$e(this, "attributeInTransition", void 0);
|
|
59076
|
+
_defineProperty$e(this, "settings", void 0);
|
|
59077
|
+
_defineProperty$e(this, "attribute", void 0);
|
|
59078
|
+
_defineProperty$e(this, "transition", void 0);
|
|
59079
|
+
_defineProperty$e(this, "currentStartIndices", void 0);
|
|
59080
|
+
_defineProperty$e(this, "currentLength", void 0);
|
|
59081
|
+
_defineProperty$e(this, "transform", void 0);
|
|
59082
|
+
_defineProperty$e(this, "buffers", void 0);
|
|
59157
59083
|
this.gl = gl;
|
|
59158
59084
|
this.transition = new Transition(timeline);
|
|
59159
59085
|
this.attribute = attribute;
|
|
@@ -59261,18 +59187,18 @@ class GPUSpringTransition {
|
|
|
59261
59187
|
attribute,
|
|
59262
59188
|
timeline
|
|
59263
59189
|
}) {
|
|
59264
|
-
_defineProperty$
|
|
59265
|
-
_defineProperty$
|
|
59266
|
-
_defineProperty$
|
|
59267
|
-
_defineProperty$
|
|
59268
|
-
_defineProperty$
|
|
59269
|
-
_defineProperty$
|
|
59270
|
-
_defineProperty$
|
|
59271
|
-
_defineProperty$
|
|
59272
|
-
_defineProperty$
|
|
59273
|
-
_defineProperty$
|
|
59274
|
-
_defineProperty$
|
|
59275
|
-
_defineProperty$
|
|
59190
|
+
_defineProperty$e(this, "gl", void 0);
|
|
59191
|
+
_defineProperty$e(this, "type", "spring");
|
|
59192
|
+
_defineProperty$e(this, "attributeInTransition", void 0);
|
|
59193
|
+
_defineProperty$e(this, "settings", void 0);
|
|
59194
|
+
_defineProperty$e(this, "attribute", void 0);
|
|
59195
|
+
_defineProperty$e(this, "transition", void 0);
|
|
59196
|
+
_defineProperty$e(this, "currentStartIndices", void 0);
|
|
59197
|
+
_defineProperty$e(this, "currentLength", void 0);
|
|
59198
|
+
_defineProperty$e(this, "texture", void 0);
|
|
59199
|
+
_defineProperty$e(this, "framebuffer", void 0);
|
|
59200
|
+
_defineProperty$e(this, "transform", void 0);
|
|
59201
|
+
_defineProperty$e(this, "buffers", void 0);
|
|
59276
59202
|
this.gl = gl;
|
|
59277
59203
|
this.type = "spring";
|
|
59278
59204
|
this.transition = new Transition(timeline);
|
|
@@ -59434,13 +59360,13 @@ class AttributeTransitionManager {
|
|
|
59434
59360
|
id,
|
|
59435
59361
|
timeline
|
|
59436
59362
|
}) {
|
|
59437
|
-
_defineProperty$
|
|
59438
|
-
_defineProperty$
|
|
59439
|
-
_defineProperty$
|
|
59440
|
-
_defineProperty$
|
|
59441
|
-
_defineProperty$
|
|
59442
|
-
_defineProperty$
|
|
59443
|
-
_defineProperty$
|
|
59363
|
+
_defineProperty$e(this, "id", void 0);
|
|
59364
|
+
_defineProperty$e(this, "isSupported", void 0);
|
|
59365
|
+
_defineProperty$e(this, "gl", void 0);
|
|
59366
|
+
_defineProperty$e(this, "timeline", void 0);
|
|
59367
|
+
_defineProperty$e(this, "transitions", void 0);
|
|
59368
|
+
_defineProperty$e(this, "needsRedraw", void 0);
|
|
59369
|
+
_defineProperty$e(this, "numInstances", void 0);
|
|
59444
59370
|
this.id = id;
|
|
59445
59371
|
this.gl = gl;
|
|
59446
59372
|
this.timeline = timeline;
|
|
@@ -59547,14 +59473,14 @@ class AttributeManager {
|
|
|
59547
59473
|
stats,
|
|
59548
59474
|
timeline
|
|
59549
59475
|
} = {}) {
|
|
59550
|
-
_defineProperty$
|
|
59551
|
-
_defineProperty$
|
|
59552
|
-
_defineProperty$
|
|
59553
|
-
_defineProperty$
|
|
59554
|
-
_defineProperty$
|
|
59555
|
-
_defineProperty$
|
|
59556
|
-
_defineProperty$
|
|
59557
|
-
_defineProperty$
|
|
59476
|
+
_defineProperty$e(this, "id", void 0);
|
|
59477
|
+
_defineProperty$e(this, "gl", void 0);
|
|
59478
|
+
_defineProperty$e(this, "attributes", void 0);
|
|
59479
|
+
_defineProperty$e(this, "updateTriggers", void 0);
|
|
59480
|
+
_defineProperty$e(this, "needsRedraw", void 0);
|
|
59481
|
+
_defineProperty$e(this, "userData", void 0);
|
|
59482
|
+
_defineProperty$e(this, "stats", void 0);
|
|
59483
|
+
_defineProperty$e(this, "attributeTransitionManager", void 0);
|
|
59558
59484
|
this.id = id;
|
|
59559
59485
|
this.gl = gl;
|
|
59560
59486
|
this.attributes = {};
|
|
@@ -60533,9 +60459,9 @@ function getComponentName(componentClass) {
|
|
|
60533
60459
|
let counter = 0;
|
|
60534
60460
|
class Component {
|
|
60535
60461
|
constructor(...propObjects) {
|
|
60536
|
-
_defineProperty$
|
|
60537
|
-
_defineProperty$
|
|
60538
|
-
_defineProperty$
|
|
60462
|
+
_defineProperty$e(this, "id", void 0);
|
|
60463
|
+
_defineProperty$e(this, "props", void 0);
|
|
60464
|
+
_defineProperty$e(this, "count", void 0);
|
|
60539
60465
|
this.props = createProps(this, propObjects);
|
|
60540
60466
|
this.id = this.props.id;
|
|
60541
60467
|
this.count = counter++;
|
|
@@ -60559,16 +60485,16 @@ class Component {
|
|
|
60559
60485
|
});
|
|
60560
60486
|
}
|
|
60561
60487
|
}
|
|
60562
|
-
_defineProperty$
|
|
60563
|
-
_defineProperty$
|
|
60488
|
+
_defineProperty$e(Component, "componentName", "Component");
|
|
60489
|
+
_defineProperty$e(Component, "defaultProps", {});
|
|
60564
60490
|
const EMPTY_PROPS = Object.freeze({});
|
|
60565
60491
|
class ComponentState {
|
|
60566
60492
|
constructor(component) {
|
|
60567
|
-
_defineProperty$
|
|
60568
|
-
_defineProperty$
|
|
60569
|
-
_defineProperty$
|
|
60570
|
-
_defineProperty$
|
|
60571
|
-
_defineProperty$
|
|
60493
|
+
_defineProperty$e(this, "component", void 0);
|
|
60494
|
+
_defineProperty$e(this, "onAsyncPropUpdated", void 0);
|
|
60495
|
+
_defineProperty$e(this, "asyncProps", void 0);
|
|
60496
|
+
_defineProperty$e(this, "oldProps", void 0);
|
|
60497
|
+
_defineProperty$e(this, "oldAsyncProps", void 0);
|
|
60572
60498
|
this.component = component;
|
|
60573
60499
|
this.asyncProps = {};
|
|
60574
60500
|
this.onAsyncPropUpdated = () => {
|
|
@@ -60771,15 +60697,15 @@ class LayerState extends ComponentState {
|
|
|
60771
60697
|
layer
|
|
60772
60698
|
}) {
|
|
60773
60699
|
super(layer);
|
|
60774
|
-
_defineProperty$
|
|
60775
|
-
_defineProperty$
|
|
60776
|
-
_defineProperty$
|
|
60777
|
-
_defineProperty$
|
|
60778
|
-
_defineProperty$
|
|
60779
|
-
_defineProperty$
|
|
60780
|
-
_defineProperty$
|
|
60781
|
-
_defineProperty$
|
|
60782
|
-
_defineProperty$
|
|
60700
|
+
_defineProperty$e(this, "attributeManager", void 0);
|
|
60701
|
+
_defineProperty$e(this, "needsRedraw", void 0);
|
|
60702
|
+
_defineProperty$e(this, "needsUpdate", void 0);
|
|
60703
|
+
_defineProperty$e(this, "subLayers", void 0);
|
|
60704
|
+
_defineProperty$e(this, "usesPickingColorCache", void 0);
|
|
60705
|
+
_defineProperty$e(this, "changeFlags", void 0);
|
|
60706
|
+
_defineProperty$e(this, "viewport", void 0);
|
|
60707
|
+
_defineProperty$e(this, "uniformTransitions", void 0);
|
|
60708
|
+
_defineProperty$e(this, "propsInTransition", void 0);
|
|
60783
60709
|
this.attributeManager = attributeManager;
|
|
60784
60710
|
this.needsRedraw = true;
|
|
60785
60711
|
this.needsUpdate = true;
|
|
@@ -60999,11 +60925,11 @@ const defaultProps$L = {
|
|
|
60999
60925
|
class Layer extends Component {
|
|
61000
60926
|
constructor(...args) {
|
|
61001
60927
|
super(...args);
|
|
61002
|
-
_defineProperty$
|
|
61003
|
-
_defineProperty$
|
|
61004
|
-
_defineProperty$
|
|
61005
|
-
_defineProperty$
|
|
61006
|
-
_defineProperty$
|
|
60928
|
+
_defineProperty$e(this, "internalState", null);
|
|
60929
|
+
_defineProperty$e(this, "lifecycle", LIFECYCLE.NO_STATE);
|
|
60930
|
+
_defineProperty$e(this, "context", void 0);
|
|
60931
|
+
_defineProperty$e(this, "state", void 0);
|
|
60932
|
+
_defineProperty$e(this, "parent", null);
|
|
61007
60933
|
}
|
|
61008
60934
|
get root() {
|
|
61009
60935
|
let layer = this;
|
|
@@ -61705,8 +61631,8 @@ class Layer extends Component {
|
|
|
61705
61631
|
this.setNeedsUpdate();
|
|
61706
61632
|
}
|
|
61707
61633
|
}
|
|
61708
|
-
_defineProperty$
|
|
61709
|
-
_defineProperty$
|
|
61634
|
+
_defineProperty$e(Layer, "defaultProps", defaultProps$L);
|
|
61635
|
+
_defineProperty$e(Layer, "layerName", "Layer");
|
|
61710
61636
|
const TRACE_RENDER_LAYERS = "compositeLayer.renderLayers";
|
|
61711
61637
|
class CompositeLayer extends Layer {
|
|
61712
61638
|
get isComposite() {
|
|
@@ -61868,7 +61794,7 @@ class CompositeLayer extends Layer {
|
|
|
61868
61794
|
}
|
|
61869
61795
|
}
|
|
61870
61796
|
}
|
|
61871
|
-
_defineProperty$
|
|
61797
|
+
_defineProperty$e(CompositeLayer, "layerName", "CompositeLayer");
|
|
61872
61798
|
const DEGREES_TO_RADIANS$1 = Math.PI / 180;
|
|
61873
61799
|
const RADIANS_TO_DEGREES = 180 / Math.PI;
|
|
61874
61800
|
const EARTH_RADIUS = 6370972;
|
|
@@ -61924,9 +61850,9 @@ class GlobeViewport extends Viewport {
|
|
|
61924
61850
|
near: nearZMultiplier,
|
|
61925
61851
|
far: Math.min(2, 1 / relativeScale + 1) * altitude * farZMultiplier
|
|
61926
61852
|
});
|
|
61927
|
-
_defineProperty$
|
|
61928
|
-
_defineProperty$
|
|
61929
|
-
_defineProperty$
|
|
61853
|
+
_defineProperty$e(this, "longitude", void 0);
|
|
61854
|
+
_defineProperty$e(this, "latitude", void 0);
|
|
61855
|
+
_defineProperty$e(this, "resolution", void 0);
|
|
61930
61856
|
this.latitude = latitude;
|
|
61931
61857
|
this.longitude = longitude;
|
|
61932
61858
|
this.resolution = resolution;
|
|
@@ -62074,7 +62000,7 @@ class OrbitViewport extends Viewport {
|
|
|
62074
62000
|
position: target,
|
|
62075
62001
|
zoom
|
|
62076
62002
|
});
|
|
62077
|
-
_defineProperty$
|
|
62003
|
+
_defineProperty$e(this, "projectedCenter", void 0);
|
|
62078
62004
|
this.projectedCenter = this.project(this.center);
|
|
62079
62005
|
}
|
|
62080
62006
|
unproject(xyz, {
|
|
@@ -62123,8 +62049,8 @@ class FirstPersonViewport extends Viewport {
|
|
|
62123
62049
|
zoom,
|
|
62124
62050
|
viewMatrix: viewMatrix2
|
|
62125
62051
|
});
|
|
62126
|
-
_defineProperty$
|
|
62127
|
-
_defineProperty$
|
|
62052
|
+
_defineProperty$e(this, "longitude", void 0);
|
|
62053
|
+
_defineProperty$e(this, "latitude", void 0);
|
|
62128
62054
|
this.latitude = latitude;
|
|
62129
62055
|
this.longitude = longitude;
|
|
62130
62056
|
}
|
|
@@ -62353,8 +62279,8 @@ class FirstPersonState extends ViewState {
|
|
|
62353
62279
|
class FirstPersonController extends Controller {
|
|
62354
62280
|
constructor(...args) {
|
|
62355
62281
|
super(...args);
|
|
62356
|
-
_defineProperty$
|
|
62357
|
-
_defineProperty$
|
|
62282
|
+
_defineProperty$e(this, "ControllerState", FirstPersonState);
|
|
62283
|
+
_defineProperty$e(this, "transition", {
|
|
62358
62284
|
transitionDuration: 300,
|
|
62359
62285
|
transitionInterpolator: new LinearInterpolator(["position", "pitch", "bearing"])
|
|
62360
62286
|
});
|
|
@@ -62368,7 +62294,7 @@ class FirstPersonView extends View {
|
|
|
62368
62294
|
return FirstPersonController;
|
|
62369
62295
|
}
|
|
62370
62296
|
}
|
|
62371
|
-
_defineProperty$
|
|
62297
|
+
_defineProperty$e(FirstPersonView, "displayName", "FirstPersonView");
|
|
62372
62298
|
class OrbitView extends View {
|
|
62373
62299
|
constructor(props = {}) {
|
|
62374
62300
|
super(props);
|
|
@@ -62381,7 +62307,7 @@ class OrbitView extends View {
|
|
|
62381
62307
|
return OrbitController;
|
|
62382
62308
|
}
|
|
62383
62309
|
}
|
|
62384
|
-
_defineProperty$
|
|
62310
|
+
_defineProperty$e(OrbitView, "displayName", "OrbitView");
|
|
62385
62311
|
class GlobeState extends MapState {
|
|
62386
62312
|
applyConstraints(props) {
|
|
62387
62313
|
const {
|
|
@@ -62404,12 +62330,12 @@ class GlobeState extends MapState {
|
|
|
62404
62330
|
class GlobeController extends Controller {
|
|
62405
62331
|
constructor(...args) {
|
|
62406
62332
|
super(...args);
|
|
62407
|
-
_defineProperty$
|
|
62408
|
-
_defineProperty$
|
|
62333
|
+
_defineProperty$e(this, "ControllerState", GlobeState);
|
|
62334
|
+
_defineProperty$e(this, "transition", {
|
|
62409
62335
|
transitionDuration: 300,
|
|
62410
62336
|
transitionInterpolator: new LinearInterpolator(["longitude", "latitude", "zoom"])
|
|
62411
62337
|
});
|
|
62412
|
-
_defineProperty$
|
|
62338
|
+
_defineProperty$e(this, "dragMode", "pan");
|
|
62413
62339
|
}
|
|
62414
62340
|
setProps(props) {
|
|
62415
62341
|
super.setProps(props);
|
|
@@ -62425,10 +62351,10 @@ class GlobeView extends View {
|
|
|
62425
62351
|
return GlobeController;
|
|
62426
62352
|
}
|
|
62427
62353
|
}
|
|
62428
|
-
_defineProperty$
|
|
62354
|
+
_defineProperty$e(GlobeView, "displayName", "GlobeView");
|
|
62429
62355
|
class LayerExtension {
|
|
62430
62356
|
constructor(opts2) {
|
|
62431
|
-
_defineProperty$
|
|
62357
|
+
_defineProperty$e(this, "opts", void 0);
|
|
62432
62358
|
if (opts2) {
|
|
62433
62359
|
this.opts = opts2;
|
|
62434
62360
|
}
|
|
@@ -62473,7 +62399,7 @@ class LayerExtension {
|
|
|
62473
62399
|
finalizeState(context, extension) {
|
|
62474
62400
|
}
|
|
62475
62401
|
}
|
|
62476
|
-
_defineProperty$
|
|
62402
|
+
_defineProperty$e(LayerExtension, "defaultProps", {});
|
|
62477
62403
|
const LINEARLY_INTERPOLATED_PROPS = ["bearing", "pitch"];
|
|
62478
62404
|
const DEFAULT_OPTS = {
|
|
62479
62405
|
speed: 1.2,
|
|
@@ -62486,7 +62412,7 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
62486
62412
|
extract: ["width", "height", "longitude", "latitude", "zoom", "bearing", "pitch"],
|
|
62487
62413
|
required: ["width", "height", "latitude", "longitude", "zoom"]
|
|
62488
62414
|
});
|
|
62489
|
-
_defineProperty$
|
|
62415
|
+
_defineProperty$e(this, "opts", void 0);
|
|
62490
62416
|
this.opts = {
|
|
62491
62417
|
...DEFAULT_OPTS,
|
|
62492
62418
|
...opts2
|
|
@@ -62511,20 +62437,20 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
|
62511
62437
|
}
|
|
62512
62438
|
class Tesselator {
|
|
62513
62439
|
constructor(opts2) {
|
|
62514
|
-
_defineProperty$
|
|
62515
|
-
_defineProperty$
|
|
62516
|
-
_defineProperty$
|
|
62517
|
-
_defineProperty$
|
|
62518
|
-
_defineProperty$
|
|
62519
|
-
_defineProperty$
|
|
62520
|
-
_defineProperty$
|
|
62521
|
-
_defineProperty$
|
|
62522
|
-
_defineProperty$
|
|
62523
|
-
_defineProperty$
|
|
62524
|
-
_defineProperty$
|
|
62525
|
-
_defineProperty$
|
|
62526
|
-
_defineProperty$
|
|
62527
|
-
_defineProperty$
|
|
62440
|
+
_defineProperty$e(this, "opts", void 0);
|
|
62441
|
+
_defineProperty$e(this, "typedArrayManager", void 0);
|
|
62442
|
+
_defineProperty$e(this, "indexStarts", [0]);
|
|
62443
|
+
_defineProperty$e(this, "vertexStarts", [0]);
|
|
62444
|
+
_defineProperty$e(this, "vertexCount", 0);
|
|
62445
|
+
_defineProperty$e(this, "instanceCount", 0);
|
|
62446
|
+
_defineProperty$e(this, "attributes", void 0);
|
|
62447
|
+
_defineProperty$e(this, "_attributeDefs", void 0);
|
|
62448
|
+
_defineProperty$e(this, "data", void 0);
|
|
62449
|
+
_defineProperty$e(this, "getGeometry", void 0);
|
|
62450
|
+
_defineProperty$e(this, "geometryBuffer", void 0);
|
|
62451
|
+
_defineProperty$e(this, "buffers", void 0);
|
|
62452
|
+
_defineProperty$e(this, "positionSize", void 0);
|
|
62453
|
+
_defineProperty$e(this, "normalize", void 0);
|
|
62528
62454
|
const {
|
|
62529
62455
|
attributes = {}
|
|
62530
62456
|
} = opts2;
|
|
@@ -62797,8 +62723,8 @@ class ClipExtension extends LayerExtension {
|
|
|
62797
62723
|
}
|
|
62798
62724
|
}
|
|
62799
62725
|
}
|
|
62800
|
-
_defineProperty$
|
|
62801
|
-
_defineProperty$
|
|
62726
|
+
_defineProperty$e(ClipExtension, "defaultProps", defaultProps$K);
|
|
62727
|
+
_defineProperty$e(ClipExtension, "extensionName", "ClipExtension");
|
|
62802
62728
|
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";
|
|
62803
62729
|
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";
|
|
62804
62730
|
const DEFAULT_COLOR$a = [0, 0, 0, 255];
|
|
@@ -62852,7 +62778,7 @@ const defaultProps$J = {
|
|
|
62852
62778
|
class ArcLayer extends Layer {
|
|
62853
62779
|
constructor(...args) {
|
|
62854
62780
|
super(...args);
|
|
62855
|
-
_defineProperty$
|
|
62781
|
+
_defineProperty$e(this, "state", void 0);
|
|
62856
62782
|
}
|
|
62857
62783
|
getShaders() {
|
|
62858
62784
|
return super.getShaders({
|
|
@@ -62972,8 +62898,8 @@ class ArcLayer extends Layer {
|
|
|
62972
62898
|
return model;
|
|
62973
62899
|
}
|
|
62974
62900
|
}
|
|
62975
|
-
_defineProperty$
|
|
62976
|
-
_defineProperty$
|
|
62901
|
+
_defineProperty$e(ArcLayer, "layerName", "ArcLayer");
|
|
62902
|
+
_defineProperty$e(ArcLayer, "defaultProps", defaultProps$J);
|
|
62977
62903
|
const DEFAULT_INDICES = new Uint16Array([0, 2, 1, 0, 3, 2]);
|
|
62978
62904
|
const DEFAULT_TEX_COORDS = new Float32Array([0, 1, 0, 0, 1, 0, 1, 1]);
|
|
62979
62905
|
function createMesh(bounds2, resolution) {
|
|
@@ -63068,7 +62994,7 @@ const defaultProps$I = {
|
|
|
63068
62994
|
let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
63069
62995
|
constructor(...args) {
|
|
63070
62996
|
super(...args);
|
|
63071
|
-
_defineProperty$
|
|
62997
|
+
_defineProperty$e(this, "state", void 0);
|
|
63072
62998
|
}
|
|
63073
62999
|
getShaders() {
|
|
63074
63000
|
return super.getShaders({
|
|
@@ -63270,8 +63196,8 @@ let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
|
63270
63196
|
};
|
|
63271
63197
|
}
|
|
63272
63198
|
};
|
|
63273
|
-
_defineProperty$
|
|
63274
|
-
_defineProperty$
|
|
63199
|
+
_defineProperty$e(BitmapLayer$1, "layerName", "BitmapLayer");
|
|
63200
|
+
_defineProperty$e(BitmapLayer$1, "defaultProps", defaultProps$I);
|
|
63275
63201
|
function unpackUVsFromRGB(color2) {
|
|
63276
63202
|
const [u, v, fracUV] = color2;
|
|
63277
63203
|
const vFrac = (fracUV & 240) / 256;
|
|
@@ -63419,23 +63345,23 @@ class IconManager {
|
|
|
63419
63345
|
onUpdate: onUpdate2 = noop$1,
|
|
63420
63346
|
onError = noop$1
|
|
63421
63347
|
}) {
|
|
63422
|
-
_defineProperty$
|
|
63423
|
-
_defineProperty$
|
|
63424
|
-
_defineProperty$
|
|
63425
|
-
_defineProperty$
|
|
63426
|
-
_defineProperty$
|
|
63427
|
-
_defineProperty$
|
|
63428
|
-
_defineProperty$
|
|
63429
|
-
_defineProperty$
|
|
63430
|
-
_defineProperty$
|
|
63431
|
-
_defineProperty$
|
|
63432
|
-
_defineProperty$
|
|
63433
|
-
_defineProperty$
|
|
63434
|
-
_defineProperty$
|
|
63435
|
-
_defineProperty$
|
|
63436
|
-
_defineProperty$
|
|
63437
|
-
_defineProperty$
|
|
63438
|
-
_defineProperty$
|
|
63348
|
+
_defineProperty$e(this, "gl", void 0);
|
|
63349
|
+
_defineProperty$e(this, "onUpdate", void 0);
|
|
63350
|
+
_defineProperty$e(this, "onError", void 0);
|
|
63351
|
+
_defineProperty$e(this, "_loadOptions", null);
|
|
63352
|
+
_defineProperty$e(this, "_texture", null);
|
|
63353
|
+
_defineProperty$e(this, "_externalTexture", null);
|
|
63354
|
+
_defineProperty$e(this, "_mapping", {});
|
|
63355
|
+
_defineProperty$e(this, "_textureParameters", null);
|
|
63356
|
+
_defineProperty$e(this, "_pendingCount", 0);
|
|
63357
|
+
_defineProperty$e(this, "_autoPacking", false);
|
|
63358
|
+
_defineProperty$e(this, "_xOffset", 0);
|
|
63359
|
+
_defineProperty$e(this, "_yOffset", 0);
|
|
63360
|
+
_defineProperty$e(this, "_rowHeight", 0);
|
|
63361
|
+
_defineProperty$e(this, "_buffer", DEFAULT_BUFFER$1);
|
|
63362
|
+
_defineProperty$e(this, "_canvasWidth", DEFAULT_CANVAS_WIDTH);
|
|
63363
|
+
_defineProperty$e(this, "_canvasHeight", 0);
|
|
63364
|
+
_defineProperty$e(this, "_canvas", null);
|
|
63439
63365
|
this.gl = gl;
|
|
63440
63366
|
this.onUpdate = onUpdate2;
|
|
63441
63367
|
this.onError = onError;
|
|
@@ -63626,7 +63552,7 @@ const defaultProps$H = {
|
|
|
63626
63552
|
class IconLayer extends Layer {
|
|
63627
63553
|
constructor(...args) {
|
|
63628
63554
|
super(...args);
|
|
63629
|
-
_defineProperty$
|
|
63555
|
+
_defineProperty$e(this, "state", void 0);
|
|
63630
63556
|
}
|
|
63631
63557
|
getShaders() {
|
|
63632
63558
|
return super.getShaders({
|
|
@@ -63823,8 +63749,8 @@ class IconLayer extends Layer {
|
|
|
63823
63749
|
return [x2, y2, width, height];
|
|
63824
63750
|
}
|
|
63825
63751
|
}
|
|
63826
|
-
_defineProperty$
|
|
63827
|
-
_defineProperty$
|
|
63752
|
+
_defineProperty$e(IconLayer, "defaultProps", defaultProps$H);
|
|
63753
|
+
_defineProperty$e(IconLayer, "layerName", "IconLayer");
|
|
63828
63754
|
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";
|
|
63829
63755
|
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";
|
|
63830
63756
|
const DEFAULT_COLOR$8 = [0, 0, 0, 255];
|
|
@@ -63956,8 +63882,8 @@ class LineLayer extends Layer {
|
|
|
63956
63882
|
});
|
|
63957
63883
|
}
|
|
63958
63884
|
}
|
|
63959
|
-
_defineProperty$
|
|
63960
|
-
_defineProperty$
|
|
63885
|
+
_defineProperty$e(LineLayer, "layerName", "LineLayer");
|
|
63886
|
+
_defineProperty$e(LineLayer, "defaultProps", defaultProps$G);
|
|
63961
63887
|
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";
|
|
63962
63888
|
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";
|
|
63963
63889
|
const DEFAULT_COLOR$7 = [0, 0, 0, 255];
|
|
@@ -64088,8 +64014,8 @@ class PointCloudLayer extends Layer {
|
|
|
64088
64014
|
});
|
|
64089
64015
|
}
|
|
64090
64016
|
}
|
|
64091
|
-
_defineProperty$
|
|
64092
|
-
_defineProperty$
|
|
64017
|
+
_defineProperty$e(PointCloudLayer, "layerName", "PointCloudLayer");
|
|
64018
|
+
_defineProperty$e(PointCloudLayer, "defaultProps", defaultProps$F);
|
|
64093
64019
|
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";
|
|
64094
64020
|
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";
|
|
64095
64021
|
const DEFAULT_COLOR$6 = [0, 0, 0, 255];
|
|
@@ -64270,8 +64196,8 @@ class ScatterplotLayer extends Layer {
|
|
|
64270
64196
|
});
|
|
64271
64197
|
}
|
|
64272
64198
|
}
|
|
64273
|
-
_defineProperty$
|
|
64274
|
-
_defineProperty$
|
|
64199
|
+
_defineProperty$e(ScatterplotLayer, "defaultProps", defaultProps$E);
|
|
64200
|
+
_defineProperty$e(ScatterplotLayer, "layerName", "ScatterplotLayer");
|
|
64275
64201
|
const WINDING = {
|
|
64276
64202
|
CLOCKWISE: 1,
|
|
64277
64203
|
COUNTER_CLOCKWISE: -1
|
|
@@ -65539,8 +65465,8 @@ class ColumnLayer extends Layer {
|
|
|
65539
65465
|
}
|
|
65540
65466
|
}
|
|
65541
65467
|
}
|
|
65542
|
-
_defineProperty$
|
|
65543
|
-
_defineProperty$
|
|
65468
|
+
_defineProperty$e(ColumnLayer, "layerName", "ColumnLayer");
|
|
65469
|
+
_defineProperty$e(ColumnLayer, "defaultProps", defaultProps$D);
|
|
65544
65470
|
const defaultProps$C = {
|
|
65545
65471
|
cellSize: {
|
|
65546
65472
|
type: "number",
|
|
@@ -65581,8 +65507,8 @@ class GridCellLayer extends ColumnLayer {
|
|
|
65581
65507
|
}).draw();
|
|
65582
65508
|
}
|
|
65583
65509
|
}
|
|
65584
|
-
_defineProperty$
|
|
65585
|
-
_defineProperty$
|
|
65510
|
+
_defineProperty$e(GridCellLayer, "layerName", "GridCellLayer");
|
|
65511
|
+
_defineProperty$e(GridCellLayer, "defaultProps", defaultProps$C);
|
|
65586
65512
|
function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
65587
65513
|
let flatPath;
|
|
65588
65514
|
if (Array.isArray(path[0])) {
|
|
@@ -65797,7 +65723,7 @@ const ATTRIBUTE_TRANSITION$1 = {
|
|
|
65797
65723
|
class PathLayer extends Layer {
|
|
65798
65724
|
constructor(...args) {
|
|
65799
65725
|
super(...args);
|
|
65800
|
-
_defineProperty$
|
|
65726
|
+
_defineProperty$e(this, "state", void 0);
|
|
65801
65727
|
}
|
|
65802
65728
|
getShaders() {
|
|
65803
65729
|
return super.getShaders({
|
|
@@ -66000,8 +65926,8 @@ class PathLayer extends Layer {
|
|
|
66000
65926
|
attribute.value = pathTesselator.get("segmentTypes");
|
|
66001
65927
|
}
|
|
66002
65928
|
}
|
|
66003
|
-
_defineProperty$
|
|
66004
|
-
_defineProperty$
|
|
65929
|
+
_defineProperty$e(PathLayer, "defaultProps", defaultProps$B);
|
|
65930
|
+
_defineProperty$e(PathLayer, "layerName", "PathLayer");
|
|
66005
65931
|
var earcut$2 = { exports: {} };
|
|
66006
65932
|
earcut$2.exports = earcut;
|
|
66007
65933
|
earcut$2.exports.default = earcut;
|
|
@@ -66811,7 +66737,7 @@ const ATTRIBUTE_TRANSITION = {
|
|
|
66811
66737
|
class SolidPolygonLayer extends Layer {
|
|
66812
66738
|
constructor(...args) {
|
|
66813
66739
|
super(...args);
|
|
66814
|
-
_defineProperty$
|
|
66740
|
+
_defineProperty$e(this, "state", void 0);
|
|
66815
66741
|
}
|
|
66816
66742
|
getShaders(type2) {
|
|
66817
66743
|
return super.getShaders({
|
|
@@ -67135,8 +67061,8 @@ class SolidPolygonLayer extends Layer {
|
|
|
67135
67061
|
attribute.value = this.state.polygonTesselator.get("vertexValid");
|
|
67136
67062
|
}
|
|
67137
67063
|
}
|
|
67138
|
-
_defineProperty$
|
|
67139
|
-
_defineProperty$
|
|
67064
|
+
_defineProperty$e(SolidPolygonLayer, "defaultProps", defaultProps$A);
|
|
67065
|
+
_defineProperty$e(SolidPolygonLayer, "layerName", "SolidPolygonLayer");
|
|
67140
67066
|
function replaceInRange({
|
|
67141
67067
|
data,
|
|
67142
67068
|
getIndex,
|
|
@@ -67388,8 +67314,8 @@ class PolygonLayer extends CompositeLayer {
|
|
|
67388
67314
|
return [!extruded && polygonLayer, polygonLineLayer, extruded && polygonLayer];
|
|
67389
67315
|
}
|
|
67390
67316
|
}
|
|
67391
|
-
_defineProperty$
|
|
67392
|
-
_defineProperty$
|
|
67317
|
+
_defineProperty$e(PolygonLayer, "layerName", "PolygonLayer");
|
|
67318
|
+
_defineProperty$e(PolygonLayer, "defaultProps", defaultProps$z);
|
|
67393
67319
|
function binaryToFeatureForAccesor(data, index2) {
|
|
67394
67320
|
if (!data) {
|
|
67395
67321
|
return null;
|
|
@@ -67450,7 +67376,7 @@ const defaultProps$y = {
|
|
|
67450
67376
|
class MultiIconLayer extends IconLayer {
|
|
67451
67377
|
constructor(...args) {
|
|
67452
67378
|
super(...args);
|
|
67453
|
-
_defineProperty$
|
|
67379
|
+
_defineProperty$e(this, "state", void 0);
|
|
67454
67380
|
}
|
|
67455
67381
|
getShaders() {
|
|
67456
67382
|
return {
|
|
@@ -67525,8 +67451,8 @@ class MultiIconLayer extends IconLayer {
|
|
|
67525
67451
|
return icons ? Array.from(icons).flatMap((icon) => super.getInstanceIconFrame(icon)) : EMPTY_ARRAY;
|
|
67526
67452
|
}
|
|
67527
67453
|
}
|
|
67528
|
-
_defineProperty$
|
|
67529
|
-
_defineProperty$
|
|
67454
|
+
_defineProperty$e(MultiIconLayer, "defaultProps", defaultProps$y);
|
|
67455
|
+
_defineProperty$e(MultiIconLayer, "layerName", "MultiIconLayer");
|
|
67530
67456
|
var tinySdf = { exports: {} };
|
|
67531
67457
|
tinySdf.exports = TinySDF;
|
|
67532
67458
|
tinySdf.exports.default = TinySDF;
|
|
@@ -67894,9 +67820,9 @@ function getTextFromBuffer({
|
|
|
67894
67820
|
}
|
|
67895
67821
|
class LRUCache2 {
|
|
67896
67822
|
constructor(limit = 5) {
|
|
67897
|
-
_defineProperty$
|
|
67898
|
-
_defineProperty$
|
|
67899
|
-
_defineProperty$
|
|
67823
|
+
_defineProperty$e(this, "limit", void 0);
|
|
67824
|
+
_defineProperty$e(this, "_cache", {});
|
|
67825
|
+
_defineProperty$e(this, "_order", []);
|
|
67900
67826
|
this.limit = limit;
|
|
67901
67827
|
}
|
|
67902
67828
|
get(key) {
|
|
@@ -67995,11 +67921,11 @@ function setFontAtlasCacheLimit(limit) {
|
|
|
67995
67921
|
}
|
|
67996
67922
|
class FontAtlasManager {
|
|
67997
67923
|
constructor() {
|
|
67998
|
-
_defineProperty$
|
|
67924
|
+
_defineProperty$e(this, "props", {
|
|
67999
67925
|
...DEFAULT_FONT_SETTINGS
|
|
68000
67926
|
});
|
|
68001
|
-
_defineProperty$
|
|
68002
|
-
_defineProperty$
|
|
67927
|
+
_defineProperty$e(this, "_key", void 0);
|
|
67928
|
+
_defineProperty$e(this, "_atlas", void 0);
|
|
68003
67929
|
}
|
|
68004
67930
|
get texture() {
|
|
68005
67931
|
return this._atlas;
|
|
@@ -68151,7 +68077,7 @@ const defaultProps$x = {
|
|
|
68151
68077
|
class TextBackgroundLayer extends Layer {
|
|
68152
68078
|
constructor(...args) {
|
|
68153
68079
|
super(...args);
|
|
68154
|
-
_defineProperty$
|
|
68080
|
+
_defineProperty$e(this, "state", void 0);
|
|
68155
68081
|
}
|
|
68156
68082
|
getShaders() {
|
|
68157
68083
|
return super.getShaders({
|
|
@@ -68274,8 +68200,8 @@ class TextBackgroundLayer extends Layer {
|
|
|
68274
68200
|
});
|
|
68275
68201
|
}
|
|
68276
68202
|
}
|
|
68277
|
-
_defineProperty$
|
|
68278
|
-
_defineProperty$
|
|
68203
|
+
_defineProperty$e(TextBackgroundLayer, "defaultProps", defaultProps$x);
|
|
68204
|
+
_defineProperty$e(TextBackgroundLayer, "layerName", "TextBackgroundLayer");
|
|
68279
68205
|
const TEXT_ANCHOR = {
|
|
68280
68206
|
start: 1,
|
|
68281
68207
|
middle: 0,
|
|
@@ -68372,8 +68298,8 @@ const defaultProps$w = {
|
|
|
68372
68298
|
class TextLayer extends CompositeLayer {
|
|
68373
68299
|
constructor(...args) {
|
|
68374
68300
|
super(...args);
|
|
68375
|
-
_defineProperty$
|
|
68376
|
-
_defineProperty$
|
|
68301
|
+
_defineProperty$e(this, "state", void 0);
|
|
68302
|
+
_defineProperty$e(this, "getBoundingRect", (object2, objectInfo) => {
|
|
68377
68303
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
68378
68304
|
const getText = this.state.getText;
|
|
68379
68305
|
const {
|
|
@@ -68391,7 +68317,7 @@ class TextLayer extends CompositeLayer {
|
|
|
68391
68317
|
const anchorY = ALIGNMENT_BASELINE[typeof getAlignmentBaseline === "function" ? getAlignmentBaseline(object2, objectInfo) : getAlignmentBaseline];
|
|
68392
68318
|
return [(anchorX - 1) * width / 2, (anchorY - 1) * height / 2, width, height];
|
|
68393
68319
|
});
|
|
68394
|
-
_defineProperty$
|
|
68320
|
+
_defineProperty$e(this, "getIconOffsets", (object2, objectInfo) => {
|
|
68395
68321
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
|
68396
68322
|
const getText = this.state.getText;
|
|
68397
68323
|
const {
|
|
@@ -68671,8 +68597,8 @@ class TextLayer extends CompositeLayer {
|
|
|
68671
68597
|
setFontAtlasCacheLimit(limit);
|
|
68672
68598
|
}
|
|
68673
68599
|
}
|
|
68674
|
-
_defineProperty$
|
|
68675
|
-
_defineProperty$
|
|
68600
|
+
_defineProperty$e(TextLayer, "defaultProps", defaultProps$w);
|
|
68601
|
+
_defineProperty$e(TextLayer, "layerName", "TextLayer");
|
|
68676
68602
|
const POINT_LAYER = {
|
|
68677
68603
|
circle: {
|
|
68678
68604
|
type: ScatterplotLayer,
|
|
@@ -69311,8 +69237,8 @@ class GeoJsonLayer extends CompositeLayer {
|
|
|
69311
69237
|
};
|
|
69312
69238
|
}
|
|
69313
69239
|
}
|
|
69314
|
-
_defineProperty$
|
|
69315
|
-
_defineProperty$
|
|
69240
|
+
_defineProperty$e(GeoJsonLayer, "layerName", "GeoJsonLayer");
|
|
69241
|
+
_defineProperty$e(GeoJsonLayer, "defaultProps", defaultProps$v);
|
|
69316
69242
|
const esm$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
69317
69243
|
__proto__: null,
|
|
69318
69244
|
ArcLayer,
|
|
@@ -69340,8 +69266,8 @@ const defaultProps$u = {
|
|
|
69340
69266
|
};
|
|
69341
69267
|
class GreatCircleLayer extends ArcLayer {
|
|
69342
69268
|
}
|
|
69343
|
-
_defineProperty$
|
|
69344
|
-
_defineProperty$
|
|
69269
|
+
_defineProperty$e(GreatCircleLayer, "layerName", "GreatCircleLayer");
|
|
69270
|
+
_defineProperty$e(GreatCircleLayer, "defaultProps", defaultProps$u);
|
|
69345
69271
|
const defaultProps$t = {
|
|
69346
69272
|
...PolygonLayer.defaultProps
|
|
69347
69273
|
};
|
|
@@ -69404,8 +69330,8 @@ class GeoCellLayer extends CompositeLayer {
|
|
|
69404
69330
|
}), this.indexToBounds());
|
|
69405
69331
|
}
|
|
69406
69332
|
}
|
|
69407
|
-
_defineProperty$
|
|
69408
|
-
_defineProperty$
|
|
69333
|
+
_defineProperty$e(GeoCellLayer, "layerName", "GeoCellLayer");
|
|
69334
|
+
_defineProperty$e(GeoCellLayer, "defaultProps", defaultProps$t);
|
|
69409
69335
|
var long = { exports: {} };
|
|
69410
69336
|
(function(module2) {
|
|
69411
69337
|
/**
|
|
@@ -70119,8 +70045,8 @@ class S2Layer extends GeoCellLayer {
|
|
|
70119
70045
|
};
|
|
70120
70046
|
}
|
|
70121
70047
|
}
|
|
70122
|
-
_defineProperty$
|
|
70123
|
-
_defineProperty$
|
|
70048
|
+
_defineProperty$e(S2Layer, "layerName", "S2Layer");
|
|
70049
|
+
_defineProperty$e(S2Layer, "defaultProps", defaultProps$s);
|
|
70124
70050
|
const TILE_SIZE$3 = 512;
|
|
70125
70051
|
function quadkeyToWorldBounds(quadkey) {
|
|
70126
70052
|
let x2 = 0;
|
|
@@ -70163,28 +70089,28 @@ class QuadkeyLayer extends GeoCellLayer {
|
|
|
70163
70089
|
};
|
|
70164
70090
|
}
|
|
70165
70091
|
}
|
|
70166
|
-
_defineProperty$
|
|
70167
|
-
_defineProperty$
|
|
70092
|
+
_defineProperty$e(QuadkeyLayer, "layerName", "QuadkeyLayer");
|
|
70093
|
+
_defineProperty$e(QuadkeyLayer, "defaultProps", defaultProps$r);
|
|
70168
70094
|
class Tile2DHeader {
|
|
70169
70095
|
constructor(index2) {
|
|
70170
|
-
_defineProperty$
|
|
70171
|
-
_defineProperty$
|
|
70172
|
-
_defineProperty$
|
|
70173
|
-
_defineProperty$
|
|
70174
|
-
_defineProperty$
|
|
70175
|
-
_defineProperty$
|
|
70176
|
-
_defineProperty$
|
|
70177
|
-
_defineProperty$
|
|
70178
|
-
_defineProperty$
|
|
70179
|
-
_defineProperty$
|
|
70180
|
-
_defineProperty$
|
|
70181
|
-
_defineProperty$
|
|
70182
|
-
_defineProperty$
|
|
70183
|
-
_defineProperty$
|
|
70184
|
-
_defineProperty$
|
|
70185
|
-
_defineProperty$
|
|
70186
|
-
_defineProperty$
|
|
70187
|
-
_defineProperty$
|
|
70096
|
+
_defineProperty$e(this, "index", void 0);
|
|
70097
|
+
_defineProperty$e(this, "isVisible", void 0);
|
|
70098
|
+
_defineProperty$e(this, "isSelected", void 0);
|
|
70099
|
+
_defineProperty$e(this, "parent", void 0);
|
|
70100
|
+
_defineProperty$e(this, "children", void 0);
|
|
70101
|
+
_defineProperty$e(this, "content", void 0);
|
|
70102
|
+
_defineProperty$e(this, "state", void 0);
|
|
70103
|
+
_defineProperty$e(this, "layers", void 0);
|
|
70104
|
+
_defineProperty$e(this, "id", void 0);
|
|
70105
|
+
_defineProperty$e(this, "bbox", void 0);
|
|
70106
|
+
_defineProperty$e(this, "zoom", void 0);
|
|
70107
|
+
_defineProperty$e(this, "userData", void 0);
|
|
70108
|
+
_defineProperty$e(this, "_abortController", void 0);
|
|
70109
|
+
_defineProperty$e(this, "_loader", void 0);
|
|
70110
|
+
_defineProperty$e(this, "_loaderId", void 0);
|
|
70111
|
+
_defineProperty$e(this, "_isLoaded", void 0);
|
|
70112
|
+
_defineProperty$e(this, "_isCancelled", void 0);
|
|
70113
|
+
_defineProperty$e(this, "_needsReload", void 0);
|
|
70188
70114
|
this.index = index2;
|
|
70189
70115
|
this.isVisible = false;
|
|
70190
70116
|
this.isSelected = false;
|
|
@@ -70312,10 +70238,10 @@ const scratchVector$6 = new Vector3();
|
|
|
70312
70238
|
const scratchNormal$3 = new Vector3();
|
|
70313
70239
|
class AxisAlignedBoundingBox {
|
|
70314
70240
|
constructor(minimum = [0, 0, 0], maximum = [0, 0, 0], center2) {
|
|
70315
|
-
_defineProperty$
|
|
70316
|
-
_defineProperty$
|
|
70317
|
-
_defineProperty$
|
|
70318
|
-
_defineProperty$
|
|
70241
|
+
_defineProperty$e(this, "center", void 0);
|
|
70242
|
+
_defineProperty$e(this, "halfDiagonal", void 0);
|
|
70243
|
+
_defineProperty$e(this, "minimum", void 0);
|
|
70244
|
+
_defineProperty$e(this, "maximum", void 0);
|
|
70319
70245
|
center2 = center2 || scratchVector$6.copy(minimum).add(maximum).scale(0.5);
|
|
70320
70246
|
this.center = new Vector3(center2);
|
|
70321
70247
|
this.halfDiagonal = new Vector3(maximum).subtract(this.center);
|
|
@@ -70379,8 +70305,8 @@ const scratchVector$5 = new Vector3();
|
|
|
70379
70305
|
const scratchVector2$2 = new Vector3();
|
|
70380
70306
|
class BoundingSphere {
|
|
70381
70307
|
constructor(center2 = [0, 0, 0], radius = 0) {
|
|
70382
|
-
_defineProperty$
|
|
70383
|
-
_defineProperty$
|
|
70308
|
+
_defineProperty$e(this, "center", void 0);
|
|
70309
|
+
_defineProperty$e(this, "radius", void 0);
|
|
70384
70310
|
this.radius = -0;
|
|
70385
70311
|
this.center = new Vector3();
|
|
70386
70312
|
this.fromCenterRadius(center2, radius);
|
|
@@ -70478,8 +70404,8 @@ const MATRIX3 = {
|
|
|
70478
70404
|
};
|
|
70479
70405
|
class OrientedBoundingBox {
|
|
70480
70406
|
constructor(center2 = [0, 0, 0], halfAxes = [0, 0, 0, 0, 0, 0, 0, 0, 0]) {
|
|
70481
|
-
_defineProperty$
|
|
70482
|
-
_defineProperty$
|
|
70407
|
+
_defineProperty$e(this, "center", void 0);
|
|
70408
|
+
_defineProperty$e(this, "halfAxes", void 0);
|
|
70483
70409
|
this.center = new Vector3().from(center2);
|
|
70484
70410
|
this.halfAxes = new Matrix3(halfAxes);
|
|
70485
70411
|
}
|
|
@@ -70648,8 +70574,8 @@ const scratchPosition$2 = new Vector3();
|
|
|
70648
70574
|
const scratchNormal$2 = new Vector3();
|
|
70649
70575
|
class Plane {
|
|
70650
70576
|
constructor(normal = [0, 0, 1], distance2 = 0) {
|
|
70651
|
-
_defineProperty$
|
|
70652
|
-
_defineProperty$
|
|
70577
|
+
_defineProperty$e(this, "normal", void 0);
|
|
70578
|
+
_defineProperty$e(this, "distance", void 0);
|
|
70653
70579
|
this.normal = new Vector3();
|
|
70654
70580
|
this.distance = -0;
|
|
70655
70581
|
this.fromNormalDistance(normal, distance2);
|
|
@@ -70700,7 +70626,7 @@ const scratchPlaneNormal = new Vector3();
|
|
|
70700
70626
|
new Plane(new Vector3(1, 0, 0), 0);
|
|
70701
70627
|
class CullingVolume {
|
|
70702
70628
|
constructor(planes = []) {
|
|
70703
|
-
_defineProperty$
|
|
70629
|
+
_defineProperty$e(this, "planes", void 0);
|
|
70704
70630
|
this.planes = planes;
|
|
70705
70631
|
}
|
|
70706
70632
|
fromBoundingSphere(boundingSphere) {
|
|
@@ -70765,9 +70691,9 @@ class CullingVolume {
|
|
|
70765
70691
|
return mask2;
|
|
70766
70692
|
}
|
|
70767
70693
|
}
|
|
70768
|
-
_defineProperty$
|
|
70769
|
-
_defineProperty$
|
|
70770
|
-
_defineProperty$
|
|
70694
|
+
_defineProperty$e(CullingVolume, "MASK_OUTSIDE", 4294967295);
|
|
70695
|
+
_defineProperty$e(CullingVolume, "MASK_INSIDE", 0);
|
|
70696
|
+
_defineProperty$e(CullingVolume, "MASK_INDETERMINATE", 2147483647);
|
|
70771
70697
|
new Vector3();
|
|
70772
70698
|
new Vector3();
|
|
70773
70699
|
new Vector3();
|
|
@@ -70960,12 +70886,12 @@ const REF_POINTS_9 = REF_POINTS_5.concat([[0, 0.5], [0.5, 0], [1, 0.5], [0.5, 1]
|
|
|
70960
70886
|
const REF_POINTS_11 = REF_POINTS_9.concat([[0.25, 0.5], [0.75, 0.5]]);
|
|
70961
70887
|
class OSMNode {
|
|
70962
70888
|
constructor(x2, y2, z2) {
|
|
70963
|
-
_defineProperty$
|
|
70964
|
-
_defineProperty$
|
|
70965
|
-
_defineProperty$
|
|
70966
|
-
_defineProperty$
|
|
70967
|
-
_defineProperty$
|
|
70968
|
-
_defineProperty$
|
|
70889
|
+
_defineProperty$e(this, "x", void 0);
|
|
70890
|
+
_defineProperty$e(this, "y", void 0);
|
|
70891
|
+
_defineProperty$e(this, "z", void 0);
|
|
70892
|
+
_defineProperty$e(this, "childVisible", void 0);
|
|
70893
|
+
_defineProperty$e(this, "selected", void 0);
|
|
70894
|
+
_defineProperty$e(this, "_children", void 0);
|
|
70969
70895
|
this.x = x2;
|
|
70970
70896
|
this.y = y2;
|
|
70971
70897
|
this.z = z2;
|
|
@@ -71308,22 +71234,22 @@ const STRATEGIES = {
|
|
|
71308
71234
|
};
|
|
71309
71235
|
class Tileset2D {
|
|
71310
71236
|
constructor(opts2) {
|
|
71311
|
-
_defineProperty$
|
|
71312
|
-
_defineProperty$
|
|
71313
|
-
_defineProperty$
|
|
71314
|
-
_defineProperty$
|
|
71315
|
-
_defineProperty$
|
|
71316
|
-
_defineProperty$
|
|
71317
|
-
_defineProperty$
|
|
71318
|
-
_defineProperty$
|
|
71319
|
-
_defineProperty$
|
|
71320
|
-
_defineProperty$
|
|
71321
|
-
_defineProperty$
|
|
71322
|
-
_defineProperty$
|
|
71323
|
-
_defineProperty$
|
|
71324
|
-
_defineProperty$
|
|
71325
|
-
_defineProperty$
|
|
71326
|
-
_defineProperty$
|
|
71237
|
+
_defineProperty$e(this, "opts", void 0);
|
|
71238
|
+
_defineProperty$e(this, "_requestScheduler", void 0);
|
|
71239
|
+
_defineProperty$e(this, "_cache", void 0);
|
|
71240
|
+
_defineProperty$e(this, "_dirty", void 0);
|
|
71241
|
+
_defineProperty$e(this, "_tiles", void 0);
|
|
71242
|
+
_defineProperty$e(this, "_cacheByteSize", void 0);
|
|
71243
|
+
_defineProperty$e(this, "_viewport", void 0);
|
|
71244
|
+
_defineProperty$e(this, "_zRange", void 0);
|
|
71245
|
+
_defineProperty$e(this, "_selectedTiles", void 0);
|
|
71246
|
+
_defineProperty$e(this, "_frameNumber", void 0);
|
|
71247
|
+
_defineProperty$e(this, "_modelMatrix", void 0);
|
|
71248
|
+
_defineProperty$e(this, "_modelMatrixInverse", void 0);
|
|
71249
|
+
_defineProperty$e(this, "_maxZoom", void 0);
|
|
71250
|
+
_defineProperty$e(this, "_minZoom", void 0);
|
|
71251
|
+
_defineProperty$e(this, "onTileLoad", void 0);
|
|
71252
|
+
_defineProperty$e(this, "_getCullBounds", memoize$1(getCullBounds));
|
|
71327
71253
|
this.opts = opts2;
|
|
71328
71254
|
this.onTileLoad = (tile) => {
|
|
71329
71255
|
this.opts.onTileLoad(tile);
|
|
@@ -71949,8 +71875,8 @@ class TileLayer extends CompositeLayer {
|
|
|
71949
71875
|
return this.state.tileset.isTileVisible(tile, cullRect);
|
|
71950
71876
|
}
|
|
71951
71877
|
}
|
|
71952
|
-
_defineProperty$
|
|
71953
|
-
_defineProperty$
|
|
71878
|
+
_defineProperty$e(TileLayer, "defaultProps", defaultProps$q);
|
|
71879
|
+
_defineProperty$e(TileLayer, "layerName", "TileLayer");
|
|
71954
71880
|
const defaultProps$p = {
|
|
71955
71881
|
fadeTrail: true,
|
|
71956
71882
|
trailLength: {
|
|
@@ -72013,8 +71939,8 @@ class TripsLayer extends PathLayer {
|
|
|
72013
71939
|
super.draw(params);
|
|
72014
71940
|
}
|
|
72015
71941
|
}
|
|
72016
|
-
_defineProperty$
|
|
72017
|
-
_defineProperty$
|
|
71942
|
+
_defineProperty$e(TripsLayer, "layerName", "TripsLayer");
|
|
71943
|
+
_defineProperty$e(TripsLayer, "defaultProps", defaultProps$p);
|
|
72018
71944
|
var libh3 = function(libh32) {
|
|
72019
71945
|
libh32 = libh32 || {};
|
|
72020
71946
|
var Module = typeof libh32 !== "undefined" ? libh32 : {};
|
|
@@ -83573,8 +83499,8 @@ class H3ClusterLayer extends GeoCellLayer {
|
|
|
83573
83499
|
};
|
|
83574
83500
|
}
|
|
83575
83501
|
}
|
|
83576
|
-
_defineProperty$
|
|
83577
|
-
_defineProperty$
|
|
83502
|
+
_defineProperty$e(H3ClusterLayer, "layerName", "H3ClusterLayer");
|
|
83503
|
+
_defineProperty$e(H3ClusterLayer, "defaultProps", defaultProps$o);
|
|
83578
83504
|
const UPDATE_THRESHOLD_KM = 10;
|
|
83579
83505
|
function normalizeLongitudes(vertices, refLng) {
|
|
83580
83506
|
refLng = refLng === void 0 ? vertices[0][0] : refLng;
|
|
@@ -83656,7 +83582,7 @@ const defaultProps$n = {
|
|
|
83656
83582
|
class H3HexagonLayer extends CompositeLayer {
|
|
83657
83583
|
constructor(...args) {
|
|
83658
83584
|
super(...args);
|
|
83659
|
-
_defineProperty$
|
|
83585
|
+
_defineProperty$e(this, "state", void 0);
|
|
83660
83586
|
}
|
|
83661
83587
|
initializeState() {
|
|
83662
83588
|
H3HexagonLayer._checkH3Lib();
|
|
@@ -83857,9 +83783,9 @@ class H3HexagonLayer extends CompositeLayer {
|
|
|
83857
83783
|
});
|
|
83858
83784
|
}
|
|
83859
83785
|
}
|
|
83860
|
-
_defineProperty$
|
|
83861
|
-
_defineProperty$
|
|
83862
|
-
_defineProperty$
|
|
83786
|
+
_defineProperty$e(H3HexagonLayer, "defaultProps", defaultProps$n);
|
|
83787
|
+
_defineProperty$e(H3HexagonLayer, "layerName", "H3HexagonLayer");
|
|
83788
|
+
_defineProperty$e(H3HexagonLayer, "_checkH3Lib", () => {
|
|
83863
83789
|
});
|
|
83864
83790
|
const RADIAN_PER_DEGREE = Math.PI / 180;
|
|
83865
83791
|
const modelMatrix = new Float32Array(16);
|
|
@@ -84078,7 +84004,7 @@ const defaultProps$m = {
|
|
|
84078
84004
|
class SimpleMeshLayer extends Layer {
|
|
84079
84005
|
constructor(...args) {
|
|
84080
84006
|
super(...args);
|
|
84081
|
-
_defineProperty$
|
|
84007
|
+
_defineProperty$e(this, "state", void 0);
|
|
84082
84008
|
}
|
|
84083
84009
|
getShaders() {
|
|
84084
84010
|
const transpileToGLSL100 = !isWebGL2$1(this.context.gl);
|
|
@@ -84204,8 +84130,8 @@ class SimpleMeshLayer extends Layer {
|
|
|
84204
84130
|
}
|
|
84205
84131
|
}
|
|
84206
84132
|
}
|
|
84207
|
-
_defineProperty$
|
|
84208
|
-
_defineProperty$
|
|
84133
|
+
_defineProperty$e(SimpleMeshLayer, "defaultProps", defaultProps$m);
|
|
84134
|
+
_defineProperty$e(SimpleMeshLayer, "layerName", "SimpleMeshLayer");
|
|
84209
84135
|
class ScenegraphNode {
|
|
84210
84136
|
constructor() {
|
|
84211
84137
|
let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -85564,9 +85490,9 @@ const DEFAULT_GLTF_JSON = {
|
|
|
85564
85490
|
};
|
|
85565
85491
|
class GLTFScenegraph {
|
|
85566
85492
|
constructor(gltf) {
|
|
85567
|
-
_defineProperty$
|
|
85568
|
-
_defineProperty$
|
|
85569
|
-
_defineProperty$
|
|
85493
|
+
_defineProperty$e(this, "gltf", void 0);
|
|
85494
|
+
_defineProperty$e(this, "sourceBuffers", void 0);
|
|
85495
|
+
_defineProperty$e(this, "byteLength", void 0);
|
|
85570
85496
|
this.gltf = gltf || {
|
|
85571
85497
|
json: {
|
|
85572
85498
|
...DEFAULT_GLTF_JSON
|
|
@@ -86184,8 +86110,8 @@ function assert$2(condition, message) {
|
|
|
86184
86110
|
}
|
|
86185
86111
|
class Schema {
|
|
86186
86112
|
constructor(fields, metadata) {
|
|
86187
|
-
_defineProperty$
|
|
86188
|
-
_defineProperty$
|
|
86113
|
+
_defineProperty$e(this, "fields", void 0);
|
|
86114
|
+
_defineProperty$e(this, "metadata", void 0);
|
|
86189
86115
|
assert$2(Array.isArray(fields));
|
|
86190
86116
|
checkNames(fields);
|
|
86191
86117
|
this.fields = fields;
|
|
@@ -86252,10 +86178,10 @@ function mergeMaps(m1, m2) {
|
|
|
86252
86178
|
}
|
|
86253
86179
|
class Field {
|
|
86254
86180
|
constructor(name2, type2, nullable = false, metadata = /* @__PURE__ */ new Map()) {
|
|
86255
|
-
_defineProperty$
|
|
86256
|
-
_defineProperty$
|
|
86257
|
-
_defineProperty$
|
|
86258
|
-
_defineProperty$
|
|
86181
|
+
_defineProperty$e(this, "name", void 0);
|
|
86182
|
+
_defineProperty$e(this, "type", void 0);
|
|
86183
|
+
_defineProperty$e(this, "nullable", void 0);
|
|
86184
|
+
_defineProperty$e(this, "metadata", void 0);
|
|
86259
86185
|
this.name = name2;
|
|
86260
86186
|
this.type = type2;
|
|
86261
86187
|
this.nullable = nullable;
|
|
@@ -86388,8 +86314,8 @@ _Symbol$toStringTag = Symbol.toStringTag;
|
|
|
86388
86314
|
class Int extends DataType {
|
|
86389
86315
|
constructor(isSigned, bitWidth) {
|
|
86390
86316
|
super();
|
|
86391
|
-
_defineProperty$
|
|
86392
|
-
_defineProperty$
|
|
86317
|
+
_defineProperty$e(this, "isSigned", void 0);
|
|
86318
|
+
_defineProperty$e(this, "bitWidth", void 0);
|
|
86393
86319
|
this.isSigned = isSigned;
|
|
86394
86320
|
this.bitWidth = bitWidth;
|
|
86395
86321
|
}
|
|
@@ -86442,7 +86368,7 @@ _Symbol$toStringTag2 = Symbol.toStringTag;
|
|
|
86442
86368
|
class Float extends DataType {
|
|
86443
86369
|
constructor(precision) {
|
|
86444
86370
|
super();
|
|
86445
|
-
_defineProperty$
|
|
86371
|
+
_defineProperty$e(this, "precision", void 0);
|
|
86446
86372
|
this.precision = precision;
|
|
86447
86373
|
}
|
|
86448
86374
|
get typeId() {
|
|
@@ -86469,8 +86395,8 @@ _Symbol$toStringTag7 = Symbol.toStringTag;
|
|
|
86469
86395
|
class FixedSizeList extends DataType {
|
|
86470
86396
|
constructor(listSize, child) {
|
|
86471
86397
|
super();
|
|
86472
|
-
_defineProperty$
|
|
86473
|
-
_defineProperty$
|
|
86398
|
+
_defineProperty$e(this, "listSize", void 0);
|
|
86399
|
+
_defineProperty$e(this, "children", void 0);
|
|
86474
86400
|
this.listSize = listSize;
|
|
86475
86401
|
this.children = [child];
|
|
86476
86402
|
}
|
|
@@ -86584,9 +86510,9 @@ const DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP = {
|
|
|
86584
86510
|
const INDEX_ITEM_SIZE = 4;
|
|
86585
86511
|
class DracoParser {
|
|
86586
86512
|
constructor(draco) {
|
|
86587
|
-
_defineProperty$
|
|
86588
|
-
_defineProperty$
|
|
86589
|
-
_defineProperty$
|
|
86513
|
+
_defineProperty$e(this, "draco", void 0);
|
|
86514
|
+
_defineProperty$e(this, "decoder", void 0);
|
|
86515
|
+
_defineProperty$e(this, "metadataQuerier", void 0);
|
|
86590
86516
|
this.draco = draco;
|
|
86591
86517
|
this.decoder = new this.draco.Decoder();
|
|
86592
86518
|
this.metadataQuerier = new this.draco.MetadataQuerier();
|
|
@@ -87366,7 +87292,7 @@ const GLTF_KEYS = {
|
|
|
87366
87292
|
};
|
|
87367
87293
|
class GLTFV1Normalizer {
|
|
87368
87294
|
constructor() {
|
|
87369
|
-
_defineProperty$
|
|
87295
|
+
_defineProperty$e(this, "idToIndexMap", {
|
|
87370
87296
|
animations: {},
|
|
87371
87297
|
accessors: {},
|
|
87372
87298
|
buffers: {},
|
|
@@ -87380,7 +87306,7 @@ class GLTFV1Normalizer {
|
|
|
87380
87306
|
skins: {},
|
|
87381
87307
|
textures: {}
|
|
87382
87308
|
});
|
|
87383
|
-
_defineProperty$
|
|
87309
|
+
_defineProperty$e(this, "json", void 0);
|
|
87384
87310
|
}
|
|
87385
87311
|
normalize(gltf, options) {
|
|
87386
87312
|
this.json = gltf.json;
|
|
@@ -87582,10 +87508,10 @@ function getSizeFromAccessorType(type2) {
|
|
|
87582
87508
|
}
|
|
87583
87509
|
class GLTFPostProcessor {
|
|
87584
87510
|
constructor() {
|
|
87585
|
-
_defineProperty$
|
|
87586
|
-
_defineProperty$
|
|
87587
|
-
_defineProperty$
|
|
87588
|
-
_defineProperty$
|
|
87511
|
+
_defineProperty$e(this, "baseUri", "");
|
|
87512
|
+
_defineProperty$e(this, "json", {});
|
|
87513
|
+
_defineProperty$e(this, "buffers", []);
|
|
87514
|
+
_defineProperty$e(this, "images", []);
|
|
87589
87515
|
}
|
|
87590
87516
|
postProcess(gltf, options = {}) {
|
|
87591
87517
|
const {
|
|
@@ -88240,7 +88166,7 @@ const defaultProps$l = {
|
|
|
88240
88166
|
class ScenegraphLayer extends Layer {
|
|
88241
88167
|
constructor(...args) {
|
|
88242
88168
|
super(...args);
|
|
88243
|
-
_defineProperty$
|
|
88169
|
+
_defineProperty$e(this, "state", void 0);
|
|
88244
88170
|
}
|
|
88245
88171
|
getShaders() {
|
|
88246
88172
|
const modules = [project32, picking];
|
|
@@ -88455,8 +88381,8 @@ class ScenegraphLayer extends Layer {
|
|
|
88455
88381
|
});
|
|
88456
88382
|
}
|
|
88457
88383
|
}
|
|
88458
|
-
_defineProperty$
|
|
88459
|
-
_defineProperty$
|
|
88384
|
+
_defineProperty$e(ScenegraphLayer, "defaultProps", defaultProps$l);
|
|
88385
|
+
_defineProperty$e(ScenegraphLayer, "layerName", "ScenegraphLayer");
|
|
88460
88386
|
const esm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88461
88387
|
__proto__: null,
|
|
88462
88388
|
ScenegraphLayer,
|
|
@@ -88615,8 +88541,8 @@ class MeshLayer extends SimpleMeshLayer {
|
|
|
88615
88541
|
});
|
|
88616
88542
|
}
|
|
88617
88543
|
}
|
|
88618
|
-
_defineProperty$
|
|
88619
|
-
_defineProperty$
|
|
88544
|
+
_defineProperty$e(MeshLayer, "layerName", "MeshLayer");
|
|
88545
|
+
_defineProperty$e(MeshLayer, "defaultProps", defaultProps$k);
|
|
88620
88546
|
const WGS84_RADIUS_X$1 = 6378137;
|
|
88621
88547
|
const WGS84_RADIUS_Y$1 = 6378137;
|
|
88622
88548
|
const WGS84_RADIUS_Z$1 = 6356752314245179e-9;
|
|
@@ -88848,15 +88774,15 @@ const scratchHeight = new Vector3();
|
|
|
88848
88774
|
const scratchCartesian = new Vector3();
|
|
88849
88775
|
class Ellipsoid {
|
|
88850
88776
|
constructor(x2 = 0, y2 = 0, z2 = 0) {
|
|
88851
|
-
_defineProperty$
|
|
88852
|
-
_defineProperty$
|
|
88853
|
-
_defineProperty$
|
|
88854
|
-
_defineProperty$
|
|
88855
|
-
_defineProperty$
|
|
88856
|
-
_defineProperty$
|
|
88857
|
-
_defineProperty$
|
|
88858
|
-
_defineProperty$
|
|
88859
|
-
_defineProperty$
|
|
88777
|
+
_defineProperty$e(this, "radii", void 0);
|
|
88778
|
+
_defineProperty$e(this, "radiiSquared", void 0);
|
|
88779
|
+
_defineProperty$e(this, "radiiToTheFourth", void 0);
|
|
88780
|
+
_defineProperty$e(this, "oneOverRadii", void 0);
|
|
88781
|
+
_defineProperty$e(this, "oneOverRadiiSquared", void 0);
|
|
88782
|
+
_defineProperty$e(this, "minimumRadius", void 0);
|
|
88783
|
+
_defineProperty$e(this, "maximumRadius", void 0);
|
|
88784
|
+
_defineProperty$e(this, "centerToleranceSquared", _MathUtils.EPSILON1);
|
|
88785
|
+
_defineProperty$e(this, "squaredXOverSquaredZ", void 0);
|
|
88860
88786
|
assert$6(x2 >= 0);
|
|
88861
88787
|
assert$6(y2 >= 0);
|
|
88862
88788
|
assert$6(z2 >= 0);
|
|
@@ -88953,12 +88879,12 @@ class Ellipsoid {
|
|
|
88953
88879
|
return scratchPosition$1.set(0, 0, z2).to(result);
|
|
88954
88880
|
}
|
|
88955
88881
|
}
|
|
88956
|
-
_defineProperty$
|
|
88882
|
+
_defineProperty$e(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X$1, WGS84_RADIUS_Y$1, WGS84_RADIUS_Z$1));
|
|
88957
88883
|
class DoublyLinkedListNode {
|
|
88958
88884
|
constructor(item, previous, next) {
|
|
88959
|
-
_defineProperty$
|
|
88960
|
-
_defineProperty$
|
|
88961
|
-
_defineProperty$
|
|
88885
|
+
_defineProperty$e(this, "item", void 0);
|
|
88886
|
+
_defineProperty$e(this, "previous", void 0);
|
|
88887
|
+
_defineProperty$e(this, "next", void 0);
|
|
88962
88888
|
this.item = item;
|
|
88963
88889
|
this.previous = previous;
|
|
88964
88890
|
this.next = next;
|
|
@@ -88966,9 +88892,9 @@ class DoublyLinkedListNode {
|
|
|
88966
88892
|
}
|
|
88967
88893
|
class DoublyLinkedList {
|
|
88968
88894
|
constructor() {
|
|
88969
|
-
_defineProperty$
|
|
88970
|
-
_defineProperty$
|
|
88971
|
-
_defineProperty$
|
|
88895
|
+
_defineProperty$e(this, "head", null);
|
|
88896
|
+
_defineProperty$e(this, "tail", null);
|
|
88897
|
+
_defineProperty$e(this, "_length", 0);
|
|
88972
88898
|
}
|
|
88973
88899
|
get length() {
|
|
88974
88900
|
return this._length;
|
|
@@ -89031,9 +88957,9 @@ function defined$4(x2) {
|
|
|
89031
88957
|
}
|
|
89032
88958
|
class TilesetCache {
|
|
89033
88959
|
constructor() {
|
|
89034
|
-
_defineProperty$
|
|
89035
|
-
_defineProperty$
|
|
89036
|
-
_defineProperty$
|
|
88960
|
+
_defineProperty$e(this, "_list", void 0);
|
|
88961
|
+
_defineProperty$e(this, "_sentinel", void 0);
|
|
88962
|
+
_defineProperty$e(this, "_trimTiles", void 0);
|
|
89037
88963
|
this._list = new DoublyLinkedList();
|
|
89038
88964
|
this._sentinel = this._list.add("sentinel");
|
|
89039
88965
|
this._trimTiles = false;
|
|
@@ -89476,9 +89402,9 @@ function get3dTilesOptions(tileset) {
|
|
|
89476
89402
|
}
|
|
89477
89403
|
class ManagedArray {
|
|
89478
89404
|
constructor(length2 = 0) {
|
|
89479
|
-
_defineProperty$
|
|
89480
|
-
_defineProperty$
|
|
89481
|
-
_defineProperty$
|
|
89405
|
+
_defineProperty$e(this, "_map", /* @__PURE__ */ new Map());
|
|
89406
|
+
_defineProperty$e(this, "_array", void 0);
|
|
89407
|
+
_defineProperty$e(this, "_length", void 0);
|
|
89482
89408
|
this._array = new Array(length2);
|
|
89483
89409
|
this._length = length2;
|
|
89484
89410
|
}
|
|
@@ -89572,16 +89498,16 @@ class TilesetTraverser {
|
|
|
89572
89498
|
return true;
|
|
89573
89499
|
}
|
|
89574
89500
|
constructor(options) {
|
|
89575
|
-
_defineProperty$
|
|
89576
|
-
_defineProperty$
|
|
89577
|
-
_defineProperty$
|
|
89578
|
-
_defineProperty$
|
|
89579
|
-
_defineProperty$
|
|
89580
|
-
_defineProperty$
|
|
89581
|
-
_defineProperty$
|
|
89582
|
-
_defineProperty$
|
|
89583
|
-
_defineProperty$
|
|
89584
|
-
_defineProperty$
|
|
89501
|
+
_defineProperty$e(this, "options", void 0);
|
|
89502
|
+
_defineProperty$e(this, "root", void 0);
|
|
89503
|
+
_defineProperty$e(this, "requestedTiles", void 0);
|
|
89504
|
+
_defineProperty$e(this, "selectedTiles", void 0);
|
|
89505
|
+
_defineProperty$e(this, "emptyTiles", void 0);
|
|
89506
|
+
_defineProperty$e(this, "lastUpdate", (/* @__PURE__ */ new Date()).getTime());
|
|
89507
|
+
_defineProperty$e(this, "updateDebounceTime", 1e3);
|
|
89508
|
+
_defineProperty$e(this, "_traversalStack", void 0);
|
|
89509
|
+
_defineProperty$e(this, "_emptyTraversalStack", void 0);
|
|
89510
|
+
_defineProperty$e(this, "_frameNumber", void 0);
|
|
89585
89511
|
this.options = {
|
|
89586
89512
|
...DEFAULT_PROPS$1,
|
|
89587
89513
|
...options
|
|
@@ -89802,52 +89728,52 @@ function defined$2(x2) {
|
|
|
89802
89728
|
}
|
|
89803
89729
|
class TileHeader {
|
|
89804
89730
|
constructor(tileset, header, parentHeader, extendedId = "") {
|
|
89805
|
-
_defineProperty$
|
|
89806
|
-
_defineProperty$
|
|
89807
|
-
_defineProperty$
|
|
89808
|
-
_defineProperty$
|
|
89809
|
-
_defineProperty$
|
|
89810
|
-
_defineProperty$
|
|
89811
|
-
_defineProperty$
|
|
89812
|
-
_defineProperty$
|
|
89813
|
-
_defineProperty$
|
|
89814
|
-
_defineProperty$
|
|
89815
|
-
_defineProperty$
|
|
89816
|
-
_defineProperty$
|
|
89817
|
-
_defineProperty$
|
|
89818
|
-
_defineProperty$
|
|
89819
|
-
_defineProperty$
|
|
89820
|
-
_defineProperty$
|
|
89821
|
-
_defineProperty$
|
|
89822
|
-
_defineProperty$
|
|
89823
|
-
_defineProperty$
|
|
89824
|
-
_defineProperty$
|
|
89825
|
-
_defineProperty$
|
|
89826
|
-
_defineProperty$
|
|
89827
|
-
_defineProperty$
|
|
89828
|
-
_defineProperty$
|
|
89829
|
-
_defineProperty$
|
|
89830
|
-
_defineProperty$
|
|
89831
|
-
_defineProperty$
|
|
89832
|
-
_defineProperty$
|
|
89833
|
-
_defineProperty$
|
|
89834
|
-
_defineProperty$
|
|
89835
|
-
_defineProperty$
|
|
89836
|
-
_defineProperty$
|
|
89837
|
-
_defineProperty$
|
|
89838
|
-
_defineProperty$
|
|
89839
|
-
_defineProperty$
|
|
89840
|
-
_defineProperty$
|
|
89841
|
-
_defineProperty$
|
|
89842
|
-
_defineProperty$
|
|
89843
|
-
_defineProperty$
|
|
89844
|
-
_defineProperty$
|
|
89845
|
-
_defineProperty$
|
|
89846
|
-
_defineProperty$
|
|
89847
|
-
_defineProperty$
|
|
89848
|
-
_defineProperty$
|
|
89849
|
-
_defineProperty$
|
|
89850
|
-
_defineProperty$
|
|
89731
|
+
_defineProperty$e(this, "tileset", void 0);
|
|
89732
|
+
_defineProperty$e(this, "header", void 0);
|
|
89733
|
+
_defineProperty$e(this, "id", void 0);
|
|
89734
|
+
_defineProperty$e(this, "url", void 0);
|
|
89735
|
+
_defineProperty$e(this, "parent", void 0);
|
|
89736
|
+
_defineProperty$e(this, "refine", void 0);
|
|
89737
|
+
_defineProperty$e(this, "type", void 0);
|
|
89738
|
+
_defineProperty$e(this, "contentUrl", void 0);
|
|
89739
|
+
_defineProperty$e(this, "lodMetricType", void 0);
|
|
89740
|
+
_defineProperty$e(this, "lodMetricValue", void 0);
|
|
89741
|
+
_defineProperty$e(this, "boundingVolume", void 0);
|
|
89742
|
+
_defineProperty$e(this, "content", void 0);
|
|
89743
|
+
_defineProperty$e(this, "contentState", void 0);
|
|
89744
|
+
_defineProperty$e(this, "gpuMemoryUsageInBytes", void 0);
|
|
89745
|
+
_defineProperty$e(this, "children", void 0);
|
|
89746
|
+
_defineProperty$e(this, "depth", void 0);
|
|
89747
|
+
_defineProperty$e(this, "viewportIds", void 0);
|
|
89748
|
+
_defineProperty$e(this, "transform", void 0);
|
|
89749
|
+
_defineProperty$e(this, "extensions", void 0);
|
|
89750
|
+
_defineProperty$e(this, "userData", void 0);
|
|
89751
|
+
_defineProperty$e(this, "computedTransform", void 0);
|
|
89752
|
+
_defineProperty$e(this, "hasEmptyContent", void 0);
|
|
89753
|
+
_defineProperty$e(this, "hasTilesetContent", void 0);
|
|
89754
|
+
_defineProperty$e(this, "traverser", void 0);
|
|
89755
|
+
_defineProperty$e(this, "_cacheNode", void 0);
|
|
89756
|
+
_defineProperty$e(this, "_frameNumber", void 0);
|
|
89757
|
+
_defineProperty$e(this, "_lodJudge", void 0);
|
|
89758
|
+
_defineProperty$e(this, "_expireDate", void 0);
|
|
89759
|
+
_defineProperty$e(this, "_expiredContent", void 0);
|
|
89760
|
+
_defineProperty$e(this, "_shouldRefine", void 0);
|
|
89761
|
+
_defineProperty$e(this, "_distanceToCamera", void 0);
|
|
89762
|
+
_defineProperty$e(this, "_centerZDepth", void 0);
|
|
89763
|
+
_defineProperty$e(this, "_screenSpaceError", void 0);
|
|
89764
|
+
_defineProperty$e(this, "_visibilityPlaneMask", void 0);
|
|
89765
|
+
_defineProperty$e(this, "_visible", void 0);
|
|
89766
|
+
_defineProperty$e(this, "_inRequestVolume", void 0);
|
|
89767
|
+
_defineProperty$e(this, "_stackLength", void 0);
|
|
89768
|
+
_defineProperty$e(this, "_selectionDepth", void 0);
|
|
89769
|
+
_defineProperty$e(this, "_touchedFrame", void 0);
|
|
89770
|
+
_defineProperty$e(this, "_visitedFrame", void 0);
|
|
89771
|
+
_defineProperty$e(this, "_selectedFrame", void 0);
|
|
89772
|
+
_defineProperty$e(this, "_requestedFrame", void 0);
|
|
89773
|
+
_defineProperty$e(this, "_priority", void 0);
|
|
89774
|
+
_defineProperty$e(this, "_contentBoundingVolume", void 0);
|
|
89775
|
+
_defineProperty$e(this, "_viewerRequestVolume", void 0);
|
|
89776
|
+
_defineProperty$e(this, "_initialTransform", void 0);
|
|
89851
89777
|
this.header = header;
|
|
89852
89778
|
this.tileset = tileset;
|
|
89853
89779
|
this.id = extendedId || header.id;
|
|
@@ -90240,7 +90166,7 @@ class Tileset3DTraverser extends TilesetTraverser {
|
|
|
90240
90166
|
}
|
|
90241
90167
|
class I3SPendingTilesRegister {
|
|
90242
90168
|
constructor() {
|
|
90243
|
-
_defineProperty$
|
|
90169
|
+
_defineProperty$e(this, "frameNumberMap", /* @__PURE__ */ new Map());
|
|
90244
90170
|
}
|
|
90245
90171
|
register(viewportId, frameNumber) {
|
|
90246
90172
|
const viewportMap = this.frameNumberMap.get(viewportId) || /* @__PURE__ */ new Map();
|
|
@@ -90269,8 +90195,8 @@ const STATUS = {
|
|
|
90269
90195
|
};
|
|
90270
90196
|
class I3STileManager {
|
|
90271
90197
|
constructor() {
|
|
90272
|
-
_defineProperty$
|
|
90273
|
-
_defineProperty$
|
|
90198
|
+
_defineProperty$e(this, "_statusMap", void 0);
|
|
90199
|
+
_defineProperty$e(this, "pendingTilesRegister", new I3SPendingTilesRegister());
|
|
90274
90200
|
this._statusMap = {};
|
|
90275
90201
|
}
|
|
90276
90202
|
add(request, key, callback, frameState) {
|
|
@@ -90344,7 +90270,7 @@ class I3STilesetTraverser extends TilesetTraverser {
|
|
|
90344
90270
|
}
|
|
90345
90271
|
constructor(options) {
|
|
90346
90272
|
super(options);
|
|
90347
|
-
_defineProperty$
|
|
90273
|
+
_defineProperty$e(this, "_tileManager", void 0);
|
|
90348
90274
|
this._tileManager = new I3STileManager();
|
|
90349
90275
|
}
|
|
90350
90276
|
shouldRefine(tile, frameState) {
|
|
@@ -90441,52 +90367,52 @@ const POINTS_COUNT = "Points/Vertices";
|
|
|
90441
90367
|
const TILES_GPU_MEMORY = "Tile Memory Use";
|
|
90442
90368
|
class Tileset3D {
|
|
90443
90369
|
constructor(json, options) {
|
|
90444
|
-
_defineProperty$
|
|
90445
|
-
_defineProperty$
|
|
90446
|
-
_defineProperty$
|
|
90447
|
-
_defineProperty$
|
|
90448
|
-
_defineProperty$
|
|
90449
|
-
_defineProperty$
|
|
90450
|
-
_defineProperty$
|
|
90451
|
-
_defineProperty$
|
|
90452
|
-
_defineProperty$
|
|
90453
|
-
_defineProperty$
|
|
90454
|
-
_defineProperty$
|
|
90455
|
-
_defineProperty$
|
|
90456
|
-
_defineProperty$
|
|
90457
|
-
_defineProperty$
|
|
90458
|
-
_defineProperty$
|
|
90459
|
-
_defineProperty$
|
|
90460
|
-
_defineProperty$
|
|
90461
|
-
_defineProperty$
|
|
90462
|
-
_defineProperty$
|
|
90463
|
-
_defineProperty$
|
|
90464
|
-
_defineProperty$
|
|
90465
|
-
_defineProperty$
|
|
90466
|
-
_defineProperty$
|
|
90467
|
-
_defineProperty$
|
|
90468
|
-
_defineProperty$
|
|
90469
|
-
_defineProperty$
|
|
90470
|
-
_defineProperty$
|
|
90471
|
-
_defineProperty$
|
|
90472
|
-
_defineProperty$
|
|
90473
|
-
_defineProperty$
|
|
90474
|
-
_defineProperty$
|
|
90475
|
-
_defineProperty$
|
|
90476
|
-
_defineProperty$
|
|
90477
|
-
_defineProperty$
|
|
90478
|
-
_defineProperty$
|
|
90479
|
-
_defineProperty$
|
|
90480
|
-
_defineProperty$
|
|
90481
|
-
_defineProperty$
|
|
90482
|
-
_defineProperty$
|
|
90483
|
-
_defineProperty$
|
|
90484
|
-
_defineProperty$
|
|
90485
|
-
_defineProperty$
|
|
90486
|
-
_defineProperty$
|
|
90487
|
-
_defineProperty$
|
|
90488
|
-
_defineProperty$
|
|
90489
|
-
_defineProperty$
|
|
90370
|
+
_defineProperty$e(this, "options", void 0);
|
|
90371
|
+
_defineProperty$e(this, "loadOptions", void 0);
|
|
90372
|
+
_defineProperty$e(this, "type", void 0);
|
|
90373
|
+
_defineProperty$e(this, "tileset", void 0);
|
|
90374
|
+
_defineProperty$e(this, "loader", void 0);
|
|
90375
|
+
_defineProperty$e(this, "url", void 0);
|
|
90376
|
+
_defineProperty$e(this, "basePath", void 0);
|
|
90377
|
+
_defineProperty$e(this, "modelMatrix", void 0);
|
|
90378
|
+
_defineProperty$e(this, "ellipsoid", void 0);
|
|
90379
|
+
_defineProperty$e(this, "lodMetricType", void 0);
|
|
90380
|
+
_defineProperty$e(this, "lodMetricValue", void 0);
|
|
90381
|
+
_defineProperty$e(this, "refine", void 0);
|
|
90382
|
+
_defineProperty$e(this, "root", void 0);
|
|
90383
|
+
_defineProperty$e(this, "roots", void 0);
|
|
90384
|
+
_defineProperty$e(this, "asset", void 0);
|
|
90385
|
+
_defineProperty$e(this, "description", void 0);
|
|
90386
|
+
_defineProperty$e(this, "properties", void 0);
|
|
90387
|
+
_defineProperty$e(this, "extras", void 0);
|
|
90388
|
+
_defineProperty$e(this, "attributions", void 0);
|
|
90389
|
+
_defineProperty$e(this, "credits", void 0);
|
|
90390
|
+
_defineProperty$e(this, "stats", void 0);
|
|
90391
|
+
_defineProperty$e(this, "traverseCounter", void 0);
|
|
90392
|
+
_defineProperty$e(this, "geometricError", void 0);
|
|
90393
|
+
_defineProperty$e(this, "selectedTiles", void 0);
|
|
90394
|
+
_defineProperty$e(this, "updatePromise", null);
|
|
90395
|
+
_defineProperty$e(this, "tilesetInitializationPromise", void 0);
|
|
90396
|
+
_defineProperty$e(this, "cartographicCenter", void 0);
|
|
90397
|
+
_defineProperty$e(this, "cartesianCenter", void 0);
|
|
90398
|
+
_defineProperty$e(this, "zoom", void 0);
|
|
90399
|
+
_defineProperty$e(this, "boundingVolume", void 0);
|
|
90400
|
+
_defineProperty$e(this, "gpuMemoryUsageInBytes", void 0);
|
|
90401
|
+
_defineProperty$e(this, "dynamicScreenSpaceErrorComputedDensity", void 0);
|
|
90402
|
+
_defineProperty$e(this, "_traverser", void 0);
|
|
90403
|
+
_defineProperty$e(this, "_cache", void 0);
|
|
90404
|
+
_defineProperty$e(this, "_requestScheduler", void 0);
|
|
90405
|
+
_defineProperty$e(this, "_frameNumber", void 0);
|
|
90406
|
+
_defineProperty$e(this, "_queryParamsString", void 0);
|
|
90407
|
+
_defineProperty$e(this, "_queryParams", void 0);
|
|
90408
|
+
_defineProperty$e(this, "_extensionsUsed", void 0);
|
|
90409
|
+
_defineProperty$e(this, "_tiles", void 0);
|
|
90410
|
+
_defineProperty$e(this, "_pendingCount", void 0);
|
|
90411
|
+
_defineProperty$e(this, "lastUpdatedVieports", void 0);
|
|
90412
|
+
_defineProperty$e(this, "_requestedTiles", void 0);
|
|
90413
|
+
_defineProperty$e(this, "_emptyTiles", void 0);
|
|
90414
|
+
_defineProperty$e(this, "frameStateData", void 0);
|
|
90415
|
+
_defineProperty$e(this, "maximumMemoryUsage", void 0);
|
|
90490
90416
|
assert$c(json);
|
|
90491
90417
|
this.options = {
|
|
90492
90418
|
...DEFAULT_PROPS,
|
|
@@ -91142,10 +91068,10 @@ function octDecode(x2, y2, result) {
|
|
|
91142
91068
|
}
|
|
91143
91069
|
class Tile3DFeatureTable {
|
|
91144
91070
|
constructor(featureTableJson, featureTableBinary) {
|
|
91145
|
-
_defineProperty$
|
|
91146
|
-
_defineProperty$
|
|
91147
|
-
_defineProperty$
|
|
91148
|
-
_defineProperty$
|
|
91071
|
+
_defineProperty$e(this, "json", void 0);
|
|
91072
|
+
_defineProperty$e(this, "buffer", void 0);
|
|
91073
|
+
_defineProperty$e(this, "featuresLength", 0);
|
|
91074
|
+
_defineProperty$e(this, "_cachedTypedArrays", {});
|
|
91149
91075
|
this.json = featureTableJson;
|
|
91150
91076
|
this.buffer = featureTableBinary;
|
|
91151
91077
|
}
|
|
@@ -91479,13 +91405,13 @@ const IGNORED_PROPERTY_FIELDS = {
|
|
|
91479
91405
|
class Tile3DBatchTableParser {
|
|
91480
91406
|
constructor(json, binary, featureCount, options = {}) {
|
|
91481
91407
|
var _this$json;
|
|
91482
|
-
_defineProperty$
|
|
91483
|
-
_defineProperty$
|
|
91484
|
-
_defineProperty$
|
|
91485
|
-
_defineProperty$
|
|
91486
|
-
_defineProperty$
|
|
91487
|
-
_defineProperty$
|
|
91488
|
-
_defineProperty$
|
|
91408
|
+
_defineProperty$e(this, "json", void 0);
|
|
91409
|
+
_defineProperty$e(this, "binary", void 0);
|
|
91410
|
+
_defineProperty$e(this, "featureCount", void 0);
|
|
91411
|
+
_defineProperty$e(this, "_extensions", void 0);
|
|
91412
|
+
_defineProperty$e(this, "_properties", void 0);
|
|
91413
|
+
_defineProperty$e(this, "_binaryProperties", void 0);
|
|
91414
|
+
_defineProperty$e(this, "_hierarchy", void 0);
|
|
91489
91415
|
assert$c(featureCount >= 0);
|
|
91490
91416
|
this.json = json || {};
|
|
91491
91417
|
this.binary = binary;
|
|
@@ -92830,7 +92756,7 @@ const defaultProps$j = {
|
|
|
92830
92756
|
class Tile3DLayer extends CompositeLayer {
|
|
92831
92757
|
constructor(...args) {
|
|
92832
92758
|
super(...args);
|
|
92833
|
-
_defineProperty$
|
|
92759
|
+
_defineProperty$e(this, "state", void 0);
|
|
92834
92760
|
}
|
|
92835
92761
|
initializeState() {
|
|
92836
92762
|
if ("onTileLoadFail" in this.props) {
|
|
@@ -93149,8 +93075,8 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
93149
93075
|
}).filter(Boolean);
|
|
93150
93076
|
}
|
|
93151
93077
|
}
|
|
93152
|
-
_defineProperty$
|
|
93153
|
-
_defineProperty$
|
|
93078
|
+
_defineProperty$e(Tile3DLayer, "defaultProps", defaultProps$j);
|
|
93079
|
+
_defineProperty$e(Tile3DLayer, "layerName", "Tile3DLayer");
|
|
93154
93080
|
function getMeshGeometry(contentAttributes) {
|
|
93155
93081
|
const attributes = {};
|
|
93156
93082
|
attributes.positions = {
|
|
@@ -93980,7 +93906,7 @@ function urlTemplateToUpdateTrigger(template) {
|
|
|
93980
93906
|
class TerrainLayer extends CompositeLayer {
|
|
93981
93907
|
constructor(...args) {
|
|
93982
93908
|
super(...args);
|
|
93983
|
-
_defineProperty$
|
|
93909
|
+
_defineProperty$e(this, "state", void 0);
|
|
93984
93910
|
}
|
|
93985
93911
|
updateState({
|
|
93986
93912
|
props,
|
|
@@ -94195,8 +94121,8 @@ class TerrainLayer extends CompositeLayer {
|
|
|
94195
94121
|
});
|
|
94196
94122
|
}
|
|
94197
94123
|
}
|
|
94198
|
-
_defineProperty$
|
|
94199
|
-
_defineProperty$
|
|
94124
|
+
_defineProperty$e(TerrainLayer, "defaultProps", defaultProps$i);
|
|
94125
|
+
_defineProperty$e(TerrainLayer, "layerName", "TerrainLayer");
|
|
94200
94126
|
function flatGeojsonToBinary(features, geometryInfo, options) {
|
|
94201
94127
|
const propArrayTypes = extractNumericPropTypes(features);
|
|
94202
94128
|
const numericPropKeys = Object.keys(propArrayTypes).filter((k) => propArrayTypes[k] !== Array);
|
|
@@ -95486,14 +95412,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
95486
95412
|
return ["Unknown", "Point", "LineString", "Polygon"];
|
|
95487
95413
|
}
|
|
95488
95414
|
constructor(pbf2, end, extent2, keys3, values2) {
|
|
95489
|
-
_defineProperty$
|
|
95490
|
-
_defineProperty$
|
|
95491
|
-
_defineProperty$
|
|
95492
|
-
_defineProperty$
|
|
95493
|
-
_defineProperty$
|
|
95494
|
-
_defineProperty$
|
|
95495
|
-
_defineProperty$
|
|
95496
|
-
_defineProperty$
|
|
95415
|
+
_defineProperty$e(this, "properties", void 0);
|
|
95416
|
+
_defineProperty$e(this, "extent", void 0);
|
|
95417
|
+
_defineProperty$e(this, "type", void 0);
|
|
95418
|
+
_defineProperty$e(this, "id", void 0);
|
|
95419
|
+
_defineProperty$e(this, "_pbf", void 0);
|
|
95420
|
+
_defineProperty$e(this, "_geometry", void 0);
|
|
95421
|
+
_defineProperty$e(this, "_keys", void 0);
|
|
95422
|
+
_defineProperty$e(this, "_values", void 0);
|
|
95497
95423
|
this.properties = {};
|
|
95498
95424
|
this.extent = extent2;
|
|
95499
95425
|
this.type = 0;
|
|
@@ -95650,14 +95576,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
|
95650
95576
|
};
|
|
95651
95577
|
let VectorTileLayer$1 = class VectorTileLayer {
|
|
95652
95578
|
constructor(pbf2, end) {
|
|
95653
|
-
_defineProperty$
|
|
95654
|
-
_defineProperty$
|
|
95655
|
-
_defineProperty$
|
|
95656
|
-
_defineProperty$
|
|
95657
|
-
_defineProperty$
|
|
95658
|
-
_defineProperty$
|
|
95659
|
-
_defineProperty$
|
|
95660
|
-
_defineProperty$
|
|
95579
|
+
_defineProperty$e(this, "version", void 0);
|
|
95580
|
+
_defineProperty$e(this, "name", void 0);
|
|
95581
|
+
_defineProperty$e(this, "extent", void 0);
|
|
95582
|
+
_defineProperty$e(this, "length", void 0);
|
|
95583
|
+
_defineProperty$e(this, "_pbf", void 0);
|
|
95584
|
+
_defineProperty$e(this, "_keys", void 0);
|
|
95585
|
+
_defineProperty$e(this, "_values", void 0);
|
|
95586
|
+
_defineProperty$e(this, "_features", void 0);
|
|
95661
95587
|
this.version = 1;
|
|
95662
95588
|
this.name = "";
|
|
95663
95589
|
this.extent = 4096;
|
|
@@ -95705,7 +95631,7 @@ function readValueMessage$1(pbf2) {
|
|
|
95705
95631
|
}
|
|
95706
95632
|
let VectorTile$1 = class VectorTile {
|
|
95707
95633
|
constructor(pbf2, end) {
|
|
95708
|
-
_defineProperty$
|
|
95634
|
+
_defineProperty$e(this, "layers", void 0);
|
|
95709
95635
|
this.layers = pbf2.readFields(readTile$1, {}, end);
|
|
95710
95636
|
}
|
|
95711
95637
|
};
|
|
@@ -95809,15 +95735,15 @@ let y;
|
|
|
95809
95735
|
let i$2;
|
|
95810
95736
|
class VectorTileFeature2 {
|
|
95811
95737
|
constructor(pbf2, end, extent2, keys3, values2, geometryInfo) {
|
|
95812
|
-
_defineProperty$
|
|
95813
|
-
_defineProperty$
|
|
95814
|
-
_defineProperty$
|
|
95815
|
-
_defineProperty$
|
|
95816
|
-
_defineProperty$
|
|
95817
|
-
_defineProperty$
|
|
95818
|
-
_defineProperty$
|
|
95819
|
-
_defineProperty$
|
|
95820
|
-
_defineProperty$
|
|
95738
|
+
_defineProperty$e(this, "properties", void 0);
|
|
95739
|
+
_defineProperty$e(this, "extent", void 0);
|
|
95740
|
+
_defineProperty$e(this, "type", void 0);
|
|
95741
|
+
_defineProperty$e(this, "id", void 0);
|
|
95742
|
+
_defineProperty$e(this, "_pbf", void 0);
|
|
95743
|
+
_defineProperty$e(this, "_geometry", void 0);
|
|
95744
|
+
_defineProperty$e(this, "_keys", void 0);
|
|
95745
|
+
_defineProperty$e(this, "_values", void 0);
|
|
95746
|
+
_defineProperty$e(this, "_geometryInfo", void 0);
|
|
95821
95747
|
this.properties = {};
|
|
95822
95748
|
this.extent = extent2;
|
|
95823
95749
|
this.type = 0;
|
|
@@ -95932,14 +95858,14 @@ class VectorTileFeature2 {
|
|
|
95932
95858
|
}
|
|
95933
95859
|
class VectorTileLayer2 {
|
|
95934
95860
|
constructor(pbf2, end) {
|
|
95935
|
-
_defineProperty$
|
|
95936
|
-
_defineProperty$
|
|
95937
|
-
_defineProperty$
|
|
95938
|
-
_defineProperty$
|
|
95939
|
-
_defineProperty$
|
|
95940
|
-
_defineProperty$
|
|
95941
|
-
_defineProperty$
|
|
95942
|
-
_defineProperty$
|
|
95861
|
+
_defineProperty$e(this, "version", void 0);
|
|
95862
|
+
_defineProperty$e(this, "name", void 0);
|
|
95863
|
+
_defineProperty$e(this, "extent", void 0);
|
|
95864
|
+
_defineProperty$e(this, "length", void 0);
|
|
95865
|
+
_defineProperty$e(this, "_pbf", void 0);
|
|
95866
|
+
_defineProperty$e(this, "_keys", void 0);
|
|
95867
|
+
_defineProperty$e(this, "_values", void 0);
|
|
95868
|
+
_defineProperty$e(this, "_features", void 0);
|
|
95943
95869
|
this.version = 1;
|
|
95944
95870
|
this.name = "";
|
|
95945
95871
|
this.extent = 4096;
|
|
@@ -95987,7 +95913,7 @@ function readValueMessage(pbf2) {
|
|
|
95987
95913
|
}
|
|
95988
95914
|
class VectorTile2 {
|
|
95989
95915
|
constructor(pbf2, end) {
|
|
95990
|
-
_defineProperty$
|
|
95916
|
+
_defineProperty$e(this, "layers", void 0);
|
|
95991
95917
|
this.layers = pbf2.readFields(readTile, {}, end);
|
|
95992
95918
|
}
|
|
95993
95919
|
}
|
|
@@ -96598,8 +96524,8 @@ class MVTLayer extends TileLayer {
|
|
|
96598
96524
|
});
|
|
96599
96525
|
}
|
|
96600
96526
|
}
|
|
96601
|
-
_defineProperty$
|
|
96602
|
-
_defineProperty$
|
|
96527
|
+
_defineProperty$e(MVTLayer, "layerName", "MVTLayer");
|
|
96528
|
+
_defineProperty$e(MVTLayer, "defaultProps", defaultProps$h);
|
|
96603
96529
|
function getFeatureUniqueId(feature2, uniqueIdProperty) {
|
|
96604
96530
|
if (feature2.properties && uniqueIdProperty) {
|
|
96605
96531
|
return feature2.properties[uniqueIdProperty];
|
|
@@ -96697,8 +96623,8 @@ class GeohashLayer extends GeoCellLayer {
|
|
|
96697
96623
|
};
|
|
96698
96624
|
}
|
|
96699
96625
|
}
|
|
96700
|
-
_defineProperty$
|
|
96701
|
-
_defineProperty$
|
|
96626
|
+
_defineProperty$e(GeohashLayer, "layerName", "GeohashLayer");
|
|
96627
|
+
_defineProperty$e(GeohashLayer, "defaultProps", defaultProps$g);
|
|
96702
96628
|
const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
96703
96629
|
__proto__: null,
|
|
96704
96630
|
GeohashLayer,
|
|
@@ -133547,16 +133473,16 @@ function addDecoder(cases, importFn) {
|
|
|
133547
133473
|
}
|
|
133548
133474
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133549
133475
|
}
|
|
133550
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133551
|
-
addDecoder(5, () => import("./lzw-
|
|
133476
|
+
addDecoder([void 0, 1], () => import("./raw-4e18410c.js").then((m) => m.default));
|
|
133477
|
+
addDecoder(5, () => import("./lzw-f00259f5.js").then((m) => m.default));
|
|
133552
133478
|
addDecoder(6, () => {
|
|
133553
133479
|
throw new Error("old style JPEG compression is not supported.");
|
|
133554
133480
|
});
|
|
133555
|
-
addDecoder(7, () => import("./jpeg-
|
|
133556
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133557
|
-
addDecoder(32773, () => import("./packbits-
|
|
133558
|
-
addDecoder(34887, () => import("./lerc-
|
|
133559
|
-
addDecoder(50001, () => import("./webimage-
|
|
133481
|
+
addDecoder(7, () => import("./jpeg-66adb130.js").then((m) => m.default));
|
|
133482
|
+
addDecoder([8, 32946], () => import("./deflate-dc778494.js").then((m) => m.default));
|
|
133483
|
+
addDecoder(32773, () => import("./packbits-a8d6509a.js").then((m) => m.default));
|
|
133484
|
+
addDecoder(34887, () => import("./lerc-53ffc64c.js").then((m) => m.default));
|
|
133485
|
+
addDecoder(50001, () => import("./webimage-8894b594.js").then((m) => m.default));
|
|
133560
133486
|
function decodeRowAcc(row, stride) {
|
|
133561
133487
|
let length2 = row.length - stride;
|
|
133562
133488
|
let offset5 = 0;
|
|
@@ -144606,8 +144532,8 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
144606
144532
|
]);
|
|
144607
144533
|
const axisLeftDashes = transpose2 ? variablesDashes : observationsDashes;
|
|
144608
144534
|
const axisTopDashes = transpose2 ? observationsDashes : variablesDashes;
|
|
144609
|
-
const axisTopLabelData = useMemo(() => (!transpose2 && featureLabelsMap ? axisTopLabels.map((d) => featureLabelsMap.get(d) || d) : axisTopLabels).map((d, i2) => [i2, axisTopDashes ? `- ${d}` : d]), [axisTopLabels, axisTopDashes, transpose2, featureLabelsMap]);
|
|
144610
|
-
const axisLeftLabelData = useMemo(() => (transpose2 && featureLabelsMap ? axisLeftLabels.map((d) => featureLabelsMap.get(d) || d) : axisLeftLabels).map((d, i2) => [i2, axisLeftDashes ? `${d} -` : d]), [axisLeftLabels, axisLeftDashes, transpose2, featureLabelsMap]);
|
|
144535
|
+
const axisTopLabelData = useMemo(() => (!transpose2 && featureLabelsMap ? axisTopLabels.map((d) => featureLabelsMap.get(d) || featureLabelsMap.get(cleanFeatureId(d)) || d) : axisTopLabels).map((d, i2) => [i2, axisTopDashes ? `- ${d}` : d]), [axisTopLabels, axisTopDashes, transpose2, featureLabelsMap]);
|
|
144536
|
+
const axisLeftLabelData = useMemo(() => (transpose2 && featureLabelsMap ? axisLeftLabels.map((d) => featureLabelsMap.get(d) || featureLabelsMap.get(cleanFeatureId(d)) || d) : axisLeftLabels).map((d, i2) => [i2, axisLeftDashes ? `${d} -` : d]), [axisLeftLabels, axisLeftDashes, transpose2, featureLabelsMap]);
|
|
144611
144537
|
const cellColorLabelsData = useMemo(() => cellColorLabels.map((d, i2) => [i2, d && (transpose2 ? `${d} -` : `- ${d}`)]), [cellColorLabels, transpose2]);
|
|
144612
144538
|
const hideTopLabels = transpose2 ? hideObservationLabels : hideVariableLabels;
|
|
144613
144539
|
const hideLeftLabels = transpose2 ? hideVariableLabels : hideObservationLabels;
|
|
@@ -145014,9 +144940,28 @@ function Tooltip2D(props) {
|
|
|
145014
144940
|
height: `${crosshairWidth}px`
|
|
145015
144941
|
} }) : null] }) });
|
|
145016
144942
|
}
|
|
144943
|
+
function transformInfoValues(info, featureType, featureLabelsMap) {
|
|
144944
|
+
if (info) {
|
|
144945
|
+
const newInfo = Object.fromEntries(Object.entries(info).map(([key, value]) => {
|
|
144946
|
+
if (key.toLowerCase().includes(featureType.toLowerCase())) {
|
|
144947
|
+
const newValue = (featureLabelsMap == null ? void 0 : featureLabelsMap.get(value)) || (featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(value))) || value;
|
|
144948
|
+
return [key, newValue];
|
|
144949
|
+
}
|
|
144950
|
+
return [key, value];
|
|
144951
|
+
}));
|
|
144952
|
+
return newInfo;
|
|
144953
|
+
}
|
|
144954
|
+
return info;
|
|
144955
|
+
}
|
|
145017
144956
|
function TooltipContent(props) {
|
|
145018
|
-
const { info } = props;
|
|
145019
|
-
|
|
144957
|
+
const { info, featureType, featureLabelsMap } = props;
|
|
144958
|
+
const mappedInfo = useMemo(() => {
|
|
144959
|
+
if (!featureType || !featureLabelsMap) {
|
|
144960
|
+
return info;
|
|
144961
|
+
}
|
|
144962
|
+
return transformInfoValues(info, featureType, featureLabelsMap);
|
|
144963
|
+
}, [info, featureType, featureLabelsMap]);
|
|
144964
|
+
return jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(mappedInfo).map(([key, value]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { children: key }), jsxRuntimeExports.jsx("td", { children: value })] }, key)) }) });
|
|
145020
144965
|
}
|
|
145021
144966
|
function HeatmapTooltipSubscriber(props) {
|
|
145022
144967
|
const {
|
|
@@ -145027,7 +144972,9 @@ function HeatmapTooltipSubscriber(props) {
|
|
|
145027
144972
|
getObsInfo,
|
|
145028
144973
|
getFeatureInfo,
|
|
145029
144974
|
obsHighlight,
|
|
145030
|
-
featureHighlight
|
|
144975
|
+
featureHighlight,
|
|
144976
|
+
featureType,
|
|
144977
|
+
featureLabelsMap
|
|
145031
144978
|
} = props;
|
|
145032
144979
|
const sourceUuid = useComponentHover();
|
|
145033
144980
|
const viewInfo = useComponentViewInfo(parentUuid);
|
|
@@ -145050,7 +144997,14 @@ function HeatmapTooltipSubscriber(props) {
|
|
|
145050
144997
|
parentWidth: width,
|
|
145051
144998
|
parentHeight: height,
|
|
145052
144999
|
sourceUuid,
|
|
145053
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
145000
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
145001
|
+
TooltipContent,
|
|
145002
|
+
{
|
|
145003
|
+
info: { ...geneInfo, ...cellInfo },
|
|
145004
|
+
featureType,
|
|
145005
|
+
featureLabelsMap
|
|
145006
|
+
}
|
|
145007
|
+
)
|
|
145054
145008
|
}
|
|
145055
145009
|
) : null;
|
|
145056
145010
|
}
|
|
@@ -145333,7 +145287,7 @@ function HeatmapSubscriber(props) {
|
|
|
145333
145287
|
loaders,
|
|
145334
145288
|
dataset
|
|
145335
145289
|
);
|
|
145336
|
-
const [{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
|
145290
|
+
const [{ featureLabelsMap: featureLabelsMapOrig }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
|
145337
145291
|
loaders,
|
|
145338
145292
|
dataset,
|
|
145339
145293
|
false,
|
|
@@ -145341,6 +145295,11 @@ function HeatmapSubscriber(props) {
|
|
|
145341
145295
|
{},
|
|
145342
145296
|
{ featureType }
|
|
145343
145297
|
);
|
|
145298
|
+
const [featureLabelsMap, expandedFeatureLabelsStatus] = useExpandedFeatureLabelsMap(
|
|
145299
|
+
featureType,
|
|
145300
|
+
featureLabelsMapOrig,
|
|
145301
|
+
{ stripCuriePrefixes: true }
|
|
145302
|
+
);
|
|
145344
145303
|
const [
|
|
145345
145304
|
{ obsIndex, featureIndex, obsFeatureMatrix },
|
|
145346
145305
|
matrixStatus,
|
|
@@ -145363,6 +145322,7 @@ function HeatmapSubscriber(props) {
|
|
|
145363
145322
|
);
|
|
145364
145323
|
const isReady = useReady([
|
|
145365
145324
|
featureLabelsStatus,
|
|
145325
|
+
expandedFeatureLabelsStatus,
|
|
145366
145326
|
matrixStatus,
|
|
145367
145327
|
obsSetsStatus
|
|
145368
145328
|
]);
|
|
@@ -145400,7 +145360,7 @@ function HeatmapSubscriber(props) {
|
|
|
145400
145360
|
const getObsMembership = useGetObsMembership(obsSetsMembership);
|
|
145401
145361
|
const getFeatureInfo = useCallback((featureId) => {
|
|
145402
145362
|
if (featureId) {
|
|
145403
|
-
const featureLabel = (featureLabelsMap == null ? void 0 : featureLabelsMap.get(featureId)) || featureId;
|
|
145363
|
+
const featureLabel = (featureLabelsMap == null ? void 0 : featureLabelsMap.get(featureId)) || (featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(featureId))) || featureId;
|
|
145404
145364
|
return { [`${capitalize$1(variablesLabel)} ID`]: featureLabel };
|
|
145405
145365
|
}
|
|
145406
145366
|
return null;
|
|
@@ -145505,7 +145465,9 @@ function HeatmapSubscriber(props) {
|
|
|
145505
145465
|
getObsInfo,
|
|
145506
145466
|
getFeatureInfo,
|
|
145507
145467
|
obsHighlight: cellHighlight,
|
|
145508
|
-
featureHighlight: geneHighlight
|
|
145468
|
+
featureHighlight: geneHighlight,
|
|
145469
|
+
featureType,
|
|
145470
|
+
featureLabelsMap
|
|
145509
145471
|
}
|
|
145510
145472
|
),
|
|
145511
145473
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|