@vitessce/heatmap 3.4.14 → 3.5.1
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-a269389e.js → deflate-2c11533f.js} +1 -1
- package/dist/{index-bb23d401.js → index-6ef9e70c.js} +37 -32
- package/dist/index.js +1 -1
- package/dist/{jpeg-454c64bf.js → jpeg-578f0ca5.js} +1 -1
- package/dist/{lerc-762f0c49.js → lerc-357448de.js} +1 -1
- package/dist/{lzw-06fa89ea.js → lzw-fde46e44.js} +1 -1
- package/dist/{packbits-9f579811.js → packbits-5ed5b9c6.js} +1 -1
- package/dist/{raw-4db0cb8e.js → raw-f6b0dad1.js} +1 -1
- package/dist/{webimage-ba05cc9a.js → webimage-13174dd3.js} +1 -1
- package/dist-tsc/Heatmap.js +1 -0
- package/package.json +10 -10
- package/src/Heatmap.js +2 -0
|
@@ -10994,7 +10994,8 @@ const ViewType$1 = {
|
|
|
10994
10994
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
|
|
10995
10995
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
10996
10996
|
DOT_PLOT: "dotPlot",
|
|
10997
|
-
FEATURE_BAR_PLOT: "featureBarPlot"
|
|
10997
|
+
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
10998
|
+
BIOMARKER_SELECT: "biomarkerSelect"
|
|
10998
10999
|
};
|
|
10999
11000
|
const DataType$2 = {
|
|
11000
11001
|
OBS_LABELS: "obsLabels",
|
|
@@ -11689,6 +11690,11 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
11689
11690
|
CoordinationType$1.OBS_SET_COLOR,
|
|
11690
11691
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
11691
11692
|
CoordinationType$1.ADDITIONAL_OBS_SETS
|
|
11693
|
+
],
|
|
11694
|
+
[ViewType$1.BIOMARKER_SELECT]: [
|
|
11695
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
11696
|
+
CoordinationType$1.SAMPLE_SET_SELECTION
|
|
11697
|
+
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
11692
11698
|
]
|
|
11693
11699
|
};
|
|
11694
11700
|
const ViewType = {
|
|
@@ -31295,7 +31301,7 @@ const rectHeight = 8;
|
|
|
31295
31301
|
const rectMarginY = 2;
|
|
31296
31302
|
const rectMarginX = 2;
|
|
31297
31303
|
function Legend(props) {
|
|
31298
|
-
const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, extent: extent2, width = 100, height = 36, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
|
|
31304
|
+
const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, extent: extent2, missing, width = 100, height = 36, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
|
|
31299
31305
|
const svgRef = useRef();
|
|
31300
31306
|
const classes = useStyles$1();
|
|
31301
31307
|
const isDarkTheme = theme === "dark";
|
|
@@ -31379,7 +31385,8 @@ function Legend(props) {
|
|
|
31379
31385
|
});
|
|
31380
31386
|
});
|
|
31381
31387
|
}
|
|
31382
|
-
const
|
|
31388
|
+
const featureSelectionLabelRaw = featureSelection && featureSelection.length >= 1 && !isStaticColor ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(featureSelection[0])) || featureSelection[0] : null;
|
|
31389
|
+
const featureSelectionLabel = missing ? `${featureSelectionLabelRaw} (${Math.round(missing * 100)}% NaN)` : featureSelectionLabelRaw;
|
|
31383
31390
|
const obsLabel = capitalize$1(obsType);
|
|
31384
31391
|
const featureLabel = considerSelections ? featureSelectionLabel || capitalize$1(featureValueType) : capitalize$1(featureValueType);
|
|
31385
31392
|
const mainLabel = showObsLabel ? obsLabel : featureLabel;
|
|
@@ -99294,7 +99301,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
99294
99301
|
return Object.keys || keysShim;
|
|
99295
99302
|
};
|
|
99296
99303
|
var objectKeys$1 = keysShim;
|
|
99297
|
-
var shams$
|
|
99304
|
+
var shams$1 = function hasSymbols() {
|
|
99298
99305
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
99299
99306
|
return false;
|
|
99300
99307
|
}
|
|
@@ -99339,9 +99346,9 @@ var shams$2 = function hasSymbols() {
|
|
|
99339
99346
|
}
|
|
99340
99347
|
return true;
|
|
99341
99348
|
};
|
|
99342
|
-
var hasSymbols$
|
|
99343
|
-
var shams
|
|
99344
|
-
return hasSymbols$
|
|
99349
|
+
var hasSymbols$3 = shams$1;
|
|
99350
|
+
var shams = function hasToStringTagShams() {
|
|
99351
|
+
return hasSymbols$3() && !!Symbol.toStringTag;
|
|
99345
99352
|
};
|
|
99346
99353
|
var esErrors = Error;
|
|
99347
99354
|
var _eval = EvalError;
|
|
@@ -99351,8 +99358,8 @@ var syntax = SyntaxError;
|
|
|
99351
99358
|
var type = TypeError;
|
|
99352
99359
|
var uri = URIError;
|
|
99353
99360
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
99354
|
-
var hasSymbolSham = shams$
|
|
99355
|
-
var hasSymbols$
|
|
99361
|
+
var hasSymbolSham = shams$1;
|
|
99362
|
+
var hasSymbols$2 = function hasNativeSymbols() {
|
|
99356
99363
|
if (typeof origSymbol !== "function") {
|
|
99357
99364
|
return false;
|
|
99358
99365
|
}
|
|
@@ -99368,11 +99375,12 @@ var hasSymbols$3 = function hasNativeSymbols() {
|
|
|
99368
99375
|
return hasSymbolSham();
|
|
99369
99376
|
};
|
|
99370
99377
|
var test = {
|
|
99378
|
+
__proto__: null,
|
|
99371
99379
|
foo: {}
|
|
99372
99380
|
};
|
|
99373
99381
|
var $Object$1 = Object;
|
|
99374
99382
|
var hasProto$1 = function hasProto() {
|
|
99375
|
-
return { __proto__: test }.foo === test.foo && !(
|
|
99383
|
+
return { __proto__: test }.foo === test.foo && !(test instanceof $Object$1);
|
|
99376
99384
|
};
|
|
99377
99385
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
99378
99386
|
var toStr$2 = Object.prototype.toString;
|
|
@@ -99487,7 +99495,7 @@ var ThrowTypeError = $gOPD$2 ? function() {
|
|
|
99487
99495
|
}
|
|
99488
99496
|
}
|
|
99489
99497
|
}() : throwTypeError;
|
|
99490
|
-
var hasSymbols$
|
|
99498
|
+
var hasSymbols$1 = hasSymbols$2();
|
|
99491
99499
|
var hasProto2 = hasProto$1();
|
|
99492
99500
|
var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
|
|
99493
99501
|
return x2.__proto__;
|
|
@@ -99499,7 +99507,7 @@ var INTRINSICS = {
|
|
|
99499
99507
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
99500
99508
|
"%Array%": Array,
|
|
99501
99509
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
99502
|
-
"%ArrayIteratorPrototype%": hasSymbols$
|
|
99510
|
+
"%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
|
|
99503
99511
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
99504
99512
|
"%AsyncFunction%": needsEval,
|
|
99505
99513
|
"%AsyncGenerator%": needsEval,
|
|
@@ -99530,10 +99538,10 @@ var INTRINSICS = {
|
|
|
99530
99538
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
99531
99539
|
"%isFinite%": isFinite,
|
|
99532
99540
|
"%isNaN%": isNaN,
|
|
99533
|
-
"%IteratorPrototype%": hasSymbols$
|
|
99541
|
+
"%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
|
|
99534
99542
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
99535
99543
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
99536
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$
|
|
99544
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
99537
99545
|
"%Math%": Math,
|
|
99538
99546
|
"%Number%": Number,
|
|
99539
99547
|
"%Object%": Object,
|
|
@@ -99546,11 +99554,11 @@ var INTRINSICS = {
|
|
|
99546
99554
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
99547
99555
|
"%RegExp%": RegExp,
|
|
99548
99556
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
99549
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$
|
|
99557
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
99550
99558
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
99551
99559
|
"%String%": String,
|
|
99552
|
-
"%StringIteratorPrototype%": hasSymbols$
|
|
99553
|
-
"%Symbol%": hasSymbols$
|
|
99560
|
+
"%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
|
|
99561
|
+
"%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
|
|
99554
99562
|
"%SyntaxError%": $SyntaxError$1,
|
|
99555
99563
|
"%ThrowTypeError%": ThrowTypeError,
|
|
99556
99564
|
"%TypedArray%": TypedArray,
|
|
@@ -99919,7 +99927,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
|
99919
99927
|
}
|
|
99920
99928
|
return intrinsic;
|
|
99921
99929
|
};
|
|
99922
|
-
var hasToStringTag$2 = shams
|
|
99930
|
+
var hasToStringTag$2 = shams();
|
|
99923
99931
|
var callBound$1 = callBound$2;
|
|
99924
99932
|
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
99925
99933
|
var isStandardArguments = function isArguments2(value) {
|
|
@@ -99964,7 +99972,7 @@ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineB
|
|
|
99964
99972
|
};
|
|
99965
99973
|
var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
|
|
99966
99974
|
var keys2 = objectKeys$1;
|
|
99967
|
-
var
|
|
99975
|
+
var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
99968
99976
|
var toStr$1 = Object.prototype.toString;
|
|
99969
99977
|
var concat = Array.prototype.concat;
|
|
99970
99978
|
var defineDataProperty2 = defineDataProperty$1;
|
|
@@ -99991,7 +99999,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
99991
99999
|
var defineProperties = function(object2, map2) {
|
|
99992
100000
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
99993
100001
|
var props = keys2(map2);
|
|
99994
|
-
if (
|
|
100002
|
+
if (hasSymbols2) {
|
|
99995
100003
|
props = concat.call(props, Object.getOwnPropertySymbols(map2));
|
|
99996
100004
|
}
|
|
99997
100005
|
for (var i2 = 0; i2 < props.length; i2 += 1) {
|
|
@@ -100042,10 +100050,6 @@ define$2(polyfill$1, {
|
|
|
100042
100050
|
shim: shim$2
|
|
100043
100051
|
});
|
|
100044
100052
|
var objectIs = polyfill$1;
|
|
100045
|
-
var hasSymbols2 = shams$2;
|
|
100046
|
-
var shams = function hasToStringTagShams2() {
|
|
100047
|
-
return hasSymbols2() && !!Symbol.toStringTag;
|
|
100048
|
-
};
|
|
100049
100053
|
var callBound = callBound$2;
|
|
100050
100054
|
var hasToStringTag$1 = shams();
|
|
100051
100055
|
var has;
|
|
@@ -100252,7 +100256,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
|
|
|
100252
100256
|
};
|
|
100253
100257
|
var toStr = Object.prototype.toString;
|
|
100254
100258
|
var dateClass = "[object Date]";
|
|
100255
|
-
var hasToStringTag = shams
|
|
100259
|
+
var hasToStringTag = shams();
|
|
100256
100260
|
var isDateObject = function isDateObject2(value) {
|
|
100257
100261
|
if (typeof value !== "object" || value === null) {
|
|
100258
100262
|
return false;
|
|
@@ -133543,16 +133547,16 @@ function addDecoder(cases, importFn) {
|
|
|
133543
133547
|
}
|
|
133544
133548
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133545
133549
|
}
|
|
133546
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133547
|
-
addDecoder(5, () => import("./lzw-
|
|
133550
|
+
addDecoder([void 0, 1], () => import("./raw-f6b0dad1.js").then((m) => m.default));
|
|
133551
|
+
addDecoder(5, () => import("./lzw-fde46e44.js").then((m) => m.default));
|
|
133548
133552
|
addDecoder(6, () => {
|
|
133549
133553
|
throw new Error("old style JPEG compression is not supported.");
|
|
133550
133554
|
});
|
|
133551
|
-
addDecoder(7, () => import("./jpeg-
|
|
133552
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133553
|
-
addDecoder(32773, () => import("./packbits-
|
|
133554
|
-
addDecoder(34887, () => import("./lerc-
|
|
133555
|
-
addDecoder(50001, () => import("./webimage-
|
|
133555
|
+
addDecoder(7, () => import("./jpeg-578f0ca5.js").then((m) => m.default));
|
|
133556
|
+
addDecoder([8, 32946], () => import("./deflate-2c11533f.js").then((m) => m.default));
|
|
133557
|
+
addDecoder(32773, () => import("./packbits-5ed5b9c6.js").then((m) => m.default));
|
|
133558
|
+
addDecoder(34887, () => import("./lerc-357448de.js").then((m) => m.default));
|
|
133559
|
+
addDecoder(50001, () => import("./webimage-13174dd3.js").then((m) => m.default));
|
|
133556
133560
|
function decodeRowAcc(row, stride) {
|
|
133557
133561
|
let length2 = row.length - stride;
|
|
133558
133562
|
let offset5 = 0;
|
|
@@ -144928,6 +144932,7 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
144928
144932
|
}
|
|
144929
144933
|
);
|
|
144930
144934
|
});
|
|
144935
|
+
Heatmap.displayName = "Heatmap";
|
|
144931
144936
|
const styles10 = makeStyles((theme) => ({
|
|
144932
144937
|
tooltipAnchor: {
|
|
144933
144938
|
position: "relative",
|
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-6ef9e70c.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
package/dist-tsc/Heatmap.js
CHANGED
|
@@ -698,4 +698,5 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
698
698
|
...cellColorsViews,
|
|
699
699
|
], layers: layers, layerFilter: layerFilter, getCursor: interactionState => (interactionState.isDragging ? 'grabbing' : cursorType), glOptions: DEFAULT_GL_OPTIONS, onViewStateChange: onViewStateChange, viewState: viewState, onHover: onHover, useDevicePixels: useDevicePixels, onClick: onHeatmapClick }));
|
|
700
700
|
});
|
|
701
|
+
Heatmap.displayName = 'Heatmap';
|
|
701
702
|
export default Heatmap;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/heatmap",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "3.5.1",
|
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -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.
|
|
24
|
-
"@vitessce/gl": "3.
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/workers": "3.
|
|
23
|
+
"@vitessce/constants-internal": "3.5.1",
|
|
24
|
+
"@vitessce/gl": "3.5.1",
|
|
25
|
+
"@vitessce/sets-utils": "3.5.1",
|
|
26
|
+
"@vitessce/tooltip": "3.5.1",
|
|
27
|
+
"@vitessce/utils": "3.5.1",
|
|
28
|
+
"@vitessce/vit-s": "3.5.1",
|
|
29
|
+
"@vitessce/legend": "3.5.1",
|
|
30
|
+
"@vitessce/workers": "3.5.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^5.16.4",
|