@jbrowse/plugin-wiggle 1.5.3 → 1.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.
@@ -45,14 +45,9 @@ function ownKeys(object, enumerableOnly) {
45
45
 
46
46
  if (Object.getOwnPropertySymbols) {
47
47
  var symbols = Object.getOwnPropertySymbols(object);
48
-
49
- if (enumerableOnly) {
50
- symbols = symbols.filter(function (sym) {
51
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
52
- });
53
- }
54
-
55
- keys.push.apply(keys, symbols);
48
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
49
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
50
+ })), keys.push.apply(keys, symbols);
56
51
  }
57
52
 
58
53
  return keys;
@@ -60,19 +55,12 @@ function ownKeys(object, enumerableOnly) {
60
55
 
61
56
  function _objectSpread2(target) {
62
57
  for (var i = 1; i < arguments.length; i++) {
63
- var source = arguments[i] != null ? arguments[i] : {};
64
-
65
- if (i % 2) {
66
- ownKeys(Object(source), true).forEach(function (key) {
67
- _defineProperty(target, key, source[key]);
68
- });
69
- } else if (Object.getOwnPropertyDescriptors) {
70
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
71
- } else {
72
- ownKeys(Object(source)).forEach(function (key) {
73
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
74
- });
75
- }
58
+ var source = null != arguments[i] ? arguments[i] : {};
59
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
60
+ _defineProperty(target, key, source[key]);
61
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
62
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
63
+ });
76
64
  }
77
65
 
78
66
  return target;
@@ -133,6 +121,9 @@ function _defineProperties(target, props) {
133
121
  function _createClass(Constructor, protoProps, staticProps) {
134
122
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
135
123
  if (staticProps) _defineProperties(Constructor, staticProps);
124
+ Object.defineProperty(Constructor, "prototype", {
125
+ writable: false
126
+ });
136
127
  return Constructor;
137
128
  }
138
129
 
@@ -156,12 +147,15 @@ function _inherits(subClass, superClass) {
156
147
  throw new TypeError("Super expression must either be null or a function");
157
148
  }
158
149
 
159
- subClass.prototype = Object.create(superClass && superClass.prototype, {
160
- constructor: {
161
- value: subClass,
162
- writable: true,
163
- configurable: true
164
- }
150
+ Object.defineProperty(subClass, "prototype", {
151
+ value: Object.create(superClass && superClass.prototype, {
152
+ constructor: {
153
+ value: subClass,
154
+ writable: true,
155
+ configurable: true
156
+ }
157
+ }),
158
+ writable: false
165
159
  });
166
160
  if (superClass) _setPrototypeOf(subClass, superClass);
167
161
  }
@@ -241,7 +235,7 @@ function _superPropBase(object, property) {
241
235
  return object;
242
236
  }
243
237
 
244
- function _get(target, property, receiver) {
238
+ function _get() {
245
239
  if (typeof Reflect !== "undefined" && Reflect.get) {
246
240
  _get = Reflect.get;
247
241
  } else {
@@ -252,14 +246,14 @@ function _get(target, property, receiver) {
252
246
  var desc = Object.getOwnPropertyDescriptor(base, property);
253
247
 
254
248
  if (desc.get) {
255
- return desc.get.call(receiver);
249
+ return desc.get.call(arguments.length < 3 ? target : receiver);
256
250
  }
257
251
 
258
252
  return desc.value;
259
253
  };
260
254
  }
261
255
 
262
- return _get(target, property, receiver || target);
256
+ return _get.apply(this, arguments);
263
257
  }
264
258
 
265
259
  function _slicedToArray(arr, i) {
@@ -1667,7 +1661,7 @@ function WiggleConfigFactory(pluginManager) {
1667
1661
 
1668
1662
  function toP() {
1669
1663
  var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
1670
- return parseFloat(s.toPrecision(6));
1664
+ return +(+s).toPrecision(6);
1671
1665
  }
1672
1666
 
1673
1667
  function round(value) {
@@ -1693,8 +1687,7 @@ var useStyles = /*#__PURE__*/makeStyles(function (theme) {
1693
1687
  fontSize: theme.typography.pxToRem(10),
1694
1688
  lineHeight: "".concat(round(14 / 10), "em"),
1695
1689
  maxWidth: 300,
1696
- wordWrap: 'break-word',
1697
- fontWeight: theme.typography.fontWeightMedium
1690
+ wordWrap: 'break-word'
1698
1691
  },
1699
1692
  hoverVertical: {
1700
1693
  background: '#333',