@vitessce/heatmap 3.9.1 → 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-CtXZgCAW.js → deflate-BQiUjtex.js} +1 -1
- package/dist/{index-DgJedZPO.js → index-BYqNlxEk.js} +1475 -460
- package/dist/index.js +1 -1
- package/dist/{jpeg-DHh36Lwj.js → jpeg-B02WYPwH.js} +1 -1
- package/dist/{lerc-DWs1G17t.js → lerc-nZgXornh.js} +1 -1
- package/dist/{lzw-Cvt0LkXw.js → lzw-BekgzvbP.js} +1 -1
- package/dist/{packbits-5TE0g68q.js → packbits-8Jb3k-fa.js} +1 -1
- package/dist/{raw-BY4wlPHH.js → raw-Bm2u0Lwc.js} +1 -1
- package/dist/{webimage-CikUgHwn.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) {
|
|
@@ -31572,21 +31897,20 @@ Popper$1.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
|
|
|
31572
31897
|
Popper$1.placements = placements;
|
|
31573
31898
|
Popper$1.Defaults = Defaults;
|
|
31574
31899
|
function createChainedFunction(...funcs) {
|
|
31575
|
-
return funcs.reduce(
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
{
|
|
31580
|
-
if (typeof func !== "function") {
|
|
31581
|
-
console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
31900
|
+
return funcs.reduce(
|
|
31901
|
+
(acc, func) => {
|
|
31902
|
+
if (func == null) {
|
|
31903
|
+
return acc;
|
|
31582
31904
|
}
|
|
31905
|
+
return function chainedFunction(...args) {
|
|
31906
|
+
acc.apply(this, args);
|
|
31907
|
+
func.apply(this, args);
|
|
31908
|
+
};
|
|
31909
|
+
},
|
|
31910
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31911
|
+
() => {
|
|
31583
31912
|
}
|
|
31584
|
-
|
|
31585
|
-
acc.apply(this, args);
|
|
31586
|
-
func.apply(this, args);
|
|
31587
|
-
};
|
|
31588
|
-
}, () => {
|
|
31589
|
-
});
|
|
31913
|
+
);
|
|
31590
31914
|
}
|
|
31591
31915
|
function setRef(ref, value) {
|
|
31592
31916
|
if (typeof ref === "function") {
|
|
@@ -31625,7 +31949,7 @@ function flipPlacement(placement, theme) {
|
|
|
31625
31949
|
}
|
|
31626
31950
|
}
|
|
31627
31951
|
function getAnchorEl(anchorEl) {
|
|
31628
|
-
return typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
31952
|
+
return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
|
|
31629
31953
|
}
|
|
31630
31954
|
const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
31631
31955
|
const defaultPopperOptions = {};
|
|
@@ -31655,25 +31979,18 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31655
31979
|
}
|
|
31656
31980
|
if (popperRef.current) {
|
|
31657
31981
|
popperRef.current.destroy();
|
|
31658
|
-
handlePopperRefRef.current
|
|
31982
|
+
if (handlePopperRefRef.current) {
|
|
31983
|
+
setRef(handlePopperRefRef.current, null);
|
|
31984
|
+
}
|
|
31659
31985
|
}
|
|
31660
31986
|
const handlePopperUpdate = (data) => {
|
|
31661
31987
|
setPlacement(data.placement);
|
|
31662
31988
|
};
|
|
31663
|
-
const
|
|
31664
|
-
{
|
|
31665
|
-
|
|
31666
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
31667
|
-
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
31668
|
-
console.warn([
|
|
31669
|
-
"Material-UI: The `anchorEl` prop provided to the component is invalid.",
|
|
31670
|
-
"The anchor element should be part of the document layout.",
|
|
31671
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
31672
|
-
].join("\n"));
|
|
31673
|
-
}
|
|
31674
|
-
}
|
|
31989
|
+
const anchorElement = getAnchorEl(anchorEl);
|
|
31990
|
+
if (!anchorElement) {
|
|
31991
|
+
return;
|
|
31675
31992
|
}
|
|
31676
|
-
const popper = new Popper$1(
|
|
31993
|
+
const popper = new Popper$1(anchorElement, tooltipRef.current, {
|
|
31677
31994
|
placement: rtlPlacement,
|
|
31678
31995
|
...popperOptions,
|
|
31679
31996
|
modifiers: {
|
|
@@ -31691,7 +32008,9 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31691
32008
|
onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
|
|
31692
32009
|
onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
|
|
31693
32010
|
});
|
|
31694
|
-
handlePopperRefRef.current
|
|
32011
|
+
if (handlePopperRefRef.current) {
|
|
32012
|
+
setRef(handlePopperRefRef.current, popper);
|
|
32013
|
+
}
|
|
31695
32014
|
}, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
|
|
31696
32015
|
const handleRef = React.useCallback((node2) => {
|
|
31697
32016
|
setRef(ownRef, node2);
|
|
@@ -31705,7 +32024,9 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31705
32024
|
return;
|
|
31706
32025
|
}
|
|
31707
32026
|
popperRef.current.destroy();
|
|
31708
|
-
handlePopperRefRef.current
|
|
32027
|
+
if (handlePopperRefRef.current) {
|
|
32028
|
+
setRef(handlePopperRefRef.current, null);
|
|
32029
|
+
}
|
|
31709
32030
|
};
|
|
31710
32031
|
const handleExited = () => {
|
|
31711
32032
|
setExited(true);
|
|
@@ -31736,10 +32057,704 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31736
32057
|
// Fix Popper.js display issue
|
|
31737
32058
|
top: 0,
|
|
31738
32059
|
left: 0,
|
|
31739
|
-
display: !open && keepMounted && !transition ? "none" :
|
|
32060
|
+
display: !open && keepMounted && !transition ? "none" : void 0,
|
|
31740
32061
|
...style2
|
|
31741
32062
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
31742
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
|
+
});
|
|
31743
32758
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
31744
32759
|
const namespaces = {
|
|
31745
32760
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -32045,9 +33060,9 @@ function selection_node() {
|
|
|
32045
33060
|
return null;
|
|
32046
33061
|
}
|
|
32047
33062
|
function selection_size() {
|
|
32048
|
-
let
|
|
32049
|
-
for (const node2 of this) ++
|
|
32050
|
-
return
|
|
33063
|
+
let size2 = 0;
|
|
33064
|
+
for (const node2 of this) ++size2;
|
|
33065
|
+
return size2;
|
|
32051
33066
|
}
|
|
32052
33067
|
function selection_empty() {
|
|
32053
33068
|
return !this.node();
|
|
@@ -34027,7 +35042,7 @@ function Legend(props) {
|
|
|
34027
35042
|
y += titleHeight;
|
|
34028
35043
|
setPaths.forEach((setPath) => {
|
|
34029
35044
|
var _a3;
|
|
34030
|
-
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");
|
|
34031
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]})`);
|
|
34032
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);
|
|
34033
35048
|
y += rectHeight + rectMarginY;
|
|
@@ -37265,12 +38280,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
|
|
|
37265
38280
|
return original.getVertexAttrib.apply(this, arguments);
|
|
37266
38281
|
}
|
|
37267
38282
|
};
|
|
37268
|
-
gl.vertexAttribPointer = function vertexAttribPointer(indx,
|
|
38283
|
+
gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
|
|
37269
38284
|
const vao = self2.currentVertexArrayObject;
|
|
37270
38285
|
vao.maxAttrib = Math.max(vao.maxAttrib, indx);
|
|
37271
38286
|
const attrib = vao.attribs[indx];
|
|
37272
38287
|
attrib.buffer = self2.currentArrayBuffer;
|
|
37273
|
-
attrib.size =
|
|
38288
|
+
attrib.size = size2;
|
|
37274
38289
|
attrib.type = type;
|
|
37275
38290
|
attrib.normalized = normalized;
|
|
37276
38291
|
attrib.stride = stride;
|
|
@@ -39162,7 +40177,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39162
40177
|
sourceBuffer,
|
|
39163
40178
|
readOffset = 0,
|
|
39164
40179
|
writeOffset = 0,
|
|
39165
|
-
size
|
|
40180
|
+
size: size2
|
|
39166
40181
|
} = _ref;
|
|
39167
40182
|
const {
|
|
39168
40183
|
gl
|
|
@@ -39170,7 +40185,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39170
40185
|
assertWebGL2Context(gl);
|
|
39171
40186
|
gl.bindBuffer(36662, sourceBuffer.handle);
|
|
39172
40187
|
gl.bindBuffer(36663, this.handle);
|
|
39173
|
-
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset,
|
|
40188
|
+
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
|
|
39174
40189
|
gl.bindBuffer(36662, null);
|
|
39175
40190
|
gl.bindBuffer(36663, null);
|
|
39176
40191
|
this.debugData = null;
|
|
@@ -39212,11 +40227,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39212
40227
|
target = this.target,
|
|
39213
40228
|
index: index2 = this.accessor && this.accessor.index,
|
|
39214
40229
|
offset: offset2 = 0,
|
|
39215
|
-
size
|
|
40230
|
+
size: size2
|
|
39216
40231
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
39217
40232
|
if (target === 35345 || target === 35982) {
|
|
39218
|
-
if (
|
|
39219
|
-
this.gl.bindBufferRange(target, index2, this.handle, offset2,
|
|
40233
|
+
if (size2 !== void 0) {
|
|
40234
|
+
this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
|
|
39220
40235
|
} else {
|
|
39221
40236
|
assert$8(offset2 === 0);
|
|
39222
40237
|
this.gl.bindBufferBase(target, index2, this.handle);
|
|
@@ -39896,47 +40911,47 @@ class Texture extends Resource$1 {
|
|
|
39896
40911
|
};
|
|
39897
40912
|
}
|
|
39898
40913
|
_deduceImageSize(data, width2, height2) {
|
|
39899
|
-
let
|
|
40914
|
+
let size2;
|
|
39900
40915
|
if (typeof ImageData !== "undefined" && data instanceof ImageData) {
|
|
39901
|
-
|
|
40916
|
+
size2 = {
|
|
39902
40917
|
width: data.width,
|
|
39903
40918
|
height: data.height
|
|
39904
40919
|
};
|
|
39905
40920
|
} else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
|
|
39906
|
-
|
|
40921
|
+
size2 = {
|
|
39907
40922
|
width: data.naturalWidth,
|
|
39908
40923
|
height: data.naturalHeight
|
|
39909
40924
|
};
|
|
39910
40925
|
} else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
|
|
39911
|
-
|
|
40926
|
+
size2 = {
|
|
39912
40927
|
width: data.width,
|
|
39913
40928
|
height: data.height
|
|
39914
40929
|
};
|
|
39915
40930
|
} else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
|
|
39916
|
-
|
|
40931
|
+
size2 = {
|
|
39917
40932
|
width: data.width,
|
|
39918
40933
|
height: data.height
|
|
39919
40934
|
};
|
|
39920
40935
|
} else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
|
|
39921
|
-
|
|
40936
|
+
size2 = {
|
|
39922
40937
|
width: data.videoWidth,
|
|
39923
40938
|
height: data.videoHeight
|
|
39924
40939
|
};
|
|
39925
40940
|
} else if (!data) {
|
|
39926
|
-
|
|
40941
|
+
size2 = {
|
|
39927
40942
|
width: width2 >= 0 ? width2 : 1,
|
|
39928
40943
|
height: height2 >= 0 ? height2 : 1
|
|
39929
40944
|
};
|
|
39930
40945
|
} else {
|
|
39931
|
-
|
|
40946
|
+
size2 = {
|
|
39932
40947
|
width: width2,
|
|
39933
40948
|
height: height2
|
|
39934
40949
|
};
|
|
39935
40950
|
}
|
|
39936
|
-
assert$8(
|
|
39937
|
-
assert$8(width2 === void 0 ||
|
|
39938
|
-
assert$8(height2 === void 0 ||
|
|
39939
|
-
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;
|
|
39940
40955
|
}
|
|
39941
40956
|
_createHandle() {
|
|
39942
40957
|
return this.gl.createTexture();
|
|
@@ -41895,11 +42910,11 @@ function getSamplerSetter() {
|
|
|
41895
42910
|
return update2;
|
|
41896
42911
|
};
|
|
41897
42912
|
}
|
|
41898
|
-
function getArraySetter(functionName, toArray,
|
|
42913
|
+
function getArraySetter(functionName, toArray, size2, uniformSetter) {
|
|
41899
42914
|
let cache2 = null;
|
|
41900
42915
|
let cacheLength = null;
|
|
41901
42916
|
return (gl, location, value) => {
|
|
41902
|
-
const arrayValue = toArray(value,
|
|
42917
|
+
const arrayValue = toArray(value, size2);
|
|
41903
42918
|
const length2 = arrayValue.length;
|
|
41904
42919
|
let update2 = false;
|
|
41905
42920
|
if (cache2 === null) {
|
|
@@ -42094,11 +43109,11 @@ class ProgramConfiguration {
|
|
|
42094
43109
|
const {
|
|
42095
43110
|
name: name2,
|
|
42096
43111
|
type,
|
|
42097
|
-
size
|
|
43112
|
+
size: size2
|
|
42098
43113
|
} = gl.getActiveAttrib(program.handle, index2);
|
|
42099
43114
|
const location = gl.getAttribLocation(program.handle, name2);
|
|
42100
43115
|
if (location >= 0) {
|
|
42101
|
-
this._addAttribute(location, name2, type,
|
|
43116
|
+
this._addAttribute(location, name2, type, size2);
|
|
42102
43117
|
}
|
|
42103
43118
|
}
|
|
42104
43119
|
this.attributeInfos.sort((a2, b) => a2.location - b.location);
|
|
@@ -42115,20 +43130,20 @@ class ProgramConfiguration {
|
|
|
42115
43130
|
const {
|
|
42116
43131
|
name: name2,
|
|
42117
43132
|
type,
|
|
42118
|
-
size
|
|
43133
|
+
size: size2
|
|
42119
43134
|
} = gl.getTransformFeedbackVarying(program.handle, location);
|
|
42120
|
-
this._addVarying(location, name2, type,
|
|
43135
|
+
this._addVarying(location, name2, type, size2);
|
|
42121
43136
|
}
|
|
42122
43137
|
this.varyingInfos.sort((a2, b) => a2.location - b.location);
|
|
42123
43138
|
}
|
|
42124
|
-
_addAttribute(location, name2, compositeType,
|
|
43139
|
+
_addAttribute(location, name2, compositeType, size2) {
|
|
42125
43140
|
const {
|
|
42126
43141
|
type,
|
|
42127
43142
|
components
|
|
42128
43143
|
} = decomposeCompositeGLType(compositeType);
|
|
42129
43144
|
const accessor = {
|
|
42130
43145
|
type,
|
|
42131
|
-
size:
|
|
43146
|
+
size: size2 * components
|
|
42132
43147
|
};
|
|
42133
43148
|
this._inferProperties(location, name2, accessor);
|
|
42134
43149
|
const attributeInfo = {
|
|
@@ -42145,14 +43160,14 @@ class ProgramConfiguration {
|
|
|
42145
43160
|
accessor.divisor = 1;
|
|
42146
43161
|
}
|
|
42147
43162
|
}
|
|
42148
|
-
_addVarying(location, name2, compositeType,
|
|
43163
|
+
_addVarying(location, name2, compositeType, size2) {
|
|
42149
43164
|
const {
|
|
42150
43165
|
type,
|
|
42151
43166
|
components
|
|
42152
43167
|
} = decomposeCompositeGLType(compositeType);
|
|
42153
43168
|
const accessor = new Accessor({
|
|
42154
43169
|
type,
|
|
42155
|
-
size:
|
|
43170
|
+
size: size2 * components
|
|
42156
43171
|
});
|
|
42157
43172
|
const varying = {
|
|
42158
43173
|
location,
|
|
@@ -42828,7 +43843,7 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42828
43843
|
return this.setElementBuffer(buffer, accessor);
|
|
42829
43844
|
}
|
|
42830
43845
|
const {
|
|
42831
|
-
size,
|
|
43846
|
+
size: size2,
|
|
42832
43847
|
type,
|
|
42833
43848
|
stride,
|
|
42834
43849
|
offset: offset2,
|
|
@@ -42845,9 +43860,9 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42845
43860
|
gl.bindBuffer(34962, buffer.handle);
|
|
42846
43861
|
if (integer) {
|
|
42847
43862
|
assert$8(isWebGL2$1(gl));
|
|
42848
|
-
gl2.vertexAttribIPointer(location,
|
|
43863
|
+
gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
|
|
42849
43864
|
} else {
|
|
42850
|
-
gl.vertexAttribPointer(location,
|
|
43865
|
+
gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
|
|
42851
43866
|
}
|
|
42852
43867
|
gl.enableVertexAttribArray(location);
|
|
42853
43868
|
gl2.vertexAttribDivisor(location, divisor || 0);
|
|
@@ -43175,10 +44190,10 @@ class VertexArray {
|
|
|
43175
44190
|
const currentAccessor = this.accessors[location] || {};
|
|
43176
44191
|
const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
|
|
43177
44192
|
const {
|
|
43178
|
-
size,
|
|
44193
|
+
size: size2,
|
|
43179
44194
|
type
|
|
43180
44195
|
} = accessor;
|
|
43181
|
-
assert$8(Number.isFinite(
|
|
44196
|
+
assert$8(Number.isFinite(size2) && Number.isFinite(type));
|
|
43182
44197
|
return {
|
|
43183
44198
|
location,
|
|
43184
44199
|
accessor
|
|
@@ -43310,12 +44325,12 @@ class VertexArray {
|
|
|
43310
44325
|
function formatArrayValue(v, opts) {
|
|
43311
44326
|
const {
|
|
43312
44327
|
maxElts = 16,
|
|
43313
|
-
size = 1
|
|
44328
|
+
size: size2 = 1
|
|
43314
44329
|
} = opts;
|
|
43315
44330
|
let string2 = "[";
|
|
43316
44331
|
for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
|
|
43317
44332
|
if (i2 > 0) {
|
|
43318
|
-
string2 += ",".concat(i2 %
|
|
44333
|
+
string2 += ",".concat(i2 % size2 === 0 ? " " : "");
|
|
43319
44334
|
}
|
|
43320
44335
|
string2 += formatValue$1(v[i2], opts);
|
|
43321
44336
|
}
|
|
@@ -43480,7 +44495,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43480
44495
|
};
|
|
43481
44496
|
}
|
|
43482
44497
|
let type = "NOT PROVIDED";
|
|
43483
|
-
let
|
|
44498
|
+
let size2 = 1;
|
|
43484
44499
|
let verts = 0;
|
|
43485
44500
|
let bytes = 0;
|
|
43486
44501
|
let isInteger;
|
|
@@ -43488,7 +44503,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43488
44503
|
let value;
|
|
43489
44504
|
if (accessor) {
|
|
43490
44505
|
type = accessor.type;
|
|
43491
|
-
|
|
44506
|
+
size2 = accessor.size;
|
|
43492
44507
|
type = String(type).replace("Array", "");
|
|
43493
44508
|
isInteger = type.indexOf("nt") !== -1;
|
|
43494
44509
|
}
|
|
@@ -43501,41 +44516,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43501
44516
|
marker2 = changed ? "*" : "";
|
|
43502
44517
|
value = data;
|
|
43503
44518
|
bytes = buffer.byteLength;
|
|
43504
|
-
verts = bytes / data.BYTES_PER_ELEMENT /
|
|
44519
|
+
verts = bytes / data.BYTES_PER_ELEMENT / size2;
|
|
43505
44520
|
let format2;
|
|
43506
44521
|
if (accessor) {
|
|
43507
44522
|
const instanced = accessor.divisor > 0;
|
|
43508
|
-
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), ")");
|
|
43509
44524
|
} else {
|
|
43510
44525
|
isInteger = true;
|
|
43511
44526
|
format2 = "".concat(bytes, " bytes");
|
|
43512
44527
|
}
|
|
43513
44528
|
return {
|
|
43514
44529
|
[header]: "".concat(marker2).concat(formatValue$1(value, {
|
|
43515
|
-
size,
|
|
44530
|
+
size: size2,
|
|
43516
44531
|
isInteger
|
|
43517
44532
|
})),
|
|
43518
44533
|
"Format ": format2
|
|
43519
44534
|
};
|
|
43520
44535
|
}
|
|
43521
44536
|
value = attribute;
|
|
43522
|
-
|
|
44537
|
+
size2 = attribute.length;
|
|
43523
44538
|
type = String(attribute.constructor.name).replace("Array", "");
|
|
43524
44539
|
isInteger = type.indexOf("nt") !== -1;
|
|
43525
44540
|
return {
|
|
43526
44541
|
[header]: "".concat(formatValue$1(value, {
|
|
43527
|
-
size,
|
|
44542
|
+
size: size2,
|
|
43528
44543
|
isInteger
|
|
43529
44544
|
}), " (constant)"),
|
|
43530
|
-
"Format ": "".concat(
|
|
44545
|
+
"Format ": "".concat(size2, "x").concat(type, " (constant)")
|
|
43531
44546
|
};
|
|
43532
44547
|
}
|
|
43533
44548
|
function getGLSLDeclaration$1(name2, accessor) {
|
|
43534
44549
|
const {
|
|
43535
44550
|
type,
|
|
43536
|
-
size
|
|
44551
|
+
size: size2
|
|
43537
44552
|
} = accessor;
|
|
43538
|
-
const typeAndName = getCompositeGLType(type,
|
|
44553
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43539
44554
|
return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
|
|
43540
44555
|
}
|
|
43541
44556
|
function getDebugTableForProgramConfiguration(config2) {
|
|
@@ -43562,9 +44577,9 @@ function getDebugTableForProgramConfiguration(config2) {
|
|
|
43562
44577
|
function getGLSLDeclaration(attributeInfo) {
|
|
43563
44578
|
const {
|
|
43564
44579
|
type,
|
|
43565
|
-
size
|
|
44580
|
+
size: size2
|
|
43566
44581
|
} = attributeInfo.accessor;
|
|
43567
|
-
const typeAndName = getCompositeGLType(type,
|
|
44582
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43568
44583
|
if (typeAndName) {
|
|
43569
44584
|
return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
|
|
43570
44585
|
}
|
|
@@ -50186,11 +51201,11 @@ class Geometry {
|
|
|
50186
51201
|
const attribute = attributes[attributeName];
|
|
50187
51202
|
const {
|
|
50188
51203
|
value,
|
|
50189
|
-
size,
|
|
51204
|
+
size: size2,
|
|
50190
51205
|
constant: constant2
|
|
50191
51206
|
} = attribute;
|
|
50192
|
-
if (!constant2 && value &&
|
|
50193
|
-
vertexCount = Math.min(vertexCount, value.length /
|
|
51207
|
+
if (!constant2 && value && size2 >= 1) {
|
|
51208
|
+
vertexCount = Math.min(vertexCount, value.length / size2);
|
|
50194
51209
|
}
|
|
50195
51210
|
}
|
|
50196
51211
|
assert$8(Number.isFinite(vertexCount));
|
|
@@ -50568,20 +51583,20 @@ function unpackIndexedGeometry(geometry2) {
|
|
|
50568
51583
|
const {
|
|
50569
51584
|
constant: constant2,
|
|
50570
51585
|
value,
|
|
50571
|
-
size
|
|
51586
|
+
size: size2
|
|
50572
51587
|
} = attribute;
|
|
50573
|
-
if (constant2 || !
|
|
51588
|
+
if (constant2 || !size2) {
|
|
50574
51589
|
continue;
|
|
50575
51590
|
}
|
|
50576
|
-
const unpackedValue = new value.constructor(vertexCount *
|
|
51591
|
+
const unpackedValue = new value.constructor(vertexCount * size2);
|
|
50577
51592
|
for (let x = 0; x < vertexCount; ++x) {
|
|
50578
51593
|
const index2 = indices.value[x];
|
|
50579
|
-
for (let i2 = 0; i2 <
|
|
50580
|
-
unpackedValue[x *
|
|
51594
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
51595
|
+
unpackedValue[x * size2 + i2] = value[index2 * size2 + i2];
|
|
50581
51596
|
}
|
|
50582
51597
|
}
|
|
50583
51598
|
unpackedAttributes[attributeName] = {
|
|
50584
|
-
size,
|
|
51599
|
+
size: size2,
|
|
50585
51600
|
value: unpackedValue
|
|
50586
51601
|
};
|
|
50587
51602
|
}
|
|
@@ -51502,11 +52517,11 @@ function fitBounds(options) {
|
|
|
51502
52517
|
const padding2 = getPaddingObject(options.padding);
|
|
51503
52518
|
const nw = lngLatToWorld([west, clamp$1(north, -85.051129, MAX_LATITUDE)]);
|
|
51504
52519
|
const se = lngLatToWorld([east, clamp$1(south, -85.051129, MAX_LATITUDE)]);
|
|
51505
|
-
const
|
|
52520
|
+
const size2 = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
|
|
51506
52521
|
const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
|
|
51507
52522
|
assert$5(targetSize[0] > 0 && targetSize[1] > 0);
|
|
51508
|
-
const scaleX2 = targetSize[0] /
|
|
51509
|
-
const scaleY2 = targetSize[1] /
|
|
52523
|
+
const scaleX2 = targetSize[0] / size2[0];
|
|
52524
|
+
const scaleY2 = targetSize[1] / size2[1];
|
|
51510
52525
|
const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
|
|
51511
52526
|
const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
|
|
51512
52527
|
const center2 = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
|
|
@@ -52625,7 +53640,7 @@ class TypedArrayManager {
|
|
|
52625
53640
|
Object.assign(this.opts, options);
|
|
52626
53641
|
}
|
|
52627
53642
|
allocate(typedArray, count2, {
|
|
52628
|
-
size = 1,
|
|
53643
|
+
size: size2 = 1,
|
|
52629
53644
|
type,
|
|
52630
53645
|
padding: padding2 = 0,
|
|
52631
53646
|
copy: copy2 = false,
|
|
@@ -52633,7 +53648,7 @@ class TypedArrayManager {
|
|
|
52633
53648
|
maxCount
|
|
52634
53649
|
}) {
|
|
52635
53650
|
const Type2 = type || typedArray && typedArray.constructor || Float32Array;
|
|
52636
|
-
const newSize = count2 *
|
|
53651
|
+
const newSize = count2 * size2 + padding2;
|
|
52637
53652
|
if (ArrayBuffer.isView(typedArray)) {
|
|
52638
53653
|
if (newSize <= typedArray.length) {
|
|
52639
53654
|
return typedArray;
|
|
@@ -52644,7 +53659,7 @@ class TypedArrayManager {
|
|
|
52644
53659
|
}
|
|
52645
53660
|
let maxSize = Infinity;
|
|
52646
53661
|
if (maxCount) {
|
|
52647
|
-
maxSize = maxCount *
|
|
53662
|
+
maxSize = maxCount * size2 + padding2;
|
|
52648
53663
|
}
|
|
52649
53664
|
const newArray = this._allocate(Type2, newSize, initialize, maxSize);
|
|
52650
53665
|
if (typedArray && copy2) {
|
|
@@ -52658,8 +53673,8 @@ class TypedArrayManager {
|
|
|
52658
53673
|
release(typedArray) {
|
|
52659
53674
|
this._release(typedArray);
|
|
52660
53675
|
}
|
|
52661
|
-
_allocate(Type2,
|
|
52662
|
-
let sizeToAllocate = Math.max(Math.ceil(
|
|
53676
|
+
_allocate(Type2, size2, initialize, maxSize) {
|
|
53677
|
+
let sizeToAllocate = Math.max(Math.ceil(size2 * this.opts.overAlloc), 1);
|
|
52663
53678
|
if (sizeToAllocate > maxSize) {
|
|
52664
53679
|
sizeToAllocate = maxSize;
|
|
52665
53680
|
}
|
|
@@ -52733,26 +53748,26 @@ function fp64LowPart(x) {
|
|
|
52733
53748
|
let scratchArray;
|
|
52734
53749
|
function toDoublePrecisionArray(typedArray, options) {
|
|
52735
53750
|
const {
|
|
52736
|
-
size = 1,
|
|
53751
|
+
size: size2 = 1,
|
|
52737
53752
|
startIndex = 0
|
|
52738
53753
|
} = options;
|
|
52739
53754
|
const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
|
|
52740
|
-
const count2 = (endIndex - startIndex) /
|
|
53755
|
+
const count2 = (endIndex - startIndex) / size2;
|
|
52741
53756
|
scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
|
|
52742
53757
|
type: Float32Array,
|
|
52743
|
-
size:
|
|
53758
|
+
size: size2 * 2
|
|
52744
53759
|
});
|
|
52745
53760
|
let sourceIndex = startIndex;
|
|
52746
53761
|
let targetIndex = 0;
|
|
52747
53762
|
while (sourceIndex < endIndex) {
|
|
52748
|
-
for (let j = 0; j <
|
|
53763
|
+
for (let j = 0; j < size2; j++) {
|
|
52749
53764
|
const value = typedArray[sourceIndex++];
|
|
52750
53765
|
scratchArray[targetIndex + j] = value;
|
|
52751
|
-
scratchArray[targetIndex + j +
|
|
53766
|
+
scratchArray[targetIndex + j + size2] = fp64LowPart(value);
|
|
52752
53767
|
}
|
|
52753
|
-
targetIndex +=
|
|
53768
|
+
targetIndex += size2 * 2;
|
|
52754
53769
|
}
|
|
52755
|
-
return scratchArray.subarray(0, count2 *
|
|
53770
|
+
return scratchArray.subarray(0, count2 * size2 * 2);
|
|
52756
53771
|
}
|
|
52757
53772
|
const DEGREES_TO_RADIANS$4 = Math.PI / 180;
|
|
52758
53773
|
const IDENTITY = createMat4();
|
|
@@ -56411,15 +57426,15 @@ function getMaskViewport({
|
|
|
56411
57426
|
});
|
|
56412
57427
|
}
|
|
56413
57428
|
function _doubleBounds(bounds2) {
|
|
56414
|
-
const
|
|
57429
|
+
const size2 = {
|
|
56415
57430
|
x: bounds2[2] - bounds2[0],
|
|
56416
57431
|
y: bounds2[3] - bounds2[1]
|
|
56417
57432
|
};
|
|
56418
57433
|
const center2 = {
|
|
56419
|
-
x: bounds2[0] + 0.5 *
|
|
56420
|
-
y: bounds2[1] + 0.5 *
|
|
57434
|
+
x: bounds2[0] + 0.5 * size2.x,
|
|
57435
|
+
y: bounds2[1] + 0.5 * size2.y
|
|
56421
57436
|
};
|
|
56422
|
-
return [center2.x -
|
|
57437
|
+
return [center2.x - size2.x, center2.y - size2.y, center2.x + size2.x, center2.y + size2.y];
|
|
56423
57438
|
}
|
|
56424
57439
|
class MaskEffect {
|
|
56425
57440
|
constructor() {
|
|
@@ -60803,13 +61818,13 @@ class ShaderAttribute {
|
|
|
60803
61818
|
value
|
|
60804
61819
|
} = this.source;
|
|
60805
61820
|
const {
|
|
60806
|
-
size
|
|
61821
|
+
size: size2
|
|
60807
61822
|
} = accessor;
|
|
60808
61823
|
let constantValue = value;
|
|
60809
|
-
if (value && value.length !==
|
|
60810
|
-
constantValue = new Float32Array(
|
|
61824
|
+
if (value && value.length !== size2) {
|
|
61825
|
+
constantValue = new Float32Array(size2);
|
|
60811
61826
|
const index2 = accessor.elementOffset || 0;
|
|
60812
|
-
for (let i2 = 0; i2 <
|
|
61827
|
+
for (let i2 = 0; i2 < size2; ++i2) {
|
|
60813
61828
|
constantValue[i2] = value[index2 + i2];
|
|
60814
61829
|
}
|
|
60815
61830
|
}
|
|
@@ -61012,14 +62027,14 @@ class DataColumn {
|
|
|
61012
62027
|
const {
|
|
61013
62028
|
value,
|
|
61014
62029
|
numInstances,
|
|
61015
|
-
size
|
|
62030
|
+
size: size2
|
|
61016
62031
|
} = this;
|
|
61017
|
-
const len2 = numInstances *
|
|
62032
|
+
const len2 = numInstances * size2;
|
|
61018
62033
|
if (value && len2 && value.length >= len2) {
|
|
61019
|
-
const min = new Array(
|
|
61020
|
-
const max2 = new Array(
|
|
62034
|
+
const min = new Array(size2).fill(Infinity);
|
|
62035
|
+
const max2 = new Array(size2).fill(-Infinity);
|
|
61021
62036
|
for (let i2 = 0; i2 < len2; ) {
|
|
61022
|
-
for (let j = 0; j <
|
|
62037
|
+
for (let j = 0; j < size2; j++) {
|
|
61023
62038
|
const v = value[i2++];
|
|
61024
62039
|
if (v < min[j]) min[j] = v;
|
|
61025
62040
|
if (v > max2[j]) max2[j] = v;
|
|
@@ -61185,7 +62200,7 @@ class DataColumn {
|
|
|
61185
62200
|
_normalizeValue(value, out, start) {
|
|
61186
62201
|
const {
|
|
61187
62202
|
defaultValue: defaultValue2,
|
|
61188
|
-
size
|
|
62203
|
+
size: size2
|
|
61189
62204
|
} = this.settings;
|
|
61190
62205
|
if (Number.isFinite(value)) {
|
|
61191
62206
|
out[start] = value;
|
|
@@ -61195,7 +62210,7 @@ class DataColumn {
|
|
|
61195
62210
|
out[start] = defaultValue2[0];
|
|
61196
62211
|
return out;
|
|
61197
62212
|
}
|
|
61198
|
-
switch (
|
|
62213
|
+
switch (size2) {
|
|
61199
62214
|
case 4:
|
|
61200
62215
|
out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
|
|
61201
62216
|
case 3:
|
|
@@ -61206,7 +62221,7 @@ class DataColumn {
|
|
|
61206
62221
|
out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
|
|
61207
62222
|
break;
|
|
61208
62223
|
default:
|
|
61209
|
-
let i2 =
|
|
62224
|
+
let i2 = size2;
|
|
61210
62225
|
while (--i2 >= 0) {
|
|
61211
62226
|
out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
|
|
61212
62227
|
}
|
|
@@ -61218,9 +62233,9 @@ class DataColumn {
|
|
|
61218
62233
|
return false;
|
|
61219
62234
|
}
|
|
61220
62235
|
const {
|
|
61221
|
-
size
|
|
62236
|
+
size: size2
|
|
61222
62237
|
} = this;
|
|
61223
|
-
for (let i2 = 0; i2 <
|
|
62238
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
61224
62239
|
if (value1[i2] !== value2[i2]) {
|
|
61225
62240
|
return false;
|
|
61226
62241
|
}
|
|
@@ -61259,14 +62274,14 @@ function isAsyncIterable(data) {
|
|
|
61259
62274
|
}
|
|
61260
62275
|
function getAccessorFromBuffer(typedArray, options) {
|
|
61261
62276
|
const {
|
|
61262
|
-
size,
|
|
62277
|
+
size: size2,
|
|
61263
62278
|
stride,
|
|
61264
62279
|
offset: offset2,
|
|
61265
62280
|
startIndices,
|
|
61266
62281
|
nested: nested2
|
|
61267
62282
|
} = options;
|
|
61268
62283
|
const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
|
|
61269
|
-
const elementStride = stride ? stride / bytesPerElement :
|
|
62284
|
+
const elementStride = stride ? stride / bytesPerElement : size2;
|
|
61270
62285
|
const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
|
|
61271
62286
|
const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
|
|
61272
62287
|
return (_, {
|
|
@@ -61275,7 +62290,7 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61275
62290
|
}) => {
|
|
61276
62291
|
if (!startIndices) {
|
|
61277
62292
|
const sourceIndex = index2 * elementStride + elementOffset;
|
|
61278
|
-
for (let j = 0; j <
|
|
62293
|
+
for (let j = 0; j < size2; j++) {
|
|
61279
62294
|
target[j] = typedArray[sourceIndex + j];
|
|
61280
62295
|
}
|
|
61281
62296
|
return target;
|
|
@@ -61287,20 +62302,20 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61287
62302
|
result = new Array(endIndex - startIndex);
|
|
61288
62303
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61289
62304
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61290
|
-
target = new Array(
|
|
61291
|
-
for (let j = 0; j <
|
|
62305
|
+
target = new Array(size2);
|
|
62306
|
+
for (let j = 0; j < size2; j++) {
|
|
61292
62307
|
target[j] = typedArray[sourceIndex + j];
|
|
61293
62308
|
}
|
|
61294
62309
|
result[i2 - startIndex] = target;
|
|
61295
62310
|
}
|
|
61296
|
-
} else if (elementStride ===
|
|
61297
|
-
result = typedArray.subarray(startIndex *
|
|
62311
|
+
} else if (elementStride === size2) {
|
|
62312
|
+
result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
|
|
61298
62313
|
} else {
|
|
61299
|
-
result = new typedArray.constructor((endIndex - startIndex) *
|
|
62314
|
+
result = new typedArray.constructor((endIndex - startIndex) * size2);
|
|
61300
62315
|
let targetIndex = 0;
|
|
61301
62316
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61302
62317
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61303
|
-
for (let j = 0; j <
|
|
62318
|
+
for (let j = 0; j < size2; j++) {
|
|
61304
62319
|
result[targetIndex++] = typedArray[sourceIndex + j];
|
|
61305
62320
|
}
|
|
61306
62321
|
}
|
|
@@ -61342,7 +62357,7 @@ function padArrayChunk(options) {
|
|
|
61342
62357
|
source,
|
|
61343
62358
|
target,
|
|
61344
62359
|
start = 0,
|
|
61345
|
-
size,
|
|
62360
|
+
size: size2,
|
|
61346
62361
|
getData
|
|
61347
62362
|
} = options;
|
|
61348
62363
|
const end = options.end || target.length;
|
|
@@ -61359,7 +62374,7 @@ function padArrayChunk(options) {
|
|
|
61359
62374
|
let i2 = sourceLength;
|
|
61360
62375
|
while (i2 < targetLength) {
|
|
61361
62376
|
const datum2 = getData(i2, source);
|
|
61362
|
-
for (let j = 0; j <
|
|
62377
|
+
for (let j = 0; j < size2; j++) {
|
|
61363
62378
|
target[start + i2] = datum2[j] || 0;
|
|
61364
62379
|
i2++;
|
|
61365
62380
|
}
|
|
@@ -61368,7 +62383,7 @@ function padArrayChunk(options) {
|
|
|
61368
62383
|
function padArray({
|
|
61369
62384
|
source,
|
|
61370
62385
|
target,
|
|
61371
|
-
size,
|
|
62386
|
+
size: size2,
|
|
61372
62387
|
getData,
|
|
61373
62388
|
sourceStartIndices,
|
|
61374
62389
|
targetStartIndices
|
|
@@ -61377,7 +62392,7 @@ function padArray({
|
|
|
61377
62392
|
padArrayChunk({
|
|
61378
62393
|
source,
|
|
61379
62394
|
target,
|
|
61380
|
-
size,
|
|
62395
|
+
size: size2,
|
|
61381
62396
|
getData
|
|
61382
62397
|
});
|
|
61383
62398
|
return target;
|
|
@@ -61387,14 +62402,14 @@ function padArray({
|
|
|
61387
62402
|
const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
|
|
61388
62403
|
const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
|
|
61389
62404
|
for (let i2 = 1; i2 < n2; i2++) {
|
|
61390
|
-
const nextSourceIndex = sourceStartIndices[i2] *
|
|
61391
|
-
const nextTargetIndex = targetStartIndices[i2] *
|
|
62405
|
+
const nextSourceIndex = sourceStartIndices[i2] * size2;
|
|
62406
|
+
const nextTargetIndex = targetStartIndices[i2] * size2;
|
|
61392
62407
|
padArrayChunk({
|
|
61393
62408
|
source: source.subarray(sourceIndex, nextSourceIndex),
|
|
61394
62409
|
target,
|
|
61395
62410
|
start: targetIndex,
|
|
61396
62411
|
end: nextTargetIndex,
|
|
61397
|
-
size,
|
|
62412
|
+
size: size2,
|
|
61398
62413
|
getData: getChunkData
|
|
61399
62414
|
});
|
|
61400
62415
|
sourceIndex = nextSourceIndex;
|
|
@@ -61405,7 +62420,7 @@ function padArray({
|
|
|
61405
62420
|
source: [],
|
|
61406
62421
|
target,
|
|
61407
62422
|
start: targetIndex,
|
|
61408
|
-
size,
|
|
62423
|
+
size: size2,
|
|
61409
62424
|
getData: getChunkData
|
|
61410
62425
|
});
|
|
61411
62426
|
}
|
|
@@ -61450,8 +62465,8 @@ function getSourceBufferAttribute(gl, attribute) {
|
|
|
61450
62465
|
}
|
|
61451
62466
|
return attribute.value;
|
|
61452
62467
|
}
|
|
61453
|
-
function getAttributeTypeFromSize(
|
|
61454
|
-
switch (
|
|
62468
|
+
function getAttributeTypeFromSize(size2) {
|
|
62469
|
+
switch (size2) {
|
|
61455
62470
|
case 1:
|
|
61456
62471
|
return "float";
|
|
61457
62472
|
case 2:
|
|
@@ -61461,7 +62476,7 @@ function getAttributeTypeFromSize(size) {
|
|
|
61461
62476
|
case 4:
|
|
61462
62477
|
return "vec4";
|
|
61463
62478
|
default:
|
|
61464
|
-
throw new Error('No defined attribute type for size "'.concat(
|
|
62479
|
+
throw new Error('No defined attribute type for size "'.concat(size2, '"'));
|
|
61465
62480
|
}
|
|
61466
62481
|
}
|
|
61467
62482
|
function cycleBuffers(buffers) {
|
|
@@ -61472,10 +62487,10 @@ function getAttributeBufferLength(attribute, numInstances) {
|
|
|
61472
62487
|
doublePrecision,
|
|
61473
62488
|
settings,
|
|
61474
62489
|
value,
|
|
61475
|
-
size
|
|
62490
|
+
size: size2
|
|
61476
62491
|
} = attribute;
|
|
61477
62492
|
const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
|
|
61478
|
-
return (settings.noAlloc ? value.length : numInstances *
|
|
62493
|
+
return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
|
|
61479
62494
|
}
|
|
61480
62495
|
function padBuffer({
|
|
61481
62496
|
buffer,
|
|
@@ -61486,7 +62501,7 @@ function padBuffer({
|
|
|
61486
62501
|
getData = (x) => x
|
|
61487
62502
|
}) {
|
|
61488
62503
|
const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
|
|
61489
|
-
const
|
|
62504
|
+
const size2 = attribute.size * precisionMultiplier;
|
|
61490
62505
|
const byteOffset = attribute.byteOffset;
|
|
61491
62506
|
const toStartIndices = attribute.startIndices;
|
|
61492
62507
|
const hasStartIndices = fromStartIndices && toStartIndices;
|
|
@@ -61502,7 +62517,7 @@ function padBuffer({
|
|
|
61502
62517
|
const getter = getData;
|
|
61503
62518
|
getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
|
|
61504
62519
|
}
|
|
61505
|
-
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);
|
|
61506
62521
|
const source = buffer.getData({
|
|
61507
62522
|
length: fromLength
|
|
61508
62523
|
});
|
|
@@ -61512,7 +62527,7 @@ function padBuffer({
|
|
|
61512
62527
|
target: data,
|
|
61513
62528
|
sourceStartIndices: fromStartIndices,
|
|
61514
62529
|
targetStartIndices: toStartIndices,
|
|
61515
|
-
size,
|
|
62530
|
+
size: size2,
|
|
61516
62531
|
getData: getMissingData
|
|
61517
62532
|
});
|
|
61518
62533
|
if (buffer.byteLength < data.byteLength + byteOffset) {
|
|
@@ -61768,7 +62783,7 @@ class Attribute extends DataColumn {
|
|
|
61768
62783
|
settings,
|
|
61769
62784
|
state,
|
|
61770
62785
|
value,
|
|
61771
|
-
size,
|
|
62786
|
+
size: size2,
|
|
61772
62787
|
startIndices
|
|
61773
62788
|
} = attribute;
|
|
61774
62789
|
const {
|
|
@@ -61794,9 +62809,9 @@ class Attribute extends DataColumn {
|
|
|
61794
62809
|
let startIndex = i2;
|
|
61795
62810
|
for (const item of objectValue) {
|
|
61796
62811
|
attribute._normalizeValue(item, value, startIndex);
|
|
61797
|
-
startIndex +=
|
|
62812
|
+
startIndex += size2;
|
|
61798
62813
|
}
|
|
61799
|
-
} else if (objectValue && objectValue.length >
|
|
62814
|
+
} else if (objectValue && objectValue.length > size2) {
|
|
61800
62815
|
value.set(objectValue, i2);
|
|
61801
62816
|
} else {
|
|
61802
62817
|
attribute._normalizeValue(objectValue, objectInfo.target, 0);
|
|
@@ -61807,10 +62822,10 @@ class Attribute extends DataColumn {
|
|
|
61807
62822
|
count: numVertices
|
|
61808
62823
|
});
|
|
61809
62824
|
}
|
|
61810
|
-
i2 += numVertices *
|
|
62825
|
+
i2 += numVertices * size2;
|
|
61811
62826
|
} else {
|
|
61812
62827
|
attribute._normalizeValue(objectValue, value, i2);
|
|
61813
|
-
i2 +=
|
|
62828
|
+
i2 += size2;
|
|
61814
62829
|
}
|
|
61815
62830
|
}
|
|
61816
62831
|
}
|
|
@@ -67008,14 +68023,14 @@ function reversePolygon(points, options) {
|
|
|
67008
68023
|
const {
|
|
67009
68024
|
start = 0,
|
|
67010
68025
|
end = points.length,
|
|
67011
|
-
size = 2
|
|
68026
|
+
size: size2 = 2
|
|
67012
68027
|
} = options;
|
|
67013
|
-
const numPoints = (end - start) /
|
|
68028
|
+
const numPoints = (end - start) / size2;
|
|
67014
68029
|
const numSwaps = Math.floor(numPoints / 2);
|
|
67015
68030
|
for (let i2 = 0; i2 < numSwaps; ++i2) {
|
|
67016
|
-
const b1 = start + i2 *
|
|
67017
|
-
const b2 = start + (numPoints - 1 - i2) *
|
|
67018
|
-
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) {
|
|
67019
68034
|
const tmp = points[b1 + j];
|
|
67020
68035
|
points[b1 + j] = points[b2 + j];
|
|
67021
68036
|
points[b2 + j] = tmp;
|
|
@@ -67023,12 +68038,12 @@ function reversePolygon(points, options) {
|
|
|
67023
68038
|
}
|
|
67024
68039
|
}
|
|
67025
68040
|
function push(target, source) {
|
|
67026
|
-
const
|
|
68041
|
+
const size2 = source.length;
|
|
67027
68042
|
const startIndex = target.length;
|
|
67028
68043
|
if (startIndex > 0) {
|
|
67029
68044
|
let isDuplicate = true;
|
|
67030
|
-
for (let i2 = 0; i2 <
|
|
67031
|
-
if (target[startIndex -
|
|
68045
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68046
|
+
if (target[startIndex - size2 + i2] !== source[i2]) {
|
|
67032
68047
|
isDuplicate = false;
|
|
67033
68048
|
break;
|
|
67034
68049
|
}
|
|
@@ -67037,20 +68052,20 @@ function push(target, source) {
|
|
|
67037
68052
|
return false;
|
|
67038
68053
|
}
|
|
67039
68054
|
}
|
|
67040
|
-
for (let i2 = 0; i2 <
|
|
68055
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67041
68056
|
target[startIndex + i2] = source[i2];
|
|
67042
68057
|
}
|
|
67043
68058
|
return true;
|
|
67044
68059
|
}
|
|
67045
68060
|
function copy(target, source) {
|
|
67046
|
-
const
|
|
67047
|
-
for (let i2 = 0; i2 <
|
|
68061
|
+
const size2 = source.length;
|
|
68062
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67048
68063
|
target[i2] = source[i2];
|
|
67049
68064
|
}
|
|
67050
68065
|
}
|
|
67051
|
-
function getPointAtIndex(positions, index2,
|
|
67052
|
-
const startI = offset2 + index2 *
|
|
67053
|
-
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++) {
|
|
67054
68069
|
out[i2] = positions[startI + i2];
|
|
67055
68070
|
}
|
|
67056
68071
|
return out;
|
|
@@ -67088,24 +68103,24 @@ function bitCode(p, bbox2) {
|
|
|
67088
68103
|
}
|
|
67089
68104
|
function cutPolylineByGrid(positions, options) {
|
|
67090
68105
|
const {
|
|
67091
|
-
size = 2,
|
|
68106
|
+
size: size2 = 2,
|
|
67092
68107
|
broken = false,
|
|
67093
68108
|
gridResolution = 10,
|
|
67094
68109
|
gridOffset = [0, 0],
|
|
67095
68110
|
startIndex = 0,
|
|
67096
68111
|
endIndex = positions.length
|
|
67097
68112
|
} = options || {};
|
|
67098
|
-
const numPoints = (endIndex - startIndex) /
|
|
68113
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67099
68114
|
let part = [];
|
|
67100
68115
|
const result = [part];
|
|
67101
|
-
const a2 = getPointAtIndex(positions, 0,
|
|
68116
|
+
const a2 = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67102
68117
|
let b;
|
|
67103
68118
|
let codeB;
|
|
67104
68119
|
const cell = getGridCell(a2, gridResolution, gridOffset, []);
|
|
67105
68120
|
const scratchPoint = [];
|
|
67106
68121
|
push(part, a2);
|
|
67107
68122
|
for (let i2 = 1; i2 < numPoints; i2++) {
|
|
67108
|
-
b = getPointAtIndex(positions, i2,
|
|
68123
|
+
b = getPointAtIndex(positions, i2, size2, startIndex, b);
|
|
67109
68124
|
codeB = bitCode(b, cell);
|
|
67110
68125
|
while (codeB) {
|
|
67111
68126
|
intersect(a2, b, codeB, cell, scratchPoint);
|
|
@@ -67117,7 +68132,7 @@ function cutPolylineByGrid(positions, options) {
|
|
|
67117
68132
|
push(part, scratchPoint);
|
|
67118
68133
|
copy(a2, scratchPoint);
|
|
67119
68134
|
moveToNeighborCell(cell, gridResolution, codeB);
|
|
67120
|
-
if (broken && part.length >
|
|
68135
|
+
if (broken && part.length > size2) {
|
|
67121
68136
|
part = [];
|
|
67122
68137
|
result.push(part);
|
|
67123
68138
|
push(part, a2);
|
|
@@ -67142,7 +68157,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67142
68157
|
return [];
|
|
67143
68158
|
}
|
|
67144
68159
|
const {
|
|
67145
|
-
size = 2,
|
|
68160
|
+
size: size2 = 2,
|
|
67146
68161
|
gridResolution = 10,
|
|
67147
68162
|
gridOffset = [0, 0],
|
|
67148
68163
|
edgeTypes = false
|
|
@@ -67150,7 +68165,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67150
68165
|
const result = [];
|
|
67151
68166
|
const queue = [{
|
|
67152
68167
|
pos: positions,
|
|
67153
|
-
types: edgeTypes ? new Array(positions.length /
|
|
68168
|
+
types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
|
|
67154
68169
|
holes: holeIndices || []
|
|
67155
68170
|
}];
|
|
67156
68171
|
const bbox2 = [[], []];
|
|
@@ -67161,11 +68176,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67161
68176
|
types,
|
|
67162
68177
|
holes
|
|
67163
68178
|
} = queue.shift();
|
|
67164
|
-
getBoundingBox$2(pos,
|
|
68179
|
+
getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
|
|
67165
68180
|
cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
|
|
67166
68181
|
const code = bitCode(bbox2[1], cell);
|
|
67167
68182
|
if (code) {
|
|
67168
|
-
let parts = bisectPolygon(pos, types,
|
|
68183
|
+
let parts = bisectPolygon(pos, types, size2, 0, holes[0] || pos.length, cell, code);
|
|
67169
68184
|
const polygonLow = {
|
|
67170
68185
|
pos: parts[0].pos,
|
|
67171
68186
|
types: parts[0].types,
|
|
@@ -67178,7 +68193,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67178
68193
|
};
|
|
67179
68194
|
queue.push(polygonLow, polygonHigh);
|
|
67180
68195
|
for (let i2 = 0; i2 < holes.length; i2++) {
|
|
67181
|
-
parts = bisectPolygon(pos, types,
|
|
68196
|
+
parts = bisectPolygon(pos, types, size2, holes[i2], holes[i2 + 1] || pos.length, cell, code);
|
|
67182
68197
|
if (parts[0]) {
|
|
67183
68198
|
polygonLow.holes.push(polygonLow.pos.length);
|
|
67184
68199
|
polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
|
|
@@ -67209,8 +68224,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67209
68224
|
}
|
|
67210
68225
|
return result;
|
|
67211
68226
|
}
|
|
67212
|
-
function bisectPolygon(positions, edgeTypes,
|
|
67213
|
-
const numPoints = (endIndex - startIndex) /
|
|
68227
|
+
function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
|
|
68228
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67214
68229
|
const resultLow = [];
|
|
67215
68230
|
const resultHigh = [];
|
|
67216
68231
|
const typesLow = [];
|
|
@@ -67219,15 +68234,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
|
|
|
67219
68234
|
let p;
|
|
67220
68235
|
let side;
|
|
67221
68236
|
let type;
|
|
67222
|
-
const prev2 = getPointAtIndex(positions, numPoints - 1,
|
|
68237
|
+
const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
|
|
67223
68238
|
let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
|
|
67224
68239
|
let prevType = edgeTypes && edgeTypes[numPoints - 1];
|
|
67225
68240
|
let lowPointCount = 0;
|
|
67226
68241
|
let highPointCount = 0;
|
|
67227
68242
|
for (let i2 = 0; i2 < numPoints; i2++) {
|
|
67228
|
-
p = getPointAtIndex(positions, i2,
|
|
68243
|
+
p = getPointAtIndex(positions, i2, size2, startIndex, p);
|
|
67229
68244
|
side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
|
|
67230
|
-
type = edgeTypes && edgeTypes[startIndex /
|
|
68245
|
+
type = edgeTypes && edgeTypes[startIndex / size2 + i2];
|
|
67231
68246
|
if (side && prevSide && prevSide !== side) {
|
|
67232
68247
|
intersect(prev2, p, edge, bbox2, scratchPoint);
|
|
67233
68248
|
push(resultLow, scratchPoint) && typesLow.push(prevType);
|
|
@@ -67281,12 +68296,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
|
|
|
67281
68296
|
cell[2] -= gridResolution;
|
|
67282
68297
|
}
|
|
67283
68298
|
}
|
|
67284
|
-
function getBoundingBox$2(positions,
|
|
68299
|
+
function getBoundingBox$2(positions, size2, endIndex, out) {
|
|
67285
68300
|
let minX = Infinity;
|
|
67286
68301
|
let maxX = -Infinity;
|
|
67287
68302
|
let minY = Infinity;
|
|
67288
68303
|
let maxY = -Infinity;
|
|
67289
|
-
for (let i2 = 0; i2 < endIndex; i2 +=
|
|
68304
|
+
for (let i2 = 0; i2 < endIndex; i2 += size2) {
|
|
67290
68305
|
const x = positions[i2];
|
|
67291
68306
|
const y = positions[i2 + 1];
|
|
67292
68307
|
minX = x < minX ? x : minX;
|
|
@@ -67303,29 +68318,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
|
|
|
67303
68318
|
const DEFAULT_MAX_LATITUDE = 85.051129;
|
|
67304
68319
|
function cutPolylineByMercatorBounds(positions, options) {
|
|
67305
68320
|
const {
|
|
67306
|
-
size = 2,
|
|
68321
|
+
size: size2 = 2,
|
|
67307
68322
|
startIndex = 0,
|
|
67308
68323
|
endIndex = positions.length,
|
|
67309
68324
|
normalize: normalize2 = true
|
|
67310
68325
|
} = options || {};
|
|
67311
68326
|
const newPositions = positions.slice(startIndex, endIndex);
|
|
67312
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
68327
|
+
wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
|
|
67313
68328
|
const parts = cutPolylineByGrid(newPositions, {
|
|
67314
|
-
size,
|
|
68329
|
+
size: size2,
|
|
67315
68330
|
broken: true,
|
|
67316
68331
|
gridResolution: 360,
|
|
67317
68332
|
gridOffset: [-180, -180]
|
|
67318
68333
|
});
|
|
67319
68334
|
if (normalize2) {
|
|
67320
68335
|
for (const part of parts) {
|
|
67321
|
-
shiftLongitudesIntoRange(part,
|
|
68336
|
+
shiftLongitudesIntoRange(part, size2);
|
|
67322
68337
|
}
|
|
67323
68338
|
}
|
|
67324
68339
|
return parts;
|
|
67325
68340
|
}
|
|
67326
68341
|
function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
67327
68342
|
const {
|
|
67328
|
-
size = 2,
|
|
68343
|
+
size: size2 = 2,
|
|
67329
68344
|
normalize: normalize2 = true,
|
|
67330
68345
|
edgeTypes = false
|
|
67331
68346
|
} = options || {};
|
|
@@ -67337,36 +68352,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
|
67337
68352
|
for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
|
|
67338
68353
|
const srcEndIndex = holeIndices[ringIndex] || positions.length;
|
|
67339
68354
|
const targetStartIndex = targetIndex;
|
|
67340
|
-
const splitIndex = findSplitIndex(positions,
|
|
68355
|
+
const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
|
|
67341
68356
|
for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
|
|
67342
68357
|
newPositions[targetIndex++] = positions[i2];
|
|
67343
68358
|
}
|
|
67344
68359
|
for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
|
|
67345
68360
|
newPositions[targetIndex++] = positions[i2];
|
|
67346
68361
|
}
|
|
67347
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
67348
|
-
insertPoleVertices(newPositions,
|
|
68362
|
+
wrapLongitudesForShortestPath(newPositions, size2, targetStartIndex, targetIndex);
|
|
68363
|
+
insertPoleVertices(newPositions, size2, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
|
|
67349
68364
|
srcStartIndex = srcEndIndex;
|
|
67350
68365
|
newHoleIndices[ringIndex] = targetIndex;
|
|
67351
68366
|
}
|
|
67352
68367
|
newHoleIndices.pop();
|
|
67353
68368
|
const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
|
|
67354
|
-
size,
|
|
68369
|
+
size: size2,
|
|
67355
68370
|
gridResolution: 360,
|
|
67356
68371
|
gridOffset: [-180, -180],
|
|
67357
68372
|
edgeTypes
|
|
67358
68373
|
});
|
|
67359
68374
|
if (normalize2) {
|
|
67360
68375
|
for (const part of parts) {
|
|
67361
|
-
shiftLongitudesIntoRange(part.positions,
|
|
68376
|
+
shiftLongitudesIntoRange(part.positions, size2);
|
|
67362
68377
|
}
|
|
67363
68378
|
}
|
|
67364
68379
|
return parts;
|
|
67365
68380
|
}
|
|
67366
|
-
function findSplitIndex(positions,
|
|
68381
|
+
function findSplitIndex(positions, size2, startIndex, endIndex) {
|
|
67367
68382
|
let maxLat = -1;
|
|
67368
68383
|
let pointIndex = -1;
|
|
67369
|
-
for (let i2 = startIndex + 1; i2 < endIndex; i2 +=
|
|
68384
|
+
for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
|
|
67370
68385
|
const lat = Math.abs(positions[i2]);
|
|
67371
68386
|
if (lat > maxLat) {
|
|
67372
68387
|
maxLat = lat;
|
|
@@ -67375,11 +68390,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
|
|
|
67375
68390
|
}
|
|
67376
68391
|
return pointIndex;
|
|
67377
68392
|
}
|
|
67378
|
-
function insertPoleVertices(positions,
|
|
68393
|
+
function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
|
|
67379
68394
|
const firstLng = positions[startIndex];
|
|
67380
|
-
const lastLng = positions[endIndex -
|
|
68395
|
+
const lastLng = positions[endIndex - size2];
|
|
67381
68396
|
if (Math.abs(firstLng - lastLng) > 180) {
|
|
67382
|
-
const p = getPointAtIndex(positions, 0,
|
|
68397
|
+
const p = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67383
68398
|
p[0] += Math.round((lastLng - firstLng) / 360) * 360;
|
|
67384
68399
|
push(positions, p);
|
|
67385
68400
|
p[1] = Math.sign(p[1]) * maxLatitude;
|
|
@@ -67388,10 +68403,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
|
|
|
67388
68403
|
push(positions, p);
|
|
67389
68404
|
}
|
|
67390
68405
|
}
|
|
67391
|
-
function wrapLongitudesForShortestPath(positions,
|
|
68406
|
+
function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
|
|
67392
68407
|
let prevLng = positions[0];
|
|
67393
68408
|
let lng;
|
|
67394
|
-
for (let i2 = startIndex; i2 < endIndex; i2 +=
|
|
68409
|
+
for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
|
|
67395
68410
|
lng = positions[i2];
|
|
67396
68411
|
const delta = lng - prevLng;
|
|
67397
68412
|
if (delta > 180 || delta < -180) {
|
|
@@ -67400,11 +68415,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
|
|
|
67400
68415
|
positions[i2] = prevLng = lng;
|
|
67401
68416
|
}
|
|
67402
68417
|
}
|
|
67403
|
-
function shiftLongitudesIntoRange(positions,
|
|
68418
|
+
function shiftLongitudesIntoRange(positions, size2) {
|
|
67404
68419
|
let refLng;
|
|
67405
|
-
const pointCount = positions.length /
|
|
68420
|
+
const pointCount = positions.length / size2;
|
|
67406
68421
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67407
|
-
refLng = positions[i2 *
|
|
68422
|
+
refLng = positions[i2 * size2];
|
|
67408
68423
|
if ((refLng + 180) % 360 !== 0) {
|
|
67409
68424
|
break;
|
|
67410
68425
|
}
|
|
@@ -67414,7 +68429,7 @@ function shiftLongitudesIntoRange(positions, size) {
|
|
|
67414
68429
|
return;
|
|
67415
68430
|
}
|
|
67416
68431
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67417
|
-
positions[i2 *
|
|
68432
|
+
positions[i2 * size2] += delta;
|
|
67418
68433
|
}
|
|
67419
68434
|
}
|
|
67420
68435
|
class ColumnGeometry extends Geometry {
|
|
@@ -67813,14 +68828,14 @@ class GridCellLayer extends ColumnLayer {
|
|
|
67813
68828
|
}
|
|
67814
68829
|
_defineProperty(GridCellLayer, "layerName", "GridCellLayer");
|
|
67815
68830
|
_defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
|
|
67816
|
-
function normalizePath(path,
|
|
68831
|
+
function normalizePath(path, size2, gridResolution, wrapLongitude) {
|
|
67817
68832
|
let flatPath;
|
|
67818
68833
|
if (Array.isArray(path[0])) {
|
|
67819
|
-
const length2 = path.length *
|
|
68834
|
+
const length2 = path.length * size2;
|
|
67820
68835
|
flatPath = new Array(length2);
|
|
67821
68836
|
for (let i2 = 0; i2 < path.length; i2++) {
|
|
67822
|
-
for (let j = 0; j <
|
|
67823
|
-
flatPath[i2 *
|
|
68837
|
+
for (let j = 0; j < size2; j++) {
|
|
68838
|
+
flatPath[i2 * size2 + j] = path[i2][j] || 0;
|
|
67824
68839
|
}
|
|
67825
68840
|
}
|
|
67826
68841
|
} else {
|
|
@@ -67828,13 +68843,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
|
67828
68843
|
}
|
|
67829
68844
|
if (gridResolution) {
|
|
67830
68845
|
return cutPolylineByGrid(flatPath, {
|
|
67831
|
-
size,
|
|
68846
|
+
size: size2,
|
|
67832
68847
|
gridResolution
|
|
67833
68848
|
});
|
|
67834
68849
|
}
|
|
67835
68850
|
if (wrapLongitude) {
|
|
67836
68851
|
return cutPolylineByMercatorBounds(flatPath, {
|
|
67837
|
-
size
|
|
68852
|
+
size: size2
|
|
67838
68853
|
});
|
|
67839
68854
|
}
|
|
67840
68855
|
return flatPath;
|
|
@@ -67877,11 +68892,11 @@ class PathTesselator extends Tesselator {
|
|
|
67877
68892
|
}
|
|
67878
68893
|
getGeometrySize(path) {
|
|
67879
68894
|
if (isCut$1(path)) {
|
|
67880
|
-
let
|
|
68895
|
+
let size2 = 0;
|
|
67881
68896
|
for (const subPath of path) {
|
|
67882
|
-
|
|
68897
|
+
size2 += this.getGeometrySize(subPath);
|
|
67883
68898
|
}
|
|
67884
|
-
return
|
|
68899
|
+
return size2;
|
|
67885
68900
|
}
|
|
67886
68901
|
const numPoints = this.getPathLength(path);
|
|
67887
68902
|
if (numPoints < 2) {
|
|
@@ -68689,34 +69704,34 @@ function isNestedRingClosed(simplePolygon) {
|
|
|
68689
69704
|
const p1 = simplePolygon[simplePolygon.length - 1];
|
|
68690
69705
|
return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
|
|
68691
69706
|
}
|
|
68692
|
-
function isFlatRingClosed(positions,
|
|
68693
|
-
for (let i2 = 0; i2 <
|
|
68694
|
-
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]) {
|
|
68695
69710
|
return false;
|
|
68696
69711
|
}
|
|
68697
69712
|
}
|
|
68698
69713
|
return true;
|
|
68699
69714
|
}
|
|
68700
|
-
function copyNestedRing(target, targetStartIndex, simplePolygon,
|
|
69715
|
+
function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
|
|
68701
69716
|
let targetIndex = targetStartIndex;
|
|
68702
69717
|
const len2 = simplePolygon.length;
|
|
68703
69718
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
68704
|
-
for (let j = 0; j <
|
|
69719
|
+
for (let j = 0; j < size2; j++) {
|
|
68705
69720
|
target[targetIndex++] = simplePolygon[i2][j] || 0;
|
|
68706
69721
|
}
|
|
68707
69722
|
}
|
|
68708
69723
|
if (!isNestedRingClosed(simplePolygon)) {
|
|
68709
|
-
for (let j = 0; j <
|
|
69724
|
+
for (let j = 0; j < size2; j++) {
|
|
68710
69725
|
target[targetIndex++] = simplePolygon[0][j] || 0;
|
|
68711
69726
|
}
|
|
68712
69727
|
}
|
|
68713
69728
|
windingOptions.start = targetStartIndex;
|
|
68714
69729
|
windingOptions.end = targetIndex;
|
|
68715
|
-
windingOptions.size =
|
|
69730
|
+
windingOptions.size = size2;
|
|
68716
69731
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68717
69732
|
return targetIndex;
|
|
68718
69733
|
}
|
|
68719
|
-
function copyFlatRing(target, targetStartIndex, positions,
|
|
69734
|
+
function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
|
|
68720
69735
|
srcEndIndex = srcEndIndex || positions.length;
|
|
68721
69736
|
const srcLength = srcEndIndex - srcStartIndex;
|
|
68722
69737
|
if (srcLength <= 0) {
|
|
@@ -68726,14 +69741,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
|
|
|
68726
69741
|
for (let i2 = 0; i2 < srcLength; i2++) {
|
|
68727
69742
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68728
69743
|
}
|
|
68729
|
-
if (!isFlatRingClosed(positions,
|
|
68730
|
-
for (let i2 = 0; i2 <
|
|
69744
|
+
if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
|
|
69745
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68731
69746
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68732
69747
|
}
|
|
68733
69748
|
}
|
|
68734
69749
|
windingOptions.start = targetStartIndex;
|
|
68735
69750
|
windingOptions.end = targetIndex;
|
|
68736
|
-
windingOptions.size =
|
|
69751
|
+
windingOptions.size = size2;
|
|
68737
69752
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68738
69753
|
return targetIndex;
|
|
68739
69754
|
}
|
|
@@ -68864,11 +69879,11 @@ class PolygonTesselator extends Tesselator {
|
|
|
68864
69879
|
}
|
|
68865
69880
|
getGeometrySize(polygon2) {
|
|
68866
69881
|
if (isCut(polygon2)) {
|
|
68867
|
-
let
|
|
69882
|
+
let size2 = 0;
|
|
68868
69883
|
for (const subPolygon of polygon2) {
|
|
68869
|
-
|
|
69884
|
+
size2 += this.getGeometrySize(subPolygon);
|
|
68870
69885
|
}
|
|
68871
|
-
return
|
|
69886
|
+
return size2;
|
|
68872
69887
|
}
|
|
68873
69888
|
return getPositions(polygon2).length / this.positionSize;
|
|
68874
69889
|
}
|
|
@@ -69739,10 +70754,10 @@ function requireTinySdf() {
|
|
|
69739
70754
|
this.fontFamily = fontFamily || "sans-serif";
|
|
69740
70755
|
this.fontWeight = fontWeight || "normal";
|
|
69741
70756
|
this.radius = radius || 8;
|
|
69742
|
-
var
|
|
69743
|
-
var gridSize =
|
|
70757
|
+
var size2 = this.size = this.fontSize + this.buffer * 2;
|
|
70758
|
+
var gridSize = size2 + this.buffer * 2;
|
|
69744
70759
|
this.canvas = document.createElement("canvas");
|
|
69745
|
-
this.canvas.width = this.canvas.height =
|
|
70760
|
+
this.canvas.width = this.canvas.height = size2;
|
|
69746
70761
|
this.ctx = this.canvas.getContext("2d");
|
|
69747
70762
|
this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
|
|
69748
70763
|
this.ctx.textAlign = "left";
|
|
@@ -69753,7 +70768,7 @@ function requireTinySdf() {
|
|
|
69753
70768
|
this.z = new Float64Array(gridSize + 1);
|
|
69754
70769
|
this.v = new Uint16Array(gridSize);
|
|
69755
70770
|
this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
|
|
69756
|
-
this.middle = Math.round(
|
|
70771
|
+
this.middle = Math.round(size2 / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
|
|
69757
70772
|
}
|
|
69758
70773
|
function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
|
|
69759
70774
|
gridOuter.fill(INF, 0, width2 * height2);
|
|
@@ -70010,7 +71025,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70010
71025
|
const y = new Array(numCharacters);
|
|
70011
71026
|
const rowWidth = new Array(numCharacters);
|
|
70012
71027
|
const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
|
|
70013
|
-
const
|
|
71028
|
+
const size2 = [0, 0];
|
|
70014
71029
|
const rowSize = [0, 0];
|
|
70015
71030
|
let rowOffsetTop = 0;
|
|
70016
71031
|
let lineStartIndex = 0;
|
|
@@ -70031,7 +71046,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70031
71046
|
rowWidth[j] = rowSize[0];
|
|
70032
71047
|
}
|
|
70033
71048
|
rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
|
|
70034
|
-
|
|
71049
|
+
size2[0] = Math.max(size2[0], rowSize[0]);
|
|
70035
71050
|
}
|
|
70036
71051
|
lineStartIndex = lineEndIndex;
|
|
70037
71052
|
}
|
|
@@ -70042,12 +71057,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70042
71057
|
lineStartIndex++;
|
|
70043
71058
|
}
|
|
70044
71059
|
}
|
|
70045
|
-
|
|
71060
|
+
size2[1] = rowOffsetTop;
|
|
70046
71061
|
return {
|
|
70047
71062
|
x,
|
|
70048
71063
|
y,
|
|
70049
71064
|
rowWidth,
|
|
70050
|
-
size
|
|
71065
|
+
size: size2
|
|
70051
71066
|
};
|
|
70052
71067
|
}
|
|
70053
71068
|
function getTextFromBuffer({
|
|
@@ -71708,14 +72723,14 @@ class GPUGridAggregator {
|
|
|
71708
72723
|
}
|
|
71709
72724
|
static getCellData({
|
|
71710
72725
|
countsData,
|
|
71711
|
-
size = 1
|
|
72726
|
+
size: size2 = 1
|
|
71712
72727
|
}) {
|
|
71713
72728
|
const numCells = countsData.length / 4;
|
|
71714
|
-
const cellWeights = new Float32Array(numCells *
|
|
72729
|
+
const cellWeights = new Float32Array(numCells * size2);
|
|
71715
72730
|
const cellCounts = new Uint32Array(numCells);
|
|
71716
72731
|
for (let i2 = 0; i2 < numCells; i2++) {
|
|
71717
|
-
for (let sizeIndex = 0; sizeIndex <
|
|
71718
|
-
cellWeights[i2 *
|
|
72732
|
+
for (let sizeIndex = 0; sizeIndex < size2; sizeIndex++) {
|
|
72733
|
+
cellWeights[i2 * size2 + sizeIndex] = countsData[i2 * 4 + sizeIndex];
|
|
71719
72734
|
}
|
|
71720
72735
|
cellCounts[i2] = countsData[i2 * 4 + 3];
|
|
71721
72736
|
}
|
|
@@ -72696,7 +73711,7 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72696
73711
|
} = aggregationParams;
|
|
72697
73712
|
const positions = attributes.positions.value;
|
|
72698
73713
|
const {
|
|
72699
|
-
size
|
|
73714
|
+
size: size2
|
|
72700
73715
|
} = attributes.positions.getAccessor();
|
|
72701
73716
|
const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
|
|
72702
73717
|
const offsets = aggregationParams.posOffset || [180, 90];
|
|
@@ -72721,9 +73736,9 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72721
73736
|
const position2 = new Array(3);
|
|
72722
73737
|
for (const pt of iterable) {
|
|
72723
73738
|
objectInfo.index++;
|
|
72724
|
-
position2[0] = positions[objectInfo.index *
|
|
72725
|
-
position2[1] = positions[objectInfo.index *
|
|
72726
|
-
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;
|
|
72727
73742
|
const [x, y] = projectPoints ? viewport.project(position2) : position2;
|
|
72728
73743
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72729
73744
|
const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
|
|
@@ -72773,7 +73788,7 @@ function getGridLayerDataFromGridHash({
|
|
|
72773
73788
|
function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
72774
73789
|
const positions = positionAttribute.value;
|
|
72775
73790
|
const {
|
|
72776
|
-
size
|
|
73791
|
+
size: size2
|
|
72777
73792
|
} = positionAttribute.getAccessor();
|
|
72778
73793
|
let yMin = Infinity;
|
|
72779
73794
|
let yMax = -Infinity;
|
|
@@ -72782,8 +73797,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
|
72782
73797
|
let y;
|
|
72783
73798
|
let x;
|
|
72784
73799
|
for (let i2 = 0; i2 < numInstance; i2++) {
|
|
72785
|
-
x = positions[i2 *
|
|
72786
|
-
y = positions[i2 *
|
|
73800
|
+
x = positions[i2 * size2];
|
|
73801
|
+
y = positions[i2 * size2 + 1];
|
|
72787
73802
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72788
73803
|
yMin = y < yMin ? y : yMin;
|
|
72789
73804
|
yMax = y > yMax ? y : yMax;
|
|
@@ -73876,9 +74891,9 @@ function requireLong() {
|
|
|
73876
74891
|
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
73877
74892
|
var result = ZERO2;
|
|
73878
74893
|
for (var i2 = 0; i2 < str.length; i2 += 8) {
|
|
73879
|
-
var
|
|
73880
|
-
if (
|
|
73881
|
-
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));
|
|
73882
74897
|
result = result.mul(power).add(fromNumber(value));
|
|
73883
74898
|
} else {
|
|
73884
74899
|
result = result.mul(radixToPower);
|
|
@@ -76796,10 +77811,10 @@ var libh3 = function(libh32) {
|
|
|
76796
77811
|
function abortOnCannotGrowMemory(requestedSize) {
|
|
76797
77812
|
abort("OOM");
|
|
76798
77813
|
}
|
|
76799
|
-
function emscripten_realloc_buffer(
|
|
77814
|
+
function emscripten_realloc_buffer(size2) {
|
|
76800
77815
|
try {
|
|
76801
|
-
var newBuffer = new ArrayBuffer(
|
|
76802
|
-
if (newBuffer.byteLength !=
|
|
77816
|
+
var newBuffer = new ArrayBuffer(size2);
|
|
77817
|
+
if (newBuffer.byteLength != size2) {
|
|
76803
77818
|
return;
|
|
76804
77819
|
}
|
|
76805
77820
|
new Int8Array(newBuffer).set(HEAP8);
|
|
@@ -89733,8 +90748,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
|
|
|
89733
90748
|
5125: Uint32Array,
|
|
89734
90749
|
5126: Float32Array
|
|
89735
90750
|
};
|
|
89736
|
-
function getAccessorTypeFromSize(
|
|
89737
|
-
const type = TYPES[
|
|
90751
|
+
function getAccessorTypeFromSize(size2) {
|
|
90752
|
+
const type = TYPES[size2 - 1];
|
|
89738
90753
|
return type || TYPES[0];
|
|
89739
90754
|
}
|
|
89740
90755
|
function getComponentTypeFromArray(typedArray) {
|
|
@@ -90151,23 +91166,23 @@ class GLTFScenegraph {
|
|
|
90151
91166
|
return attributeName;
|
|
90152
91167
|
}
|
|
90153
91168
|
}
|
|
90154
|
-
_getAccessorMinMax(buffer,
|
|
91169
|
+
_getAccessorMinMax(buffer, size2) {
|
|
90155
91170
|
const result = {
|
|
90156
91171
|
min: null,
|
|
90157
91172
|
max: null
|
|
90158
91173
|
};
|
|
90159
|
-
if (buffer.length <
|
|
91174
|
+
if (buffer.length < size2) {
|
|
90160
91175
|
return result;
|
|
90161
91176
|
}
|
|
90162
91177
|
result.min = [];
|
|
90163
91178
|
result.max = [];
|
|
90164
|
-
const initValues = buffer.subarray(0,
|
|
91179
|
+
const initValues = buffer.subarray(0, size2);
|
|
90165
91180
|
for (const value of initValues) {
|
|
90166
91181
|
result.min.push(value);
|
|
90167
91182
|
result.max.push(value);
|
|
90168
91183
|
}
|
|
90169
|
-
for (let index2 =
|
|
90170
|
-
for (let componentIndex = 0; componentIndex <
|
|
91184
|
+
for (let index2 = size2; index2 < buffer.length; index2 += size2) {
|
|
91185
|
+
for (let componentIndex = 0; componentIndex < size2; componentIndex++) {
|
|
90171
91186
|
result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90172
91187
|
result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90173
91188
|
}
|
|
@@ -90197,9 +91212,9 @@ const DECODERS = {
|
|
|
90197
91212
|
TRIANGLES: "meshopt_decodeIndexBuffer",
|
|
90198
91213
|
INDICES: "meshopt_decodeIndexSequence"
|
|
90199
91214
|
};
|
|
90200
|
-
async function meshoptDecodeGltfBuffer(target, count2,
|
|
91215
|
+
async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter2 = "NONE") {
|
|
90201
91216
|
const instance = await loadWasmInstance();
|
|
90202
|
-
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"]]);
|
|
90203
91218
|
}
|
|
90204
91219
|
let wasmPromise;
|
|
90205
91220
|
async function loadWasmInstance() {
|
|
@@ -90230,18 +91245,18 @@ function unpack(data) {
|
|
|
90230
91245
|
}
|
|
90231
91246
|
return result.buffer.slice(0, write);
|
|
90232
91247
|
}
|
|
90233
|
-
function decode$5(instance, fun, target, count2,
|
|
91248
|
+
function decode$5(instance, fun, target, count2, size2, source, filter2) {
|
|
90234
91249
|
const sbrk = instance.exports.sbrk;
|
|
90235
91250
|
const count4 = count2 + 3 & -4;
|
|
90236
|
-
const tp = sbrk(count4 *
|
|
91251
|
+
const tp = sbrk(count4 * size2);
|
|
90237
91252
|
const sp = sbrk(source.length);
|
|
90238
91253
|
const heap = new Uint8Array(instance.exports.memory.buffer);
|
|
90239
91254
|
heap.set(source, sp);
|
|
90240
|
-
const res = fun(tp, count2,
|
|
91255
|
+
const res = fun(tp, count2, size2, sp, source.length);
|
|
90241
91256
|
if (res === 0 && filter2) {
|
|
90242
|
-
filter2(tp, count4,
|
|
91257
|
+
filter2(tp, count4, size2);
|
|
90243
91258
|
}
|
|
90244
|
-
target.set(heap.subarray(tp, tp + count2 *
|
|
91259
|
+
target.set(heap.subarray(tp, tp + count2 * size2));
|
|
90245
91260
|
sbrk(tp - sbrk(0));
|
|
90246
91261
|
if (res !== 0) {
|
|
90247
91262
|
throw new Error("Malformed buffer data: ".concat(res));
|
|
@@ -90923,11 +91938,11 @@ class DracoParser {
|
|
|
90923
91938
|
loaderAttribute.name = attributeName;
|
|
90924
91939
|
const {
|
|
90925
91940
|
value,
|
|
90926
|
-
size
|
|
91941
|
+
size: size2
|
|
90927
91942
|
} = this._getAttributeValues(dracoGeometry, loaderAttribute);
|
|
90928
91943
|
attributes[attributeName] = {
|
|
90929
91944
|
value,
|
|
90930
|
-
size,
|
|
91945
|
+
size: size2,
|
|
90931
91946
|
byteOffset: loaderAttribute.byte_offset,
|
|
90932
91947
|
byteStride: loaderAttribute.byte_stride,
|
|
90933
91948
|
normalized: loaderAttribute.normalized
|
|
@@ -91196,36 +92211,36 @@ function getGLTFAccessors(attributes) {
|
|
|
91196
92211
|
function getGLTFAccessor(attribute) {
|
|
91197
92212
|
const {
|
|
91198
92213
|
buffer,
|
|
91199
|
-
size,
|
|
92214
|
+
size: size2,
|
|
91200
92215
|
count: count2
|
|
91201
92216
|
} = getAccessorData(attribute);
|
|
91202
92217
|
const glTFAccessor = {
|
|
91203
92218
|
value: buffer,
|
|
91204
|
-
size,
|
|
92219
|
+
size: size2,
|
|
91205
92220
|
byteOffset: 0,
|
|
91206
92221
|
count: count2,
|
|
91207
|
-
type: getAccessorTypeFromSize(
|
|
92222
|
+
type: getAccessorTypeFromSize(size2),
|
|
91208
92223
|
componentType: getComponentTypeFromArray(buffer)
|
|
91209
92224
|
};
|
|
91210
92225
|
return glTFAccessor;
|
|
91211
92226
|
}
|
|
91212
92227
|
function getAccessorData(attribute) {
|
|
91213
92228
|
let buffer = attribute;
|
|
91214
|
-
let
|
|
92229
|
+
let size2 = 1;
|
|
91215
92230
|
let count2 = 0;
|
|
91216
92231
|
if (attribute && attribute.value) {
|
|
91217
92232
|
buffer = attribute.value;
|
|
91218
|
-
|
|
92233
|
+
size2 = attribute.size || 1;
|
|
91219
92234
|
}
|
|
91220
92235
|
if (buffer) {
|
|
91221
92236
|
if (!ArrayBuffer.isView(buffer)) {
|
|
91222
92237
|
buffer = toTypedArray(buffer, Float32Array);
|
|
91223
92238
|
}
|
|
91224
|
-
count2 = buffer.length /
|
|
92239
|
+
count2 = buffer.length / size2;
|
|
91225
92240
|
}
|
|
91226
92241
|
return {
|
|
91227
92242
|
buffer,
|
|
91228
|
-
size,
|
|
92243
|
+
size: size2,
|
|
91229
92244
|
count: count2
|
|
91230
92245
|
};
|
|
91231
92246
|
}
|
|
@@ -93468,8 +94483,8 @@ function getObbSize(halfAxes) {
|
|
|
93468
94483
|
const axeY = halfAxes.getColumn(1);
|
|
93469
94484
|
const axeZ = halfAxes.getColumn(2);
|
|
93470
94485
|
const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
|
|
93471
|
-
const
|
|
93472
|
-
return
|
|
94486
|
+
const size2 = farthestVertex.len();
|
|
94487
|
+
return size2;
|
|
93473
94488
|
}
|
|
93474
94489
|
const TILE_CONTENT_STATE = {
|
|
93475
94490
|
UNLOADED: 0,
|
|
@@ -95470,15 +96485,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
|
|
|
95470
96485
|
} = tile3DAccessor;
|
|
95471
96486
|
assert$c(tile3DAccessor.componentType);
|
|
95472
96487
|
const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
|
|
95473
|
-
const
|
|
96488
|
+
const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
|
|
95474
96489
|
const unpacker = UNPACKER[tile3DAccessor.type];
|
|
95475
96490
|
const packer = PACKER[tile3DAccessor.type];
|
|
95476
96491
|
byteOffset += tile3DAccessor.byteOffset;
|
|
95477
|
-
const values2 = GLType.createTypedArray(type, buffer, byteOffset,
|
|
96492
|
+
const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
|
|
95478
96493
|
return {
|
|
95479
96494
|
values: values2,
|
|
95480
96495
|
type,
|
|
95481
|
-
size,
|
|
96496
|
+
size: size2,
|
|
95482
96497
|
unpacker,
|
|
95483
96498
|
packer
|
|
95484
96499
|
};
|
|
@@ -113868,8 +114883,8 @@ function fitExtent(projection2, extent2, object2) {
|
|
|
113868
114883
|
if (clip2 != null) projection2.clipExtent(clip2);
|
|
113869
114884
|
return projection2.scale(k * 150).translate([x, y]);
|
|
113870
114885
|
}
|
|
113871
|
-
function fitSize(projection2,
|
|
113872
|
-
return fitExtent(projection2, [[0, 0],
|
|
114886
|
+
function fitSize(projection2, size2, object2) {
|
|
114887
|
+
return fitExtent(projection2, [[0, 0], size2], object2);
|
|
113873
114888
|
}
|
|
113874
114889
|
var maxDepth = 16, cosMinDistance = cos(30 * radians);
|
|
113875
114890
|
function resample(project2, delta2) {
|
|
@@ -113995,8 +115010,8 @@ function projectionMutator(projectAt) {
|
|
|
113995
115010
|
projection2.fitExtent = function(extent2, object2) {
|
|
113996
115011
|
return fitExtent(projection2, extent2, object2);
|
|
113997
115012
|
};
|
|
113998
|
-
projection2.fitSize = function(
|
|
113999
|
-
return fitSize(projection2,
|
|
115013
|
+
projection2.fitSize = function(size2, object2) {
|
|
115014
|
+
return fitSize(projection2, size2, object2);
|
|
114000
115015
|
};
|
|
114001
115016
|
function recenter() {
|
|
114002
115017
|
projectRotate = compose(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
|
|
@@ -114117,8 +115132,8 @@ function albersUsa() {
|
|
|
114117
115132
|
albersUsa2.fitExtent = function(extent2, object2) {
|
|
114118
115133
|
return fitExtent(albersUsa2, extent2, object2);
|
|
114119
115134
|
};
|
|
114120
|
-
albersUsa2.fitSize = function(
|
|
114121
|
-
return fitSize(albersUsa2,
|
|
115135
|
+
albersUsa2.fitSize = function(size2, object2) {
|
|
115136
|
+
return fitSize(albersUsa2, size2, object2);
|
|
114122
115137
|
};
|
|
114123
115138
|
function reset() {
|
|
114124
115139
|
cache2 = cacheStream = null;
|
|
@@ -114281,8 +115296,8 @@ function identity() {
|
|
|
114281
115296
|
fitExtent: function(extent2, object2) {
|
|
114282
115297
|
return fitExtent(projection2, extent2, object2);
|
|
114283
115298
|
},
|
|
114284
|
-
fitSize: function(
|
|
114285
|
-
return fitSize(projection2,
|
|
115299
|
+
fitSize: function(size2, object2) {
|
|
115300
|
+
return fitSize(projection2, size2, object2);
|
|
114286
115301
|
}
|
|
114287
115302
|
};
|
|
114288
115303
|
}
|
|
@@ -114900,18 +115915,18 @@ function requirePolygonClipping_umd() {
|
|
|
114900
115915
|
if (presort === void 0) {
|
|
114901
115916
|
presort = false;
|
|
114902
115917
|
}
|
|
114903
|
-
var
|
|
115918
|
+
var size2 = keys2.length;
|
|
114904
115919
|
var comparator2 = this._comparator;
|
|
114905
|
-
if (presort) sort(keys2, values2, 0,
|
|
115920
|
+
if (presort) sort(keys2, values2, 0, size2 - 1, comparator2);
|
|
114906
115921
|
if (this._root === null) {
|
|
114907
|
-
this._root = loadRecursive(keys2, values2, 0,
|
|
114908
|
-
this._size =
|
|
115922
|
+
this._root = loadRecursive(keys2, values2, 0, size2);
|
|
115923
|
+
this._size = size2;
|
|
114909
115924
|
} else {
|
|
114910
115925
|
var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator2);
|
|
114911
|
-
|
|
115926
|
+
size2 = this._size + size2;
|
|
114912
115927
|
this._root = sortedListToBST({
|
|
114913
115928
|
head: mergedList
|
|
114914
|
-
}, 0,
|
|
115929
|
+
}, 0, size2);
|
|
114915
115930
|
}
|
|
114916
115931
|
return this;
|
|
114917
115932
|
};
|
|
@@ -114961,9 +115976,9 @@ function requirePolygonClipping_umd() {
|
|
|
114961
115976
|
}()
|
|
114962
115977
|
);
|
|
114963
115978
|
function loadRecursive(keys2, values2, start, end) {
|
|
114964
|
-
var
|
|
114965
|
-
if (
|
|
114966
|
-
var middle = start + Math.floor(
|
|
115979
|
+
var size2 = end - start;
|
|
115980
|
+
if (size2 > 0) {
|
|
115981
|
+
var middle = start + Math.floor(size2 / 2);
|
|
114967
115982
|
var key = keys2[middle];
|
|
114968
115983
|
var data = values2[middle];
|
|
114969
115984
|
var node2 = new Node2(key, data);
|
|
@@ -115003,9 +116018,9 @@ function requirePolygonClipping_umd() {
|
|
|
115003
116018
|
return head.next;
|
|
115004
116019
|
}
|
|
115005
116020
|
function sortedListToBST(list, start, end) {
|
|
115006
|
-
var
|
|
115007
|
-
if (
|
|
115008
|
-
var middle = start + Math.floor(
|
|
116021
|
+
var size2 = end - start;
|
|
116022
|
+
if (size2 > 0) {
|
|
116023
|
+
var middle = start + Math.floor(size2 / 2);
|
|
115009
116024
|
var left = sortedListToBST(list, start, middle);
|
|
115010
116025
|
var root2 = list.head;
|
|
115011
116026
|
root2.left = left;
|
|
@@ -126067,19 +127082,19 @@ function requireExtrudeMode() {
|
|
|
126067
127082
|
if (editHandle) {
|
|
126068
127083
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126069
127084
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126070
|
-
var
|
|
126071
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126072
|
-
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);
|
|
126073
127088
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126074
127089
|
if (p1 && p2) {
|
|
126075
127090
|
var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
|
|
126076
|
-
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();
|
|
126077
127092
|
props.onEdit({
|
|
126078
127093
|
updatedData,
|
|
126079
127094
|
editType: "extruding",
|
|
126080
127095
|
editContext: {
|
|
126081
127096
|
featureIndexes: [featureIndex],
|
|
126082
|
-
positionIndexes: this.nextPositionIndexes(positionIndexes,
|
|
127097
|
+
positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
|
|
126083
127098
|
position: p3
|
|
126084
127099
|
}
|
|
126085
127100
|
});
|
|
@@ -126094,15 +127109,15 @@ function requireExtrudeMode() {
|
|
|
126094
127109
|
var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
|
|
126095
127110
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126096
127111
|
var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
|
|
126097
|
-
var
|
|
126098
|
-
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);
|
|
126099
127114
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126100
127115
|
if (p1 && p2) {
|
|
126101
127116
|
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
|
|
126102
|
-
if (!this.isOrthogonal(positionIndexes, featureIndex,
|
|
127117
|
+
if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
|
|
126103
127118
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
|
|
126104
127119
|
}
|
|
126105
|
-
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes,
|
|
127120
|
+
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
|
|
126106
127121
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
|
|
126107
127122
|
this.isPointAdded = true;
|
|
126108
127123
|
}
|
|
@@ -126126,13 +127141,13 @@ function requireExtrudeMode() {
|
|
|
126126
127141
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126127
127142
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126128
127143
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126129
|
-
var
|
|
126130
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126131
|
-
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);
|
|
126132
127147
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126133
127148
|
if (p1 && p2) {
|
|
126134
127149
|
var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
|
|
126135
|
-
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();
|
|
126136
127151
|
props.onEdit({
|
|
126137
127152
|
updatedData,
|
|
126138
127153
|
editType: "extruded",
|
|
@@ -126150,23 +127165,23 @@ function requireExtrudeMode() {
|
|
|
126150
127165
|
key: "coordinatesSize",
|
|
126151
127166
|
value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
|
|
126152
127167
|
var features = _ref.features;
|
|
126153
|
-
var
|
|
127168
|
+
var size2 = 0;
|
|
126154
127169
|
if (Array.isArray(positionIndexes)) {
|
|
126155
127170
|
var feature2 = features[featureIndex];
|
|
126156
127171
|
var coordinates2 = feature2.geometry.coordinates;
|
|
126157
127172
|
if (positionIndexes.length === 3) {
|
|
126158
127173
|
var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
|
|
126159
127174
|
if (coordinates2.length && coordinates2[a2].length) {
|
|
126160
|
-
|
|
127175
|
+
size2 = coordinates2[a2][b].length;
|
|
126161
127176
|
}
|
|
126162
127177
|
} else {
|
|
126163
127178
|
var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
|
|
126164
127179
|
if (coordinates2.length && coordinates2[_b2].length) {
|
|
126165
|
-
|
|
127180
|
+
size2 = coordinates2[_b2].length;
|
|
126166
127181
|
}
|
|
126167
127182
|
}
|
|
126168
127183
|
}
|
|
126169
|
-
return
|
|
127184
|
+
return size2;
|
|
126170
127185
|
}
|
|
126171
127186
|
}, {
|
|
126172
127187
|
key: "getBearing",
|
|
@@ -126179,15 +127194,15 @@ function requireExtrudeMode() {
|
|
|
126179
127194
|
}
|
|
126180
127195
|
}, {
|
|
126181
127196
|
key: "isOrthogonal",
|
|
126182
|
-
value: function isOrthogonal(positionIndexes, featureIndex,
|
|
127197
|
+
value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
|
|
126183
127198
|
if (!Array.isArray(positionIndexes)) {
|
|
126184
127199
|
return false;
|
|
126185
127200
|
}
|
|
126186
|
-
if (positionIndexes[positionIndexes.length - 1] ===
|
|
127201
|
+
if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
|
|
126187
127202
|
positionIndexes[positionIndexes.length - 1] = 0;
|
|
126188
127203
|
}
|
|
126189
|
-
var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
126190
|
-
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);
|
|
126191
127206
|
var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
|
|
126192
127207
|
var prevAngle = this.getBearing(currentPoint, prevPoint);
|
|
126193
127208
|
var nextAngle = this.getBearing(currentPoint, nextPoint);
|
|
@@ -126195,25 +127210,25 @@ function requireExtrudeMode() {
|
|
|
126195
127210
|
}
|
|
126196
127211
|
}, {
|
|
126197
127212
|
key: "nextPositionIndexes",
|
|
126198
|
-
value: function nextPositionIndexes(positionIndexes,
|
|
127213
|
+
value: function nextPositionIndexes(positionIndexes, size2) {
|
|
126199
127214
|
if (!Array.isArray(positionIndexes)) {
|
|
126200
127215
|
return [];
|
|
126201
127216
|
}
|
|
126202
127217
|
var next2 = _toConsumableArray(positionIndexes);
|
|
126203
127218
|
if (next2.length) {
|
|
126204
|
-
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;
|
|
126205
127220
|
}
|
|
126206
127221
|
return next2;
|
|
126207
127222
|
}
|
|
126208
127223
|
}, {
|
|
126209
127224
|
key: "prevPositionIndexes",
|
|
126210
|
-
value: function prevPositionIndexes(positionIndexes,
|
|
127225
|
+
value: function prevPositionIndexes(positionIndexes, size2) {
|
|
126211
127226
|
if (!Array.isArray(positionIndexes)) {
|
|
126212
127227
|
return [];
|
|
126213
127228
|
}
|
|
126214
127229
|
var prev2 = _toConsumableArray(positionIndexes);
|
|
126215
127230
|
if (prev2.length) {
|
|
126216
|
-
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;
|
|
126217
127232
|
}
|
|
126218
127233
|
return prev2;
|
|
126219
127234
|
}
|
|
@@ -138183,22 +139198,22 @@ function addDecoder(cases, importFn) {
|
|
|
138183
139198
|
}
|
|
138184
139199
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
138185
139200
|
}
|
|
138186
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138187
|
-
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));
|
|
138188
139203
|
addDecoder(6, () => {
|
|
138189
139204
|
throw new Error("old style JPEG compression is not supported.");
|
|
138190
139205
|
});
|
|
138191
|
-
addDecoder(7, () => import("./jpeg-
|
|
138192
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138193
|
-
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));
|
|
138194
139209
|
addDecoder(
|
|
138195
139210
|
34887,
|
|
138196
|
-
() => import("./lerc-
|
|
139211
|
+
() => import("./lerc-nZgXornh.js").then(async (m) => {
|
|
138197
139212
|
await m.zstd.init();
|
|
138198
139213
|
return m;
|
|
138199
139214
|
}).then((m) => m.default)
|
|
138200
139215
|
);
|
|
138201
|
-
addDecoder(50001, () => import("./webimage-
|
|
139216
|
+
addDecoder(50001, () => import("./webimage-C67hv5tG.js").then((m) => m.default));
|
|
138202
139217
|
function decodeRowAcc(row, stride) {
|
|
138203
139218
|
let length2 = row.length - stride;
|
|
138204
139219
|
let offset2 = 0;
|
|
@@ -139428,10 +140443,10 @@ const putShortMSB = (s2, b) => {
|
|
|
139428
140443
|
s2.pending_buf[s2.pending++] = b >>> 8 & 255;
|
|
139429
140444
|
s2.pending_buf[s2.pending++] = b & 255;
|
|
139430
140445
|
};
|
|
139431
|
-
const read_buf = (strm, buf, start,
|
|
140446
|
+
const read_buf = (strm, buf, start, size2) => {
|
|
139432
140447
|
let len2 = strm.avail_in;
|
|
139433
|
-
if (len2 >
|
|
139434
|
-
len2 =
|
|
140448
|
+
if (len2 > size2) {
|
|
140449
|
+
len2 = size2;
|
|
139435
140450
|
}
|
|
139436
140451
|
if (len2 === 0) {
|
|
139437
140452
|
return 0;
|
|
@@ -145954,9 +146969,9 @@ const SI_PREFIXES = [
|
|
|
145954
146969
|
{ symbol: "z", exponent: -21 },
|
|
145955
146970
|
{ symbol: "y", exponent: -24 }
|
|
145956
146971
|
];
|
|
145957
|
-
function sizeToMeters(
|
|
146972
|
+
function sizeToMeters(size2, unit2) {
|
|
145958
146973
|
if (!unit2 || unit2 === "m") {
|
|
145959
|
-
return
|
|
146974
|
+
return size2;
|
|
145960
146975
|
}
|
|
145961
146976
|
if (unit2.length > 1) {
|
|
145962
146977
|
let unitPrefix = unit2.substring(0, unit2.length - 1);
|
|
@@ -145965,7 +146980,7 @@ function sizeToMeters(size, unit2) {
|
|
|
145965
146980
|
}
|
|
145966
146981
|
const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
|
|
145967
146982
|
if (unitObj) {
|
|
145968
|
-
return
|
|
146983
|
+
return size2 * 10 ** unitObj.exponent;
|
|
145969
146984
|
}
|
|
145970
146985
|
}
|
|
145971
146986
|
throw new Error("Received unknown unit");
|
|
@@ -146869,7 +147884,7 @@ const defaultProps$2$1 = {
|
|
|
146869
147884
|
};
|
|
146870
147885
|
const ScaleBarLayer = class extends CompositeLayer {
|
|
146871
147886
|
renderLayers() {
|
|
146872
|
-
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;
|
|
146873
147888
|
const boundingBox = makeBoundingBox(viewState);
|
|
146874
147889
|
const { zoom } = viewState;
|
|
146875
147890
|
const viewLength = boundingBox[2][0] - boundingBox[0][0];
|
|
@@ -146879,10 +147894,10 @@ const ScaleBarLayer = class extends CompositeLayer {
|
|
|
146879
147894
|
(boundingBox[2][1] - boundingBox[0][1]) * 7e-3
|
|
146880
147895
|
);
|
|
146881
147896
|
let adjustedBarLength = barLength;
|
|
146882
|
-
let displayNumber = (barLength *
|
|
147897
|
+
let displayNumber = (barLength * size2).toPrecision(5);
|
|
146883
147898
|
let displayUnit = unit2;
|
|
146884
147899
|
if (snap) {
|
|
146885
|
-
const meterSize = sizeToMeters(
|
|
147900
|
+
const meterSize = sizeToMeters(size2, unit2);
|
|
146886
147901
|
const numUnits = barLength * meterSize;
|
|
146887
147902
|
const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
|
|
146888
147903
|
adjustedBarLength = snappedOrigUnits / meterSize;
|
|
@@ -151947,7 +152962,7 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
151947
152962
|
}
|
|
151948
152963
|
const newCellOrdering = !cellColors || cellColors.size === 0 ? obsIndex : Array.from(cellColors.keys());
|
|
151949
152964
|
const oldCellOrdering = transpose2 ? axisTopLabels : axisLeftLabels;
|
|
151950
|
-
if (!isEqual$
|
|
152965
|
+
if (!isEqual$2(oldCellOrdering, newCellOrdering)) {
|
|
151951
152966
|
if (transpose2) {
|
|
151952
152967
|
setAxisTopLabels(newCellOrdering);
|
|
151953
152968
|
} else {
|