@vitessce/vega 3.1.3 → 3.2.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.
Files changed (2) hide show
  1. package/dist/index.js +270 -161
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1158,10 +1158,10 @@ function compare$9(fields, orders, opt) {
1158
1158
  });
1159
1159
  return get3.length === 0 ? null : accessor(gen(get3, ord), Object.keys(fmap));
1160
1160
  }
1161
- const ascending$3 = (u2, v) => (u2 < v || u2 == null) && v != null ? -1 : (u2 > v || v == null) && u2 != null ? 1 : (v = v instanceof Date ? +v : v, u2 = u2 instanceof Date ? +u2 : u2) !== u2 && v === v ? -1 : v !== v && u2 === u2 ? 1 : 0;
1161
+ const ascending$4 = (u2, v) => (u2 < v || u2 == null) && v != null ? -1 : (u2 > v || v == null) && u2 != null ? 1 : (v = v instanceof Date ? +v : v, u2 = u2 instanceof Date ? +u2 : u2) !== u2 && v === v ? -1 : v !== v && u2 === u2 ? 1 : 0;
1162
1162
  const comparator$1 = (fields, orders) => fields.length === 1 ? compare1(fields[0], orders[0]) : compareN(fields, orders, fields.length);
1163
1163
  const compare1 = (field2, order) => function(a2, b2) {
1164
- return ascending$3(field2(a2), field2(b2)) * order;
1164
+ return ascending$4(field2(a2), field2(b2)) * order;
1165
1165
  };
1166
1166
  const compareN = (fields, orders, n) => {
1167
1167
  orders.push(0);
@@ -1169,7 +1169,7 @@ const compareN = (fields, orders, n) => {
1169
1169
  let f, c2 = 0, i = -1;
1170
1170
  while (c2 === 0 && ++i < n) {
1171
1171
  f = fields[i];
1172
- c2 = ascending$3(f(a2), f(b2));
1172
+ c2 = ascending$4(f(a2), f(b2));
1173
1173
  }
1174
1174
  return c2 * orders[i];
1175
1175
  };
@@ -7775,20 +7775,20 @@ function extractArcs(topology, object2, filter2) {
7775
7775
  });
7776
7776
  return arcs;
7777
7777
  }
