@jbrowse/core 1.7.1 → 1.7.4

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/util/index.js CHANGED
@@ -1420,13 +1420,13 @@ function getViewParams(model, exportSVG) {
1420
1420
  staticBlocks = _getContainingView.staticBlocks,
1421
1421
  offsetPx = _getContainingView.offsetPx;
1422
1422
 
1423
- var block = (dynamicBlocks === null || dynamicBlocks === void 0 ? void 0 : dynamicBlocks.contentBlocks[0]) || {};
1423
+ var b = (dynamicBlocks === null || dynamicBlocks === void 0 ? void 0 : dynamicBlocks.contentBlocks[0]) || {};
1424
1424
  var staticblock = (staticBlocks === null || staticBlocks === void 0 ? void 0 : staticBlocks.contentBlocks[0]) || {};
1425
1425
  var staticblock1 = (staticBlocks === null || staticBlocks === void 0 ? void 0 : staticBlocks.contentBlocks[1]) || {};
1426
1426
  return {
1427
1427
  offsetPx: exportSVG ? 0 : offsetPx - staticblock.offsetPx,
1428
1428
  offsetPx1: exportSVG ? 0 : offsetPx - staticblock1.offsetPx,
1429
- start: block.start,
1430
- end: block.end
1429
+ start: b.start,
1430
+ end: b.end
1431
1431
  };
1432
1432
  }
package/util/io/index.js CHANGED
@@ -22,15 +22,15 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
22
22
 
23
23
  var _genericFilehandle = require("generic-filehandle");
24
24
 
25
+ var _detectNode = _interopRequireDefault(require("detect-node"));
26
+
25
27
  var _RemoteFileWithRangeCache = require("./RemoteFileWithRangeCache");
26
28
 
27
29
  var _types = require("../types");
28
30
 
29
31
  var _tracks = require("../tracks");
30
32
 
31
- var _detectNode = _interopRequireDefault(require("detect-node"));
32
-
33
- var _util = require("@jbrowse/core/util");
33
+ var _ = require("../");
34
34
 
35
35
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36
36
 
@@ -54,7 +54,7 @@ function openLocation(location, pluginManager) {
54
54
  throw new Error('No local path provided');
55
55
  }
56
56
 
57
- if (_detectNode.default || _util.isElectron) {
57
+ if (_detectNode.default || _.isElectron) {
58
58
  return new _genericFilehandle.LocalFile(location.localPath);
59
59
  } else {
60
60
  throw new Error("can't use local files in the browser");
package/ui/declare.d.js DELETED
@@ -1 +0,0 @@
1
- "use strict";