@vitessce/constants 3.5.6 → 3.5.8

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.
package/dist/index.js CHANGED
@@ -16,9 +16,15 @@ const ViewType$2 = {
16
16
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
17
17
  DOT_PLOT: "dotPlot",
18
18
  FEATURE_BAR_PLOT: "featureBarPlot",
19
+ VOLCANO_PLOT: "volcanoPlot",
20
+ OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
21
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
19
22
  BIOMARKER_SELECT: "biomarkerSelect",
23
+ COMPARATIVE_HEADING: "comparativeHeading",
20
24
  LINK_CONTROLLER: "linkController",
21
- DUAL_SCATTERPLOT: "dualScatterplot"
25
+ NEUROGLANCER: "neuroglancer",
26
+ DUAL_SCATTERPLOT: "dualScatterplot",
27
+ TREEMAP: "treemap"
22
28
  };
23
29
  const DataType$2 = {
24
30
  OBS_LABELS: "obsLabels",
@@ -34,7 +40,11 @@ const DataType$2 = {
34
40
  OBS_POINTS: "obsPoints",
35
41
  OBS_LOCATIONS: "obsLocations",
36
42
  SAMPLE_SETS: "sampleSets",
37
- SAMPLE_EDGES: "sampleEdges"
43
+ SAMPLE_EDGES: "sampleEdges",
44
+ COMPARISON_METADATA: "comparisonMetadata",
45
+ FEATURE_STATS: "featureStats",
46
+ FEATURE_SET_STATS: "featureSetStats",
47
+ OBS_SET_STATS: "obsSetStats"
38
48
  };
39
49
  const FileType$2 = {
40
50
  // Joint file types
@@ -72,6 +82,11 @@ const FileType$2 = {
72
82
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
73
83
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
74
84
  SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
85
+ SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
86
+ COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
87
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
88
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
89
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
75
90
  // AnnData - zipped
76
91
  OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
77
92
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
@@ -84,6 +99,11 @@ const FileType$2 = {
84
99
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
85
100
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
86
101
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
102
+ SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
103
+ COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
104
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
105
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
106
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
87
107
  // AnnData - h5ad via reference spec
88
108
  OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
89
109
  OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
@@ -96,6 +116,11 @@ const FileType$2 = {
96
116
  OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
97
117
  FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
98
118
  SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
119
+ SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
120
+ COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
121
+ COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
122
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
123
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
99
124
  // SpatialData
100
125
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
101
126
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -287,13 +312,277 @@ const CoordinationType$2 = {
287
312
  SAMPLE_SET_FILTER: "sampleSetFilter",
288
313
  SAMPLE_FILTER_MODE: "sampleFilterMode",
289
314
  SAMPLE_SET_COLOR: "sampleSetColor",
315
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
290
316
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
291
317
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
292
318
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
293
319
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
294
320
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
295
- CONTOUR_COLOR: "contourColor"
321
+ CONTOUR_COLOR: "contourColor",
322
+ // For volcano plot:
323
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
324
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
325
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
326
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
327
+ // Treemap
328
+ HIERARCHY_LEVELS: "hierarchyLevels"
296
329
  };
330
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
331
+ function getDefaultExportFromCjs(x) {
332
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
333
+ }
334
+ var loglevel = { exports: {} };
335
+ (function(module) {
336
+ (function(root, definition) {
337
+ if (module.exports) {
338
+ module.exports = definition();
339
+ } else {
340
+ root.log = definition();
341
+ }
342
+ })(commonjsGlobal, function() {
343
+ var noop = function() {
344
+ };
345
+ var undefinedType = "undefined";
346
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
347
+ var logMethods = [
348
+ "trace",
349
+ "debug",
350
+ "info",
351
+ "warn",
352
+ "error"
353
+ ];
354
+ var _loggersByName = {};
355
+ var defaultLogger = null;
356
+ function bindMethod(obj, methodName) {
357
+ var method = obj[methodName];
358
+ if (typeof method.bind === "function") {
359
+ return method.bind(obj);
360
+ } else {
361
+ try {
362
+ return Function.prototype.bind.call(method, obj);
363
+ } catch (e) {
364
+ return function() {
365
+ return Function.prototype.apply.apply(method, [obj, arguments]);
366
+ };
367
+ }
368
+ }
369
+ }
370
+ function traceForIE() {
371
+ if (console.log) {
372
+ if (console.log.apply) {
373
+ console.log.apply(console, arguments);
374
+ } else {
375
+ Function.prototype.apply.apply(console.log, [console, arguments]);
376
+ }
377
+ }
378
+ if (console.trace)
379
+ console.trace();
380
+ }
381
+ function realMethod(methodName) {
382
+ if (methodName === "debug") {
383
+ methodName = "log";
384
+ }
385
+ if (typeof console === undefinedType) {
386
+ return false;
387
+ } else if (methodName === "trace" && isIE) {
388
+ return traceForIE;
389
+ } else if (console[methodName] !== void 0) {
390
+ return bindMethod(console, methodName);
391
+ } else if (console.log !== void 0) {
392
+ return bindMethod(console, "log");
393
+ } else {
394
+ return noop;
395
+ }
396
+ }
397
+ function replaceLoggingMethods() {
398
+ var level = this.getLevel();
399
+ for (var i = 0; i < logMethods.length; i++) {
400
+ var methodName = logMethods[i];
401
+ this[methodName] = i < level ? noop : this.methodFactory(methodName, level, this.name);
402
+ }
403
+ this.log = this.debug;
404
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
405
+ return "No console available for logging";
406
+ }
407
+ }
408
+ function enableLoggingWhenConsoleArrives(methodName) {
409
+ return function() {
410
+ if (typeof console !== undefinedType) {
411
+ replaceLoggingMethods.call(this);
412
+ this[methodName].apply(this, arguments);
413
+ }
414
+ };
415
+ }
416
+ function defaultMethodFactory(methodName, _level, _loggerName) {
417
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
418
+ }
419
+ function Logger(name, factory) {
420
+ var self2 = this;
421
+ var inheritedLevel;
422
+ var defaultLevel;
423
+ var userLevel;
424
+ var storageKey = "loglevel";
425
+ if (typeof name === "string") {
426
+ storageKey += ":" + name;
427
+ } else if (typeof name === "symbol") {
428
+ storageKey = void 0;
429
+ }
430
+ function persistLevelIfPossible(levelNum) {
431
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
432
+ if (typeof window === undefinedType || !storageKey)
433
+ return;
434
+ try {
435
+ window.localStorage[storageKey] = levelName;
436
+ return;
437
+ } catch (ignore) {
438
+ }
439
+ try {
440
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
441
+ } catch (ignore) {
442
+ }
443
+ }
444
+ function getPersistedLevel() {
445
+ var storedLevel;
446
+ if (typeof window === undefinedType || !storageKey)
447
+ return;
448
+ try {
449
+ storedLevel = window.localStorage[storageKey];
450
+ } catch (ignore) {
451
+ }
452
+ if (typeof storedLevel === undefinedType) {
453
+ try {
454
+ var cookie = window.document.cookie;
455
+ var cookieName = encodeURIComponent(storageKey);
456
+ var location = cookie.indexOf(cookieName + "=");
457
+ if (location !== -1) {
458
+ storedLevel = /^([^;]+)/.exec(
459
+ cookie.slice(location + cookieName.length + 1)
460
+ )[1];
461
+ }
462
+ } catch (ignore) {
463
+ }
464
+ }
465
+ if (self2.levels[storedLevel] === void 0) {
466
+ storedLevel = void 0;
467
+ }
468
+ return storedLevel;
469
+ }
470
+ function clearPersistedLevel() {
471
+ if (typeof window === undefinedType || !storageKey)
472
+ return;
473
+ try {
474
+ window.localStorage.removeItem(storageKey);
475
+ } catch (ignore) {
476
+ }
477
+ try {
478
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
479
+ } catch (ignore) {
480
+ }
481
+ }
482
+ function normalizeLevel(input) {
483
+ var level = input;
484
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
485
+ level = self2.levels[level.toUpperCase()];
486
+ }
487
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
488
+ return level;
489
+ } else {
490
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
491
+ }
492
+ }
493
+ self2.name = name;
494
+ self2.levels = {
495
+ "TRACE": 0,
496
+ "DEBUG": 1,
497
+ "INFO": 2,
498
+ "WARN": 3,
499
+ "ERROR": 4,
500
+ "SILENT": 5
501
+ };
502
+ self2.methodFactory = factory || defaultMethodFactory;
503
+ self2.getLevel = function() {
504
+ if (userLevel != null) {
505
+ return userLevel;
506
+ } else if (defaultLevel != null) {
507
+ return defaultLevel;
508
+ } else {
509
+ return inheritedLevel;
510
+ }
511
+ };
512
+ self2.setLevel = function(level, persist) {
513
+ userLevel = normalizeLevel(level);
514
+ if (persist !== false) {
515
+ persistLevelIfPossible(userLevel);
516
+ }
517
+ return replaceLoggingMethods.call(self2);
518
+ };
519
+ self2.setDefaultLevel = function(level) {
520
+ defaultLevel = normalizeLevel(level);
521
+ if (!getPersistedLevel()) {
522
+ self2.setLevel(level, false);
523
+ }
524
+ };
525
+ self2.resetLevel = function() {
526
+ userLevel = null;
527
+ clearPersistedLevel();
528
+ replaceLoggingMethods.call(self2);
529
+ };
530
+ self2.enableAll = function(persist) {
531
+ self2.setLevel(self2.levels.TRACE, persist);
532
+ };
533
+ self2.disableAll = function(persist) {
534
+ self2.setLevel(self2.levels.SILENT, persist);
535
+ };
536
+ self2.rebuild = function() {
537
+ if (defaultLogger !== self2) {
538
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
539
+ }
540
+ replaceLoggingMethods.call(self2);
541
+ if (defaultLogger === self2) {
542
+ for (var childName in _loggersByName) {
543
+ _loggersByName[childName].rebuild();
544
+ }
545
+ }
546
+ };
547
+ inheritedLevel = normalizeLevel(
548
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
549
+ );
550
+ var initialLevel = getPersistedLevel();
551
+ if (initialLevel != null) {
552
+ userLevel = normalizeLevel(initialLevel);
553
+ }
554
+ replaceLoggingMethods.call(self2);
555
+ }
556
+ defaultLogger = new Logger();
557
+ defaultLogger.getLogger = function getLogger(name) {
558
+ if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
559
+ throw new TypeError("You must supply a name when creating a logger.");
560
+ }
561
+ var logger = _loggersByName[name];
562
+ if (!logger) {
563
+ logger = _loggersByName[name] = new Logger(
564
+ name,
565
+ defaultLogger.methodFactory
566
+ );
567
+ }
568
+ return logger;
569
+ };
570
+ var _log = typeof window !== undefinedType ? window.log : void 0;
571
+ defaultLogger.noConflict = function() {
572
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
573
+ window.log = _log;
574
+ }
575
+ return defaultLogger;
576
+ };
577
+ defaultLogger.getLoggers = function getLoggers() {
578
+ return _loggersByName;
579
+ };
580
+ defaultLogger["default"] = defaultLogger;
581
+ return defaultLogger;
582
+ });
583
+ })(loglevel);
584
+ var loglevelExports = loglevel.exports;
585
+ const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
297
586
  const ViewType$1 = {
298
587
  GENES: [
299
588
  "genes",
@@ -460,7 +749,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
460
749
  const oldKeys = Object.keys(oldObj);
461
750
  const propKey = String(prop);
462
751
  if (oldKeys.includes(propKey)) {
463
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
752
+ log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
464
753
  ${oldObj[propKey][1]}`);
465
754
  return oldObj[propKey];
466
755
  }
@@ -16,9 +16,15 @@ export const ViewType: {
16
16
  FEATURE_VALUE_HISTOGRAM: string;
17
17
  DOT_PLOT: string;
18
18
  FEATURE_BAR_PLOT: string;
19
+ VOLCANO_PLOT: string;
20
+ OBS_SET_COMPOSITION_BAR_PLOT: string;
21
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: string;
19
22
  BIOMARKER_SELECT: string;
23
+ COMPARATIVE_HEADING: string;
20
24
  LINK_CONTROLLER: string;
25
+ NEUROGLANCER: string;
21
26
  DUAL_SCATTERPLOT: string;
27
+ TREEMAP: string;
22
28
  };
23
29
  export const DataType: {
24
30
  OBS_LABELS: string;
@@ -35,6 +41,10 @@ export const DataType: {
35
41
  OBS_LOCATIONS: string;
36
42
  SAMPLE_SETS: string;
37
43
  SAMPLE_EDGES: string;
44
+ COMPARISON_METADATA: string;
45
+ FEATURE_STATS: string;
46
+ FEATURE_SET_STATS: string;
47
+ OBS_SET_STATS: string;
38
48
  };
39
49
  export const FileType: {
40
50
  ANNDATA_ZARR: string;
@@ -67,6 +77,11 @@ export const FileType: {
67
77
  OBS_LABELS_ANNDATA_ZARR: string;
68
78
  FEATURE_LABELS_ANNDATA_ZARR: string;
69
79
  SAMPLE_EDGES_ANNDATA_ZARR: string;
80
+ SAMPLE_SETS_ANNDATA_ZARR: string;
81
+ COMPARISON_METADATA_ANNDATA_ZARR: string;
82
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: string;
83
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: string;
84
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: string;
70
85
  OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: string;
71
86
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: string;
72
87
  OBS_SETS_ANNDATA_ZARR_ZIP: string;
@@ -78,6 +93,11 @@ export const FileType: {
78
93
  OBS_LABELS_ANNDATA_ZARR_ZIP: string;
79
94
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: string;
80
95
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: string;
96
+ SAMPLE_SETS_ANNDATA_ZARR_ZIP: string;
97
+ COMPARISON_METADATA_ANNDATA_ZARR_ZIP: string;
98
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: string;
99
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: string;
100
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: string;
81
101
  OBS_FEATURE_MATRIX_ANNDATA_H5AD: string;
82
102
  OBS_FEATURE_COLUMNS_ANNDATA_H5AD: string;
83
103
  OBS_SETS_ANNDATA_H5AD: string;
@@ -89,6 +109,11 @@ export const FileType: {
89
109
  OBS_LABELS_ANNDATA_H5AD: string;
90
110
  FEATURE_LABELS_ANNDATA_H5AD: string;
91
111
  SAMPLE_EDGES_ANNDATA_H5AD: string;
112
+ SAMPLE_SETS_ANNDATA_H5AD: string;
113
+ COMPARISON_METADATA_ANNDATA_H5AD: string;
114
+ COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: string;
115
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: string;
116
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: string;
92
117
  IMAGE_SPATIALDATA_ZARR: string;
93
118
  LABELS_SPATIALDATA_ZARR: string;
94
119
  SHAPES_SPATIALDATA_ZARR: string;
@@ -252,11 +277,17 @@ export const CoordinationType: {
252
277
  SAMPLE_SET_FILTER: string;
253
278
  SAMPLE_FILTER_MODE: string;
254
279
  SAMPLE_SET_COLOR: string;
280
+ SAMPLE_HIGHLIGHT: string;
255
281
  EMBEDDING_POINTS_VISIBLE: string;
256
282
  EMBEDDING_CONTOURS_VISIBLE: string;
257
283
  EMBEDDING_CONTOURS_FILLED: string;
258
284
  EMBEDDING_CONTOUR_PERCENTILES: string;
259
285
  CONTOUR_COLOR_ENCODING: string;
260
286
  CONTOUR_COLOR: string;
287
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: string;
288
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: string;
289
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: string;
290
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: string;
291
+ HIERARCHY_LEVELS: string;
261
292
  };
262
293
  //# sourceMappingURL=constants-merged.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants-merged.d.ts","sourceRoot":"","sources":["../src/constants-merged.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGE"}
1
+ {"version":3,"file":"constants-merged.d.ts","sourceRoot":"","sources":["../src/constants-merged.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGE"}
@@ -5,6 +5,7 @@
5
5
  * backwards compatibility.
6
6
  */
7
7
  import { ViewType as ViewTypeCurr, DataType as DataTypeCurr, FileType as FileTypeCurr, CoordinationType as CoordinationTypeCurr, } from '@vitessce/constants-internal';
8
+ import { log } from '@vitessce/globals';
8
9
  import { ViewType as ViewTypeOld, DataType as DataTypeOld, FileType as FileTypeOld, CoordinationType as CoordinationTypeOld, } from './constants-old.js';
9
10
  /**
10
11
  * Creates a constant with a deprecation message.
@@ -20,7 +21,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
20
21
  const oldKeys = Object.keys(oldObj);
21
22
  const propKey = String(prop);
22
23
  if (oldKeys.includes(propKey)) {
23
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':\n${oldObj[propKey][1]}`);
24
+ log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':\n${oldObj[propKey][1]}`);
24
25
  return oldObj[propKey];
25
26
  }
26
27
  return obj[prop];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/constants",
3
- "version": "3.5.6",
3
+ "version": "3.5.8",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,7 +16,11 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/constants-internal": "3.5.6"
19
+ "@vitessce/globals": "3.5.8",
20
+ "@vitessce/constants-internal": "3.5.8"
21
+ },
22
+ "devDependencies": {
23
+ "@vitessce/types": "3.5.8"
20
24
  },
21
25
  "scripts": {
22
26
  "bundle": "pnpm exec vite build -c ../../scripts/vite.config.js"
@@ -11,6 +11,7 @@ import {
11
11
  FileType as FileTypeCurr,
12
12
  CoordinationType as CoordinationTypeCurr,
13
13
  } from '@vitessce/constants-internal';
14
+ import { log } from '@vitessce/globals';
14
15
  import {
15
16
  ViewType as ViewTypeOld,
16
17
  DataType as DataTypeOld,
@@ -32,7 +33,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
32
33
  const oldKeys = Object.keys(oldObj);
33
34
  const propKey = String(prop);
34
35
  if (oldKeys.includes(propKey)) {
35
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':\n${oldObj[propKey][1]}`);
36
+ log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':\n${oldObj[propKey][1]}`);
36
37
  return oldObj[propKey];
37
38
  }
38
39
  return obj[prop];