@vitessce/scatterplot-embedding 3.9.7 → 3.9.9

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
2
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -9899,6 +9899,7 @@ const CoordinationType$1 = {
9899
9899
  SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
9900
9900
  SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
9901
9901
  SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
9902
+ SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
9902
9903
  SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
9903
9904
  SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
9904
9905
  SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
@@ -10267,7 +10268,8 @@ const COMPONENT_COORDINATION_TYPES = {
10267
10268
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
10268
10269
  CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
10269
10270
  CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
10270
- CoordinationType$1.LEGEND_VISIBLE
10271
+ CoordinationType$1.LEGEND_VISIBLE,
10272
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
10271
10273
  ],
10272
10274
  [ViewType$1.SCATTERPLOT]: [
10273
10275
  CoordinationType$1.DATASET,
@@ -10651,6 +10653,7 @@ const COMPONENT_COORDINATION_TYPES = {
10651
10653
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
10652
10654
  CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
10653
10655
  CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
10656
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
10654
10657
  CoordinationType$1.IMAGE_CHANNEL,
10655
10658
  CoordinationType$1.IMAGE_LAYER,
10656
10659
  CoordinationType$1.SEGMENTATION_CHANNEL,
@@ -11323,6 +11326,8 @@ z.object({
11323
11326
  // projectionScale: z.number(),
11324
11327
  // position: z.array(z.number()).length(3),
11325
11328
  // projectionOrientation: z.array(z.number()).length(4),
11329
+ subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
11330
+ enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
11326
11331
  }).partial().nullable();
11327
11332
  z.object({
11328
11333
  projectionAnnotationSpacing: z.number(),
@@ -123454,22 +123459,22 @@ function addDecoder(cases, importFn) {
123454
123459
  }
123455
123460
  cases.forEach((c2) => registry$1.set(c2, importFn));
123456
123461
  }
123457
- addDecoder([void 0, 1], () => import("./raw-EACDAQyt.js").then((m2) => m2.default));
123458
- addDecoder(5, () => import("./lzw-gYw3lEmK.js").then((m2) => m2.default));
123462
+ addDecoder([void 0, 1], () => import("./raw-Daj0o-sy.js").then((m2) => m2.default));
123463
+ addDecoder(5, () => import("./lzw-CaLP47f8.js").then((m2) => m2.default));
123459
123464
  addDecoder(6, () => {
123460
123465
  throw new Error("old style JPEG compression is not supported.");
123461
123466
  });
123462
- addDecoder(7, () => import("./jpeg-DHOm-lsS.js").then((m2) => m2.default));
123463
- addDecoder([8, 32946], () => import("./deflate-CPKmTD_H.js").then((m2) => m2.default));
123464
- addDecoder(32773, () => import("./packbits-C5YjAXWF.js").then((m2) => m2.default));
123467
+ addDecoder(7, () => import("./jpeg-BXswZkXu.js").then((m2) => m2.default));
123468
+ addDecoder([8, 32946], () => import("./deflate-_xNU4jc4.js").then((m2) => m2.default));
123469
+ addDecoder(32773, () => import("./packbits-DO82gZ6e.js").then((m2) => m2.default));
123465
123470
  addDecoder(
123466
123471
  34887,
123467
- () => import("./lerc-BNgwp9p4.js").then(async (m2) => {
123472
+ () => import("./lerc-CpspJKur.js").then(async (m2) => {
123468
123473
  await m2.zstd.init();
123469
123474
  return m2;
123470
123475
  }).then((m2) => m2.default)
123471
123476
  );
123472
- addDecoder(50001, () => import("./webimage-BZfJm-XR.js").then((m2) => m2.default));
123477
+ addDecoder(50001, () => import("./webimage-BXg2ZmbV.js").then((m2) => m2.default));
123473
123478
  function decodeRowAcc(row, stride) {
123474
123479
  let length2 = row.length - stride;
123475
123480
  let offset2 = 0;
@@ -154707,7 +154712,9 @@ function Legend(props) {
154707
154712
  isStaticColor,
154708
154713
  missing,
154709
154714
  showObsLabel,
154710
- staticColor
154715
+ staticColor,
154716
+ featureColor,
154717
+ pointsLegendElements
154711
154718
  ]);
154712
154719
  const showInteractiveSlider = !isPointsLayer && setFeatureValueColormapRange && ["geneSelection", "geneExpression"].includes(obsColorEncoding ?? "") && pointsVisible && featureValueColormap;
154713
154720
  const globalExtent = useMemo(() => {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-BFIHjDqy.js";
1
+ import { D, E } from "./index-BBS13En5.js";
2
2
  export {
3
3
  D as DualEmbeddingScatterplotSubscriber,
4
4
  E as EmbeddingScatterplotSubscriber
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
1
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -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-BFIHjDqy.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BBS13En5.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
1
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
1
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
1
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BFIHjDqy.js";
1
+ import { B as BaseDecoder } from "./index-BBS13En5.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/scatterplot-embedding",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
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.9.7",
24
- "@vitessce/constants-internal": "3.9.7",
25
- "@vitessce/legend": "3.9.7",
26
- "@vitessce/scatterplot": "3.9.7",
27
- "@vitessce/sets-utils": "3.9.7",
28
- "@vitessce/utils": "3.9.7",
29
- "@vitessce/vit-s": "3.9.7"
23
+ "@vitessce/styles": "3.9.9",
24
+ "@vitessce/constants-internal": "3.9.9",
25
+ "@vitessce/legend": "3.9.9",
26
+ "@vitessce/scatterplot": "3.9.9",
27
+ "@vitessce/sets-utils": "3.9.9",
28
+ "@vitessce/utils": "3.9.9",
29
+ "@vitessce/vit-s": "3.9.9"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "18.3.1",