@vitessce/scatterplot-embedding 3.1.0 → 3.1.2
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-2c31a4dd.js → deflate-7455633d.js} +1 -1
- package/dist/{index-d8ac68c1.js → index-841c8a1c.js} +784 -739
- package/dist/index.js +1 -1
- package/dist/{jpeg-07b73b88.js → jpeg-e27c7111.js} +1 -1
- package/dist/{lerc-8b917065.js → lerc-a121511e.js} +1 -1
- package/dist/{lzw-ad66c72b.js → lzw-6da36e65.js} +1 -1
- package/dist/{packbits-8c472a15.js → packbits-f9f4e24f.js} +1 -1
- package/dist/{raw-58aad486.js → raw-589273c1.js} +1 -1
- package/dist/{webimage-adebb0c3.js → webimage-532eb642.js} +1 -1
- package/dist-tsc/EmbeddingScatterplotOptions.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotOptions.js +5 -4
- package/dist-tsc/EmbeddingScatterplotSubscriber.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.js +1 -2
- package/package.json +7 -8
- package/src/EmbeddingScatterplotOptions.js +12 -7
- package/src/EmbeddingScatterplotSubscriber.js +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import React__default, { useLayoutEffect, useEffect, cloneElement, createElement, forwardRef, useState, useRef, useMemo, useImperativeHandle, Children, isValidElement, PureComponent, useCallback } from "react";
|
|
2
|
+
import React__default, { useLayoutEffect, useEffect, cloneElement, createElement, forwardRef, useState, useRef, useMemo, useImperativeHandle, Children, isValidElement, PureComponent, useId, useCallback } from "react";
|
|
3
3
|
import { usePlotOptionsStyles, OptionsContainer, CellColorEncodingOption, OptionSelect, useVitessceContainer, useComponentHover, useComponentViewInfo, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useInitialCoordination, useDeckCanvasSize, useMultiObsLabels, useObsEmbeddingData, useObsSetsData, useFeatureSelection, useObsFeatureMatrixIndices, useFeatureLabelsData, useReady, useUrls, useGetObsInfo, useUint8FeatureSelection, useExpressionValueGetter, TitleInfo } from "@vitessce/vit-s";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
function _mergeNamespaces(n2, m2) {
|
|
@@ -787,9 +787,9 @@ var reactJsxRuntime_development = {};
|
|
|
787
787
|
}
|
|
788
788
|
if (isArray2(node)) {
|
|
789
789
|
for (var i2 = 0; i2 < node.length; i2++) {
|
|
790
|
-
var
|
|
791
|
-
if (isValidElement2(
|
|
792
|
-
validateExplicitKey(
|
|
790
|
+
var child = node[i2];
|
|
791
|
+
if (isValidElement2(child)) {
|
|
792
|
+
validateExplicitKey(child, parentType);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
} else if (isValidElement2(node)) {
|
|
@@ -2310,332 +2310,6 @@ function createRange(fromRight) {
|
|
|
2310
2310
|
}
|
|
2311
2311
|
var range$4 = createRange();
|
|
2312
2312
|
const range$5 = range$4;
|
|
2313
|
-
var irregularPlurals$1 = { exports: {} };
|
|
2314
|
-
const addendum = "addenda";
|
|
2315
|
-
const aircraft = "aircraft";
|
|
2316
|
-
const alga = "algae";
|
|
2317
|
-
const alumna = "alumnae";
|
|
2318
|
-
const alumnus = "alumni";
|
|
2319
|
-
const amoeba = "amoebae";
|
|
2320
|
-
const analysis = "analyses";
|
|
2321
|
-
const antenna = "antennae";
|
|
2322
|
-
const antithesis = "antitheses";
|
|
2323
|
-
const apex = "apices";
|
|
2324
|
-
const appendix = "appendices";
|
|
2325
|
-
const automaton = "automata";
|
|
2326
|
-
const axis$1 = "axes";
|
|
2327
|
-
const bacillus = "bacilli";
|
|
2328
|
-
const bacterium = "bacteria";
|
|
2329
|
-
const barracks = "barracks";
|
|
2330
|
-
const basis$1 = "bases";
|
|
2331
|
-
const beau = "beaux";
|
|
2332
|
-
const bison = "bison";
|
|
2333
|
-
const buffalo = "buffalo";
|
|
2334
|
-
const bureau = "bureaus";
|
|
2335
|
-
const cactus = "cacti";
|
|
2336
|
-
const calf = "calves";
|
|
2337
|
-
const carp = "carp";
|
|
2338
|
-
const census = "censuses";
|
|
2339
|
-
const chassis = "chassis";
|
|
2340
|
-
const cherub = "cherubim";
|
|
2341
|
-
const child = "children";
|
|
2342
|
-
const cod = "cod";
|
|
2343
|
-
const codex = "codices";
|
|
2344
|
-
const concerto = "concerti";
|
|
2345
|
-
const corpus = "corpora";
|
|
2346
|
-
const crisis = "crises";
|
|
2347
|
-
const criterion = "criteria";
|
|
2348
|
-
const curriculum = "curricula";
|
|
2349
|
-
const datum$1 = "data";
|
|
2350
|
-
const deer = "deer";
|
|
2351
|
-
const diagnosis = "diagnoses";
|
|
2352
|
-
const die = "dice";
|
|
2353
|
-
const dwarf = "dwarfs";
|
|
2354
|
-
const echo = "echoes";
|
|
2355
|
-
const elf = "elves";
|
|
2356
|
-
const elk = "elk";
|
|
2357
|
-
const ellipsis = "ellipses";
|
|
2358
|
-
const embargo = "embargoes";
|
|
2359
|
-
const emphasis = "emphases";
|
|
2360
|
-
const erratum = "errata";
|
|
2361
|
-
const fez = "fezes";
|
|
2362
|
-
const firmware = "firmware";
|
|
2363
|
-
const fish = "fish";
|
|
2364
|
-
const focus = "foci";
|
|
2365
|
-
const foot = "feet";
|
|
2366
|
-
const formula = "formulae";
|
|
2367
|
-
const fungus = "fungi";
|
|
2368
|
-
const gallows = "gallows";
|
|
2369
|
-
const genus = "genera";
|
|
2370
|
-
const goose = "geese";
|
|
2371
|
-
const graffito = "graffiti";
|
|
2372
|
-
const grouse = "grouse";
|
|
2373
|
-
const half = "halves";
|
|
2374
|
-
const hero = "heroes";
|
|
2375
|
-
const hoof = "hooves";
|
|
2376
|
-
const hovercraft = "hovercraft";
|
|
2377
|
-
const hypothesis = "hypotheses";
|
|
2378
|
-
const index$1 = "indices";
|
|
2379
|
-
const kakapo = "kakapo";
|
|
2380
|
-
const knife = "knives";
|
|
2381
|
-
const larva = "larvae";
|
|
2382
|
-
const leaf = "leaves";
|
|
2383
|
-
const libretto = "libretti";
|
|
2384
|
-
const life = "lives";
|
|
2385
|
-
const loaf = "loaves";
|
|
2386
|
-
const locus = "loci";
|
|
2387
|
-
const louse = "lice";
|
|
2388
|
-
const man = "men";
|
|
2389
|
-
const matrix = "matrices";
|
|
2390
|
-
const means = "means";
|
|
2391
|
-
const medium = "media";
|
|
2392
|
-
const media = "media";
|
|
2393
|
-
const memorandum = "memoranda";
|
|
2394
|
-
const millennium = "millennia";
|
|
2395
|
-
const minutia = "minutiae";
|
|
2396
|
-
const moose = "moose";
|
|
2397
|
-
const mouse = "mice";
|
|
2398
|
-
const nebula$1 = "nebulae";
|
|
2399
|
-
const nemesis = "nemeses";
|
|
2400
|
-
const neurosis = "neuroses";
|
|
2401
|
-
const news = "news";
|
|
2402
|
-
const nucleus = "nuclei";
|
|
2403
|
-
const oasis = "oases";
|
|
2404
|
-
const offspring = "offspring";
|
|
2405
|
-
const opus = "opera";
|
|
2406
|
-
const ovum = "ova";
|
|
2407
|
-
const ox = "oxen";
|
|
2408
|
-
const paralysis = "paralyses";
|
|
2409
|
-
const parenthesis = "parentheses";
|
|
2410
|
-
const person = "people";
|
|
2411
|
-
const phenomenon = "phenomena";
|
|
2412
|
-
const phylum = "phyla";
|
|
2413
|
-
const pike = "pike";
|
|
2414
|
-
const polyhedron = "polyhedra";
|
|
2415
|
-
const potato = "potatoes";
|
|
2416
|
-
const prognosis = "prognoses";
|
|
2417
|
-
const quiz = "quizzes";
|
|
2418
|
-
const radius = "radii";
|
|
2419
|
-
const referendum = "referenda";
|
|
2420
|
-
const salmon = "salmon";
|
|
2421
|
-
const scarf = "scarves";
|
|
2422
|
-
const self$1 = "selves";
|
|
2423
|
-
const series = "series";
|
|
2424
|
-
const sheep = "sheep";
|
|
2425
|
-
const shelf = "shelves";
|
|
2426
|
-
const shrimp = "shrimp";
|
|
2427
|
-
const soliloquy = "soliloquies";
|
|
2428
|
-
const spacecraft = "spacecraft";
|
|
2429
|
-
const species = "species";
|
|
2430
|
-
const spectrum = "spectra";
|
|
2431
|
-
const squid = "squid";
|
|
2432
|
-
const stimulus = "stimuli";
|
|
2433
|
-
const stratum = "strata";
|
|
2434
|
-
const swine = "swine";
|
|
2435
|
-
const syllabus = "syllabi";
|
|
2436
|
-
const symposium = "symposia";
|
|
2437
|
-
const synopsis = "synopses";
|
|
2438
|
-
const synthesis = "syntheses";
|
|
2439
|
-
const tableau = "tableaus";
|
|
2440
|
-
const that = "those";
|
|
2441
|
-
const thesis = "theses";
|
|
2442
|
-
const thief = "thieves";
|
|
2443
|
-
const tomato = "tomatoes";
|
|
2444
|
-
const tooth = "teeth";
|
|
2445
|
-
const trout = "trout";
|
|
2446
|
-
const tuna = "tuna";
|
|
2447
|
-
const vertebra = "vertebrae";
|
|
2448
|
-
const vertex = "vertices";
|
|
2449
|
-
const veto = "vetoes";
|
|
2450
|
-
const vita = "vitae";
|
|
2451
|
-
const vortex = "vortices";
|
|
2452
|
-
const watercraft = "watercraft";
|
|
2453
|
-
const wharf = "wharves";
|
|
2454
|
-
const wife = "wives";
|
|
2455
|
-
const wolf = "wolves";
|
|
2456
|
-
const woman = "women";
|
|
2457
|
-
const require$$0$7 = {
|
|
2458
|
-
addendum,
|
|
2459
|
-
aircraft,
|
|
2460
|
-
alga,
|
|
2461
|
-
alumna,
|
|
2462
|
-
alumnus,
|
|
2463
|
-
amoeba,
|
|
2464
|
-
analysis,
|
|
2465
|
-
antenna,
|
|
2466
|
-
antithesis,
|
|
2467
|
-
apex,
|
|
2468
|
-
appendix,
|
|
2469
|
-
automaton,
|
|
2470
|
-
axis: axis$1,
|
|
2471
|
-
bacillus,
|
|
2472
|
-
bacterium,
|
|
2473
|
-
barracks,
|
|
2474
|
-
basis: basis$1,
|
|
2475
|
-
beau,
|
|
2476
|
-
bison,
|
|
2477
|
-
buffalo,
|
|
2478
|
-
bureau,
|
|
2479
|
-
cactus,
|
|
2480
|
-
calf,
|
|
2481
|
-
carp,
|
|
2482
|
-
census,
|
|
2483
|
-
chassis,
|
|
2484
|
-
cherub,
|
|
2485
|
-
child,
|
|
2486
|
-
"château": "châteaus",
|
|
2487
|
-
cod,
|
|
2488
|
-
codex,
|
|
2489
|
-
concerto,
|
|
2490
|
-
corpus,
|
|
2491
|
-
crisis,
|
|
2492
|
-
criterion,
|
|
2493
|
-
curriculum,
|
|
2494
|
-
datum: datum$1,
|
|
2495
|
-
deer,
|
|
2496
|
-
diagnosis,
|
|
2497
|
-
die,
|
|
2498
|
-
dwarf,
|
|
2499
|
-
echo,
|
|
2500
|
-
elf,
|
|
2501
|
-
elk,
|
|
2502
|
-
ellipsis,
|
|
2503
|
-
embargo,
|
|
2504
|
-
emphasis,
|
|
2505
|
-
erratum,
|
|
2506
|
-
"faux pas": "faux pas",
|
|
2507
|
-
fez,
|
|
2508
|
-
firmware,
|
|
2509
|
-
fish,
|
|
2510
|
-
focus,
|
|
2511
|
-
foot,
|
|
2512
|
-
formula,
|
|
2513
|
-
fungus,
|
|
2514
|
-
gallows,
|
|
2515
|
-
genus,
|
|
2516
|
-
goose,
|
|
2517
|
-
graffito,
|
|
2518
|
-
grouse,
|
|
2519
|
-
half,
|
|
2520
|
-
hero,
|
|
2521
|
-
hoof,
|
|
2522
|
-
hovercraft,
|
|
2523
|
-
hypothesis,
|
|
2524
|
-
index: index$1,
|
|
2525
|
-
kakapo,
|
|
2526
|
-
knife,
|
|
2527
|
-
larva,
|
|
2528
|
-
leaf,
|
|
2529
|
-
libretto,
|
|
2530
|
-
life,
|
|
2531
|
-
loaf,
|
|
2532
|
-
locus,
|
|
2533
|
-
louse,
|
|
2534
|
-
man,
|
|
2535
|
-
matrix,
|
|
2536
|
-
means,
|
|
2537
|
-
medium,
|
|
2538
|
-
media,
|
|
2539
|
-
memorandum,
|
|
2540
|
-
millennium,
|
|
2541
|
-
minutia,
|
|
2542
|
-
moose,
|
|
2543
|
-
mouse,
|
|
2544
|
-
nebula: nebula$1,
|
|
2545
|
-
nemesis,
|
|
2546
|
-
neurosis,
|
|
2547
|
-
news,
|
|
2548
|
-
nucleus,
|
|
2549
|
-
oasis,
|
|
2550
|
-
offspring,
|
|
2551
|
-
opus,
|
|
2552
|
-
ovum,
|
|
2553
|
-
ox,
|
|
2554
|
-
paralysis,
|
|
2555
|
-
parenthesis,
|
|
2556
|
-
person,
|
|
2557
|
-
phenomenon,
|
|
2558
|
-
phylum,
|
|
2559
|
-
pike,
|
|
2560
|
-
polyhedron,
|
|
2561
|
-
potato,
|
|
2562
|
-
prognosis,
|
|
2563
|
-
quiz,
|
|
2564
|
-
radius,
|
|
2565
|
-
referendum,
|
|
2566
|
-
salmon,
|
|
2567
|
-
scarf,
|
|
2568
|
-
self: self$1,
|
|
2569
|
-
series,
|
|
2570
|
-
sheep,
|
|
2571
|
-
shelf,
|
|
2572
|
-
shrimp,
|
|
2573
|
-
soliloquy,
|
|
2574
|
-
spacecraft,
|
|
2575
|
-
species,
|
|
2576
|
-
spectrum,
|
|
2577
|
-
squid,
|
|
2578
|
-
stimulus,
|
|
2579
|
-
stratum,
|
|
2580
|
-
swine,
|
|
2581
|
-
syllabus,
|
|
2582
|
-
symposium,
|
|
2583
|
-
synopsis,
|
|
2584
|
-
synthesis,
|
|
2585
|
-
tableau,
|
|
2586
|
-
that,
|
|
2587
|
-
thesis,
|
|
2588
|
-
thief,
|
|
2589
|
-
"this": "these",
|
|
2590
|
-
tomato,
|
|
2591
|
-
tooth,
|
|
2592
|
-
trout,
|
|
2593
|
-
tuna,
|
|
2594
|
-
vertebra,
|
|
2595
|
-
vertex,
|
|
2596
|
-
veto,
|
|
2597
|
-
vita,
|
|
2598
|
-
vortex,
|
|
2599
|
-
watercraft,
|
|
2600
|
-
wharf,
|
|
2601
|
-
wife,
|
|
2602
|
-
wolf,
|
|
2603
|
-
woman
|
|
2604
|
-
};
|
|
2605
|
-
irregularPlurals$1.exports;
|
|
2606
|
-
(function(module2) {
|
|
2607
|
-
const irregularPlurals2 = require$$0$7;
|
|
2608
|
-
Object.defineProperty(module2, "exports", {
|
|
2609
|
-
get() {
|
|
2610
|
-
return new Map(Object.entries(irregularPlurals2));
|
|
2611
|
-
}
|
|
2612
|
-
});
|
|
2613
|
-
})(irregularPlurals$1);
|
|
2614
|
-
var irregularPluralsExports = irregularPlurals$1.exports;
|
|
2615
|
-
const irregularPlurals = /* @__PURE__ */ getDefaultExportFromCjs(irregularPluralsExports);
|
|
2616
|
-
function plur(word, plural, count2) {
|
|
2617
|
-
if (typeof plural === "number") {
|
|
2618
|
-
count2 = plural;
|
|
2619
|
-
}
|
|
2620
|
-
if (irregularPlurals.has(word.toLowerCase())) {
|
|
2621
|
-
plural = irregularPlurals.get(word.toLowerCase());
|
|
2622
|
-
const firstLetter = word.charAt(0);
|
|
2623
|
-
const isFirstLetterUpperCase = firstLetter === firstLetter.toUpperCase();
|
|
2624
|
-
if (isFirstLetterUpperCase) {
|
|
2625
|
-
plural = firstLetter + plural.slice(1);
|
|
2626
|
-
}
|
|
2627
|
-
const isWholeWordUpperCase = word === word.toUpperCase();
|
|
2628
|
-
if (isWholeWordUpperCase) {
|
|
2629
|
-
plural = plural.toUpperCase();
|
|
2630
|
-
}
|
|
2631
|
-
} else if (typeof plural !== "string") {
|
|
2632
|
-
plural = (word.replace(/(?:s|x|z|ch|sh)$/i, "$&e").replace(/([^aeiou])y$/i, "$1ie") + "s").replace(/i?e?s$/i, (match) => {
|
|
2633
|
-
const isTailLowerCase = word.slice(-1) === word.slice(-1).toLowerCase();
|
|
2634
|
-
return isTailLowerCase ? match.toLowerCase() : match.toUpperCase();
|
|
2635
|
-
});
|
|
2636
|
-
}
|
|
2637
|
-
return Math.abs(count2) === 1 ? word : plural;
|
|
2638
|
-
}
|
|
2639
2313
|
let getRandomValues$1;
|
|
2640
2314
|
const rnds8$1 = new Uint8Array(16);
|
|
2641
2315
|
function rng$1() {
|
|
@@ -4140,12 +3814,12 @@ function findCandidate(tree, a2, b, c2, d, maxDist, segTree) {
|
|
|
4140
3814
|
var node = tree.data;
|
|
4141
3815
|
while (node) {
|
|
4142
3816
|
for (var i2 = 0; i2 < node.children.length; i2++) {
|
|
4143
|
-
var
|
|
4144
|
-
var dist = node.leaf ? sqSegDist(
|
|
3817
|
+
var child = node.children[i2];
|
|
3818
|
+
var dist = node.leaf ? sqSegDist(child, b, c2) : sqSegBoxDist(b, c2, child);
|
|
4145
3819
|
if (dist > maxDist)
|
|
4146
3820
|
continue;
|
|
4147
3821
|
queue.push({
|
|
4148
|
-
node:
|
|
3822
|
+
node: child,
|
|
4149
3823
|
dist
|
|
4150
3824
|
});
|
|
4151
3825
|
}
|
|
@@ -4368,6 +4042,363 @@ function convexHull(points2) {
|
|
|
4368
4042
|
}
|
|
4369
4043
|
var concavemanExports = concaveman$2.exports;
|
|
4370
4044
|
const concaveman$1 = /* @__PURE__ */ getDefaultExportFromCjs(concavemanExports);
|
|
4045
|
+
function commonjsRequire(path) {
|
|
4046
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4047
|
+
}
|
|
4048
|
+
var pluralize$1 = { exports: {} };
|
|
4049
|
+
(function(module2, exports2) {
|
|
4050
|
+
(function(root2, pluralize2) {
|
|
4051
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
4052
|
+
module2.exports = pluralize2();
|
|
4053
|
+
} else {
|
|
4054
|
+
root2.pluralize = pluralize2();
|
|
4055
|
+
}
|
|
4056
|
+
})(commonjsGlobal, function() {
|
|
4057
|
+
var pluralRules = [];
|
|
4058
|
+
var singularRules = [];
|
|
4059
|
+
var uncountables = {};
|
|
4060
|
+
var irregularPlurals = {};
|
|
4061
|
+
var irregularSingles = {};
|
|
4062
|
+
function sanitizeRule(rule) {
|
|
4063
|
+
if (typeof rule === "string") {
|
|
4064
|
+
return new RegExp("^" + rule + "$", "i");
|
|
4065
|
+
}
|
|
4066
|
+
return rule;
|
|
4067
|
+
}
|
|
4068
|
+
function restoreCase(word, token) {
|
|
4069
|
+
if (word === token)
|
|
4070
|
+
return token;
|
|
4071
|
+
if (word === word.toLowerCase())
|
|
4072
|
+
return token.toLowerCase();
|
|
4073
|
+
if (word === word.toUpperCase())
|
|
4074
|
+
return token.toUpperCase();
|
|
4075
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
4076
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
4077
|
+
}
|
|
4078
|
+
return token.toLowerCase();
|
|
4079
|
+
}
|
|
4080
|
+
function interpolate2(str, args) {
|
|
4081
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index2) {
|
|
4082
|
+
return args[index2] || "";
|
|
4083
|
+
});
|
|
4084
|
+
}
|
|
4085
|
+
function replace(word, rule) {
|
|
4086
|
+
return word.replace(rule[0], function(match, index2) {
|
|
4087
|
+
var result = interpolate2(rule[1], arguments);
|
|
4088
|
+
if (match === "") {
|
|
4089
|
+
return restoreCase(word[index2 - 1], result);
|
|
4090
|
+
}
|
|
4091
|
+
return restoreCase(match, result);
|
|
4092
|
+
});
|
|
4093
|
+
}
|
|
4094
|
+
function sanitizeWord(token, word, rules) {
|
|
4095
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
4096
|
+
return word;
|
|
4097
|
+
}
|
|
4098
|
+
var len2 = rules.length;
|
|
4099
|
+
while (len2--) {
|
|
4100
|
+
var rule = rules[len2];
|
|
4101
|
+
if (rule[0].test(word))
|
|
4102
|
+
return replace(word, rule);
|
|
4103
|
+
}
|
|
4104
|
+
return word;
|
|
4105
|
+
}
|
|
4106
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
4107
|
+
return function(word) {
|
|
4108
|
+
var token = word.toLowerCase();
|
|
4109
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
4110
|
+
return restoreCase(word, token);
|
|
4111
|
+
}
|
|
4112
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
4113
|
+
return restoreCase(word, replaceMap[token]);
|
|
4114
|
+
}
|
|
4115
|
+
return sanitizeWord(token, word, rules);
|
|
4116
|
+
};
|
|
4117
|
+
}
|
|
4118
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
4119
|
+
return function(word) {
|
|
4120
|
+
var token = word.toLowerCase();
|
|
4121
|
+
if (keepMap.hasOwnProperty(token))
|
|
4122
|
+
return true;
|
|
4123
|
+
if (replaceMap.hasOwnProperty(token))
|
|
4124
|
+
return false;
|
|
4125
|
+
return sanitizeWord(token, token, rules) === token;
|
|
4126
|
+
};
|
|
4127
|
+
}
|
|
4128
|
+
function pluralize2(word, count2, inclusive) {
|
|
4129
|
+
var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
4130
|
+
return (inclusive ? count2 + " " : "") + pluralized;
|
|
4131
|
+
}
|
|
4132
|
+
pluralize2.plural = replaceWord(
|
|
4133
|
+
irregularSingles,
|
|
4134
|
+
irregularPlurals,
|
|
4135
|
+
pluralRules
|
|
4136
|
+
);
|
|
4137
|
+
pluralize2.isPlural = checkWord(
|
|
4138
|
+
irregularSingles,
|
|
4139
|
+
irregularPlurals,
|
|
4140
|
+
pluralRules
|
|
4141
|
+
);
|
|
4142
|
+
pluralize2.singular = replaceWord(
|
|
4143
|
+
irregularPlurals,
|
|
4144
|
+
irregularSingles,
|
|
4145
|
+
singularRules
|
|
4146
|
+
);
|
|
4147
|
+
pluralize2.isSingular = checkWord(
|
|
4148
|
+
irregularPlurals,
|
|
4149
|
+
irregularSingles,
|
|
4150
|
+
singularRules
|
|
4151
|
+
);
|
|
4152
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
4153
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
4154
|
+
};
|
|
4155
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
4156
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
4157
|
+
};
|
|
4158
|
+
pluralize2.addUncountableRule = function(word) {
|
|
4159
|
+
if (typeof word === "string") {
|
|
4160
|
+
uncountables[word.toLowerCase()] = true;
|
|
4161
|
+
return;
|
|
4162
|
+
}
|
|
4163
|
+
pluralize2.addPluralRule(word, "$0");
|
|
4164
|
+
pluralize2.addSingularRule(word, "$0");
|
|
4165
|
+
};
|
|
4166
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
4167
|
+
plural = plural.toLowerCase();
|
|
4168
|
+
single = single.toLowerCase();
|
|
4169
|
+
irregularSingles[single] = plural;
|
|
4170
|
+
irregularPlurals[plural] = single;
|
|
4171
|
+
};
|
|
4172
|
+
[
|
|
4173
|
+
// Pronouns.
|
|
4174
|
+
["I", "we"],
|
|
4175
|
+
["me", "us"],
|
|
4176
|
+
["he", "they"],
|
|
4177
|
+
["she", "they"],
|
|
4178
|
+
["them", "them"],
|
|
4179
|
+
["myself", "ourselves"],
|
|
4180
|
+
["yourself", "yourselves"],
|
|
4181
|
+
["itself", "themselves"],
|
|
4182
|
+
["herself", "themselves"],
|
|
4183
|
+
["himself", "themselves"],
|
|
4184
|
+
["themself", "themselves"],
|
|
4185
|
+
["is", "are"],
|
|
4186
|
+
["was", "were"],
|
|
4187
|
+
["has", "have"],
|
|
4188
|
+
["this", "these"],
|
|
4189
|
+
["that", "those"],
|
|
4190
|
+
// Words ending in with a consonant and `o`.
|
|
4191
|
+
["echo", "echoes"],
|
|
4192
|
+
["dingo", "dingoes"],
|
|
4193
|
+
["volcano", "volcanoes"],
|
|
4194
|
+
["tornado", "tornadoes"],
|
|
4195
|
+
["torpedo", "torpedoes"],
|
|
4196
|
+
// Ends with `us`.
|
|
4197
|
+
["genus", "genera"],
|
|
4198
|
+
["viscus", "viscera"],
|
|
4199
|
+
// Ends with `ma`.
|
|
4200
|
+
["stigma", "stigmata"],
|
|
4201
|
+
["stoma", "stomata"],
|
|
4202
|
+
["dogma", "dogmata"],
|
|
4203
|
+
["lemma", "lemmata"],
|
|
4204
|
+
["schema", "schemata"],
|
|
4205
|
+
["anathema", "anathemata"],
|
|
4206
|
+
// Other irregular rules.
|
|
4207
|
+
["ox", "oxen"],
|
|
4208
|
+
["axe", "axes"],
|
|
4209
|
+
["die", "dice"],
|
|
4210
|
+
["yes", "yeses"],
|
|
4211
|
+
["foot", "feet"],
|
|
4212
|
+
["eave", "eaves"],
|
|
4213
|
+
["goose", "geese"],
|
|
4214
|
+
["tooth", "teeth"],
|
|
4215
|
+
["quiz", "quizzes"],
|
|
4216
|
+
["human", "humans"],
|
|
4217
|
+
["proof", "proofs"],
|
|
4218
|
+
["carve", "carves"],
|
|
4219
|
+
["valve", "valves"],
|
|
4220
|
+
["looey", "looies"],
|
|
4221
|
+
["thief", "thieves"],
|
|
4222
|
+
["groove", "grooves"],
|
|
4223
|
+
["pickaxe", "pickaxes"],
|
|
4224
|
+
["passerby", "passersby"]
|
|
4225
|
+
].forEach(function(rule) {
|
|
4226
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
4227
|
+
});
|
|
4228
|
+
[
|
|
4229
|
+
[/s?$/i, "s"],
|
|
4230
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
4231
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
4232
|
+
[/(ax|test)is$/i, "$1es"],
|
|
4233
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
4234
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
4235
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
4236
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
4237
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
4238
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
4239
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
4240
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
4241
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
4242
|
+
[/sis$/i, "ses"],
|
|
4243
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
4244
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
4245
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
4246
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
4247
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
4248
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
4249
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
4250
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
4251
|
+
[/eaux$/i, "$0"],
|
|
4252
|
+
[/m[ae]n$/i, "men"],
|
|
4253
|
+
["thou", "you"]
|
|
4254
|
+
].forEach(function(rule) {
|
|
4255
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
4256
|
+
});
|
|
4257
|
+
[
|
|
4258
|
+
[/s$/i, ""],
|
|
4259
|
+
[/(ss)$/i, "$1"],
|
|
4260
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
4261
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
4262
|
+
[/ies$/i, "y"],
|
|
4263
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
4264
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
4265
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
4266
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
4267
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
4268
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
4269
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
4270
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
4271
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
4272
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
4273
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
4274
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
4275
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
4276
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
4277
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
4278
|
+
[/(child)ren$/i, "$1"],
|
|
4279
|
+
[/(eau)x?$/i, "$1"],
|
|
4280
|
+
[/men$/i, "man"]
|
|
4281
|
+
].forEach(function(rule) {
|
|
4282
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
4283
|
+
});
|
|
4284
|
+
[
|
|
4285
|
+
// Singular words with no plurals.
|
|
4286
|
+
"adulthood",
|
|
4287
|
+
"advice",
|
|
4288
|
+
"agenda",
|
|
4289
|
+
"aid",
|
|
4290
|
+
"aircraft",
|
|
4291
|
+
"alcohol",
|
|
4292
|
+
"ammo",
|
|
4293
|
+
"analytics",
|
|
4294
|
+
"anime",
|
|
4295
|
+
"athletics",
|
|
4296
|
+
"audio",
|
|
4297
|
+
"bison",
|
|
4298
|
+
"blood",
|
|
4299
|
+
"bream",
|
|
4300
|
+
"buffalo",
|
|
4301
|
+
"butter",
|
|
4302
|
+
"carp",
|
|
4303
|
+
"cash",
|
|
4304
|
+
"chassis",
|
|
4305
|
+
"chess",
|
|
4306
|
+
"clothing",
|
|
4307
|
+
"cod",
|
|
4308
|
+
"commerce",
|
|
4309
|
+
"cooperation",
|
|
4310
|
+
"corps",
|
|
4311
|
+
"debris",
|
|
4312
|
+
"diabetes",
|
|
4313
|
+
"digestion",
|
|
4314
|
+
"elk",
|
|
4315
|
+
"energy",
|
|
4316
|
+
"equipment",
|
|
4317
|
+
"excretion",
|
|
4318
|
+
"expertise",
|
|
4319
|
+
"firmware",
|
|
4320
|
+
"flounder",
|
|
4321
|
+
"fun",
|
|
4322
|
+
"gallows",
|
|
4323
|
+
"garbage",
|
|
4324
|
+
"graffiti",
|
|
4325
|
+
"hardware",
|
|
4326
|
+
"headquarters",
|
|
4327
|
+
"health",
|
|
4328
|
+
"herpes",
|
|
4329
|
+
"highjinks",
|
|
4330
|
+
"homework",
|
|
4331
|
+
"housework",
|
|
4332
|
+
"information",
|
|
4333
|
+
"jeans",
|
|
4334
|
+
"justice",
|
|
4335
|
+
"kudos",
|
|
4336
|
+
"labour",
|
|
4337
|
+
"literature",
|
|
4338
|
+
"machinery",
|
|
4339
|
+
"mackerel",
|
|
4340
|
+
"mail",
|
|
4341
|
+
"media",
|
|
4342
|
+
"mews",
|
|
4343
|
+
"moose",
|
|
4344
|
+
"music",
|
|
4345
|
+
"mud",
|
|
4346
|
+
"manga",
|
|
4347
|
+
"news",
|
|
4348
|
+
"only",
|
|
4349
|
+
"personnel",
|
|
4350
|
+
"pike",
|
|
4351
|
+
"plankton",
|
|
4352
|
+
"pliers",
|
|
4353
|
+
"police",
|
|
4354
|
+
"pollution",
|
|
4355
|
+
"premises",
|
|
4356
|
+
"rain",
|
|
4357
|
+
"research",
|
|
4358
|
+
"rice",
|
|
4359
|
+
"salmon",
|
|
4360
|
+
"scissors",
|
|
4361
|
+
"series",
|
|
4362
|
+
"sewage",
|
|
4363
|
+
"shambles",
|
|
4364
|
+
"shrimp",
|
|
4365
|
+
"software",
|
|
4366
|
+
"species",
|
|
4367
|
+
"staff",
|
|
4368
|
+
"swine",
|
|
4369
|
+
"tennis",
|
|
4370
|
+
"traffic",
|
|
4371
|
+
"transportation",
|
|
4372
|
+
"trout",
|
|
4373
|
+
"tuna",
|
|
4374
|
+
"wealth",
|
|
4375
|
+
"welfare",
|
|
4376
|
+
"whiting",
|
|
4377
|
+
"wildebeest",
|
|
4378
|
+
"wildlife",
|
|
4379
|
+
"you",
|
|
4380
|
+
/pok[eé]mon$/i,
|
|
4381
|
+
// Regexes.
|
|
4382
|
+
/[^aeiou]ese$/i,
|
|
4383
|
+
// "chinese", "japanese"
|
|
4384
|
+
/deer$/i,
|
|
4385
|
+
// "deer", "reindeer"
|
|
4386
|
+
/fish$/i,
|
|
4387
|
+
// "fish", "blowfish", "angelfish"
|
|
4388
|
+
/measles$/i,
|
|
4389
|
+
/o[iu]s$/i,
|
|
4390
|
+
// "carnivorous"
|
|
4391
|
+
/pox$/i,
|
|
4392
|
+
// "chickpox", "smallpox"
|
|
4393
|
+
/sheep$/i
|
|
4394
|
+
].forEach(pluralize2.addUncountableRule);
|
|
4395
|
+
return pluralize2;
|
|
4396
|
+
});
|
|
4397
|
+
})(pluralize$1);
|
|
4398
|
+
var pluralizeExports = pluralize$1.exports;
|
|
4399
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
4400
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
4401
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
4371
4402
|
function fromEntries(iterable) {
|
|
4372
4403
|
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
4373
4404
|
}
|
|
@@ -4378,6 +4409,9 @@ function commaNumber(n2) {
|
|
|
4378
4409
|
function capitalize$1(word) {
|
|
4379
4410
|
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
4380
4411
|
}
|
|
4412
|
+
function pluralize(word, count2 = null) {
|
|
4413
|
+
return plur(word, count2);
|
|
4414
|
+
}
|
|
4381
4415
|
function getNextScope(prevScopes) {
|
|
4382
4416
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
4383
4417
|
const nextCharIndices = [0];
|
|
@@ -8206,7 +8240,7 @@ function nodeTransform(node, predicate, transform2, transformedPaths, currPath =
|
|
|
8206
8240
|
if ("children" in node) {
|
|
8207
8241
|
return {
|
|
8208
8242
|
...node,
|
|
8209
|
-
children: node.children.map((
|
|
8243
|
+
children: node.children.map((child) => nodeTransform(child, predicate, transform2, transformedPaths, newPath.concat([child.name])))
|
|
8210
8244
|
};
|
|
8211
8245
|
}
|
|
8212
8246
|
return node;
|
|
@@ -12783,7 +12817,7 @@ function nodeFindNodeByNamePath(node, path, currLevelIndex) {
|
|
|
12783
12817
|
return node;
|
|
12784
12818
|
}
|
|
12785
12819
|
if (node.children) {
|
|
12786
|
-
const foundNodes = node.children.map((
|
|
12820
|
+
const foundNodes = node.children.map((child) => nodeFindNodeByNamePath(child, path, currLevelIndex + 1)).filter(Boolean);
|
|
12787
12821
|
if (foundNodes.length === 1) {
|
|
12788
12822
|
return foundNodes[0];
|
|
12789
12823
|
}
|
|
@@ -12902,10 +12936,10 @@ var json2csv_umd = { exports: {} };
|
|
|
12902
12936
|
this._maxListeners = n2;
|
|
12903
12937
|
return this;
|
|
12904
12938
|
};
|
|
12905
|
-
function $getMaxListeners(
|
|
12906
|
-
if (
|
|
12939
|
+
function $getMaxListeners(that) {
|
|
12940
|
+
if (that._maxListeners === void 0)
|
|
12907
12941
|
return EventEmitter2.defaultMaxListeners;
|
|
12908
|
-
return
|
|
12942
|
+
return that._maxListeners;
|
|
12909
12943
|
}
|
|
12910
12944
|
EventEmitter2.prototype.getMaxListeners = function getMaxListeners2() {
|
|
12911
12945
|
return $getMaxListeners(this);
|
|
@@ -13409,20 +13443,20 @@ var json2csv_umd = { exports: {} };
|
|
|
13409
13443
|
function kMaxLength() {
|
|
13410
13444
|
return Buffer3.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
13411
13445
|
}
|
|
13412
|
-
function createBuffer(
|
|
13446
|
+
function createBuffer(that, length2) {
|
|
13413
13447
|
if (kMaxLength() < length2) {
|
|
13414
13448
|
throw new RangeError("Invalid typed array length");
|
|
13415
13449
|
}
|
|
13416
13450
|
if (Buffer3.TYPED_ARRAY_SUPPORT) {
|
|
13417
|
-
|
|
13418
|
-
|
|
13451
|
+
that = new Uint8Array(length2);
|
|
13452
|
+
that.__proto__ = Buffer3.prototype;
|
|
13419
13453
|
} else {
|
|
13420
|
-
if (
|
|
13421
|
-
|
|
13454
|
+
if (that === null) {
|
|
13455
|
+
that = new Buffer3(length2);
|
|
13422
13456
|
}
|
|
13423
|
-
|
|
13457
|
+
that.length = length2;
|
|
13424
13458
|
}
|
|
13425
|
-
return
|
|
13459
|
+
return that;
|
|
13426
13460
|
}
|
|
13427
13461
|
function Buffer3(arg, encodingOrOffset, length2) {
|
|
13428
13462
|
if (!Buffer3.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer3)) {
|
|
@@ -13443,17 +13477,17 @@ var json2csv_umd = { exports: {} };
|
|
|
13443
13477
|
arr.__proto__ = Buffer3.prototype;
|
|
13444
13478
|
return arr;
|
|
13445
13479
|
};
|
|
13446
|
-
function from(
|
|
13480
|
+
function from(that, value, encodingOrOffset, length2) {
|
|
13447
13481
|
if (typeof value === "number") {
|
|
13448
13482
|
throw new TypeError('"value" argument must not be a number');
|
|
13449
13483
|
}
|
|
13450
13484
|
if (typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer) {
|
|
13451
|
-
return fromArrayBuffer(
|
|
13485
|
+
return fromArrayBuffer(that, value, encodingOrOffset, length2);
|
|
13452
13486
|
}
|
|
13453
13487
|
if (typeof value === "string") {
|
|
13454
|
-
return fromString(
|
|
13488
|
+
return fromString(that, value, encodingOrOffset);
|
|
13455
13489
|
}
|
|
13456
|
-
return fromObject(
|
|
13490
|
+
return fromObject(that, value);
|
|
13457
13491
|
}
|
|
13458
13492
|
Buffer3.from = function(value, encodingOrOffset, length2) {
|
|
13459
13493
|
return from(null, value, encodingOrOffset, length2);
|
|
@@ -13469,28 +13503,28 @@ var json2csv_umd = { exports: {} };
|
|
|
13469
13503
|
throw new RangeError('"size" argument must not be negative');
|
|
13470
13504
|
}
|
|
13471
13505
|
}
|
|
13472
|
-
function alloc(
|
|
13506
|
+
function alloc(that, size, fill, encoding) {
|
|
13473
13507
|
assertSize(size);
|
|
13474
13508
|
if (size <= 0) {
|
|
13475
|
-
return createBuffer(
|
|
13509
|
+
return createBuffer(that, size);
|
|
13476
13510
|
}
|
|
13477
13511
|
if (fill !== void 0) {
|
|
13478
|
-
return typeof encoding === "string" ? createBuffer(
|
|
13512
|
+
return typeof encoding === "string" ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);
|
|
13479
13513
|
}
|
|
13480
|
-
return createBuffer(
|
|
13514
|
+
return createBuffer(that, size);
|
|
13481
13515
|
}
|
|
13482
13516
|
Buffer3.alloc = function(size, fill, encoding) {
|
|
13483
13517
|
return alloc(null, size, fill, encoding);
|
|
13484
13518
|
};
|
|
13485
|
-
function allocUnsafe2(
|
|
13519
|
+
function allocUnsafe2(that, size) {
|
|
13486
13520
|
assertSize(size);
|
|
13487
|
-
|
|
13521
|
+
that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
|
|
13488
13522
|
if (!Buffer3.TYPED_ARRAY_SUPPORT) {
|
|
13489
13523
|
for (var i2 = 0; i2 < size; ++i2) {
|
|
13490
|
-
|
|
13524
|
+
that[i2] = 0;
|
|
13491
13525
|
}
|
|
13492
13526
|
}
|
|
13493
|
-
return
|
|
13527
|
+
return that;
|
|
13494
13528
|
}
|
|
13495
13529
|
Buffer3.allocUnsafe = function(size) {
|
|
13496
13530
|
return allocUnsafe2(null, size);
|
|
@@ -13498,7 +13532,7 @@ var json2csv_umd = { exports: {} };
|
|
|
13498
13532
|
Buffer3.allocUnsafeSlow = function(size) {
|
|
13499
13533
|
return allocUnsafe2(null, size);
|
|
13500
13534
|
};
|
|
13501
|
-
function fromString(
|
|
13535
|
+
function fromString(that, string2, encoding) {
|
|
13502
13536
|
if (typeof encoding !== "string" || encoding === "") {
|
|
13503
13537
|
encoding = "utf8";
|
|
13504
13538
|
}
|
|
@@ -13506,22 +13540,22 @@ var json2csv_umd = { exports: {} };
|
|
|
13506
13540
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
13507
13541
|
}
|
|
13508
13542
|
var length2 = byteLength(string2, encoding) | 0;
|
|
13509
|
-
|
|
13510
|
-
var actual =
|
|
13543
|
+
that = createBuffer(that, length2);
|
|
13544
|
+
var actual = that.write(string2, encoding);
|
|
13511
13545
|
if (actual !== length2) {
|
|
13512
|
-
|
|
13546
|
+
that = that.slice(0, actual);
|
|
13513
13547
|
}
|
|
13514
|
-
return
|
|
13548
|
+
return that;
|
|
13515
13549
|
}
|
|
13516
|
-
function fromArrayLike(
|
|
13550
|
+
function fromArrayLike(that, array2) {
|
|
13517
13551
|
var length2 = array2.length < 0 ? 0 : checked(array2.length) | 0;
|
|
13518
|
-
|
|
13552
|
+
that = createBuffer(that, length2);
|
|
13519
13553
|
for (var i2 = 0; i2 < length2; i2 += 1) {
|
|
13520
|
-
|
|
13554
|
+
that[i2] = array2[i2] & 255;
|
|
13521
13555
|
}
|
|
13522
|
-
return
|
|
13556
|
+
return that;
|
|
13523
13557
|
}
|
|
13524
|
-
function fromArrayBuffer(
|
|
13558
|
+
function fromArrayBuffer(that, array2, byteOffset, length2) {
|
|
13525
13559
|
array2.byteLength;
|
|
13526
13560
|
if (byteOffset < 0 || array2.byteLength < byteOffset) {
|
|
13527
13561
|
throw new RangeError("'offset' is out of bounds");
|
|
@@ -13537,32 +13571,32 @@ var json2csv_umd = { exports: {} };
|
|
|
13537
13571
|
array2 = new Uint8Array(array2, byteOffset, length2);
|
|
13538
13572
|
}
|
|
13539
13573
|
if (Buffer3.TYPED_ARRAY_SUPPORT) {
|
|
13540
|
-
|
|
13541
|
-
|
|
13574
|
+
that = array2;
|
|
13575
|
+
that.__proto__ = Buffer3.prototype;
|
|
13542
13576
|
} else {
|
|
13543
|
-
|
|
13577
|
+
that = fromArrayLike(that, array2);
|
|
13544
13578
|
}
|
|
13545
|
-
return
|
|
13579
|
+
return that;
|
|
13546
13580
|
}
|
|
13547
|
-
function fromObject(
|
|
13581
|
+
function fromObject(that, obj) {
|
|
13548
13582
|
if (internalIsBuffer(obj)) {
|
|
13549
13583
|
var len2 = checked(obj.length) | 0;
|
|
13550
|
-
|
|
13551
|
-
if (
|
|
13552
|
-
return
|
|
13584
|
+
that = createBuffer(that, len2);
|
|
13585
|
+
if (that.length === 0) {
|
|
13586
|
+
return that;
|
|
13553
13587
|
}
|
|
13554
|
-
obj.copy(
|
|
13555
|
-
return
|
|
13588
|
+
obj.copy(that, 0, 0, len2);
|
|
13589
|
+
return that;
|
|
13556
13590
|
}
|
|
13557
13591
|
if (obj) {
|
|
13558
13592
|
if (typeof ArrayBuffer !== "undefined" && obj.buffer instanceof ArrayBuffer || "length" in obj) {
|
|
13559
13593
|
if (typeof obj.length !== "number" || isnan(obj.length)) {
|
|
13560
|
-
return createBuffer(
|
|
13594
|
+
return createBuffer(that, 0);
|
|
13561
13595
|
}
|
|
13562
|
-
return fromArrayLike(
|
|
13596
|
+
return fromArrayLike(that, obj);
|
|
13563
13597
|
}
|
|
13564
13598
|
if (obj.type === "Buffer" && isArray2(obj.data)) {
|
|
13565
|
-
return fromArrayLike(
|
|
13599
|
+
return fromArrayLike(that, obj.data);
|
|
13566
13600
|
}
|
|
13567
13601
|
}
|
|
13568
13602
|
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
@@ -18392,9 +18426,9 @@ function tree_add(d) {
|
|
|
18392
18426
|
function add$6(tree, x2, y2, d) {
|
|
18393
18427
|
if (isNaN(x2) || isNaN(y2))
|
|
18394
18428
|
return tree;
|
|
18395
|
-
var parent, node = tree._root,
|
|
18429
|
+
var parent, node = tree._root, leaf = { data: d }, x02 = tree._x0, y02 = tree._y0, x12 = tree._x1, y12 = tree._y1, xm, ym, xp, yp, right2, bottom2, i2, j;
|
|
18396
18430
|
if (!node)
|
|
18397
|
-
return tree._root =
|
|
18431
|
+
return tree._root = leaf, tree;
|
|
18398
18432
|
while (node.length) {
|
|
18399
18433
|
if (right2 = x2 >= (xm = (x02 + x12) / 2))
|
|
18400
18434
|
x02 = xm;
|
|
@@ -18405,12 +18439,12 @@ function add$6(tree, x2, y2, d) {
|
|
|
18405
18439
|
else
|
|
18406
18440
|
y12 = ym;
|
|
18407
18441
|
if (parent = node, !(node = node[i2 = bottom2 << 1 | right2]))
|
|
18408
|
-
return parent[i2] =
|
|
18442
|
+
return parent[i2] = leaf, tree;
|
|
18409
18443
|
}
|
|
18410
18444
|
xp = +tree._x.call(null, node.data);
|
|
18411
18445
|
yp = +tree._y.call(null, node.data);
|
|
18412
18446
|
if (x2 === xp && y2 === yp)
|
|
18413
|
-
return
|
|
18447
|
+
return leaf.next = node, parent ? parent[i2] = leaf : tree._root = leaf, tree;
|
|
18414
18448
|
do {
|
|
18415
18449
|
parent = parent ? parent[i2] = new Array(4) : tree._root = new Array(4);
|
|
18416
18450
|
if (right2 = x2 >= (xm = (x02 + x12) / 2))
|
|
@@ -18422,7 +18456,7 @@ function add$6(tree, x2, y2, d) {
|
|
|
18422
18456
|
else
|
|
18423
18457
|
y12 = ym;
|
|
18424
18458
|
} while ((i2 = bottom2 << 1 | right2) === (j = (yp >= ym) << 1 | xp >= xm));
|
|
18425
|
-
return parent[j] = node, parent[i2] =
|
|
18459
|
+
return parent[j] = node, parent[i2] = leaf, tree;
|
|
18426
18460
|
}
|
|
18427
18461
|
function addAll(data) {
|
|
18428
18462
|
var d, i2, n2 = data.length, x2, y2, xz = new Array(n2), yz = new Array(n2), x02 = Infinity, y02 = Infinity, x12 = -Infinity, y12 = -Infinity;
|
|
@@ -18504,16 +18538,16 @@ function Quad(node, x02, y02, x12, y12) {
|
|
|
18504
18538
|
this.x1 = x12;
|
|
18505
18539
|
this.y1 = y12;
|
|
18506
18540
|
}
|
|
18507
|
-
function tree_find(x2, y2,
|
|
18541
|
+
function tree_find(x2, y2, radius) {
|
|
18508
18542
|
var data, x02 = this._x0, y02 = this._y0, x12, y12, x22, y22, x3 = this._x1, y3 = this._y1, quads = [], node = this._root, q, i2;
|
|
18509
18543
|
if (node)
|
|
18510
18544
|
quads.push(new Quad(node, x02, y02, x3, y3));
|
|
18511
|
-
if (
|
|
18512
|
-
|
|
18545
|
+
if (radius == null)
|
|
18546
|
+
radius = Infinity;
|
|
18513
18547
|
else {
|
|
18514
|
-
x02 = x2 -
|
|
18515
|
-
x3 = x2 +
|
|
18516
|
-
|
|
18548
|
+
x02 = x2 - radius, y02 = y2 - radius;
|
|
18549
|
+
x3 = x2 + radius, y3 = y2 + radius;
|
|
18550
|
+
radius *= radius;
|
|
18517
18551
|
}
|
|
18518
18552
|
while (q = quads.pop()) {
|
|
18519
18553
|
if (!(node = q.node) || (x12 = q.x0) > x3 || (y12 = q.y0) > y3 || (x22 = q.x1) < x02 || (y22 = q.y1) < y02)
|
|
@@ -18533,8 +18567,8 @@ function tree_find(x2, y2, radius2) {
|
|
|
18533
18567
|
}
|
|
18534
18568
|
} else {
|
|
18535
18569
|
var dx = x2 - +this._x.call(null, node.data), dy = y2 - +this._y.call(null, node.data), d2 = dx * dx + dy * dy;
|
|
18536
|
-
if (d2 <
|
|
18537
|
-
var d = Math.sqrt(
|
|
18570
|
+
if (d2 < radius) {
|
|
18571
|
+
var d = Math.sqrt(radius = d2);
|
|
18538
18572
|
x02 = x2 - d, y02 = y2 - d;
|
|
18539
18573
|
x3 = x2 + d, y3 = y2 + d;
|
|
18540
18574
|
data = node.data;
|
|
@@ -18603,20 +18637,20 @@ function tree_size() {
|
|
|
18603
18637
|
return size;
|
|
18604
18638
|
}
|
|
18605
18639
|
function tree_visit(callback) {
|
|
18606
|
-
var quads = [], q, node = this._root,
|
|
18640
|
+
var quads = [], q, node = this._root, child, x02, y02, x12, y12;
|
|
18607
18641
|
if (node)
|
|
18608
18642
|
quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));
|
|
18609
18643
|
while (q = quads.pop()) {
|
|
18610
18644
|
if (!callback(node = q.node, x02 = q.x0, y02 = q.y0, x12 = q.x1, y12 = q.y1) && node.length) {
|
|
18611
18645
|
var xm = (x02 + x12) / 2, ym = (y02 + y12) / 2;
|
|
18612
|
-
if (
|
|
18613
|
-
quads.push(new Quad(
|
|
18614
|
-
if (
|
|
18615
|
-
quads.push(new Quad(
|
|
18616
|
-
if (
|
|
18617
|
-
quads.push(new Quad(
|
|
18618
|
-
if (
|
|
18619
|
-
quads.push(new Quad(
|
|
18646
|
+
if (child = node[3])
|
|
18647
|
+
quads.push(new Quad(child, xm, ym, x12, y12));
|
|
18648
|
+
if (child = node[2])
|
|
18649
|
+
quads.push(new Quad(child, x02, ym, xm, y12));
|
|
18650
|
+
if (child = node[1])
|
|
18651
|
+
quads.push(new Quad(child, xm, y02, x12, ym));
|
|
18652
|
+
if (child = node[0])
|
|
18653
|
+
quads.push(new Quad(child, x02, y02, xm, ym));
|
|
18620
18654
|
}
|
|
18621
18655
|
}
|
|
18622
18656
|
return this;
|
|
@@ -18628,15 +18662,15 @@ function tree_visitAfter(callback) {
|
|
|
18628
18662
|
while (q = quads.pop()) {
|
|
18629
18663
|
var node = q.node;
|
|
18630
18664
|
if (node.length) {
|
|
18631
|
-
var
|
|
18632
|
-
if (
|
|
18633
|
-
quads.push(new Quad(
|
|
18634
|
-
if (
|
|
18635
|
-
quads.push(new Quad(
|
|
18636
|
-
if (
|
|
18637
|
-
quads.push(new Quad(
|
|
18638
|
-
if (
|
|
18639
|
-
quads.push(new Quad(
|
|
18665
|
+
var child, x02 = q.x0, y02 = q.y0, x12 = q.x1, y12 = q.y1, xm = (x02 + x12) / 2, ym = (y02 + y12) / 2;
|
|
18666
|
+
if (child = node[0])
|
|
18667
|
+
quads.push(new Quad(child, x02, y02, xm, ym));
|
|
18668
|
+
if (child = node[1])
|
|
18669
|
+
quads.push(new Quad(child, xm, y02, x12, ym));
|
|
18670
|
+
if (child = node[2])
|
|
18671
|
+
quads.push(new Quad(child, x02, ym, xm, y12));
|
|
18672
|
+
if (child = node[3])
|
|
18673
|
+
quads.push(new Quad(child, xm, ym, x12, y12));
|
|
18640
18674
|
}
|
|
18641
18675
|
next.push(q);
|
|
18642
18676
|
}
|
|
@@ -18670,15 +18704,15 @@ function Quadtree(x2, y2, x02, y02, x12, y12) {
|
|
|
18670
18704
|
this._y1 = y12;
|
|
18671
18705
|
this._root = void 0;
|
|
18672
18706
|
}
|
|
18673
|
-
function leaf_copy(
|
|
18674
|
-
var copy2 = { data:
|
|
18675
|
-
while (
|
|
18676
|
-
next = next.next = { data:
|
|
18707
|
+
function leaf_copy(leaf) {
|
|
18708
|
+
var copy2 = { data: leaf.data }, next = copy2;
|
|
18709
|
+
while (leaf = leaf.next)
|
|
18710
|
+
next = next.next = { data: leaf.data };
|
|
18677
18711
|
return copy2;
|
|
18678
18712
|
}
|
|
18679
18713
|
var treeProto = quadtree.prototype = Quadtree.prototype;
|
|
18680
18714
|
treeProto.copy = function() {
|
|
18681
|
-
var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes,
|
|
18715
|
+
var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child;
|
|
18682
18716
|
if (!node)
|
|
18683
18717
|
return copy2;
|
|
18684
18718
|
if (!node.length)
|
|
@@ -18686,11 +18720,11 @@ treeProto.copy = function() {
|
|
|
18686
18720
|
nodes = [{ source: node, target: copy2._root = new Array(4) }];
|
|
18687
18721
|
while (node = nodes.pop()) {
|
|
18688
18722
|
for (var i2 = 0; i2 < 4; ++i2) {
|
|
18689
|
-
if (
|
|
18690
|
-
if (
|
|
18691
|
-
nodes.push({ source:
|
|
18723
|
+
if (child = node.source[i2]) {
|
|
18724
|
+
if (child.length)
|
|
18725
|
+
nodes.push({ source: child, target: node.target[i2] = new Array(4) });
|
|
18692
18726
|
else
|
|
18693
|
-
node.target[i2] = leaf_copy(
|
|
18727
|
+
node.target[i2] = leaf_copy(child);
|
|
18694
18728
|
}
|
|
18695
18729
|
}
|
|
18696
18730
|
}
|
|
@@ -18760,20 +18794,20 @@ Dispatch.prototype = dispatch.prototype = {
|
|
|
18760
18794
|
copy2[t2] = _[t2].slice();
|
|
18761
18795
|
return new Dispatch(copy2);
|
|
18762
18796
|
},
|
|
18763
|
-
call: function(type,
|
|
18797
|
+
call: function(type, that) {
|
|
18764
18798
|
if ((n2 = arguments.length - 2) > 0)
|
|
18765
18799
|
for (var args = new Array(n2), i2 = 0, n2, t2; i2 < n2; ++i2)
|
|
18766
18800
|
args[i2] = arguments[i2 + 2];
|
|
18767
18801
|
if (!this._.hasOwnProperty(type))
|
|
18768
18802
|
throw new Error("unknown type: " + type);
|
|
18769
18803
|
for (t2 = this._[type], i2 = 0, n2 = t2.length; i2 < n2; ++i2)
|
|
18770
|
-
t2[i2].value.apply(
|
|
18804
|
+
t2[i2].value.apply(that, args);
|
|
18771
18805
|
},
|
|
18772
|
-
apply: function(type,
|
|
18806
|
+
apply: function(type, that, args) {
|
|
18773
18807
|
if (!this._.hasOwnProperty(type))
|
|
18774
18808
|
throw new Error("unknown type: " + type);
|
|
18775
18809
|
for (var t2 = this._[type], i2 = 0, n2 = t2.length; i2 < n2; ++i2)
|
|
18776
|
-
t2[i2].value.apply(
|
|
18810
|
+
t2[i2].value.apply(that, args);
|
|
18777
18811
|
}
|
|
18778
18812
|
};
|
|
18779
18813
|
function get(type, name2) {
|
|
@@ -18946,9 +18980,9 @@ function forceSimulation(nodes) {
|
|
|
18946
18980
|
if (node.fy != null)
|
|
18947
18981
|
node.y = node.fy;
|
|
18948
18982
|
if (isNaN(node.x) || isNaN(node.y)) {
|
|
18949
|
-
var
|
|
18950
|
-
node.x =
|
|
18951
|
-
node.y =
|
|
18983
|
+
var radius = initialRadius * Math.sqrt(0.5 + i2), angle2 = i2 * initialAngle;
|
|
18984
|
+
node.x = radius * Math.cos(angle2);
|
|
18985
|
+
node.y = radius * Math.sin(angle2);
|
|
18952
18986
|
}
|
|
18953
18987
|
if (isNaN(node.vx) || isNaN(node.vy)) {
|
|
18954
18988
|
node.vx = node.vy = 0;
|
|
@@ -18993,19 +19027,19 @@ function forceSimulation(nodes) {
|
|
|
18993
19027
|
force: function(name2, _) {
|
|
18994
19028
|
return arguments.length > 1 ? (_ == null ? forces.delete(name2) : forces.set(name2, initializeForce(_)), simulation) : forces.get(name2);
|
|
18995
19029
|
},
|
|
18996
|
-
find: function(x2, y2,
|
|
19030
|
+
find: function(x2, y2, radius) {
|
|
18997
19031
|
var i2 = 0, n2 = nodes.length, dx, dy, d2, node, closest;
|
|
18998
|
-
if (
|
|
18999
|
-
|
|
19032
|
+
if (radius == null)
|
|
19033
|
+
radius = Infinity;
|
|
19000
19034
|
else
|
|
19001
|
-
|
|
19035
|
+
radius *= radius;
|
|
19002
19036
|
for (i2 = 0; i2 < n2; ++i2) {
|
|
19003
19037
|
node = nodes[i2];
|
|
19004
19038
|
dx = x2 - node.x;
|
|
19005
19039
|
dy = y2 - node.y;
|
|
19006
19040
|
d2 = dx * dx + dy * dy;
|
|
19007
|
-
if (d2 <
|
|
19008
|
-
closest = node,
|
|
19041
|
+
if (d2 < radius)
|
|
19042
|
+
closest = node, radius = d2;
|
|
19009
19043
|
}
|
|
19010
19044
|
return closest;
|
|
19011
19045
|
},
|
|
@@ -23562,7 +23596,7 @@ let Resource$1 = class Resource {
|
|
|
23562
23596
|
}
|
|
23563
23597
|
this._handle = null;
|
|
23564
23598
|
if (children2 && deleteChildren) {
|
|
23565
|
-
children2.filter(Boolean).forEach((
|
|
23599
|
+
children2.filter(Boolean).forEach((child) => child.delete());
|
|
23566
23600
|
}
|
|
23567
23601
|
return this;
|
|
23568
23602
|
}
|
|
@@ -29665,12 +29699,12 @@ function fp64ify(a2) {
|
|
|
29665
29699
|
function fp64LowPart$1(a2) {
|
|
29666
29700
|
return a2 - Math.fround(a2);
|
|
29667
29701
|
}
|
|
29668
|
-
function fp64ifyMatrix4(
|
|
29702
|
+
function fp64ifyMatrix4(matrix) {
|
|
29669
29703
|
const matrixFP64 = new Float32Array(32);
|
|
29670
29704
|
for (let i2 = 0; i2 < 4; ++i2) {
|
|
29671
29705
|
for (let j = 0; j < 4; ++j) {
|
|
29672
29706
|
const index2 = i2 * 4 + j;
|
|
29673
|
-
fp64ify(
|
|
29707
|
+
fp64ify(matrix[j * 4 + i2], matrixFP64, index2 * 2);
|
|
29674
29708
|
}
|
|
29675
29709
|
}
|
|
29676
29710
|
return matrixFP64;
|
|
@@ -32650,7 +32684,7 @@ class SphericalCoordinates {
|
|
|
32650
32684
|
constructor({
|
|
32651
32685
|
phi = 0,
|
|
32652
32686
|
theta = 0,
|
|
32653
|
-
radius
|
|
32687
|
+
radius = 1,
|
|
32654
32688
|
bearing: bearing2,
|
|
32655
32689
|
pitch,
|
|
32656
32690
|
altitude,
|
|
@@ -32662,7 +32696,7 @@ class SphericalCoordinates {
|
|
|
32662
32696
|
_defineProperty$e(this, "radiusScale", void 0);
|
|
32663
32697
|
this.phi = phi;
|
|
32664
32698
|
this.theta = theta;
|
|
32665
|
-
this.radius =
|
|
32699
|
+
this.radius = radius || altitude || 1;
|
|
32666
32700
|
this.radiusScale = radiusScale || 1;
|
|
32667
32701
|
if (bearing2 !== void 0) {
|
|
32668
32702
|
this.bearing = bearing2;
|
|
@@ -32714,8 +32748,8 @@ class SphericalCoordinates {
|
|
|
32714
32748
|
get z() {
|
|
32715
32749
|
return (this.radius - 1) * this.radiusScale;
|
|
32716
32750
|
}
|
|
32717
|
-
set(
|
|
32718
|
-
this.radius =
|
|
32751
|
+
set(radius, phi, theta) {
|
|
32752
|
+
this.radius = radius;
|
|
32719
32753
|
this.phi = phi;
|
|
32720
32754
|
this.theta = theta;
|
|
32721
32755
|
return this.check();
|
|
@@ -35213,7 +35247,7 @@ class ConeGeometry extends TruncatedConeGeometry {
|
|
|
35213
35247
|
let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
35214
35248
|
const {
|
|
35215
35249
|
id = uid("cone-geometry"),
|
|
35216
|
-
radius
|
|
35250
|
+
radius = 1,
|
|
35217
35251
|
cap = true
|
|
35218
35252
|
} = props2;
|
|
35219
35253
|
super({
|
|
@@ -35222,7 +35256,7 @@ class ConeGeometry extends TruncatedConeGeometry {
|
|
|
35222
35256
|
topRadius: 0,
|
|
35223
35257
|
topCap: Boolean(cap),
|
|
35224
35258
|
bottomCap: Boolean(cap),
|
|
35225
|
-
bottomRadius:
|
|
35259
|
+
bottomRadius: radius
|
|
35226
35260
|
});
|
|
35227
35261
|
}
|
|
35228
35262
|
}
|
|
@@ -35269,13 +35303,13 @@ class CylinderGeometry extends TruncatedConeGeometry {
|
|
|
35269
35303
|
let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
35270
35304
|
const {
|
|
35271
35305
|
id = uid("cylinder-geometry"),
|
|
35272
|
-
radius
|
|
35306
|
+
radius = 1
|
|
35273
35307
|
} = props2;
|
|
35274
35308
|
super({
|
|
35275
35309
|
...props2,
|
|
35276
35310
|
id,
|
|
35277
|
-
bottomRadius:
|
|
35278
|
-
topRadius:
|
|
35311
|
+
bottomRadius: radius,
|
|
35312
|
+
topRadius: radius
|
|
35279
35313
|
});
|
|
35280
35314
|
}
|
|
35281
35315
|
}
|
|
@@ -35623,7 +35657,7 @@ function tesselateSphere(props2) {
|
|
|
35623
35657
|
nlong = 10
|
|
35624
35658
|
} = props2;
|
|
35625
35659
|
let {
|
|
35626
|
-
radius
|
|
35660
|
+
radius = 1
|
|
35627
35661
|
} = props2;
|
|
35628
35662
|
const startLat = 0;
|
|
35629
35663
|
const endLat = Math.PI;
|
|
@@ -35632,9 +35666,9 @@ function tesselateSphere(props2) {
|
|
|
35632
35666
|
const endLong = 2 * Math.PI;
|
|
35633
35667
|
const longRange = endLong - startLong;
|
|
35634
35668
|
const numVertices = (nlat + 1) * (nlong + 1);
|
|
35635
|
-
if (typeof
|
|
35636
|
-
const value =
|
|
35637
|
-
|
|
35669
|
+
if (typeof radius === "number") {
|
|
35670
|
+
const value = radius;
|
|
35671
|
+
radius = (n1, n2, n3, u, v) => value;
|
|
35638
35672
|
}
|
|
35639
35673
|
const positions = new Float32Array(numVertices * 3);
|
|
35640
35674
|
const normals = new Float32Array(numVertices * 3);
|
|
@@ -35657,7 +35691,7 @@ function tesselateSphere(props2) {
|
|
|
35657
35691
|
const ux = cosTheta * sinPhi;
|
|
35658
35692
|
const uy = cosPhi;
|
|
35659
35693
|
const uz = sinTheta * sinPhi;
|
|
35660
|
-
const r2 =
|
|
35694
|
+
const r2 = radius(ux, uy, uz, u, v);
|
|
35661
35695
|
positions[i3 + 0] = r2 * ux;
|
|
35662
35696
|
positions[i3 + 1] = r2 * uy;
|
|
35663
35697
|
positions[i3 + 2] = r2 * uz;
|
|
@@ -36176,8 +36210,8 @@ const project32 = {
|
|
|
36176
36210
|
function createMat4$1() {
|
|
36177
36211
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
36178
36212
|
}
|
|
36179
|
-
function transformVector$1(
|
|
36180
|
-
const result = transformMat4([], vector,
|
|
36213
|
+
function transformVector$1(matrix, vector) {
|
|
36214
|
+
const result = transformMat4([], vector, matrix);
|
|
36181
36215
|
scale$2(result, result, 1 / result[3]);
|
|
36182
36216
|
return result;
|
|
36183
36217
|
}
|
|
@@ -37664,7 +37698,7 @@ function createProjectionMatrix({
|
|
|
37664
37698
|
far
|
|
37665
37699
|
}) {
|
|
37666
37700
|
const aspect = width / height;
|
|
37667
|
-
const
|
|
37701
|
+
const matrix = orthographic2 ? new Matrix4().orthographic({
|
|
37668
37702
|
fovy: fovyRadians,
|
|
37669
37703
|
aspect,
|
|
37670
37704
|
focalDistance,
|
|
@@ -37685,10 +37719,10 @@ function createProjectionMatrix({
|
|
|
37685
37719
|
} = padding;
|
|
37686
37720
|
const offsetX = clamp$3((left2 + width - right2) / 2, 0, width) - width / 2;
|
|
37687
37721
|
const offsetY = clamp$3((top2 + height - bottom2) / 2, 0, height) - height / 2;
|
|
37688
|
-
|
|
37689
|
-
|
|
37722
|
+
matrix[8] -= offsetX * 2 / width;
|
|
37723
|
+
matrix[9] += offsetY * 2 / height;
|
|
37690
37724
|
}
|
|
37691
|
-
return
|
|
37725
|
+
return matrix;
|
|
37692
37726
|
}
|
|
37693
37727
|
class Viewport {
|
|
37694
37728
|
constructor(opts2 = {}) {
|
|
@@ -42078,7 +42112,7 @@ class DeckPicker {
|
|
|
42078
42112
|
viewports,
|
|
42079
42113
|
x: x2,
|
|
42080
42114
|
y: y2,
|
|
42081
|
-
radius
|
|
42115
|
+
radius = 0,
|
|
42082
42116
|
depth = 1,
|
|
42083
42117
|
mode = "query",
|
|
42084
42118
|
unproject3D,
|
|
@@ -42101,7 +42135,7 @@ class DeckPicker {
|
|
|
42101
42135
|
this._resizeBuffer();
|
|
42102
42136
|
const devicePixelRange = cssToDevicePixels(this.gl, [x2, y2], true);
|
|
42103
42137
|
const devicePixel = [devicePixelRange.x + Math.floor(devicePixelRange.width / 2), devicePixelRange.y + Math.floor(devicePixelRange.height / 2)];
|
|
42104
|
-
const deviceRadius = Math.round(
|
|
42138
|
+
const deviceRadius = Math.round(radius * pixelRatio);
|
|
42105
42139
|
const {
|
|
42106
42140
|
width,
|
|
42107
42141
|
height
|
|
@@ -42114,10 +42148,10 @@ class DeckPicker {
|
|
|
42114
42148
|
deviceHeight: height
|
|
42115
42149
|
});
|
|
42116
42150
|
const cullRect = {
|
|
42117
|
-
x: x2 -
|
|
42118
|
-
y: y2 -
|
|
42119
|
-
width:
|
|
42120
|
-
height:
|
|
42151
|
+
x: x2 - radius,
|
|
42152
|
+
y: y2 - radius,
|
|
42153
|
+
width: radius * 2 + 1,
|
|
42154
|
+
height: radius * 2 + 1
|
|
42121
42155
|
};
|
|
42122
42156
|
let infos;
|
|
42123
42157
|
const result = [];
|
|
@@ -42488,10 +42522,10 @@ var hammer$1 = { exports: {} };
|
|
|
42488
42522
|
var merge2 = deprecate(function merge3(dest, src2) {
|
|
42489
42523
|
return extend2(dest, src2, true);
|
|
42490
42524
|
}, "merge", "Use `assign`.");
|
|
42491
|
-
function inherit(
|
|
42525
|
+
function inherit(child, base, properties) {
|
|
42492
42526
|
var baseP = base.prototype, childP;
|
|
42493
|
-
childP =
|
|
42494
|
-
childP.constructor =
|
|
42527
|
+
childP = child.prototype = Object.create(baseP);
|
|
42528
|
+
childP.constructor = child;
|
|
42495
42529
|
childP._super = baseP;
|
|
42496
42530
|
if (properties) {
|
|
42497
42531
|
assign2(childP, properties);
|
|
@@ -49618,8 +49652,8 @@ class GlobeViewport extends Viewport {
|
|
|
49618
49652
|
};
|
|
49619
49653
|
}
|
|
49620
49654
|
}
|
|
49621
|
-
function transformVector(
|
|
49622
|
-
const result = transformMat4([], vector,
|
|
49655
|
+
function transformVector(matrix, vector) {
|
|
49656
|
+
const result = transformMat4([], vector, matrix);
|
|
49623
49657
|
scale$2(result, result, 1 / result[3]);
|
|
49624
49658
|
return result;
|
|
49625
49659
|
}
|
|
@@ -50591,27 +50625,27 @@ function createMesh(bounds2, resolution) {
|
|
|
50591
50625
|
const indices = new Uint32Array(vertexCount);
|
|
50592
50626
|
const texCoords = new Float32Array(uCount * vCount * 2);
|
|
50593
50627
|
const positions = new Float64Array(uCount * vCount * 3);
|
|
50594
|
-
let
|
|
50628
|
+
let vertex = 0;
|
|
50595
50629
|
let index2 = 0;
|
|
50596
50630
|
for (let u = 0; u < uCount; u++) {
|
|
50597
50631
|
const ut = u / (uCount - 1);
|
|
50598
50632
|
for (let v = 0; v < vCount; v++) {
|
|
50599
50633
|
const vt = v / (vCount - 1);
|
|
50600
50634
|
const p = interpolateQuad(bounds2, ut, vt);
|
|
50601
|
-
positions[
|
|
50602
|
-
positions[
|
|
50603
|
-
positions[
|
|
50604
|
-
texCoords[
|
|
50605
|
-
texCoords[
|
|
50635
|
+
positions[vertex * 3 + 0] = p[0];
|
|
50636
|
+
positions[vertex * 3 + 1] = p[1];
|
|
50637
|
+
positions[vertex * 3 + 2] = p[2] || 0;
|
|
50638
|
+
texCoords[vertex * 2 + 0] = ut;
|
|
50639
|
+
texCoords[vertex * 2 + 1] = 1 - vt;
|
|
50606
50640
|
if (u > 0 && v > 0) {
|
|
50607
|
-
indices[index2++] =
|
|
50608
|
-
indices[index2++] =
|
|
50609
|
-
indices[index2++] =
|
|
50610
|
-
indices[index2++] =
|
|
50611
|
-
indices[index2++] =
|
|
50612
|
-
indices[index2++] =
|
|
50641
|
+
indices[index2++] = vertex - vCount;
|
|
50642
|
+
indices[index2++] = vertex - vCount - 1;
|
|
50643
|
+
indices[index2++] = vertex - 1;
|
|
50644
|
+
indices[index2++] = vertex - vCount;
|
|
50645
|
+
indices[index2++] = vertex - 1;
|
|
50646
|
+
indices[index2++] = vertex;
|
|
50613
50647
|
}
|
|
50614
|
-
|
|
50648
|
+
vertex++;
|
|
50615
50649
|
}
|
|
50616
50650
|
}
|
|
50617
50651
|
return {
|
|
@@ -52809,7 +52843,7 @@ class ColumnGeometry extends Geometry {
|
|
|
52809
52843
|
}
|
|
52810
52844
|
function tesselateColumn(props2) {
|
|
52811
52845
|
const {
|
|
52812
|
-
radius
|
|
52846
|
+
radius,
|
|
52813
52847
|
height = 1,
|
|
52814
52848
|
nradial = 10
|
|
52815
52849
|
} = props2;
|
|
@@ -52836,8 +52870,8 @@ function tesselateColumn(props2) {
|
|
|
52836
52870
|
const sin2 = Math.sin(a2);
|
|
52837
52871
|
const cos2 = Math.cos(a2);
|
|
52838
52872
|
for (let k = 0; k < 2; k++) {
|
|
52839
|
-
positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 *
|
|
52840
|
-
positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 *
|
|
52873
|
+
positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
|
|
52874
|
+
positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
|
|
52841
52875
|
positions[i2 + 2] = (1 / 2 - k) * height;
|
|
52842
52876
|
normals[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2;
|
|
52843
52877
|
normals[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2;
|
|
@@ -52855,8 +52889,8 @@ function tesselateColumn(props2) {
|
|
|
52855
52889
|
const vertexIndex = (v + nradial) % nradial;
|
|
52856
52890
|
const sin2 = Math.sin(a2);
|
|
52857
52891
|
const cos2 = Math.cos(a2);
|
|
52858
|
-
positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 *
|
|
52859
|
-
positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 *
|
|
52892
|
+
positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
|
|
52893
|
+
positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
|
|
52860
52894
|
positions[i2 + 2] = height / 2;
|
|
52861
52895
|
normals[i2 + 2] = 1;
|
|
52862
52896
|
i2 += 3;
|
|
@@ -53092,7 +53126,7 @@ class ColumnLayer extends Layer {
|
|
|
53092
53126
|
wireframe,
|
|
53093
53127
|
offset: offset5,
|
|
53094
53128
|
coverage,
|
|
53095
|
-
radius
|
|
53129
|
+
radius,
|
|
53096
53130
|
angle: angle2
|
|
53097
53131
|
} = this.props;
|
|
53098
53132
|
const {
|
|
@@ -53102,7 +53136,7 @@ class ColumnLayer extends Layer {
|
|
|
53102
53136
|
edgeDistance
|
|
53103
53137
|
} = this.state;
|
|
53104
53138
|
model.setUniforms(uniforms).setUniforms({
|
|
53105
|
-
radius
|
|
53139
|
+
radius,
|
|
53106
53140
|
angle: angle2 / 180 * Math.PI,
|
|
53107
53141
|
offset: offset5,
|
|
53108
53142
|
extruded,
|
|
@@ -55134,13 +55168,13 @@ var tinySdf = { exports: {} };
|
|
|
55134
55168
|
tinySdf.exports = TinySDF;
|
|
55135
55169
|
tinySdf.exports.default = TinySDF;
|
|
55136
55170
|
var INF = 1e20;
|
|
55137
|
-
function TinySDF(fontSize, buffer2,
|
|
55171
|
+
function TinySDF(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight) {
|
|
55138
55172
|
this.fontSize = fontSize || 24;
|
|
55139
55173
|
this.buffer = buffer2 === void 0 ? 3 : buffer2;
|
|
55140
55174
|
this.cutoff = cutoff || 0.25;
|
|
55141
55175
|
this.fontFamily = fontFamily || "sans-serif";
|
|
55142
55176
|
this.fontWeight = fontWeight || "normal";
|
|
55143
|
-
this.radius =
|
|
55177
|
+
this.radius = radius || 8;
|
|
55144
55178
|
var size = this.size = this.fontSize + this.buffer * 2;
|
|
55145
55179
|
var gridSize = size + this.buffer * 2;
|
|
55146
55180
|
this.canvas = document.createElement("canvas");
|
|
@@ -55180,10 +55214,10 @@ function prepareGrids(imgData, width, height, glyphWidth, glyphHeight, gridOuter
|
|
|
55180
55214
|
}
|
|
55181
55215
|
}
|
|
55182
55216
|
}
|
|
55183
|
-
function extractAlpha(alphaChannel, width, height, gridOuter, gridInner,
|
|
55217
|
+
function extractAlpha(alphaChannel, width, height, gridOuter, gridInner, radius, cutoff) {
|
|
55184
55218
|
for (var i2 = 0; i2 < width * height; i2++) {
|
|
55185
55219
|
var d = Math.sqrt(gridOuter[i2]) - Math.sqrt(gridInner[i2]);
|
|
55186
|
-
alphaChannel[i2] = Math.round(255 - 255 * (d /
|
|
55220
|
+
alphaChannel[i2] = Math.round(255 - 255 * (d / radius + cutoff));
|
|
55187
55221
|
}
|
|
55188
55222
|
}
|
|
55189
55223
|
TinySDF.prototype._draw = function(char, getMetrics) {
|
|
@@ -55636,7 +55670,7 @@ class FontAtlasManager {
|
|
|
55636
55670
|
fontSize,
|
|
55637
55671
|
buffer: buffer2,
|
|
55638
55672
|
sdf,
|
|
55639
|
-
radius
|
|
55673
|
+
radius,
|
|
55640
55674
|
cutoff
|
|
55641
55675
|
} = this.props;
|
|
55642
55676
|
let canvas = cachedFontAtlas && cachedFontAtlas.data;
|
|
@@ -55670,7 +55704,7 @@ class FontAtlasManager {
|
|
|
55670
55704
|
}
|
|
55671
55705
|
setTextStyle(ctx, fontFamily, fontSize, fontWeight);
|
|
55672
55706
|
if (sdf) {
|
|
55673
|
-
const tinySDF = new TinySDF$1(fontSize, buffer2,
|
|
55707
|
+
const tinySDF = new TinySDF$1(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight);
|
|
55674
55708
|
const imageData = ctx.getImageData(0, 0, tinySDF.size, tinySDF.size);
|
|
55675
55709
|
for (const char of characterSet) {
|
|
55676
55710
|
populateAlphaChannel(tinySDF.draw(char), imageData);
|
|
@@ -55697,11 +55731,11 @@ class FontAtlasManager {
|
|
|
55697
55731
|
fontSize,
|
|
55698
55732
|
buffer: buffer2,
|
|
55699
55733
|
sdf,
|
|
55700
|
-
radius
|
|
55734
|
+
radius,
|
|
55701
55735
|
cutoff
|
|
55702
55736
|
} = this.props;
|
|
55703
55737
|
if (sdf) {
|
|
55704
|
-
return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(
|
|
55738
|
+
return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(radius, " ").concat(cutoff);
|
|
55705
55739
|
}
|
|
55706
55740
|
return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2);
|
|
55707
55741
|
}
|
|
@@ -57009,9 +57043,6 @@ class GeoCellLayer extends CompositeLayer {
|
|
|
57009
57043
|
}
|
|
57010
57044
|
_defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
|
|
57011
57045
|
_defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
|
|
57012
|
-
function commonjsRequire(path) {
|
|
57013
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
57014
|
-
}
|
|
57015
57046
|
var long = { exports: {} };
|
|
57016
57047
|
(function(module2) {
|
|
57017
57048
|
/**
|
|
@@ -57984,16 +58015,16 @@ class AxisAlignedBoundingBox {
|
|
|
57984
58015
|
const scratchVector$5 = new Vector3();
|
|
57985
58016
|
const scratchVector2$2 = new Vector3();
|
|
57986
58017
|
class BoundingSphere {
|
|
57987
|
-
constructor(center2 = [0, 0, 0],
|
|
58018
|
+
constructor(center2 = [0, 0, 0], radius = 0) {
|
|
57988
58019
|
_defineProperty$f(this, "center", void 0);
|
|
57989
58020
|
_defineProperty$f(this, "radius", void 0);
|
|
57990
58021
|
this.radius = -0;
|
|
57991
58022
|
this.center = new Vector3();
|
|
57992
|
-
this.fromCenterRadius(center2,
|
|
58023
|
+
this.fromCenterRadius(center2, radius);
|
|
57993
58024
|
}
|
|
57994
|
-
fromCenterRadius(center2,
|
|
58025
|
+
fromCenterRadius(center2, radius) {
|
|
57995
58026
|
this.center.from(center2);
|
|
57996
|
-
this.radius =
|
|
58027
|
+
this.radius = radius;
|
|
57997
58028
|
return this;
|
|
57998
58029
|
}
|
|
57999
58030
|
fromCornerPoints(corner, oppositeCorner) {
|
|
@@ -58029,9 +58060,9 @@ class BoundingSphere {
|
|
|
58029
58060
|
}
|
|
58030
58061
|
expand(point2) {
|
|
58031
58062
|
const scratchPoint = scratchVector$5.from(point2);
|
|
58032
|
-
const
|
|
58033
|
-
if (
|
|
58034
|
-
this.radius =
|
|
58063
|
+
const radius = scratchPoint.subtract(this.center).magnitude();
|
|
58064
|
+
if (radius > this.radius) {
|
|
58065
|
+
this.radius = radius;
|
|
58035
58066
|
}
|
|
58036
58067
|
return this;
|
|
58037
58068
|
}
|
|
@@ -58052,13 +58083,13 @@ class BoundingSphere {
|
|
|
58052
58083
|
}
|
|
58053
58084
|
intersectPlane(plane) {
|
|
58054
58085
|
const center2 = this.center;
|
|
58055
|
-
const
|
|
58086
|
+
const radius = this.radius;
|
|
58056
58087
|
const normal = plane.normal;
|
|
58057
58088
|
const distanceToPlane = normal.dot(center2) + plane.distance;
|
|
58058
|
-
if (distanceToPlane < -
|
|
58089
|
+
if (distanceToPlane < -radius) {
|
|
58059
58090
|
return INTERSECTION.OUTSIDE;
|
|
58060
58091
|
}
|
|
58061
|
-
if (distanceToPlane <
|
|
58092
|
+
if (distanceToPlane < radius) {
|
|
58062
58093
|
return INTERSECTION.INTERSECTING;
|
|
58063
58094
|
}
|
|
58064
58095
|
return INTERSECTION.INSIDE;
|
|
@@ -58312,7 +58343,7 @@ class CullingVolume {
|
|
|
58312
58343
|
fromBoundingSphere(boundingSphere) {
|
|
58313
58344
|
this.planes.length = 2 * faces.length;
|
|
58314
58345
|
const center2 = boundingSphere.center;
|
|
58315
|
-
const
|
|
58346
|
+
const radius = boundingSphere.radius;
|
|
58316
58347
|
let planeIndex = 0;
|
|
58317
58348
|
for (const faceNormal of faces) {
|
|
58318
58349
|
let plane0 = this.planes[planeIndex];
|
|
@@ -58323,10 +58354,10 @@ class CullingVolume {
|
|
|
58323
58354
|
if (!plane1) {
|
|
58324
58355
|
plane1 = this.planes[planeIndex + 1] = new Plane();
|
|
58325
58356
|
}
|
|
58326
|
-
const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-
|
|
58357
|
+
const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-radius).add(center2);
|
|
58327
58358
|
-faceNormal.dot(plane0Center);
|
|
58328
58359
|
plane0.fromPointNormal(plane0Center, faceNormal);
|
|
58329
|
-
const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(
|
|
58360
|
+
const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(radius).add(center2);
|
|
58330
58361
|
const negatedFaceNormal = scratchPlaneNormal.copy(faceNormal).negate();
|
|
58331
58362
|
-negatedFaceNormal.dot(plane1Center);
|
|
58332
58363
|
plane1.fromPointNormal(plane1Center, negatedFaceNormal);
|
|
@@ -58396,7 +58427,7 @@ const scratchUnitary = new Matrix3();
|
|
|
58396
58427
|
const scratchDiagonal = new Matrix3();
|
|
58397
58428
|
const jMatrix = new Matrix3();
|
|
58398
58429
|
const jMatrixTranspose = new Matrix3();
|
|
58399
|
-
function computeEigenDecomposition(
|
|
58430
|
+
function computeEigenDecomposition(matrix, result = {}) {
|
|
58400
58431
|
const EIGEN_TOLERANCE = _MathUtils.EPSILON20;
|
|
58401
58432
|
const EIGEN_MAX_SWEEPS = 10;
|
|
58402
58433
|
let count2 = 0;
|
|
@@ -58404,7 +58435,7 @@ function computeEigenDecomposition(matrix2, result = {}) {
|
|
|
58404
58435
|
const unitaryMatrix = scratchUnitary;
|
|
58405
58436
|
const diagonalMatrix = scratchDiagonal;
|
|
58406
58437
|
unitaryMatrix.identity();
|
|
58407
|
-
diagonalMatrix.copy(
|
|
58438
|
+
diagonalMatrix.copy(matrix);
|
|
58408
58439
|
const epsilon3 = EIGEN_TOLERANCE * computeFrobeniusNorm(diagonalMatrix);
|
|
58409
58440
|
while (sweep < EIGEN_MAX_SWEEPS && offDiagonalFrobeniusNorm(diagonalMatrix) > epsilon3) {
|
|
58410
58441
|
shurDecomposition(diagonalMatrix, jMatrix);
|
|
@@ -58421,30 +58452,30 @@ function computeEigenDecomposition(matrix2, result = {}) {
|
|
|
58421
58452
|
result.diagonal = diagonalMatrix.toTarget(result.diagonal);
|
|
58422
58453
|
return result;
|
|
58423
58454
|
}
|
|
58424
|
-
function computeFrobeniusNorm(
|
|
58455
|
+
function computeFrobeniusNorm(matrix) {
|
|
58425
58456
|
let norm = 0;
|
|
58426
58457
|
for (let i2 = 0; i2 < 9; ++i2) {
|
|
58427
|
-
const temp2 =
|
|
58458
|
+
const temp2 = matrix[i2];
|
|
58428
58459
|
norm += temp2 * temp2;
|
|
58429
58460
|
}
|
|
58430
58461
|
return Math.sqrt(norm);
|
|
58431
58462
|
}
|
|
58432
58463
|
const rowVal = [1, 0, 0];
|
|
58433
58464
|
const colVal = [2, 2, 1];
|
|
58434
|
-
function offDiagonalFrobeniusNorm(
|
|
58465
|
+
function offDiagonalFrobeniusNorm(matrix) {
|
|
58435
58466
|
let norm = 0;
|
|
58436
58467
|
for (let i2 = 0; i2 < 3; ++i2) {
|
|
58437
|
-
const temp2 =
|
|
58468
|
+
const temp2 = matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])];
|
|
58438
58469
|
norm += 2 * temp2 * temp2;
|
|
58439
58470
|
}
|
|
58440
58471
|
return Math.sqrt(norm);
|
|
58441
58472
|
}
|
|
58442
|
-
function shurDecomposition(
|
|
58473
|
+
function shurDecomposition(matrix, result) {
|
|
58443
58474
|
const tolerance = _MathUtils.EPSILON15;
|
|
58444
58475
|
let maxDiagonal = 0;
|
|
58445
58476
|
let rotAxis = 1;
|
|
58446
58477
|
for (let i2 = 0; i2 < 3; ++i2) {
|
|
58447
|
-
const temp2 = Math.abs(
|
|
58478
|
+
const temp2 = Math.abs(matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])]);
|
|
58448
58479
|
if (temp2 > maxDiagonal) {
|
|
58449
58480
|
rotAxis = i2;
|
|
58450
58481
|
maxDiagonal = temp2;
|
|
@@ -58454,10 +58485,10 @@ function shurDecomposition(matrix2, result) {
|
|
|
58454
58485
|
const q = colVal[rotAxis];
|
|
58455
58486
|
let c2 = 1;
|
|
58456
58487
|
let s2 = 0;
|
|
58457
|
-
if (Math.abs(
|
|
58458
|
-
const qq =
|
|
58459
|
-
const pp =
|
|
58460
|
-
const qp =
|
|
58488
|
+
if (Math.abs(matrix[scratchMatrix.getElementIndex(q, p)]) > tolerance) {
|
|
58489
|
+
const qq = matrix[scratchMatrix.getElementIndex(q, q)];
|
|
58490
|
+
const pp = matrix[scratchMatrix.getElementIndex(p, p)];
|
|
58491
|
+
const qp = matrix[scratchMatrix.getElementIndex(q, p)];
|
|
58461
58492
|
const tau2 = (qq - pp) / 2 / qp;
|
|
58462
58493
|
let t2;
|
|
58463
58494
|
if (tau2 < 0) {
|
|
@@ -58619,8 +58650,8 @@ class OSMNode {
|
|
|
58619
58650
|
}
|
|
58620
58651
|
this.selected = false;
|
|
58621
58652
|
this.childVisible = true;
|
|
58622
|
-
for (const
|
|
58623
|
-
|
|
58653
|
+
for (const child of this.children) {
|
|
58654
|
+
child.update(params);
|
|
58624
58655
|
}
|
|
58625
58656
|
return true;
|
|
58626
58657
|
}
|
|
@@ -59262,8 +59293,8 @@ function updateTileStateReplace(allTiles) {
|
|
|
59262
59293
|
for (const tile of sortedTiles) {
|
|
59263
59294
|
tile.isVisible = Boolean(tile.state & TILE_STATE_VISIBLE);
|
|
59264
59295
|
if (tile.children && (tile.isVisible || tile.state & TILE_STATE_VISITED)) {
|
|
59265
|
-
for (const
|
|
59266
|
-
|
|
59296
|
+
for (const child of tile.children) {
|
|
59297
|
+
child.state = TILE_STATE_VISITED;
|
|
59267
59298
|
}
|
|
59268
59299
|
} else if (tile.isSelected) {
|
|
59269
59300
|
getPlaceholderInChildren(tile);
|
|
@@ -59282,11 +59313,11 @@ function getPlaceholderInAncestors(startTile) {
|
|
|
59282
59313
|
return false;
|
|
59283
59314
|
}
|
|
59284
59315
|
function getPlaceholderInChildren(tile) {
|
|
59285
|
-
for (const
|
|
59286
|
-
if (
|
|
59287
|
-
|
|
59316
|
+
for (const child of tile.children) {
|
|
59317
|
+
if (child.isLoaded || child.content) {
|
|
59318
|
+
child.state |= TILE_STATE_VISIBLE;
|
|
59288
59319
|
} else {
|
|
59289
|
-
getPlaceholderInChildren(
|
|
59320
|
+
getPlaceholderInChildren(child);
|
|
59290
59321
|
}
|
|
59291
59322
|
}
|
|
59292
59323
|
}
|
|
@@ -71544,18 +71575,18 @@ const MATRIX_ATTRIBUTES = {
|
|
|
71544
71575
|
}
|
|
71545
71576
|
const instanceModelMatrixData = attribute.value;
|
|
71546
71577
|
if (attribute.constant) {
|
|
71547
|
-
let
|
|
71578
|
+
let matrix;
|
|
71548
71579
|
if (hasMatrix) {
|
|
71549
71580
|
modelMatrix.set(getTransformMatrix);
|
|
71550
|
-
|
|
71581
|
+
matrix = getExtendedMat3FromMat4(modelMatrix);
|
|
71551
71582
|
} else {
|
|
71552
|
-
|
|
71583
|
+
matrix = valueArray;
|
|
71553
71584
|
const orientation = getOrientation;
|
|
71554
71585
|
const scale2 = getScale2;
|
|
71555
|
-
calculateTransformMatrix(
|
|
71556
|
-
|
|
71586
|
+
calculateTransformMatrix(matrix, orientation, scale2);
|
|
71587
|
+
matrix.set(getTranslation, 9);
|
|
71557
71588
|
}
|
|
71558
|
-
attribute.value = new Float32Array(
|
|
71589
|
+
attribute.value = new Float32Array(matrix);
|
|
71559
71590
|
} else {
|
|
71560
71591
|
let i2 = startRow * attribute.size;
|
|
71561
71592
|
const {
|
|
@@ -71564,29 +71595,29 @@ const MATRIX_ATTRIBUTES = {
|
|
|
71564
71595
|
} = createIterable(data, startRow, endRow);
|
|
71565
71596
|
for (const object2 of iterable) {
|
|
71566
71597
|
objectInfo.index++;
|
|
71567
|
-
let
|
|
71598
|
+
let matrix;
|
|
71568
71599
|
if (hasMatrix) {
|
|
71569
71600
|
modelMatrix.set(constantMatrix ? getTransformMatrix : getTransformMatrix(object2, objectInfo));
|
|
71570
|
-
|
|
71601
|
+
matrix = getExtendedMat3FromMat4(modelMatrix);
|
|
71571
71602
|
} else {
|
|
71572
|
-
|
|
71603
|
+
matrix = valueArray;
|
|
71573
71604
|
const orientation = constantOrientation ? getOrientation : getOrientation(object2, objectInfo);
|
|
71574
71605
|
const scale2 = constantScale ? getScale2 : getScale2(object2, objectInfo);
|
|
71575
|
-
calculateTransformMatrix(
|
|
71576
|
-
|
|
71606
|
+
calculateTransformMatrix(matrix, orientation, scale2);
|
|
71607
|
+
matrix.set(constantTranslation ? getTranslation : getTranslation(object2, objectInfo), 9);
|
|
71577
71608
|
}
|
|
71578
|
-
instanceModelMatrixData[i2++] =
|
|
71579
|
-
instanceModelMatrixData[i2++] =
|
|
71580
|
-
instanceModelMatrixData[i2++] =
|
|
71581
|
-
instanceModelMatrixData[i2++] =
|
|
71582
|
-
instanceModelMatrixData[i2++] =
|
|
71583
|
-
instanceModelMatrixData[i2++] =
|
|
71584
|
-
instanceModelMatrixData[i2++] =
|
|
71585
|
-
instanceModelMatrixData[i2++] =
|
|
71586
|
-
instanceModelMatrixData[i2++] =
|
|
71587
|
-
instanceModelMatrixData[i2++] =
|
|
71588
|
-
instanceModelMatrixData[i2++] =
|
|
71589
|
-
instanceModelMatrixData[i2++] =
|
|
71609
|
+
instanceModelMatrixData[i2++] = matrix[0];
|
|
71610
|
+
instanceModelMatrixData[i2++] = matrix[1];
|
|
71611
|
+
instanceModelMatrixData[i2++] = matrix[2];
|
|
71612
|
+
instanceModelMatrixData[i2++] = matrix[3];
|
|
71613
|
+
instanceModelMatrixData[i2++] = matrix[4];
|
|
71614
|
+
instanceModelMatrixData[i2++] = matrix[5];
|
|
71615
|
+
instanceModelMatrixData[i2++] = matrix[6];
|
|
71616
|
+
instanceModelMatrixData[i2++] = matrix[7];
|
|
71617
|
+
instanceModelMatrixData[i2++] = matrix[8];
|
|
71618
|
+
instanceModelMatrixData[i2++] = matrix[9];
|
|
71619
|
+
instanceModelMatrixData[i2++] = matrix[10];
|
|
71620
|
+
instanceModelMatrixData[i2++] = matrix[11];
|
|
71590
71621
|
}
|
|
71591
71622
|
}
|
|
71592
71623
|
}
|
|
@@ -71843,12 +71874,12 @@ class ScenegraphNode {
|
|
|
71843
71874
|
this.scale = scale2;
|
|
71844
71875
|
return this;
|
|
71845
71876
|
}
|
|
71846
|
-
setMatrix(
|
|
71877
|
+
setMatrix(matrix) {
|
|
71847
71878
|
let copyMatrix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
71848
71879
|
if (copyMatrix) {
|
|
71849
|
-
this.matrix.copy(
|
|
71880
|
+
this.matrix.copy(matrix);
|
|
71850
71881
|
} else {
|
|
71851
|
-
this.matrix =
|
|
71882
|
+
this.matrix = matrix;
|
|
71852
71883
|
}
|
|
71853
71884
|
}
|
|
71854
71885
|
setMatrixComponents(_ref) {
|
|
@@ -71944,7 +71975,7 @@ class GroupNode extends ScenegraphNode {
|
|
|
71944
71975
|
const {
|
|
71945
71976
|
children: children2 = []
|
|
71946
71977
|
} = props2;
|
|
71947
|
-
log$2.assert(children2.every((
|
|
71978
|
+
log$2.assert(children2.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
|
|
71948
71979
|
super(props2);
|
|
71949
71980
|
this.children = children2;
|
|
71950
71981
|
}
|
|
@@ -71952,18 +71983,18 @@ class GroupNode extends ScenegraphNode {
|
|
|
71952
71983
|
for (var _len = arguments.length, children2 = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
71953
71984
|
children2[_key] = arguments[_key];
|
|
71954
71985
|
}
|
|
71955
|
-
for (const
|
|
71956
|
-
if (Array.isArray(
|
|
71957
|
-
this.add(...
|
|
71986
|
+
for (const child of children2) {
|
|
71987
|
+
if (Array.isArray(child)) {
|
|
71988
|
+
this.add(...child);
|
|
71958
71989
|
} else {
|
|
71959
|
-
this.children.push(
|
|
71990
|
+
this.children.push(child);
|
|
71960
71991
|
}
|
|
71961
71992
|
}
|
|
71962
71993
|
return this;
|
|
71963
71994
|
}
|
|
71964
|
-
remove(
|
|
71995
|
+
remove(child) {
|
|
71965
71996
|
const children2 = this.children;
|
|
71966
|
-
const indexOf = children2.indexOf(
|
|
71997
|
+
const indexOf = children2.indexOf(child);
|
|
71967
71998
|
if (indexOf > -1) {
|
|
71968
71999
|
children2.splice(indexOf, 1);
|
|
71969
72000
|
}
|
|
@@ -71974,7 +72005,7 @@ class GroupNode extends ScenegraphNode {
|
|
|
71974
72005
|
return this;
|
|
71975
72006
|
}
|
|
71976
72007
|
delete() {
|
|
71977
|
-
this.children.forEach((
|
|
72008
|
+
this.children.forEach((child) => child.delete());
|
|
71978
72009
|
this.removeAll();
|
|
71979
72010
|
super.delete();
|
|
71980
72011
|
}
|
|
@@ -71983,13 +72014,13 @@ class GroupNode extends ScenegraphNode {
|
|
|
71983
72014
|
worldMatrix = new Matrix4()
|
|
71984
72015
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
71985
72016
|
const modelMatrix2 = new Matrix4(worldMatrix).multiplyRight(this.matrix);
|
|
71986
|
-
for (const
|
|
71987
|
-
if (
|
|
71988
|
-
|
|
72017
|
+
for (const child of this.children) {
|
|
72018
|
+
if (child instanceof GroupNode) {
|
|
72019
|
+
child.traverse(visitor, {
|
|
71989
72020
|
worldMatrix: modelMatrix2
|
|
71990
72021
|
});
|
|
71991
72022
|
} else {
|
|
71992
|
-
visitor(
|
|
72023
|
+
visitor(child, {
|
|
71993
72024
|
worldMatrix: modelMatrix2
|
|
71994
72025
|
});
|
|
71995
72026
|
}
|
|
@@ -72480,7 +72511,7 @@ class GLTFInstantiator {
|
|
|
72480
72511
|
createNode(gltfNode) {
|
|
72481
72512
|
if (!gltfNode._node) {
|
|
72482
72513
|
const gltfChildren = gltfNode.children || [];
|
|
72483
|
-
const children2 = gltfChildren.map((
|
|
72514
|
+
const children2 = gltfChildren.map((child) => this.createNode(child));
|
|
72484
72515
|
if (gltfNode.mesh) {
|
|
72485
72516
|
children2.push(this.createMesh(gltfNode.mesh));
|
|
72486
72517
|
}
|
|
@@ -73315,14 +73346,14 @@ class GLTFScenegraph {
|
|
|
73315
73346
|
addNode(node) {
|
|
73316
73347
|
const {
|
|
73317
73348
|
meshIndex,
|
|
73318
|
-
matrix
|
|
73349
|
+
matrix
|
|
73319
73350
|
} = node;
|
|
73320
73351
|
this.json.nodes = this.json.nodes || [];
|
|
73321
73352
|
const nodeData = {
|
|
73322
73353
|
mesh: meshIndex
|
|
73323
73354
|
};
|
|
73324
|
-
if (
|
|
73325
|
-
nodeData.matrix =
|
|
73355
|
+
if (matrix) {
|
|
73356
|
+
nodeData.matrix = matrix;
|
|
73326
73357
|
}
|
|
73327
73358
|
this.json.nodes.push(nodeData);
|
|
73328
73359
|
return this.json.nodes.length - 1;
|
|
@@ -74023,12 +74054,12 @@ class Float64 extends Float {
|
|
|
74023
74054
|
}
|
|
74024
74055
|
_Symbol$toStringTag7 = Symbol.toStringTag;
|
|
74025
74056
|
class FixedSizeList extends DataType {
|
|
74026
|
-
constructor(listSize,
|
|
74057
|
+
constructor(listSize, child) {
|
|
74027
74058
|
super();
|
|
74028
74059
|
_defineProperty$f(this, "listSize", void 0);
|
|
74029
74060
|
_defineProperty$f(this, "children", void 0);
|
|
74030
74061
|
this.listSize = listSize;
|
|
74031
|
-
this.children = [
|
|
74062
|
+
this.children = [child];
|
|
74032
74063
|
}
|
|
74033
74064
|
get typeId() {
|
|
74034
74065
|
return Type.FixedSizeList;
|
|
@@ -75031,7 +75062,7 @@ class GLTFV1Normalizer {
|
|
|
75031
75062
|
}
|
|
75032
75063
|
_convertNodeIds(node) {
|
|
75033
75064
|
if (node.children) {
|
|
75034
|
-
node.children = node.children.map((
|
|
75065
|
+
node.children = node.children.map((child) => this._convertIdToIndex(child, "node"));
|
|
75035
75066
|
}
|
|
75036
75067
|
if (node.meshes) {
|
|
75037
75068
|
node.meshes = node.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
|
|
@@ -75247,7 +75278,7 @@ class GLTFPostProcessor {
|
|
|
75247
75278
|
_resolveNode(node, index2) {
|
|
75248
75279
|
node.id = node.id || "node-".concat(index2);
|
|
75249
75280
|
if (node.children) {
|
|
75250
|
-
node.children = node.children.map((
|
|
75281
|
+
node.children = node.children.map((child) => this.getNode(child));
|
|
75251
75282
|
}
|
|
75252
75283
|
if (node.mesh !== void 0) {
|
|
75253
75284
|
node.mesh = this.getMesh(node.mesh);
|
|
@@ -76799,9 +76830,9 @@ function getZoomFromBoundingVolume(boundingVolume, cartorgraphicCenter) {
|
|
|
76799
76830
|
return Math.log2(WGS84_RADIUS_Z / (obbSize + cartorgraphicCenter[2]));
|
|
76800
76831
|
} else if (boundingVolume instanceof BoundingSphere) {
|
|
76801
76832
|
const {
|
|
76802
|
-
radius
|
|
76833
|
+
radius
|
|
76803
76834
|
} = boundingVolume;
|
|
76804
|
-
return Math.log2(WGS84_RADIUS_Z / (
|
|
76835
|
+
return Math.log2(WGS84_RADIUS_Z / (radius + cartorgraphicCenter[2]));
|
|
76805
76836
|
} else if (boundingVolume.width && boundingVolume.height) {
|
|
76806
76837
|
const {
|
|
76807
76838
|
width,
|
|
@@ -76884,8 +76915,8 @@ function createBoundingVolume(boundingVolumeHeader, transform2, result) {
|
|
|
76884
76915
|
const northWest = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(west), degrees$1(north), minHeight], scratchNorthWest);
|
|
76885
76916
|
const southEast = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(east), degrees$1(south), maxHeight], scratchSouthEast);
|
|
76886
76917
|
const centerInCartesian = new Vector3().addVectors(northWest, southEast).multiplyScalar(0.5);
|
|
76887
|
-
const
|
|
76888
|
-
return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2],
|
|
76918
|
+
const radius = new Vector3().subVectors(northWest, southEast).len() / 2;
|
|
76919
|
+
return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2], radius], new Matrix4());
|
|
76889
76920
|
}
|
|
76890
76921
|
if (boundingVolumeHeader.sphere) {
|
|
76891
76922
|
return createSphere(boundingVolumeHeader.sphere, transform2, result);
|
|
@@ -76929,13 +76960,13 @@ function createSphere(sphere, transform2, result) {
|
|
|
76929
76960
|
transform2.transform(center2, center2);
|
|
76930
76961
|
const scale2 = transform2.getScale(scratchScale);
|
|
76931
76962
|
const uniformScale = Math.max(Math.max(scale2[0], scale2[1]), scale2[2]);
|
|
76932
|
-
const
|
|
76963
|
+
const radius = sphere[3] * uniformScale;
|
|
76933
76964
|
if (defined$3(result)) {
|
|
76934
76965
|
result.center = center2;
|
|
76935
|
-
result.radius =
|
|
76966
|
+
result.radius = radius;
|
|
76936
76967
|
return result;
|
|
76937
76968
|
}
|
|
76938
|
-
return new BoundingSphere(center2,
|
|
76969
|
+
return new BoundingSphere(center2, radius);
|
|
76939
76970
|
}
|
|
76940
76971
|
new Vector3();
|
|
76941
76972
|
new Vector3();
|
|
@@ -77208,8 +77239,8 @@ class TilesetTraverser {
|
|
|
77208
77239
|
}
|
|
77209
77240
|
updateChildTiles(tile, frameState) {
|
|
77210
77241
|
const children2 = tile.children;
|
|
77211
|
-
for (const
|
|
77212
|
-
this.updateTile(
|
|
77242
|
+
for (const child of children2) {
|
|
77243
|
+
this.updateTile(child, frameState);
|
|
77213
77244
|
}
|
|
77214
77245
|
return true;
|
|
77215
77246
|
}
|
|
@@ -77223,26 +77254,26 @@ class TilesetTraverser {
|
|
|
77223
77254
|
const checkRefines = tile.refine === TILE_REFINEMENT.REPLACE && tile.hasRenderContent && !skipLevelOfDetail;
|
|
77224
77255
|
let hasVisibleChild = false;
|
|
77225
77256
|
let refines = true;
|
|
77226
|
-
for (const
|
|
77227
|
-
|
|
77228
|
-
if (
|
|
77229
|
-
if (stack2.find(
|
|
77230
|
-
stack2.delete(
|
|
77257
|
+
for (const child of children2) {
|
|
77258
|
+
child._selectionDepth = depth;
|
|
77259
|
+
if (child.isVisibleAndInRequestVolume) {
|
|
77260
|
+
if (stack2.find(child)) {
|
|
77261
|
+
stack2.delete(child);
|
|
77231
77262
|
}
|
|
77232
|
-
stack2.push(
|
|
77263
|
+
stack2.push(child);
|
|
77233
77264
|
hasVisibleChild = true;
|
|
77234
77265
|
} else if (checkRefines || loadSiblings) {
|
|
77235
|
-
this.loadTile(
|
|
77236
|
-
this.touchTile(
|
|
77266
|
+
this.loadTile(child, frameState);
|
|
77267
|
+
this.touchTile(child, frameState);
|
|
77237
77268
|
}
|
|
77238
77269
|
if (checkRefines) {
|
|
77239
77270
|
let childRefines;
|
|
77240
|
-
if (!
|
|
77271
|
+
if (!child._inRequestVolume) {
|
|
77241
77272
|
childRefines = false;
|
|
77242
|
-
} else if (!
|
|
77243
|
-
childRefines = this.executeEmptyTraversal(
|
|
77273
|
+
} else if (!child.hasRenderContent) {
|
|
77274
|
+
childRefines = this.executeEmptyTraversal(child, frameState);
|
|
77244
77275
|
} else {
|
|
77245
|
-
childRefines =
|
|
77276
|
+
childRefines = child.contentAvailable;
|
|
77246
77277
|
}
|
|
77247
77278
|
refines = refines && childRefines;
|
|
77248
77279
|
if (!refines) {
|
|
@@ -77319,9 +77350,9 @@ class TilesetTraverser {
|
|
|
77319
77350
|
}
|
|
77320
77351
|
anyChildrenVisible(tile, frameState) {
|
|
77321
77352
|
let anyVisible = false;
|
|
77322
|
-
for (const
|
|
77323
|
-
|
|
77324
|
-
anyVisible = anyVisible ||
|
|
77353
|
+
for (const child of tile.children) {
|
|
77354
|
+
child.updateVisibility(frameState);
|
|
77355
|
+
anyVisible = anyVisible || child.isVisibleAndInRequestVolume;
|
|
77325
77356
|
}
|
|
77326
77357
|
return anyVisible;
|
|
77327
77358
|
}
|
|
@@ -77339,11 +77370,11 @@ class TilesetTraverser {
|
|
|
77339
77370
|
const traverse = !tile.hasRenderContent && this.canTraverse(tile, frameState, false, true);
|
|
77340
77371
|
if (traverse) {
|
|
77341
77372
|
const children2 = tile.children;
|
|
77342
|
-
for (const
|
|
77343
|
-
if (stack2.find(
|
|
77344
|
-
stack2.delete(
|
|
77373
|
+
for (const child of children2) {
|
|
77374
|
+
if (stack2.find(child)) {
|
|
77375
|
+
stack2.delete(child);
|
|
77345
77376
|
}
|
|
77346
|
-
stack2.push(
|
|
77377
|
+
stack2.push(child);
|
|
77347
77378
|
}
|
|
77348
77379
|
} else if (!tile.contentAvailable) {
|
|
77349
77380
|
allDescendantsLoaded = false;
|
|
@@ -77911,15 +77942,15 @@ class I3STilesetTraverser extends TilesetTraverser {
|
|
|
77911
77942
|
const children2 = tile.header.children || [];
|
|
77912
77943
|
const childTiles = tile.children;
|
|
77913
77944
|
const tileset = tile.tileset;
|
|
77914
|
-
for (const
|
|
77915
|
-
const extendedId = "".concat(
|
|
77945
|
+
for (const child of children2) {
|
|
77946
|
+
const extendedId = "".concat(child.id, "-").concat(frameState.viewport.id);
|
|
77916
77947
|
const childTile = childTiles && childTiles.find((t2) => t2.id === extendedId);
|
|
77917
77948
|
if (!childTile) {
|
|
77918
|
-
let request = () => this._loadTile(
|
|
77949
|
+
let request = () => this._loadTile(child.id, tileset);
|
|
77919
77950
|
const cachedRequest = this._tileManager.find(extendedId);
|
|
77920
77951
|
if (!cachedRequest) {
|
|
77921
77952
|
if (tileset.tileset.nodePages) {
|
|
77922
|
-
request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(
|
|
77953
|
+
request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(child.id);
|
|
77923
77954
|
}
|
|
77924
77955
|
this._tileManager.add(request, extendedId, (header) => this._onTileLoad(header, tile, extendedId), frameState);
|
|
77925
77956
|
} else {
|
|
@@ -78475,8 +78506,8 @@ class Tileset3D {
|
|
|
78475
78506
|
}
|
|
78476
78507
|
while (stack2.length > 0) {
|
|
78477
78508
|
const tile = stack2.pop();
|
|
78478
|
-
for (const
|
|
78479
|
-
stack2.push(
|
|
78509
|
+
for (const child of tile.children) {
|
|
78510
|
+
stack2.push(child);
|
|
78480
78511
|
}
|
|
78481
78512
|
this._destroyTile(tile);
|
|
78482
78513
|
}
|
|
@@ -78488,8 +78519,8 @@ class Tileset3D {
|
|
|
78488
78519
|
stack2.push(root2);
|
|
78489
78520
|
while (stack2.length > 0) {
|
|
78490
78521
|
tile = stack2.pop();
|
|
78491
|
-
for (const
|
|
78492
|
-
stack2.push(
|
|
78522
|
+
for (const child of tile.children) {
|
|
78523
|
+
stack2.push(child);
|
|
78493
78524
|
}
|
|
78494
78525
|
if (tile !== root2) {
|
|
78495
78526
|
this._destroyTile(tile);
|
|
@@ -84295,7 +84326,7 @@ function evaluateChildren(children2, childProps) {
|
|
|
84295
84326
|
return children2(childProps);
|
|
84296
84327
|
}
|
|
84297
84328
|
if (Array.isArray(children2)) {
|
|
84298
|
-
return children2.map((
|
|
84329
|
+
return children2.map((child) => evaluateChildren(child, childProps));
|
|
84299
84330
|
}
|
|
84300
84331
|
if (isComponent(children2)) {
|
|
84301
84332
|
if (isReactMap(children2)) {
|
|
@@ -84308,16 +84339,16 @@ function evaluateChildren(children2, childProps) {
|
|
|
84308
84339
|
}
|
|
84309
84340
|
return children2;
|
|
84310
84341
|
}
|
|
84311
|
-
function isComponent(
|
|
84312
|
-
return
|
|
84342
|
+
function isComponent(child) {
|
|
84343
|
+
return child && typeof child === "object" && "type" in child || false;
|
|
84313
84344
|
}
|
|
84314
|
-
function isReactMap(
|
|
84315
|
-
const componentClass =
|
|
84345
|
+
function isReactMap(child) {
|
|
84346
|
+
const componentClass = child.type;
|
|
84316
84347
|
const componentProps = componentClass && componentClass.defaultProps;
|
|
84317
84348
|
return componentProps && componentProps.mapStyle;
|
|
84318
84349
|
}
|
|
84319
|
-
function needsDeckGLViewProps(
|
|
84320
|
-
const componentClass =
|
|
84350
|
+
function needsDeckGLViewProps(child) {
|
|
84351
|
+
const componentClass = child.type;
|
|
84321
84352
|
return componentClass && componentClass.deckGLViewProps;
|
|
84322
84353
|
}
|
|
84323
84354
|
function wrapInView(node) {
|
|
@@ -84402,12 +84433,12 @@ function positionChildrenUnderViews({
|
|
|
84402
84433
|
}
|
|
84403
84434
|
const views = {};
|
|
84404
84435
|
const defaultViewId = viewManager.views[0].id;
|
|
84405
|
-
for (const
|
|
84436
|
+
for (const child of children2) {
|
|
84406
84437
|
let viewId = defaultViewId;
|
|
84407
|
-
let viewChildren =
|
|
84408
|
-
if (isComponent(
|
|
84409
|
-
viewId =
|
|
84410
|
-
viewChildren =
|
|
84438
|
+
let viewChildren = child;
|
|
84439
|
+
if (isComponent(child) && inheritsFrom(child.type, View)) {
|
|
84440
|
+
viewId = child.props.id || defaultViewId;
|
|
84441
|
+
viewChildren = child.props.children;
|
|
84411
84442
|
}
|
|
84412
84443
|
const viewport = viewManager.getViewport(viewId);
|
|
84413
84444
|
const viewState = viewManager.getViewState(viewId);
|
|
@@ -86936,7 +86967,7 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
|
86936
86967
|
var slice = Array.prototype.slice;
|
|
86937
86968
|
var toStr$2 = Object.prototype.toString;
|
|
86938
86969
|
var funcType = "[object Function]";
|
|
86939
|
-
var implementation$7 = function bind2(
|
|
86970
|
+
var implementation$7 = function bind2(that) {
|
|
86940
86971
|
var target = this;
|
|
86941
86972
|
if (typeof target !== "function" || toStr$2.call(target) !== funcType) {
|
|
86942
86973
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
@@ -86955,7 +86986,7 @@ var implementation$7 = function bind2(that2) {
|
|
|
86955
86986
|
return this;
|
|
86956
86987
|
} else {
|
|
86957
86988
|
return target.apply(
|
|
86958
|
-
|
|
86989
|
+
that,
|
|
86959
86990
|
args.concat(slice.call(arguments))
|
|
86960
86991
|
);
|
|
86961
86992
|
}
|
|
@@ -98667,13 +98698,13 @@ function rotation(rotate2) {
|
|
|
98667
98698
|
};
|
|
98668
98699
|
return forward;
|
|
98669
98700
|
}
|
|
98670
|
-
function circleStream(stream,
|
|
98701
|
+
function circleStream(stream, radius, delta, direction, t0, t1) {
|
|
98671
98702
|
if (!delta)
|
|
98672
98703
|
return;
|
|
98673
|
-
var cosRadius = cos(
|
|
98704
|
+
var cosRadius = cos(radius), sinRadius = sin(radius), step = direction * delta;
|
|
98674
98705
|
if (t0 == null) {
|
|
98675
|
-
t0 =
|
|
98676
|
-
t1 =
|
|
98706
|
+
t0 = radius + direction * tau;
|
|
98707
|
+
t1 = radius - step / 2;
|
|
98677
98708
|
} else {
|
|
98678
98709
|
t0 = circleRadius(cosRadius, t0);
|
|
98679
98710
|
t1 = circleRadius(cosRadius, t1);
|
|
@@ -98688,17 +98719,17 @@ function circleStream(stream, radius2, delta, direction, t0, t1) {
|
|
|
98688
98719
|
function circleRadius(cosRadius, point2) {
|
|
98689
98720
|
point2 = cartesian(point2), point2[0] -= cosRadius;
|
|
98690
98721
|
cartesianNormalizeInPlace(point2);
|
|
98691
|
-
var
|
|
98692
|
-
return ((-point2[2] < 0 ? -
|
|
98722
|
+
var radius = acos(-point2[1]);
|
|
98723
|
+
return ((-point2[2] < 0 ? -radius : radius) + tau - epsilon$1) % tau;
|
|
98693
98724
|
}
|
|
98694
98725
|
function circle$2() {
|
|
98695
|
-
var center2 = constant$3([0, 0]),
|
|
98726
|
+
var center2 = constant$3([0, 0]), radius = constant$3(90), precision = constant$3(6), ring, rotate2, stream = { point: point2 };
|
|
98696
98727
|
function point2(x2, y2) {
|
|
98697
98728
|
ring.push(x2 = rotate2(x2, y2));
|
|
98698
98729
|
x2[0] *= degrees, x2[1] *= degrees;
|
|
98699
98730
|
}
|
|
98700
98731
|
function circle2() {
|
|
98701
|
-
var c2 = center2.apply(this, arguments), r2 =
|
|
98732
|
+
var c2 = center2.apply(this, arguments), r2 = radius.apply(this, arguments) * radians, p = precision.apply(this, arguments) * radians;
|
|
98702
98733
|
ring = [];
|
|
98703
98734
|
rotate2 = rotateRadians(-c2[0] * radians, -c2[1] * radians, 0).invert;
|
|
98704
98735
|
circleStream(stream, r2, p, 1);
|
|
@@ -98710,7 +98741,7 @@ function circle$2() {
|
|
|
98710
98741
|
return arguments.length ? (center2 = typeof _ === "function" ? _ : constant$3([+_[0], +_[1]]), circle2) : center2;
|
|
98711
98742
|
};
|
|
98712
98743
|
circle2.radius = function(_) {
|
|
98713
|
-
return arguments.length ? (
|
|
98744
|
+
return arguments.length ? (radius = typeof _ === "function" ? _ : constant$3(+_), circle2) : radius;
|
|
98714
98745
|
};
|
|
98715
98746
|
circle2.precision = function(_) {
|
|
98716
98747
|
return arguments.length ? (precision = typeof _ === "function" ? _ : constant$3(+_), circle2) : precision;
|
|
@@ -99605,8 +99636,8 @@ PathString.prototype = {
|
|
|
99605
99636
|
}
|
|
99606
99637
|
}
|
|
99607
99638
|
};
|
|
99608
|
-
function circle$1(
|
|
99609
|
-
return "m0," +
|
|
99639
|
+
function circle$1(radius) {
|
|
99640
|
+
return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z";
|
|
99610
99641
|
}
|
|
99611
99642
|
function index(projection2, context) {
|
|
99612
99643
|
var pointRadius = 4.5, projectionStream, contextStream;
|
|
@@ -99832,10 +99863,10 @@ function clipAntimeridianInterpolate(from, to, direction, stream) {
|
|
|
99832
99863
|
stream.point(to[0], to[1]);
|
|
99833
99864
|
}
|
|
99834
99865
|
}
|
|
99835
|
-
function clipCircle(
|
|
99836
|
-
var cr = cos(
|
|
99866
|
+
function clipCircle(radius, delta) {
|
|
99867
|
+
var cr = cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon$1;
|
|
99837
99868
|
function interpolate2(from, to, direction, stream) {
|
|
99838
|
-
circleStream(stream,
|
|
99869
|
+
circleStream(stream, radius, delta, direction, from, to);
|
|
99839
99870
|
}
|
|
99840
99871
|
function visible(lambda, phi) {
|
|
99841
99872
|
return cos(lambda) * cos(phi) > cr;
|
|
@@ -99933,7 +99964,7 @@ function clipCircle(radius2, delta) {
|
|
|
99933
99964
|
}
|
|
99934
99965
|
}
|
|
99935
99966
|
function code(lambda, phi) {
|
|
99936
|
-
var r2 = smallRadius ?
|
|
99967
|
+
var r2 = smallRadius ? radius : pi - radius, code2 = 0;
|
|
99937
99968
|
if (lambda < -r2)
|
|
99938
99969
|
code2 |= 1;
|
|
99939
99970
|
else if (lambda > r2)
|
|
@@ -99944,7 +99975,7 @@ function clipCircle(radius2, delta) {
|
|
|
99944
99975
|
code2 |= 8;
|
|
99945
99976
|
return code2;
|
|
99946
99977
|
}
|
|
99947
|
-
return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -
|
|
99978
|
+
return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -radius] : [-pi, radius - pi]);
|
|
99948
99979
|
}
|
|
99949
99980
|
function transform$1(methods) {
|
|
99950
99981
|
return {
|
|
@@ -100537,7 +100568,7 @@ function _interopDefaultLegacy$6(e3) {
|
|
|
100537
100568
|
return e3 && typeof e3 === "object" && "default" in e3 ? e3 : { "default": e3 };
|
|
100538
100569
|
}
|
|
100539
100570
|
var center__default$1 = /* @__PURE__ */ _interopDefaultLegacy$6(center$2);
|
|
100540
|
-
function buffer(geojson,
|
|
100571
|
+
function buffer(geojson, radius, options) {
|
|
100541
100572
|
options = options || {};
|
|
100542
100573
|
var units2 = options.units || "kilometers";
|
|
100543
100574
|
var steps = options.steps || 8;
|
|
@@ -100547,7 +100578,7 @@ function buffer(geojson, radius2, options) {
|
|
|
100547
100578
|
throw new Error("options must be an object");
|
|
100548
100579
|
if (typeof steps !== "number")
|
|
100549
100580
|
throw new Error("steps must be an number");
|
|
100550
|
-
if (
|
|
100581
|
+
if (radius === void 0)
|
|
100551
100582
|
throw new Error("radius is required");
|
|
100552
100583
|
if (steps <= 0)
|
|
100553
100584
|
throw new Error("steps must be greater than 0");
|
|
@@ -100555,14 +100586,14 @@ function buffer(geojson, radius2, options) {
|
|
|
100555
100586
|
switch (geojson.type) {
|
|
100556
100587
|
case "GeometryCollection":
|
|
100557
100588
|
meta$4.geomEach(geojson, function(geometry2) {
|
|
100558
|
-
var buffered = bufferFeature(geometry2,
|
|
100589
|
+
var buffered = bufferFeature(geometry2, radius, units2, steps);
|
|
100559
100590
|
if (buffered)
|
|
100560
100591
|
results.push(buffered);
|
|
100561
100592
|
});
|
|
100562
100593
|
return helpers$6.featureCollection(results);
|
|
100563
100594
|
case "FeatureCollection":
|
|
100564
100595
|
meta$4.featureEach(geojson, function(feature2) {
|
|
100565
|
-
var multiBuffered = bufferFeature(feature2,
|
|
100596
|
+
var multiBuffered = bufferFeature(feature2, radius, units2, steps);
|
|
100566
100597
|
if (multiBuffered) {
|
|
100567
100598
|
meta$4.featureEach(multiBuffered, function(buffered) {
|
|
100568
100599
|
if (buffered)
|
|
@@ -100572,15 +100603,15 @@ function buffer(geojson, radius2, options) {
|
|
|
100572
100603
|
});
|
|
100573
100604
|
return helpers$6.featureCollection(results);
|
|
100574
100605
|
}
|
|
100575
|
-
return bufferFeature(geojson,
|
|
100606
|
+
return bufferFeature(geojson, radius, units2, steps);
|
|
100576
100607
|
}
|
|
100577
|
-
function bufferFeature(geojson,
|
|
100608
|
+
function bufferFeature(geojson, radius, units2, steps) {
|
|
100578
100609
|
var properties = geojson.properties || {};
|
|
100579
100610
|
var geometry2 = geojson.type === "Feature" ? geojson.geometry : geojson;
|
|
100580
100611
|
if (geometry2.type === "GeometryCollection") {
|
|
100581
100612
|
var results = [];
|
|
100582
100613
|
meta$4.geomEach(geojson, function(geometry3) {
|
|
100583
|
-
var buffered2 = bufferFeature(geometry3,
|
|
100614
|
+
var buffered2 = bufferFeature(geometry3, radius, units2, steps);
|
|
100584
100615
|
if (buffered2)
|
|
100585
100616
|
results.push(buffered2);
|
|
100586
100617
|
});
|
|
@@ -100593,7 +100624,7 @@ function bufferFeature(geojson, radius2, units2, steps) {
|
|
|
100593
100624
|
};
|
|
100594
100625
|
var reader = new turfJsts.GeoJSONReader();
|
|
100595
100626
|
var geom = reader.read(projected);
|
|
100596
|
-
var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(
|
|
100627
|
+
var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(radius, units2), "meters");
|
|
100597
100628
|
var buffered = turfJsts.BufferOp.bufferOp(geom, distance2, steps);
|
|
100598
100629
|
var writer = new turfJsts.GeoJSONWriter();
|
|
100599
100630
|
buffered = writer.write(buffered);
|
|
@@ -103298,10 +103329,10 @@ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
|
|
|
103298
103329
|
this._maxListeners = n2;
|
|
103299
103330
|
return this;
|
|
103300
103331
|
};
|
|
103301
|
-
function _getMaxListeners(
|
|
103302
|
-
if (
|
|
103332
|
+
function _getMaxListeners(that) {
|
|
103333
|
+
if (that._maxListeners === void 0)
|
|
103303
103334
|
return EventEmitter.defaultMaxListeners;
|
|
103304
|
-
return
|
|
103335
|
+
return that._maxListeners;
|
|
103305
103336
|
}
|
|
103306
103337
|
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
103307
103338
|
return _getMaxListeners(this);
|
|
@@ -104446,9 +104477,9 @@ function rhumbDistance$2(from, to, options) {
|
|
|
104446
104477
|
var distance2 = helpers_1$9.convertLength(distanceInMeters, "meters", options.units);
|
|
104447
104478
|
return distance2;
|
|
104448
104479
|
}
|
|
104449
|
-
function calculateRhumbDistance(origin, destination2,
|
|
104450
|
-
|
|
104451
|
-
var R2 =
|
|
104480
|
+
function calculateRhumbDistance(origin, destination2, radius) {
|
|
104481
|
+
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
104482
|
+
var R2 = radius;
|
|
104452
104483
|
var phi12 = origin[1] * Math.PI / 180;
|
|
104453
104484
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
104454
104485
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -106136,7 +106167,7 @@ var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || func
|
|
|
106136
106167
|
Object.defineProperty(js$d, "__esModule", { value: true });
|
|
106137
106168
|
var destination_1$1 = __importDefault$2(js$i);
|
|
106138
106169
|
var helpers_1$6 = js$w;
|
|
106139
|
-
function circle(center2,
|
|
106170
|
+
function circle(center2, radius, options) {
|
|
106140
106171
|
if (options === void 0) {
|
|
106141
106172
|
options = {};
|
|
106142
106173
|
}
|
|
@@ -106144,7 +106175,7 @@ function circle(center2, radius2, options) {
|
|
|
106144
106175
|
var properties = options.properties ? options.properties : !Array.isArray(center2) && center2.type === "Feature" && center2.properties ? center2.properties : {};
|
|
106145
106176
|
var coordinates2 = [];
|
|
106146
106177
|
for (var i2 = 0; i2 < steps; i2++) {
|
|
106147
|
-
coordinates2.push(destination_1$1.default(center2,
|
|
106178
|
+
coordinates2.push(destination_1$1.default(center2, radius, i2 * -360 / steps, options).geometry.coordinates);
|
|
106148
106179
|
}
|
|
106149
106180
|
coordinates2.push(coordinates2[0]);
|
|
106150
106181
|
return helpers_1$6.polygon([coordinates2], properties);
|
|
@@ -106395,12 +106426,12 @@ var ResizeCircleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
|
|
|
106395
106426
|
var feature2 = this.getSelectedFeature(props2);
|
|
106396
106427
|
var center2 = (0, _center$1["default"])(feature2).geometry.coordinates;
|
|
106397
106428
|
var numberOfSteps = Object.entries(feature2.geometry.coordinates[0]).length - 1;
|
|
106398
|
-
var
|
|
106429
|
+
var radius = Math.max((0, _distance$b["default"])(center2, event.mapCoords), 1e-3);
|
|
106399
106430
|
var _ref = {}, _ref$steps = _ref.steps, steps = _ref$steps === void 0 ? numberOfSteps : _ref$steps;
|
|
106400
106431
|
var options = {
|
|
106401
106432
|
steps
|
|
106402
106433
|
};
|
|
106403
|
-
var updatedFeature = (0, _circle$2["default"])(center2,
|
|
106434
|
+
var updatedFeature = (0, _circle$2["default"])(center2, radius, options);
|
|
106404
106435
|
var geometry2 = updatedFeature.geometry;
|
|
106405
106436
|
var updatedData = new _immutableFeatureCollection$6.ImmutableFeatureCollection(props2.data).replaceGeometry(editHandleProperties.featureIndex, geometry2).getObject();
|
|
106406
106437
|
props2.onEdit({
|
|
@@ -106470,9 +106501,9 @@ function rhumbDestination$4(origin, distance2, bearing2, options) {
|
|
|
106470
106501
|
destination2[0] += destination2[0] - coords[0] > 180 ? -360 : coords[0] - destination2[0] > 180 ? 360 : 0;
|
|
106471
106502
|
return helpers_1$5.point(destination2, options.properties);
|
|
106472
106503
|
}
|
|
106473
|
-
function calculateRhumbDestination(origin, distance2, bearing2,
|
|
106474
|
-
|
|
106475
|
-
var delta = distance2 /
|
|
106504
|
+
function calculateRhumbDestination(origin, distance2, bearing2, radius) {
|
|
106505
|
+
radius = radius === void 0 ? helpers_1$5.earthRadius : Number(radius);
|
|
106506
|
+
var delta = distance2 / radius;
|
|
106476
106507
|
var lambda12 = origin[0] * Math.PI / 180;
|
|
106477
106508
|
var phi12 = helpers_1$5.degreesToRadians(origin[1]);
|
|
106478
106509
|
var theta = helpers_1$5.degreesToRadians(bearing2);
|
|
@@ -110894,8 +110925,8 @@ var DrawCircleByDiameterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
|
|
|
110894
110925
|
options.steps = 4;
|
|
110895
110926
|
}
|
|
110896
110927
|
var centerCoordinates = (0, _geojsonEditMode$8.getIntermediatePosition)(coord1, coord2);
|
|
110897
|
-
var
|
|
110898
|
-
var geometry2 = (0, _circle$1["default"])(centerCoordinates,
|
|
110928
|
+
var radius = Math.max((0, _distance$5["default"])(coord1, centerCoordinates), 1e-3);
|
|
110929
|
+
var geometry2 = (0, _circle$1["default"])(centerCoordinates, radius, options);
|
|
110899
110930
|
geometry2.properties = geometry2.properties || {};
|
|
110900
110931
|
geometry2.properties.shape = "Circle";
|
|
110901
110932
|
return geometry2;
|
|
@@ -111028,8 +111059,8 @@ var DrawCircleFromCenterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
|
|
|
111028
111059
|
console.warn("Minimum steps to draw a circle is 4 ");
|
|
111029
111060
|
options.steps = 4;
|
|
111030
111061
|
}
|
|
111031
|
-
var
|
|
111032
|
-
var geometry2 = (0, _circle["default"])(coord1,
|
|
111062
|
+
var radius = Math.max((0, _distance$4["default"])(coord1, coord2), 1e-3);
|
|
111063
|
+
var geometry2 = (0, _circle["default"])(coord1, radius, options);
|
|
111033
111064
|
geometry2.properties = geometry2.properties || {};
|
|
111034
111065
|
geometry2.properties.shape = "Circle";
|
|
111035
111066
|
return geometry2;
|
|
@@ -113422,13 +113453,13 @@ var MeasureAngleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
|
|
|
113422
113453
|
}
|
|
113423
113454
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
113424
113455
|
_defineProperty$1(_assertThisInitialized$3(_this), "_getTooltips", (0, _memoize["default"])(function(_ref) {
|
|
113425
|
-
var modeConfig = _ref.modeConfig,
|
|
113456
|
+
var modeConfig = _ref.modeConfig, vertex = _ref.vertex, point1 = _ref.point1, point2 = _ref.point2;
|
|
113426
113457
|
var tooltips = DEFAULT_TOOLTIPS;
|
|
113427
|
-
if (
|
|
113458
|
+
if (vertex && point1 && point2) {
|
|
113428
113459
|
var _ref2 = modeConfig || {}, formatTooltip = _ref2.formatTooltip, measurementCallback = _ref2.measurementCallback;
|
|
113429
113460
|
var units2 = "deg";
|
|
113430
|
-
var angle1 = (0, _bearing$1["default"])(
|
|
113431
|
-
var angle2 = (0, _bearing$1["default"])(
|
|
113461
|
+
var angle1 = (0, _bearing$1["default"])(vertex, point1);
|
|
113462
|
+
var angle2 = (0, _bearing$1["default"])(vertex, point2);
|
|
113432
113463
|
var angle3 = Math.abs(angle1 - angle2);
|
|
113433
113464
|
if (angle3 > 180) {
|
|
113434
113465
|
angle3 = 360 - angle3;
|
|
@@ -120952,16 +120983,16 @@ function addDecoder(cases, importFn) {
|
|
|
120952
120983
|
}
|
|
120953
120984
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
120954
120985
|
}
|
|
120955
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
120956
|
-
addDecoder(5, () => import("./lzw-
|
|
120986
|
+
addDecoder([void 0, 1], () => import("./raw-589273c1.js").then((m2) => m2.default));
|
|
120987
|
+
addDecoder(5, () => import("./lzw-6da36e65.js").then((m2) => m2.default));
|
|
120957
120988
|
addDecoder(6, () => {
|
|
120958
120989
|
throw new Error("old style JPEG compression is not supported.");
|
|
120959
120990
|
});
|
|
120960
|
-
addDecoder(7, () => import("./jpeg-
|
|
120961
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
120962
|
-
addDecoder(32773, () => import("./packbits-
|
|
120963
|
-
addDecoder(34887, () => import("./lerc-
|
|
120964
|
-
addDecoder(50001, () => import("./webimage-
|
|
120991
|
+
addDecoder(7, () => import("./jpeg-e27c7111.js").then((m2) => m2.default));
|
|
120992
|
+
addDecoder([8, 32946], () => import("./deflate-7455633d.js").then((m2) => m2.default));
|
|
120993
|
+
addDecoder(32773, () => import("./packbits-f9f4e24f.js").then((m2) => m2.default));
|
|
120994
|
+
addDecoder(34887, () => import("./lerc-a121511e.js").then((m2) => m2.default));
|
|
120995
|
+
addDecoder(50001, () => import("./webimage-532eb642.js").then((m2) => m2.default));
|
|
120965
120996
|
function decodeRowAcc(row, stride) {
|
|
120966
120997
|
let length2 = row.length - stride;
|
|
120967
120998
|
let offset5 = 0;
|
|
@@ -121251,11 +121282,11 @@ var xmlNode$1 = function(tagname, parent, val) {
|
|
|
121251
121282
|
this.child = {};
|
|
121252
121283
|
this.attrsMap = {};
|
|
121253
121284
|
this.val = val;
|
|
121254
|
-
this.addChild = function(
|
|
121255
|
-
if (Array.isArray(this.child[
|
|
121256
|
-
this.child[
|
|
121285
|
+
this.addChild = function(child) {
|
|
121286
|
+
if (Array.isArray(this.child[child.tagname])) {
|
|
121287
|
+
this.child[child.tagname].push(child);
|
|
121257
121288
|
} else {
|
|
121258
|
-
this.child[
|
|
121289
|
+
this.child[child.tagname] = [child];
|
|
121259
121290
|
}
|
|
121260
121291
|
};
|
|
121261
121292
|
};
|
|
@@ -133667,15 +133698,15 @@ function createTheme() {
|
|
|
133667
133698
|
var depth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
133668
133699
|
var key;
|
|
133669
133700
|
for (key in node) {
|
|
133670
|
-
var
|
|
133701
|
+
var child = node[key];
|
|
133671
133702
|
if (depth === 1) {
|
|
133672
|
-
if (key.indexOf("Mui") === 0 &&
|
|
133673
|
-
traverse2(
|
|
133703
|
+
if (key.indexOf("Mui") === 0 && child) {
|
|
133704
|
+
traverse2(child, key, depth + 1);
|
|
133674
133705
|
}
|
|
133675
|
-
} else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(
|
|
133706
|
+
} else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child).length > 0) {
|
|
133676
133707
|
{
|
|
133677
133708
|
console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), "You can not override it like this: ", JSON.stringify(node, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
133678
|
-
root: _defineProperty$e({}, "&$".concat(key),
|
|
133709
|
+
root: _defineProperty$e({}, "&$".concat(key), child)
|
|
133679
133710
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join("\n"));
|
|
133680
133711
|
}
|
|
133681
133712
|
node[key] = {};
|
|
@@ -134993,11 +135024,11 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
134993
135024
|
if (sheet)
|
|
134994
135025
|
sheets.add(sheet);
|
|
134995
135026
|
this.sheet = sheet;
|
|
134996
|
-
var _ref = this.sheet ? this.sheet.options : {},
|
|
135027
|
+
var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta2 = _ref.meta, element = _ref.element;
|
|
134997
135028
|
this.element = element || createStyle();
|
|
134998
135029
|
this.element.setAttribute("data-jss", "");
|
|
134999
|
-
if (
|
|
135000
|
-
this.element.setAttribute("media",
|
|
135030
|
+
if (media)
|
|
135031
|
+
this.element.setAttribute("media", media);
|
|
135001
135032
|
if (meta2)
|
|
135002
135033
|
this.element.setAttribute("data-meta", meta2);
|
|
135003
135034
|
var nonce = getNonce();
|
|
@@ -137169,15 +137200,15 @@ function _assertThisInitialized(self2) {
|
|
|
137169
137200
|
return self2;
|
|
137170
137201
|
}
|
|
137171
137202
|
function getChildMapping(children2, mapFn) {
|
|
137172
|
-
var mapper = function mapper2(
|
|
137173
|
-
return mapFn && isValidElement(
|
|
137203
|
+
var mapper = function mapper2(child) {
|
|
137204
|
+
return mapFn && isValidElement(child) ? mapFn(child) : child;
|
|
137174
137205
|
};
|
|
137175
137206
|
var result = /* @__PURE__ */ Object.create(null);
|
|
137176
137207
|
if (children2)
|
|
137177
137208
|
Children.map(children2, function(c2) {
|
|
137178
137209
|
return c2;
|
|
137179
|
-
}).forEach(function(
|
|
137180
|
-
result[
|
|
137210
|
+
}).forEach(function(child) {
|
|
137211
|
+
result[child.key] = mapper(child);
|
|
137181
137212
|
});
|
|
137182
137213
|
return result;
|
|
137183
137214
|
}
|
|
@@ -137215,17 +137246,17 @@ function mergeChildMappings(prev, next) {
|
|
|
137215
137246
|
}
|
|
137216
137247
|
return childMapping;
|
|
137217
137248
|
}
|
|
137218
|
-
function getProp(
|
|
137219
|
-
return props2[prop] != null ? props2[prop] :
|
|
137249
|
+
function getProp(child, prop, props2) {
|
|
137250
|
+
return props2[prop] != null ? props2[prop] : child.props[prop];
|
|
137220
137251
|
}
|
|
137221
137252
|
function getInitialChildMapping(props2, onExited) {
|
|
137222
|
-
return getChildMapping(props2.children, function(
|
|
137223
|
-
return cloneElement(
|
|
137224
|
-
onExited: onExited.bind(null,
|
|
137253
|
+
return getChildMapping(props2.children, function(child) {
|
|
137254
|
+
return cloneElement(child, {
|
|
137255
|
+
onExited: onExited.bind(null, child),
|
|
137225
137256
|
in: true,
|
|
137226
|
-
appear: getProp(
|
|
137227
|
-
enter: getProp(
|
|
137228
|
-
exit: getProp(
|
|
137257
|
+
appear: getProp(child, "appear", props2),
|
|
137258
|
+
enter: getProp(child, "enter", props2),
|
|
137259
|
+
exit: getProp(child, "exit", props2)
|
|
137229
137260
|
});
|
|
137230
137261
|
});
|
|
137231
137262
|
}
|
|
@@ -137233,30 +137264,30 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
|
137233
137264
|
var nextChildMapping = getChildMapping(nextProps.children);
|
|
137234
137265
|
var children2 = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
137235
137266
|
Object.keys(children2).forEach(function(key) {
|
|
137236
|
-
var
|
|
137237
|
-
if (!isValidElement(
|
|
137267
|
+
var child = children2[key];
|
|
137268
|
+
if (!isValidElement(child))
|
|
137238
137269
|
return;
|
|
137239
137270
|
var hasPrev = key in prevChildMapping;
|
|
137240
137271
|
var hasNext = key in nextChildMapping;
|
|
137241
137272
|
var prevChild = prevChildMapping[key];
|
|
137242
137273
|
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
137243
137274
|
if (hasNext && (!hasPrev || isLeaving)) {
|
|
137244
|
-
children2[key] = cloneElement(
|
|
137245
|
-
onExited: onExited.bind(null,
|
|
137275
|
+
children2[key] = cloneElement(child, {
|
|
137276
|
+
onExited: onExited.bind(null, child),
|
|
137246
137277
|
in: true,
|
|
137247
|
-
exit: getProp(
|
|
137248
|
-
enter: getProp(
|
|
137278
|
+
exit: getProp(child, "exit", nextProps),
|
|
137279
|
+
enter: getProp(child, "enter", nextProps)
|
|
137249
137280
|
});
|
|
137250
137281
|
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
137251
|
-
children2[key] = cloneElement(
|
|
137282
|
+
children2[key] = cloneElement(child, {
|
|
137252
137283
|
in: false
|
|
137253
137284
|
});
|
|
137254
137285
|
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
137255
|
-
children2[key] = cloneElement(
|
|
137256
|
-
onExited: onExited.bind(null,
|
|
137286
|
+
children2[key] = cloneElement(child, {
|
|
137287
|
+
onExited: onExited.bind(null, child),
|
|
137257
137288
|
in: prevChild.props.in,
|
|
137258
|
-
exit: getProp(
|
|
137259
|
-
enter: getProp(
|
|
137289
|
+
exit: getProp(child, "exit", nextProps),
|
|
137290
|
+
enter: getProp(child, "enter", nextProps)
|
|
137260
137291
|
});
|
|
137261
137292
|
}
|
|
137262
137293
|
});
|
|
@@ -137269,8 +137300,8 @@ var values = Object.values || function(obj) {
|
|
|
137269
137300
|
};
|
|
137270
137301
|
var defaultProps = {
|
|
137271
137302
|
component: "div",
|
|
137272
|
-
childFactory: function childFactory(
|
|
137273
|
-
return
|
|
137303
|
+
childFactory: function childFactory(child) {
|
|
137304
|
+
return child;
|
|
137274
137305
|
}
|
|
137275
137306
|
};
|
|
137276
137307
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
@@ -137307,17 +137338,17 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
137307
137338
|
firstRender: false
|
|
137308
137339
|
};
|
|
137309
137340
|
};
|
|
137310
|
-
_proto.handleExited = function handleExited(
|
|
137341
|
+
_proto.handleExited = function handleExited(child, node) {
|
|
137311
137342
|
var currentChildMapping = getChildMapping(this.props.children);
|
|
137312
|
-
if (
|
|
137343
|
+
if (child.key in currentChildMapping)
|
|
137313
137344
|
return;
|
|
137314
|
-
if (
|
|
137315
|
-
|
|
137345
|
+
if (child.props.onExited) {
|
|
137346
|
+
child.props.onExited(node);
|
|
137316
137347
|
}
|
|
137317
137348
|
if (this.mounted) {
|
|
137318
137349
|
this.setState(function(state) {
|
|
137319
137350
|
var children2 = _extends$1({}, state.children);
|
|
137320
|
-
delete children2[
|
|
137351
|
+
delete children2[child.key];
|
|
137321
137352
|
return {
|
|
137322
137353
|
children: children2
|
|
137323
137354
|
};
|
|
@@ -138249,8 +138280,8 @@ IconButton$1.propTypes = {
|
|
|
138249
138280
|
* The icon element.
|
|
138250
138281
|
*/
|
|
138251
138282
|
children: chainPropTypes(PropTypes.node, function(props2) {
|
|
138252
|
-
var found = React.Children.toArray(props2.children).some(function(
|
|
138253
|
-
return /* @__PURE__ */ React.isValidElement(
|
|
138283
|
+
var found = React.Children.toArray(props2.children).some(function(child) {
|
|
138284
|
+
return /* @__PURE__ */ React.isValidElement(child) && child.props.onClick;
|
|
138254
138285
|
});
|
|
138255
138286
|
if (found) {
|
|
138256
138287
|
return new Error(["Material-UI: You are providing an onClick event listener to a child of a button element.", "Firefox will never trigger the event.", "You should move the onClick listener to the parent button element.", "https://github.com/mui-org/material-ui/issues/13957"].join("\n"));
|
|
@@ -141720,7 +141751,7 @@ function ToolMenu(props2) {
|
|
|
141720
141751
|
const onRecenterButtonCLick = () => {
|
|
141721
141752
|
recenterOnClick();
|
|
141722
141753
|
};
|
|
141723
|
-
return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: "pointer tool", onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: "select lasso", onClick: () => setActiveTool(distEs6$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton2, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
|
|
141754
|
+
return jsxRuntimeExports.jsxs("div", { className: classes.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: "pointer tool", onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: "select lasso", onClick: () => setActiveTool(distEs6$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton2, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
|
|
141724
141755
|
}
|
|
141725
141756
|
const getCursorWithTool = () => "crosshair";
|
|
141726
141757
|
const getCursor = (interactionState) => interactionState.isDragging ? "grabbing" : "default";
|
|
@@ -142362,6 +142393,7 @@ const ScatterplotWrapper = forwardRef((props2, deckRef) => jsxRuntimeExports.jsx
|
|
|
142362
142393
|
ScatterplotWrapper.displayName = "ScatterplotWrapper";
|
|
142363
142394
|
function ScatterplotOptions(props2) {
|
|
142364
142395
|
const { children: children2, observationsLabel, cellRadius, setCellRadius, cellRadiusMode, setCellRadiusMode, cellOpacity, setCellOpacity, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange } = props2;
|
|
142396
|
+
const scatterplotOptionsId = useId();
|
|
142365
142397
|
const observationsLabelNice = capitalize$1(observationsLabel);
|
|
142366
142398
|
const classes = usePlotOptionsStyles();
|
|
142367
142399
|
function handleCellRadiusModeChange(event) {
|
|
@@ -142395,7 +142427,10 @@ function ScatterplotOptions(props2) {
|
|
|
142395
142427
|
setGeneExpressionColormapRange(value);
|
|
142396
142428
|
}
|
|
142397
142429
|
const handleColormapRangeChangeDebounced = useCallback(debounce$2(handleColormapRangeChange, 5, { trailing: true }), [handleColormapRangeChange]);
|
|
142398
|
-
return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children2, jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.
|
|
142430
|
+
return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children2, jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-labels-visible-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Labels Visible"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetLabelsVisible, onChange: handleLabelVisibilityChange, name: "scatterplot-option-cell-set-labels", color: "default", inputProps: {
|
|
142431
|
+
"aria-label": "Show or hide set labels",
|
|
142432
|
+
id: `scatterplot-set-labels-visible-${scatterplotOptionsId}`
|
|
142433
|
+
} }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-set-tooltips-visible-${scatterplotOptionsId}`, children: "Tooltips Visible" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, {
|
|
142399
142434
|
className: classes.checkbox,
|
|
142400
142435
|
/**
|
|
142401
142436
|
* We have to use "checked" here, not "value".
|
|
@@ -142404,15 +142439,25 @@ function ScatterplotOptions(props2) {
|
|
|
142404
142439
|
*/
|
|
142405
142440
|
checked: tooltipsVisible,
|
|
142406
142441
|
onChange: handleTooltipsVisibilityChange,
|
|
142407
|
-
name: "scatterplot-option-
|
|
142408
|
-
color: "default"
|
|
142409
|
-
|
|
142410
|
-
|
|
142411
|
-
|
|
142412
|
-
|
|
142413
|
-
},
|
|
142414
|
-
|
|
142415
|
-
|
|
142442
|
+
name: "scatterplot-option-tooltip-visibility",
|
|
142443
|
+
color: "default",
|
|
142444
|
+
inputProps: {
|
|
142445
|
+
"aria-label": "Show or hide tooltips",
|
|
142446
|
+
id: `scatterplot-set-tooltips-visible-${scatterplotOptionsId}`
|
|
142447
|
+
}
|
|
142448
|
+
}) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-label-size-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Label Size"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: !cellSetLabelsVisible, value: cellSetLabelSize, onChange: handleLabelSizeChange, "aria-label": "Scatterplot label size slider", id: `scatterplot-set-label-size-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 1, min: 8, max: 36 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-polygons-visible-${scatterplotOptionsId}`, children: [observationsLabelNice, " Set Polygons Visible"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, { className: classes.checkbox, checked: cellSetPolygonsVisible, onChange: handlePolygonVisibilityChange, name: "scatterplot-option-cell-set-polygons", color: "default", inputProps: {
|
|
142449
|
+
"aria-label": "Show or hide polygons",
|
|
142450
|
+
id: `scatterplot-set-polygons-visible-${scatterplotOptionsId}`
|
|
142451
|
+
} }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-radius-mode-select-${scatterplotOptionsId}`, children: [observationsLabelNice, " Radius Mode"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellRadiusMode, onChange: handleCellRadiusModeChange, inputProps: {
|
|
142452
|
+
id: `scatterplot-set-radius-mode-select-${scatterplotOptionsId}`
|
|
142453
|
+
}, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-radius-size-select-${scatterplotOptionsId}`, children: [observationsLabelNice, " Radius Size"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: cellRadiusMode !== "manual", value: cellRadius, onChange: handleRadiusChange, "aria-label": "Scatterplot radius size slider", id: `scatterplot-set-radius-size-select-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 0.01, min: 0.01, max: 10 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-opacity-mode-${scatterplotOptionsId}`, children: [observationsLabelNice, " Opacity Mode"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes.select, value: cellOpacityMode, onChange: handleCellOpacityModeChange, inputProps: {
|
|
142454
|
+
id: `scatterplot-set-opacity-mode-${scatterplotOptionsId}`
|
|
142455
|
+
}, children: [jsxRuntimeExports.jsx("option", { value: "auto", children: "Auto" }), jsxRuntimeExports.jsx("option", { value: "manual", children: "Manual" })] }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-set-opacity-level-${scatterplotOptionsId}`, children: [observationsLabelNice, " Opacity Level"] }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, disabled: cellOpacityMode !== "manual", value: cellOpacity, onChange: handleOpacityChange, "aria-label": "Scatterplot opacity level slider", id: `scatterplot-set-opacity-level-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 0.05, min: 0, max: 1 }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gene-expression-colormap-${scatterplotOptionsId}`, children: "Gene Expression Colormap" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes.select, value: geneExpressionColormap, onChange: handleGeneExpressionColormapChange, inputProps: {
|
|
142456
|
+
id: `scatterplot-gene-expression-colormap-${scatterplotOptionsId}`
|
|
142457
|
+
}, children: GLSL_COLORMAPS.map((cmap) => jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap)) }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gene-expression-colormap-range-${scatterplotOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => {
|
|
142458
|
+
const labelPrefix = index2 === 0 ? "Low value slider" : "High value slider";
|
|
142459
|
+
return `${labelPrefix} for scatterplot gene expression colormap range`;
|
|
142460
|
+
}, id: `scatterplot-gene-expression-colormap-range-${scatterplotOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
|
|
142416
142461
|
}
|
|
142417
142462
|
const styles10 = makeStyles((theme) => ({
|
|
142418
142463
|
tooltipAnchor: {
|
|
@@ -142651,11 +142696,11 @@ function EnterNode(parent, datum2) {
|
|
|
142651
142696
|
}
|
|
142652
142697
|
EnterNode.prototype = {
|
|
142653
142698
|
constructor: EnterNode,
|
|
142654
|
-
appendChild: function(
|
|
142655
|
-
return this._parent.insertBefore(
|
|
142699
|
+
appendChild: function(child) {
|
|
142700
|
+
return this._parent.insertBefore(child, this._next);
|
|
142656
142701
|
},
|
|
142657
|
-
insertBefore: function(
|
|
142658
|
-
return this._parent.insertBefore(
|
|
142702
|
+
insertBefore: function(child, next) {
|
|
142703
|
+
return this._parent.insertBefore(child, next);
|
|
142659
142704
|
},
|
|
142660
142705
|
querySelector: function(selector2) {
|
|
142661
142706
|
return this._parent.querySelector(selector2);
|
|
@@ -144767,7 +144812,7 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
144767
144812
|
TitleInfo,
|
|
144768
144813
|
{
|
|
144769
144814
|
title,
|
|
144770
|
-
info: `${commaNumber(cellsCount)} ${
|
|
144815
|
+
info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`,
|
|
144771
144816
|
removeGridComponent,
|
|
144772
144817
|
urls,
|
|
144773
144818
|
theme,
|