@jbrowse/plugin-wiggle 1.5.2 → 1.5.6

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.
@@ -170,7 +170,7 @@ declare const stateModelFactory: (pluginManager: PluginManager, configSchema: An
170
170
  }[];
171
171
  renderProps(): any;
172
172
  } & {
173
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
173
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
174
174
  overrideHeight: number;
175
175
  }): Promise<JSX.Element>;
176
176
  } & {
@@ -244,7 +244,7 @@ declare const stateModelFactory: (pluginManager: PluginManager, configSchema: An
244
244
  } & {
245
245
  reload(): Promise<void>;
246
246
  afterAttach(): void;
247
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
247
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
248
248
  overrideHeight: number;
249
249
  }): Promise<JSX.Element>;
250
250
  }, import("mobx-state-tree")._NotCustomized, {
package/dist/index.d.ts CHANGED
@@ -177,7 +177,7 @@ export default class WigglePlugin extends Plugin {
177
177
  }[];
178
178
  renderProps(): any;
179
179
  } & {
180
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
180
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
181
181
  overrideHeight: number;
182
182
  }): Promise<JSX.Element>;
183
183
  } & {
@@ -251,7 +251,7 @@ export default class WigglePlugin extends Plugin {
251
251
  } & {
252
252
  reload(): Promise<void>;
253
253
  afterAttach(): void;
254
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
254
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
255
255
  overrideHeight: number;
256
256
  }): Promise<JSX.Element>;
257
257
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
@@ -420,7 +420,7 @@ export default class WigglePlugin extends Plugin {
420
420
  }[];
421
421
  renderProps(): any;
422
422
  } & {
423
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
423
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
424
424
  overrideHeight: number;
425
425
  }): Promise<JSX.Element>;
426
426
  } & {
@@ -494,7 +494,7 @@ export default class WigglePlugin extends Plugin {
494
494
  } & {
495
495
  reload(): Promise<void>;
496
496
  afterAttach(): void;
497
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
497
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
498
498
  overrideHeight: number;
499
499
  }): Promise<JSX.Element>;
500
500
  }, import("mobx-state-tree")._NotCustomized, {
@@ -686,7 +686,7 @@ export default class WigglePlugin extends Plugin {
686
686
  }[];
687
687
  renderProps(): any;
688
688
  } & {
689
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
689
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
690
690
  overrideHeight: number;
691
691
  }): Promise<JSX.Element>;
692
692
  } & {
@@ -760,7 +760,7 @@ export default class WigglePlugin extends Plugin {
760
760
  } & {
761
761
  reload(): Promise<void>;
762
762
  afterAttach(): void;
763
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/dist/LinearGenomeView").ExportSvgOptions & {
763
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
764
764
  overrideHeight: number;
765
765
  }): Promise<JSX.Element>;
766
766
  }, import("mobx-state-tree")._NotCustomized, {
@@ -52,14 +52,9 @@ function ownKeys(object, enumerableOnly) {
52
52
 
53
53
  if (Object.getOwnPropertySymbols) {
54
54
  var symbols = Object.getOwnPropertySymbols(object);
55
-
56
- if (enumerableOnly) {
57
- symbols = symbols.filter(function (sym) {
58
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
59
- });
60
- }
61
-
62
- keys.push.apply(keys, symbols);
55
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
56
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
57
+ })), keys.push.apply(keys, symbols);
63
58
  }
64
59
 
65
60
  return keys;
@@ -67,19 +62,12 @@ function ownKeys(object, enumerableOnly) {
67
62
 
68
63
  function _objectSpread2(target) {
69
64
  for (var i = 1; i < arguments.length; i++) {
70
- var source = arguments[i] != null ? arguments[i] : {};
71
-
72
- if (i % 2) {
73
- ownKeys(Object(source), true).forEach(function (key) {
74
- _defineProperty(target, key, source[key]);
75
- });
76
- } else if (Object.getOwnPropertyDescriptors) {
77
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
78
- } else {
79
- ownKeys(Object(source)).forEach(function (key) {
80
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
81
- });
82
- }
65
+ var source = null != arguments[i] ? arguments[i] : {};
66
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
67
+ _defineProperty(target, key, source[key]);
68
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
69
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
70
+ });
83
71
  }
84
72
 
85
73
  return target;
@@ -140,6 +128,9 @@ function _defineProperties(target, props) {
140
128
  function _createClass(Constructor, protoProps, staticProps) {
141
129
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
142
130
  if (staticProps) _defineProperties(Constructor, staticProps);
131
+ Object.defineProperty(Constructor, "prototype", {
132
+ writable: false
133
+ });
143
134
  return Constructor;
144
135
  }
145
136
 
@@ -163,12 +154,15 @@ function _inherits(subClass, superClass) {
163
154
  throw new TypeError("Super expression must either be null or a function");
164
155
  }
165
156
 
166
- subClass.prototype = Object.create(superClass && superClass.prototype, {
167
- constructor: {
168
- value: subClass,
169
- writable: true,
170
- configurable: true
171
- }
157
+ Object.defineProperty(subClass, "prototype", {
158
+ value: Object.create(superClass && superClass.prototype, {
159
+ constructor: {
160
+ value: subClass,
161
+ writable: true,
162
+ configurable: true
163
+ }
164
+ }),
165
+ writable: false
172
166
  });
173
167
  if (superClass) _setPrototypeOf(subClass, superClass);
174
168
  }
@@ -248,7 +242,7 @@ function _superPropBase(object, property) {
248
242
  return object;
249
243
  }
250
244
 
251
- function _get(target, property, receiver) {
245
+ function _get() {
252
246
  if (typeof Reflect !== "undefined" && Reflect.get) {
253
247
  _get = Reflect.get;
254
248
  } else {
@@ -259,14 +253,14 @@ function _get(target, property, receiver) {
259
253
  var desc = Object.getOwnPropertyDescriptor(base, property);
260
254
 
261
255
  if (desc.get) {
262
- return desc.get.call(receiver);
256
+ return desc.get.call(arguments.length < 3 ? target : receiver);
263
257
  }
264
258
 
265
259
  return desc.value;
266
260
  };
267
261
  }
268
262
 
269
- return _get(target, property, receiver || target);
263
+ return _get.apply(this, arguments);
270
264
  }
271
265
 
272
266
  function _slicedToArray(arr, i) {
@@ -1674,7 +1668,7 @@ function WiggleConfigFactory(pluginManager) {
1674
1668
 
1675
1669
  function toP() {
1676
1670
  var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
1677
- return parseFloat(s.toPrecision(6));
1671
+ return +(+s).toPrecision(6);
1678
1672
  }
1679
1673
 
1680
1674
  function round(value) {
@@ -1700,8 +1694,7 @@ var useStyles = /*#__PURE__*/core.makeStyles(function (theme) {
1700
1694
  fontSize: theme.typography.pxToRem(10),
1701
1695
  lineHeight: "".concat(round(14 / 10), "em"),
1702
1696
  maxWidth: 300,
1703
- wordWrap: 'break-word',
1704
- fontWeight: theme.typography.fontWeightMedium
1697
+ wordWrap: 'break-word'
1705
1698
  },
1706
1699
  hoverVertical: {
1707
1700
  background: '#333',