@vitessce/gl 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-e113c88f.js";
2
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -108409,11 +108409,15 @@ class SelectionLayer extends CompositeLayer {
108409
108409
  if (!nodePolygonContainsSelectedPolygon && !nodePolygonWithinSelectedPolygon && !nodePolygonOverlapsSelectedPolgyon) {
108410
108410
  return true;
108411
108411
  }
108412
- if (node.data && booleanPointInPolygon$1(
108413
- point$1([].slice.call(getObsCoords(node.data))),
108414
- selectedPolygon
108415
- )) {
108416
- pickingInfos.push(node.data);
108412
+ if (node.data) {
108413
+ let current = node;
108414
+ while (current) {
108415
+ const pointCoords = [].slice.call(getObsCoords(current.data));
108416
+ if (booleanPointInPolygon$1(point$1(pointCoords), selectedPolygon)) {
108417
+ pickingInfos.push(current.data);
108418
+ }
108419
+ current = current.next;
108420
+ }
108417
108421
  }
108418
108422
  return false;
108419
108423
  });
@@ -110388,16 +110392,16 @@ async function getDecoder(fileDirectory) {
110388
110392
  const Decoder = await importFn();
110389
110393
  return new Decoder(fileDirectory);
110390
110394
  }
110391
- addDecoder([void 0, 1], () => import("./raw-3c07a927.js").then((m) => m.default));
110392
- addDecoder(5, () => import("./lzw-cae4aaf9.js").then((m) => m.default));
110395
+ addDecoder([void 0, 1], () => import("./raw-603c0fb6.js").then((m) => m.default));
110396
+ addDecoder(5, () => import("./lzw-793cc915.js").then((m) => m.default));
110393
110397
  addDecoder(6, () => {
110394
110398
  throw new Error("old style JPEG compression is not supported.");
110395
110399
  });
110396
- addDecoder(7, () => import("./jpeg-a43f1407.js").then((m) => m.default));
110397
- addDecoder([8, 32946], () => import("./deflate-b17d64b1.js").then((m) => m.default));
110398
- addDecoder(32773, () => import("./packbits-965c5d70.js").then((m) => m.default));
110399
- addDecoder(34887, () => import("./lerc-d05b8280.js").then((m) => m.default));
110400
- addDecoder(50001, () => import("./webimage-36b3a167.js").then((m) => m.default));
110400
+ addDecoder(7, () => import("./jpeg-31708f4f.js").then((m) => m.default));
110401
+ addDecoder([8, 32946], () => import("./deflate-42c41f45.js").then((m) => m.default));
110402
+ addDecoder(32773, () => import("./packbits-2aeb17ec.js").then((m) => m.default));
110403
+ addDecoder(34887, () => import("./lerc-6c75cc96.js").then((m) => m.default));
110404
+ addDecoder(50001, () => import("./webimage-64e48b0b.js").then((m) => m.default));
110401
110405
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
110402
110406
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
110403
110407
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as distEs6 } from "./index-e113c88f.js";
2
- import { p, o, A, s, r, q, i, j, l, C, m, D, G, e, H, c, M, k, n, d, P, S, h, T, u, b, t, w, v } from "./index-e113c88f.js";
1
+ import { f as distEs6 } from "./index-e9a35e78.js";
2
+ import { p, o, A, s, r, q, i, j, l, C, m, D, G, e, H, c, M, k, n, d, P, S, h, T, u, b, t, w, v } from "./index-e9a35e78.js";
3
3
  import "react";
4
4
  const SELECTION_TYPE = distEs6.SELECTION_TYPE;
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e113c88f.js";
1
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
2
2
  import "react";
3
3
  const dctZigZag = new Int32Array([
4
4
  0,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-e113c88f.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-e9a35e78.js";
3
3
  import "react";
4
4
  var LercDecode = { exports: {} };
5
5
  (function(module) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e113c88f.js";
1
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
2
2
  import "react";
3
3
  const MIN_BITS = 9;
4
4
  const CLEAR_CODE = 256;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e113c88f.js";
1
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
2
2
  import "react";
3
3
  class PackbitsDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e113c88f.js";
1
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
2
2
  import "react";
3
3
  class RawDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-e113c88f.js";
1
+ import { B as BaseDecoder } from "./index-e9a35e78.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionLayer.d.ts","sourceRoot":"","sources":["../src/SelectionLayer.js"],"names":[],"mappings":"AAqEA;IACE,8CAqEC;IAED,qBAMC;IAED,uCAmDC;CACF;;;;;;qCA7LoC,mBAAmB;;;IAmB5C,0BAAQ"}
1
+ {"version":3,"file":"SelectionLayer.d.ts","sourceRoot":"","sources":["../src/SelectionLayer.js"],"names":[],"mappings":"AAqEA;IACE,8CAsEC;IAED,qBAMC;IAED,uCAmDC;CACF;;;;;;qCA9LoC,mBAAmB;;;IAmB5C,0BAAQ"}
@@ -95,11 +95,15 @@ export default class SelectionLayer extends CompositeLayer {
95
95
  // This node made it past the above return statement, so it must either
96
96
  // contain, be within, or overlap with the selected polygon.
97
97
  // Check if this is a leaf node.
98
- if (node.data
99
- && booleanPointInPolygon(turfPoint([].slice.call(getObsCoords(node.data))), selectedPolygon)) {
100
- // This node has data, so it is a leaf node representing one data point,
101
- // and we have verified that the point is in the selected polygon.
102
- pickingInfos.push(node.data);
98
+ if (node.data) {
99
+ let current = node;
100
+ while (current) {
101
+ const pointCoords = [].slice.call(getObsCoords(current.data));
102
+ if (booleanPointInPolygon(turfPoint(pointCoords), selectedPolygon)) {
103
+ pickingInfos.push(current.data);
104
+ }
105
+ current = current.next;
106
+ }
103
107
  }
104
108
  // Return false because we are not done.
105
109
  // We want to visit the children of this node.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/gl",
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": {
@@ -56,8 +56,8 @@
56
56
  "math.gl": "^3.5.6",
57
57
  "mathjs": "^9.2.0",
58
58
  "nebula.gl": "0.23.8",
59
- "@vitessce/utils": "3.5.10",
60
- "@vitessce/globals": "3.5.10"
59
+ "@vitessce/utils": "3.5.11",
60
+ "@vitessce/globals": "3.5.11"
61
61
  },
62
62
  "devDependencies": {
63
63
  "glsl-colormap": "^1.0.1"
@@ -120,14 +120,15 @@ export default class SelectionLayer extends CompositeLayer {
120
120
  // contain, be within, or overlap with the selected polygon.
121
121
 
122
122
  // Check if this is a leaf node.
123
- if (node.data
124
- && booleanPointInPolygon(
125
- turfPoint([].slice.call(getObsCoords(node.data))), selectedPolygon,
126
- )
127
- ) {
128
- // This node has data, so it is a leaf node representing one data point,
129
- // and we have verified that the point is in the selected polygon.
130
- pickingInfos.push(node.data);
123
+ if (node.data) {
124
+ let current = node;
125
+ while (current) {
126
+ const pointCoords = [].slice.call(getObsCoords(current.data));
127
+ if (booleanPointInPolygon(turfPoint(pointCoords), selectedPolygon)) {
128
+ pickingInfos.push(current.data);
129
+ }
130
+ current = current.next;
131
+ }
131
132
  }
132
133
 
133
134
  // Return false because we are not done.