@vitessce/layer-controller 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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-3fd0c76a.js";
2
+ import { B as BaseDecoder } from "./index-47073962.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -16712,7 +16712,9 @@ const ViewType = {
16712
16712
  DOT_PLOT: "dotPlot",
16713
16713
  FEATURE_BAR_PLOT: "featureBarPlot",
16714
16714
  BIOMARKER_SELECT: "biomarkerSelect",
16715
- LINK_CONTROLLER: "linkController"
16715
+ LINK_CONTROLLER: "linkController",
16716
+ DUAL_SCATTERPLOT: "dualScatterplot",
16717
+ TREEMAP: "treemap"
16716
16718
  };
16717
16719
  const CoordinationType = {
16718
16720
  META_COORDINATION_SCOPES: "metaCoordinationScopes",
@@ -16754,15 +16756,23 @@ const CoordinationType = {
16754
16756
  HEATMAP_ZOOM_Y: "heatmapZoomY",
16755
16757
  HEATMAP_TARGET_X: "heatmapTargetX",
16756
16758
  HEATMAP_TARGET_Y: "heatmapTargetY",
16757
- OBS_FILTER: "obsFilter",
16758
16759
  OBS_HIGHLIGHT: "obsHighlight",
16760
+ OBS_SELECTION: "obsSelection",
16759
16761
  OBS_SET_SELECTION: "obsSetSelection",
16762
+ OBS_SELECTION_MODE: "obsSelectionMode",
16763
+ OBS_FILTER: "obsFilter",
16764
+ OBS_SET_FILTER: "obsSetFilter",
16765
+ OBS_FILTER_MODE: "obsFilterMode",
16760
16766
  OBS_SET_HIGHLIGHT: "obsSetHighlight",
16761
16767
  OBS_SET_EXPANSION: "obsSetExpansion",
16762
16768
  OBS_SET_COLOR: "obsSetColor",
16763
- FEATURE_FILTER: "featureFilter",
16764
16769
  FEATURE_HIGHLIGHT: "featureHighlight",
16765
16770
  FEATURE_SELECTION: "featureSelection",
16771
+ FEATURE_SET_SELECTION: "featureSetSelection",
16772
+ FEATURE_SELECTION_MODE: "featureSelectionMode",
16773
+ FEATURE_FILTER: "featureFilter",
16774
+ FEATURE_SET_FILTER: "featureSetFilter",
16775
+ FEATURE_FILTER_MODE: "featureFilterMode",
16766
16776
  FEATURE_VALUE_COLORMAP: "featureValueColormap",
16767
16777
  FEATURE_VALUE_TRANSFORM: "featureValueTransform",
16768
16778
  FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
@@ -16829,14 +16839,22 @@ const CoordinationType = {
16829
16839
  SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
16830
16840
  // Multi-sample / comparative
16831
16841
  SAMPLE_TYPE: "sampleType",
16842
+ SAMPLE_SELECTION: "sampleSelection",
16832
16843
  SAMPLE_SET_SELECTION: "sampleSetSelection",
16844
+ SAMPLE_SELECTION_MODE: "sampleSelectionMode",
16845
+ SAMPLE_FILTER: "sampleFilter",
16846
+ SAMPLE_SET_FILTER: "sampleSetFilter",
16847
+ SAMPLE_FILTER_MODE: "sampleFilterMode",
16833
16848
  SAMPLE_SET_COLOR: "sampleSetColor",
16849
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
16834
16850
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
16835
16851
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
16836
16852
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
16837
16853
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
16838
16854
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
16839
- CONTOUR_COLOR: "contourColor"
16855
+ CONTOUR_COLOR: "contourColor",
16856
+ // Treemap
16857
+ HIERARCHY_LEVELS: "hierarchyLevels"
16840
16858
  };
16841
16859
  const ViewHelpMapping = {
16842
16860
  SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
@@ -16853,7 +16871,8 @@ const ViewHelpMapping = {
16853
16871
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
16854
16872
  FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
16855
16873
  DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
16856
- FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
16874
+ FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
16875
+ TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering."
16857
16876
  };
16858
16877
  const COMPONENT_COORDINATION_TYPES = {
16859
16878
  [ViewType.SCATTERPLOT]: [
@@ -16878,6 +16897,7 @@ const COMPONENT_COORDINATION_TYPES = {
16878
16897
  CoordinationType.OBS_FILTER,
16879
16898
  CoordinationType.OBS_HIGHLIGHT,
16880
16899
  CoordinationType.OBS_SET_SELECTION,
16900
+ CoordinationType.OBS_SET_FILTER,
16881
16901
  CoordinationType.OBS_SET_HIGHLIGHT,
16882
16902
  CoordinationType.OBS_SET_COLOR,
16883
16903
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -16889,6 +16909,50 @@ const COMPONENT_COORDINATION_TYPES = {
16889
16909
  CoordinationType.TOOLTIPS_VISIBLE,
16890
16910
  CoordinationType.SAMPLE_TYPE,
16891
16911
  CoordinationType.SAMPLE_SET_SELECTION,
16912
+ CoordinationType.SAMPLE_SET_FILTER,
16913
+ CoordinationType.SAMPLE_SET_COLOR,
16914
+ CoordinationType.EMBEDDING_POINTS_VISIBLE,
16915
+ CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
16916
+ CoordinationType.EMBEDDING_CONTOURS_FILLED,
16917
+ CoordinationType.EMBEDDING_CONTOUR_PERCENTILES,
16918
+ CoordinationType.CONTOUR_COLOR_ENCODING,
16919
+ CoordinationType.CONTOUR_COLOR
16920
+ ],
16921
+ [ViewType.DUAL_SCATTERPLOT]: [
16922
+ CoordinationType.DATASET,
16923
+ CoordinationType.OBS_TYPE,
16924
+ CoordinationType.FEATURE_TYPE,
16925
+ CoordinationType.FEATURE_VALUE_TYPE,
16926
+ CoordinationType.OBS_LABELS_TYPE,
16927
+ CoordinationType.EMBEDDING_TYPE,
16928
+ CoordinationType.EMBEDDING_ZOOM,
16929
+ CoordinationType.EMBEDDING_ROTATION,
16930
+ CoordinationType.EMBEDDING_TARGET_X,
16931
+ CoordinationType.EMBEDDING_TARGET_Y,
16932
+ CoordinationType.EMBEDDING_TARGET_Z,
16933
+ CoordinationType.EMBEDDING_OBS_SET_POLYGONS_VISIBLE,
16934
+ CoordinationType.EMBEDDING_OBS_SET_LABELS_VISIBLE,
16935
+ CoordinationType.EMBEDDING_OBS_SET_LABEL_SIZE,
16936
+ CoordinationType.EMBEDDING_OBS_RADIUS,
16937
+ CoordinationType.EMBEDDING_OBS_RADIUS_MODE,
16938
+ CoordinationType.EMBEDDING_OBS_OPACITY,
16939
+ CoordinationType.EMBEDDING_OBS_OPACITY_MODE,
16940
+ CoordinationType.OBS_FILTER,
16941
+ CoordinationType.OBS_HIGHLIGHT,
16942
+ CoordinationType.OBS_SET_SELECTION,
16943
+ CoordinationType.OBS_SET_FILTER,
16944
+ CoordinationType.OBS_SET_HIGHLIGHT,
16945
+ CoordinationType.OBS_SET_COLOR,
16946
+ CoordinationType.FEATURE_HIGHLIGHT,
16947
+ CoordinationType.FEATURE_SELECTION,
16948
+ CoordinationType.FEATURE_VALUE_COLORMAP,
16949
+ CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
16950
+ CoordinationType.OBS_COLOR_ENCODING,
16951
+ CoordinationType.ADDITIONAL_OBS_SETS,
16952
+ CoordinationType.TOOLTIPS_VISIBLE,
16953
+ CoordinationType.SAMPLE_TYPE,
16954
+ CoordinationType.SAMPLE_SET_SELECTION,
16955
+ CoordinationType.SAMPLE_SET_FILTER,
16892
16956
  CoordinationType.SAMPLE_SET_COLOR,
16893
16957
  CoordinationType.EMBEDDING_POINTS_VISIBLE,
16894
16958
  CoordinationType.EMBEDDING_CONTOURS_VISIBLE,
@@ -16955,6 +17019,7 @@ const COMPONENT_COORDINATION_TYPES = {
16955
17019
  CoordinationType.OBS_FILTER,
16956
17020
  CoordinationType.OBS_HIGHLIGHT,
16957
17021
  CoordinationType.OBS_SET_SELECTION,
17022
+ CoordinationType.OBS_SET_FILTER,
16958
17023
  CoordinationType.OBS_SET_HIGHLIGHT,
16959
17024
  CoordinationType.OBS_SET_COLOR,
16960
17025
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -16991,6 +17056,7 @@ const COMPONENT_COORDINATION_TYPES = {
16991
17056
  CoordinationType.OBS_FILTER,
16992
17057
  CoordinationType.OBS_HIGHLIGHT,
16993
17058
  CoordinationType.OBS_SET_SELECTION,
17059
+ CoordinationType.OBS_SET_FILTER,
16994
17060
  CoordinationType.OBS_SET_HIGHLIGHT,
16995
17061
  CoordinationType.OBS_SET_COLOR,
16996
17062
  CoordinationType.FEATURE_HIGHLIGHT,
@@ -17050,6 +17116,7 @@ const COMPONENT_COORDINATION_TYPES = {
17050
17116
  CoordinationType.OBS_FILTER,
17051
17117
  CoordinationType.OBS_HIGHLIGHT,
17052
17118
  CoordinationType.OBS_SET_SELECTION,
17119
+ CoordinationType.OBS_SET_FILTER,
17053
17120
  CoordinationType.OBS_SET_HIGHLIGHT,
17054
17121
  CoordinationType.OBS_SET_COLOR,
17055
17122
  CoordinationType.FEATURE_FILTER,
@@ -17065,6 +17132,7 @@ const COMPONENT_COORDINATION_TYPES = {
17065
17132
  CoordinationType.DATASET,
17066
17133
  CoordinationType.OBS_TYPE,
17067
17134
  CoordinationType.OBS_SET_SELECTION,
17135
+ CoordinationType.OBS_SET_FILTER,
17068
17136
  CoordinationType.OBS_SET_EXPANSION,
17069
17137
  CoordinationType.OBS_SET_HIGHLIGHT,
17070
17138
  CoordinationType.OBS_SET_COLOR,
@@ -17076,6 +17144,7 @@ const COMPONENT_COORDINATION_TYPES = {
17076
17144
  CoordinationType.DATASET,
17077
17145
  CoordinationType.OBS_TYPE,
17078
17146
  CoordinationType.OBS_SET_SELECTION,
17147
+ CoordinationType.OBS_SET_FILTER,
17079
17148
  CoordinationType.OBS_SET_EXPANSION,
17080
17149
  CoordinationType.OBS_SET_HIGHLIGHT,
17081
17150
  CoordinationType.OBS_SET_COLOR,
@@ -17108,6 +17177,7 @@ const COMPONENT_COORDINATION_TYPES = {
17108
17177
  CoordinationType.FEATURE_VALUE_TRANSFORM,
17109
17178
  CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT,
17110
17179
  CoordinationType.OBS_SET_SELECTION,
17180
+ CoordinationType.OBS_SET_FILTER,
17111
17181
  CoordinationType.OBS_SET_HIGHLIGHT,
17112
17182
  CoordinationType.OBS_SET_COLOR,
17113
17183
  CoordinationType.ADDITIONAL_OBS_SETS,
@@ -17124,7 +17194,8 @@ const COMPONENT_COORDINATION_TYPES = {
17124
17194
  CoordinationType.ADDITIONAL_OBS_SETS,
17125
17195
  CoordinationType.OBS_SET_COLOR,
17126
17196
  CoordinationType.OBS_COLOR_ENCODING,
17127
- CoordinationType.OBS_SET_SELECTION
17197
+ CoordinationType.OBS_SET_SELECTION,
17198
+ CoordinationType.OBS_SET_FILTER
17128
17199
  ],
17129
17200
  [ViewType.LAYER_CONTROLLER]: [
17130
17201
  CoordinationType.DATASET,
@@ -17239,11 +17310,13 @@ const COMPONENT_COORDINATION_TYPES = {
17239
17310
  CoordinationType.FEATURE_VALUE_POSITIVITY_THRESHOLD,
17240
17311
  CoordinationType.FEATURE_VALUE_COLORMAP,
17241
17312
  CoordinationType.OBS_SET_SELECTION,
17313
+ CoordinationType.OBS_SET_FILTER,
17242
17314
  CoordinationType.OBS_SET_HIGHLIGHT,
17243
17315
  CoordinationType.OBS_SET_COLOR,
17244
17316
  CoordinationType.ADDITIONAL_OBS_SETS,
17245
17317
  CoordinationType.SAMPLE_TYPE,
17246
17318
  CoordinationType.SAMPLE_SET_SELECTION,
17319
+ CoordinationType.SAMPLE_SET_FILTER,
17247
17320
  CoordinationType.SAMPLE_SET_COLOR
17248
17321
  ],
17249
17322
  higlass: [
@@ -17274,8 +17347,37 @@ const COMPONENT_COORDINATION_TYPES = {
17274
17347
  [ViewType.LINK_CONTROLLER]: [],
17275
17348
  [ViewType.BIOMARKER_SELECT]: [
17276
17349
  CoordinationType.FEATURE_SELECTION,
17277
- CoordinationType.SAMPLE_SET_SELECTION
17350
+ CoordinationType.SAMPLE_SET_SELECTION,
17351
+ CoordinationType.SAMPLE_SET_FILTER,
17352
+ CoordinationType.OBS_SET_SELECTION,
17353
+ CoordinationType.OBS_SET_FILTER
17278
17354
  // TODO: create coordination types for internal state of the biomarker selection view?
17355
+ ],
17356
+ [ViewType.TREEMAP]: [
17357
+ CoordinationType.DATASET,
17358
+ CoordinationType.OBS_TYPE,
17359
+ CoordinationType.FEATURE_TYPE,
17360
+ CoordinationType.FEATURE_VALUE_TYPE,
17361
+ CoordinationType.OBS_FILTER,
17362
+ CoordinationType.OBS_HIGHLIGHT,
17363
+ CoordinationType.OBS_SET_SELECTION,
17364
+ CoordinationType.OBS_SET_FILTER,
17365
+ CoordinationType.OBS_SELECTION,
17366
+ CoordinationType.OBS_SELECTION_MODE,
17367
+ CoordinationType.OBS_SET_HIGHLIGHT,
17368
+ CoordinationType.OBS_SET_COLOR,
17369
+ CoordinationType.OBS_COLOR_ENCODING,
17370
+ CoordinationType.ADDITIONAL_OBS_SETS,
17371
+ CoordinationType.SAMPLE_TYPE,
17372
+ CoordinationType.SAMPLE_SET_SELECTION,
17373
+ CoordinationType.SAMPLE_SET_FILTER,
17374
+ CoordinationType.SAMPLE_SET_COLOR,
17375
+ CoordinationType.SAMPLE_SELECTION,
17376
+ CoordinationType.SAMPLE_SELECTION_MODE,
17377
+ CoordinationType.SAMPLE_FILTER,
17378
+ CoordinationType.SAMPLE_FILTER_MODE,
17379
+ CoordinationType.SAMPLE_HIGHLIGHT,
17380
+ CoordinationType.HIERARCHY_LEVELS
17279
17381
  ]
17280
17382
  };
17281
17383
  const GLOBAL_LABELS = ["z", "t"];
@@ -17651,6 +17753,258 @@ plur.addPluralRule("interstitium", "interstitia");
17651
17753
  function capitalize(word) {
17652
17754
  return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
17653
17755
  }
17756
+ var loglevel = { exports: {} };
17757
+ (function(module2) {
17758
+ (function(root2, definition) {
17759
+ if (module2.exports) {
17760
+ module2.exports = definition();
17761
+ } else {
17762
+ root2.log = definition();
17763
+ }
17764
+ })(commonjsGlobal, function() {
17765
+ var noop2 = function() {
17766
+ };
17767
+ var undefinedType = "undefined";
17768
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
17769
+ var logMethods = [
17770
+ "trace",
17771
+ "debug",
17772
+ "info",
17773
+ "warn",
17774
+ "error"
17775
+ ];
17776
+ var _loggersByName = {};
17777
+ var defaultLogger = null;
17778
+ function bindMethod(obj, methodName) {
17779
+ var method = obj[methodName];
17780
+ if (typeof method.bind === "function") {
17781
+ return method.bind(obj);
17782
+ } else {
17783
+ try {
17784
+ return Function.prototype.bind.call(method, obj);
17785
+ } catch (e2) {
17786
+ return function() {
17787
+ return Function.prototype.apply.apply(method, [obj, arguments]);
17788
+ };
17789
+ }
17790
+ }
17791
+ }
17792
+ function traceForIE() {
17793
+ if (console.log) {
17794
+ if (console.log.apply) {
17795
+ console.log.apply(console, arguments);
17796
+ } else {
17797
+ Function.prototype.apply.apply(console.log, [console, arguments]);
17798
+ }
17799
+ }
17800
+ if (console.trace)
17801
+ console.trace();
17802
+ }
17803
+ function realMethod(methodName) {
17804
+ if (methodName === "debug") {
17805
+ methodName = "log";
17806
+ }
17807
+ if (typeof console === undefinedType) {
17808
+ return false;
17809
+ } else if (methodName === "trace" && isIE) {
17810
+ return traceForIE;
17811
+ } else if (console[methodName] !== void 0) {
17812
+ return bindMethod(console, methodName);
17813
+ } else if (console.log !== void 0) {
17814
+ return bindMethod(console, "log");
17815
+ } else {
17816
+ return noop2;
17817
+ }
17818
+ }
17819
+ function replaceLoggingMethods() {
17820
+ var level = this.getLevel();
17821
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
17822
+ var methodName = logMethods[i2];
17823
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
17824
+ }
17825
+ this.log = this.debug;
17826
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
17827
+ return "No console available for logging";
17828
+ }
17829
+ }
17830
+ function enableLoggingWhenConsoleArrives(methodName) {
17831
+ return function() {
17832
+ if (typeof console !== undefinedType) {
17833
+ replaceLoggingMethods.call(this);
17834
+ this[methodName].apply(this, arguments);
17835
+ }
17836
+ };
17837
+ }
17838
+ function defaultMethodFactory(methodName, _level, _loggerName) {
17839
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
17840
+ }
17841
+ function Logger(name2, factory) {
17842
+ var self2 = this;
17843
+ var inheritedLevel;
17844
+ var defaultLevel;
17845
+ var userLevel;
17846
+ var storageKey = "loglevel";
17847
+ if (typeof name2 === "string") {
17848
+ storageKey += ":" + name2;
17849
+ } else if (typeof name2 === "symbol") {
17850
+ storageKey = void 0;
17851
+ }
17852
+ function persistLevelIfPossible(levelNum) {
17853
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
17854
+ if (typeof window === undefinedType || !storageKey)
17855
+ return;
17856
+ try {
17857
+ window.localStorage[storageKey] = levelName;
17858
+ return;
17859
+ } catch (ignore) {
17860
+ }
17861
+ try {
17862
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
17863
+ } catch (ignore) {
17864
+ }
17865
+ }
17866
+ function getPersistedLevel() {
17867
+ var storedLevel;
17868
+ if (typeof window === undefinedType || !storageKey)
17869
+ return;
17870
+ try {
17871
+ storedLevel = window.localStorage[storageKey];
17872
+ } catch (ignore) {
17873
+ }
17874
+ if (typeof storedLevel === undefinedType) {
17875
+ try {
17876
+ var cookie = window.document.cookie;
17877
+ var cookieName = encodeURIComponent(storageKey);
17878
+ var location = cookie.indexOf(cookieName + "=");
17879
+ if (location !== -1) {
17880
+ storedLevel = /^([^;]+)/.exec(
17881
+ cookie.slice(location + cookieName.length + 1)
17882
+ )[1];
17883
+ }
17884
+ } catch (ignore) {
17885
+ }
17886
+ }
17887
+ if (self2.levels[storedLevel] === void 0) {
17888
+ storedLevel = void 0;
17889
+ }
17890
+ return storedLevel;
17891
+ }
17892
+ function clearPersistedLevel() {
17893
+ if (typeof window === undefinedType || !storageKey)
17894
+ return;
17895
+ try {
17896
+ window.localStorage.removeItem(storageKey);
17897
+ } catch (ignore) {
17898
+ }
17899
+ try {
17900
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
17901
+ } catch (ignore) {
17902
+ }
17903
+ }
17904
+ function normalizeLevel(input) {
17905
+ var level = input;
17906
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
17907
+ level = self2.levels[level.toUpperCase()];
17908
+ }
17909
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
17910
+ return level;
17911
+ } else {
17912
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
17913
+ }
17914
+ }
17915
+ self2.name = name2;
17916
+ self2.levels = {
17917
+ "TRACE": 0,
17918
+ "DEBUG": 1,
17919
+ "INFO": 2,
17920
+ "WARN": 3,
17921
+ "ERROR": 4,
17922
+ "SILENT": 5
17923
+ };
17924
+ self2.methodFactory = factory || defaultMethodFactory;
17925
+ self2.getLevel = function() {
17926
+ if (userLevel != null) {
17927
+ return userLevel;
17928
+ } else if (defaultLevel != null) {
17929
+ return defaultLevel;
17930
+ } else {
17931
+ return inheritedLevel;
17932
+ }
17933
+ };
17934
+ self2.setLevel = function(level, persist) {
17935
+ userLevel = normalizeLevel(level);
17936
+ if (persist !== false) {
17937
+ persistLevelIfPossible(userLevel);
17938
+ }
17939
+ return replaceLoggingMethods.call(self2);
17940
+ };
17941
+ self2.setDefaultLevel = function(level) {
17942
+ defaultLevel = normalizeLevel(level);
17943
+ if (!getPersistedLevel()) {
17944
+ self2.setLevel(level, false);
17945
+ }
17946
+ };
17947
+ self2.resetLevel = function() {
17948
+ userLevel = null;
17949
+ clearPersistedLevel();
17950
+ replaceLoggingMethods.call(self2);
17951
+ };
17952
+ self2.enableAll = function(persist) {
17953
+ self2.setLevel(self2.levels.TRACE, persist);
17954
+ };
17955
+ self2.disableAll = function(persist) {
17956
+ self2.setLevel(self2.levels.SILENT, persist);
17957
+ };
17958
+ self2.rebuild = function() {
17959
+ if (defaultLogger !== self2) {
17960
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
17961
+ }
17962
+ replaceLoggingMethods.call(self2);
17963
+ if (defaultLogger === self2) {
17964
+ for (var childName in _loggersByName) {
17965
+ _loggersByName[childName].rebuild();
17966
+ }
17967
+ }
17968
+ };
17969
+ inheritedLevel = normalizeLevel(
17970
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
17971
+ );
17972
+ var initialLevel = getPersistedLevel();
17973
+ if (initialLevel != null) {
17974
+ userLevel = normalizeLevel(initialLevel);
17975
+ }
17976
+ replaceLoggingMethods.call(self2);
17977
+ }
17978
+ defaultLogger = new Logger();
17979
+ defaultLogger.getLogger = function getLogger(name2) {
17980
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
17981
+ throw new TypeError("You must supply a name when creating a logger.");
17982
+ }
17983
+ var logger = _loggersByName[name2];
17984
+ if (!logger) {
17985
+ logger = _loggersByName[name2] = new Logger(
17986
+ name2,
17987
+ defaultLogger.methodFactory
17988
+ );
17989
+ }
17990
+ return logger;
17991
+ };
17992
+ var _log = typeof window !== undefinedType ? window.log : void 0;
17993
+ defaultLogger.noConflict = function() {
17994
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
17995
+ window.log = _log;
17996
+ }
17997
+ return defaultLogger;
17998
+ };
17999
+ defaultLogger.getLoggers = function getLoggers2() {
18000
+ return _loggersByName;
18001
+ };
18002
+ defaultLogger["default"] = defaultLogger;
18003
+ return defaultLogger;
18004
+ });
18005
+ })(loglevel);
18006
+ var loglevelExports = loglevel.exports;
18007
+ const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
17654
18008
  const VIEWER_PALETTE = [
17655
18009
  [0, 0, 255],
17656
18010
  [0, 255, 0],
@@ -121479,16 +121833,16 @@ function addDecoder(cases, importFn) {
121479
121833
  }
121480
121834
  cases.forEach((c) => registry$1.set(c, importFn));
121481
121835
  }
121482
- addDecoder([void 0, 1], () => import("./raw-a099467a.js").then((m) => m.default));
121483
- addDecoder(5, () => import("./lzw-6f21c4d9.js").then((m) => m.default));
121836
+ addDecoder([void 0, 1], () => import("./raw-782360b8.js").then((m) => m.default));
121837
+ addDecoder(5, () => import("./lzw-0ce97204.js").then((m) => m.default));
121484
121838
  addDecoder(6, () => {
121485
121839
  throw new Error("old style JPEG compression is not supported.");
121486
121840
  });
121487
- addDecoder(7, () => import("./jpeg-17e2ad80.js").then((m) => m.default));
121488
- addDecoder([8, 32946], () => import("./deflate-b2382f28.js").then((m) => m.default));
121489
- addDecoder(32773, () => import("./packbits-7c083149.js").then((m) => m.default));
121490
- addDecoder(34887, () => import("./lerc-634fdf8c.js").then((m) => m.default));
121491
- addDecoder(50001, () => import("./webimage-a97b6f77.js").then((m) => m.default));
121841
+ addDecoder(7, () => import("./jpeg-f152b137.js").then((m) => m.default));
121842
+ addDecoder([8, 32946], () => import("./deflate-adf928b0.js").then((m) => m.default));
121843
+ addDecoder(32773, () => import("./packbits-bdf660ad.js").then((m) => m.default));
121844
+ addDecoder(34887, () => import("./lerc-f3213e01.js").then((m) => m.default));
121845
+ addDecoder(50001, () => import("./webimage-5c05a3b3.js").then((m) => m.default));
121492
121846
  function decodeRowAcc(row, stride) {
121493
121847
  let length2 = row.length - stride;
121494
121848
  let offset4 = 0;
@@ -135318,10 +135672,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
135318
135672
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
135319
135673
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
135320
135674
  if (valueTexHeight > texSize) {
135321
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135675
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135322
135676
  }
135323
135677
  if (colorTexHeight > texSize) {
135324
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135678
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135325
135679
  }
135326
135680
  const totalData = new Uint8Array(texSize * valueTexHeight);
135327
135681
  const totalColors = new Uint8Array(texSize * colorTexHeight);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, L, V, d, c, e, f, b, h, u } from "./index-3fd0c76a.js";
1
+ import { a, L, V, d, c, e, f, b, h, u } from "./index-47073962.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-3fd0c76a.js";
1
+ import { B as BaseDecoder } from "./index-47073962.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-3fd0c76a.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-47073962.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-3fd0c76a.js";
1
+ import { B as BaseDecoder } from "./index-47073962.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-3fd0c76a.js";
1
+ import { B as BaseDecoder } from "./index-47073962.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-3fd0c76a.js";
1
+ import { B as BaseDecoder } from "./index-47073962.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-3fd0c76a.js";
1
+ import { B as BaseDecoder } from "./index-47073962.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.5",
3
+ "version": "3.5.7",
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.5",
25
- "@vitessce/gl": "3.5.5",
26
- "@vitessce/spatial-utils": "3.5.5",
27
- "@vitessce/utils": "3.5.5",
28
- "@vitessce/vit-s": "3.5.5"
24
+ "@vitessce/constants-internal": "3.5.7",
25
+ "@vitessce/gl": "3.5.7",
26
+ "@vitessce/spatial-utils": "3.5.7",
27
+ "@vitessce/utils": "3.5.7",
28
+ "@vitessce/vit-s": "3.5.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "react": "^18.0.0",