@vitessce/scatterplot-gating 3.8.9 → 3.8.10
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-BWruMwlA.js → deflate-cHZ5BtL4.js} +1 -1
- package/dist/{index-k4Gb5Rr6.js → index-3JLSEmls.js} +17 -10
- package/dist/index.js +1 -1
- package/dist/{jpeg-BPxMjMH5.js → jpeg-CmWYaDwo.js} +1 -1
- package/dist/{lerc-5srriG04.js → lerc-xs2XgP1_.js} +1 -1
- package/dist/{lzw-B9LUdTm-.js → lzw-DWJkCyJc.js} +1 -1
- package/dist/{packbits-D07Ye1Lk.js → packbits-FBcM5Pu3.js} +1 -1
- package/dist/{raw-_dOIgzxv.js → raw-CKB_LRT8.js} +1 -1
- package/dist/{webimage-BlSGBDHd.js → webimage-lagAsDWD.js} +1 -1
- package/dist-tsc/GatingSubscriber.js +1 -1
- package/package.json +7 -7
- package/src/GatingSubscriber.js +1 -1
|
@@ -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-3JLSEmls.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -123149,22 +123149,22 @@ function addDecoder(cases, importFn) {
|
|
|
123149
123149
|
}
|
|
123150
123150
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123151
123151
|
}
|
|
123152
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123153
|
-
addDecoder(5, () => import("./lzw-
|
|
123152
|
+
addDecoder([void 0, 1], () => import("./raw-CKB_LRT8.js").then((m2) => m2.default));
|
|
123153
|
+
addDecoder(5, () => import("./lzw-DWJkCyJc.js").then((m2) => m2.default));
|
|
123154
123154
|
addDecoder(6, () => {
|
|
123155
123155
|
throw new Error("old style JPEG compression is not supported.");
|
|
123156
123156
|
});
|
|
123157
|
-
addDecoder(7, () => import("./jpeg-
|
|
123158
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123159
|
-
addDecoder(32773, () => import("./packbits-
|
|
123157
|
+
addDecoder(7, () => import("./jpeg-CmWYaDwo.js").then((m2) => m2.default));
|
|
123158
|
+
addDecoder([8, 32946], () => import("./deflate-cHZ5BtL4.js").then((m2) => m2.default));
|
|
123159
|
+
addDecoder(32773, () => import("./packbits-FBcM5Pu3.js").then((m2) => m2.default));
|
|
123160
123160
|
addDecoder(
|
|
123161
123161
|
34887,
|
|
123162
|
-
() => import("./lerc-
|
|
123162
|
+
() => import("./lerc-xs2XgP1_.js").then(async (m2) => {
|
|
123163
123163
|
await m2.zstd.init();
|
|
123164
123164
|
return m2;
|
|
123165
123165
|
}).then((m2) => m2.default)
|
|
123166
123166
|
);
|
|
123167
|
-
addDecoder(50001, () => import("./webimage-
|
|
123167
|
+
addDecoder(50001, () => import("./webimage-lagAsDWD.js").then((m2) => m2.default));
|
|
123168
123168
|
function decodeRowAcc(row, stride) {
|
|
123169
123169
|
let length2 = row.length - stride;
|
|
123170
123170
|
let offset2 = 0;
|
|
@@ -158530,8 +158530,14 @@ function forceCollideRects() {
|
|
|
158530
158530
|
};
|
|
158531
158531
|
return force;
|
|
158532
158532
|
}
|
|
158533
|
-
|
|
158534
|
-
|
|
158533
|
+
const BASE_POINT_SIZE = 5;
|
|
158534
|
+
const LARGE_DATASET_CELL_COUNT = 1e4;
|
|
158535
|
+
const SMALL_DATASET_CELL_COUNT = 100;
|
|
158536
|
+
function getInitialPointSize(numCells = LARGE_DATASET_CELL_COUNT) {
|
|
158537
|
+
return BASE_POINT_SIZE / clamp$4(numCells, SMALL_DATASET_CELL_COUNT, LARGE_DATASET_CELL_COUNT);
|
|
158538
|
+
}
|
|
158539
|
+
function getPointSizeDevicePixels(devicePixelRatio, zoom, xRange, yRange, width2, height2, numCells) {
|
|
158540
|
+
const pointSize = getInitialPointSize(numCells);
|
|
158535
158541
|
const pointScreenSizeMax = 10;
|
|
158536
158542
|
const pointScreenSizeMin = 1 / devicePixelRatio;
|
|
158537
158543
|
const scaleFactor = 2 ** zoom;
|
|
@@ -159752,7 +159758,8 @@ function GatingSubscriber(props) {
|
|
|
159752
159758
|
xRange,
|
|
159753
159759
|
yRange,
|
|
159754
159760
|
width2,
|
|
159755
|
-
height2
|
|
159761
|
+
height2,
|
|
159762
|
+
numCells
|
|
159756
159763
|
);
|
|
159757
159764
|
setDynamicCellRadius(pointSizeDevicePixels);
|
|
159758
159765
|
const nextCellOpacityScale = getPointOpacity(
|
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-3JLSEmls.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
|
@@ -163,7 +163,7 @@ export function GatingSubscriber(props) {
|
|
|
163
163
|
// extents of the cell coordinates on the x/y axes.
|
|
164
164
|
useEffect(() => {
|
|
165
165
|
if (xRange && yRange) {
|
|
166
|
-
const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom, xRange, yRange, width, height);
|
|
166
|
+
const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom, xRange, yRange, width, height, numCells);
|
|
167
167
|
setDynamicCellRadius(pointSizeDevicePixels);
|
|
168
168
|
const nextCellOpacityScale = getPointOpacity(zoom, xRange, yRange, width, height, numCells, averageFillDensity);
|
|
169
169
|
setDynamicCellOpacity(nextCellOpacityScale);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-gating",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.10",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
|
-
"@vitessce/styles": "3.8.
|
|
23
|
-
"@vitessce/constants-internal": "3.8.
|
|
24
|
-
"@vitessce/scatterplot": "3.8.
|
|
25
|
-
"@vitessce/sets-utils": "3.8.
|
|
26
|
-
"@vitessce/utils": "3.8.
|
|
27
|
-
"@vitessce/vit-s": "3.8.
|
|
22
|
+
"@vitessce/styles": "3.8.10",
|
|
23
|
+
"@vitessce/constants-internal": "3.8.10",
|
|
24
|
+
"@vitessce/scatterplot": "3.8.10",
|
|
25
|
+
"@vitessce/sets-utils": "3.8.10",
|
|
26
|
+
"@vitessce/utils": "3.8.10",
|
|
27
|
+
"@vitessce/vit-s": "3.8.10"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "18.3.1",
|
package/src/GatingSubscriber.js
CHANGED
|
@@ -325,7 +325,7 @@ export function GatingSubscriber(props) {
|
|
|
325
325
|
useEffect(() => {
|
|
326
326
|
if (xRange && yRange) {
|
|
327
327
|
const pointSizeDevicePixels = getPointSizeDevicePixels(
|
|
328
|
-
window.devicePixelRatio, zoom, xRange, yRange, width, height,
|
|
328
|
+
window.devicePixelRatio, zoom, xRange, yRange, width, height, numCells,
|
|
329
329
|
);
|
|
330
330
|
setDynamicCellRadius(pointSizeDevicePixels);
|
|
331
331
|
|