@vitessce/gl 3.4.12 → 3.5.0

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-26b66e69.js";
2
+ import { B as BaseDecoder } from "./index-c65f0da2.js";
3
3
  import "react";
4
4
  class DeflateDecoder extends BaseDecoder {
5
5
  decodeBlock(buffer) {
@@ -71315,7 +71315,7 @@ keysShim.shim = function shimObjectKeys() {
71315
71315
  return Object.keys || keysShim;
71316
71316
  };
71317
71317
  var objectKeys$1 = keysShim;
71318
- var shams$2 = function hasSymbols() {
71318
+ var shams$1 = function hasSymbols() {
71319
71319
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
71320
71320
  return false;
71321
71321
  }
@@ -71360,9 +71360,9 @@ var shams$2 = function hasSymbols() {
71360
71360
  }
71361
71361
  return true;
71362
71362
  };
71363
- var hasSymbols$4 = shams$2;
71364
- var shams$1 = function hasToStringTagShams() {
71365
- return hasSymbols$4() && !!Symbol.toStringTag;
71363
+ var hasSymbols$3 = shams$1;
71364
+ var shams = function hasToStringTagShams() {
71365
+ return hasSymbols$3() && !!Symbol.toStringTag;
71366
71366
  };
71367
71367
  var esErrors = Error;
71368
71368
  var _eval = EvalError;
@@ -71372,8 +71372,8 @@ var syntax = SyntaxError;
71372
71372
  var type = TypeError;
71373
71373
  var uri = URIError;
71374
71374
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
71375
- var hasSymbolSham = shams$2;
71376
- var hasSymbols$3 = function hasNativeSymbols() {
71375
+ var hasSymbolSham = shams$1;
71376
+ var hasSymbols$2 = function hasNativeSymbols() {
71377
71377
  if (typeof origSymbol !== "function") {
71378
71378
  return false;
71379
71379
  }
@@ -71389,11 +71389,12 @@ var hasSymbols$3 = function hasNativeSymbols() {
71389
71389
  return hasSymbolSham();
71390
71390
  };
71391
71391
  var test = {
71392
+ __proto__: null,
71392
71393
  foo: {}
71393
71394
  };
71394
71395
  var $Object$1 = Object;
71395
71396
  var hasProto$1 = function hasProto() {
71396
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object$1);
71397
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object$1);
71397
71398
  };
71398
71399
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
71399
71400
  var toStr$2 = Object.prototype.toString;
@@ -71508,7 +71509,7 @@ var ThrowTypeError = $gOPD$2 ? function() {
71508
71509
  }
71509
71510
  }
71510
71511
  }() : throwTypeError;
71511
- var hasSymbols$2 = hasSymbols$3();
71512
+ var hasSymbols$1 = hasSymbols$2();
71512
71513
  var hasProto2 = hasProto$1();
71513
71514
  var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
71514
71515
  return x2.__proto__;
@@ -71520,7 +71521,7 @@ var INTRINSICS = {
71520
71521
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
71521
71522
  "%Array%": Array,
71522
71523
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
71523
- "%ArrayIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
71524
+ "%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
71524
71525
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
71525
71526
  "%AsyncFunction%": needsEval,
71526
71527
  "%AsyncGenerator%": needsEval,
@@ -71551,10 +71552,10 @@ var INTRINSICS = {
71551
71552
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
71552
71553
  "%isFinite%": isFinite,
71553
71554
  "%isNaN%": isNaN,
71554
- "%IteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
71555
+ "%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
71555
71556
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
71556
71557
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
71557
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
71558
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
71558
71559
  "%Math%": Math,
71559
71560
  "%Number%": Number,
71560
71561
  "%Object%": Object,
@@ -71567,11 +71568,11 @@ var INTRINSICS = {
71567
71568
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
71568
71569
  "%RegExp%": RegExp,
71569
71570
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
71570
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
71571
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
71571
71572
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
71572
71573
  "%String%": String,
71573
- "%StringIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
71574
- "%Symbol%": hasSymbols$2 ? Symbol : undefined$1,
71574
+ "%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
71575
+ "%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
71575
71576
  "%SyntaxError%": $SyntaxError$1,
71576
71577
  "%ThrowTypeError%": ThrowTypeError,
71577
71578
  "%TypedArray%": TypedArray$1,
@@ -71940,7 +71941,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
71940
71941
  }
71941
71942
  return intrinsic;
71942
71943
  };
71943
- var hasToStringTag$2 = shams$1();
71944
+ var hasToStringTag$2 = shams();
71944
71945
  var callBound$1 = callBound$2;
71945
71946
  var $toString$1 = callBound$1("Object.prototype.toString");
71946
71947
  var isStandardArguments = function isArguments2(value) {
@@ -71985,7 +71986,7 @@ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineB
71985
71986
  };
71986
71987
  var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
71987
71988
  var keys2 = objectKeys$1;
71988
- var hasSymbols$1 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
71989
+ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
71989
71990
  var toStr$1 = Object.prototype.toString;
71990
71991
  var concat = Array.prototype.concat;
71991
71992
  var defineDataProperty2 = defineDataProperty$1;
@@ -72012,7 +72013,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
72012
72013
  var defineProperties = function(object2, map2) {
72013
72014
  var predicates = arguments.length > 2 ? arguments[2] : {};
72014
72015
  var props = keys2(map2);
72015
- if (hasSymbols$1) {
72016
+ if (hasSymbols2) {
72016
72017
  props = concat.call(props, Object.getOwnPropertySymbols(map2));
72017
72018
  }
72018
72019
  for (var i2 = 0; i2 < props.length; i2 += 1) {
@@ -72063,10 +72064,6 @@ define$2(polyfill$1, {
72063
72064
  shim: shim$2
72064
72065
  });
72065
72066
  var objectIs = polyfill$1;
72066
- var hasSymbols2 = shams$2;
72067
- var shams = function hasToStringTagShams2() {
72068
- return hasSymbols2() && !!Symbol.toStringTag;
72069
- };
72070
72067
  var callBound = callBound$2;
72071
72068
  var hasToStringTag$1 = shams();
72072
72069
  var has;
@@ -72273,7 +72270,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
72273
72270
  };
72274
72271
  var toStr = Object.prototype.toString;
72275
72272
  var dateClass = "[object Date]";
72276
- var hasToStringTag = shams$1();
72273
+ var hasToStringTag = shams();
72277
72274
  var isDateObject = function isDateObject2(value) {
72278
72275
  if (typeof value !== "object" || value === null) {
72279
72276
  return false;
@@ -106285,16 +106282,16 @@ async function getDecoder(fileDirectory) {
106285
106282
  const Decoder = await importFn();
106286
106283
  return new Decoder(fileDirectory);
106287
106284
  }
106288
- addDecoder([void 0, 1], () => import("./raw-8583411a.js").then((m) => m.default));
106289
- addDecoder(5, () => import("./lzw-6cfce58b.js").then((m) => m.default));
106285
+ addDecoder([void 0, 1], () => import("./raw-3d70ff2e.js").then((m) => m.default));
106286
+ addDecoder(5, () => import("./lzw-4c807d51.js").then((m) => m.default));
106290
106287
  addDecoder(6, () => {
106291
106288
  throw new Error("old style JPEG compression is not supported.");
106292
106289
  });
106293
- addDecoder(7, () => import("./jpeg-eea7bce6.js").then((m) => m.default));
106294
- addDecoder([8, 32946], () => import("./deflate-6ab1a341.js").then((m) => m.default));
106295
- addDecoder(32773, () => import("./packbits-d7300d83.js").then((m) => m.default));
106296
- addDecoder(34887, () => import("./lerc-f773588e.js").then((m) => m.default));
106297
- addDecoder(50001, () => import("./webimage-7314a2d9.js").then((m) => m.default));
106290
+ addDecoder(7, () => import("./jpeg-7428d0cc.js").then((m) => m.default));
106291
+ addDecoder([8, 32946], () => import("./deflate-5f6bf017.js").then((m) => m.default));
106292
+ addDecoder(32773, () => import("./packbits-865e9a4b.js").then((m) => m.default));
106293
+ addDecoder(34887, () => import("./lerc-70c5067b.js").then((m) => m.default));
106294
+ addDecoder(50001, () => import("./webimage-baf0ad55.js").then((m) => m.default));
106298
106295
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
106299
106296
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
106300
106297
  }
@@ -123933,6 +123930,12 @@ const deck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
123933
123930
  ScatterplotLayer,
123934
123931
  TextLayer
123935
123932
  }, Symbol.toStringTag, { value: "Module" }));
123933
+ const math = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
123934
+ __proto__: null,
123935
+ Matrix4,
123936
+ Vector2,
123937
+ Vector3
123938
+ }, Symbol.toStringTag, { value: "Module" }));
123936
123939
  export {
123937
123940
  AXIS_MARGIN as A,
123938
123941
  BaseDecoder as B,
@@ -123965,5 +123968,6 @@ export {
123965
123968
  AXIS_MAX_SIZE as r,
123966
123969
  luma as s,
123967
123970
  deck as t,
123971
+ math as u,
123968
123972
  viv as v
123969
123973
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as distEs6 } from "./index-26b66e69.js";
2
- import { o, n, A, r, q, p, i, j, C, l, D, G, e, H, c, M, k, m, d, P, S, h, T, t, b, s, v } from "./index-26b66e69.js";
1
+ import { f as distEs6 } from "./index-c65f0da2.js";
2
+ import { o, n, A, r, q, p, i, j, C, l, D, G, e, H, c, M, k, m, d, P, S, h, T, t, b, s, u, v } from "./index-c65f0da2.js";
3
3
  import "react";
4
4
  const SELECTION_TYPE = distEs6.SELECTION_TYPE;
5
5
  export {
@@ -30,5 +30,6 @@ export {
30
30
  t as deck,
31
31
  b as getSelectionLayer,
32
32
  s as luma,
33
+ u as math,
33
34
  v as viv
34
35
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-26b66e69.js";
1
+ import { B as BaseDecoder } from "./index-c65f0da2.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-26b66e69.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-c65f0da2.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-26b66e69.js";
1
+ import { B as BaseDecoder } from "./index-c65f0da2.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-26b66e69.js";
1
+ import { B as BaseDecoder } from "./index-c65f0da2.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-26b66e69.js";
1
+ import { B as BaseDecoder } from "./index-c65f0da2.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-26b66e69.js";
1
+ import { B as BaseDecoder } from "./index-c65f0da2.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -10,6 +10,7 @@ export { default as BitmaskLayerBeta } from "./BitmaskLayerBeta.js";
10
10
  export * as viv from "./viv.js";
11
11
  export * as luma from "./luma.js";
12
12
  export * as deck from "./deck.js";
13
+ export * as math from "./math.js";
13
14
  export { GLSL_COLORMAPS, GLSL_COLORMAP_DEFAULT, DEFAULT_GL_OPTIONS, SELECTION_TYPE } from "./constants.js";
14
15
  export { TILE_SIZE, MAX_ROW_AGG, MIN_ROW_AGG, COLOR_BAR_SIZE, AXIS_MARGIN, DATA_TEXTURE_SIZE, PIXELATED_TEXTURE_PARAMETERS, AXIS_LABEL_TEXT_SIZE, AXIS_FONT_FAMILY, AXIS_PADDING, AXIS_MIN_SIZE, AXIS_MAX_SIZE } from "./heatmap-constants.js";
15
16
  //# sourceMappingURL=index.d.ts.map
package/dist-tsc/index.js CHANGED
@@ -18,3 +18,5 @@ export * as viv from './viv.js';
18
18
  export * as luma from './luma.js';
19
19
  // eslint-disable-next-line react-refresh/only-export-components
20
20
  export * as deck from './deck.js';
21
+ // eslint-disable-next-line react-refresh/only-export-components
22
+ export * as math from './math.js';
@@ -0,0 +1,2 @@
1
+ export { Vector2, Vector3, Matrix4 } from "@math.gl/core";
2
+ //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../src/math.js"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { Vector2, Vector3, Matrix4, } from '@math.gl/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitessce/gl",
3
- "version": "3.4.12",
4
- "author": "Gehlenborg Lab",
3
+ "version": "3.5.0",
4
+ "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
7
7
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  "math.gl": "^3.5.6",
53
53
  "mathjs": "^9.2.0",
54
54
  "nebula.gl": "0.23.8",
55
- "@vitessce/utils": "3.4.12"
55
+ "@vitessce/utils": "3.5.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "glsl-colormap": "^1.0.1"
package/src/index.js CHANGED
@@ -36,3 +36,5 @@ export * as viv from './viv.js';
36
36
  export * as luma from './luma.js';
37
37
  // eslint-disable-next-line react-refresh/only-export-components
38
38
  export * as deck from './deck.js';
39
+ // eslint-disable-next-line react-refresh/only-export-components
40
+ export * as math from './math.js';
package/src/math.js ADDED
@@ -0,0 +1,5 @@
1
+ export {
2
+ Vector2,
3
+ Vector3,
4
+ Matrix4,
5
+ } from '@math.gl/core';