@vitessce/heatmap 3.9.2 → 3.9.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-DoBsfd5X.js → deflate-BQiUjtex.js} +1 -1
- package/dist/{index-COwftYHh.js → index-BYqNlxEk.js} +1448 -429
- package/dist/index.js +1 -1
- package/dist/{jpeg-ej4QpQD2.js → jpeg-B02WYPwH.js} +1 -1
- package/dist/{lerc-DmcLtqzg.js → lerc-nZgXornh.js} +1 -1
- package/dist/{lzw-B49kANWk.js → lzw-BekgzvbP.js} +1 -1
- package/dist/{packbits-Chm1I75k.js → packbits-8Jb3k-fa.js} +1 -1
- package/dist/{raw-CuoVZYgh.js → raw-Bm2u0Lwc.js} +1 -1
- package/dist/{webimage-BTaPGzt_.js → webimage-C67hv5tG.js} +1 -1
- package/package.json +10 -10
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2, _b;
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children,
|
|
6
|
+
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback, useLayoutEffect, useImperativeHandle, useReducer } from "react";
|
|
7
7
|
import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
|
|
8
8
|
import * as ReactDOM from "react-dom";
|
|
9
9
|
function _mergeNamespaces(n2, m) {
|
|
@@ -1325,9 +1325,9 @@ function mapCacheHas(key) {
|
|
|
1325
1325
|
return getMapData(this, key).has(key);
|
|
1326
1326
|
}
|
|
1327
1327
|
function mapCacheSet(key, value) {
|
|
1328
|
-
var data = getMapData(this, key),
|
|
1328
|
+
var data = getMapData(this, key), size2 = data.size;
|
|
1329
1329
|
data.set(key, value);
|
|
1330
|
-
this.size += data.size ==
|
|
1330
|
+
this.size += data.size == size2 ? 0 : 1;
|
|
1331
1331
|
return this;
|
|
1332
1332
|
}
|
|
1333
1333
|
function MapCache(entries) {
|
|
@@ -1856,7 +1856,7 @@ function baseIsEqual(value, other, bitmask, customizer, stack2) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack2);
|
|
1858
1858
|
}
|
|
1859
|
-
var now = function() {
|
|
1859
|
+
var now$1 = function() {
|
|
1860
1860
|
return root$1.Date.now();
|
|
1861
1861
|
};
|
|
1862
1862
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
@@ -1894,7 +1894,7 @@ function debounce$1(func, wait, options) {
|
|
|
1894
1894
|
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
1895
1895
|
}
|
|
1896
1896
|
function timerExpired() {
|
|
1897
|
-
var time = now();
|
|
1897
|
+
var time = now$1();
|
|
1898
1898
|
if (shouldInvoke(time)) {
|
|
1899
1899
|
return trailingEdge(time);
|
|
1900
1900
|
}
|
|
@@ -1916,10 +1916,10 @@ function debounce$1(func, wait, options) {
|
|
|
1916
1916
|
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
1917
1917
|
}
|
|
1918
1918
|
function flush() {
|
|
1919
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
1919
|
+
return timerId === void 0 ? result : trailingEdge(now$1());
|
|
1920
1920
|
}
|
|
1921
1921
|
function debounced() {
|
|
1922
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
1922
|
+
var time = now$1(), isInvoking = shouldInvoke(time);
|
|
1923
1923
|
lastArgs = arguments;
|
|
1924
1924
|
lastThis = this;
|
|
1925
1925
|
lastCallTime = time;
|
|
@@ -1942,7 +1942,7 @@ function debounce$1(func, wait, options) {
|
|
|
1942
1942
|
debounced.flush = flush;
|
|
1943
1943
|
return debounced;
|
|
1944
1944
|
}
|
|
1945
|
-
function isEqual$
|
|
1945
|
+
function isEqual$2(value, other) {
|
|
1946
1946
|
return baseIsEqual(value, other);
|
|
1947
1947
|
}
|
|
1948
1948
|
function isNil(value) {
|
|
@@ -5929,8 +5929,8 @@ class ZodSet extends ZodType {
|
|
|
5929
5929
|
maxSize: { value: maxSize, message: errorUtil.toString(message) }
|
|
5930
5930
|
});
|
|
5931
5931
|
}
|
|
5932
|
-
size(
|
|
5933
|
-
return this.min(
|
|
5932
|
+
size(size2, message) {
|
|
5933
|
+
return this.min(size2, message).max(size2, message);
|
|
5934
5934
|
}
|
|
5935
5935
|
nonempty(message) {
|
|
5936
5936
|
return this.min(1, message);
|
|
@@ -9544,6 +9544,7 @@ const ViewType$1 = {
|
|
|
9544
9544
|
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
9545
9545
|
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
9546
9546
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
9547
|
+
BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
|
|
9547
9548
|
COMPARATIVE_HEADING: "comparativeHeading",
|
|
9548
9549
|
LINK_CONTROLLER: "linkController",
|
|
9549
9550
|
NEUROGLANCER: "neuroglancer",
|
|
@@ -10741,6 +10742,17 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10741
10742
|
CoordinationType$1.OBS_SET_FILTER
|
|
10742
10743
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
10743
10744
|
],
|
|
10745
|
+
[ViewType$1.BIOMARKER_SELECT_ALT]: [
|
|
10746
|
+
CoordinationType$1.DATASET,
|
|
10747
|
+
CoordinationType$1.OBS_TYPE,
|
|
10748
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
10749
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
10750
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
10751
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
10752
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
10753
|
+
CoordinationType$1.OBS_SET_FILTER
|
|
10754
|
+
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
10755
|
+
],
|
|
10744
10756
|
[ViewType$1.COMPARATIVE_HEADING]: [
|
|
10745
10757
|
CoordinationType$1.DATASET,
|
|
10746
10758
|
CoordinationType$1.OBS_TYPE,
|
|
@@ -11943,11 +11955,11 @@ function requireTinycolor() {
|
|
|
11943
11955
|
var bestColor = null;
|
|
11944
11956
|
var bestScore = 0;
|
|
11945
11957
|
var readability;
|
|
11946
|
-
var includeFallbackColors, level,
|
|
11958
|
+
var includeFallbackColors, level, size2;
|
|
11947
11959
|
args = args || {};
|
|
11948
11960
|
includeFallbackColors = args.includeFallbackColors;
|
|
11949
11961
|
level = args.level;
|
|
11950
|
-
|
|
11962
|
+
size2 = args.size;
|
|
11951
11963
|
for (var i2 = 0; i2 < colorList.length; i2++) {
|
|
11952
11964
|
readability = tinycolor2.readability(baseColor, colorList[i2]);
|
|
11953
11965
|
if (readability > bestScore) {
|
|
@@ -11955,7 +11967,7 @@ function requireTinycolor() {
|
|
|
11955
11967
|
bestColor = tinycolor2(colorList[i2]);
|
|
11956
11968
|
}
|
|
11957
11969
|
}
|
|
11958
|
-
if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size":
|
|
11970
|
+
if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size2 }) || !includeFallbackColors) {
|
|
11959
11971
|
return bestColor;
|
|
11960
11972
|
} else {
|
|
11961
11973
|
args.includeFallbackColors = false;
|
|
@@ -12259,17 +12271,17 @@ function requireTinycolor() {
|
|
|
12259
12271
|
return false;
|
|
12260
12272
|
}
|
|
12261
12273
|
function validateWCAG2Parms(parms) {
|
|
12262
|
-
var level,
|
|
12274
|
+
var level, size2;
|
|
12263
12275
|
parms = parms || { "level": "AA", "size": "small" };
|
|
12264
12276
|
level = (parms.level || "AA").toUpperCase();
|
|
12265
|
-
|
|
12277
|
+
size2 = (parms.size || "small").toLowerCase();
|
|
12266
12278
|
if (level !== "AA" && level !== "AAA") {
|
|
12267
12279
|
level = "AA";
|
|
12268
12280
|
}
|
|
12269
|
-
if (
|
|
12270
|
-
|
|
12281
|
+
if (size2 !== "small" && size2 !== "large") {
|
|
12282
|
+
size2 = "small";
|
|
12271
12283
|
}
|
|
12272
|
-
return { "level": level, "size":
|
|
12284
|
+
return { "level": level, "size": size2 };
|
|
12273
12285
|
}
|
|
12274
12286
|
if (module2.exports) {
|
|
12275
12287
|
module2.exports = tinycolor2;
|
|
@@ -12336,7 +12348,7 @@ function treeToCellColorsBySetNames(currTree, selectedNamePaths, cellSetColor, t
|
|
|
12336
12348
|
const node2 = treeFindNodeByNamePath(currTree, setNamePath);
|
|
12337
12349
|
if (node2) {
|
|
12338
12350
|
const nodeSet = nodeToSet(node2);
|
|
12339
|
-
const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$
|
|
12351
|
+
const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$2(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
|
|
12340
12352
|
cellColorsArray = [
|
|
12341
12353
|
...cellColorsArray,
|
|
12342
12354
|
...nodeSet.map(([cellId, prob]) => [
|
|
@@ -12978,41 +12990,41 @@ function requireJson2csv_umd() {
|
|
|
12978
12990
|
Buffer3.prototype.__proto__ = Uint8Array.prototype;
|
|
12979
12991
|
Buffer3.__proto__ = Uint8Array;
|
|
12980
12992
|
}
|
|
12981
|
-
function assertSize(
|
|
12982
|
-
if (typeof
|
|
12993
|
+
function assertSize(size2) {
|
|
12994
|
+
if (typeof size2 !== "number") {
|
|
12983
12995
|
throw new TypeError('"size" argument must be a number');
|
|
12984
|
-
} else if (
|
|
12996
|
+
} else if (size2 < 0) {
|
|
12985
12997
|
throw new RangeError('"size" argument must not be negative');
|
|
12986
12998
|
}
|
|
12987
12999
|
}
|
|
12988
|
-
function alloc2(that,
|
|
12989
|
-
assertSize(
|
|
12990
|
-
if (
|
|
12991
|
-
return createBuffer(that,
|
|
13000
|
+
function alloc2(that, size2, fill, encoding) {
|
|
13001
|
+
assertSize(size2);
|
|
13002
|
+
if (size2 <= 0) {
|
|
13003
|
+
return createBuffer(that, size2);
|
|
12992
13004
|
}
|
|
12993
13005
|
if (fill !== void 0) {
|
|
12994
|
-
return typeof encoding === "string" ? createBuffer(that,
|
|
13006
|
+
return typeof encoding === "string" ? createBuffer(that, size2).fill(fill, encoding) : createBuffer(that, size2).fill(fill);
|
|
12995
13007
|
}
|
|
12996
|
-
return createBuffer(that,
|
|
13008
|
+
return createBuffer(that, size2);
|
|
12997
13009
|
}
|
|
12998
|
-
Buffer3.alloc = function(
|
|
12999
|
-
return alloc2(null,
|
|
13010
|
+
Buffer3.alloc = function(size2, fill, encoding) {
|
|
13011
|
+
return alloc2(null, size2, fill, encoding);
|
|
13000
13012
|
};
|
|
13001
|
-
function allocUnsafe(that,
|
|
13002
|
-
assertSize(
|
|
13003
|
-
that = createBuffer(that,
|
|
13013
|
+
function allocUnsafe(that, size2) {
|
|
13014
|
+
assertSize(size2);
|
|
13015
|
+
that = createBuffer(that, size2 < 0 ? 0 : checked(size2) | 0);
|
|
13004
13016
|
if (!Buffer3.TYPED_ARRAY_SUPPORT) {
|
|
13005
|
-
for (var i2 = 0; i2 <
|
|
13017
|
+
for (var i2 = 0; i2 < size2; ++i2) {
|
|
13006
13018
|
that[i2] = 0;
|
|
13007
13019
|
}
|
|
13008
13020
|
}
|
|
13009
13021
|
return that;
|
|
13010
13022
|
}
|
|
13011
|
-
Buffer3.allocUnsafe = function(
|
|
13012
|
-
return allocUnsafe(null,
|
|
13023
|
+
Buffer3.allocUnsafe = function(size2) {
|
|
13024
|
+
return allocUnsafe(null, size2);
|
|
13013
13025
|
};
|
|
13014
|
-
Buffer3.allocUnsafeSlow = function(
|
|
13015
|
-
return allocUnsafe(null,
|
|
13026
|
+
Buffer3.allocUnsafeSlow = function(size2) {
|
|
13027
|
+
return allocUnsafe(null, size2);
|
|
13016
13028
|
};
|
|
13017
13029
|
function fromString(that, string2, encoding) {
|
|
13018
13030
|
if (typeof encoding !== "string" || encoding === "") {
|
|
@@ -14366,8 +14378,8 @@ function requireJson2csv_umd() {
|
|
|
14366
14378
|
Item.prototype.run = function() {
|
|
14367
14379
|
this.fun.apply(null, this.array);
|
|
14368
14380
|
};
|
|
14369
|
-
var
|
|
14370
|
-
|
|
14381
|
+
var performance2 = global$1.performance || {};
|
|
14382
|
+
performance2.now || performance2.mozNow || performance2.msNow || performance2.oNow || performance2.webkitNow || function() {
|
|
14371
14383
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
14372
14384
|
};
|
|
14373
14385
|
var inherits;
|
|
@@ -14902,11 +14914,11 @@ function requireJson2csv_umd() {
|
|
|
14902
14914
|
var end = charStr.length - 1;
|
|
14903
14915
|
var charCode = charStr.charCodeAt(end);
|
|
14904
14916
|
if (charCode >= 55296 && charCode <= 56319) {
|
|
14905
|
-
var
|
|
14906
|
-
this.charLength +=
|
|
14907
|
-
this.charReceived +=
|
|
14908
|
-
this.charBuffer.copy(this.charBuffer,
|
|
14909
|
-
buffer.copy(this.charBuffer, 0, 0,
|
|
14917
|
+
var size2 = this.surrogateSize;
|
|
14918
|
+
this.charLength += size2;
|
|
14919
|
+
this.charReceived += size2;
|
|
14920
|
+
this.charBuffer.copy(this.charBuffer, size2, 0, size2);
|
|
14921
|
+
buffer.copy(this.charBuffer, 0, 0, size2);
|
|
14910
14922
|
return charStr.substring(0, end);
|
|
14911
14923
|
}
|
|
14912
14924
|
return charStr;
|
|
@@ -16853,27 +16865,27 @@ function requireJson2csv_umd() {
|
|
|
16853
16865
|
this.stringBuffer[this.stringBufferOffset++] = char2;
|
|
16854
16866
|
};
|
|
16855
16867
|
proto.appendStringBuf = function(buf, start, end) {
|
|
16856
|
-
var
|
|
16868
|
+
var size2 = buf.length;
|
|
16857
16869
|
if (typeof start === "number") {
|
|
16858
16870
|
if (typeof end === "number") {
|
|
16859
16871
|
if (end < 0) {
|
|
16860
|
-
|
|
16872
|
+
size2 = buf.length - start + end;
|
|
16861
16873
|
} else {
|
|
16862
|
-
|
|
16874
|
+
size2 = end - start;
|
|
16863
16875
|
}
|
|
16864
16876
|
} else {
|
|
16865
|
-
|
|
16877
|
+
size2 = buf.length - start;
|
|
16866
16878
|
}
|
|
16867
16879
|
}
|
|
16868
|
-
if (
|
|
16869
|
-
|
|
16880
|
+
if (size2 < 0) {
|
|
16881
|
+
size2 = 0;
|
|
16870
16882
|
}
|
|
16871
|
-
if (this.stringBufferOffset +
|
|
16883
|
+
if (this.stringBufferOffset + size2 > STRING_BUFFER_SIZE) {
|
|
16872
16884
|
this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
|
|
16873
16885
|
this.stringBufferOffset = 0;
|
|
16874
16886
|
}
|
|
16875
16887
|
buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
|
|
16876
|
-
this.stringBufferOffset +=
|
|
16888
|
+
this.stringBufferOffset += size2;
|
|
16877
16889
|
};
|
|
16878
16890
|
proto.write = function(buffer) {
|
|
16879
16891
|
if (typeof buffer === "string") buffer = new Buffer3(buffer);
|
|
@@ -18961,9 +18973,9 @@ function parse$4(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
18961
18973
|
function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children2, length2) {
|
|
18962
18974
|
var post = offset2 - 1;
|
|
18963
18975
|
var rule = offset2 === 0 ? rules : [""];
|
|
18964
|
-
var
|
|
18976
|
+
var size2 = sizeof(rule);
|
|
18965
18977
|
for (var i2 = 0, j = 0, k = 0; i2 < index2; ++i2)
|
|
18966
|
-
for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z2 = value; x <
|
|
18978
|
+
for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z2 = value; x < size2; ++x)
|
|
18967
18979
|
if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
18968
18980
|
props[k++] = z2;
|
|
18969
18981
|
return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children2, length2);
|
|
@@ -19356,14 +19368,14 @@ var createCache = function createCache2(options) {
|
|
|
19356
19368
|
cache2.sheet.hydrate(nodesToHydrate);
|
|
19357
19369
|
return cache2;
|
|
19358
19370
|
};
|
|
19359
|
-
function _extends$
|
|
19360
|
-
return _extends$
|
|
19371
|
+
function _extends$3() {
|
|
19372
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
19361
19373
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
19362
19374
|
var t = arguments[e3];
|
|
19363
19375
|
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
19364
19376
|
}
|
|
19365
19377
|
return n2;
|
|
19366
|
-
}, _extends$
|
|
19378
|
+
}, _extends$3.apply(null, arguments);
|
|
19367
19379
|
}
|
|
19368
19380
|
var reactIs$1 = { exports: {} };
|
|
19369
19381
|
var reactIs_development$1 = {};
|
|
@@ -20856,7 +20868,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
20856
20868
|
}
|
|
20857
20869
|
});
|
|
20858
20870
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
20859
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
20871
|
+
var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
|
|
20860
20872
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
20861
20873
|
}));
|
|
20862
20874
|
return newStyled2.apply(void 0, styles);
|
|
@@ -22946,6 +22958,56 @@ const systemDefaultTheme$1 = createTheme$1();
|
|
|
22946
22958
|
function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
|
|
22947
22959
|
return useTheme$2(defaultTheme2);
|
|
22948
22960
|
}
|
|
22961
|
+
const splitProps = (props) => {
|
|
22962
|
+
var _a3;
|
|
22963
|
+
const result = {
|
|
22964
|
+
systemProps: {},
|
|
22965
|
+
otherProps: {}
|
|
22966
|
+
};
|
|
22967
|
+
const config2 = ((_a3 = props == null ? void 0 : props.theme) == null ? void 0 : _a3.unstable_sxConfig) ?? defaultSxConfig;
|
|
22968
|
+
Object.keys(props).forEach((prop) => {
|
|
22969
|
+
if (config2[prop]) {
|
|
22970
|
+
result.systemProps[prop] = props[prop];
|
|
22971
|
+
} else {
|
|
22972
|
+
result.otherProps[prop] = props[prop];
|
|
22973
|
+
}
|
|
22974
|
+
});
|
|
22975
|
+
return result;
|
|
22976
|
+
};
|
|
22977
|
+
function extendSxProp$1(props) {
|
|
22978
|
+
const {
|
|
22979
|
+
sx: inSx,
|
|
22980
|
+
...other
|
|
22981
|
+
} = props;
|
|
22982
|
+
const {
|
|
22983
|
+
systemProps,
|
|
22984
|
+
otherProps
|
|
22985
|
+
} = splitProps(other);
|
|
22986
|
+
let finalSx;
|
|
22987
|
+
if (Array.isArray(inSx)) {
|
|
22988
|
+
finalSx = [systemProps, ...inSx];
|
|
22989
|
+
} else if (typeof inSx === "function") {
|
|
22990
|
+
finalSx = (...args) => {
|
|
22991
|
+
const result = inSx(...args);
|
|
22992
|
+
if (!isPlainObject$1(result)) {
|
|
22993
|
+
return systemProps;
|
|
22994
|
+
}
|
|
22995
|
+
return {
|
|
22996
|
+
...systemProps,
|
|
22997
|
+
...result
|
|
22998
|
+
};
|
|
22999
|
+
};
|
|
23000
|
+
} else {
|
|
23001
|
+
finalSx = {
|
|
23002
|
+
...systemProps,
|
|
23003
|
+
...inSx
|
|
23004
|
+
};
|
|
23005
|
+
}
|
|
23006
|
+
return {
|
|
23007
|
+
...otherProps,
|
|
23008
|
+
sx: finalSx
|
|
23009
|
+
};
|
|
23010
|
+
}
|
|
22949
23011
|
const defaultGenerator = (componentName) => componentName;
|
|
22950
23012
|
const createClassNameGenerator = () => {
|
|
22951
23013
|
let generate = defaultGenerator;
|
|
@@ -24317,17 +24379,17 @@ function createTypography(palette, typography) {
|
|
|
24317
24379
|
}
|
|
24318
24380
|
}
|
|
24319
24381
|
const coef = fontSize / 14;
|
|
24320
|
-
const pxToRem = pxToRem2 || ((
|
|
24321
|
-
const buildVariant = (fontWeight,
|
|
24382
|
+
const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
|
|
24383
|
+
const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
|
|
24322
24384
|
fontFamily,
|
|
24323
24385
|
fontWeight,
|
|
24324
|
-
fontSize: pxToRem(
|
|
24386
|
+
fontSize: pxToRem(size2),
|
|
24325
24387
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
24326
24388
|
lineHeight,
|
|
24327
24389
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
24328
24390
|
// across font-families can cause issues with the kerning.
|
|
24329
24391
|
...fontFamily === defaultFontFamily ? {
|
|
24330
|
-
letterSpacing: `${round$1(letterSpacing /
|
|
24392
|
+
letterSpacing: `${round$1(letterSpacing / size2)}em`
|
|
24331
24393
|
} : {},
|
|
24332
24394
|
...casing,
|
|
24333
24395
|
...allVariants
|
|
@@ -25138,6 +25200,9 @@ const { tss } = createTss({
|
|
|
25138
25200
|
"usePlugin": useMuiThemeStyleOverridesPlugin
|
|
25139
25201
|
});
|
|
25140
25202
|
const useStyles$3 = tss.create({});
|
|
25203
|
+
function internal_createExtendSxProp() {
|
|
25204
|
+
return extendSxProp$1;
|
|
25205
|
+
}
|
|
25141
25206
|
const memoTheme = unstable_memoTheme;
|
|
25142
25207
|
({
|
|
25143
25208
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -25160,7 +25225,7 @@ function getSvgIconUtilityClass(slot) {
|
|
|
25160
25225
|
return generateUtilityClass("MuiSvgIcon", slot);
|
|
25161
25226
|
}
|
|
25162
25227
|
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
25163
|
-
const useUtilityClasses$
|
|
25228
|
+
const useUtilityClasses$8 = (ownerState) => {
|
|
25164
25229
|
const {
|
|
25165
25230
|
color: color2,
|
|
25166
25231
|
fontSize,
|
|
@@ -25305,7 +25370,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
25305
25370
|
if (!inheritViewBox) {
|
|
25306
25371
|
more.viewBox = viewBox;
|
|
25307
25372
|
}
|
|
25308
|
-
const classes = useUtilityClasses$
|
|
25373
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
25309
25374
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
25310
25375
|
as: component,
|
|
25311
25376
|
className: clsx(classes.root, className),
|
|
@@ -25577,14 +25642,14 @@ function chainPropTypes(propType1, propType2) {
|
|
|
25577
25642
|
return propType1(...args) || propType2(...args);
|
|
25578
25643
|
};
|
|
25579
25644
|
}
|
|
25580
|
-
function _extends$
|
|
25581
|
-
return _extends$
|
|
25645
|
+
function _extends$2() {
|
|
25646
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
25582
25647
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
25583
25648
|
var t = arguments[e3];
|
|
25584
25649
|
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
25585
25650
|
}
|
|
25586
25651
|
return n2;
|
|
25587
|
-
}, _extends$
|
|
25652
|
+
}, _extends$2.apply(null, arguments);
|
|
25588
25653
|
}
|
|
25589
25654
|
function _objectWithoutPropertiesLoose(r2, e3) {
|
|
25590
25655
|
if (null == r2) return {};
|
|
@@ -25595,16 +25660,16 @@ function _objectWithoutPropertiesLoose(r2, e3) {
|
|
|
25595
25660
|
}
|
|
25596
25661
|
return t;
|
|
25597
25662
|
}
|
|
25598
|
-
function _setPrototypeOf(t, e3) {
|
|
25599
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e4) {
|
|
25663
|
+
function _setPrototypeOf$1(t, e3) {
|
|
25664
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e4) {
|
|
25600
25665
|
return t2.__proto__ = e4, t2;
|
|
25601
|
-
}, _setPrototypeOf(t, e3);
|
|
25666
|
+
}, _setPrototypeOf$1(t, e3);
|
|
25602
25667
|
}
|
|
25603
|
-
function _inheritsLoose(t, o2) {
|
|
25604
|
-
t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
|
|
25668
|
+
function _inheritsLoose$1(t, o2) {
|
|
25669
|
+
t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o2);
|
|
25605
25670
|
}
|
|
25606
25671
|
const TransitionGroupContext = React__default.createContext(null);
|
|
25607
|
-
function _assertThisInitialized(e3) {
|
|
25672
|
+
function _assertThisInitialized$1(e3) {
|
|
25608
25673
|
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25609
25674
|
return e3;
|
|
25610
25675
|
}
|
|
@@ -25712,11 +25777,11 @@ var defaultProps$P = {
|
|
|
25712
25777
|
}
|
|
25713
25778
|
};
|
|
25714
25779
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
25715
|
-
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
25780
|
+
_inheritsLoose$1(TransitionGroup2, _React$Component);
|
|
25716
25781
|
function TransitionGroup2(props, context) {
|
|
25717
25782
|
var _this;
|
|
25718
25783
|
_this = _React$Component.call(this, props, context) || this;
|
|
25719
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
25784
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
|
|
25720
25785
|
_this.state = {
|
|
25721
25786
|
contextValue: {
|
|
25722
25787
|
isMounting: true
|
|
@@ -25753,7 +25818,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
25753
25818
|
}
|
|
25754
25819
|
if (this.mounted) {
|
|
25755
25820
|
this.setState(function(state) {
|
|
25756
|
-
var children2 = _extends$
|
|
25821
|
+
var children2 = _extends$2({}, state.children);
|
|
25757
25822
|
delete children2[child.key];
|
|
25758
25823
|
return {
|
|
25759
25824
|
children: children2
|
|
@@ -25951,7 +26016,7 @@ function getPaperUtilityClass(slot) {
|
|
|
25951
26016
|
return generateUtilityClass("MuiPaper", slot);
|
|
25952
26017
|
}
|
|
25953
26018
|
generateUtilityClasses("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
25954
|
-
const useUtilityClasses$
|
|
26019
|
+
const useUtilityClasses$7 = (ownerState) => {
|
|
25955
26020
|
const {
|
|
25956
26021
|
square,
|
|
25957
26022
|
elevation,
|
|
@@ -26024,7 +26089,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
26024
26089
|
square,
|
|
26025
26090
|
variant
|
|
26026
26091
|
};
|
|
26027
|
-
const classes = useUtilityClasses$
|
|
26092
|
+
const classes = useUtilityClasses$7(ownerState);
|
|
26028
26093
|
{
|
|
26029
26094
|
if (theme.shadows[elevation] === void 0) {
|
|
26030
26095
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
|
|
@@ -26710,7 +26775,7 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
26710
26775
|
return generateUtilityClass("MuiButtonBase", slot);
|
|
26711
26776
|
}
|
|
26712
26777
|
const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
|
|
26713
|
-
const useUtilityClasses$
|
|
26778
|
+
const useUtilityClasses$6 = (ownerState) => {
|
|
26714
26779
|
const {
|
|
26715
26780
|
disabled,
|
|
26716
26781
|
focusVisible,
|
|
@@ -26926,7 +26991,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
|
|
|
26926
26991
|
tabIndex,
|
|
26927
26992
|
focusVisible
|
|
26928
26993
|
};
|
|
26929
|
-
const classes = useUtilityClasses$
|
|
26994
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
26930
26995
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
|
|
26931
26996
|
as: ComponentProp,
|
|
26932
26997
|
className: clsx(classes.root, className),
|
|
@@ -27263,7 +27328,7 @@ function getSwitchBaseUtilityClass(slot) {
|
|
|
27263
27328
|
return generateUtilityClass("PrivateSwitchBase", slot);
|
|
27264
27329
|
}
|
|
27265
27330
|
generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
27266
|
-
const useUtilityClasses$
|
|
27331
|
+
const useUtilityClasses$5 = (ownerState) => {
|
|
27267
27332
|
const {
|
|
27268
27333
|
classes,
|
|
27269
27334
|
checked,
|
|
@@ -27400,7 +27465,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
|
|
|
27400
27465
|
disableFocusRipple,
|
|
27401
27466
|
edge
|
|
27402
27467
|
};
|
|
27403
|
-
const classes = useUtilityClasses$
|
|
27468
|
+
const classes = useUtilityClasses$5(ownerState);
|
|
27404
27469
|
const externalForwardedProps = {
|
|
27405
27470
|
slots,
|
|
27406
27471
|
slotProps: {
|
|
@@ -27609,15 +27674,15 @@ function getCheckboxUtilityClass(slot) {
|
|
|
27609
27674
|
return generateUtilityClass("MuiCheckbox", slot);
|
|
27610
27675
|
}
|
|
27611
27676
|
const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]);
|
|
27612
|
-
const useUtilityClasses$
|
|
27677
|
+
const useUtilityClasses$4 = (ownerState) => {
|
|
27613
27678
|
const {
|
|
27614
27679
|
classes,
|
|
27615
27680
|
indeterminate,
|
|
27616
27681
|
color: color2,
|
|
27617
|
-
size
|
|
27682
|
+
size: size2
|
|
27618
27683
|
} = ownerState;
|
|
27619
27684
|
const slots = {
|
|
27620
|
-
root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(
|
|
27685
|
+
root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(size2)}`]
|
|
27621
27686
|
};
|
|
27622
27687
|
const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
|
|
27623
27688
|
return {
|
|
@@ -27702,7 +27767,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27702
27767
|
indeterminate = false,
|
|
27703
27768
|
indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
|
|
27704
27769
|
inputProps,
|
|
27705
|
-
size = "medium",
|
|
27770
|
+
size: size2 = "medium",
|
|
27706
27771
|
disableRipple = false,
|
|
27707
27772
|
className,
|
|
27708
27773
|
slots = {},
|
|
@@ -27716,9 +27781,9 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27716
27781
|
disableRipple,
|
|
27717
27782
|
color: color2,
|
|
27718
27783
|
indeterminate,
|
|
27719
|
-
size
|
|
27784
|
+
size: size2
|
|
27720
27785
|
};
|
|
27721
|
-
const classes = useUtilityClasses$
|
|
27786
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
27722
27787
|
const externalInputProps = slotProps.input ?? inputProps;
|
|
27723
27788
|
const [RootSlot, rootSlotProps] = useSlot("root", {
|
|
27724
27789
|
ref,
|
|
@@ -27734,10 +27799,10 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27734
27799
|
additionalProps: {
|
|
27735
27800
|
type: "checkbox",
|
|
27736
27801
|
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
27737
|
-
fontSize: icon.props.fontSize ??
|
|
27802
|
+
fontSize: icon.props.fontSize ?? size2
|
|
27738
27803
|
}),
|
|
27739
27804
|
checkedIcon: /* @__PURE__ */ React.cloneElement(indeterminateIcon, {
|
|
27740
|
-
fontSize: indeterminateIcon.props.fontSize ??
|
|
27805
|
+
fontSize: indeterminateIcon.props.fontSize ?? size2
|
|
27741
27806
|
}),
|
|
27742
27807
|
disableRipple,
|
|
27743
27808
|
slots,
|
|
@@ -27867,6 +27932,266 @@ Checkbox.propTypes = {
|
|
|
27867
27932
|
*/
|
|
27868
27933
|
value: PropTypes.any
|
|
27869
27934
|
};
|
|
27935
|
+
function getTypographyUtilityClass(slot) {
|
|
27936
|
+
return generateUtilityClass("MuiTypography", slot);
|
|
27937
|
+
}
|
|
27938
|
+
generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
27939
|
+
const v6Colors = {
|
|
27940
|
+
primary: true,
|
|
27941
|
+
secondary: true,
|
|
27942
|
+
error: true,
|
|
27943
|
+
info: true,
|
|
27944
|
+
success: true,
|
|
27945
|
+
warning: true,
|
|
27946
|
+
textPrimary: true,
|
|
27947
|
+
textSecondary: true,
|
|
27948
|
+
textDisabled: true
|
|
27949
|
+
};
|
|
27950
|
+
const extendSxProp = internal_createExtendSxProp();
|
|
27951
|
+
const useUtilityClasses$3 = (ownerState) => {
|
|
27952
|
+
const {
|
|
27953
|
+
align,
|
|
27954
|
+
gutterBottom,
|
|
27955
|
+
noWrap,
|
|
27956
|
+
paragraph,
|
|
27957
|
+
variant,
|
|
27958
|
+
classes
|
|
27959
|
+
} = ownerState;
|
|
27960
|
+
const slots = {
|
|
27961
|
+
root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
|
|
27962
|
+
};
|
|
27963
|
+
return composeClasses(slots, getTypographyUtilityClass, classes);
|
|
27964
|
+
};
|
|
27965
|
+
const TypographyRoot = styled("span", {
|
|
27966
|
+
name: "MuiTypography",
|
|
27967
|
+
slot: "Root",
|
|
27968
|
+
overridesResolver: (props, styles) => {
|
|
27969
|
+
const {
|
|
27970
|
+
ownerState
|
|
27971
|
+
} = props;
|
|
27972
|
+
return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
|
|
27973
|
+
}
|
|
27974
|
+
})(memoTheme(({
|
|
27975
|
+
theme
|
|
27976
|
+
}) => {
|
|
27977
|
+
var _a3;
|
|
27978
|
+
return {
|
|
27979
|
+
margin: 0,
|
|
27980
|
+
variants: [{
|
|
27981
|
+
props: {
|
|
27982
|
+
variant: "inherit"
|
|
27983
|
+
},
|
|
27984
|
+
style: {
|
|
27985
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
27986
|
+
font: "inherit",
|
|
27987
|
+
lineHeight: "inherit",
|
|
27988
|
+
letterSpacing: "inherit"
|
|
27989
|
+
}
|
|
27990
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
27991
|
+
props: {
|
|
27992
|
+
variant
|
|
27993
|
+
},
|
|
27994
|
+
style: value
|
|
27995
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
27996
|
+
props: {
|
|
27997
|
+
color: color2
|
|
27998
|
+
},
|
|
27999
|
+
style: {
|
|
28000
|
+
color: (theme.vars || theme).palette[color2].main
|
|
28001
|
+
}
|
|
28002
|
+
})), ...Object.entries(((_a3 = theme.palette) == null ? void 0 : _a3.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
28003
|
+
props: {
|
|
28004
|
+
color: `text${capitalize(color2)}`
|
|
28005
|
+
},
|
|
28006
|
+
style: {
|
|
28007
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
28008
|
+
}
|
|
28009
|
+
})), {
|
|
28010
|
+
props: ({
|
|
28011
|
+
ownerState
|
|
28012
|
+
}) => ownerState.align !== "inherit",
|
|
28013
|
+
style: {
|
|
28014
|
+
textAlign: "var(--Typography-textAlign)"
|
|
28015
|
+
}
|
|
28016
|
+
}, {
|
|
28017
|
+
props: ({
|
|
28018
|
+
ownerState
|
|
28019
|
+
}) => ownerState.noWrap,
|
|
28020
|
+
style: {
|
|
28021
|
+
overflow: "hidden",
|
|
28022
|
+
textOverflow: "ellipsis",
|
|
28023
|
+
whiteSpace: "nowrap"
|
|
28024
|
+
}
|
|
28025
|
+
}, {
|
|
28026
|
+
props: ({
|
|
28027
|
+
ownerState
|
|
28028
|
+
}) => ownerState.gutterBottom,
|
|
28029
|
+
style: {
|
|
28030
|
+
marginBottom: "0.35em"
|
|
28031
|
+
}
|
|
28032
|
+
}, {
|
|
28033
|
+
props: ({
|
|
28034
|
+
ownerState
|
|
28035
|
+
}) => ownerState.paragraph,
|
|
28036
|
+
style: {
|
|
28037
|
+
marginBottom: 16
|
|
28038
|
+
}
|
|
28039
|
+
}]
|
|
28040
|
+
};
|
|
28041
|
+
}));
|
|
28042
|
+
const defaultVariantMapping = {
|
|
28043
|
+
h1: "h1",
|
|
28044
|
+
h2: "h2",
|
|
28045
|
+
h3: "h3",
|
|
28046
|
+
h4: "h4",
|
|
28047
|
+
h5: "h5",
|
|
28048
|
+
h6: "h6",
|
|
28049
|
+
subtitle1: "h6",
|
|
28050
|
+
subtitle2: "h6",
|
|
28051
|
+
body1: "p",
|
|
28052
|
+
body2: "p",
|
|
28053
|
+
inherit: "p"
|
|
28054
|
+
};
|
|
28055
|
+
const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
|
|
28056
|
+
const {
|
|
28057
|
+
color: color2,
|
|
28058
|
+
...themeProps
|
|
28059
|
+
} = useDefaultProps({
|
|
28060
|
+
props: inProps,
|
|
28061
|
+
name: "MuiTypography"
|
|
28062
|
+
});
|
|
28063
|
+
const isSxColor = !v6Colors[color2];
|
|
28064
|
+
const props = extendSxProp({
|
|
28065
|
+
...themeProps,
|
|
28066
|
+
...isSxColor && {
|
|
28067
|
+
color: color2
|
|
28068
|
+
}
|
|
28069
|
+
});
|
|
28070
|
+
const {
|
|
28071
|
+
align = "inherit",
|
|
28072
|
+
className,
|
|
28073
|
+
component,
|
|
28074
|
+
gutterBottom = false,
|
|
28075
|
+
noWrap = false,
|
|
28076
|
+
paragraph = false,
|
|
28077
|
+
variant = "body1",
|
|
28078
|
+
variantMapping = defaultVariantMapping,
|
|
28079
|
+
...other
|
|
28080
|
+
} = props;
|
|
28081
|
+
const ownerState = {
|
|
28082
|
+
...props,
|
|
28083
|
+
align,
|
|
28084
|
+
color: color2,
|
|
28085
|
+
className,
|
|
28086
|
+
component,
|
|
28087
|
+
gutterBottom,
|
|
28088
|
+
noWrap,
|
|
28089
|
+
paragraph,
|
|
28090
|
+
variant,
|
|
28091
|
+
variantMapping
|
|
28092
|
+
};
|
|
28093
|
+
const Component2 = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
28094
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
28095
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
|
|
28096
|
+
as: Component2,
|
|
28097
|
+
ref,
|
|
28098
|
+
className: clsx(classes.root, className),
|
|
28099
|
+
...other,
|
|
28100
|
+
ownerState,
|
|
28101
|
+
style: {
|
|
28102
|
+
...align !== "inherit" && {
|
|
28103
|
+
"--Typography-textAlign": align
|
|
28104
|
+
},
|
|
28105
|
+
...other.style
|
|
28106
|
+
}
|
|
28107
|
+
});
|
|
28108
|
+
});
|
|
28109
|
+
Typography.propTypes = {
|
|
28110
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
28111
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
28112
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
28113
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
28114
|
+
/**
|
|
28115
|
+
* Set the text-align on the component.
|
|
28116
|
+
* @default 'inherit'
|
|
28117
|
+
*/
|
|
28118
|
+
align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
28119
|
+
/**
|
|
28120
|
+
* The content of the component.
|
|
28121
|
+
*/
|
|
28122
|
+
children: PropTypes.node,
|
|
28123
|
+
/**
|
|
28124
|
+
* Override or extend the styles applied to the component.
|
|
28125
|
+
*/
|
|
28126
|
+
classes: PropTypes.object,
|
|
28127
|
+
/**
|
|
28128
|
+
* @ignore
|
|
28129
|
+
*/
|
|
28130
|
+
className: PropTypes.string,
|
|
28131
|
+
/**
|
|
28132
|
+
* The color of the component.
|
|
28133
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
28134
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
28135
|
+
*/
|
|
28136
|
+
color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
|
|
28137
|
+
/**
|
|
28138
|
+
* The component used for the root node.
|
|
28139
|
+
* Either a string to use a HTML element or a component.
|
|
28140
|
+
*/
|
|
28141
|
+
component: PropTypes.elementType,
|
|
28142
|
+
/**
|
|
28143
|
+
* If `true`, the text will have a bottom margin.
|
|
28144
|
+
* @default false
|
|
28145
|
+
*/
|
|
28146
|
+
gutterBottom: PropTypes.bool,
|
|
28147
|
+
/**
|
|
28148
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
28149
|
+
*
|
|
28150
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
28151
|
+
* (the element needs to have a width in order to overflow).
|
|
28152
|
+
* @default false
|
|
28153
|
+
*/
|
|
28154
|
+
noWrap: PropTypes.bool,
|
|
28155
|
+
/**
|
|
28156
|
+
* If `true`, the element will be a paragraph element.
|
|
28157
|
+
* @default false
|
|
28158
|
+
* @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28159
|
+
*/
|
|
28160
|
+
paragraph: PropTypes.bool,
|
|
28161
|
+
/**
|
|
28162
|
+
* @ignore
|
|
28163
|
+
*/
|
|
28164
|
+
style: PropTypes.object,
|
|
28165
|
+
/**
|
|
28166
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28167
|
+
*/
|
|
28168
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
28169
|
+
/**
|
|
28170
|
+
* Applies the theme typography styles.
|
|
28171
|
+
* @default 'body1'
|
|
28172
|
+
*/
|
|
28173
|
+
variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
|
|
28174
|
+
/**
|
|
28175
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
28176
|
+
* For instance, subtitle1 to `<h6>`.
|
|
28177
|
+
* If you wish to change that mapping, you can provide your own.
|
|
28178
|
+
* Alternatively, you can use the `component` prop.
|
|
28179
|
+
* @default {
|
|
28180
|
+
* h1: 'h1',
|
|
28181
|
+
* h2: 'h2',
|
|
28182
|
+
* h3: 'h3',
|
|
28183
|
+
* h4: 'h4',
|
|
28184
|
+
* h5: 'h5',
|
|
28185
|
+
* h6: 'h6',
|
|
28186
|
+
* subtitle1: 'h6',
|
|
28187
|
+
* subtitle2: 'h6',
|
|
28188
|
+
* body1: 'p',
|
|
28189
|
+
* body2: 'p',
|
|
28190
|
+
* inherit: 'p',
|
|
28191
|
+
* }
|
|
28192
|
+
*/
|
|
28193
|
+
variantMapping: PropTypes.object
|
|
28194
|
+
};
|
|
27870
28195
|
const visuallyHidden = {
|
|
27871
28196
|
border: 0,
|
|
27872
28197
|
clip: "rect(0 0 0 0)",
|
|
@@ -29086,10 +29411,10 @@ const useUtilityClasses$2 = (ownerState) => {
|
|
|
29086
29411
|
track,
|
|
29087
29412
|
classes,
|
|
29088
29413
|
color: color2,
|
|
29089
|
-
size
|
|
29414
|
+
size: size2
|
|
29090
29415
|
} = ownerState;
|
|
29091
29416
|
const slots = {
|
|
29092
|
-
root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`,
|
|
29417
|
+
root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`, size2 && `size${capitalize(size2)}`],
|
|
29093
29418
|
rail: ["rail"],
|
|
29094
29419
|
track: ["track"],
|
|
29095
29420
|
mark: ["mark"],
|
|
@@ -29097,7 +29422,7 @@ const useUtilityClasses$2 = (ownerState) => {
|
|
|
29097
29422
|
markLabel: ["markLabel"],
|
|
29098
29423
|
markLabelActive: ["markLabelActive"],
|
|
29099
29424
|
valueLabel: ["valueLabel"],
|
|
29100
|
-
thumb: ["thumb", disabled && "disabled",
|
|
29425
|
+
thumb: ["thumb", disabled && "disabled", size2 && `thumbSize${capitalize(size2)}`, color2 && `thumbColor${capitalize(color2)}`],
|
|
29101
29426
|
active: ["active"],
|
|
29102
29427
|
disabled: ["disabled"],
|
|
29103
29428
|
focusVisible: ["focusVisible"]
|
|
@@ -29136,7 +29461,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
|
|
|
29136
29461
|
onChangeCommitted,
|
|
29137
29462
|
orientation = "horizontal",
|
|
29138
29463
|
shiftStep = 10,
|
|
29139
|
-
size = "medium",
|
|
29464
|
+
size: size2 = "medium",
|
|
29140
29465
|
step = 1,
|
|
29141
29466
|
scale: scale2 = Identity,
|
|
29142
29467
|
slotProps,
|
|
@@ -29159,7 +29484,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
|
|
|
29159
29484
|
orientation,
|
|
29160
29485
|
marks: marksProp,
|
|
29161
29486
|
color: color2,
|
|
29162
|
-
size,
|
|
29487
|
+
size: size2,
|
|
29163
29488
|
step,
|
|
29164
29489
|
shiftStep,
|
|
29165
29490
|
scale: scale2,
|
|
@@ -29658,11 +29983,11 @@ const useUtilityClasses$1 = (ownerState) => {
|
|
|
29658
29983
|
variant,
|
|
29659
29984
|
align,
|
|
29660
29985
|
padding: padding2,
|
|
29661
|
-
size,
|
|
29986
|
+
size: size2,
|
|
29662
29987
|
stickyHeader
|
|
29663
29988
|
} = ownerState;
|
|
29664
29989
|
const slots = {
|
|
29665
|
-
root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(
|
|
29990
|
+
root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(size2)}`]
|
|
29666
29991
|
};
|
|
29667
29992
|
return composeClasses(slots, getTableCellUtilityClass, classes);
|
|
29668
29993
|
};
|
|
@@ -30272,7 +30597,7 @@ var defineProperty = function(obj, key, value) {
|
|
|
30272
30597
|
}
|
|
30273
30598
|
return obj;
|
|
30274
30599
|
};
|
|
30275
|
-
var _extends = Object.assign || function(target) {
|
|
30600
|
+
var _extends$1 = Object.assign || function(target) {
|
|
30276
30601
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
30277
30602
|
var source = arguments[i2];
|
|
30278
30603
|
for (var key in source) {
|
|
@@ -30284,7 +30609,7 @@ var _extends = Object.assign || function(target) {
|
|
|
30284
30609
|
return target;
|
|
30285
30610
|
};
|
|
30286
30611
|
function getClientRect(offsets) {
|
|
30287
|
-
return _extends({}, offsets, {
|
|
30612
|
+
return _extends$1({}, offsets, {
|
|
30288
30613
|
right: offsets.left + offsets.width,
|
|
30289
30614
|
bottom: offsets.top + offsets.height
|
|
30290
30615
|
});
|
|
@@ -30468,7 +30793,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
|
|
|
30468
30793
|
}
|
|
30469
30794
|
};
|
|
30470
30795
|
var sortedAreas = Object.keys(rects).map(function(key) {
|
|
30471
|
-
return _extends({
|
|
30796
|
+
return _extends$1({
|
|
30472
30797
|
key
|
|
30473
30798
|
}, rects[key], {
|
|
30474
30799
|
area: getArea(rects[key])
|
|
@@ -30776,9 +31101,9 @@ function computeStyle(data, options) {
|
|
|
30776
31101
|
var attributes = {
|
|
30777
31102
|
"x-placement": data.placement
|
|
30778
31103
|
};
|
|
30779
|
-
data.attributes = _extends({}, attributes, data.attributes);
|
|
30780
|
-
data.styles = _extends({}, styles, data.styles);
|
|
30781
|
-
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
|
|
31104
|
+
data.attributes = _extends$1({}, attributes, data.attributes);
|
|
31105
|
+
data.styles = _extends$1({}, styles, data.styles);
|
|
31106
|
+
data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
|
|
30782
31107
|
return data;
|
|
30783
31108
|
}
|
|
30784
31109
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -30913,7 +31238,7 @@ function flip(data, options) {
|
|
|
30913
31238
|
variation = getOppositeVariation(variation);
|
|
30914
31239
|
}
|
|
30915
31240
|
data.placement = placement + (variation ? "-" + variation : "");
|
|
30916
|
-
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
31241
|
+
data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
30917
31242
|
data = runModifiers(data.instance.modifiers, data, "flip");
|
|
30918
31243
|
}
|
|
30919
31244
|
});
|
|
@@ -30956,13 +31281,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
|
|
|
30956
31281
|
var rect = getClientRect(element);
|
|
30957
31282
|
return rect[measurement] / 100 * value;
|
|
30958
31283
|
} else if (unit2 === "vh" || unit2 === "vw") {
|
|
30959
|
-
var
|
|
31284
|
+
var size2 = void 0;
|
|
30960
31285
|
if (unit2 === "vh") {
|
|
30961
|
-
|
|
31286
|
+
size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
30962
31287
|
} else {
|
|
30963
|
-
|
|
31288
|
+
size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
30964
31289
|
}
|
|
30965
|
-
return
|
|
31290
|
+
return size2 / 100 * value;
|
|
30966
31291
|
} else {
|
|
30967
31292
|
return value;
|
|
30968
31293
|
}
|
|
@@ -31072,7 +31397,7 @@ function preventOverflow(data, options) {
|
|
|
31072
31397
|
};
|
|
31073
31398
|
order.forEach(function(placement) {
|
|
31074
31399
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
31075
|
-
popper = _extends({}, popper, check[side](placement));
|
|
31400
|
+
popper = _extends$1({}, popper, check[side](placement));
|
|
31076
31401
|
});
|
|
31077
31402
|
data.offsets.popper = popper;
|
|
31078
31403
|
return data;
|
|
@@ -31090,7 +31415,7 @@ function shift(data) {
|
|
|
31090
31415
|
start: defineProperty({}, side, reference[side]),
|
|
31091
31416
|
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
|
|
31092
31417
|
};
|
|
31093
|
-
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
|
|
31418
|
+
data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
|
|
31094
31419
|
}
|
|
31095
31420
|
return data;
|
|
31096
31421
|
}
|
|
@@ -31493,7 +31818,7 @@ var Popper$1 = function() {
|
|
|
31493
31818
|
return requestAnimationFrame(_this.update);
|
|
31494
31819
|
};
|
|
31495
31820
|
this.update = debounce(this.update.bind(this));
|
|
31496
|
-
this.options = _extends({}, Popper2.Defaults, options);
|
|
31821
|
+
this.options = _extends$1({}, Popper2.Defaults, options);
|
|
31497
31822
|
this.state = {
|
|
31498
31823
|
isDestroyed: false,
|
|
31499
31824
|
isCreated: false,
|
|
@@ -31502,11 +31827,11 @@ var Popper$1 = function() {
|
|
|
31502
31827
|
this.reference = reference && reference.jquery ? reference[0] : reference;
|
|
31503
31828
|
this.popper = popper && popper.jquery ? popper[0] : popper;
|
|
31504
31829
|
this.options.modifiers = {};
|
|
31505
|
-
Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
31506
|
-
_this.options.modifiers[name2] = _extends({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
31830
|
+
Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
31831
|
+
_this.options.modifiers[name2] = _extends$1({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
31507
31832
|
});
|
|
31508
31833
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
|
|
31509
|
-
return _extends({
|
|
31834
|
+
return _extends$1({
|
|
31510
31835
|
name: name2
|
|
31511
31836
|
}, _this.options.modifiers[name2]);
|
|
31512
31837
|
}).sort(function(a2, b) {
|
|
@@ -31736,6 +32061,700 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31736
32061
|
...style2
|
|
31737
32062
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
31738
32063
|
});
|
|
32064
|
+
function _extends() {
|
|
32065
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
32066
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
32067
|
+
var source = arguments[i2];
|
|
32068
|
+
for (var key in source) {
|
|
32069
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32070
|
+
target[key] = source[key];
|
|
32071
|
+
}
|
|
32072
|
+
}
|
|
32073
|
+
}
|
|
32074
|
+
return target;
|
|
32075
|
+
};
|
|
32076
|
+
return _extends.apply(this, arguments);
|
|
32077
|
+
}
|
|
32078
|
+
function _assertThisInitialized(self2) {
|
|
32079
|
+
if (self2 === void 0) {
|
|
32080
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32081
|
+
}
|
|
32082
|
+
return self2;
|
|
32083
|
+
}
|
|
32084
|
+
function _setPrototypeOf(o2, p) {
|
|
32085
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
32086
|
+
o3.__proto__ = p2;
|
|
32087
|
+
return o3;
|
|
32088
|
+
};
|
|
32089
|
+
return _setPrototypeOf(o2, p);
|
|
32090
|
+
}
|
|
32091
|
+
function _inheritsLoose(subClass, superClass) {
|
|
32092
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
32093
|
+
subClass.prototype.constructor = subClass;
|
|
32094
|
+
_setPrototypeOf(subClass, superClass);
|
|
32095
|
+
}
|
|
32096
|
+
var safeIsNaN = Number.isNaN || function ponyfill(value) {
|
|
32097
|
+
return typeof value === "number" && value !== value;
|
|
32098
|
+
};
|
|
32099
|
+
function isEqual$1(first, second) {
|
|
32100
|
+
if (first === second) {
|
|
32101
|
+
return true;
|
|
32102
|
+
}
|
|
32103
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
32104
|
+
return true;
|
|
32105
|
+
}
|
|
32106
|
+
return false;
|
|
32107
|
+
}
|
|
32108
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
32109
|
+
if (newInputs.length !== lastInputs.length) {
|
|
32110
|
+
return false;
|
|
32111
|
+
}
|
|
32112
|
+
for (var i2 = 0; i2 < newInputs.length; i2++) {
|
|
32113
|
+
if (!isEqual$1(newInputs[i2], lastInputs[i2])) {
|
|
32114
|
+
return false;
|
|
32115
|
+
}
|
|
32116
|
+
}
|
|
32117
|
+
return true;
|
|
32118
|
+
}
|
|
32119
|
+
function memoizeOne(resultFn, isEqual2) {
|
|
32120
|
+
if (isEqual2 === void 0) {
|
|
32121
|
+
isEqual2 = areInputsEqual;
|
|
32122
|
+
}
|
|
32123
|
+
var lastThis;
|
|
32124
|
+
var lastArgs = [];
|
|
32125
|
+
var lastResult;
|
|
32126
|
+
var calledOnce = false;
|
|
32127
|
+
function memoized() {
|
|
32128
|
+
var newArgs = [];
|
|
32129
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
32130
|
+
newArgs[_i] = arguments[_i];
|
|
32131
|
+
}
|
|
32132
|
+
if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
|
|
32133
|
+
return lastResult;
|
|
32134
|
+
}
|
|
32135
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
32136
|
+
calledOnce = true;
|
|
32137
|
+
lastThis = this;
|
|
32138
|
+
lastArgs = newArgs;
|
|
32139
|
+
return lastResult;
|
|
32140
|
+
}
|
|
32141
|
+
return memoized;
|
|
32142
|
+
}
|
|
32143
|
+
var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
|
|
32144
|
+
var now = hasNativePerformanceNow ? function() {
|
|
32145
|
+
return performance.now();
|
|
32146
|
+
} : function() {
|
|
32147
|
+
return Date.now();
|
|
32148
|
+
};
|
|
32149
|
+
function cancelTimeout(timeoutID) {
|
|
32150
|
+
cancelAnimationFrame(timeoutID.id);
|
|
32151
|
+
}
|
|
32152
|
+
function requestTimeout(callback, delay) {
|
|
32153
|
+
var start = now();
|
|
32154
|
+
function tick() {
|
|
32155
|
+
if (now() - start >= delay) {
|
|
32156
|
+
callback.call(null);
|
|
32157
|
+
} else {
|
|
32158
|
+
timeoutID.id = requestAnimationFrame(tick);
|
|
32159
|
+
}
|
|
32160
|
+
}
|
|
32161
|
+
var timeoutID = {
|
|
32162
|
+
id: requestAnimationFrame(tick)
|
|
32163
|
+
};
|
|
32164
|
+
return timeoutID;
|
|
32165
|
+
}
|
|
32166
|
+
var size = -1;
|
|
32167
|
+
function getScrollbarSize(recalculate) {
|
|
32168
|
+
if (recalculate === void 0) {
|
|
32169
|
+
recalculate = false;
|
|
32170
|
+
}
|
|
32171
|
+
if (size === -1 || recalculate) {
|
|
32172
|
+
var div = document.createElement("div");
|
|
32173
|
+
var style2 = div.style;
|
|
32174
|
+
style2.width = "50px";
|
|
32175
|
+
style2.height = "50px";
|
|
32176
|
+
style2.overflow = "scroll";
|
|
32177
|
+
document.body.appendChild(div);
|
|
32178
|
+
size = div.offsetWidth - div.clientWidth;
|
|
32179
|
+
document.body.removeChild(div);
|
|
32180
|
+
}
|
|
32181
|
+
return size;
|
|
32182
|
+
}
|
|
32183
|
+
var cachedRTLResult = null;
|
|
32184
|
+
function getRTLOffsetType(recalculate) {
|
|
32185
|
+
if (recalculate === void 0) {
|
|
32186
|
+
recalculate = false;
|
|
32187
|
+
}
|
|
32188
|
+
if (cachedRTLResult === null || recalculate) {
|
|
32189
|
+
var outerDiv = document.createElement("div");
|
|
32190
|
+
var outerStyle = outerDiv.style;
|
|
32191
|
+
outerStyle.width = "50px";
|
|
32192
|
+
outerStyle.height = "50px";
|
|
32193
|
+
outerStyle.overflow = "scroll";
|
|
32194
|
+
outerStyle.direction = "rtl";
|
|
32195
|
+
var innerDiv = document.createElement("div");
|
|
32196
|
+
var innerStyle = innerDiv.style;
|
|
32197
|
+
innerStyle.width = "100px";
|
|
32198
|
+
innerStyle.height = "100px";
|
|
32199
|
+
outerDiv.appendChild(innerDiv);
|
|
32200
|
+
document.body.appendChild(outerDiv);
|
|
32201
|
+
if (outerDiv.scrollLeft > 0) {
|
|
32202
|
+
cachedRTLResult = "positive-descending";
|
|
32203
|
+
} else {
|
|
32204
|
+
outerDiv.scrollLeft = 1;
|
|
32205
|
+
if (outerDiv.scrollLeft === 0) {
|
|
32206
|
+
cachedRTLResult = "negative";
|
|
32207
|
+
} else {
|
|
32208
|
+
cachedRTLResult = "positive-ascending";
|
|
32209
|
+
}
|
|
32210
|
+
}
|
|
32211
|
+
document.body.removeChild(outerDiv);
|
|
32212
|
+
return cachedRTLResult;
|
|
32213
|
+
}
|
|
32214
|
+
return cachedRTLResult;
|
|
32215
|
+
}
|
|
32216
|
+
var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
|
|
32217
|
+
var defaultItemKey$1 = function defaultItemKey3(index2, data) {
|
|
32218
|
+
return index2;
|
|
32219
|
+
};
|
|
32220
|
+
var devWarningsDirection = null;
|
|
32221
|
+
var devWarningsTagName$1 = null;
|
|
32222
|
+
{
|
|
32223
|
+
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
32224
|
+
devWarningsDirection = /* @__PURE__ */ new WeakSet();
|
|
32225
|
+
devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
|
|
32226
|
+
}
|
|
32227
|
+
}
|
|
32228
|
+
function createListComponent(_ref) {
|
|
32229
|
+
var _class;
|
|
32230
|
+
var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
|
|
32231
|
+
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
32232
|
+
_inheritsLoose(List, _PureComponent);
|
|
32233
|
+
function List(props) {
|
|
32234
|
+
var _this;
|
|
32235
|
+
_this = _PureComponent.call(this, props) || this;
|
|
32236
|
+
_this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
|
|
32237
|
+
_this._outerRef = void 0;
|
|
32238
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
32239
|
+
_this.state = {
|
|
32240
|
+
instance: _assertThisInitialized(_this),
|
|
32241
|
+
isScrolling: false,
|
|
32242
|
+
scrollDirection: "forward",
|
|
32243
|
+
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
32244
|
+
scrollUpdateWasRequested: false
|
|
32245
|
+
};
|
|
32246
|
+
_this._callOnItemsRendered = void 0;
|
|
32247
|
+
_this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
32248
|
+
return _this.props.onItemsRendered({
|
|
32249
|
+
overscanStartIndex,
|
|
32250
|
+
overscanStopIndex,
|
|
32251
|
+
visibleStartIndex,
|
|
32252
|
+
visibleStopIndex
|
|
32253
|
+
});
|
|
32254
|
+
});
|
|
32255
|
+
_this._callOnScroll = void 0;
|
|
32256
|
+
_this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
32257
|
+
return _this.props.onScroll({
|
|
32258
|
+
scrollDirection,
|
|
32259
|
+
scrollOffset,
|
|
32260
|
+
scrollUpdateWasRequested
|
|
32261
|
+
});
|
|
32262
|
+
});
|
|
32263
|
+
_this._getItemStyle = void 0;
|
|
32264
|
+
_this._getItemStyle = function(index2) {
|
|
32265
|
+
var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
|
|
32266
|
+
var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
|
|
32267
|
+
var style2;
|
|
32268
|
+
if (itemStyleCache.hasOwnProperty(index2)) {
|
|
32269
|
+
style2 = itemStyleCache[index2];
|
|
32270
|
+
} else {
|
|
32271
|
+
var _offset = getItemOffset3(_this.props, index2, _this._instanceProps);
|
|
32272
|
+
var size2 = getItemSize3(_this.props, index2, _this._instanceProps);
|
|
32273
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32274
|
+
var isRtl = direction === "rtl";
|
|
32275
|
+
var offsetHorizontal = isHorizontal ? _offset : 0;
|
|
32276
|
+
itemStyleCache[index2] = style2 = {
|
|
32277
|
+
position: "absolute",
|
|
32278
|
+
left: isRtl ? void 0 : offsetHorizontal,
|
|
32279
|
+
right: isRtl ? offsetHorizontal : void 0,
|
|
32280
|
+
top: !isHorizontal ? _offset : 0,
|
|
32281
|
+
height: !isHorizontal ? size2 : "100%",
|
|
32282
|
+
width: isHorizontal ? size2 : "100%"
|
|
32283
|
+
};
|
|
32284
|
+
}
|
|
32285
|
+
return style2;
|
|
32286
|
+
};
|
|
32287
|
+
_this._getItemStyleCache = void 0;
|
|
32288
|
+
_this._getItemStyleCache = memoizeOne(function(_, __, ___) {
|
|
32289
|
+
return {};
|
|
32290
|
+
});
|
|
32291
|
+
_this._onScrollHorizontal = function(event) {
|
|
32292
|
+
var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
|
|
32293
|
+
_this.setState(function(prevState) {
|
|
32294
|
+
if (prevState.scrollOffset === scrollLeft) {
|
|
32295
|
+
return null;
|
|
32296
|
+
}
|
|
32297
|
+
var direction = _this.props.direction;
|
|
32298
|
+
var scrollOffset = scrollLeft;
|
|
32299
|
+
if (direction === "rtl") {
|
|
32300
|
+
switch (getRTLOffsetType()) {
|
|
32301
|
+
case "negative":
|
|
32302
|
+
scrollOffset = -scrollLeft;
|
|
32303
|
+
break;
|
|
32304
|
+
case "positive-descending":
|
|
32305
|
+
scrollOffset = scrollWidth - clientWidth - scrollLeft;
|
|
32306
|
+
break;
|
|
32307
|
+
}
|
|
32308
|
+
}
|
|
32309
|
+
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
32310
|
+
return {
|
|
32311
|
+
isScrolling: true,
|
|
32312
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32313
|
+
scrollOffset,
|
|
32314
|
+
scrollUpdateWasRequested: false
|
|
32315
|
+
};
|
|
32316
|
+
}, _this._resetIsScrollingDebounced);
|
|
32317
|
+
};
|
|
32318
|
+
_this._onScrollVertical = function(event) {
|
|
32319
|
+
var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
|
|
32320
|
+
_this.setState(function(prevState) {
|
|
32321
|
+
if (prevState.scrollOffset === scrollTop) {
|
|
32322
|
+
return null;
|
|
32323
|
+
}
|
|
32324
|
+
var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
|
|
32325
|
+
return {
|
|
32326
|
+
isScrolling: true,
|
|
32327
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32328
|
+
scrollOffset,
|
|
32329
|
+
scrollUpdateWasRequested: false
|
|
32330
|
+
};
|
|
32331
|
+
}, _this._resetIsScrollingDebounced);
|
|
32332
|
+
};
|
|
32333
|
+
_this._outerRefSetter = function(ref) {
|
|
32334
|
+
var outerRef = _this.props.outerRef;
|
|
32335
|
+
_this._outerRef = ref;
|
|
32336
|
+
if (typeof outerRef === "function") {
|
|
32337
|
+
outerRef(ref);
|
|
32338
|
+
} else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
|
|
32339
|
+
outerRef.current = ref;
|
|
32340
|
+
}
|
|
32341
|
+
};
|
|
32342
|
+
_this._resetIsScrollingDebounced = function() {
|
|
32343
|
+
if (_this._resetIsScrollingTimeoutId !== null) {
|
|
32344
|
+
cancelTimeout(_this._resetIsScrollingTimeoutId);
|
|
32345
|
+
}
|
|
32346
|
+
_this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
|
|
32347
|
+
};
|
|
32348
|
+
_this._resetIsScrolling = function() {
|
|
32349
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
32350
|
+
_this.setState({
|
|
32351
|
+
isScrolling: false
|
|
32352
|
+
}, function() {
|
|
32353
|
+
_this._getItemStyleCache(-1, null);
|
|
32354
|
+
});
|
|
32355
|
+
};
|
|
32356
|
+
return _this;
|
|
32357
|
+
}
|
|
32358
|
+
List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
|
|
32359
|
+
validateSharedProps$1(nextProps, prevState);
|
|
32360
|
+
validateProps5(nextProps);
|
|
32361
|
+
return null;
|
|
32362
|
+
};
|
|
32363
|
+
var _proto = List.prototype;
|
|
32364
|
+
_proto.scrollTo = function scrollTo(scrollOffset) {
|
|
32365
|
+
scrollOffset = Math.max(0, scrollOffset);
|
|
32366
|
+
this.setState(function(prevState) {
|
|
32367
|
+
if (prevState.scrollOffset === scrollOffset) {
|
|
32368
|
+
return null;
|
|
32369
|
+
}
|
|
32370
|
+
return {
|
|
32371
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32372
|
+
scrollOffset,
|
|
32373
|
+
scrollUpdateWasRequested: true
|
|
32374
|
+
};
|
|
32375
|
+
}, this._resetIsScrollingDebounced);
|
|
32376
|
+
};
|
|
32377
|
+
_proto.scrollToItem = function scrollToItem(index2, align) {
|
|
32378
|
+
if (align === void 0) {
|
|
32379
|
+
align = "auto";
|
|
32380
|
+
}
|
|
32381
|
+
var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
|
|
32382
|
+
var scrollOffset = this.state.scrollOffset;
|
|
32383
|
+
index2 = Math.max(0, Math.min(index2, itemCount - 1));
|
|
32384
|
+
var scrollbarSize = 0;
|
|
32385
|
+
if (this._outerRef) {
|
|
32386
|
+
var outerRef = this._outerRef;
|
|
32387
|
+
if (layout === "vertical") {
|
|
32388
|
+
scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
|
|
32389
|
+
} else {
|
|
32390
|
+
scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
|
|
32391
|
+
}
|
|
32392
|
+
}
|
|
32393
|
+
this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
|
|
32394
|
+
};
|
|
32395
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
32396
|
+
var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
|
|
32397
|
+
if (typeof initialScrollOffset === "number" && this._outerRef != null) {
|
|
32398
|
+
var outerRef = this._outerRef;
|
|
32399
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
32400
|
+
outerRef.scrollLeft = initialScrollOffset;
|
|
32401
|
+
} else {
|
|
32402
|
+
outerRef.scrollTop = initialScrollOffset;
|
|
32403
|
+
}
|
|
32404
|
+
}
|
|
32405
|
+
this._callPropsCallbacks();
|
|
32406
|
+
};
|
|
32407
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
32408
|
+
var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
|
|
32409
|
+
var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
|
|
32410
|
+
if (scrollUpdateWasRequested && this._outerRef != null) {
|
|
32411
|
+
var outerRef = this._outerRef;
|
|
32412
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
32413
|
+
if (direction === "rtl") {
|
|
32414
|
+
switch (getRTLOffsetType()) {
|
|
32415
|
+
case "negative":
|
|
32416
|
+
outerRef.scrollLeft = -scrollOffset;
|
|
32417
|
+
break;
|
|
32418
|
+
case "positive-ascending":
|
|
32419
|
+
outerRef.scrollLeft = scrollOffset;
|
|
32420
|
+
break;
|
|
32421
|
+
default:
|
|
32422
|
+
var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
|
|
32423
|
+
outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
|
|
32424
|
+
break;
|
|
32425
|
+
}
|
|
32426
|
+
} else {
|
|
32427
|
+
outerRef.scrollLeft = scrollOffset;
|
|
32428
|
+
}
|
|
32429
|
+
} else {
|
|
32430
|
+
outerRef.scrollTop = scrollOffset;
|
|
32431
|
+
}
|
|
32432
|
+
}
|
|
32433
|
+
this._callPropsCallbacks();
|
|
32434
|
+
};
|
|
32435
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
32436
|
+
if (this._resetIsScrollingTimeoutId !== null) {
|
|
32437
|
+
cancelTimeout(this._resetIsScrollingTimeoutId);
|
|
32438
|
+
}
|
|
32439
|
+
};
|
|
32440
|
+
_proto.render = function render() {
|
|
32441
|
+
var _this$props5 = this.props, children2 = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
|
|
32442
|
+
var isScrolling = this.state.isScrolling;
|
|
32443
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32444
|
+
var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
|
|
32445
|
+
var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
|
|
32446
|
+
var items = [];
|
|
32447
|
+
if (itemCount > 0) {
|
|
32448
|
+
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
32449
|
+
items.push(createElement(children2, {
|
|
32450
|
+
data: itemData,
|
|
32451
|
+
key: itemKey(_index, itemData),
|
|
32452
|
+
index: _index,
|
|
32453
|
+
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
32454
|
+
style: this._getItemStyle(_index)
|
|
32455
|
+
}));
|
|
32456
|
+
}
|
|
32457
|
+
}
|
|
32458
|
+
var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
|
|
32459
|
+
return createElement(outerElementType || outerTagName || "div", {
|
|
32460
|
+
className,
|
|
32461
|
+
onScroll,
|
|
32462
|
+
ref: this._outerRefSetter,
|
|
32463
|
+
style: _extends({
|
|
32464
|
+
position: "relative",
|
|
32465
|
+
height: height2,
|
|
32466
|
+
width: width2,
|
|
32467
|
+
overflow: "auto",
|
|
32468
|
+
WebkitOverflowScrolling: "touch",
|
|
32469
|
+
willChange: "transform",
|
|
32470
|
+
direction
|
|
32471
|
+
}, style2)
|
|
32472
|
+
}, createElement(innerElementType || innerTagName || "div", {
|
|
32473
|
+
children: items,
|
|
32474
|
+
ref: innerRef,
|
|
32475
|
+
style: {
|
|
32476
|
+
height: isHorizontal ? "100%" : estimatedTotalSize,
|
|
32477
|
+
pointerEvents: isScrolling ? "none" : void 0,
|
|
32478
|
+
width: isHorizontal ? estimatedTotalSize : "100%"
|
|
32479
|
+
}
|
|
32480
|
+
}));
|
|
32481
|
+
};
|
|
32482
|
+
_proto._callPropsCallbacks = function _callPropsCallbacks() {
|
|
32483
|
+
if (typeof this.props.onItemsRendered === "function") {
|
|
32484
|
+
var itemCount = this.props.itemCount;
|
|
32485
|
+
if (itemCount > 0) {
|
|
32486
|
+
var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
|
|
32487
|
+
this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
|
|
32488
|
+
}
|
|
32489
|
+
}
|
|
32490
|
+
if (typeof this.props.onScroll === "function") {
|
|
32491
|
+
var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
|
|
32492
|
+
this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
|
|
32493
|
+
}
|
|
32494
|
+
};
|
|
32495
|
+
_proto._getRangeToRender = function _getRangeToRender() {
|
|
32496
|
+
var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
|
|
32497
|
+
var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
|
|
32498
|
+
if (itemCount === 0) {
|
|
32499
|
+
return [0, 0, 0, 0];
|
|
32500
|
+
}
|
|
32501
|
+
var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
|
|
32502
|
+
var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
|
|
32503
|
+
var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
|
|
32504
|
+
var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
|
|
32505
|
+
return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
|
|
32506
|
+
};
|
|
32507
|
+
return List;
|
|
32508
|
+
}(PureComponent), _class.defaultProps = {
|
|
32509
|
+
direction: "ltr",
|
|
32510
|
+
itemData: void 0,
|
|
32511
|
+
layout: "vertical",
|
|
32512
|
+
overscanCount: 2,
|
|
32513
|
+
useIsScrolling: false
|
|
32514
|
+
}, _class;
|
|
32515
|
+
}
|
|
32516
|
+
var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
|
|
32517
|
+
var children2 = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
|
|
32518
|
+
var instance = _ref3.instance;
|
|
32519
|
+
{
|
|
32520
|
+
if (innerTagName != null || outerTagName != null) {
|
|
32521
|
+
if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
|
|
32522
|
+
devWarningsTagName$1.add(instance);
|
|
32523
|
+
console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
|
|
32524
|
+
}
|
|
32525
|
+
}
|
|
32526
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32527
|
+
switch (direction) {
|
|
32528
|
+
case "horizontal":
|
|
32529
|
+
case "vertical":
|
|
32530
|
+
if (devWarningsDirection && !devWarningsDirection.has(instance)) {
|
|
32531
|
+
devWarningsDirection.add(instance);
|
|
32532
|
+
console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
32533
|
+
}
|
|
32534
|
+
break;
|
|
32535
|
+
case "ltr":
|
|
32536
|
+
case "rtl":
|
|
32537
|
+
break;
|
|
32538
|
+
default:
|
|
32539
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
|
|
32540
|
+
}
|
|
32541
|
+
switch (layout) {
|
|
32542
|
+
case "horizontal":
|
|
32543
|
+
case "vertical":
|
|
32544
|
+
break;
|
|
32545
|
+
default:
|
|
32546
|
+
throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
|
|
32547
|
+
}
|
|
32548
|
+
if (children2 == null) {
|
|
32549
|
+
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children2 === null ? "null" : typeof children2) + '" was specified.'));
|
|
32550
|
+
}
|
|
32551
|
+
if (isHorizontal && typeof width2 !== "number") {
|
|
32552
|
+
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
|
|
32553
|
+
} else if (!isHorizontal && typeof height2 !== "number") {
|
|
32554
|
+
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
|
|
32555
|
+
}
|
|
32556
|
+
}
|
|
32557
|
+
};
|
|
32558
|
+
var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
|
|
32559
|
+
var getItemMetadata$1 = function getItemMetadata3(props, index2, instanceProps) {
|
|
32560
|
+
var _ref = props, itemSize = _ref.itemSize;
|
|
32561
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
32562
|
+
if (index2 > lastMeasuredIndex) {
|
|
32563
|
+
var offset2 = 0;
|
|
32564
|
+
if (lastMeasuredIndex >= 0) {
|
|
32565
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
32566
|
+
offset2 = itemMetadata.offset + itemMetadata.size;
|
|
32567
|
+
}
|
|
32568
|
+
for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
|
|
32569
|
+
var size2 = itemSize(i2);
|
|
32570
|
+
itemMetadataMap[i2] = {
|
|
32571
|
+
offset: offset2,
|
|
32572
|
+
size: size2
|
|
32573
|
+
};
|
|
32574
|
+
offset2 += size2;
|
|
32575
|
+
}
|
|
32576
|
+
instanceProps.lastMeasuredIndex = index2;
|
|
32577
|
+
}
|
|
32578
|
+
return itemMetadataMap[index2];
|
|
32579
|
+
};
|
|
32580
|
+
var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
|
|
32581
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
32582
|
+
var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
|
|
32583
|
+
if (lastMeasuredItemOffset >= offset2) {
|
|
32584
|
+
return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
|
|
32585
|
+
} else {
|
|
32586
|
+
return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
|
|
32587
|
+
}
|
|
32588
|
+
};
|
|
32589
|
+
var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
|
|
32590
|
+
while (low <= high) {
|
|
32591
|
+
var middle = low + Math.floor((high - low) / 2);
|
|
32592
|
+
var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
|
|
32593
|
+
if (currentOffset === offset2) {
|
|
32594
|
+
return middle;
|
|
32595
|
+
} else if (currentOffset < offset2) {
|
|
32596
|
+
low = middle + 1;
|
|
32597
|
+
} else if (currentOffset > offset2) {
|
|
32598
|
+
high = middle - 1;
|
|
32599
|
+
}
|
|
32600
|
+
}
|
|
32601
|
+
if (low > 0) {
|
|
32602
|
+
return low - 1;
|
|
32603
|
+
} else {
|
|
32604
|
+
return 0;
|
|
32605
|
+
}
|
|
32606
|
+
};
|
|
32607
|
+
var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index2, offset2) {
|
|
32608
|
+
var itemCount = props.itemCount;
|
|
32609
|
+
var interval = 1;
|
|
32610
|
+
while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
|
|
32611
|
+
index2 += interval;
|
|
32612
|
+
interval *= 2;
|
|
32613
|
+
}
|
|
32614
|
+
return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
|
|
32615
|
+
};
|
|
32616
|
+
var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
|
|
32617
|
+
var itemCount = _ref2.itemCount;
|
|
32618
|
+
var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
|
|
32619
|
+
var totalSizeOfMeasuredItems = 0;
|
|
32620
|
+
if (lastMeasuredIndex >= itemCount) {
|
|
32621
|
+
lastMeasuredIndex = itemCount - 1;
|
|
32622
|
+
}
|
|
32623
|
+
if (lastMeasuredIndex >= 0) {
|
|
32624
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
32625
|
+
totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
|
|
32626
|
+
}
|
|
32627
|
+
var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
|
|
32628
|
+
var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
|
|
32629
|
+
return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
|
|
32630
|
+
};
|
|
32631
|
+
var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
|
|
32632
|
+
getItemOffset: function getItemOffset(props, index2, instanceProps) {
|
|
32633
|
+
return getItemMetadata$1(props, index2, instanceProps).offset;
|
|
32634
|
+
},
|
|
32635
|
+
getItemSize: function getItemSize(props, index2, instanceProps) {
|
|
32636
|
+
return instanceProps.itemMetadataMap[index2].size;
|
|
32637
|
+
},
|
|
32638
|
+
getEstimatedTotalSize,
|
|
32639
|
+
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
32640
|
+
var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
|
|
32641
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32642
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
32643
|
+
var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
|
|
32644
|
+
var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
|
|
32645
|
+
var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
|
|
32646
|
+
var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
|
|
32647
|
+
if (align === "smart") {
|
|
32648
|
+
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
32649
|
+
align = "auto";
|
|
32650
|
+
} else {
|
|
32651
|
+
align = "center";
|
|
32652
|
+
}
|
|
32653
|
+
}
|
|
32654
|
+
switch (align) {
|
|
32655
|
+
case "start":
|
|
32656
|
+
return maxOffset;
|
|
32657
|
+
case "end":
|
|
32658
|
+
return minOffset;
|
|
32659
|
+
case "center":
|
|
32660
|
+
return Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
32661
|
+
case "auto":
|
|
32662
|
+
default:
|
|
32663
|
+
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
32664
|
+
return scrollOffset;
|
|
32665
|
+
} else if (scrollOffset < minOffset) {
|
|
32666
|
+
return minOffset;
|
|
32667
|
+
} else {
|
|
32668
|
+
return maxOffset;
|
|
32669
|
+
}
|
|
32670
|
+
}
|
|
32671
|
+
},
|
|
32672
|
+
getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
|
|
32673
|
+
return findNearestItem$1(props, instanceProps, offset2);
|
|
32674
|
+
},
|
|
32675
|
+
getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
|
|
32676
|
+
var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
|
|
32677
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32678
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
32679
|
+
var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
|
|
32680
|
+
var maxOffset = scrollOffset + size2;
|
|
32681
|
+
var offset2 = itemMetadata.offset + itemMetadata.size;
|
|
32682
|
+
var stopIndex = startIndex;
|
|
32683
|
+
while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
|
|
32684
|
+
stopIndex++;
|
|
32685
|
+
offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
|
|
32686
|
+
}
|
|
32687
|
+
return stopIndex;
|
|
32688
|
+
},
|
|
32689
|
+
initInstanceProps: function initInstanceProps2(props, instance) {
|
|
32690
|
+
var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
|
|
32691
|
+
var instanceProps = {
|
|
32692
|
+
itemMetadataMap: {},
|
|
32693
|
+
estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
|
|
32694
|
+
lastMeasuredIndex: -1
|
|
32695
|
+
};
|
|
32696
|
+
instance.resetAfterIndex = function(index2, shouldForceUpdate) {
|
|
32697
|
+
if (shouldForceUpdate === void 0) {
|
|
32698
|
+
shouldForceUpdate = true;
|
|
32699
|
+
}
|
|
32700
|
+
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
|
|
32701
|
+
instance._getItemStyleCache(-1);
|
|
32702
|
+
if (shouldForceUpdate) {
|
|
32703
|
+
instance.forceUpdate();
|
|
32704
|
+
}
|
|
32705
|
+
};
|
|
32706
|
+
return instanceProps;
|
|
32707
|
+
},
|
|
32708
|
+
shouldResetStyleCacheOnItemSizeChange: false,
|
|
32709
|
+
validateProps: function validateProps2(_ref5) {
|
|
32710
|
+
var itemSize = _ref5.itemSize;
|
|
32711
|
+
{
|
|
32712
|
+
if (typeof itemSize !== "function") {
|
|
32713
|
+
throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
|
|
32714
|
+
}
|
|
32715
|
+
}
|
|
32716
|
+
}
|
|
32717
|
+
});
|
|
32718
|
+
const VariableSizeList = VariableSizeList$1;
|
|
32719
|
+
const LIST_ROW_HEIGHT = 48;
|
|
32720
|
+
makeStyles()(() => ({
|
|
32721
|
+
searchInput: {
|
|
32722
|
+
lineHeight: "initial",
|
|
32723
|
+
height: "auto !important"
|
|
32724
|
+
}
|
|
32725
|
+
}));
|
|
32726
|
+
const OuterElementContext = React__default.createContext({});
|
|
32727
|
+
const OuterElementType = React__default.forwardRef((props, ref) => {
|
|
32728
|
+
const outerProps = React__default.useContext(OuterElementContext);
|
|
32729
|
+
return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
|
|
32730
|
+
});
|
|
32731
|
+
function ListRow(props) {
|
|
32732
|
+
const { data, index: index2, style: style2 } = props;
|
|
32733
|
+
const dataSet = data[index2];
|
|
32734
|
+
const inlineStyle = {
|
|
32735
|
+
...style2,
|
|
32736
|
+
top: style2.top + 8
|
|
32737
|
+
};
|
|
32738
|
+
const [props0, option, getItemLabel] = dataSet;
|
|
32739
|
+
const { key, ...optionProps } = props0;
|
|
32740
|
+
return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
|
|
32741
|
+
}
|
|
32742
|
+
function useResetCache(itemCount) {
|
|
32743
|
+
const ref = useRef(null);
|
|
32744
|
+
useEffect(() => {
|
|
32745
|
+
if (ref.current != null) {
|
|
32746
|
+
ref.current.resetAfterIndex(0, true);
|
|
32747
|
+
}
|
|
32748
|
+
}, [itemCount]);
|
|
32749
|
+
return ref;
|
|
32750
|
+
}
|
|
32751
|
+
React__default.forwardRef((props, ref) => {
|
|
32752
|
+
const { children: children2, ...other } = props;
|
|
32753
|
+
const items = children2;
|
|
32754
|
+
const itemCount = items.length;
|
|
32755
|
+
const gridRef = useResetCache(itemCount);
|
|
32756
|
+
return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
|
|
32757
|
+
});
|
|
31739
32758
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
31740
32759
|
const namespaces = {
|
|
31741
32760
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -32041,9 +33060,9 @@ function selection_node() {
|
|
|
32041
33060
|
return null;
|
|
32042
33061
|
}
|
|
32043
33062
|
function selection_size() {
|
|
32044
|
-
let
|
|
32045
|
-
for (const node2 of this) ++
|
|
32046
|
-
return
|
|
33063
|
+
let size2 = 0;
|
|
33064
|
+
for (const node2 of this) ++size2;
|
|
33065
|
+
return size2;
|
|
32047
33066
|
}
|
|
32048
33067
|
function selection_empty() {
|
|
32049
33068
|
return !this.node();
|
|
@@ -34023,7 +35042,7 @@ function Legend(props) {
|
|
|
34023
35042
|
y += titleHeight;
|
|
34024
35043
|
setPaths.forEach((setPath) => {
|
|
34025
35044
|
var _a3;
|
|
34026
|
-
const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$
|
|
35045
|
+
const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$2(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme ?? "light");
|
|
34027
35046
|
g2.append("rect").attr("x", 0).attr("y", y).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor2[0]},${setColor2[1]},${setColor2[2]})`);
|
|
34028
35047
|
g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y).text(setPath.at(-1) ?? "").style("font-size", "9px").style("fill", foregroundColor);
|
|
34029
35048
|
y += rectHeight + rectMarginY;
|
|
@@ -37261,12 +38280,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
|
|
|
37261
38280
|
return original.getVertexAttrib.apply(this, arguments);
|
|
37262
38281
|
}
|
|
37263
38282
|
};
|
|
37264
|
-
gl.vertexAttribPointer = function vertexAttribPointer(indx,
|
|
38283
|
+
gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
|
|
37265
38284
|
const vao = self2.currentVertexArrayObject;
|
|
37266
38285
|
vao.maxAttrib = Math.max(vao.maxAttrib, indx);
|
|
37267
38286
|
const attrib = vao.attribs[indx];
|
|
37268
38287
|
attrib.buffer = self2.currentArrayBuffer;
|
|
37269
|
-
attrib.size =
|
|
38288
|
+
attrib.size = size2;
|
|
37270
38289
|
attrib.type = type;
|
|
37271
38290
|
attrib.normalized = normalized;
|
|
37272
38291
|
attrib.stride = stride;
|
|
@@ -39158,7 +40177,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39158
40177
|
sourceBuffer,
|
|
39159
40178
|
readOffset = 0,
|
|
39160
40179
|
writeOffset = 0,
|
|
39161
|
-
size
|
|
40180
|
+
size: size2
|
|
39162
40181
|
} = _ref;
|
|
39163
40182
|
const {
|
|
39164
40183
|
gl
|
|
@@ -39166,7 +40185,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39166
40185
|
assertWebGL2Context(gl);
|
|
39167
40186
|
gl.bindBuffer(36662, sourceBuffer.handle);
|
|
39168
40187
|
gl.bindBuffer(36663, this.handle);
|
|
39169
|
-
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset,
|
|
40188
|
+
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
|
|
39170
40189
|
gl.bindBuffer(36662, null);
|
|
39171
40190
|
gl.bindBuffer(36663, null);
|
|
39172
40191
|
this.debugData = null;
|
|
@@ -39208,11 +40227,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39208
40227
|
target = this.target,
|
|
39209
40228
|
index: index2 = this.accessor && this.accessor.index,
|
|
39210
40229
|
offset: offset2 = 0,
|
|
39211
|
-
size
|
|
40230
|
+
size: size2
|
|
39212
40231
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
39213
40232
|
if (target === 35345 || target === 35982) {
|
|
39214
|
-
if (
|
|
39215
|
-
this.gl.bindBufferRange(target, index2, this.handle, offset2,
|
|
40233
|
+
if (size2 !== void 0) {
|
|
40234
|
+
this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
|
|
39216
40235
|
} else {
|
|
39217
40236
|
assert$8(offset2 === 0);
|
|
39218
40237
|
this.gl.bindBufferBase(target, index2, this.handle);
|
|
@@ -39892,47 +40911,47 @@ class Texture extends Resource$1 {
|
|
|
39892
40911
|
};
|
|
39893
40912
|
}
|
|
39894
40913
|
_deduceImageSize(data, width2, height2) {
|
|
39895
|
-
let
|
|
40914
|
+
let size2;
|
|
39896
40915
|
if (typeof ImageData !== "undefined" && data instanceof ImageData) {
|
|
39897
|
-
|
|
40916
|
+
size2 = {
|
|
39898
40917
|
width: data.width,
|
|
39899
40918
|
height: data.height
|
|
39900
40919
|
};
|
|
39901
40920
|
} else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
|
|
39902
|
-
|
|
40921
|
+
size2 = {
|
|
39903
40922
|
width: data.naturalWidth,
|
|
39904
40923
|
height: data.naturalHeight
|
|
39905
40924
|
};
|
|
39906
40925
|
} else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
|
|
39907
|
-
|
|
40926
|
+
size2 = {
|
|
39908
40927
|
width: data.width,
|
|
39909
40928
|
height: data.height
|
|
39910
40929
|
};
|
|
39911
40930
|
} else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
|
|
39912
|
-
|
|
40931
|
+
size2 = {
|
|
39913
40932
|
width: data.width,
|
|
39914
40933
|
height: data.height
|
|
39915
40934
|
};
|
|
39916
40935
|
} else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
|
|
39917
|
-
|
|
40936
|
+
size2 = {
|
|
39918
40937
|
width: data.videoWidth,
|
|
39919
40938
|
height: data.videoHeight
|
|
39920
40939
|
};
|
|
39921
40940
|
} else if (!data) {
|
|
39922
|
-
|
|
40941
|
+
size2 = {
|
|
39923
40942
|
width: width2 >= 0 ? width2 : 1,
|
|
39924
40943
|
height: height2 >= 0 ? height2 : 1
|
|
39925
40944
|
};
|
|
39926
40945
|
} else {
|
|
39927
|
-
|
|
40946
|
+
size2 = {
|
|
39928
40947
|
width: width2,
|
|
39929
40948
|
height: height2
|
|
39930
40949
|
};
|
|
39931
40950
|
}
|
|
39932
|
-
assert$8(
|
|
39933
|
-
assert$8(width2 === void 0 ||
|
|
39934
|
-
assert$8(height2 === void 0 ||
|
|
39935
|
-
return
|
|
40951
|
+
assert$8(size2, "Could not deduced texture size");
|
|
40952
|
+
assert$8(width2 === void 0 || size2.width === width2, "Deduced texture width does not match supplied width");
|
|
40953
|
+
assert$8(height2 === void 0 || size2.height === height2, "Deduced texture height does not match supplied height");
|
|
40954
|
+
return size2;
|
|
39936
40955
|
}
|
|
39937
40956
|
_createHandle() {
|
|
39938
40957
|
return this.gl.createTexture();
|
|
@@ -41891,11 +42910,11 @@ function getSamplerSetter() {
|
|
|
41891
42910
|
return update2;
|
|
41892
42911
|
};
|
|
41893
42912
|
}
|
|
41894
|
-
function getArraySetter(functionName, toArray,
|
|
42913
|
+
function getArraySetter(functionName, toArray, size2, uniformSetter) {
|
|
41895
42914
|
let cache2 = null;
|
|
41896
42915
|
let cacheLength = null;
|
|
41897
42916
|
return (gl, location, value) => {
|
|
41898
|
-
const arrayValue = toArray(value,
|
|
42917
|
+
const arrayValue = toArray(value, size2);
|
|
41899
42918
|
const length2 = arrayValue.length;
|
|
41900
42919
|
let update2 = false;
|
|
41901
42920
|
if (cache2 === null) {
|
|
@@ -42090,11 +43109,11 @@ class ProgramConfiguration {
|
|
|
42090
43109
|
const {
|
|
42091
43110
|
name: name2,
|
|
42092
43111
|
type,
|
|
42093
|
-
size
|
|
43112
|
+
size: size2
|
|
42094
43113
|
} = gl.getActiveAttrib(program.handle, index2);
|
|
42095
43114
|
const location = gl.getAttribLocation(program.handle, name2);
|
|
42096
43115
|
if (location >= 0) {
|
|
42097
|
-
this._addAttribute(location, name2, type,
|
|
43116
|
+
this._addAttribute(location, name2, type, size2);
|
|
42098
43117
|
}
|
|
42099
43118
|
}
|
|
42100
43119
|
this.attributeInfos.sort((a2, b) => a2.location - b.location);
|
|
@@ -42111,20 +43130,20 @@ class ProgramConfiguration {
|
|
|
42111
43130
|
const {
|
|
42112
43131
|
name: name2,
|
|
42113
43132
|
type,
|
|
42114
|
-
size
|
|
43133
|
+
size: size2
|
|
42115
43134
|
} = gl.getTransformFeedbackVarying(program.handle, location);
|
|
42116
|
-
this._addVarying(location, name2, type,
|
|
43135
|
+
this._addVarying(location, name2, type, size2);
|
|
42117
43136
|
}
|
|
42118
43137
|
this.varyingInfos.sort((a2, b) => a2.location - b.location);
|
|
42119
43138
|
}
|
|
42120
|
-
_addAttribute(location, name2, compositeType,
|
|
43139
|
+
_addAttribute(location, name2, compositeType, size2) {
|
|
42121
43140
|
const {
|
|
42122
43141
|
type,
|
|
42123
43142
|
components
|
|
42124
43143
|
} = decomposeCompositeGLType(compositeType);
|
|
42125
43144
|
const accessor = {
|
|
42126
43145
|
type,
|
|
42127
|
-
size:
|
|
43146
|
+
size: size2 * components
|
|
42128
43147
|
};
|
|
42129
43148
|
this._inferProperties(location, name2, accessor);
|
|
42130
43149
|
const attributeInfo = {
|
|
@@ -42141,14 +43160,14 @@ class ProgramConfiguration {
|
|
|
42141
43160
|
accessor.divisor = 1;
|
|
42142
43161
|
}
|
|
42143
43162
|
}
|
|
42144
|
-
_addVarying(location, name2, compositeType,
|
|
43163
|
+
_addVarying(location, name2, compositeType, size2) {
|
|
42145
43164
|
const {
|
|
42146
43165
|
type,
|
|
42147
43166
|
components
|
|
42148
43167
|
} = decomposeCompositeGLType(compositeType);
|
|
42149
43168
|
const accessor = new Accessor({
|
|
42150
43169
|
type,
|
|
42151
|
-
size:
|
|
43170
|
+
size: size2 * components
|
|
42152
43171
|
});
|
|
42153
43172
|
const varying = {
|
|
42154
43173
|
location,
|
|
@@ -42824,7 +43843,7 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42824
43843
|
return this.setElementBuffer(buffer, accessor);
|
|
42825
43844
|
}
|
|
42826
43845
|
const {
|
|
42827
|
-
size,
|
|
43846
|
+
size: size2,
|
|
42828
43847
|
type,
|
|
42829
43848
|
stride,
|
|
42830
43849
|
offset: offset2,
|
|
@@ -42841,9 +43860,9 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42841
43860
|
gl.bindBuffer(34962, buffer.handle);
|
|
42842
43861
|
if (integer) {
|
|
42843
43862
|
assert$8(isWebGL2$1(gl));
|
|
42844
|
-
gl2.vertexAttribIPointer(location,
|
|
43863
|
+
gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
|
|
42845
43864
|
} else {
|
|
42846
|
-
gl.vertexAttribPointer(location,
|
|
43865
|
+
gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
|
|
42847
43866
|
}
|
|
42848
43867
|
gl.enableVertexAttribArray(location);
|
|
42849
43868
|
gl2.vertexAttribDivisor(location, divisor || 0);
|
|
@@ -43171,10 +44190,10 @@ class VertexArray {
|
|
|
43171
44190
|
const currentAccessor = this.accessors[location] || {};
|
|
43172
44191
|
const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
|
|
43173
44192
|
const {
|
|
43174
|
-
size,
|
|
44193
|
+
size: size2,
|
|
43175
44194
|
type
|
|
43176
44195
|
} = accessor;
|
|
43177
|
-
assert$8(Number.isFinite(
|
|
44196
|
+
assert$8(Number.isFinite(size2) && Number.isFinite(type));
|
|
43178
44197
|
return {
|
|
43179
44198
|
location,
|
|
43180
44199
|
accessor
|
|
@@ -43306,12 +44325,12 @@ class VertexArray {
|
|
|
43306
44325
|
function formatArrayValue(v, opts) {
|
|
43307
44326
|
const {
|
|
43308
44327
|
maxElts = 16,
|
|
43309
|
-
size = 1
|
|
44328
|
+
size: size2 = 1
|
|
43310
44329
|
} = opts;
|
|
43311
44330
|
let string2 = "[";
|
|
43312
44331
|
for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
|
|
43313
44332
|
if (i2 > 0) {
|
|
43314
|
-
string2 += ",".concat(i2 %
|
|
44333
|
+
string2 += ",".concat(i2 % size2 === 0 ? " " : "");
|
|
43315
44334
|
}
|
|
43316
44335
|
string2 += formatValue$1(v[i2], opts);
|
|
43317
44336
|
}
|
|
@@ -43476,7 +44495,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43476
44495
|
};
|
|
43477
44496
|
}
|
|
43478
44497
|
let type = "NOT PROVIDED";
|
|
43479
|
-
let
|
|
44498
|
+
let size2 = 1;
|
|
43480
44499
|
let verts = 0;
|
|
43481
44500
|
let bytes = 0;
|
|
43482
44501
|
let isInteger;
|
|
@@ -43484,7 +44503,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43484
44503
|
let value;
|
|
43485
44504
|
if (accessor) {
|
|
43486
44505
|
type = accessor.type;
|
|
43487
|
-
|
|
44506
|
+
size2 = accessor.size;
|
|
43488
44507
|
type = String(type).replace("Array", "");
|
|
43489
44508
|
isInteger = type.indexOf("nt") !== -1;
|
|
43490
44509
|
}
|
|
@@ -43497,41 +44516,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43497
44516
|
marker2 = changed ? "*" : "";
|
|
43498
44517
|
value = data;
|
|
43499
44518
|
bytes = buffer.byteLength;
|
|
43500
|
-
verts = bytes / data.BYTES_PER_ELEMENT /
|
|
44519
|
+
verts = bytes / data.BYTES_PER_ELEMENT / size2;
|
|
43501
44520
|
let format2;
|
|
43502
44521
|
if (accessor) {
|
|
43503
44522
|
const instanced = accessor.divisor > 0;
|
|
43504
|
-
format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(
|
|
44523
|
+
format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
|
|
43505
44524
|
} else {
|
|
43506
44525
|
isInteger = true;
|
|
43507
44526
|
format2 = "".concat(bytes, " bytes");
|
|
43508
44527
|
}
|
|
43509
44528
|
return {
|
|
43510
44529
|
[header]: "".concat(marker2).concat(formatValue$1(value, {
|
|
43511
|
-
size,
|
|
44530
|
+
size: size2,
|
|
43512
44531
|
isInteger
|
|
43513
44532
|
})),
|
|
43514
44533
|
"Format ": format2
|
|
43515
44534
|
};
|
|
43516
44535
|
}
|
|
43517
44536
|
value = attribute;
|
|
43518
|
-
|
|
44537
|
+
size2 = attribute.length;
|
|
43519
44538
|
type = String(attribute.constructor.name).replace("Array", "");
|
|
43520
44539
|
isInteger = type.indexOf("nt") !== -1;
|
|
43521
44540
|
return {
|
|
43522
44541
|
[header]: "".concat(formatValue$1(value, {
|
|
43523
|
-
size,
|
|
44542
|
+
size: size2,
|
|
43524
44543
|
isInteger
|
|
43525
44544
|
}), " (constant)"),
|
|
43526
|
-
"Format ": "".concat(
|
|
44545
|
+
"Format ": "".concat(size2, "x").concat(type, " (constant)")
|
|
43527
44546
|
};
|
|
43528
44547
|
}
|
|
43529
44548
|
function getGLSLDeclaration$1(name2, accessor) {
|
|
43530
44549
|
const {
|
|
43531
44550
|
type,
|
|
43532
|
-
size
|
|
44551
|
+
size: size2
|
|
43533
44552
|
} = accessor;
|
|
43534
|
-
const typeAndName = getCompositeGLType(type,
|
|
44553
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43535
44554
|
return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
|
|
43536
44555
|
}
|
|
43537
44556
|
function getDebugTableForProgramConfiguration(config2) {
|
|
@@ -43558,9 +44577,9 @@ function getDebugTableForProgramConfiguration(config2) {
|
|
|
43558
44577
|
function getGLSLDeclaration(attributeInfo) {
|
|
43559
44578
|
const {
|
|
43560
44579
|
type,
|
|
43561
|
-
size
|
|
44580
|
+
size: size2
|
|
43562
44581
|
} = attributeInfo.accessor;
|
|
43563
|
-
const typeAndName = getCompositeGLType(type,
|
|
44582
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43564
44583
|
if (typeAndName) {
|
|
43565
44584
|
return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
|
|
43566
44585
|
}
|
|
@@ -50182,11 +51201,11 @@ class Geometry {
|
|
|
50182
51201
|
const attribute = attributes[attributeName];
|
|
50183
51202
|
const {
|
|
50184
51203
|
value,
|
|
50185
|
-
size,
|
|
51204
|
+
size: size2,
|
|
50186
51205
|
constant: constant2
|
|
50187
51206
|
} = attribute;
|
|
50188
|
-
if (!constant2 && value &&
|
|
50189
|
-
vertexCount = Math.min(vertexCount, value.length /
|
|
51207
|
+
if (!constant2 && value && size2 >= 1) {
|
|
51208
|
+
vertexCount = Math.min(vertexCount, value.length / size2);
|
|
50190
51209
|
}
|
|
50191
51210
|
}
|
|
50192
51211
|
assert$8(Number.isFinite(vertexCount));
|
|
@@ -50564,20 +51583,20 @@ function unpackIndexedGeometry(geometry2) {
|
|
|
50564
51583
|
const {
|
|
50565
51584
|
constant: constant2,
|
|
50566
51585
|
value,
|
|
50567
|
-
size
|
|
51586
|
+
size: size2
|
|
50568
51587
|
} = attribute;
|
|
50569
|
-
if (constant2 || !
|
|
51588
|
+
if (constant2 || !size2) {
|
|
50570
51589
|
continue;
|
|
50571
51590
|
}
|
|
50572
|
-
const unpackedValue = new value.constructor(vertexCount *
|
|
51591
|
+
const unpackedValue = new value.constructor(vertexCount * size2);
|
|
50573
51592
|
for (let x = 0; x < vertexCount; ++x) {
|
|
50574
51593
|
const index2 = indices.value[x];
|
|
50575
|
-
for (let i2 = 0; i2 <
|
|
50576
|
-
unpackedValue[x *
|
|
51594
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
51595
|
+
unpackedValue[x * size2 + i2] = value[index2 * size2 + i2];
|
|
50577
51596
|
}
|
|
50578
51597
|
}
|
|
50579
51598
|
unpackedAttributes[attributeName] = {
|
|
50580
|
-
size,
|
|
51599
|
+
size: size2,
|
|
50581
51600
|
value: unpackedValue
|
|
50582
51601
|
};
|
|
50583
51602
|
}
|
|
@@ -51498,11 +52517,11 @@ function fitBounds(options) {
|
|
|
51498
52517
|
const padding2 = getPaddingObject(options.padding);
|
|
51499
52518
|
const nw = lngLatToWorld([west, clamp$1(north, -85.051129, MAX_LATITUDE)]);
|
|
51500
52519
|
const se = lngLatToWorld([east, clamp$1(south, -85.051129, MAX_LATITUDE)]);
|
|
51501
|
-
const
|
|
52520
|
+
const size2 = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
|
|
51502
52521
|
const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
|
|
51503
52522
|
assert$5(targetSize[0] > 0 && targetSize[1] > 0);
|
|
51504
|
-
const scaleX2 = targetSize[0] /
|
|
51505
|
-
const scaleY2 = targetSize[1] /
|
|
52523
|
+
const scaleX2 = targetSize[0] / size2[0];
|
|
52524
|
+
const scaleY2 = targetSize[1] / size2[1];
|
|
51506
52525
|
const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
|
|
51507
52526
|
const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
|
|
51508
52527
|
const center2 = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
|
|
@@ -52621,7 +53640,7 @@ class TypedArrayManager {
|
|
|
52621
53640
|
Object.assign(this.opts, options);
|
|
52622
53641
|
}
|
|
52623
53642
|
allocate(typedArray, count2, {
|
|
52624
|
-
size = 1,
|
|
53643
|
+
size: size2 = 1,
|
|
52625
53644
|
type,
|
|
52626
53645
|
padding: padding2 = 0,
|
|
52627
53646
|
copy: copy2 = false,
|
|
@@ -52629,7 +53648,7 @@ class TypedArrayManager {
|
|
|
52629
53648
|
maxCount
|
|
52630
53649
|
}) {
|
|
52631
53650
|
const Type2 = type || typedArray && typedArray.constructor || Float32Array;
|
|
52632
|
-
const newSize = count2 *
|
|
53651
|
+
const newSize = count2 * size2 + padding2;
|
|
52633
53652
|
if (ArrayBuffer.isView(typedArray)) {
|
|
52634
53653
|
if (newSize <= typedArray.length) {
|
|
52635
53654
|
return typedArray;
|
|
@@ -52640,7 +53659,7 @@ class TypedArrayManager {
|
|
|
52640
53659
|
}
|
|
52641
53660
|
let maxSize = Infinity;
|
|
52642
53661
|
if (maxCount) {
|
|
52643
|
-
maxSize = maxCount *
|
|
53662
|
+
maxSize = maxCount * size2 + padding2;
|
|
52644
53663
|
}
|
|
52645
53664
|
const newArray = this._allocate(Type2, newSize, initialize, maxSize);
|
|
52646
53665
|
if (typedArray && copy2) {
|
|
@@ -52654,8 +53673,8 @@ class TypedArrayManager {
|
|
|
52654
53673
|
release(typedArray) {
|
|
52655
53674
|
this._release(typedArray);
|
|
52656
53675
|
}
|
|
52657
|
-
_allocate(Type2,
|
|
52658
|
-
let sizeToAllocate = Math.max(Math.ceil(
|
|
53676
|
+
_allocate(Type2, size2, initialize, maxSize) {
|
|
53677
|
+
let sizeToAllocate = Math.max(Math.ceil(size2 * this.opts.overAlloc), 1);
|
|
52659
53678
|
if (sizeToAllocate > maxSize) {
|
|
52660
53679
|
sizeToAllocate = maxSize;
|
|
52661
53680
|
}
|
|
@@ -52729,26 +53748,26 @@ function fp64LowPart(x) {
|
|
|
52729
53748
|
let scratchArray;
|
|
52730
53749
|
function toDoublePrecisionArray(typedArray, options) {
|
|
52731
53750
|
const {
|
|
52732
|
-
size = 1,
|
|
53751
|
+
size: size2 = 1,
|
|
52733
53752
|
startIndex = 0
|
|
52734
53753
|
} = options;
|
|
52735
53754
|
const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
|
|
52736
|
-
const count2 = (endIndex - startIndex) /
|
|
53755
|
+
const count2 = (endIndex - startIndex) / size2;
|
|
52737
53756
|
scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
|
|
52738
53757
|
type: Float32Array,
|
|
52739
|
-
size:
|
|
53758
|
+
size: size2 * 2
|
|
52740
53759
|
});
|
|
52741
53760
|
let sourceIndex = startIndex;
|
|
52742
53761
|
let targetIndex = 0;
|
|
52743
53762
|
while (sourceIndex < endIndex) {
|
|
52744
|
-
for (let j = 0; j <
|
|
53763
|
+
for (let j = 0; j < size2; j++) {
|
|
52745
53764
|
const value = typedArray[sourceIndex++];
|
|
52746
53765
|
scratchArray[targetIndex + j] = value;
|
|
52747
|
-
scratchArray[targetIndex + j +
|
|
53766
|
+
scratchArray[targetIndex + j + size2] = fp64LowPart(value);
|
|
52748
53767
|
}
|
|
52749
|
-
targetIndex +=
|
|
53768
|
+
targetIndex += size2 * 2;
|
|
52750
53769
|
}
|
|
52751
|
-
return scratchArray.subarray(0, count2 *
|
|
53770
|
+
return scratchArray.subarray(0, count2 * size2 * 2);
|
|
52752
53771
|
}
|
|
52753
53772
|
const DEGREES_TO_RADIANS$4 = Math.PI / 180;
|
|
52754
53773
|
const IDENTITY = createMat4();
|
|
@@ -56407,15 +57426,15 @@ function getMaskViewport({
|
|
|
56407
57426
|
});
|
|
56408
57427
|
}
|
|
56409
57428
|
function _doubleBounds(bounds2) {
|
|
56410
|
-
const
|
|
57429
|
+
const size2 = {
|
|
56411
57430
|
x: bounds2[2] - bounds2[0],
|
|
56412
57431
|
y: bounds2[3] - bounds2[1]
|
|
56413
57432
|
};
|
|
56414
57433
|
const center2 = {
|
|
56415
|
-
x: bounds2[0] + 0.5 *
|
|
56416
|
-
y: bounds2[1] + 0.5 *
|
|
57434
|
+
x: bounds2[0] + 0.5 * size2.x,
|
|
57435
|
+
y: bounds2[1] + 0.5 * size2.y
|
|
56417
57436
|
};
|
|
56418
|
-
return [center2.x -
|
|
57437
|
+
return [center2.x - size2.x, center2.y - size2.y, center2.x + size2.x, center2.y + size2.y];
|
|
56419
57438
|
}
|
|
56420
57439
|
class MaskEffect {
|
|
56421
57440
|
constructor() {
|
|
@@ -60799,13 +61818,13 @@ class ShaderAttribute {
|
|
|
60799
61818
|
value
|
|
60800
61819
|
} = this.source;
|
|
60801
61820
|
const {
|
|
60802
|
-
size
|
|
61821
|
+
size: size2
|
|
60803
61822
|
} = accessor;
|
|
60804
61823
|
let constantValue = value;
|
|
60805
|
-
if (value && value.length !==
|
|
60806
|
-
constantValue = new Float32Array(
|
|
61824
|
+
if (value && value.length !== size2) {
|
|
61825
|
+
constantValue = new Float32Array(size2);
|
|
60807
61826
|
const index2 = accessor.elementOffset || 0;
|
|
60808
|
-
for (let i2 = 0; i2 <
|
|
61827
|
+
for (let i2 = 0; i2 < size2; ++i2) {
|
|
60809
61828
|
constantValue[i2] = value[index2 + i2];
|
|
60810
61829
|
}
|
|
60811
61830
|
}
|
|
@@ -61008,14 +62027,14 @@ class DataColumn {
|
|
|
61008
62027
|
const {
|
|
61009
62028
|
value,
|
|
61010
62029
|
numInstances,
|
|
61011
|
-
size
|
|
62030
|
+
size: size2
|
|
61012
62031
|
} = this;
|
|
61013
|
-
const len2 = numInstances *
|
|
62032
|
+
const len2 = numInstances * size2;
|
|
61014
62033
|
if (value && len2 && value.length >= len2) {
|
|
61015
|
-
const min = new Array(
|
|
61016
|
-
const max2 = new Array(
|
|
62034
|
+
const min = new Array(size2).fill(Infinity);
|
|
62035
|
+
const max2 = new Array(size2).fill(-Infinity);
|
|
61017
62036
|
for (let i2 = 0; i2 < len2; ) {
|
|
61018
|
-
for (let j = 0; j <
|
|
62037
|
+
for (let j = 0; j < size2; j++) {
|
|
61019
62038
|
const v = value[i2++];
|
|
61020
62039
|
if (v < min[j]) min[j] = v;
|
|
61021
62040
|
if (v > max2[j]) max2[j] = v;
|
|
@@ -61181,7 +62200,7 @@ class DataColumn {
|
|
|
61181
62200
|
_normalizeValue(value, out, start) {
|
|
61182
62201
|
const {
|
|
61183
62202
|
defaultValue: defaultValue2,
|
|
61184
|
-
size
|
|
62203
|
+
size: size2
|
|
61185
62204
|
} = this.settings;
|
|
61186
62205
|
if (Number.isFinite(value)) {
|
|
61187
62206
|
out[start] = value;
|
|
@@ -61191,7 +62210,7 @@ class DataColumn {
|
|
|
61191
62210
|
out[start] = defaultValue2[0];
|
|
61192
62211
|
return out;
|
|
61193
62212
|
}
|
|
61194
|
-
switch (
|
|
62213
|
+
switch (size2) {
|
|
61195
62214
|
case 4:
|
|
61196
62215
|
out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
|
|
61197
62216
|
case 3:
|
|
@@ -61202,7 +62221,7 @@ class DataColumn {
|
|
|
61202
62221
|
out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
|
|
61203
62222
|
break;
|
|
61204
62223
|
default:
|
|
61205
|
-
let i2 =
|
|
62224
|
+
let i2 = size2;
|
|
61206
62225
|
while (--i2 >= 0) {
|
|
61207
62226
|
out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
|
|
61208
62227
|
}
|
|
@@ -61214,9 +62233,9 @@ class DataColumn {
|
|
|
61214
62233
|
return false;
|
|
61215
62234
|
}
|
|
61216
62235
|
const {
|
|
61217
|
-
size
|
|
62236
|
+
size: size2
|
|
61218
62237
|
} = this;
|
|
61219
|
-
for (let i2 = 0; i2 <
|
|
62238
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
61220
62239
|
if (value1[i2] !== value2[i2]) {
|
|
61221
62240
|
return false;
|
|
61222
62241
|
}
|
|
@@ -61255,14 +62274,14 @@ function isAsyncIterable(data) {
|
|
|
61255
62274
|
}
|
|
61256
62275
|
function getAccessorFromBuffer(typedArray, options) {
|
|
61257
62276
|
const {
|
|
61258
|
-
size,
|
|
62277
|
+
size: size2,
|
|
61259
62278
|
stride,
|
|
61260
62279
|
offset: offset2,
|
|
61261
62280
|
startIndices,
|
|
61262
62281
|
nested: nested2
|
|
61263
62282
|
} = options;
|
|
61264
62283
|
const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
|
|
61265
|
-
const elementStride = stride ? stride / bytesPerElement :
|
|
62284
|
+
const elementStride = stride ? stride / bytesPerElement : size2;
|
|
61266
62285
|
const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
|
|
61267
62286
|
const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
|
|
61268
62287
|
return (_, {
|
|
@@ -61271,7 +62290,7 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61271
62290
|
}) => {
|
|
61272
62291
|
if (!startIndices) {
|
|
61273
62292
|
const sourceIndex = index2 * elementStride + elementOffset;
|
|
61274
|
-
for (let j = 0; j <
|
|
62293
|
+
for (let j = 0; j < size2; j++) {
|
|
61275
62294
|
target[j] = typedArray[sourceIndex + j];
|
|
61276
62295
|
}
|
|
61277
62296
|
return target;
|
|
@@ -61283,20 +62302,20 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61283
62302
|
result = new Array(endIndex - startIndex);
|
|
61284
62303
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61285
62304
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61286
|
-
target = new Array(
|
|
61287
|
-
for (let j = 0; j <
|
|
62305
|
+
target = new Array(size2);
|
|
62306
|
+
for (let j = 0; j < size2; j++) {
|
|
61288
62307
|
target[j] = typedArray[sourceIndex + j];
|
|
61289
62308
|
}
|
|
61290
62309
|
result[i2 - startIndex] = target;
|
|
61291
62310
|
}
|
|
61292
|
-
} else if (elementStride ===
|
|
61293
|
-
result = typedArray.subarray(startIndex *
|
|
62311
|
+
} else if (elementStride === size2) {
|
|
62312
|
+
result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
|
|
61294
62313
|
} else {
|
|
61295
|
-
result = new typedArray.constructor((endIndex - startIndex) *
|
|
62314
|
+
result = new typedArray.constructor((endIndex - startIndex) * size2);
|
|
61296
62315
|
let targetIndex = 0;
|
|
61297
62316
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61298
62317
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61299
|
-
for (let j = 0; j <
|
|
62318
|
+
for (let j = 0; j < size2; j++) {
|
|
61300
62319
|
result[targetIndex++] = typedArray[sourceIndex + j];
|
|
61301
62320
|
}
|
|
61302
62321
|
}
|
|
@@ -61338,7 +62357,7 @@ function padArrayChunk(options) {
|
|
|
61338
62357
|
source,
|
|
61339
62358
|
target,
|
|
61340
62359
|
start = 0,
|
|
61341
|
-
size,
|
|
62360
|
+
size: size2,
|
|
61342
62361
|
getData
|
|
61343
62362
|
} = options;
|
|
61344
62363
|
const end = options.end || target.length;
|
|
@@ -61355,7 +62374,7 @@ function padArrayChunk(options) {
|
|
|
61355
62374
|
let i2 = sourceLength;
|
|
61356
62375
|
while (i2 < targetLength) {
|
|
61357
62376
|
const datum2 = getData(i2, source);
|
|
61358
|
-
for (let j = 0; j <
|
|
62377
|
+
for (let j = 0; j < size2; j++) {
|
|
61359
62378
|
target[start + i2] = datum2[j] || 0;
|
|
61360
62379
|
i2++;
|
|
61361
62380
|
}
|
|
@@ -61364,7 +62383,7 @@ function padArrayChunk(options) {
|
|
|
61364
62383
|
function padArray({
|
|
61365
62384
|
source,
|
|
61366
62385
|
target,
|
|
61367
|
-
size,
|
|
62386
|
+
size: size2,
|
|
61368
62387
|
getData,
|
|
61369
62388
|
sourceStartIndices,
|
|
61370
62389
|
targetStartIndices
|
|
@@ -61373,7 +62392,7 @@ function padArray({
|
|
|
61373
62392
|
padArrayChunk({
|
|
61374
62393
|
source,
|
|
61375
62394
|
target,
|
|
61376
|
-
size,
|
|
62395
|
+
size: size2,
|
|
61377
62396
|
getData
|
|
61378
62397
|
});
|
|
61379
62398
|
return target;
|
|
@@ -61383,14 +62402,14 @@ function padArray({
|
|
|
61383
62402
|
const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
|
|
61384
62403
|
const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
|
|
61385
62404
|
for (let i2 = 1; i2 < n2; i2++) {
|
|
61386
|
-
const nextSourceIndex = sourceStartIndices[i2] *
|
|
61387
|
-
const nextTargetIndex = targetStartIndices[i2] *
|
|
62405
|
+
const nextSourceIndex = sourceStartIndices[i2] * size2;
|
|
62406
|
+
const nextTargetIndex = targetStartIndices[i2] * size2;
|
|
61388
62407
|
padArrayChunk({
|
|
61389
62408
|
source: source.subarray(sourceIndex, nextSourceIndex),
|
|
61390
62409
|
target,
|
|
61391
62410
|
start: targetIndex,
|
|
61392
62411
|
end: nextTargetIndex,
|
|
61393
|
-
size,
|
|
62412
|
+
size: size2,
|
|
61394
62413
|
getData: getChunkData
|
|
61395
62414
|
});
|
|
61396
62415
|
sourceIndex = nextSourceIndex;
|
|
@@ -61401,7 +62420,7 @@ function padArray({
|
|
|
61401
62420
|
source: [],
|
|
61402
62421
|
target,
|
|
61403
62422
|
start: targetIndex,
|
|
61404
|
-
size,
|
|
62423
|
+
size: size2,
|
|
61405
62424
|
getData: getChunkData
|
|
61406
62425
|
});
|
|
61407
62426
|
}
|
|
@@ -61446,8 +62465,8 @@ function getSourceBufferAttribute(gl, attribute) {
|
|
|
61446
62465
|
}
|
|
61447
62466
|
return attribute.value;
|
|
61448
62467
|
}
|
|
61449
|
-
function getAttributeTypeFromSize(
|
|
61450
|
-
switch (
|
|
62468
|
+
function getAttributeTypeFromSize(size2) {
|
|
62469
|
+
switch (size2) {
|
|
61451
62470
|
case 1:
|
|
61452
62471
|
return "float";
|
|
61453
62472
|
case 2:
|
|
@@ -61457,7 +62476,7 @@ function getAttributeTypeFromSize(size) {
|
|
|
61457
62476
|
case 4:
|
|
61458
62477
|
return "vec4";
|
|
61459
62478
|
default:
|
|
61460
|
-
throw new Error('No defined attribute type for size "'.concat(
|
|
62479
|
+
throw new Error('No defined attribute type for size "'.concat(size2, '"'));
|
|
61461
62480
|
}
|
|
61462
62481
|
}
|
|
61463
62482
|
function cycleBuffers(buffers) {
|
|
@@ -61468,10 +62487,10 @@ function getAttributeBufferLength(attribute, numInstances) {
|
|
|
61468
62487
|
doublePrecision,
|
|
61469
62488
|
settings,
|
|
61470
62489
|
value,
|
|
61471
|
-
size
|
|
62490
|
+
size: size2
|
|
61472
62491
|
} = attribute;
|
|
61473
62492
|
const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
|
|
61474
|
-
return (settings.noAlloc ? value.length : numInstances *
|
|
62493
|
+
return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
|
|
61475
62494
|
}
|
|
61476
62495
|
function padBuffer({
|
|
61477
62496
|
buffer,
|
|
@@ -61482,7 +62501,7 @@ function padBuffer({
|
|
|
61482
62501
|
getData = (x) => x
|
|
61483
62502
|
}) {
|
|
61484
62503
|
const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
|
|
61485
|
-
const
|
|
62504
|
+
const size2 = attribute.size * precisionMultiplier;
|
|
61486
62505
|
const byteOffset = attribute.byteOffset;
|
|
61487
62506
|
const toStartIndices = attribute.startIndices;
|
|
61488
62507
|
const hasStartIndices = fromStartIndices && toStartIndices;
|
|
@@ -61498,7 +62517,7 @@ function padBuffer({
|
|
|
61498
62517
|
const getter = getData;
|
|
61499
62518
|
getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
|
|
61500
62519
|
}
|
|
61501
|
-
const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 +
|
|
62520
|
+
const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size2), chunk);
|
|
61502
62521
|
const source = buffer.getData({
|
|
61503
62522
|
length: fromLength
|
|
61504
62523
|
});
|
|
@@ -61508,7 +62527,7 @@ function padBuffer({
|
|
|
61508
62527
|
target: data,
|
|
61509
62528
|
sourceStartIndices: fromStartIndices,
|
|
61510
62529
|
targetStartIndices: toStartIndices,
|
|
61511
|
-
size,
|
|
62530
|
+
size: size2,
|
|
61512
62531
|
getData: getMissingData
|
|
61513
62532
|
});
|
|
61514
62533
|
if (buffer.byteLength < data.byteLength + byteOffset) {
|
|
@@ -61764,7 +62783,7 @@ class Attribute extends DataColumn {
|
|
|
61764
62783
|
settings,
|
|
61765
62784
|
state,
|
|
61766
62785
|
value,
|
|
61767
|
-
size,
|
|
62786
|
+
size: size2,
|
|
61768
62787
|
startIndices
|
|
61769
62788
|
} = attribute;
|
|
61770
62789
|
const {
|
|
@@ -61790,9 +62809,9 @@ class Attribute extends DataColumn {
|
|
|
61790
62809
|
let startIndex = i2;
|
|
61791
62810
|
for (const item of objectValue) {
|
|
61792
62811
|
attribute._normalizeValue(item, value, startIndex);
|
|
61793
|
-
startIndex +=
|
|
62812
|
+
startIndex += size2;
|
|
61794
62813
|
}
|
|
61795
|
-
} else if (objectValue && objectValue.length >
|
|
62814
|
+
} else if (objectValue && objectValue.length > size2) {
|
|
61796
62815
|
value.set(objectValue, i2);
|
|
61797
62816
|
} else {
|
|
61798
62817
|
attribute._normalizeValue(objectValue, objectInfo.target, 0);
|
|
@@ -61803,10 +62822,10 @@ class Attribute extends DataColumn {
|
|
|
61803
62822
|
count: numVertices
|
|
61804
62823
|
});
|
|
61805
62824
|
}
|
|
61806
|
-
i2 += numVertices *
|
|
62825
|
+
i2 += numVertices * size2;
|
|
61807
62826
|
} else {
|
|
61808
62827
|
attribute._normalizeValue(objectValue, value, i2);
|
|
61809
|
-
i2 +=
|
|
62828
|
+
i2 += size2;
|
|
61810
62829
|
}
|
|
61811
62830
|
}
|
|
61812
62831
|
}
|
|
@@ -67004,14 +68023,14 @@ function reversePolygon(points, options) {
|
|
|
67004
68023
|
const {
|
|
67005
68024
|
start = 0,
|
|
67006
68025
|
end = points.length,
|
|
67007
|
-
size = 2
|
|
68026
|
+
size: size2 = 2
|
|
67008
68027
|
} = options;
|
|
67009
|
-
const numPoints = (end - start) /
|
|
68028
|
+
const numPoints = (end - start) / size2;
|
|
67010
68029
|
const numSwaps = Math.floor(numPoints / 2);
|
|
67011
68030
|
for (let i2 = 0; i2 < numSwaps; ++i2) {
|
|
67012
|
-
const b1 = start + i2 *
|
|
67013
|
-
const b2 = start + (numPoints - 1 - i2) *
|
|
67014
|
-
for (let j = 0; j <
|
|
68031
|
+
const b1 = start + i2 * size2;
|
|
68032
|
+
const b2 = start + (numPoints - 1 - i2) * size2;
|
|
68033
|
+
for (let j = 0; j < size2; ++j) {
|
|
67015
68034
|
const tmp = points[b1 + j];
|
|
67016
68035
|
points[b1 + j] = points[b2 + j];
|
|
67017
68036
|
points[b2 + j] = tmp;
|
|
@@ -67019,12 +68038,12 @@ function reversePolygon(points, options) {
|
|
|
67019
68038
|
}
|
|
67020
68039
|
}
|
|
67021
68040
|
function push(target, source) {
|
|
67022
|
-
const
|
|
68041
|
+
const size2 = source.length;
|
|
67023
68042
|
const startIndex = target.length;
|
|
67024
68043
|
if (startIndex > 0) {
|
|
67025
68044
|
let isDuplicate = true;
|
|
67026
|
-
for (let i2 = 0; i2 <
|
|
67027
|
-
if (target[startIndex -
|
|
68045
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68046
|
+
if (target[startIndex - size2 + i2] !== source[i2]) {
|
|
67028
68047
|
isDuplicate = false;
|
|
67029
68048
|
break;
|
|
67030
68049
|
}
|
|
@@ -67033,20 +68052,20 @@ function push(target, source) {
|
|
|
67033
68052
|
return false;
|
|
67034
68053
|
}
|
|
67035
68054
|
}
|
|
67036
|
-
for (let i2 = 0; i2 <
|
|
68055
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67037
68056
|
target[startIndex + i2] = source[i2];
|
|
67038
68057
|
}
|
|
67039
68058
|
return true;
|
|
67040
68059
|
}
|
|
67041
68060
|
function copy(target, source) {
|
|
67042
|
-
const
|
|
67043
|
-
for (let i2 = 0; i2 <
|
|
68061
|
+
const size2 = source.length;
|
|
68062
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67044
68063
|
target[i2] = source[i2];
|
|
67045
68064
|
}
|
|
67046
68065
|
}
|
|
67047
|
-
function getPointAtIndex(positions, index2,
|
|
67048
|
-
const startI = offset2 + index2 *
|
|
67049
|
-
for (let i2 = 0; i2 <
|
|
68066
|
+
function getPointAtIndex(positions, index2, size2, offset2, out = []) {
|
|
68067
|
+
const startI = offset2 + index2 * size2;
|
|
68068
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67050
68069
|
out[i2] = positions[startI + i2];
|
|
67051
68070
|
}
|
|
67052
68071
|
return out;
|
|
@@ -67084,24 +68103,24 @@ function bitCode(p, bbox2) {
|
|
|
67084
68103
|
}
|
|
67085
68104
|
function cutPolylineByGrid(positions, options) {
|
|
67086
68105
|
const {
|
|
67087
|
-
size = 2,
|
|
68106
|
+
size: size2 = 2,
|
|
67088
68107
|
broken = false,
|
|
67089
68108
|
gridResolution = 10,
|
|
67090
68109
|
gridOffset = [0, 0],
|
|
67091
68110
|
startIndex = 0,
|
|
67092
68111
|
endIndex = positions.length
|
|
67093
68112
|
} = options || {};
|
|
67094
|
-
const numPoints = (endIndex - startIndex) /
|
|
68113
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67095
68114
|
let part = [];
|
|
67096
68115
|
const result = [part];
|
|
67097
|
-
const a2 = getPointAtIndex(positions, 0,
|
|
68116
|
+
const a2 = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67098
68117
|
let b;
|
|
67099
68118
|
let codeB;
|
|
67100
68119
|
const cell = getGridCell(a2, gridResolution, gridOffset, []);
|
|
67101
68120
|
const scratchPoint = [];
|
|
67102
68121
|
push(part, a2);
|
|
67103
68122
|
for (let i2 = 1; i2 < numPoints; i2++) {
|
|
67104
|
-
b = getPointAtIndex(positions, i2,
|
|
68123
|
+
b = getPointAtIndex(positions, i2, size2, startIndex, b);
|
|
67105
68124
|
codeB = bitCode(b, cell);
|
|
67106
68125
|
while (codeB) {
|
|
67107
68126
|
intersect(a2, b, codeB, cell, scratchPoint);
|
|
@@ -67113,7 +68132,7 @@ function cutPolylineByGrid(positions, options) {
|
|
|
67113
68132
|
push(part, scratchPoint);
|
|
67114
68133
|
copy(a2, scratchPoint);
|
|
67115
68134
|
moveToNeighborCell(cell, gridResolution, codeB);
|
|
67116
|
-
if (broken && part.length >
|
|
68135
|
+
if (broken && part.length > size2) {
|
|
67117
68136
|
part = [];
|
|
67118
68137
|
result.push(part);
|
|
67119
68138
|
push(part, a2);
|
|
@@ -67138,7 +68157,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67138
68157
|
return [];
|
|
67139
68158
|
}
|
|
67140
68159
|
const {
|
|
67141
|
-
size = 2,
|
|
68160
|
+
size: size2 = 2,
|
|
67142
68161
|
gridResolution = 10,
|
|
67143
68162
|
gridOffset = [0, 0],
|
|
67144
68163
|
edgeTypes = false
|
|
@@ -67146,7 +68165,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67146
68165
|
const result = [];
|
|
67147
68166
|
const queue = [{
|
|
67148
68167
|
pos: positions,
|
|
67149
|
-
types: edgeTypes ? new Array(positions.length /
|
|
68168
|
+
types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
|
|
67150
68169
|
holes: holeIndices || []
|
|
67151
68170
|
}];
|
|
67152
68171
|
const bbox2 = [[], []];
|
|
@@ -67157,11 +68176,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67157
68176
|
types,
|
|
67158
68177
|
holes
|
|
67159
68178
|
} = queue.shift();
|
|
67160
|
-
getBoundingBox$2(pos,
|
|
68179
|
+
getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
|
|
67161
68180
|
cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
|
|
67162
68181
|
const code = bitCode(bbox2[1], cell);
|
|
67163
68182
|
if (code) {
|
|
67164
|
-
let parts = bisectPolygon(pos, types,
|
|
68183
|
+
let parts = bisectPolygon(pos, types, size2, 0, holes[0] || pos.length, cell, code);
|
|
67165
68184
|
const polygonLow = {
|
|
67166
68185
|
pos: parts[0].pos,
|
|
67167
68186
|
types: parts[0].types,
|
|
@@ -67174,7 +68193,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67174
68193
|
};
|
|
67175
68194
|
queue.push(polygonLow, polygonHigh);
|
|
67176
68195
|
for (let i2 = 0; i2 < holes.length; i2++) {
|
|
67177
|
-
parts = bisectPolygon(pos, types,
|
|
68196
|
+
parts = bisectPolygon(pos, types, size2, holes[i2], holes[i2 + 1] || pos.length, cell, code);
|
|
67178
68197
|
if (parts[0]) {
|
|
67179
68198
|
polygonLow.holes.push(polygonLow.pos.length);
|
|
67180
68199
|
polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
|
|
@@ -67205,8 +68224,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67205
68224
|
}
|
|
67206
68225
|
return result;
|
|
67207
68226
|
}
|
|
67208
|
-
function bisectPolygon(positions, edgeTypes,
|
|
67209
|
-
const numPoints = (endIndex - startIndex) /
|
|
68227
|
+
function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
|
|
68228
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67210
68229
|
const resultLow = [];
|
|
67211
68230
|
const resultHigh = [];
|
|
67212
68231
|
const typesLow = [];
|
|
@@ -67215,15 +68234,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
|
|
|
67215
68234
|
let p;
|
|
67216
68235
|
let side;
|
|
67217
68236
|
let type;
|
|
67218
|
-
const prev2 = getPointAtIndex(positions, numPoints - 1,
|
|
68237
|
+
const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
|
|
67219
68238
|
let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
|
|
67220
68239
|
let prevType = edgeTypes && edgeTypes[numPoints - 1];
|
|
67221
68240
|
let lowPointCount = 0;
|
|
67222
68241
|
let highPointCount = 0;
|
|
67223
68242
|
for (let i2 = 0; i2 < numPoints; i2++) {
|
|
67224
|
-
p = getPointAtIndex(positions, i2,
|
|
68243
|
+
p = getPointAtIndex(positions, i2, size2, startIndex, p);
|
|
67225
68244
|
side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
|
|
67226
|
-
type = edgeTypes && edgeTypes[startIndex /
|
|
68245
|
+
type = edgeTypes && edgeTypes[startIndex / size2 + i2];
|
|
67227
68246
|
if (side && prevSide && prevSide !== side) {
|
|
67228
68247
|
intersect(prev2, p, edge, bbox2, scratchPoint);
|
|
67229
68248
|
push(resultLow, scratchPoint) && typesLow.push(prevType);
|
|
@@ -67277,12 +68296,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
|
|
|
67277
68296
|
cell[2] -= gridResolution;
|
|
67278
68297
|
}
|
|
67279
68298
|
}
|
|
67280
|
-
function getBoundingBox$2(positions,
|
|
68299
|
+
function getBoundingBox$2(positions, size2, endIndex, out) {
|
|
67281
68300
|
let minX = Infinity;
|
|
67282
68301
|
let maxX = -Infinity;
|
|
67283
68302
|
let minY = Infinity;
|
|
67284
68303
|
let maxY = -Infinity;
|
|
67285
|
-
for (let i2 = 0; i2 < endIndex; i2 +=
|
|
68304
|
+
for (let i2 = 0; i2 < endIndex; i2 += size2) {
|
|
67286
68305
|
const x = positions[i2];
|
|
67287
68306
|
const y = positions[i2 + 1];
|
|
67288
68307
|
minX = x < minX ? x : minX;
|
|
@@ -67299,29 +68318,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
|
|
|
67299
68318
|
const DEFAULT_MAX_LATITUDE = 85.051129;
|
|
67300
68319
|
function cutPolylineByMercatorBounds(positions, options) {
|
|
67301
68320
|
const {
|
|
67302
|
-
size = 2,
|
|
68321
|
+
size: size2 = 2,
|
|
67303
68322
|
startIndex = 0,
|
|
67304
68323
|
endIndex = positions.length,
|
|
67305
68324
|
normalize: normalize2 = true
|
|
67306
68325
|
} = options || {};
|
|
67307
68326
|
const newPositions = positions.slice(startIndex, endIndex);
|
|
67308
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
68327
|
+
wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
|
|
67309
68328
|
const parts = cutPolylineByGrid(newPositions, {
|
|
67310
|
-
size,
|
|
68329
|
+
size: size2,
|
|
67311
68330
|
broken: true,
|
|
67312
68331
|
gridResolution: 360,
|
|
67313
68332
|
gridOffset: [-180, -180]
|
|
67314
68333
|
});
|
|
67315
68334
|
if (normalize2) {
|
|
67316
68335
|
for (const part of parts) {
|
|
67317
|
-
shiftLongitudesIntoRange(part,
|
|
68336
|
+
shiftLongitudesIntoRange(part, size2);
|
|
67318
68337
|
}
|
|
67319
68338
|
}
|
|
67320
68339
|
return parts;
|
|
67321
68340
|
}
|
|
67322
68341
|
function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
67323
68342
|
const {
|
|
67324
|
-
size = 2,
|
|
68343
|
+
size: size2 = 2,
|
|
67325
68344
|
normalize: normalize2 = true,
|
|
67326
68345
|
edgeTypes = false
|
|
67327
68346
|
} = options || {};
|
|
@@ -67333,36 +68352,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
|
67333
68352
|
for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
|
|
67334
68353
|
const srcEndIndex = holeIndices[ringIndex] || positions.length;
|
|
67335
68354
|
const targetStartIndex = targetIndex;
|
|
67336
|
-
const splitIndex = findSplitIndex(positions,
|
|
68355
|
+
const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
|
|
67337
68356
|
for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
|
|
67338
68357
|
newPositions[targetIndex++] = positions[i2];
|
|
67339
68358
|
}
|
|
67340
68359
|
for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
|
|
67341
68360
|
newPositions[targetIndex++] = positions[i2];
|
|
67342
68361
|
}
|
|
67343
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
67344
|
-
insertPoleVertices(newPositions,
|
|
68362
|
+
wrapLongitudesForShortestPath(newPositions, size2, targetStartIndex, targetIndex);
|
|
68363
|
+
insertPoleVertices(newPositions, size2, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
|
|
67345
68364
|
srcStartIndex = srcEndIndex;
|
|
67346
68365
|
newHoleIndices[ringIndex] = targetIndex;
|
|
67347
68366
|
}
|
|
67348
68367
|
newHoleIndices.pop();
|
|
67349
68368
|
const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
|
|
67350
|
-
size,
|
|
68369
|
+
size: size2,
|
|
67351
68370
|
gridResolution: 360,
|
|
67352
68371
|
gridOffset: [-180, -180],
|
|
67353
68372
|
edgeTypes
|
|
67354
68373
|
});
|
|
67355
68374
|
if (normalize2) {
|
|
67356
68375
|
for (const part of parts) {
|
|
67357
|
-
shiftLongitudesIntoRange(part.positions,
|
|
68376
|
+
shiftLongitudesIntoRange(part.positions, size2);
|
|
67358
68377
|
}
|
|
67359
68378
|
}
|
|
67360
68379
|
return parts;
|
|
67361
68380
|
}
|
|
67362
|
-
function findSplitIndex(positions,
|
|
68381
|
+
function findSplitIndex(positions, size2, startIndex, endIndex) {
|
|
67363
68382
|
let maxLat = -1;
|
|
67364
68383
|
let pointIndex = -1;
|
|
67365
|
-
for (let i2 = startIndex + 1; i2 < endIndex; i2 +=
|
|
68384
|
+
for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
|
|
67366
68385
|
const lat = Math.abs(positions[i2]);
|
|
67367
68386
|
if (lat > maxLat) {
|
|
67368
68387
|
maxLat = lat;
|
|
@@ -67371,11 +68390,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
|
|
|
67371
68390
|
}
|
|
67372
68391
|
return pointIndex;
|
|
67373
68392
|
}
|
|
67374
|
-
function insertPoleVertices(positions,
|
|
68393
|
+
function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
|
|
67375
68394
|
const firstLng = positions[startIndex];
|
|
67376
|
-
const lastLng = positions[endIndex -
|
|
68395
|
+
const lastLng = positions[endIndex - size2];
|
|
67377
68396
|
if (Math.abs(firstLng - lastLng) > 180) {
|
|
67378
|
-
const p = getPointAtIndex(positions, 0,
|
|
68397
|
+
const p = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67379
68398
|
p[0] += Math.round((lastLng - firstLng) / 360) * 360;
|
|
67380
68399
|
push(positions, p);
|
|
67381
68400
|
p[1] = Math.sign(p[1]) * maxLatitude;
|
|
@@ -67384,10 +68403,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
|
|
|
67384
68403
|
push(positions, p);
|
|
67385
68404
|
}
|
|
67386
68405
|
}
|
|
67387
|
-
function wrapLongitudesForShortestPath(positions,
|
|
68406
|
+
function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
|
|
67388
68407
|
let prevLng = positions[0];
|
|
67389
68408
|
let lng;
|
|
67390
|
-
for (let i2 = startIndex; i2 < endIndex; i2 +=
|
|
68409
|
+
for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
|
|
67391
68410
|
lng = positions[i2];
|
|
67392
68411
|
const delta = lng - prevLng;
|
|
67393
68412
|
if (delta > 180 || delta < -180) {
|
|
@@ -67396,11 +68415,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
|
|
|
67396
68415
|
positions[i2] = prevLng = lng;
|
|
67397
68416
|
}
|
|
67398
68417
|
}
|
|
67399
|
-
function shiftLongitudesIntoRange(positions,
|
|
68418
|
+
function shiftLongitudesIntoRange(positions, size2) {
|
|
67400
68419
|
let refLng;
|
|
67401
|
-
const pointCount = positions.length /
|
|
68420
|
+
const pointCount = positions.length / size2;
|
|
67402
68421
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67403
|
-
refLng = positions[i2 *
|
|
68422
|
+
refLng = positions[i2 * size2];
|
|
67404
68423
|
if ((refLng + 180) % 360 !== 0) {
|
|
67405
68424
|
break;
|
|
67406
68425
|
}
|
|
@@ -67410,7 +68429,7 @@ function shiftLongitudesIntoRange(positions, size) {
|
|
|
67410
68429
|
return;
|
|
67411
68430
|
}
|
|
67412
68431
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67413
|
-
positions[i2 *
|
|
68432
|
+
positions[i2 * size2] += delta;
|
|
67414
68433
|
}
|
|
67415
68434
|
}
|
|
67416
68435
|
class ColumnGeometry extends Geometry {
|
|
@@ -67809,14 +68828,14 @@ class GridCellLayer extends ColumnLayer {
|
|
|
67809
68828
|
}
|
|
67810
68829
|
_defineProperty(GridCellLayer, "layerName", "GridCellLayer");
|
|
67811
68830
|
_defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
|
|
67812
|
-
function normalizePath(path,
|
|
68831
|
+
function normalizePath(path, size2, gridResolution, wrapLongitude) {
|
|
67813
68832
|
let flatPath;
|
|
67814
68833
|
if (Array.isArray(path[0])) {
|
|
67815
|
-
const length2 = path.length *
|
|
68834
|
+
const length2 = path.length * size2;
|
|
67816
68835
|
flatPath = new Array(length2);
|
|
67817
68836
|
for (let i2 = 0; i2 < path.length; i2++) {
|
|
67818
|
-
for (let j = 0; j <
|
|
67819
|
-
flatPath[i2 *
|
|
68837
|
+
for (let j = 0; j < size2; j++) {
|
|
68838
|
+
flatPath[i2 * size2 + j] = path[i2][j] || 0;
|
|
67820
68839
|
}
|
|
67821
68840
|
}
|
|
67822
68841
|
} else {
|
|
@@ -67824,13 +68843,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
|
67824
68843
|
}
|
|
67825
68844
|
if (gridResolution) {
|
|
67826
68845
|
return cutPolylineByGrid(flatPath, {
|
|
67827
|
-
size,
|
|
68846
|
+
size: size2,
|
|
67828
68847
|
gridResolution
|
|
67829
68848
|
});
|
|
67830
68849
|
}
|
|
67831
68850
|
if (wrapLongitude) {
|
|
67832
68851
|
return cutPolylineByMercatorBounds(flatPath, {
|
|
67833
|
-
size
|
|
68852
|
+
size: size2
|
|
67834
68853
|
});
|
|
67835
68854
|
}
|
|
67836
68855
|
return flatPath;
|
|
@@ -67873,11 +68892,11 @@ class PathTesselator extends Tesselator {
|
|
|
67873
68892
|
}
|
|
67874
68893
|
getGeometrySize(path) {
|
|
67875
68894
|
if (isCut$1(path)) {
|
|
67876
|
-
let
|
|
68895
|
+
let size2 = 0;
|
|
67877
68896
|
for (const subPath of path) {
|
|
67878
|
-
|
|
68897
|
+
size2 += this.getGeometrySize(subPath);
|
|
67879
68898
|
}
|
|
67880
|
-
return
|
|
68899
|
+
return size2;
|
|
67881
68900
|
}
|
|
67882
68901
|
const numPoints = this.getPathLength(path);
|
|
67883
68902
|
if (numPoints < 2) {
|
|
@@ -68685,34 +69704,34 @@ function isNestedRingClosed(simplePolygon) {
|
|
|
68685
69704
|
const p1 = simplePolygon[simplePolygon.length - 1];
|
|
68686
69705
|
return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
|
|
68687
69706
|
}
|
|
68688
|
-
function isFlatRingClosed(positions,
|
|
68689
|
-
for (let i2 = 0; i2 <
|
|
68690
|
-
if (positions[startIndex + i2] !== positions[endIndex -
|
|
69707
|
+
function isFlatRingClosed(positions, size2, startIndex, endIndex) {
|
|
69708
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
69709
|
+
if (positions[startIndex + i2] !== positions[endIndex - size2 + i2]) {
|
|
68691
69710
|
return false;
|
|
68692
69711
|
}
|
|
68693
69712
|
}
|
|
68694
69713
|
return true;
|
|
68695
69714
|
}
|
|
68696
|
-
function copyNestedRing(target, targetStartIndex, simplePolygon,
|
|
69715
|
+
function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
|
|
68697
69716
|
let targetIndex = targetStartIndex;
|
|
68698
69717
|
const len2 = simplePolygon.length;
|
|
68699
69718
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
68700
|
-
for (let j = 0; j <
|
|
69719
|
+
for (let j = 0; j < size2; j++) {
|
|
68701
69720
|
target[targetIndex++] = simplePolygon[i2][j] || 0;
|
|
68702
69721
|
}
|
|
68703
69722
|
}
|
|
68704
69723
|
if (!isNestedRingClosed(simplePolygon)) {
|
|
68705
|
-
for (let j = 0; j <
|
|
69724
|
+
for (let j = 0; j < size2; j++) {
|
|
68706
69725
|
target[targetIndex++] = simplePolygon[0][j] || 0;
|
|
68707
69726
|
}
|
|
68708
69727
|
}
|
|
68709
69728
|
windingOptions.start = targetStartIndex;
|
|
68710
69729
|
windingOptions.end = targetIndex;
|
|
68711
|
-
windingOptions.size =
|
|
69730
|
+
windingOptions.size = size2;
|
|
68712
69731
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68713
69732
|
return targetIndex;
|
|
68714
69733
|
}
|
|
68715
|
-
function copyFlatRing(target, targetStartIndex, positions,
|
|
69734
|
+
function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
|
|
68716
69735
|
srcEndIndex = srcEndIndex || positions.length;
|
|
68717
69736
|
const srcLength = srcEndIndex - srcStartIndex;
|
|
68718
69737
|
if (srcLength <= 0) {
|
|
@@ -68722,14 +69741,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
|
|
|
68722
69741
|
for (let i2 = 0; i2 < srcLength; i2++) {
|
|
68723
69742
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68724
69743
|
}
|
|
68725
|
-
if (!isFlatRingClosed(positions,
|
|
68726
|
-
for (let i2 = 0; i2 <
|
|
69744
|
+
if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
|
|
69745
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68727
69746
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68728
69747
|
}
|
|
68729
69748
|
}
|
|
68730
69749
|
windingOptions.start = targetStartIndex;
|
|
68731
69750
|
windingOptions.end = targetIndex;
|
|
68732
|
-
windingOptions.size =
|
|
69751
|
+
windingOptions.size = size2;
|
|
68733
69752
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68734
69753
|
return targetIndex;
|
|
68735
69754
|
}
|
|
@@ -68860,11 +69879,11 @@ class PolygonTesselator extends Tesselator {
|
|
|
68860
69879
|
}
|
|
68861
69880
|
getGeometrySize(polygon2) {
|
|
68862
69881
|
if (isCut(polygon2)) {
|
|
68863
|
-
let
|
|
69882
|
+
let size2 = 0;
|
|
68864
69883
|
for (const subPolygon of polygon2) {
|
|
68865
|
-
|
|
69884
|
+
size2 += this.getGeometrySize(subPolygon);
|
|
68866
69885
|
}
|
|
68867
|
-
return
|
|
69886
|
+
return size2;
|
|
68868
69887
|
}
|
|
68869
69888
|
return getPositions(polygon2).length / this.positionSize;
|
|
68870
69889
|
}
|
|
@@ -69735,10 +70754,10 @@ function requireTinySdf() {
|
|
|
69735
70754
|
this.fontFamily = fontFamily || "sans-serif";
|
|
69736
70755
|
this.fontWeight = fontWeight || "normal";
|
|
69737
70756
|
this.radius = radius || 8;
|
|
69738
|
-
var
|
|
69739
|
-
var gridSize =
|
|
70757
|
+
var size2 = this.size = this.fontSize + this.buffer * 2;
|
|
70758
|
+
var gridSize = size2 + this.buffer * 2;
|
|
69740
70759
|
this.canvas = document.createElement("canvas");
|
|
69741
|
-
this.canvas.width = this.canvas.height =
|
|
70760
|
+
this.canvas.width = this.canvas.height = size2;
|
|
69742
70761
|
this.ctx = this.canvas.getContext("2d");
|
|
69743
70762
|
this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
|
|
69744
70763
|
this.ctx.textAlign = "left";
|
|
@@ -69749,7 +70768,7 @@ function requireTinySdf() {
|
|
|
69749
70768
|
this.z = new Float64Array(gridSize + 1);
|
|
69750
70769
|
this.v = new Uint16Array(gridSize);
|
|
69751
70770
|
this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
|
|
69752
|
-
this.middle = Math.round(
|
|
70771
|
+
this.middle = Math.round(size2 / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
|
|
69753
70772
|
}
|
|
69754
70773
|
function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
|
|
69755
70774
|
gridOuter.fill(INF, 0, width2 * height2);
|
|
@@ -70006,7 +71025,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70006
71025
|
const y = new Array(numCharacters);
|
|
70007
71026
|
const rowWidth = new Array(numCharacters);
|
|
70008
71027
|
const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
|
|
70009
|
-
const
|
|
71028
|
+
const size2 = [0, 0];
|
|
70010
71029
|
const rowSize = [0, 0];
|
|
70011
71030
|
let rowOffsetTop = 0;
|
|
70012
71031
|
let lineStartIndex = 0;
|
|
@@ -70027,7 +71046,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70027
71046
|
rowWidth[j] = rowSize[0];
|
|
70028
71047
|
}
|
|
70029
71048
|
rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
|
|
70030
|
-
|
|
71049
|
+
size2[0] = Math.max(size2[0], rowSize[0]);
|
|
70031
71050
|
}
|
|
70032
71051
|
lineStartIndex = lineEndIndex;
|
|
70033
71052
|
}
|
|
@@ -70038,12 +71057,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70038
71057
|
lineStartIndex++;
|
|
70039
71058
|
}
|
|
70040
71059
|
}
|
|
70041
|
-
|
|
71060
|
+
size2[1] = rowOffsetTop;
|
|
70042
71061
|
return {
|
|
70043
71062
|
x,
|
|
70044
71063
|
y,
|
|
70045
71064
|
rowWidth,
|
|
70046
|
-
size
|
|
71065
|
+
size: size2
|
|
70047
71066
|
};
|
|
70048
71067
|
}
|
|
70049
71068
|
function getTextFromBuffer({
|
|
@@ -71704,14 +72723,14 @@ class GPUGridAggregator {
|
|
|
71704
72723
|
}
|
|
71705
72724
|
static getCellData({
|
|
71706
72725
|
countsData,
|
|
71707
|
-
size = 1
|
|
72726
|
+
size: size2 = 1
|
|
71708
72727
|
}) {
|
|
71709
72728
|
const numCells = countsData.length / 4;
|
|
71710
|
-
const cellWeights = new Float32Array(numCells *
|
|
72729
|
+
const cellWeights = new Float32Array(numCells * size2);
|
|
71711
72730
|
const cellCounts = new Uint32Array(numCells);
|
|
71712
72731
|
for (let i2 = 0; i2 < numCells; i2++) {
|
|
71713
|
-
for (let sizeIndex = 0; sizeIndex <
|
|
71714
|
-
cellWeights[i2 *
|
|
72732
|
+
for (let sizeIndex = 0; sizeIndex < size2; sizeIndex++) {
|
|
72733
|
+
cellWeights[i2 * size2 + sizeIndex] = countsData[i2 * 4 + sizeIndex];
|
|
71715
72734
|
}
|
|
71716
72735
|
cellCounts[i2] = countsData[i2 * 4 + 3];
|
|
71717
72736
|
}
|
|
@@ -72692,7 +73711,7 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72692
73711
|
} = aggregationParams;
|
|
72693
73712
|
const positions = attributes.positions.value;
|
|
72694
73713
|
const {
|
|
72695
|
-
size
|
|
73714
|
+
size: size2
|
|
72696
73715
|
} = attributes.positions.getAccessor();
|
|
72697
73716
|
const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
|
|
72698
73717
|
const offsets = aggregationParams.posOffset || [180, 90];
|
|
@@ -72717,9 +73736,9 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72717
73736
|
const position2 = new Array(3);
|
|
72718
73737
|
for (const pt of iterable) {
|
|
72719
73738
|
objectInfo.index++;
|
|
72720
|
-
position2[0] = positions[objectInfo.index *
|
|
72721
|
-
position2[1] = positions[objectInfo.index *
|
|
72722
|
-
position2[2] =
|
|
73739
|
+
position2[0] = positions[objectInfo.index * size2];
|
|
73740
|
+
position2[1] = positions[objectInfo.index * size2 + 1];
|
|
73741
|
+
position2[2] = size2 >= 3 ? positions[objectInfo.index * size2 + 2] : 0;
|
|
72723
73742
|
const [x, y] = projectPoints ? viewport.project(position2) : position2;
|
|
72724
73743
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72725
73744
|
const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
|
|
@@ -72769,7 +73788,7 @@ function getGridLayerDataFromGridHash({
|
|
|
72769
73788
|
function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
72770
73789
|
const positions = positionAttribute.value;
|
|
72771
73790
|
const {
|
|
72772
|
-
size
|
|
73791
|
+
size: size2
|
|
72773
73792
|
} = positionAttribute.getAccessor();
|
|
72774
73793
|
let yMin = Infinity;
|
|
72775
73794
|
let yMax = -Infinity;
|
|
@@ -72778,8 +73797,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
|
72778
73797
|
let y;
|
|
72779
73798
|
let x;
|
|
72780
73799
|
for (let i2 = 0; i2 < numInstance; i2++) {
|
|
72781
|
-
x = positions[i2 *
|
|
72782
|
-
y = positions[i2 *
|
|
73800
|
+
x = positions[i2 * size2];
|
|
73801
|
+
y = positions[i2 * size2 + 1];
|
|
72783
73802
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72784
73803
|
yMin = y < yMin ? y : yMin;
|
|
72785
73804
|
yMax = y > yMax ? y : yMax;
|
|
@@ -73872,9 +74891,9 @@ function requireLong() {
|
|
|
73872
74891
|
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
73873
74892
|
var result = ZERO2;
|
|
73874
74893
|
for (var i2 = 0; i2 < str.length; i2 += 8) {
|
|
73875
|
-
var
|
|
73876
|
-
if (
|
|
73877
|
-
var power = fromNumber(pow_dbl(radix,
|
|
74894
|
+
var size2 = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size2), radix);
|
|
74895
|
+
if (size2 < 8) {
|
|
74896
|
+
var power = fromNumber(pow_dbl(radix, size2));
|
|
73878
74897
|
result = result.mul(power).add(fromNumber(value));
|
|
73879
74898
|
} else {
|
|
73880
74899
|
result = result.mul(radixToPower);
|
|
@@ -76792,10 +77811,10 @@ var libh3 = function(libh32) {
|
|
|
76792
77811
|
function abortOnCannotGrowMemory(requestedSize) {
|
|
76793
77812
|
abort("OOM");
|
|
76794
77813
|
}
|
|
76795
|
-
function emscripten_realloc_buffer(
|
|
77814
|
+
function emscripten_realloc_buffer(size2) {
|
|
76796
77815
|
try {
|
|
76797
|
-
var newBuffer = new ArrayBuffer(
|
|
76798
|
-
if (newBuffer.byteLength !=
|
|
77816
|
+
var newBuffer = new ArrayBuffer(size2);
|
|
77817
|
+
if (newBuffer.byteLength != size2) {
|
|
76799
77818
|
return;
|
|
76800
77819
|
}
|
|
76801
77820
|
new Int8Array(newBuffer).set(HEAP8);
|
|
@@ -89729,8 +90748,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
|
|
|
89729
90748
|
5125: Uint32Array,
|
|
89730
90749
|
5126: Float32Array
|
|
89731
90750
|
};
|
|
89732
|
-
function getAccessorTypeFromSize(
|
|
89733
|
-
const type = TYPES[
|
|
90751
|
+
function getAccessorTypeFromSize(size2) {
|
|
90752
|
+
const type = TYPES[size2 - 1];
|
|
89734
90753
|
return type || TYPES[0];
|
|
89735
90754
|
}
|
|
89736
90755
|
function getComponentTypeFromArray(typedArray) {
|
|
@@ -90147,23 +91166,23 @@ class GLTFScenegraph {
|
|
|
90147
91166
|
return attributeName;
|
|
90148
91167
|
}
|
|
90149
91168
|
}
|
|
90150
|
-
_getAccessorMinMax(buffer,
|
|
91169
|
+
_getAccessorMinMax(buffer, size2) {
|
|
90151
91170
|
const result = {
|
|
90152
91171
|
min: null,
|
|
90153
91172
|
max: null
|
|
90154
91173
|
};
|
|
90155
|
-
if (buffer.length <
|
|
91174
|
+
if (buffer.length < size2) {
|
|
90156
91175
|
return result;
|
|
90157
91176
|
}
|
|
90158
91177
|
result.min = [];
|
|
90159
91178
|
result.max = [];
|
|
90160
|
-
const initValues = buffer.subarray(0,
|
|
91179
|
+
const initValues = buffer.subarray(0, size2);
|
|
90161
91180
|
for (const value of initValues) {
|
|
90162
91181
|
result.min.push(value);
|
|
90163
91182
|
result.max.push(value);
|
|
90164
91183
|
}
|
|
90165
|
-
for (let index2 =
|
|
90166
|
-
for (let componentIndex = 0; componentIndex <
|
|
91184
|
+
for (let index2 = size2; index2 < buffer.length; index2 += size2) {
|
|
91185
|
+
for (let componentIndex = 0; componentIndex < size2; componentIndex++) {
|
|
90167
91186
|
result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90168
91187
|
result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90169
91188
|
}
|
|
@@ -90193,9 +91212,9 @@ const DECODERS = {
|
|
|
90193
91212
|
TRIANGLES: "meshopt_decodeIndexBuffer",
|
|
90194
91213
|
INDICES: "meshopt_decodeIndexSequence"
|
|
90195
91214
|
};
|
|
90196
|
-
async function meshoptDecodeGltfBuffer(target, count2,
|
|
91215
|
+
async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter2 = "NONE") {
|
|
90197
91216
|
const instance = await loadWasmInstance();
|
|
90198
|
-
decode$5(instance, instance.exports[DECODERS[mode]], target, count2,
|
|
91217
|
+
decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size2, source, instance.exports[FILTERS[filter2 || "NONE"]]);
|
|
90199
91218
|
}
|
|
90200
91219
|
let wasmPromise;
|
|
90201
91220
|
async function loadWasmInstance() {
|
|
@@ -90226,18 +91245,18 @@ function unpack(data) {
|
|
|
90226
91245
|
}
|
|
90227
91246
|
return result.buffer.slice(0, write);
|
|
90228
91247
|
}
|
|
90229
|
-
function decode$5(instance, fun, target, count2,
|
|
91248
|
+
function decode$5(instance, fun, target, count2, size2, source, filter2) {
|
|
90230
91249
|
const sbrk = instance.exports.sbrk;
|
|
90231
91250
|
const count4 = count2 + 3 & -4;
|
|
90232
|
-
const tp = sbrk(count4 *
|
|
91251
|
+
const tp = sbrk(count4 * size2);
|
|
90233
91252
|
const sp = sbrk(source.length);
|
|
90234
91253
|
const heap = new Uint8Array(instance.exports.memory.buffer);
|
|
90235
91254
|
heap.set(source, sp);
|
|
90236
|
-
const res = fun(tp, count2,
|
|
91255
|
+
const res = fun(tp, count2, size2, sp, source.length);
|
|
90237
91256
|
if (res === 0 && filter2) {
|
|
90238
|
-
filter2(tp, count4,
|
|
91257
|
+
filter2(tp, count4, size2);
|
|
90239
91258
|
}
|
|
90240
|
-
target.set(heap.subarray(tp, tp + count2 *
|
|
91259
|
+
target.set(heap.subarray(tp, tp + count2 * size2));
|
|
90241
91260
|
sbrk(tp - sbrk(0));
|
|
90242
91261
|
if (res !== 0) {
|
|
90243
91262
|
throw new Error("Malformed buffer data: ".concat(res));
|
|
@@ -90919,11 +91938,11 @@ class DracoParser {
|
|
|
90919
91938
|
loaderAttribute.name = attributeName;
|
|
90920
91939
|
const {
|
|
90921
91940
|
value,
|
|
90922
|
-
size
|
|
91941
|
+
size: size2
|
|
90923
91942
|
} = this._getAttributeValues(dracoGeometry, loaderAttribute);
|
|
90924
91943
|
attributes[attributeName] = {
|
|
90925
91944
|
value,
|
|
90926
|
-
size,
|
|
91945
|
+
size: size2,
|
|
90927
91946
|
byteOffset: loaderAttribute.byte_offset,
|
|
90928
91947
|
byteStride: loaderAttribute.byte_stride,
|
|
90929
91948
|
normalized: loaderAttribute.normalized
|
|
@@ -91192,36 +92211,36 @@ function getGLTFAccessors(attributes) {
|
|
|
91192
92211
|
function getGLTFAccessor(attribute) {
|
|
91193
92212
|
const {
|
|
91194
92213
|
buffer,
|
|
91195
|
-
size,
|
|
92214
|
+
size: size2,
|
|
91196
92215
|
count: count2
|
|
91197
92216
|
} = getAccessorData(attribute);
|
|
91198
92217
|
const glTFAccessor = {
|
|
91199
92218
|
value: buffer,
|
|
91200
|
-
size,
|
|
92219
|
+
size: size2,
|
|
91201
92220
|
byteOffset: 0,
|
|
91202
92221
|
count: count2,
|
|
91203
|
-
type: getAccessorTypeFromSize(
|
|
92222
|
+
type: getAccessorTypeFromSize(size2),
|
|
91204
92223
|
componentType: getComponentTypeFromArray(buffer)
|
|
91205
92224
|
};
|
|
91206
92225
|
return glTFAccessor;
|
|
91207
92226
|
}
|
|
91208
92227
|
function getAccessorData(attribute) {
|
|
91209
92228
|
let buffer = attribute;
|
|
91210
|
-
let
|
|
92229
|
+
let size2 = 1;
|
|
91211
92230
|
let count2 = 0;
|
|
91212
92231
|
if (attribute && attribute.value) {
|
|
91213
92232
|
buffer = attribute.value;
|
|
91214
|
-
|
|
92233
|
+
size2 = attribute.size || 1;
|
|
91215
92234
|
}
|
|
91216
92235
|
if (buffer) {
|
|
91217
92236
|
if (!ArrayBuffer.isView(buffer)) {
|
|
91218
92237
|
buffer = toTypedArray(buffer, Float32Array);
|
|
91219
92238
|
}
|
|
91220
|
-
count2 = buffer.length /
|
|
92239
|
+
count2 = buffer.length / size2;
|
|
91221
92240
|
}
|
|
91222
92241
|
return {
|
|
91223
92242
|
buffer,
|
|
91224
|
-
size,
|
|
92243
|
+
size: size2,
|
|
91225
92244
|
count: count2
|
|
91226
92245
|
};
|
|
91227
92246
|
}
|
|
@@ -93464,8 +94483,8 @@ function getObbSize(halfAxes) {
|
|
|
93464
94483
|
const axeY = halfAxes.getColumn(1);
|
|
93465
94484
|
const axeZ = halfAxes.getColumn(2);
|
|
93466
94485
|
const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
|
|
93467
|
-
const
|
|
93468
|
-
return
|
|
94486
|
+
const size2 = farthestVertex.len();
|
|
94487
|
+
return size2;
|
|
93469
94488
|
}
|
|
93470
94489
|
const TILE_CONTENT_STATE = {
|
|
93471
94490
|
UNLOADED: 0,
|
|
@@ -95466,15 +96485,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
|
|
|
95466
96485
|
} = tile3DAccessor;
|
|
95467
96486
|
assert$c(tile3DAccessor.componentType);
|
|
95468
96487
|
const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
|
|
95469
|
-
const
|
|
96488
|
+
const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
|
|
95470
96489
|
const unpacker = UNPACKER[tile3DAccessor.type];
|
|
95471
96490
|
const packer = PACKER[tile3DAccessor.type];
|
|
95472
96491
|
byteOffset += tile3DAccessor.byteOffset;
|
|
95473
|
-
const values2 = GLType.createTypedArray(type, buffer, byteOffset,
|
|
96492
|
+
const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
|
|
95474
96493
|
return {
|
|
95475
96494
|
values: values2,
|
|
95476
96495
|
type,
|
|
95477
|
-
size,
|
|
96496
|
+
size: size2,
|
|
95478
96497
|
unpacker,
|
|
95479
96498
|
packer
|
|
95480
96499
|
};
|
|
@@ -113864,8 +114883,8 @@ function fitExtent(projection2, extent2, object2) {
|
|
|
113864
114883
|
if (clip2 != null) projection2.clipExtent(clip2);
|
|
113865
114884
|
return projection2.scale(k * 150).translate([x, y]);
|
|
113866
114885
|
}
|
|
113867
|
-
function fitSize(projection2,
|
|
113868
|
-
return fitExtent(projection2, [[0, 0],
|
|
114886
|
+
function fitSize(projection2, size2, object2) {
|
|
114887
|
+
return fitExtent(projection2, [[0, 0], size2], object2);
|
|
113869
114888
|
}
|
|
113870
114889
|
var maxDepth = 16, cosMinDistance = cos(30 * radians);
|
|
113871
114890
|
function resample(project2, delta2) {
|
|
@@ -113991,8 +115010,8 @@ function projectionMutator(projectAt) {
|
|
|
113991
115010
|
projection2.fitExtent = function(extent2, object2) {
|
|
113992
115011
|
return fitExtent(projection2, extent2, object2);
|
|
113993
115012
|
};
|
|
113994
|
-
projection2.fitSize = function(
|
|
113995
|
-
return fitSize(projection2,
|
|
115013
|
+
projection2.fitSize = function(size2, object2) {
|
|
115014
|
+
return fitSize(projection2, size2, object2);
|
|
113996
115015
|
};
|
|
113997
115016
|
function recenter() {
|
|
113998
115017
|
projectRotate = compose(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
|
|
@@ -114113,8 +115132,8 @@ function albersUsa() {
|
|
|
114113
115132
|
albersUsa2.fitExtent = function(extent2, object2) {
|
|
114114
115133
|
return fitExtent(albersUsa2, extent2, object2);
|
|
114115
115134
|
};
|
|
114116
|
-
albersUsa2.fitSize = function(
|
|
114117
|
-
return fitSize(albersUsa2,
|
|
115135
|
+
albersUsa2.fitSize = function(size2, object2) {
|
|
115136
|
+
return fitSize(albersUsa2, size2, object2);
|
|
114118
115137
|
};
|
|
114119
115138
|
function reset() {
|
|
114120
115139
|
cache2 = cacheStream = null;
|
|
@@ -114277,8 +115296,8 @@ function identity() {
|
|
|
114277
115296
|
fitExtent: function(extent2, object2) {
|
|
114278
115297
|
return fitExtent(projection2, extent2, object2);
|
|
114279
115298
|
},
|
|
114280
|
-
fitSize: function(
|
|
114281
|
-
return fitSize(projection2,
|
|
115299
|
+
fitSize: function(size2, object2) {
|
|
115300
|
+
return fitSize(projection2, size2, object2);
|
|
114282
115301
|
}
|
|
114283
115302
|
};
|
|
114284
115303
|
}
|
|
@@ -114896,18 +115915,18 @@ function requirePolygonClipping_umd() {
|
|
|
114896
115915
|
if (presort === void 0) {
|
|
114897
115916
|
presort = false;
|
|
114898
115917
|
}
|
|
114899
|
-
var
|
|
115918
|
+
var size2 = keys2.length;
|
|
114900
115919
|
var comparator2 = this._comparator;
|
|
114901
|
-
if (presort) sort(keys2, values2, 0,
|
|
115920
|
+
if (presort) sort(keys2, values2, 0, size2 - 1, comparator2);
|
|
114902
115921
|
if (this._root === null) {
|
|
114903
|
-
this._root = loadRecursive(keys2, values2, 0,
|
|
114904
|
-
this._size =
|
|
115922
|
+
this._root = loadRecursive(keys2, values2, 0, size2);
|
|
115923
|
+
this._size = size2;
|
|
114905
115924
|
} else {
|
|
114906
115925
|
var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator2);
|
|
114907
|
-
|
|
115926
|
+
size2 = this._size + size2;
|
|
114908
115927
|
this._root = sortedListToBST({
|
|
114909
115928
|
head: mergedList
|
|
114910
|
-
}, 0,
|
|
115929
|
+
}, 0, size2);
|
|
114911
115930
|
}
|
|
114912
115931
|
return this;
|
|
114913
115932
|
};
|
|
@@ -114957,9 +115976,9 @@ function requirePolygonClipping_umd() {
|
|
|
114957
115976
|
}()
|
|
114958
115977
|
);
|
|
114959
115978
|
function loadRecursive(keys2, values2, start, end) {
|
|
114960
|
-
var
|
|
114961
|
-
if (
|
|
114962
|
-
var middle = start + Math.floor(
|
|
115979
|
+
var size2 = end - start;
|
|
115980
|
+
if (size2 > 0) {
|
|
115981
|
+
var middle = start + Math.floor(size2 / 2);
|
|
114963
115982
|
var key = keys2[middle];
|
|
114964
115983
|
var data = values2[middle];
|
|
114965
115984
|
var node2 = new Node2(key, data);
|
|
@@ -114999,9 +116018,9 @@ function requirePolygonClipping_umd() {
|
|
|
114999
116018
|
return head.next;
|
|
115000
116019
|
}
|
|
115001
116020
|
function sortedListToBST(list, start, end) {
|
|
115002
|
-
var
|
|
115003
|
-
if (
|
|
115004
|
-
var middle = start + Math.floor(
|
|
116021
|
+
var size2 = end - start;
|
|
116022
|
+
if (size2 > 0) {
|
|
116023
|
+
var middle = start + Math.floor(size2 / 2);
|
|
115005
116024
|
var left = sortedListToBST(list, start, middle);
|
|
115006
116025
|
var root2 = list.head;
|
|
115007
116026
|
root2.left = left;
|
|
@@ -126063,19 +127082,19 @@ function requireExtrudeMode() {
|
|
|
126063
127082
|
if (editHandle) {
|
|
126064
127083
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126065
127084
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126066
|
-
var
|
|
126067
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126068
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127085
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127086
|
+
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
|
|
127087
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126069
127088
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126070
127089
|
if (p1 && p2) {
|
|
126071
127090
|
var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
|
|
126072
|
-
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes,
|
|
127091
|
+
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
|
|
126073
127092
|
props.onEdit({
|
|
126074
127093
|
updatedData,
|
|
126075
127094
|
editType: "extruding",
|
|
126076
127095
|
editContext: {
|
|
126077
127096
|
featureIndexes: [featureIndex],
|
|
126078
|
-
positionIndexes: this.nextPositionIndexes(positionIndexes,
|
|
127097
|
+
positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
|
|
126079
127098
|
position: p3
|
|
126080
127099
|
}
|
|
126081
127100
|
});
|
|
@@ -126090,15 +127109,15 @@ function requireExtrudeMode() {
|
|
|
126090
127109
|
var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
|
|
126091
127110
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126092
127111
|
var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
|
|
126093
|
-
var
|
|
126094
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127112
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127113
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126095
127114
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126096
127115
|
if (p1 && p2) {
|
|
126097
127116
|
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
|
|
126098
|
-
if (!this.isOrthogonal(positionIndexes, featureIndex,
|
|
127117
|
+
if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
|
|
126099
127118
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
|
|
126100
127119
|
}
|
|
126101
|
-
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes,
|
|
127120
|
+
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
|
|
126102
127121
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
|
|
126103
127122
|
this.isPointAdded = true;
|
|
126104
127123
|
}
|
|
@@ -126122,13 +127141,13 @@ function requireExtrudeMode() {
|
|
|
126122
127141
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126123
127142
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126124
127143
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126125
|
-
var
|
|
126126
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126127
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127144
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127145
|
+
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
|
|
127146
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126128
127147
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126129
127148
|
if (p1 && p2) {
|
|
126130
127149
|
var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
|
|
126131
|
-
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes,
|
|
127150
|
+
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
|
|
126132
127151
|
props.onEdit({
|
|
126133
127152
|
updatedData,
|
|
126134
127153
|
editType: "extruded",
|
|
@@ -126146,23 +127165,23 @@ function requireExtrudeMode() {
|
|
|
126146
127165
|
key: "coordinatesSize",
|
|
126147
127166
|
value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
|
|
126148
127167
|
var features = _ref.features;
|
|
126149
|
-
var
|
|
127168
|
+
var size2 = 0;
|
|
126150
127169
|
if (Array.isArray(positionIndexes)) {
|
|
126151
127170
|
var feature2 = features[featureIndex];
|
|
126152
127171
|
var coordinates2 = feature2.geometry.coordinates;
|
|
126153
127172
|
if (positionIndexes.length === 3) {
|
|
126154
127173
|
var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
|
|
126155
127174
|
if (coordinates2.length && coordinates2[a2].length) {
|
|
126156
|
-
|
|
127175
|
+
size2 = coordinates2[a2][b].length;
|
|
126157
127176
|
}
|
|
126158
127177
|
} else {
|
|
126159
127178
|
var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
|
|
126160
127179
|
if (coordinates2.length && coordinates2[_b2].length) {
|
|
126161
|
-
|
|
127180
|
+
size2 = coordinates2[_b2].length;
|
|
126162
127181
|
}
|
|
126163
127182
|
}
|
|
126164
127183
|
}
|
|
126165
|
-
return
|
|
127184
|
+
return size2;
|
|
126166
127185
|
}
|
|
126167
127186
|
}, {
|
|
126168
127187
|
key: "getBearing",
|
|
@@ -126175,15 +127194,15 @@ function requireExtrudeMode() {
|
|
|
126175
127194
|
}
|
|
126176
127195
|
}, {
|
|
126177
127196
|
key: "isOrthogonal",
|
|
126178
|
-
value: function isOrthogonal(positionIndexes, featureIndex,
|
|
127197
|
+
value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
|
|
126179
127198
|
if (!Array.isArray(positionIndexes)) {
|
|
126180
127199
|
return false;
|
|
126181
127200
|
}
|
|
126182
|
-
if (positionIndexes[positionIndexes.length - 1] ===
|
|
127201
|
+
if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
|
|
126183
127202
|
positionIndexes[positionIndexes.length - 1] = 0;
|
|
126184
127203
|
}
|
|
126185
|
-
var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
126186
|
-
var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes,
|
|
127204
|
+
var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, features);
|
|
127205
|
+
var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size2), featureIndex, features);
|
|
126187
127206
|
var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
|
|
126188
127207
|
var prevAngle = this.getBearing(currentPoint, prevPoint);
|
|
126189
127208
|
var nextAngle = this.getBearing(currentPoint, nextPoint);
|
|
@@ -126191,25 +127210,25 @@ function requireExtrudeMode() {
|
|
|
126191
127210
|
}
|
|
126192
127211
|
}, {
|
|
126193
127212
|
key: "nextPositionIndexes",
|
|
126194
|
-
value: function nextPositionIndexes(positionIndexes,
|
|
127213
|
+
value: function nextPositionIndexes(positionIndexes, size2) {
|
|
126195
127214
|
if (!Array.isArray(positionIndexes)) {
|
|
126196
127215
|
return [];
|
|
126197
127216
|
}
|
|
126198
127217
|
var next2 = _toConsumableArray(positionIndexes);
|
|
126199
127218
|
if (next2.length) {
|
|
126200
|
-
next2[next2.length - 1] = next2[next2.length - 1] ===
|
|
127219
|
+
next2[next2.length - 1] = next2[next2.length - 1] === size2 - 1 ? 0 : next2[next2.length - 1] + 1;
|
|
126201
127220
|
}
|
|
126202
127221
|
return next2;
|
|
126203
127222
|
}
|
|
126204
127223
|
}, {
|
|
126205
127224
|
key: "prevPositionIndexes",
|
|
126206
|
-
value: function prevPositionIndexes(positionIndexes,
|
|
127225
|
+
value: function prevPositionIndexes(positionIndexes, size2) {
|
|
126207
127226
|
if (!Array.isArray(positionIndexes)) {
|
|
126208
127227
|
return [];
|
|
126209
127228
|
}
|
|
126210
127229
|
var prev2 = _toConsumableArray(positionIndexes);
|
|
126211
127230
|
if (prev2.length) {
|
|
126212
|
-
prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ?
|
|
127231
|
+
prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size2 - 2 : prev2[prev2.length - 1] - 1;
|
|
126213
127232
|
}
|
|
126214
127233
|
return prev2;
|
|
126215
127234
|
}
|
|
@@ -138179,22 +139198,22 @@ function addDecoder(cases, importFn) {
|
|
|
138179
139198
|
}
|
|
138180
139199
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
138181
139200
|
}
|
|
138182
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138183
|
-
addDecoder(5, () => import("./lzw-
|
|
139201
|
+
addDecoder([void 0, 1], () => import("./raw-Bm2u0Lwc.js").then((m) => m.default));
|
|
139202
|
+
addDecoder(5, () => import("./lzw-BekgzvbP.js").then((m) => m.default));
|
|
138184
139203
|
addDecoder(6, () => {
|
|
138185
139204
|
throw new Error("old style JPEG compression is not supported.");
|
|
138186
139205
|
});
|
|
138187
|
-
addDecoder(7, () => import("./jpeg-
|
|
138188
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138189
|
-
addDecoder(32773, () => import("./packbits-
|
|
139206
|
+
addDecoder(7, () => import("./jpeg-B02WYPwH.js").then((m) => m.default));
|
|
139207
|
+
addDecoder([8, 32946], () => import("./deflate-BQiUjtex.js").then((m) => m.default));
|
|
139208
|
+
addDecoder(32773, () => import("./packbits-8Jb3k-fa.js").then((m) => m.default));
|
|
138190
139209
|
addDecoder(
|
|
138191
139210
|
34887,
|
|
138192
|
-
() => import("./lerc-
|
|
139211
|
+
() => import("./lerc-nZgXornh.js").then(async (m) => {
|
|
138193
139212
|
await m.zstd.init();
|
|
138194
139213
|
return m;
|
|
138195
139214
|
}).then((m) => m.default)
|
|
138196
139215
|
);
|
|
138197
|
-
addDecoder(50001, () => import("./webimage-
|
|
139216
|
+
addDecoder(50001, () => import("./webimage-C67hv5tG.js").then((m) => m.default));
|
|
138198
139217
|
function decodeRowAcc(row, stride) {
|
|
138199
139218
|
let length2 = row.length - stride;
|
|
138200
139219
|
let offset2 = 0;
|
|
@@ -139424,10 +140443,10 @@ const putShortMSB = (s2, b) => {
|
|
|
139424
140443
|
s2.pending_buf[s2.pending++] = b >>> 8 & 255;
|
|
139425
140444
|
s2.pending_buf[s2.pending++] = b & 255;
|
|
139426
140445
|
};
|
|
139427
|
-
const read_buf = (strm, buf, start,
|
|
140446
|
+
const read_buf = (strm, buf, start, size2) => {
|
|
139428
140447
|
let len2 = strm.avail_in;
|
|
139429
|
-
if (len2 >
|
|
139430
|
-
len2 =
|
|
140448
|
+
if (len2 > size2) {
|
|
140449
|
+
len2 = size2;
|
|
139431
140450
|
}
|
|
139432
140451
|
if (len2 === 0) {
|
|
139433
140452
|
return 0;
|
|
@@ -145950,9 +146969,9 @@ const SI_PREFIXES = [
|
|
|
145950
146969
|
{ symbol: "z", exponent: -21 },
|
|
145951
146970
|
{ symbol: "y", exponent: -24 }
|
|
145952
146971
|
];
|
|
145953
|
-
function sizeToMeters(
|
|
146972
|
+
function sizeToMeters(size2, unit2) {
|
|
145954
146973
|
if (!unit2 || unit2 === "m") {
|
|
145955
|
-
return
|
|
146974
|
+
return size2;
|
|
145956
146975
|
}
|
|
145957
146976
|
if (unit2.length > 1) {
|
|
145958
146977
|
let unitPrefix = unit2.substring(0, unit2.length - 1);
|
|
@@ -145961,7 +146980,7 @@ function sizeToMeters(size, unit2) {
|
|
|
145961
146980
|
}
|
|
145962
146981
|
const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
|
|
145963
146982
|
if (unitObj) {
|
|
145964
|
-
return
|
|
146983
|
+
return size2 * 10 ** unitObj.exponent;
|
|
145965
146984
|
}
|
|
145966
146985
|
}
|
|
145967
146986
|
throw new Error("Received unknown unit");
|
|
@@ -146865,7 +147884,7 @@ const defaultProps$2$1 = {
|
|
|
146865
147884
|
};
|
|
146866
147885
|
const ScaleBarLayer = class extends CompositeLayer {
|
|
146867
147886
|
renderLayers() {
|
|
146868
|
-
const { id, unit: unit2, size, position: position2, viewState, length: length2, snap } = this.props;
|
|
147887
|
+
const { id, unit: unit2, size: size2, position: position2, viewState, length: length2, snap } = this.props;
|
|
146869
147888
|
const boundingBox = makeBoundingBox(viewState);
|
|
146870
147889
|
const { zoom } = viewState;
|
|
146871
147890
|
const viewLength = boundingBox[2][0] - boundingBox[0][0];
|
|
@@ -146875,10 +147894,10 @@ const ScaleBarLayer = class extends CompositeLayer {
|
|
|
146875
147894
|
(boundingBox[2][1] - boundingBox[0][1]) * 7e-3
|
|
146876
147895
|
);
|
|
146877
147896
|
let adjustedBarLength = barLength;
|
|
146878
|
-
let displayNumber = (barLength *
|
|
147897
|
+
let displayNumber = (barLength * size2).toPrecision(5);
|
|
146879
147898
|
let displayUnit = unit2;
|
|
146880
147899
|
if (snap) {
|
|
146881
|
-
const meterSize = sizeToMeters(
|
|
147900
|
+
const meterSize = sizeToMeters(size2, unit2);
|
|
146882
147901
|
const numUnits = barLength * meterSize;
|
|
146883
147902
|
const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
|
|
146884
147903
|
adjustedBarLength = snappedOrigUnits / meterSize;
|
|
@@ -151943,7 +152962,7 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
151943
152962
|
}
|
|
151944
152963
|
const newCellOrdering = !cellColors || cellColors.size === 0 ? obsIndex : Array.from(cellColors.keys());
|
|
151945
152964
|
const oldCellOrdering = transpose2 ? axisTopLabels : axisLeftLabels;
|
|
151946
|
-
if (!isEqual$
|
|
152965
|
+
if (!isEqual$2(oldCellOrdering, newCellOrdering)) {
|
|
151947
152966
|
if (transpose2) {
|
|
151948
152967
|
setAxisTopLabels(newCellOrdering);
|
|
151949
152968
|
} else {
|