@vitessce/scatterplot-embedding 3.8.4 → 3.8.5
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-BxR-2XLF.js → deflate-Dr6bxD0w.js} +1 -1
- package/dist/{index-GtSgg8pH.js → index-DXCCF6LM.js} +13 -10
- package/dist/index.js +1 -1
- package/dist/{jpeg-DLLpeZHU.js → jpeg-UKzKGs1t.js} +1 -1
- package/dist/{lerc-D-3cZROI.js → lerc-D62tGpqi.js} +1 -1
- package/dist/{lzw-CtFjRU3Q.js → lzw-Dbo7OpaS.js} +1 -1
- package/dist/{packbits-S1ARW4m1.js → packbits-0X-GrQId.js} +1 -1
- package/dist/{raw-DDkWwRAn.js → raw-CBdLq0ga.js} +1 -1
- package/dist/{webimage-DzwmGpMk.js → webimage-C2vUudNG.js} +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.js +5 -3
- package/package.json +8 -8
- package/src/EmbeddingScatterplotSubscriber.js +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-DXCCF6LM.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -10715,6 +10715,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10715
10715
|
CoordinationType$1.FEATURE_SELECTION,
|
|
10716
10716
|
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
10717
10717
|
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
10718
|
+
CoordinationType$1.FEATURE_AGGREGATION_STRATEGY,
|
|
10718
10719
|
// TODO: CoordinationType.FEATURE_COLOR_ENCODING,
|
|
10719
10720
|
// TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
|
|
10720
10721
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
@@ -123347,22 +123348,22 @@ function addDecoder(cases, importFn) {
|
|
|
123347
123348
|
}
|
|
123348
123349
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123349
123350
|
}
|
|
123350
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123351
|
-
addDecoder(5, () => import("./lzw-
|
|
123351
|
+
addDecoder([void 0, 1], () => import("./raw-CBdLq0ga.js").then((m2) => m2.default));
|
|
123352
|
+
addDecoder(5, () => import("./lzw-Dbo7OpaS.js").then((m2) => m2.default));
|
|
123352
123353
|
addDecoder(6, () => {
|
|
123353
123354
|
throw new Error("old style JPEG compression is not supported.");
|
|
123354
123355
|
});
|
|
123355
|
-
addDecoder(7, () => import("./jpeg-
|
|
123356
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123357
|
-
addDecoder(32773, () => import("./packbits-
|
|
123356
|
+
addDecoder(7, () => import("./jpeg-UKzKGs1t.js").then((m2) => m2.default));
|
|
123357
|
+
addDecoder([8, 32946], () => import("./deflate-Dr6bxD0w.js").then((m2) => m2.default));
|
|
123358
|
+
addDecoder(32773, () => import("./packbits-0X-GrQId.js").then((m2) => m2.default));
|
|
123358
123359
|
addDecoder(
|
|
123359
123360
|
34887,
|
|
123360
|
-
() => import("./lerc-
|
|
123361
|
+
() => import("./lerc-D62tGpqi.js").then(async (m2) => {
|
|
123361
123362
|
await m2.zstd.init();
|
|
123362
123363
|
return m2;
|
|
123363
123364
|
}).then((m2) => m2.default)
|
|
123364
123365
|
);
|
|
123365
|
-
addDecoder(50001, () => import("./webimage-
|
|
123366
|
+
addDecoder(50001, () => import("./webimage-C2vUudNG.js").then((m2) => m2.default));
|
|
123366
123367
|
function decodeRowAcc(row, stride) {
|
|
123367
123368
|
let length2 = row.length - stride;
|
|
123368
123369
|
let offset2 = 0;
|
|
@@ -153412,7 +153413,9 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
153412
153413
|
// Average fill density for dynamic opacity calculation.
|
|
153413
153414
|
averageFillDensity,
|
|
153414
153415
|
// For the dual scatterplot:
|
|
153415
|
-
sampleSetSelection: sampleSetSelectionFromProps
|
|
153416
|
+
sampleSetSelection: sampleSetSelectionFromProps,
|
|
153417
|
+
// Circle scale factor:
|
|
153418
|
+
circleScaleFactor = 0.8
|
|
153416
153419
|
} = props;
|
|
153417
153420
|
const loaders = useLoaders();
|
|
153418
153421
|
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
@@ -153802,7 +153805,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
153802
153805
|
return null;
|
|
153803
153806
|
}
|
|
153804
153807
|
const size = Math.max(xRange, yRange);
|
|
153805
|
-
const radius = size * Math.sqrt(2) / 2 *
|
|
153808
|
+
const radius = size * Math.sqrt(2) / 2 * circleScaleFactor;
|
|
153806
153809
|
const numPoints = 96;
|
|
153807
153810
|
const options = { steps: numPoints, units: "degrees" };
|
|
153808
153811
|
const circlePolygon = circle$2(center2, radius, options);
|
|
@@ -153812,7 +153815,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
153812
153815
|
polygon: circlePolygon,
|
|
153813
153816
|
steps: numPoints
|
|
153814
153817
|
};
|
|
153815
|
-
}, [originalViewState, width2, height2, xRange, yRange]);
|
|
153818
|
+
}, [originalViewState, width2, height2, xRange, yRange, circleScaleFactor]);
|
|
153816
153819
|
const [alignedEmbeddingIndex, alignedEmbeddingData] = useMemo(() => {
|
|
153817
153820
|
if ((obsEmbedding == null ? void 0 : obsEmbedding.data) && obsEmbeddingIndex && matrixObsIndex) {
|
|
153818
153821
|
const matrixIndexMap = new Map(matrixObsIndex.map((key, i2) => [key, i2]));
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DXCCF6LM.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,
|
|
1
|
+
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;GAYG;AACH,sDAVG;IAAsB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;CAEhB,eAimBA"}
|
|
@@ -29,7 +29,9 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
29
29
|
// Average fill density for dynamic opacity calculation.
|
|
30
30
|
averageFillDensity,
|
|
31
31
|
// For the dual scatterplot:
|
|
32
|
-
sampleSetSelection: sampleSetSelectionFromProps,
|
|
32
|
+
sampleSetSelection: sampleSetSelectionFromProps,
|
|
33
|
+
// Circle scale factor:
|
|
34
|
+
circleScaleFactor = 0.8, } = props;
|
|
33
35
|
const loaders = useLoaders();
|
|
34
36
|
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
35
37
|
const setComponentHover = useSetComponentHover();
|
|
@@ -226,7 +228,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
226
228
|
const size = Math.max(xRange, yRange);
|
|
227
229
|
// TODO: figure out a better solution than
|
|
228
230
|
// scaling the radius by the arbitrary 0.8?
|
|
229
|
-
const radius = ((size * Math.sqrt(2)) / 2) *
|
|
231
|
+
const radius = ((size * Math.sqrt(2)) / 2) * circleScaleFactor;
|
|
230
232
|
const numPoints = 96;
|
|
231
233
|
const options = { steps: numPoints, units: 'degrees' };
|
|
232
234
|
const circlePolygon = circle(center, radius, options);
|
|
@@ -236,7 +238,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
236
238
|
polygon: circlePolygon,
|
|
237
239
|
steps: numPoints,
|
|
238
240
|
};
|
|
239
|
-
}, [originalViewState, width, height, xRange, yRange]);
|
|
241
|
+
}, [originalViewState, width, height, xRange, yRange, circleScaleFactor]);
|
|
240
242
|
// It is possible for the embedding index+data to be out of order
|
|
241
243
|
// with respect to the matrix index+data. Here, we align the embedding
|
|
242
244
|
// data so that the rows are ordered the same as the matrix rows.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-embedding",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.5",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
22
|
"@turf/circle": "^7.2.0",
|
|
23
|
-
"@vitessce/styles": "3.8.
|
|
24
|
-
"@vitessce/constants-internal": "3.8.
|
|
25
|
-
"@vitessce/legend": "3.8.
|
|
26
|
-
"@vitessce/scatterplot": "3.8.
|
|
27
|
-
"@vitessce/sets-utils": "3.8.
|
|
28
|
-
"@vitessce/utils": "3.8.
|
|
29
|
-
"@vitessce/vit-s": "3.8.
|
|
23
|
+
"@vitessce/styles": "3.8.5",
|
|
24
|
+
"@vitessce/constants-internal": "3.8.5",
|
|
25
|
+
"@vitessce/legend": "3.8.5",
|
|
26
|
+
"@vitessce/scatterplot": "3.8.5",
|
|
27
|
+
"@vitessce/sets-utils": "3.8.5",
|
|
28
|
+
"@vitessce/utils": "3.8.5",
|
|
29
|
+
"@vitessce/vit-s": "3.8.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"react": "18.3.1",
|
|
@@ -69,9 +69,10 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
69
69
|
helpText = ViewHelpMapping.SCATTERPLOT,
|
|
70
70
|
// Average fill density for dynamic opacity calculation.
|
|
71
71
|
averageFillDensity,
|
|
72
|
-
|
|
73
72
|
// For the dual scatterplot:
|
|
74
73
|
sampleSetSelection: sampleSetSelectionFromProps,
|
|
74
|
+
// Circle scale factor:
|
|
75
|
+
circleScaleFactor = 0.8,
|
|
75
76
|
} = props;
|
|
76
77
|
|
|
77
78
|
const loaders = useLoaders();
|
|
@@ -434,7 +435,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
434
435
|
const size = Math.max(xRange, yRange);
|
|
435
436
|
// TODO: figure out a better solution than
|
|
436
437
|
// scaling the radius by the arbitrary 0.8?
|
|
437
|
-
const radius = ((size * Math.sqrt(2)) / 2) *
|
|
438
|
+
const radius = ((size * Math.sqrt(2)) / 2) * circleScaleFactor;
|
|
438
439
|
const numPoints = 96;
|
|
439
440
|
const options = { steps: numPoints, units: 'degrees' };
|
|
440
441
|
const circlePolygon = circle(center, radius, options);
|
|
@@ -444,7 +445,7 @@ export function EmbeddingScatterplotSubscriber(props) {
|
|
|
444
445
|
polygon: circlePolygon,
|
|
445
446
|
steps: numPoints,
|
|
446
447
|
};
|
|
447
|
-
}, [originalViewState, width, height, xRange, yRange]);
|
|
448
|
+
}, [originalViewState, width, height, xRange, yRange, circleScaleFactor]);
|
|
448
449
|
|
|
449
450
|
// It is possible for the embedding index+data to be out of order
|
|
450
451
|
// with respect to the matrix index+data. Here, we align the embedding
|