@vitessce/vega 3.5.5 → 3.5.7

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 +300 -24
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1114,7 +1114,7 @@ function toNumber(_) {
1114
1114
  return _ == null || _ === "" ? null : +_;
1115
1115
  }
1116
1116
  const exp$2 = (sign2) => (x2) => sign2 * Math.exp(x2);
1117
- const log$4 = (sign2) => (x2) => Math.log(sign2 * x2);
1117
+ const log$5 = (sign2) => (x2) => Math.log(sign2 * x2);
1118
1118
  const symlog$1 = (c2) => (x2) => Math.sign(x2) * Math.log1p(Math.abs(x2 / c2));
1119
1119
  const symexp = (c2) => (x2) => Math.sign(x2) * Math.expm1(Math.abs(x2)) * c2;
1120
1120
  const pow$4 = (exponent2) => (x2) => x2 < 0 ? -Math.pow(-x2, exponent2) : Math.pow(x2, exponent2);
@@ -1127,7 +1127,7 @@ function panLinear(domain2, delta) {
1127
1127
  }
1128
1128
  function panLog(domain2, delta) {
1129
1129
  var sign2 = Math.sign(domain2[0]);
1130
- return pan(domain2, delta, log$4(sign2), exp$2(sign2));
1130
+ return pan(domain2, delta, log$5(sign2), exp$2(sign2));
1131
1131
  }
