@vitessce/heatmap 3.5.6 → 3.5.7
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-654433d0.js → deflate-fffd8c02.js} +1 -1
- package/dist/{index-85bbcec2.js → index-843bbcc5.js} +319 -38
- package/dist/index.js +1 -1
- package/dist/{jpeg-189c0f73.js → jpeg-4b1b3c31.js} +1 -1
- package/dist/{lerc-a252d7c6.js → lerc-f492be43.js} +1 -1
- package/dist/{lzw-1dfe1a39.js → lzw-e8d09d74.js} +1 -1
- package/dist/{packbits-d5a97c67.js → packbits-5d8615dc.js} +1 -1
- package/dist/{raw-563885e6.js → raw-4a476cb0.js} +1 -1
- package/dist/{webimage-67fc7734.js → webimage-019fbbb1.js} +1 -1
- package/package.json +9 -9
|
@@ -1350,6 +1350,258 @@ function getNextScope(prevScopes) {
|
|
|
1350
1350
|
} while (prevScopes.includes(nextScope));
|
|
1351
1351
|
return nextScope;
|
|
1352
1352
|
}
|
|
1353
|
+
var loglevel = { exports: {} };
|
|
1354
|
+
(function(module2) {
|
|
1355
|
+
(function(root2, definition) {
|
|
1356
|
+
if (module2.exports) {
|
|
1357
|
+
module2.exports = definition();
|
|
1358
|
+
} else {
|
|
1359
|
+
root2.log = definition();
|
|
1360
|
+
}
|
|
1361
|
+
})(commonjsGlobal, function() {
|
|
1362
|
+
var noop2 = function() {
|
|
1363
|
+
};
|
|
1364
|
+
var undefinedType2 = "undefined";
|
|
1365
|
+
var isIE2 = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
1366
|
+
var logMethods = [
|
|
1367
|
+
"trace",
|
|
1368
|
+
"debug",
|
|
1369
|
+
"info",
|
|
1370
|
+
"warn",
|
|
1371
|
+
"error"
|
|
1372
|
+
];
|
|
1373
|
+
var _loggersByName = {};
|
|
1374
|
+
var defaultLogger = null;
|
|
1375
|
+
function bindMethod(obj, methodName) {
|
|
1376
|
+
var method = obj[methodName];
|
|
1377
|
+
if (typeof method.bind === "function") {
|
|
1378
|
+
return method.bind(obj);
|
|
1379
|
+
} else {
|
|
1380
|
+
try {
|
|
1381
|
+
return Function.prototype.bind.call(method, obj);
|
|
1382
|
+
} catch (e3) {
|
|
1383
|
+
return function() {
|
|
1384
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
function traceForIE() {
|
|
1390
|
+
if (console.log) {
|
|
1391
|
+
if (console.log.apply) {
|
|
1392
|
+
console.log.apply(console, arguments);
|
|
1393
|
+
} else {
|
|
1394
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
if (console.trace)
|
|
1398
|
+
console.trace();
|
|
1399
|
+
}
|
|
1400
|
+
function realMethod(methodName) {
|
|
1401
|
+
if (methodName === "debug") {
|
|
1402
|
+
methodName = "log";
|
|
1403
|
+
}
|
|
1404
|
+
if (typeof console === undefinedType2) {
|
|
1405
|
+
return false;
|
|
1406
|
+
} else if (methodName === "trace" && isIE2) {
|
|
1407
|
+
return traceForIE;
|
|
1408
|
+
} else if (console[methodName] !== void 0) {
|
|
1409
|
+
return bindMethod(console, methodName);
|
|
1410
|
+
} else if (console.log !== void 0) {
|
|
1411
|
+
return bindMethod(console, "log");
|
|
1412
|
+
} else {
|
|
1413
|
+
return noop2;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
function replaceLoggingMethods() {
|
|
1417
|
+
var level = this.getLevel();
|
|
1418
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
1419
|
+
var methodName = logMethods[i2];
|
|
1420
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
1421
|
+
}
|
|
1422
|
+
this.log = this.debug;
|
|
1423
|
+
if (typeof console === undefinedType2 && level < this.levels.SILENT) {
|
|
1424
|
+
return "No console available for logging";
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
1428
|
+
return function() {
|
|
1429
|
+
if (typeof console !== undefinedType2) {
|
|
1430
|
+
replaceLoggingMethods.call(this);
|
|
1431
|
+
this[methodName].apply(this, arguments);
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
1436
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
1437
|
+
}
|
|
1438
|
+
function Logger(name2, factory) {
|
|
1439
|
+
var self2 = this;
|
|
1440
|
+
var inheritedLevel;
|
|
1441
|
+
var defaultLevel;
|
|
1442
|
+
var userLevel;
|
|
1443
|
+
var storageKey = "loglevel";
|
|
1444
|
+
if (typeof name2 === "string") {
|
|
1445
|
+
storageKey += ":" + name2;
|
|
1446
|
+
} else if (typeof name2 === "symbol") {
|
|
1447
|
+
storageKey = void 0;
|
|
1448
|
+
}
|
|
1449
|
+
function persistLevelIfPossible(levelNum) {
|
|
1450
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
1451
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1452
|
+
return;
|
|
1453
|
+
try {
|
|
1454
|
+
window.localStorage[storageKey] = levelName;
|
|
1455
|
+
return;
|
|
1456
|
+
} catch (ignore) {
|
|
1457
|
+
}
|
|
1458
|
+
try {
|
|
1459
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
1460
|
+
} catch (ignore) {
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
function getPersistedLevel() {
|
|
1464
|
+
var storedLevel;
|
|
1465
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1466
|
+
return;
|
|
1467
|
+
try {
|
|
1468
|
+
storedLevel = window.localStorage[storageKey];
|
|
1469
|
+
} catch (ignore) {
|
|
1470
|
+
}
|
|
1471
|
+
if (typeof storedLevel === undefinedType2) {
|
|
1472
|
+
try {
|
|
1473
|
+
var cookie = window.document.cookie;
|
|
1474
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
1475
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
1476
|
+
if (location !== -1) {
|
|
1477
|
+
storedLevel = /^([^;]+)/.exec(
|
|
1478
|
+
cookie.slice(location + cookieName.length + 1)
|
|
1479
|
+
)[1];
|
|
1480
|
+
}
|
|
1481
|
+
} catch (ignore) {
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
1485
|
+
storedLevel = void 0;
|
|
1486
|
+
}
|
|
1487
|
+
return storedLevel;
|
|
1488
|
+
}
|
|
1489
|
+
function clearPersistedLevel() {
|
|
1490
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1491
|
+
return;
|
|
1492
|
+
try {
|
|
1493
|
+
window.localStorage.removeItem(storageKey);
|
|
1494
|
+
} catch (ignore) {
|
|
1495
|
+
}
|
|
1496
|
+
try {
|
|
1497
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
1498
|
+
} catch (ignore) {
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
function normalizeLevel(input) {
|
|
1502
|
+
var level = input;
|
|
1503
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
1504
|
+
level = self2.levels[level.toUpperCase()];
|
|
1505
|
+
}
|
|
1506
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
1507
|
+
return level;
|
|
1508
|
+
} else {
|
|
1509
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
self2.name = name2;
|
|
1513
|
+
self2.levels = {
|
|
1514
|
+
"TRACE": 0,
|
|
1515
|
+
"DEBUG": 1,
|
|
1516
|
+
"INFO": 2,
|
|
1517
|
+
"WARN": 3,
|
|
1518
|
+
"ERROR": 4,
|
|
1519
|
+
"SILENT": 5
|
|
1520
|
+
};
|
|
1521
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
1522
|
+
self2.getLevel = function() {
|
|
1523
|
+
if (userLevel != null) {
|
|
1524
|
+
return userLevel;
|
|
1525
|
+
} else if (defaultLevel != null) {
|
|
1526
|
+
return defaultLevel;
|
|
1527
|
+
} else {
|
|
1528
|
+
return inheritedLevel;
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
self2.setLevel = function(level, persist) {
|
|
1532
|
+
userLevel = normalizeLevel(level);
|
|
1533
|
+
if (persist !== false) {
|
|
1534
|
+
persistLevelIfPossible(userLevel);
|
|
1535
|
+
}
|
|
1536
|
+
return replaceLoggingMethods.call(self2);
|
|
1537
|
+
};
|
|
1538
|
+
self2.setDefaultLevel = function(level) {
|
|
1539
|
+
defaultLevel = normalizeLevel(level);
|
|
1540
|
+
if (!getPersistedLevel()) {
|
|
1541
|
+
self2.setLevel(level, false);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
self2.resetLevel = function() {
|
|
1545
|
+
userLevel = null;
|
|
1546
|
+
clearPersistedLevel();
|
|
1547
|
+
replaceLoggingMethods.call(self2);
|
|
1548
|
+
};
|
|
1549
|
+
self2.enableAll = function(persist) {
|
|
1550
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
1551
|
+
};
|
|
1552
|
+
self2.disableAll = function(persist) {
|
|
1553
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
1554
|
+
};
|
|
1555
|
+
self2.rebuild = function() {
|
|
1556
|
+
if (defaultLogger !== self2) {
|
|
1557
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
1558
|
+
}
|
|
1559
|
+
replaceLoggingMethods.call(self2);
|
|
1560
|
+
if (defaultLogger === self2) {
|
|
1561
|
+
for (var childName in _loggersByName) {
|
|
1562
|
+
_loggersByName[childName].rebuild();
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
inheritedLevel = normalizeLevel(
|
|
1567
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
1568
|
+
);
|
|
1569
|
+
var initialLevel = getPersistedLevel();
|
|
1570
|
+
if (initialLevel != null) {
|
|
1571
|
+
userLevel = normalizeLevel(initialLevel);
|
|
1572
|
+
}
|
|
1573
|
+
replaceLoggingMethods.call(self2);
|
|
1574
|
+
}
|
|
1575
|
+
defaultLogger = new Logger();
|
|
1576
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
1577
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
1578
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
1579
|
+
}
|
|
1580
|
+
var logger = _loggersByName[name2];
|
|
1581
|
+
if (!logger) {
|
|
1582
|
+
logger = _loggersByName[name2] = new Logger(
|
|
1583
|
+
name2,
|
|
1584
|
+
defaultLogger.methodFactory
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
return logger;
|
|
1588
|
+
};
|
|
1589
|
+
var _log = typeof window !== undefinedType2 ? window.log : void 0;
|
|
1590
|
+
defaultLogger.noConflict = function() {
|
|
1591
|
+
if (typeof window !== undefinedType2 && window.log === defaultLogger) {
|
|
1592
|
+
window.log = _log;
|
|
1593
|
+
}
|
|
1594
|
+
return defaultLogger;
|
|
1595
|
+
};
|
|
1596
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
1597
|
+
return _loggersByName;
|
|
1598
|
+
};
|
|
1599
|
+
defaultLogger["default"] = defaultLogger;
|
|
1600
|
+
return defaultLogger;
|
|
1601
|
+
});
|
|
1602
|
+
})(loglevel);
|
|
1603
|
+
var loglevelExports = loglevel.exports;
|
|
1604
|
+
const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
1353
1605
|
const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
1354
1606
|
const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
|
|
1355
1607
|
const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
@@ -1358,16 +1610,16 @@ function getDefaultColor(theme) {
|
|
|
1358
1610
|
}
|
|
1359
1611
|
const DEFAULT_GL_OPTIONS = { webgl2: true };
|
|
1360
1612
|
function createDefaultUpdateCellsHover(componentName) {
|
|
1361
|
-
return (hoverInfo) =>
|
|
1613
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateCellsHover: ${hoverInfo.cellId}`);
|
|
1362
1614
|
}
|
|
1363
1615
|
function createDefaultUpdateGenesHover(componentName) {
|
|
1364
|
-
return (hoverInfo) =>
|
|
1616
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateGenesHover: ${hoverInfo.geneId}`);
|
|
1365
1617
|
}
|
|
1366
1618
|
function createDefaultUpdateTracksHover(componentName) {
|
|
1367
|
-
return (hoverInfo) =>
|
|
1619
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateTracksHover: ${hoverInfo}`);
|
|
1368
1620
|
}
|
|
1369
1621
|
function createDefaultUpdateViewInfo(componentName) {
|
|
1370
|
-
return (viewInfo) =>
|
|
1622
|
+
return (viewInfo) => log$5.warn(`${componentName} updateViewInfo: ${viewInfo}`);
|
|
1371
1623
|
}
|
|
1372
1624
|
function copyUint8Array(arr) {
|
|
1373
1625
|
const newBuffer = new ArrayBuffer(arr.buffer.byteLength);
|
|
@@ -8767,7 +9019,7 @@ function upgradeFrom1_0_14(config2) {
|
|
|
8767
9019
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
8768
9020
|
var _a2;
|
|
8769
9021
|
if ((_a2 = viewDef.props) == null ? void 0 : _a2[oldProp]) {
|
|
8770
|
-
|
|
9022
|
+
log$5.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
8771
9023
|
}
|
|
8772
9024
|
});
|
|
8773
9025
|
});
|
|
@@ -8790,7 +9042,7 @@ function upgradeFrom1_0_15(config2) {
|
|
|
8790
9042
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
8791
9043
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
|
|
8792
9044
|
if (coordinationType === "dataset") {
|
|
8793
|
-
|
|
9045
|
+
log$5.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
|
|
8794
9046
|
}
|
|
8795
9047
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
8796
9048
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
|
|
@@ -11003,7 +11255,8 @@ const ViewType$1 = {
|
|
|
11003
11255
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
11004
11256
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
11005
11257
|
LINK_CONTROLLER: "linkController",
|
|
11006
|
-
DUAL_SCATTERPLOT: "dualScatterplot"
|
|
11258
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
11259
|
+
TREEMAP: "treemap"
|
|
11007
11260
|
};
|
|
11008
11261
|
const DataType$2 = {
|
|
11009
11262
|
OBS_LABELS: "obsLabels",
|
|
@@ -11057,6 +11310,7 @@ const FileType$1 = {
|
|
|
11057
11310
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
11058
11311
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
11059
11312
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
11313
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
11060
11314
|
// AnnData - zipped
|
|
11061
11315
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
11062
11316
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -11069,6 +11323,7 @@ const FileType$1 = {
|
|
|
11069
11323
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
11070
11324
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
11071
11325
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
11326
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
11072
11327
|
// AnnData - h5ad via reference spec
|
|
11073
11328
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
11074
11329
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -11081,6 +11336,7 @@ const FileType$1 = {
|
|
|
11081
11336
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
11082
11337
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
11083
11338
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
11339
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
11084
11340
|
// SpatialData
|
|
11085
11341
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
11086
11342
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -11272,12 +11528,15 @@ const CoordinationType$1 = {
|
|
|
11272
11528
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
11273
11529
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
11274
11530
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
11531
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
11275
11532
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
11276
11533
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
11277
11534
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
11278
11535
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
11279
11536
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11280
|
-
CONTOUR_COLOR: "contourColor"
|
|
11537
|
+
CONTOUR_COLOR: "contourColor",
|
|
11538
|
+
// Treemap
|
|
11539
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
11281
11540
|
};
|
|
11282
11541
|
const ViewHelpMapping = {
|
|
11283
11542
|
SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
|
|
@@ -11294,7 +11553,8 @@ const ViewHelpMapping = {
|
|
|
11294
11553
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
11295
11554
|
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11296
11555
|
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
11297
|
-
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
11556
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
|
|
11557
|
+
TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering."
|
|
11298
11558
|
};
|
|
11299
11559
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11300
11560
|
[ViewType$1.SCATTERPLOT]: [
|
|
@@ -11774,6 +12034,32 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
11774
12034
|
CoordinationType$1.OBS_SET_SELECTION,
|
|
11775
12035
|
CoordinationType$1.OBS_SET_FILTER
|
|
11776
12036
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
12037
|
+
],
|
|
12038
|
+
[ViewType$1.TREEMAP]: [
|
|
12039
|
+
CoordinationType$1.DATASET,
|
|
12040
|
+
CoordinationType$1.OBS_TYPE,
|
|
12041
|
+
CoordinationType$1.FEATURE_TYPE,
|
|
12042
|
+
CoordinationType$1.FEATURE_VALUE_TYPE,
|
|
12043
|
+
CoordinationType$1.OBS_FILTER,
|
|
12044
|
+
CoordinationType$1.OBS_HIGHLIGHT,
|
|
12045
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12046
|
+
CoordinationType$1.OBS_SET_FILTER,
|
|
12047
|
+
CoordinationType$1.OBS_SELECTION,
|
|
12048
|
+
CoordinationType$1.OBS_SELECTION_MODE,
|
|
12049
|
+
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
12050
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
12051
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
12052
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
12053
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12054
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12055
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
12056
|
+
CoordinationType$1.SAMPLE_SET_COLOR,
|
|
12057
|
+
CoordinationType$1.SAMPLE_SELECTION,
|
|
12058
|
+
CoordinationType$1.SAMPLE_SELECTION_MODE,
|
|
12059
|
+
CoordinationType$1.SAMPLE_FILTER,
|
|
12060
|
+
CoordinationType$1.SAMPLE_FILTER_MODE,
|
|
12061
|
+
CoordinationType$1.SAMPLE_HIGHLIGHT,
|
|
12062
|
+
CoordinationType$1.HIERARCHY_LEVELS
|
|
11777
12063
|
]
|
|
11778
12064
|
};
|
|
11779
12065
|
const ViewType = {
|
|
@@ -11942,7 +12228,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
|
11942
12228
|
const oldKeys = Object.keys(oldObj);
|
|
11943
12229
|
const propKey = String(prop);
|
|
11944
12230
|
if (oldKeys.includes(propKey)) {
|
|
11945
|
-
|
|
12231
|
+
log$5.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
|
|
11946
12232
|
${oldObj[propKey][1]}`);
|
|
11947
12233
|
return oldObj[propKey];
|
|
11948
12234
|
}
|
|
@@ -12040,6 +12326,9 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
12040
12326
|
z.object({
|
|
12041
12327
|
obsSets: annDataObsSetsArr
|
|
12042
12328
|
});
|
|
12329
|
+
z.object({
|
|
12330
|
+
sampleSets: annDataObsSetsArr
|
|
12331
|
+
});
|
|
12043
12332
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
12044
12333
|
path: z.string()
|
|
12045
12334
|
}));
|
|
@@ -99761,24 +100050,16 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
99761
100050
|
return value;
|
|
99762
100051
|
};
|
|
99763
100052
|
var callBind$3 = { exports: {} };
|
|
99764
|
-
var
|
|
99765
|
-
var
|
|
99766
|
-
|
|
99767
|
-
|
|
99768
|
-
|
|
99769
|
-
|
|
99770
|
-
|
|
99771
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
99772
|
-
if ($defineProperty2) {
|
|
99773
|
-
try {
|
|
99774
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
99775
|
-
} catch (e3) {
|
|
99776
|
-
$defineProperty2 = false;
|
|
99777
|
-
}
|
|
100053
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
100054
|
+
var $defineProperty$3 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
|
|
100055
|
+
if ($defineProperty$3) {
|
|
100056
|
+
try {
|
|
100057
|
+
$defineProperty$3({}, "a", { value: 1 });
|
|
100058
|
+
} catch (e3) {
|
|
100059
|
+
$defineProperty$3 = false;
|
|
99778
100060
|
}
|
|
99779
|
-
esDefineProperty = $defineProperty2;
|
|
99780
|
-
return esDefineProperty;
|
|
99781
100061
|
}
|
|
100062
|
+
var esDefineProperty = $defineProperty$3;
|
|
99782
100063
|
var GetIntrinsic$3 = getIntrinsic;
|
|
99783
100064
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
99784
100065
|
if ($gOPD$1) {
|
|
@@ -99789,7 +100070,7 @@ if ($gOPD$1) {
|
|
|
99789
100070
|
}
|
|
99790
100071
|
}
|
|
99791
100072
|
var gopd$1 = $gOPD$1;
|
|
99792
|
-
var $defineProperty$2 =
|
|
100073
|
+
var $defineProperty$2 = esDefineProperty;
|
|
99793
100074
|
var $SyntaxError = syntax;
|
|
99794
100075
|
var $TypeError$3 = type;
|
|
99795
100076
|
var gopd = gopd$1;
|
|
@@ -99830,7 +100111,7 @@ var defineDataProperty$1 = function defineDataProperty(obj, property, value) {
|
|
|
99830
100111
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
99831
100112
|
}
|
|
99832
100113
|
};
|
|
99833
|
-
var $defineProperty$1 =
|
|
100114
|
+
var $defineProperty$1 = esDefineProperty;
|
|
99834
100115
|
var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
|
|
99835
100116
|
return !!$defineProperty$1;
|
|
99836
100117
|
};
|
|
@@ -99899,7 +100180,7 @@ var setFunctionLength = function setFunctionLength2(fn, length2) {
|
|
|
99899
100180
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
99900
100181
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
99901
100182
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
99902
|
-
var $defineProperty2 =
|
|
100183
|
+
var $defineProperty2 = esDefineProperty;
|
|
99903
100184
|
var $max = GetIntrinsic3("%Math.max%");
|
|
99904
100185
|
module2.exports = function callBind2(originalFunction) {
|
|
99905
100186
|
if (typeof originalFunction !== "function") {
|
|
@@ -133552,16 +133833,16 @@ function addDecoder(cases, importFn) {
|
|
|
133552
133833
|
}
|
|
133553
133834
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133554
133835
|
}
|
|
133555
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133556
|
-
addDecoder(5, () => import("./lzw-
|
|
133836
|
+
addDecoder([void 0, 1], () => import("./raw-4a476cb0.js").then((m) => m.default));
|
|
133837
|
+
addDecoder(5, () => import("./lzw-e8d09d74.js").then((m) => m.default));
|
|
133557
133838
|
addDecoder(6, () => {
|
|
133558
133839
|
throw new Error("old style JPEG compression is not supported.");
|
|
133559
133840
|
});
|
|
133560
|
-
addDecoder(7, () => import("./jpeg-
|
|
133561
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133562
|
-
addDecoder(32773, () => import("./packbits-
|
|
133563
|
-
addDecoder(34887, () => import("./lerc-
|
|
133564
|
-
addDecoder(50001, () => import("./webimage-
|
|
133841
|
+
addDecoder(7, () => import("./jpeg-4b1b3c31.js").then((m) => m.default));
|
|
133842
|
+
addDecoder([8, 32946], () => import("./deflate-fffd8c02.js").then((m) => m.default));
|
|
133843
|
+
addDecoder(32773, () => import("./packbits-5d8615dc.js").then((m) => m.default));
|
|
133844
|
+
addDecoder(34887, () => import("./lerc-f492be43.js").then((m) => m.default));
|
|
133845
|
+
addDecoder(50001, () => import("./webimage-019fbbb1.js").then((m) => m.default));
|
|
133565
133846
|
function decodeRowAcc(row, stride) {
|
|
133566
133847
|
let length2 = row.length - stride;
|
|
133567
133848
|
let offset5 = 0;
|
|
@@ -143671,10 +143952,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
143671
143952
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
143672
143953
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
143673
143954
|
if (valueTexHeight > texSize) {
|
|
143674
|
-
|
|
143955
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
143675
143956
|
}
|
|
143676
143957
|
if (colorTexHeight > texSize) {
|
|
143677
|
-
|
|
143958
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
143678
143959
|
}
|
|
143679
143960
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
143680
143961
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-843bbcc5.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/heatmap",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"uuid": "^9.0.0",
|
|
22
22
|
"react-aria": "^3.28.0",
|
|
23
|
-
"@vitessce/constants-internal": "3.5.
|
|
24
|
-
"@vitessce/gl": "3.5.
|
|
25
|
-
"@vitessce/legend": "3.5.
|
|
26
|
-
"@vitessce/sets-utils": "3.5.
|
|
27
|
-
"@vitessce/tooltip": "3.5.
|
|
28
|
-
"@vitessce/utils": "3.5.
|
|
29
|
-
"@vitessce/vit-s": "3.5.
|
|
30
|
-
"@vitessce/workers": "3.5.
|
|
23
|
+
"@vitessce/constants-internal": "3.5.7",
|
|
24
|
+
"@vitessce/gl": "3.5.7",
|
|
25
|
+
"@vitessce/legend": "3.5.7",
|
|
26
|
+
"@vitessce/sets-utils": "3.5.7",
|
|
27
|
+
"@vitessce/tooltip": "3.5.7",
|
|
28
|
+
"@vitessce/utils": "3.5.7",
|
|
29
|
+
"@vitessce/vit-s": "3.5.7",
|
|
30
|
+
"@vitessce/workers": "3.5.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^5.16.4",
|