@vitessce/layer-controller 3.5.10 → 3.5.11

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-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-70b67fad.js";
2
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -16790,6 +16790,7 @@ const CoordinationType = {
16790
16790
  FEATURE_VALUE_COLORMAP: "featureValueColormap",
16791
16791
  FEATURE_VALUE_TRANSFORM: "featureValueTransform",
16792
16792
  FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
16793
+ FEATURE_AGGREGATION_STRATEGY: "featureAggregationStrategy",
16793
16794
  OBS_COLOR_ENCODING: "obsColorEncoding",
16794
16795
  SPATIAL_IMAGE_LAYER: "spatialImageLayer",
16795
16796
  SPATIAL_SEGMENTATION_LAYER: "spatialSegmentationLayer",
@@ -16932,6 +16933,7 @@ const COMPONENT_COORDINATION_TYPES = {
16932
16933
  CoordinationType.FEATURE_SELECTION,
16933
16934
  CoordinationType.FEATURE_VALUE_COLORMAP,
16934
16935
  CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
16936
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
16935
16937
  CoordinationType.OBS_COLOR_ENCODING,
16936
16938
  CoordinationType.ADDITIONAL_OBS_SETS,
16937
16939
  CoordinationType.TOOLTIPS_VISIBLE,
@@ -16975,6 +16977,7 @@ const COMPONENT_COORDINATION_TYPES = {
16975
16977
  CoordinationType.FEATURE_SELECTION,
16976
16978
  CoordinationType.FEATURE_VALUE_COLORMAP,
16977
16979
  CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
16980
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
16978
16981
  CoordinationType.OBS_COLOR_ENCODING,
16979
16982
  CoordinationType.ADDITIONAL_OBS_SETS,
16980
16983
  CoordinationType.TOOLTIPS_VISIBLE,
@@ -17054,6 +17057,7 @@ const COMPONENT_COORDINATION_TYPES = {
17054
17057
  CoordinationType.FEATURE_SELECTION,
17055
17058
  CoordinationType.FEATURE_VALUE_COLORMAP,
17056
17059
  CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
17060
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17057
17061
  CoordinationType.OBS_COLOR_ENCODING,
17058
17062
  CoordinationType.ADDITIONAL_OBS_SETS,
17059
17063
  CoordinationType.MOLECULE_HIGHLIGHT,
@@ -17091,6 +17095,7 @@ const COMPONENT_COORDINATION_TYPES = {
17091
17095
  CoordinationType.FEATURE_SELECTION,
17092
17096
  CoordinationType.FEATURE_VALUE_COLORMAP,
17093
17097
  CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
17098
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17094
17099
  CoordinationType.OBS_COLOR_ENCODING,
17095
17100
  CoordinationType.ADDITIONAL_OBS_SETS,
17096
17101
  CoordinationType.MOLECULE_HIGHLIGHT,
@@ -17204,6 +17209,7 @@ const COMPONENT_COORDINATION_TYPES = {
17204
17209
  CoordinationType.FEATURE_SELECTION,
17205
17210
  CoordinationType.FEATURE_VALUE_TRANSFORM,
17206
17211
  CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
17212
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17207
17213
  CoordinationType.OBS_SET_SELECTION,
17208
17214
  CoordinationType.OBS_SET_FILTER,
17209
17215
  CoordinationType.OBS_SET_HIGHLIGHT,
@@ -17219,6 +17225,7 @@ const COMPONENT_COORDINATION_TYPES = {
17219
17225
  CoordinationType.FEATURE_TYPE,
17220
17226
  CoordinationType.FEATURE_VALUE_TYPE,
17221
17227
  CoordinationType.FEATURE_SELECTION,
17228
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17222
17229
  CoordinationType.ADDITIONAL_OBS_SETS,
17223
17230
  CoordinationType.OBS_SET_COLOR,
17224
17231
  CoordinationType.OBS_COLOR_ENCODING,
@@ -17297,6 +17304,7 @@ const COMPONENT_COORDINATION_TYPES = {
17297
17304
  CoordinationType.FEATURE_VALUE_COLORMAP,
17298
17305
  CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
17299
17306
  CoordinationType.FEATURE_SELECTION,
17307
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17300
17308
  CoordinationType.TOOLTIPS_VISIBLE,
17301
17309
  CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
17302
17310
  CoordinationType.LEGEND_VISIBLE,
@@ -17337,6 +17345,7 @@ const COMPONENT_COORDINATION_TYPES = {
17337
17345
  CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
17338
17346
  CoordinationType.FEATURE_VALUE_POSITIVITY_THRESHOLD,
17339
17347
  CoordinationType.FEATURE_VALUE_COLORMAP,
17348
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17340
17349
  CoordinationType.OBS_SET_SELECTION,
17341
17350
  CoordinationType.OBS_SET_FILTER,
17342
17351
  CoordinationType.OBS_SET_HIGHLIGHT,
@@ -17365,6 +17374,7 @@ const COMPONENT_COORDINATION_TYPES = {
17365
17374
  CoordinationType.FEATURE_SELECTION,
17366
17375
  CoordinationType.FEATURE_VALUE_TRANSFORM,
17367
17376
  CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
17377
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17368
17378
  CoordinationType.OBS_SET_SELECTION,
17369
17379
  CoordinationType.OBS_SET_HIGHLIGHT,
17370
17380
  CoordinationType.OBS_HIGHLIGHT,
@@ -17469,6 +17479,7 @@ const COMPONENT_COORDINATION_TYPES = {
17469
17479
  CoordinationType.OBS_TYPE,
17470
17480
  CoordinationType.SAMPLE_TYPE,
17471
17481
  CoordinationType.FEATURE_SELECTION,
17482
+ CoordinationType.FEATURE_AGGREGATION_STRATEGY,
17472
17483
  CoordinationType.SAMPLE_SET_SELECTION,
17473
17484
  CoordinationType.SAMPLE_SET_FILTER,
17474
17485
  CoordinationType.OBS_SET_SELECTION,
@@ -126980,8 +126991,15 @@ class SelectionLayer extends CompositeLayer {
126980
126991
  if (!nodePolygonContainsSelectedPolygon && !nodePolygonWithinSelectedPolygon && !nodePolygonOverlapsSelectedPolgyon) {
126981
126992
  return true;
126982
126993
  }
126983
- if (node2.data && booleanPointInPolygon$1(point$1([].slice.call(getObsCoords(node2.data))), selectedPolygon)) {
126984
- pickingInfos.push(node2.data);
126994
+ if (node2.data) {
126995
+ let current = node2;
126996
+ while (current) {
126997
+ const pointCoords = [].slice.call(getObsCoords(current.data));
126998
+ if (booleanPointInPolygon$1(point$1(pointCoords), selectedPolygon)) {
126999
+ pickingInfos.push(current.data);
127000
+ }
127001
+ current = current.next;
127002
+ }
126985
127003
  }
126986
127004
  return false;
126987
127005
  });
@@ -128159,16 +128177,16 @@ function addDecoder(cases, importFn) {
128159
128177
  }
128160
128178
  cases.forEach((c) => registry$1.set(c, importFn));
128161
128179
  }
128162
- addDecoder([void 0, 1], () => import("./raw-947f75bf.js").then((m) => m.default));
128163
- addDecoder(5, () => import("./lzw-dbb1bf81.js").then((m) => m.default));
128180
+ addDecoder([void 0, 1], () => import("./raw-043cf610.js").then((m) => m.default));
128181
+ addDecoder(5, () => import("./lzw-fcb90a13.js").then((m) => m.default));
128164
128182
  addDecoder(6, () => {
128165
128183
  throw new Error("old style JPEG compression is not supported.");
128166
128184
  });
128167
- addDecoder(7, () => import("./jpeg-2b29cef5.js").then((m) => m.default));
128168
- addDecoder([8, 32946], () => import("./deflate-da4e210a.js").then((m) => m.default));
128169
- addDecoder(32773, () => import("./packbits-15bec513.js").then((m) => m.default));
128170
- addDecoder(34887, () => import("./lerc-b9053be7.js").then((m) => m.default));
128171
- addDecoder(50001, () => import("./webimage-d8e32cb3.js").then((m) => m.default));
128185
+ addDecoder(7, () => import("./jpeg-de2a446b.js").then((m) => m.default));
128186
+ addDecoder([8, 32946], () => import("./deflate-8a6ed1b8.js").then((m) => m.default));
128187
+ addDecoder(32773, () => import("./packbits-37339fac.js").then((m) => m.default));
128188
+ addDecoder(34887, () => import("./lerc-e50baa38.js").then((m) => m.default));
128189
+ addDecoder(50001, () => import("./webimage-22a3672d.js").then((m) => m.default));
128172
128190
  function decodeRowAcc(row, stride) {
128173
128191
  let length2 = row.length - stride;
128174
128192
  let offset4 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, L, V, d, c, e, f, b, h, u } from "./index-70b67fad.js";
1
+ import { a, L, V, d, c, e, f, b, h, u } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-70b67fad.js";
1
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -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-70b67fad.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-9f5d422b.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-70b67fad.js";
1
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-70b67fad.js";
1
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-70b67fad.js";
1
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-70b67fad.js";
1
+ import { B as BaseDecoder } from "./index-9f5d422b.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/layer-controller",
3
- "version": "3.5.10",
3
+ "version": "3.5.11",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "lodash-es": "^4.17.21",
22
22
  "math.gl": "^3.5.6",
23
23
  "react-aria": "^3.28.0",
24
- "@vitessce/constants-internal": "3.5.10",
25
- "@vitessce/gl": "3.5.10",
26
- "@vitessce/spatial-utils": "3.5.10",
27
- "@vitessce/utils": "3.5.10",
28
- "@vitessce/vit-s": "3.5.10"
24
+ "@vitessce/constants-internal": "3.5.11",
25
+ "@vitessce/gl": "3.5.11",
26
+ "@vitessce/spatial-utils": "3.5.11",
27
+ "@vitessce/utils": "3.5.11",
28
+ "@vitessce/vit-s": "3.5.11"
29
29
  },
30
30
  "devDependencies": {
31
31
  "react": "^18.0.0",