1132
1132
  function panPow(domain2, delta, exponent2) {
1133
1133
  return pan(domain2, delta, pow$4(exponent2), pow$4(1 / exponent2));
@@ -1144,7 +1144,7 @@ function zoomLinear(domain2, anchor, scale2) {
1144
1144
  }
1145
1145
  function zoomLog(domain2, anchor, scale2) {
1146
1146
  const sign2 = Math.sign(domain2[0]);
1147
- return zoom$2(domain2, anchor, scale2, log$4(sign2), exp$2(sign2));
1147
+ return zoom$2(domain2, anchor, scale2, log$5(sign2), exp$2(sign2));
1148
1148
  }
1149
1149
  function zoomPow(domain2, anchor, scale2, exponent2) {
1150
1150
  return zoom$2(domain2, anchor, scale2, pow$4(exponent2), pow$4(1 / exponent2));
@@ -6540,7 +6540,7 @@ function linear$3(data2, x2, y2) {
6540
6540
  rSquared: rSquared(data2, x2, y2, Y3, predict)
6541
6541
  };
6542
6542
  }
6543
- function log$3(data2, x2, y2) {
6543
+ function log$4(data2, x2, y2) {
6544
6544
  let X3 = 0, Y3 = 0, XY = 0, X22 = 0, n = 0;
6545
6545
  visitPoints(data2, x2, y2, (dx, dy) => {
6546
6546
  ++n;
@@ -12407,9 +12407,9 @@ function loggish(transform2) {
12407
12407
  };
12408
12408
  return scale2;
12409
12409
  }
12410
- function log$2() {
12410
+ function log$3() {
12411
12411
  const scale2 = loggish(transformer$3()).domain([1, 10]);
12412
- scale2.copy = () => copy$2(scale2, log$2()).base(scale2.base());
12412
+ scale2.copy = () => copy$2(scale2, log$3()).base(scale2.base());
12413
12413
  initRange.apply(scale2, arguments);
12414
12414
  return scale2;
12415
12415
  }
@@ -12986,7 +12986,7 @@ function scale$4(type2, scale2, metadata2) {
12986
12986
  }
12987
12987
  scale$4(Identity, identity$1);
12988
12988
  scale$4(Linear, linear$1, Continuous);
12989
- scale$4(Log, log$2, [Continuous, Log]);
12989
+ scale$4(Log, log$3, [Continuous, Log]);
12990
12990
  scale$4(Pow, pow$2, Continuous);
12991
12991
  scale$4(Sqrt, sqrt$2, Continuous);
12992
12992
  scale$4(Symlog, symlog, Continuous);
@@ -19188,7 +19188,7 @@ var cos$1 = Math.cos;
19188
19188
  var ceil = Math.ceil;
19189
19189
  var exp = Math.exp;
19190
19190
  var hypot = Math.hypot;
19191
- var log$1 = Math.log;
19191
+ var log$2 = Math.log;
19192
19192
  var pow$1 = Math.pow;
19193
19193
  var sin$1 = Math.sin;
19194
19194
  var sign = Math.sign || function(x2) {
@@ -21128,7 +21128,7 @@ function geoAzimuthalEquidistant() {
21128
21128
  return projection$1(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
21129
21129
  }
21130
21130
  function mercatorRaw(lambda, phi2) {
21131
- return [lambda, log$1(tan((halfPi$1 + phi2) / 2))];
21131
+ return [lambda, log$2(tan((halfPi$1 + phi2) / 2))];
21132
21132
  }
21133
21133
  mercatorRaw.invert = function(x2, y2) {
21134
21134
  return [x2, 2 * atan(exp(y2)) - halfPi$1];
@@ -21160,7 +21160,7 @@ function tany(y2) {
21160
21160
  return tan((halfPi$1 + y2) / 2);
21161
21161
  }
21162
21162
  function conicConformalRaw(y02, y12) {
21163
- var cy0 = cos$1(y02), n = y02 === y12 ? sin$1(y02) : log$1(cy0 / cos$1(y12)) / log$1(tany(y12) / tany(y02)), f = cy0 * pow$1(tany(y02), n) / n;
21163
+ var cy0 = cos$1(y02), n = y02 === y12 ? sin$1(y02) : log$2(cy0 / cos$1(y12)) / log$2(tany(y12) / tany(y02)), f = cy0 * pow$1(tany(y02), n) / n;
21164
21164
  if (!n)
21165
21165
  return mercatorRaw;
21166
21166
  function project2(x2, y2) {
@@ -21352,7 +21352,7 @@ function geoStereographic() {
21352
21352
  return projection$1(stereographicRaw).scale(250).clipAngle(142);
21353
21353
  }
21354
21354
  function transverseMercatorRaw(lambda, phi2) {
21355
- return [log$1(tan((halfPi$1 + phi2) / 2)), -lambda];
21355
+ return [log$2(tan((halfPi$1 + phi2) / 2)), -lambda];
21356
21356
  }
21357
21357
  transverseMercatorRaw.invert = function(x2, y2) {
21358
21358
  return [-y2, 2 * atan(exp(x2)) - halfPi$1];
@@ -25922,7 +25922,7 @@ inherits(Loess, Transform, {
25922
25922
  });
25923
25923
  const Methods = {
25924
25924
  linear: linear$3,
25925
- log: log$3,
25925
+ log: log$4,
25926
25926
  exp: exp$1,
25927
25927
  pow: pow$3,
25928
25928
  quad,
@@ -30014,7 +30014,7 @@ function inScope(item) {
30014
30014
  }
30015
30015
  return value2;
30016
30016
  }
30017
- function log(df, method2, args) {
30017
+ function log$1(df, method2, args) {
30018
30018
  try {
30019
30019
  df[method2].apply(df, ["EXPRESSION"].concat([].slice.call(args)));
30020
30020
  } catch (err) {
@@ -30023,13 +30023,13 @@ function log(df, method2, args) {
30023
30023
  return args[args.length - 1];
30024
30024
  }
30025
30025
  function warn$1() {
30026
- return log(this.context.dataflow, "warn", arguments);
30026
+ return log$1(this.context.dataflow, "warn", arguments);
30027
30027
  }
30028
30028
  function info() {
30029
- return log(this.context.dataflow, "info", arguments);
30029
+ return log$1(this.context.dataflow, "info", arguments);
30030
30030
  }
30031
30031
  function debug$5() {
30032
- return log(this.context.dataflow, "debug", arguments);
30032
+ return log$1(this.context.dataflow, "debug", arguments);
30033
30033
  }
30034
30034
  function channel_luminance_value(channelValue) {
30035
30035
  const val = channelValue / 255;
@@ -35534,7 +35534,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
35534
35534
  regressionExp: exp$1,
35535
35535
  regressionLinear: linear$3,
35536
35536
  regressionLoess: loess,
35537
- regressionLog: log$3,
35537
+ regressionLog: log$4,
35538
35538
  regressionPoly: poly,
35539
35539
  regressionPow: pow$3,
35540
35540
  regressionQuad: quad,
@@ -40887,6 +40887,258 @@ function getNextScope(prevScopes) {
40887
40887
  } while (prevScopes.includes(nextScope));
40888
40888
  return nextScope;
40889
40889
  }
40890
+ var loglevel = { exports: {} };
40891
+ (function(module2) {
40892
+ (function(root2, definition2) {
40893
+ if (module2.exports) {
40894
+ module2.exports = definition2();
40895
+ } else {
40896
+ root2.log = definition2();
40897
+ }
40898
+ })(commonjsGlobal, function() {
40899
+ var noop2 = function() {
40900
+ };
40901
+ var undefinedType2 = "undefined";
40902
+ var isIE = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
40903
+ var logMethods = [
40904
+ "trace",
40905
+ "debug",
40906
+ "info",
40907
+ "warn",
40908
+ "error"
40909
+ ];
40910
+ var _loggersByName = {};
40911
+ var defaultLogger = null;
40912
+ function bindMethod(obj, methodName) {
40913
+ var method2 = obj[methodName];
40914
+ if (typeof method2.bind === "function") {
40915
+ return method2.bind(obj);
40916
+ } else {
40917
+ try {
40918
+ return Function.prototype.bind.call(method2, obj);
40919
+ } catch (e3) {
40920
+ return function() {
40921
+ return Function.prototype.apply.apply(method2, [obj, arguments]);
40922
+ };
40923
+ }
40924
+ }
40925
+ }
40926
+ function traceForIE() {
40927
+ if (console.log) {
40928
+ if (console.log.apply) {
40929
+ console.log.apply(console, arguments);
40930
+ } else {
40931
+ Function.prototype.apply.apply(console.log, [console, arguments]);
40932
+ }
40933
+ }
40934
+ if (console.trace)
40935
+ console.trace();
40936
+ }
40937
+ function realMethod(methodName) {
40938
+ if (methodName === "debug") {
40939
+ methodName = "log";
40940
+ }
40941
+ if (typeof console === undefinedType2) {
40942
+ return false;
40943
+ } else if (methodName === "trace" && isIE) {
40944
+ return traceForIE;
40945
+ } else if (console[methodName] !== void 0) {
40946
+ return bindMethod(console, methodName);
40947
+ } else if (console.log !== void 0) {
40948
+ return bindMethod(console, "log");
40949
+ } else {
40950
+ return noop2;
40951
+ }
40952
+ }
40953
+ function replaceLoggingMethods() {
40954
+ var level = this.getLevel();
40955
+ for (var i = 0; i < logMethods.length; i++) {
40956
+ var methodName = logMethods[i];
40957
+ this[methodName] = i < level ? noop2 : this.methodFactory(methodName, level, this.name);
40958
+ }
40959
+ this.log = this.debug;
40960
+ if (typeof console === undefinedType2 && level < this.levels.SILENT) {
40961
+ return "No console available for logging";
40962
+ }
40963
+ }
40964
+ function enableLoggingWhenConsoleArrives(methodName) {
40965
+ return function() {
40966
+ if (typeof console !== undefinedType2) {
40967
+ replaceLoggingMethods.call(this);
40968
+ this[methodName].apply(this, arguments);
40969
+ }
40970
+ };
40971
+ }
40972
+ function defaultMethodFactory(methodName, _level, _loggerName) {
40973
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
40974
+ }
40975
+ function Logger(name2, factory) {
40976
+ var self2 = this;
40977
+ var inheritedLevel;
40978
+ var defaultLevel;
40979
+ var userLevel;
40980
+ var storageKey = "loglevel";
40981
+ if (typeof name2 === "string") {
40982
+ storageKey += ":" + name2;
40983
+ } else if (typeof name2 === "symbol") {
40984
+ storageKey = void 0;
40985
+ }
40986
+ function persistLevelIfPossible(levelNum) {
40987
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
40988
+ if (typeof window === undefinedType2 || !storageKey)
40989
+ return;
40990
+ try {
40991
+ window.localStorage[storageKey] = levelName;
40992
+ return;
40993
+ } catch (ignore) {
40994
+ }
40995
+ try {
40996
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
40997
+ } catch (ignore) {
40998
+ }
40999
+ }
41000
+ function getPersistedLevel() {
41001
+ var storedLevel;
41002
+ if (typeof window === undefinedType2 || !storageKey)
41003
+ return;
41004
+ try {
41005
+ storedLevel = window.localStorage[storageKey];
41006
+ } catch (ignore) {
41007
+ }
41008
+ if (typeof storedLevel === undefinedType2) {
41009
+ try {
41010
+ var cookie = window.document.cookie;
41011
+ var cookieName = encodeURIComponent(storageKey);
41012
+ var location = cookie.indexOf(cookieName + "=");
41013
+ if (location !== -1) {
41014
+ storedLevel = /^([^;]+)/.exec(
41015
+ cookie.slice(location + cookieName.length + 1)
41016
+ )[1];
41017
+ }
41018
+ } catch (ignore) {
41019
+ }
41020
+ }
41021
+ if (self2.levels[storedLevel] === void 0) {
41022
+ storedLevel = void 0;
41023
+ }
41024
+ return storedLevel;
41025
+ }
41026
+ function clearPersistedLevel() {
41027
+ if (typeof window === undefinedType2 || !storageKey)
41028
+ return;
41029
+ try {
41030
+ window.localStorage.removeItem(storageKey);
41031
+ } catch (ignore) {
41032
+ }
41033
+ try {
41034
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
41035
+ } catch (ignore) {
41036
+ }
41037
+ }
41038
+ function normalizeLevel(input) {
41039
+ var level = input;
41040
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
41041
+ level = self2.levels[level.toUpperCase()];
41042
+ }
41043
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
41044
+ return level;
41045
+ } else {
41046
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
41047
+ }
41048
+ }
41049
+ self2.name = name2;
41050
+ self2.levels = {
41051
+ "TRACE": 0,
41052
+ "DEBUG": 1,
41053
+ "INFO": 2,
41054
+ "WARN": 3,
41055
+ "ERROR": 4,
41056
+ "SILENT": 5
41057
+ };
41058
+ self2.methodFactory = factory || defaultMethodFactory;
41059
+ self2.getLevel = function() {
41060
+ if (userLevel != null) {
41061
+ return userLevel;
41062
+ } else if (defaultLevel != null) {
41063
+ return defaultLevel;
41064
+ } else {
41065
+ return inheritedLevel;
41066
+ }
41067
+ };
41068
+ self2.setLevel = function(level, persist) {
41069
+ userLevel = normalizeLevel(level);
41070
+ if (persist !== false) {
41071
+ persistLevelIfPossible(userLevel);
41072
+ }
41073
+ return replaceLoggingMethods.call(self2);
41074
+ };
41075
+ self2.setDefaultLevel = function(level) {
41076
+ defaultLevel = normalizeLevel(level);
41077
+ if (!getPersistedLevel()) {
41078
+ self2.setLevel(level, false);
41079
+ }
41080
+ };
41081
+ self2.resetLevel = function() {
41082
+ userLevel = null;
41083
+ clearPersistedLevel();
41084
+ replaceLoggingMethods.call(self2);
41085
+ };
41086
+ self2.enableAll = function(persist) {
41087
+ self2.setLevel(self2.levels.TRACE, persist);
41088
+ };
41089
+ self2.disableAll = function(persist) {
41090
+ self2.setLevel(self2.levels.SILENT, persist);
41091
+ };
41092
+ self2.rebuild = function() {
41093
+ if (defaultLogger !== self2) {
41094
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
41095
+ }
41096
+ replaceLoggingMethods.call(self2);
41097
+ if (defaultLogger === self2) {
41098
+ for (var childName in _loggersByName) {
41099
+ _loggersByName[childName].rebuild();
41100
+ }
41101
+ }
41102
+ };
41103
+ inheritedLevel = normalizeLevel(
41104
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
41105
+ );
41106
+ var initialLevel = getPersistedLevel();
41107
+ if (initialLevel != null) {
41108
+ userLevel = normalizeLevel(initialLevel);
41109
+ }
41110
+ replaceLoggingMethods.call(self2);
41111
+ }
41112
+ defaultLogger = new Logger();
41113
+ defaultLogger.getLogger = function getLogger(name2) {
41114
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
41115
+ throw new TypeError("You must supply a name when creating a logger.");
41116
+ }
41117
+ var logger2 = _loggersByName[name2];
41118
+ if (!logger2) {
41119
+ logger2 = _loggersByName[name2] = new Logger(
41120
+ name2,
41121
+ defaultLogger.methodFactory
41122
+ );
41123
+ }
41124
+ return logger2;
41125
+ };
41126
+ var _log = typeof window !== undefinedType2 ? window.log : void 0;
41127
+ defaultLogger.noConflict = function() {
41128
+ if (typeof window !== undefinedType2 && window.log === defaultLogger) {
41129
+ window.log = _log;
41130
+ }
41131
+ return defaultLogger;
41132
+ };
41133
+ defaultLogger.getLoggers = function getLoggers() {
41134
+ return _loggersByName;
41135
+ };
41136
+ defaultLogger["default"] = defaultLogger;
41137
+ return defaultLogger;
41138
+ });
41139
+ })(loglevel);
41140
+ var loglevelExports = loglevel.exports;
41141
+ const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
40890
41142
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
40891
41143
  const freeGlobal$1 = freeGlobal;
40892
41144
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -47400,7 +47652,7 @@ function upgradeFrom1_0_14(config) {
47400
47652
  Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
47401
47653
  var _a;
47402
47654
  if ((_a = viewDef.props) == null ? void 0 : _a[oldProp]) {
47403
- console.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
47655
+ log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
47404
47656
  }
47405
47657
  });
47406
47658
  });
@@ -47423,7 +47675,7 @@ function upgradeFrom1_0_15(config) {
47423
47675
  Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
47424
47676
  if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
47425
47677
  if (coordinationType === "dataset") {
47426
- console.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
47678
+ log.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
47427
47679
  }
47428
47680
  coordinationScopesBy.dataset[coordinationType] = coordinationScope;
47429
47681
  } else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
@@ -49635,7 +49887,9 @@ const ViewType$1 = {
49635
49887
  DOT_PLOT: "dotPlot",
49636
49888
  FEATURE_BAR_PLOT: "featureBarPlot",
49637
49889
  BIOMARKER_SELECT: "biomarkerSelect",
49638
- LINK_CONTROLLER: "linkController"
49890
+ LINK_CONTROLLER: "linkController",
49891
+ DUAL_SCATTERPLOT: "dualScatterplot",
49892
+ TREEMAP: "treemap"
49639
49893
  };
49640
49894
  const DataType$1 = {
49641
49895
  OBS_LABELS: "obsLabels",
@@ -49689,6 +49943,7 @@ const FileType$1 = {
49689
49943
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
49690
49944
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
49691
49945
  SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
49946
+ SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
49692
49947
  // AnnData - zipped
49693
49948
  OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
49694
49949
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
@@ -49701,6 +49956,7 @@ const FileType$1 = {
49701
49956
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
49702
49957
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
49703
49958
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
49959
+ SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
49704
49960
  // AnnData - h5ad via reference spec
49705
49961
  OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
49706
49962
  OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
@@ -49713,6 +49969,7 @@ const FileType$1 = {
49713
49969
  OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
49714
49970
  FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
49715
49971
  SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
49972
+ SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
49716
49973
  // SpatialData
49717
49974
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
49718
49975
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -49814,15 +50071,23 @@ const CoordinationType$1 = {
49814
50071
  HEATMAP_ZOOM_Y: "heatmapZoomY",
49815
50072
  HEATMAP_TARGET_X: "heatmapTargetX",
49816
50073
  HEATMAP_TARGET_Y: "heatmapTargetY",
49817
- OBS_FILTER: "obsFilter",
49818
50074
  OBS_HIGHLIGHT: "obsHighlight",
50075
+ OBS_SELECTION: "obsSelection",
49819
50076
  OBS_SET_SELECTION: "obsSetSelection",
50077
+ OBS_SELECTION_MODE: "obsSelectionMode",
50078
+ OBS_FILTER: "obsFilter",
50079
+ OBS_SET_FILTER: "obsSetFilter",
50080
+ OBS_FILTER_MODE: "obsFilterMode",
49820
50081
  OBS_SET_HIGHLIGHT: "obsSetHighlight",
49821
50082
  OBS_SET_EXPANSION: "obsSetExpansion",
49822
50083
  OBS_SET_COLOR: "obsSetColor",
49823
- FEATURE_FILTER: "featureFilter",
49824
50084
  FEATURE_HIGHLIGHT: "featureHighlight",
49825
50085
  FEATURE_SELECTION: "featureSelection",
50086
+ FEATURE_SET_SELECTION: "featureSetSelection",
50087
+ FEATURE_SELECTION_MODE: "featureSelectionMode",
50088
+ FEATURE_FILTER: "featureFilter",
50089
+ FEATURE_SET_FILTER: "featureSetFilter",
50090
+ FEATURE_FILTER_MODE: "featureFilterMode",
49826
50091
  FEATURE_VALUE_COLORMAP: "featureValueColormap",
49827
50092
  FEATURE_VALUE_TRANSFORM: "featureValueTransform",
49828
50093
  FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
@@ -49889,14 +50154,22 @@ const CoordinationType$1 = {
49889
50154
  SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
49890
50155
  // Multi-sample / comparative
49891
50156
  SAMPLE_TYPE: "sampleType",
50157
+ SAMPLE_SELECTION: "sampleSelection",
49892
50158
  SAMPLE_SET_SELECTION: "sampleSetSelection",
50159
+ SAMPLE_SELECTION_MODE: "sampleSelectionMode",
50160
+ SAMPLE_FILTER: "sampleFilter",
50161
+ SAMPLE_SET_FILTER: "sampleSetFilter",
50162
+ SAMPLE_FILTER_MODE: "sampleFilterMode",
49893
50163
  SAMPLE_SET_COLOR: "sampleSetColor",
50164
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
49894
50165
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
49895
50166
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
49896
50167
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
49897
50168
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
49898
50169
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
49899
- CONTOUR_COLOR: "contourColor"
50170
+ CONTOUR_COLOR: "contourColor",
50171
+ // Treemap
50172
+ HIERARCHY_LEVELS: "hierarchyLevels"
49900
50173
  };
49901
50174
  const ViewType = {
49902
50175
  GENES: [
@@ -50064,7 +50337,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
50064
50337
  const oldKeys = Object.keys(oldObj);
50065
50338
  const propKey = String(prop);
50066
50339
  if (oldKeys.includes(propKey)) {
50067
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
50340
+ log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
50068
50341
  ${oldObj[propKey][1]}`);
50069
50342
  return oldObj[propKey];
50070
50343
  }
@@ -50162,6 +50435,9 @@ const annDataObsSetsArr = z.array(z.object({
50162
50435
  z.object({
50163
50436
  obsSets: annDataObsSetsArr
50164
50437
  });
50438
+ z.object({
50439
+ sampleSets: annDataObsSetsArr
50440
+ });
50165
50441
  const annDataObsFeatureColumnsArr = z.array(z.object({
50166
50442
  path: z.string()
50167
50443
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "vega": "^5.21.0",
23
23
  "vega-lite": "^5.1.1",
24
24
  "vega-tooltip": "^0.27.0",
25
- "@vitessce/tooltip": "3.5.5",
26
- "@vitessce/legend": "3.5.5"
25
+ "@vitessce/tooltip": "3.5.7",
26
+ "@vitessce/legend": "3.5.7"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "^18.0.0",