@vitessce/vega 3.5.2 → 3.5.3

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 +35 -79
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -36533,7 +36533,7 @@ function _toPropertyKey(arg) {
36533
36533
  var key = _toPrimitive(arg, "string");
36534
36534
  return _typeof$1(key) === "symbol" ? key : String(key);
36535
36535
  }
36536
- function _defineProperty$4(obj, key, value2) {
36536
+ function _defineProperty$3(obj, key, value2) {
36537
36537
  key = _toPropertyKey(key);
36538
36538
  if (key in obj) {
36539
36539
  Object.defineProperty(obj, key, {
@@ -36549,7 +36549,7 @@ function _defineProperty$4(obj, key, value2) {
36549
36549
  }
36550
36550
  var specialProperty = "exact-prop: ​";
36551
36551
  function exactProp(propTypes2) {
36552
- return _extends$2({}, propTypes2, _defineProperty$4({}, specialProperty, function(props) {
36552
+ return _extends$2({}, propTypes2, _defineProperty$3({}, specialProperty, function(props) {
36553
36553
  var unsupportedProps = Object.keys(props).filter(function(prop) {
36554
36554
  return !propTypes2.hasOwnProperty(prop);
36555
36555
  });
@@ -36909,20 +36909,7 @@ function lighten(color2, coefficient) {
36909
36909
  }
36910
36910
  return recomposeColor(color2);
36911
36911
  }
36912
- function _defineProperty$3(obj, key, value2) {
36913
- if (key in obj) {
36914
- Object.defineProperty(obj, key, {
36915
- value: value2,
36916
- enumerable: true,
36917
- configurable: true,
36918
- writable: true
36919
- });
36920
- } else {
36921
- obj[key] = value2;
36922
- }
36923
- return obj;
36924
- }
36925
- function _objectWithoutPropertiesLoose$1(source2, excluded) {
36912
+ function _objectWithoutPropertiesLoose(source2, excluded) {
36926
36913
  if (source2 == null)
36927
36914
  return {};
36928
36915
  var target2 = {};
@@ -36936,10 +36923,10 @@ function _objectWithoutPropertiesLoose$1(source2, excluded) {
36936
36923
  }
36937
36924
  return target2;
36938
36925
  }
36939
- function _objectWithoutProperties$1(source2, excluded) {
36926
+ function _objectWithoutProperties(source2, excluded) {
36940
36927
  if (source2 == null)
36941
36928
  return {};
36942
- var target2 = _objectWithoutPropertiesLoose$1(source2, excluded);
36929
+ var target2 = _objectWithoutPropertiesLoose(source2, excluded);
36943
36930
  var key, i;
36944
36931
  if (Object.getOwnPropertySymbols) {
36945
36932
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
@@ -36954,20 +36941,6 @@ function _objectWithoutProperties$1(source2, excluded) {
36954
36941
  }
36955
36942
  return target2;
36956
36943
  }
36957
- function _extends$1() {
36958
- _extends$1 = Object.assign ? Object.assign.bind() : function(target2) {
36959
- for (var i = 1; i < arguments.length; i++) {
36960
- var source2 = arguments[i];
36961
- for (var key in source2) {
36962
- if (Object.prototype.hasOwnProperty.call(source2, key)) {
36963
- target2[key] = source2[key];
36964
- }
36965
- }
36966
- }
36967
- return target2;
36968
- };
36969
- return _extends$1.apply(this, arguments);
36970
- }
36971
36944
  var keys$3 = ["xs", "sm", "md", "lg", "xl"];
36972
36945
  function createBreakpoints(breakpoints) {
36973
36946
  var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
@@ -36976,7 +36949,7 @@ function createBreakpoints(breakpoints) {
36976
36949
  md: 960,
36977
36950
  lg: 1280,
36978
36951
  xl: 1920
36979
- } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties$1(breakpoints, ["values", "unit", "step"]);
36952
+ } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
36980
36953
  function up(key) {
36981
36954
  var value2 = typeof values2[key] === "number" ? values2[key] : key;
36982
36955
  return "@media (min-width:".concat(value2).concat(unit2, ")");
@@ -37010,7 +36983,7 @@ function createBreakpoints(breakpoints) {
37010
36983
  }
37011
36984
  return values2[key];
37012
36985
  }
37013
- return _extends$1({
36986
+ return _extends$2({
37014
36987
  keys: keys$3,
37015
36988
  values: values2,
37016
36989
  up,
@@ -37022,14 +36995,14 @@ function createBreakpoints(breakpoints) {
37022
36995
  }
37023
36996
  function createMixins(breakpoints, spacing, mixins) {
37024
36997
  var _toolbar;
37025
- return _extends$1({
36998
+ return _extends$2({
37026
36999
  gutters: function gutters() {
37027
37000
  var styles2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
37028
37001
  console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
37029
- return _extends$1({
37002
+ return _extends$2({
37030
37003
  paddingLeft: spacing(2),
37031
37004
  paddingRight: spacing(2)
37032
- }, styles2, _defineProperty$3({}, breakpoints.up("sm"), _extends$1({
37005
+ }, styles2, _defineProperty$3({}, breakpoints.up("sm"), _extends$2({
37033
37006
  paddingLeft: spacing(3),
37034
37007
  paddingRight: spacing(3)
37035
37008
  }, styles2[breakpoints.up("sm")])));
@@ -37148,7 +37121,7 @@ function createPalette(palette) {
37148
37121
  light: green$1[300],
37149
37122
  main: green$1[500],
37150
37123
  dark: green$1[700]
37151
- } : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties$1(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
37124
+ } : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
37152
37125
  function getContrastText(background2) {
37153
37126
  var contrastText = getContrastRatio(background2, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
37154
37127
  {
@@ -37163,7 +37136,7 @@ function createPalette(palette) {
37163
37136
  var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
37164
37137
  var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
37165
37138
  var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
37166
- color2 = _extends$1({}, color2);
37139
+ color2 = _extends$2({}, color2);
37167
37140
  if (!color2.main && color2[mainShade]) {
37168
37141
  color2.main = color2[mainShade];
37169
37142
  }
@@ -37189,7 +37162,7 @@ function createPalette(palette) {
37189
37162
  console.error("Material-UI: The palette type `".concat(type2, "` is not supported."));
37190
37163
  }
37191
37164
  }
37192
- var paletteOutput = deepmerge(_extends$1({
37165
+ var paletteOutput = deepmerge(_extends$2({
37193
37166
  // A collection of common colors.
37194
37167
  common: common$1,
37195
37168
  // The palette type, can be light or dark.
@@ -37240,7 +37213,7 @@ var caseAllCaps = {
37240
37213
  };
37241
37214
  var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
37242
37215
  function createTypography(palette, typography) {
37243
- var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties$1(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
37216
+ var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
37244
37217
  {
37245
37218
  if (typeof fontSize2 !== "number") {
37246
37219
  console.error("Material-UI: `fontSize` is required to be a number.");
@@ -37254,7 +37227,7 @@ function createTypography(palette, typography) {
37254
37227
  return "".concat(size / htmlFontSize * coef, "rem");
37255
37228
  };
37256
37229
  var buildVariant = function buildVariant2(fontWeight, size, lineHeight2, letterSpacing, casing) {
37257
- return _extends$1({
37230
+ return _extends$2({
37258
37231
  fontFamily: fontFamily2,
37259
37232
  fontWeight,
37260
37233
  fontSize: pxToRem(size),
@@ -37279,7 +37252,7 @@ function createTypography(palette, typography) {
37279
37252
  caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
37280
37253
  overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
37281
37254
  };
37282
- return deepmerge(_extends$1({
37255
+ return deepmerge(_extends$2({
37283
37256
  htmlFontSize,
37284
37257
  pxToRem,
37285
37258
  round: roundWithDeprecationWarning,
@@ -37459,7 +37432,7 @@ const transitions = {
37459
37432
  create: function create2() {
37460
37433
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
37461
37434
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
37462
- var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties$1(options, ["duration", "easing", "delay"]);
37435
+ var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
37463
37436
  {
37464
37437
  var isString2 = function isString3(value2) {
37465
37438
  return typeof value2 === "string";
@@ -37507,7 +37480,7 @@ var zIndex = {
37507
37480
  const zIndex$1 = zIndex;
37508
37481
  function createTheme() {
37509
37482
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
37510
- var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties$1(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
37483
+ var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
37511
37484
  var palette = createPalette(paletteInput);
37512
37485
  var breakpoints = createBreakpoints(breakpointsInput);
37513
37486
  var spacing = createSpacing(spacingInput);
@@ -37656,20 +37629,6 @@ function _assertThisInitialized(self2) {
37656
37629
  }
37657
37630
  return self2;
37658
37631
  }
37659
- function _objectWithoutPropertiesLoose(source2, excluded) {
37660
- if (source2 == null)
37661
- return {};
37662
- var target2 = {};
37663
- var sourceKeys = Object.keys(source2);
37664
- var key, i;
37665
- for (i = 0; i < sourceKeys.length; i++) {
37666
- key = sourceKeys[i];
37667
- if (excluded.indexOf(key) >= 0)
37668
- continue;
37669
- target2[key] = source2[key];
37670
- }
37671
- return target2;
37672
- }
37673
37632
  var plainObjectConstrurctor = {}.constructor;
37674
37633
  function cloneStyle(style) {
37675
37634
  if (style == null || typeof style !== "object")
@@ -39144,6 +39103,20 @@ var functionPlugin = function functionPlugin2() {
39144
39103
  };
39145
39104
  };
39146
39105
  const functions = functionPlugin;
39106
+ function _extends$1() {
39107
+ _extends$1 = Object.assign ? Object.assign.bind() : function(target2) {
39108
+ for (var i = 1; i < arguments.length; i++) {
39109
+ var source2 = arguments[i];
39110
+ for (var key in source2) {
39111
+ if (Object.prototype.hasOwnProperty.call(source2, key)) {
39112
+ target2[key] = source2[key];
39113
+ }
39114
+ }
39115
+ }
39116
+ return target2;
39117
+ };
39118
+ return _extends$1.apply(this, arguments);
39119
+ }
39147
39120
  var at = "@global";
39148
39121
  var atPrefix = "@global ";
39149
39122
  var GlobalContainerRule = /* @__PURE__ */ function() {
@@ -40068,24 +40041,6 @@ function jssPreset() {
40068
40041
  ]
40069
40042
  };
40070
40043
  }
40071
- function _objectWithoutProperties(source2, excluded) {
40072
- if (source2 == null)
40073
- return {};
40074
- var target2 = _objectWithoutPropertiesLoose(source2, excluded);
40075
- var key, i;
40076
- if (Object.getOwnPropertySymbols) {
40077
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
40078
- for (i = 0; i < sourceSymbolKeys.length; i++) {
40079
- key = sourceSymbolKeys[i];
40080
- if (excluded.indexOf(key) >= 0)
40081
- continue;
40082
- if (!Object.prototype.propertyIsEnumerable.call(source2, key))
40083
- continue;
40084
- target2[key] = source2[key];
40085
- }
40086
- }
40087
- return target2;
40088
- }
40089
40044
  function mergeClasses() {
40090
40045
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
40091
40046
  var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
@@ -40497,7 +40452,7 @@ var defaultTheme = createTheme();
40497
40452
  const defaultTheme$1 = defaultTheme;
40498
40453
  function makeStyles(stylesOrCreator) {
40499
40454
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
40500
- return makeStyles$1(stylesOrCreator, _extends$1({
40455
+ return makeStyles$1(stylesOrCreator, _extends$2({
40501
40456
  defaultTheme: defaultTheme$1
40502
40457
  }, options));
40503
40458
  }
@@ -49679,7 +49634,8 @@ const ViewType$1 = {
49679
49634
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
49680
49635
  DOT_PLOT: "dotPlot",
49681
49636
  FEATURE_BAR_PLOT: "featureBarPlot",
49682
- BIOMARKER_SELECT: "biomarkerSelect"
49637
+ BIOMARKER_SELECT: "biomarkerSelect",
49638
+ LINK_CONTROLLER: "linkController"
49683
49639
  };
49684
49640
  const DataType$1 = {
49685
49641
  OBS_LABELS: "obsLabels",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
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.2",
26
- "@vitessce/legend": "3.5.2"
25
+ "@vitessce/tooltip": "3.5.3",
26
+ "@vitessce/legend": "3.5.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "^18.0.0",