7778
- function ascending$2(a2, b2) {
7778
+ function ascending$3(a2, b2) {
7779
7779
  return a2 == null || b2 == null ? NaN : a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
7780
7780
  }
7781
7781
  function descending$1(a2, b2) {
7782
7782
  return a2 == null || b2 == null ? NaN : b2 < a2 ? -1 : b2 > a2 ? 1 : b2 >= a2 ? 0 : NaN;
7783
7783
  }
7784
- function bisector$1(f) {
7784
+ function bisector$2(f) {
7785
7785
  let compare12, compare2, delta;
7786
7786
  if (f.length !== 2) {
7787
- compare12 = ascending$2;
7788
- compare2 = (d, x2) => ascending$2(f(d), x2);
7787
+ compare12 = ascending$3;
7788
+ compare2 = (d, x2) => ascending$3(f(d), x2);
7789
7789
  delta = (d, x2) => f(d) - x2;
7790
7790
  } else {
7791
- compare12 = f === ascending$2 || f === descending$1 ? f : zero$3;
7791
+ compare12 = f === ascending$3 || f === descending$1 ? f : zero$3;
7792
7792
  compare2 = f;
7793
7793
  delta = f;
7794
7794
  }
@@ -7829,7 +7829,7 @@ function bisector$1(f) {
7829
7829
  function zero$3() {
7830
7830
  return 0;
7831
7831
  }
7832
- function number$6(x2) {
7832
+ function number$7(x2) {
7833
7833
  return x2 === null ? NaN : +x2;
7834
7834
  }
7835
7835
  function* numbers$2(values2, valueof) {
@@ -7848,11 +7848,11 @@ function* numbers$2(values2, valueof) {
7848
7848
  }
7849
7849
  }
7850
7850
  }
7851
- const ascendingBisect = bisector$1(ascending$2);
7852
- const bisectRight$1 = ascendingBisect.right;
7853
- const bisectLeft$1 = ascendingBisect.left;
7854
- bisector$1(number$6).center;
7855
- const bisect$1 = bisectRight$1;
7851
+ const ascendingBisect$1 = bisector$2(ascending$3);
7852
+ const bisectRight$2 = ascendingBisect$1.right;
7853
+ const bisectLeft$1 = ascendingBisect$1.left;
7854
+ bisector$2(number$7).center;
7855
+ const bisect$2 = bisectRight$2;
7856
7856
  function variance(values2, valueof) {
7857
7857
  let count2 = 0;
7858
7858
  let delta;
@@ -7883,70 +7883,8 @@ function deviation(values2, valueof) {
7883
7883
  const v = variance(values2, valueof);
7884
7884
  return v ? Math.sqrt(v) : v;
7885
7885
  }
7886
- class Adder {
7887
- constructor() {
7888
- this._partials = new Float64Array(32);
7889
- this._n = 0;
7890
- }
7891
- add(x2) {
7892
- const p = this._partials;
7893
- let i = 0;
7894
- for (let j = 0; j < this._n && j < 32; j++) {
7895
- const y2 = p[j], hi = x2 + y2, lo = Math.abs(x2) < Math.abs(y2) ? x2 - (hi - y2) : y2 - (hi - x2);
7896
- if (lo)
7897
- p[i++] = lo;
7898
- x2 = hi;
7899
- }
7900
- p[i] = x2;
7901
- this._n = i + 1;
7902
- return this;
7903
- }
7904
- valueOf() {
7905
- const p = this._partials;
7906
- let n = this._n, x2, y2, lo, hi = 0;
7907
- if (n > 0) {
7908
- hi = p[--n];
7909
- while (n > 0) {
7910
- x2 = hi;
7911
- y2 = p[--n];
7912
- hi = x2 + y2;
7913
- lo = y2 - (hi - x2);
7914
- if (lo)
7915
- break;
7916
- }
7917
- if (n > 0 && (lo < 0 && p[n - 1] < 0 || lo > 0 && p[n - 1] > 0)) {
7918
- y2 = lo * 2;
7919
- x2 = hi + y2;
7920
- if (y2 == x2 - hi)
7921
- hi = x2;
7922
- }
7923
- }
7924
- return hi;
7925
- }
7926
- }
7927
- class InternMap extends Map {
7928
- constructor(entries2, key = keyof) {
7929
- super();
7930
- Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
7931
- if (entries2 != null)
7932
- for (const [key2, value2] of entries2)
7933
- this.set(key2, value2);
7934
- }
7935
- get(key) {
7936
- return super.get(intern_get(this, key));
7937
- }
7938
- has(key) {
7939
- return super.has(intern_get(this, key));
7940
- }
7941
- set(key, value2) {
7942
- return super.set(intern_set(this, key), value2);
7943
- }
7944
- delete(key) {
7945
- return super.delete(intern_delete(this, key));
7946
- }
7947
- }
7948
7886
  class InternSet extends Set {
7949
- constructor(values2, key = keyof) {
7887
+ constructor(values2, key = keyof$1) {
7950
7888
  super();
7951
7889
  Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
7952
7890
  if (values2 != null)
@@ -7954,27 +7892,27 @@ class InternSet extends Set {
7954
7892
  this.add(value2);
7955
7893
  }
7956
7894
  has(value2) {
7957
- return super.has(intern_get(this, value2));
7895
+ return super.has(intern_get$1(this, value2));
7958
7896
  }
7959
7897
  add(value2) {
7960
- return super.add(intern_set(this, value2));
7898
+ return super.add(intern_set$1(this, value2));
7961
7899
  }
7962
7900
  delete(value2) {
7963
- return super.delete(intern_delete(this, value2));
7901
+ return super.delete(intern_delete$1(this, value2));
7964
7902
  }
7965
7903
  }
7966
- function intern_get({ _intern, _key }, value2) {
7904
+ function intern_get$1({ _intern, _key }, value2) {
7967
7905
  const key = _key(value2);
7968
7906
  return _intern.has(key) ? _intern.get(key) : value2;
7969
7907
  }
7970
- function intern_set({ _intern, _key }, value2) {
7908
+ function intern_set$1({ _intern, _key }, value2) {
7971
7909
  const key = _key(value2);
7972
7910
  if (_intern.has(key))
7973
7911
  return _intern.get(key);
7974
7912
  _intern.set(key, value2);
7975
7913
  return value2;
7976
7914
  }
7977
- function intern_delete({ _intern, _key }, value2) {
7915
+ function intern_delete$1({ _intern, _key }, value2) {
7978
7916
  const key = _key(value2);
7979
7917
  if (_intern.has(key)) {
7980
7918
  value2 = _intern.get(key);
@@ -7982,14 +7920,14 @@ function intern_delete({ _intern, _key }, value2) {
7982
7920
  }
7983
7921
  return value2;
7984
7922
  }
7985
- function keyof(value2) {
7923
+ function keyof$1(value2) {
7986
7924
  return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
7987
7925
  }
7988
7926
  function permute(source2, keys2) {
7989
7927
  return Array.from(keys2, (key) => source2[key]);
7990
7928
  }
7991
- function compareDefined(compare2 = ascending$2) {
7992
- if (compare2 === ascending$2)
7929
+ function compareDefined(compare2 = ascending$3) {
7930
+ if (compare2 === ascending$3)
7993
7931
  return ascendingDefined;
7994
7932
  if (typeof compare2 !== "function")
7995
7933
  throw new TypeError("compare is not a function");
@@ -8003,51 +7941,14 @@ function compareDefined(compare2 = ascending$2) {
8003
7941
  function ascendingDefined(a2, b2) {
8004
7942
  return (a2 == null || !(a2 >= a2)) - (b2 == null || !(b2 >= b2)) || (a2 < b2 ? -1 : a2 > b2 ? 1 : 0);
8005
7943
  }
8006
- var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
8007
- function ticks(start, stop3, count2) {
8008
- var reverse2, i = -1, n, ticks2, step;
8009
- stop3 = +stop3, start = +start, count2 = +count2;
8010
- if (start === stop3 && count2 > 0)
8011
- return [start];
8012
- if (reverse2 = stop3 < start)
8013
- n = start, start = stop3, stop3 = n;
8014
- if ((step = tickIncrement(start, stop3, count2)) === 0 || !isFinite(step))
8015
- return [];
8016
- if (step > 0) {
8017
- let r0 = Math.round(start / step), r1 = Math.round(stop3 / step);
8018
- if (r0 * step < start)
8019
- ++r0;
8020
- if (r1 * step > stop3)
8021
- --r1;
8022
- ticks2 = new Array(n = r1 - r0 + 1);
8023
- while (++i < n)
8024
- ticks2[i] = (r0 + i) * step;
8025
- } else {
8026
- step = -step;
8027
- let r0 = Math.round(start * step), r1 = Math.round(stop3 * step);
8028
- if (r0 / step < start)
8029
- ++r0;
8030
- if (r1 / step > stop3)
8031
- --r1;
8032
- ticks2 = new Array(n = r1 - r0 + 1);
8033
- while (++i < n)
8034
- ticks2[i] = (r0 + i) / step;
8035
- }
8036
- if (reverse2)
8037
- ticks2.reverse();
8038
- return ticks2;
8039
- }
8040
- function tickIncrement(start, stop3, count2) {
8041
- var step = (stop3 - start) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error2 = step / Math.pow(10, power);
8042
- return power >= 0 ? (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1);
8043
- }
8044
- function tickStep(start, stop3, count2) {
7944
+ var e10$1 = Math.sqrt(50), e5$1 = Math.sqrt(10), e2$1 = Math.sqrt(2);
7945
+ function tickStep$1(start, stop3, count2) {
8045
7946
  var step0 = Math.abs(stop3 - start) / Math.max(0, count2), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error2 = step0 / step1;
8046
- if (error2 >= e10)
7947
+ if (error2 >= e10$1)
8047
7948
  step1 *= 10;
8048
- else if (error2 >= e5)
7949
+ else if (error2 >= e5$1)
8049
7950
  step1 *= 5;
8050
- else if (error2 >= e2)
7951
+ else if (error2 >= e2$1)
8051
7952
  step1 *= 2;
8052
7953
  return stop3 < start ? -step1 : step1;
8053
7954
  }
@@ -8140,7 +8041,7 @@ function quantile$1(values2, p, valueof) {
8140
8041
  var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = max$2(quickselect(values2, i0).subarray(0, i0 + 1)), value1 = min$2(values2.subarray(i0 + 1));
8141
8042
  return value0 + (value1 - value0) * (i - i0);
8142
8043
  }
8143
- function quantileSorted(values2, p, valueof = number$6) {
8044
+ function quantileSorted$1(values2, p, valueof = number$7) {
8144
8045
  if (!(n = values2.length))
8145
8046
  return;
8146
8047
  if ((p = +p) <= 0 || n < 2)
@@ -8173,15 +8074,7 @@ function mean(values2, valueof) {
8173
8074
  function median(values2, valueof) {
8174
8075
  return quantile$1(values2, 0.5, valueof);
8175
8076
  }
8176
- function* flatten(arrays) {
8177
- for (const array2 of arrays) {
8178
- yield* array2;
8179
- }
8180
- }
8181
- function merge$2(arrays) {
8182
- return Array.from(flatten(arrays));
8183
- }
8184
- function range$4(start, stop3, step) {
8077
+ function range$5(start, stop3, step) {
8185
8078
  start = +start, stop3 = +stop3, step = (n = arguments.length) < 2 ? (stop3 = start, start = 0, 1) : n < 3 ? 1 : +step;
8186
8079
  var i = -1, n = Math.max(0, Math.ceil((stop3 - start) / step)) | 0, range2 = new Array(n);
8187
8080
  while (++i < n) {
@@ -8717,6 +8610,222 @@ utcYear.every = function(k) {
8717
8610
  };
8718
8611
  const utcYear$1 = utcYear;
8719
8612
  utcYear.range;
8613
+ function ascending$2(a2, b2) {
8614
+ return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
8615
+ }
8616
+ function bisector$1(f) {
8617
+ let delta = f;
8618
+ let compare2 = f;
8619
+ if (f.length === 1) {
8620
+ delta = (d, x2) => f(d) - x2;
8621
+ compare2 = ascendingComparator(f);
8622
+ }
8623
+ function left(a2, x2, lo, hi) {
8624
+ if (lo == null)
8625
+ lo = 0;
8626
+ if (hi == null)
8627
+ hi = a2.length;
8628
+ while (lo < hi) {
8629
+ const mid = lo + hi >>> 1;
8630
+ if (compare2(a2[mid], x2) < 0)
8631
+ lo = mid + 1;
8632
+ else
8633
+ hi = mid;
8634
+ }
8635
+ return lo;
8636
+ }
8637
+ function right(a2, x2, lo, hi) {
8638
+ if (lo == null)
8639
+ lo = 0;
8640
+ if (hi == null)
8641
+ hi = a2.length;
8642
+ while (lo < hi) {
8643
+ const mid = lo + hi >>> 1;
8644
+ if (compare2(a2[mid], x2) > 0)
8645
+ hi = mid;
8646
+ else
8647
+ lo = mid + 1;
8648
+ }
8649
+ return lo;
8650
+ }
8651
+ function center(a2, x2, lo, hi) {
8652
+ if (lo == null)
8653
+ lo = 0;
8654
+ if (hi == null)
8655
+ hi = a2.length;
8656
+ const i = left(a2, x2, lo, hi - 1);
8657
+ return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i;
8658
+ }
8659
+ return { left, center, right };
8660
+ }
8661
+ function ascendingComparator(f) {
8662
+ return (d, x2) => ascending$2(f(d), x2);
8663
+ }
8664
+ function number$6(x2) {
8665
+ return x2 === null ? NaN : +x2;
8666
+ }
8667
+ const ascendingBisect = bisector$1(ascending$2);
8668
+ const bisectRight$1 = ascendingBisect.right;
8669
+ bisector$1(number$6).center;
8670
+ const bisect$1 = bisectRight$1;
8671
+ class Adder {
8672
+ constructor() {
8673
+ this._partials = new Float64Array(32);
8674
+ this._n = 0;
8675
+ }
8676
+ add(x2) {
8677
+ const p = this._partials;
8678
+ let i = 0;
8679
+ for (let j = 0; j < this._n && j < 32; j++) {
8680
+ const y2 = p[j], hi = x2 + y2, lo = Math.abs(x2) < Math.abs(y2) ? x2 - (hi - y2) : y2 - (hi - x2);
8681
+ if (lo)
8682
+ p[i++] = lo;
8683
+ x2 = hi;
8684
+ }
8685
+ p[i] = x2;
8686
+ this._n = i + 1;
8687
+ return this;
8688
+ }
8689
+ valueOf() {
8690
+ const p = this._partials;
8691
+ let n = this._n, x2, y2, lo, hi = 0;
8692
+ if (n > 0) {
8693
+ hi = p[--n];
8694
+ while (n > 0) {
8695
+ x2 = hi;
8696
+ y2 = p[--n];
8697
+ hi = x2 + y2;
8698
+ lo = y2 - (hi - x2);
8699
+ if (lo)
8700
+ break;
8701
+ }
8702
+ if (n > 0 && (lo < 0 && p[n - 1] < 0 || lo > 0 && p[n - 1] > 0)) {
8703
+ y2 = lo * 2;
8704
+ x2 = hi + y2;
8705
+ if (y2 == x2 - hi)
8706
+ hi = x2;
8707
+ }
8708
+ }
8709
+ return hi;
8710
+ }
8711
+ }
8712
+ class InternMap extends Map {
8713
+ constructor(entries2, key = keyof) {
8714
+ super();
8715
+ Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
8716
+ if (entries2 != null)
8717
+ for (const [key2, value2] of entries2)
8718
+ this.set(key2, value2);
8719
+ }
8720
+ get(key) {
8721
+ return super.get(intern_get(this, key));
8722
+ }
8723
+ has(key) {
8724
+ return super.has(intern_get(this, key));
8725
+ }
8726
+ set(key, value2) {
8727
+ return super.set(intern_set(this, key), value2);
8728
+ }
8729
+ delete(key) {
8730
+ return super.delete(intern_delete(this, key));
8731
+ }
8732
+ }
8733
+ function intern_get({ _intern, _key }, value2) {
8734
+ const key = _key(value2);
8735
+ return _intern.has(key) ? _intern.get(key) : value2;
8736
+ }
8737
+ function intern_set({ _intern, _key }, value2) {
8738
+ const key = _key(value2);
8739
+ if (_intern.has(key))
8740
+ return _intern.get(key);
8741
+ _intern.set(key, value2);
8742
+ return value2;
8743
+ }
8744
+ function intern_delete({ _intern, _key }, value2) {
8745
+ const key = _key(value2);
8746
+ if (_intern.has(key)) {
8747
+ value2 = _intern.get(value2);
8748
+ _intern.delete(key);
8749
+ }
8750
+ return value2;
8751
+ }
8752
+ function keyof(value2) {
8753
+ return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
8754
+ }
8755
+ var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
8756
+ function ticks(start, stop3, count2) {
8757
+ var reverse2, i = -1, n, ticks2, step;
8758
+ stop3 = +stop3, start = +start, count2 = +count2;
8759
+ if (start === stop3 && count2 > 0)
8760
+ return [start];
8761
+ if (reverse2 = stop3 < start)
8762
+ n = start, start = stop3, stop3 = n;
8763
+ if ((step = tickIncrement(start, stop3, count2)) === 0 || !isFinite(step))
8764
+ return [];
8765
+ if (step > 0) {
8766
+ let r0 = Math.round(start / step), r1 = Math.round(stop3 / step);
8767
+ if (r0 * step < start)
8768
+ ++r0;
8769
+ if (r1 * step > stop3)
8770
+ --r1;
8771
+ ticks2 = new Array(n = r1 - r0 + 1);
8772
+ while (++i < n)
8773
+ ticks2[i] = (r0 + i) * step;
8774
+ } else {
8775
+ step = -step;
8776
+ let r0 = Math.round(start * step), r1 = Math.round(stop3 * step);
8777
+ if (r0 / step < start)
8778
+ ++r0;
8779
+ if (r1 / step > stop3)
8780
+ --r1;
8781
+ ticks2 = new Array(n = r1 - r0 + 1);
8782
+ while (++i < n)
8783
+ ticks2[i] = (r0 + i) / step;
8784
+ }
8785
+ if (reverse2)
8786
+ ticks2.reverse();
8787
+ return ticks2;
8788
+ }
8789
+ function tickIncrement(start, stop3, count2) {
8790
+ var step = (stop3 - start) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error2 = step / Math.pow(10, power);
8791
+ return power >= 0 ? (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1);
8792
+ }
8793
+ function tickStep(start, stop3, count2) {
8794
+ var step0 = Math.abs(stop3 - start) / Math.max(0, count2), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error2 = step0 / step1;
8795
+ if (error2 >= e10)
8796
+ step1 *= 10;
8797
+ else if (error2 >= e5)
8798
+ step1 *= 5;
8799
+ else if (error2 >= e2)
8800
+ step1 *= 2;
8801
+ return stop3 < start ? -step1 : step1;
8802
+ }
8803
+ function quantileSorted(values2, p, valueof = number$6) {
8804
+ if (!(n = values2.length))
8805
+ return;
8806
+ if ((p = +p) <= 0 || n < 2)
8807
+ return +valueof(values2[0], 0, values2);
8808
+ if (p >= 1)
8809
+ return +valueof(values2[n - 1], n - 1, values2);
8810
+ var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values2[i0], i0, values2), value1 = +valueof(values2[i0 + 1], i0 + 1, values2);
8811
+ return value0 + (value1 - value0) * (i - i0);
8812
+ }
8813
+ function* flatten(arrays) {
8814
+ for (const array2 of arrays) {
8815
+ yield* array2;
8816
+ }
8817
+ }
8818
+ function merge$2(arrays) {
8819
+ return Array.from(flatten(arrays));
8820
+ }
8821
+ function range$4(start, stop3, step) {
8822
+ start = +start, stop3 = +stop3, step = (n = arguments.length) < 2 ? (stop3 = start, start = 0, 1) : n < 3 ? 1 : +step;
8823
+ var i = -1, n = Math.max(0, Math.ceil((stop3 - start) / step)) | 0, range2 = new Array(n);
8824
+ while (++i < n) {
8825
+ range2[i] = start + i * step;
8826
+ }
8827
+ return range2;
8828
+ }
8720
8829
  function ticker(year2, month2, week2, day2, hour2, minute2) {
8721
8830
  const tickIntervals = [
8722
8831
  [utcSecond, 1, durationSecond$1],
@@ -8995,16 +9104,16 @@ const Milli = [YEAR, MONTH, DATE, HOURS, MINUTES, SECONDS, MILLISECONDS], Second
8995
9104
  const intervals = [[Seconds, 1, durationSecond], [Seconds, 5, 5 * durationSecond], [Seconds, 15, 15 * durationSecond], [Seconds, 30, 30 * durationSecond], [Minutes, 1, durationMinute], [Minutes, 5, 5 * durationMinute], [Minutes, 15, 15 * durationMinute], [Minutes, 30, 30 * durationMinute], [Hours, 1, durationHour], [Hours, 3, 3 * durationHour], [Hours, 6, 6 * durationHour], [Hours, 12, 12 * durationHour], [Day, 1, durationDay], [Week, 1, durationWeek], [Month, 1, durationMonth], [Month, 3, 3 * durationMonth], [Year, 1, durationYear]];
8996
9105
  function bin$2(opt) {
8997
9106
  const ext = opt.extent, max2 = opt.maxbins || 40, target2 = Math.abs(span(ext)) / max2;
8998
- let i = bisector$1((i2) => i2[2]).right(intervals, target2), units2, step;
9107
+ let i = bisector$2((i2) => i2[2]).right(intervals, target2), units2, step;
8999
9108
  if (i === intervals.length) {
9000
- units2 = Year, step = tickStep(ext[0] / durationYear, ext[1] / durationYear, max2);
9109
+ units2 = Year, step = tickStep$1(ext[0] / durationYear, ext[1] / durationYear, max2);
9001
9110
  } else if (i) {
9002
9111
  i = intervals[target2 / intervals[i - 1][2] < intervals[i][2] / target2 ? i - 1 : i];
9003
9112
  units2 = i[0];
9004
9113
  step = i[1];
9005
9114
  } else {
9006
9115
  units2 = Milli;
9007
- step = Math.max(tickStep(ext[0], ext[1], max2), 1);
9116
+ step = Math.max(tickStep$1(ext[0], ext[1], max2), 1);
9008
9117
  }
9009
9118
  return {
9010
9119
  units: units2,
@@ -9643,7 +9752,7 @@ function numberLocale(locale2) {
9643
9752
  },
9644
9753
  formatSpan(start, stop3, count2, specifier) {
9645
9754
  specifier = formatSpecifier(specifier == null ? ",f" : specifier);
9646
- const step = tickStep(start, stop3, count2), value2 = Math.max(Math.abs(start), Math.abs(stop3));
9755
+ const step = tickStep$1(start, stop3, count2), value2 = Math.max(Math.abs(start), Math.abs(stop3));
9647
9756
  let precision;
9648
9757
  if (specifier.precision == null) {
9649
9758
  switch (specifier.type) {
@@ -11575,8 +11684,8 @@ function* numbers$1(values2, valueof) {
11575
11684
  }
11576
11685
  function quantiles(array2, p, f) {
11577
11686
  const values2 = Float64Array.from(numbers$1(array2, f));
11578
- values2.sort(ascending$2);
11579
- return p.map((_) => quantileSorted(values2, _));
11687
+ values2.sort(ascending$3);
11688
+ return p.map((_) => quantileSorted$1(values2, _));
11580
11689
  }
11581
11690
  function quartiles(array2, f) {
11582
11691
  return quantiles(array2, [0.25, 0.5, 0.75], f);
@@ -11637,7 +11746,7 @@ function bootstrapCI(array2, samples, alpha, f) {
11637
11746
  }
11638
11747
  mu[j] = a2 / n;
11639
11748
  }
11640
- mu.sort(ascending$2);
11749
+ mu.sort(ascending$3);
11641
11750
  return [quantile$1(mu, alpha / 2), quantile$1(mu, 1 - alpha / 2)];
11642
11751
  }
11643
11752
  function dotbin(array2, step, smooth, f) {
@@ -14545,7 +14654,7 @@ function pivotKeys(key, limit, pulse2) {
14545
14654
  list.push(k);
14546
14655
  }
14547
14656
  });
14548
- list.sort(ascending$3);
14657
+ list.sort(ascending$4);
14549
14658
  return limit ? list.slice(0, limit) : list;
14550
14659
  }
14551
14660
  function PreFacet$1(params2) {
@@ -14683,7 +14792,7 @@ inherits(Quantile$1, Transform, {
14683
14792
  out.source = this.value;
14684
14793
  return out;
14685
14794
  }
14686
- const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values2 = [], step = _.step || 0.01, p = _.probs || range$4(step / 2, 1 - EPSILON$2, step), n = p.length;
14795
+ const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values2 = [], step = _.step || 0.01, p = _.probs || range$5(step / 2, 1 - EPSILON$2, step), n = p.length;
14687
14796
  groups.forEach((g) => {
14688
14797
  const q = quantiles(g, p);
14689
14798
  for (let i = 0; i < n; ++i) {
@@ -14847,7 +14956,7 @@ inherits(Sequence, Transform, {
14847
14956
  return;
14848
14957
  const out = pulse2.materialize().fork(pulse2.MOD), as = _.as || "data";
14849
14958
  out.rem = this.value ? pulse2.rem.concat(this.value) : pulse2.rem;
14850
- this.value = range$4(_.start, _.stop, _.step || 1).map((v) => {
14959
+ this.value = range$5(_.start, _.stop, _.step || 1).map((v) => {
14851
14960
  const t4 = {};
14852
14961
  t4[as] = v;
14853
14962
  return ingest$1(t4);
@@ -15331,7 +15440,7 @@ inherits(Window, Transform, {
15331
15440
  }
15332
15441
  });
15333
15442
  function processPartition(list, state, cmp2, _) {
15334
- const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list.data(cmp2), n = data2.length, b2 = range2 ? bisector$1(sort2) : null, w2 = {
15443
+ const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list.data(cmp2), n = data2.length, b2 = range2 ? bisector$2(sort2) : null, w2 = {
15335
15444
  i0: 0,
15336
15445
  i1: 0,
15337
15446
  p0: 0,
@@ -18399,7 +18508,7 @@ function band() {
18399
18508
  start = Math.round(start);
18400
18509
  bandwidth2 = Math.round(bandwidth2);
18401
18510
  }
18402
- const values2 = range$4(n).map((i) => start + step * i);
18511
+ const values2 = range$5(n).map((i) => start + step * i);
18403
18512
  return ordinalRange(reverse2 ? values2.reverse() : values2);
18404
18513
  }
18405
18514
  scale2.domain = function(_) {
@@ -18484,8 +18593,8 @@ function band() {
18484
18593
  }
18485
18594
  if (hi < values2[0] || lo > range$12[1 - reverse2])
18486
18595
  return;
18487
- a2 = Math.max(0, bisectRight$1(values2, lo) - 1);
18488
- b2 = lo === hi ? a2 : bisectRight$1(values2, hi) - 1;
18596
+ a2 = Math.max(0, bisectRight$2(values2, lo) - 1);
18597
+ b2 = lo === hi ? a2 : bisectRight$2(values2, hi) - 1;
18489
18598
  if (lo - values2[a2] > bandwidth2 + 1e-10)
18490
18599
  ++a2;
18491
18600
  if (reverse2) {
@@ -18524,7 +18633,7 @@ const slice$2 = Array.prototype.slice;
18524
18633
  function scaleBinOrdinal() {
18525
18634
  let domain2 = [], range2 = [];
18526
18635
  function scale2(x2) {
18527
- return x2 == null || x2 !== x2 ? void 0 : range2[(bisect$1(domain2, x2) - 1) % range2.length];
18636
+ return x2 == null || x2 !== x2 ? void 0 : range2[(bisect$2(domain2, x2) - 1) % range2.length];
18528
18637
  }
18529
18638
  scale2.domain = function(_) {
18530
18639
  if (arguments.length) {
@@ -24433,7 +24542,7 @@ Pie.Definition = {
24433
24542
  };
24434
24543
  inherits(Pie, Transform, {
24435
24544
  transform(_, pulse2) {
24436
- var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$2, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$4(n), i, t4, v;
24545
+ var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$2, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$5(n), i, t4, v;
24437
24546
  if (_.sort) {
24438
24547
  index2.sort((a3, b2) => values2[a3] - values2[b2]);
24439
24548
  }
@@ -24564,7 +24673,7 @@ function configureBins(scale2, _, count2) {
24564
24673
  start = step * Math.ceil(lo / step);
24565
24674
  if (stop3 > hi)
24566
24675
  stop3 = step * Math.floor(hi / step);
24567
- bins2 = range$4(start, stop3 + step / 2, step);
24676
+ bins2 = range$5(start, stop3 + step / 2, step);
24568
24677
  }
24569
24678
  if (bins2) {
24570
24679
  scale2.bins = bins2;
@@ -27242,8 +27351,8 @@ function within(p, q, r3) {
27242
27351
  }
27243
27352
  function quantize(k, nice2, zero2) {
27244
27353
  return function(values2) {
27245
- var ex = extent(values2), start = zero2 ? Math.min(ex[0], 0) : ex[0], stop3 = ex[1], span2 = stop3 - start, step = nice2 ? tickStep(start, stop3, k) : span2 / (k + 1);
27246
- return range$4(start + step, stop3, step);
27354
+ var ex = extent(values2), start = zero2 ? Math.min(ex[0], 0) : ex[0], stop3 = ex[1], span2 = stop3 - start, step = nice2 ? tickStep$1(start, stop3, k) : span2 / (k + 1);
27355
+ return range$5(start + step, stop3, step);
27247
27356
  };
27248
27357
  }
27249
27358
  function Isocontour(params2) {
@@ -33541,7 +33650,7 @@ function SortedIndex() {
33541
33650
  array2 = value2;
33542
33651
  n = size;
33543
33652
  }
33544
- return [bisectLeft$1(array2, range2[0], 0, n), bisectRight$1(array2, range2[1], 0, n)];
33653
+ return [bisectLeft$1(array2, range2[0], 0, n), bisectRight$2(array2, range2[1], 0, n)];
33545
33654
  }
33546
33655
  return {
33547
33656
  insert: insert2,
@@ -35949,7 +36058,7 @@ const functionContext = {
35949
36058
  hsl: hsl$2,
35950
36059
  luminance,
35951
36060
  contrast,
35952
- sequence: range$4,
36061
+ sequence: range$5,
35953
36062
  format,
35954
36063
  utcFormat,
35955
36064
  utcParse,
@@ -36985,7 +37094,7 @@ function radio(bind2, el2, param2, value2) {
36985
37094
  }
36986
37095
  function range$1(bind2, el2, param2, value2) {
36987
37096
  value2 = value2 !== void 0 ? value2 : (+param2.max + +param2.min) / 2;
36988
- const max2 = param2.max != null ? param2.max : Math.max(100, +value2) || 100, min2 = param2.min || Math.min(0, max2, +value2) || 0, step = param2.step || tickStep(min2, max2, 100);
37097
+ const max2 = param2.max != null ? param2.max : Math.max(100, +value2) || 100, min2 = param2.min || Math.min(0, max2, +value2) || 0, step = param2.step || tickStep$1(min2, max2, 100);
36989
37098
  const node = element("input", {
36990
37099
  type: "range",
36991
37100
  name: param2.signal,
@@ -40999,7 +41108,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
40999
41108
  accessorFields,
41000
41109
  accessorName,
41001
41110
  array: array$5,
41002
- ascending: ascending$3,
41111
+ ascending: ascending$4,
41003
41112
  bandwidthNRD: estimateBandwidth,
41004
41113
  bin: bin$1,
41005
41114
  bootstrapCI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.1.3",
3
+ "version": "3.2.0",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "vega": "^5.21.0",
23
23
  "vega-lite": "^5.1.1",
24
24
  "vega-tooltip": "^0.27.0",
25
- "@vitessce/tooltip": "3.1.3"
25
+ "@vitessce/tooltip": "3.2.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "react": "^18.0.0",