igv 2.13.10 → 2.13.11
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/README.md +10 -10
- package/dist/igv.esm.js +19 -16
- package/dist/igv.esm.min.js +2 -2
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +63 -59
- package/dist/igv.min.js +5 -5
- package/dist/igv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/igv.js
CHANGED
|
@@ -21936,7 +21936,7 @@
|
|
|
21936
21936
|
}
|
|
21937
21937
|
};
|
|
21938
21938
|
|
|
21939
|
-
const _version = "2.13.
|
|
21939
|
+
const _version = "2.13.11";
|
|
21940
21940
|
function version$1() {
|
|
21941
21941
|
return _version;
|
|
21942
21942
|
}
|
|
@@ -30096,6 +30096,22 @@
|
|
|
30096
30096
|
})[1] != 7;
|
|
30097
30097
|
});
|
|
30098
30098
|
|
|
30099
|
+
var functionBindNative = !fails(function () {
|
|
30100
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
30101
|
+
var test = function () {/* empty */}.bind();
|
|
30102
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
30103
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
30104
|
+
});
|
|
30105
|
+
|
|
30106
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
30107
|
+
var call$2 = FunctionPrototype$2.call;
|
|
30108
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype$2.bind.bind(call$2, call$2);
|
|
30109
|
+
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
30110
|
+
return function () {
|
|
30111
|
+
return call$2.apply(fn, arguments);
|
|
30112
|
+
};
|
|
30113
|
+
};
|
|
30114
|
+
|
|
30099
30115
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
30100
30116
|
|
|
30101
30117
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -30116,22 +30132,6 @@
|
|
|
30116
30132
|
return typeof argument == 'function';
|
|
30117
30133
|
};
|
|
30118
30134
|
|
|
30119
|
-
var functionBindNative = !fails(function () {
|
|
30120
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
30121
|
-
var test = function () {/* empty */}.bind();
|
|
30122
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
30123
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
30124
|
-
});
|
|
30125
|
-
|
|
30126
|
-
var FunctionPrototype$2 = Function.prototype;
|
|
30127
|
-
var call$2 = FunctionPrototype$2.call;
|
|
30128
|
-
var uncurryThisWithBind = functionBindNative && FunctionPrototype$2.bind.bind(call$2, call$2);
|
|
30129
|
-
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
30130
|
-
return function () {
|
|
30131
|
-
return call$2.apply(fn, arguments);
|
|
30132
|
-
};
|
|
30133
|
-
};
|
|
30134
|
-
|
|
30135
30135
|
// we can't use just `it == null` since of `document.all` special case
|
|
30136
30136
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
30137
30137
|
var isNullOrUndefined = function (it) {
|
|
@@ -30266,7 +30266,7 @@
|
|
|
30266
30266
|
|
|
30267
30267
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
30268
30268
|
|
|
30269
|
-
var engineUserAgent =
|
|
30269
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
30270
30270
|
|
|
30271
30271
|
var process$2 = global$1.process;
|
|
30272
30272
|
var Deno = global$1.Deno;
|
|
@@ -30354,10 +30354,10 @@
|
|
|
30354
30354
|
(module.exports = function (key, value) {
|
|
30355
30355
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
30356
30356
|
})('versions', []).push({
|
|
30357
|
-
version: '3.27.
|
|
30357
|
+
version: '3.27.2',
|
|
30358
30358
|
mode: 'global',
|
|
30359
|
-
copyright: '© 2014-
|
|
30360
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.27.
|
|
30359
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
30360
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE',
|
|
30361
30361
|
source: 'https://github.com/zloirock/core-js'
|
|
30362
30362
|
});
|
|
30363
30363
|
});
|
|
@@ -30369,20 +30369,12 @@
|
|
|
30369
30369
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
|
30370
30370
|
};
|
|
30371
30371
|
|
|
30372
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
30373
30372
|
var Symbol$1 = global$1.Symbol;
|
|
30374
|
-
var
|
|
30375
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
30373
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
30374
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
30376
30375
|
var wellKnownSymbol = function (name) {
|
|
30377
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)
|
|
30378
|
-
|
|
30379
|
-
if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
|
|
30380
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
30381
|
-
} else if (useSymbolAsUid && symbolFor) {
|
|
30382
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
30383
|
-
} else {
|
|
30384
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
30385
|
-
}
|
|
30376
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
30377
|
+
WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name);
|
|
30386
30378
|
}
|
|
30387
30379
|
return WellKnownSymbolsStore[name];
|
|
30388
30380
|
};
|
|
@@ -30541,8 +30533,12 @@
|
|
|
30541
30533
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
30542
30534
|
var enforceInternalState = internalState.enforce;
|
|
30543
30535
|
var getInternalState = internalState.get;
|
|
30536
|
+
var $String = String;
|
|
30544
30537
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
30545
30538
|
var defineProperty = Object.defineProperty;
|
|
30539
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
30540
|
+
var replace = functionUncurryThis(''.replace);
|
|
30541
|
+
var join = functionUncurryThis([].join);
|
|
30546
30542
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
30547
30543
|
return defineProperty(function () {/* empty */}, 'length', {
|
|
30548
30544
|
value: 8
|
|
@@ -30550,8 +30546,8 @@
|
|
|
30550
30546
|
});
|
|
30551
30547
|
var TEMPLATE = String(String).split('String');
|
|
30552
30548
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
30553
|
-
if (String(name)
|
|
30554
|
-
name = '[' + String(name)
|
|
30549
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
30550
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
30555
30551
|
}
|
|
30556
30552
|
if (options && options.getter) name = 'get ' + name;
|
|
30557
30553
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -30576,7 +30572,7 @@
|
|
|
30576
30572
|
} catch (error) {/* empty */}
|
|
30577
30573
|
var state = enforceInternalState(value);
|
|
30578
30574
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
30579
|
-
state.source =
|
|
30575
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
30580
30576
|
}
|
|
30581
30577
|
return value;
|
|
30582
30578
|
};
|
|
@@ -34166,7 +34162,7 @@
|
|
|
34166
34162
|
|
|
34167
34163
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
|
|
34168
34164
|
|
|
34169
|
-
var engineIsNode = classofRaw(
|
|
34165
|
+
var engineIsNode = typeof process != 'undefined' && classofRaw(process) == 'process';
|
|
34170
34166
|
|
|
34171
34167
|
var set = global$1.setImmediate;
|
|
34172
34168
|
var clear = global$1.clearImmediate;
|
|
@@ -34179,10 +34175,10 @@
|
|
|
34179
34175
|
var queue = {};
|
|
34180
34176
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
34181
34177
|
var $location, defer, channel, port;
|
|
34182
|
-
|
|
34178
|
+
fails(function () {
|
|
34183
34179
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
34184
34180
|
$location = global$1.location;
|
|
34185
|
-
}
|
|
34181
|
+
});
|
|
34186
34182
|
var run = function (id) {
|
|
34187
34183
|
if (hasOwnProperty_1(queue, id)) {
|
|
34188
34184
|
var fn = queue[id];
|
|
@@ -34195,10 +34191,10 @@
|
|
|
34195
34191
|
run(id);
|
|
34196
34192
|
};
|
|
34197
34193
|
};
|
|
34198
|
-
var
|
|
34194
|
+
var eventListener = function (event) {
|
|
34199
34195
|
run(event.data);
|
|
34200
34196
|
};
|
|
34201
|
-
var
|
|
34197
|
+
var globalPostMessageDefer = function (id) {
|
|
34202
34198
|
// old engines have not location.origin
|
|
34203
34199
|
global$1.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
34204
34200
|
};
|
|
@@ -34233,13 +34229,13 @@
|
|
|
34233
34229
|
} else if (MessageChannel$1 && !engineIsIos) {
|
|
34234
34230
|
channel = new MessageChannel$1();
|
|
34235
34231
|
port = channel.port2;
|
|
34236
|
-
channel.port1.onmessage =
|
|
34232
|
+
channel.port1.onmessage = eventListener;
|
|
34237
34233
|
defer = functionBindContext(port.postMessage, port);
|
|
34238
34234
|
// Browsers with postMessage, skip WebWorkers
|
|
34239
34235
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
34240
|
-
} else if (global$1.addEventListener && isCallable(global$1.postMessage) && !global$1.importScripts && $location && $location.protocol !== 'file:' && !fails(
|
|
34241
|
-
defer =
|
|
34242
|
-
global$1.addEventListener('message',
|
|
34236
|
+
} else if (global$1.addEventListener && isCallable(global$1.postMessage) && !global$1.importScripts && $location && $location.protocol !== 'file:' && !fails(globalPostMessageDefer)) {
|
|
34237
|
+
defer = globalPostMessageDefer;
|
|
34238
|
+
global$1.addEventListener('message', eventListener, false);
|
|
34243
34239
|
// IE8-
|
|
34244
34240
|
} else if (ONREADYSTATECHANGE in documentCreateElement('script')) {
|
|
34245
34241
|
defer = function (id) {
|
|
@@ -52976,7 +52972,7 @@
|
|
|
52976
52972
|
}
|
|
52977
52973
|
}
|
|
52978
52974
|
if (this.track.autoscale) {
|
|
52979
|
-
let allFeatures;
|
|
52975
|
+
let allFeatures = [];
|
|
52980
52976
|
for (let visibleViewport of visibleViewports) {
|
|
52981
52977
|
const referenceFrame = visibleViewport.referenceFrame;
|
|
52982
52978
|
const start = referenceFrame.start;
|
|
@@ -52985,17 +52981,13 @@
|
|
|
52985
52981
|
// If the "features" object has a getMax function use it. Currently only alignmentContainer implements this, for coverage.
|
|
52986
52982
|
if (typeof visibleViewport.featureCache.features.getMax === 'function') {
|
|
52987
52983
|
const max = visibleViewport.featureCache.features.getMax(start, end);
|
|
52988
|
-
allFeatures
|
|
52984
|
+
allFeatures.push({
|
|
52989
52985
|
value: max
|
|
52990
|
-
}
|
|
52986
|
+
});
|
|
52991
52987
|
} else {
|
|
52992
52988
|
const viewFeatures = FeatureUtils.findOverlapping(visibleViewport.featureCache.features, start, end);
|
|
52993
|
-
|
|
52994
|
-
allFeatures
|
|
52995
|
-
} else {
|
|
52996
|
-
for (let f of viewFeatures) {
|
|
52997
|
-
allFeatures.push(f);
|
|
52998
|
-
}
|
|
52989
|
+
for (let f of viewFeatures) {
|
|
52990
|
+
allFeatures.push(f);
|
|
52999
52991
|
}
|
|
53000
52992
|
}
|
|
53001
52993
|
}
|
|
@@ -54264,9 +54256,6 @@
|
|
|
54264
54256
|
const pixelWidth = options.pixelWidth;
|
|
54265
54257
|
options.pixelHeight;
|
|
54266
54258
|
const bpEnd = bpStart + pixelWidth * bpPerPixel + 1;
|
|
54267
|
-
let lastPixelEnd = -1;
|
|
54268
|
-
let lastValue = -1;
|
|
54269
|
-
let lastNegValue = 1;
|
|
54270
54259
|
const posColor = this.color || DEFAULT_COLOR;
|
|
54271
54260
|
let baselineColor;
|
|
54272
54261
|
if (typeof posColor === "string" && posColor.startsWith("rgb(")) {
|
|
@@ -54280,6 +54269,9 @@
|
|
|
54280
54269
|
// Max can be less than min if config.min is set but max left to autoscale. If that's the case there is
|
|
54281
54270
|
// nothing to paint.
|
|
54282
54271
|
if (this.dataRange.max > this.dataRange.min) {
|
|
54272
|
+
let lastPixelEnd = -1;
|
|
54273
|
+
let lastY;
|
|
54274
|
+
let lastValue = -1;
|
|
54283
54275
|
const y0 = yScale(0);
|
|
54284
54276
|
for (let f of features) {
|
|
54285
54277
|
if (f.end < bpStart) continue;
|
|
@@ -54298,6 +54290,17 @@
|
|
|
54298
54290
|
"fillStyle": color,
|
|
54299
54291
|
"strokeStyle": color
|
|
54300
54292
|
});
|
|
54293
|
+
} else if (this.graphType === "line") {
|
|
54294
|
+
if (lastY != undefined) {
|
|
54295
|
+
IGVGraphics.strokeLine(ctx, lastPixelEnd, lastY, x, y, {
|
|
54296
|
+
"fillStyle": color,
|
|
54297
|
+
"strokeStyle": color
|
|
54298
|
+
});
|
|
54299
|
+
}
|
|
54300
|
+
IGVGraphics.strokeLine(ctx, x, y, x + width, y, {
|
|
54301
|
+
"fillStyle": color,
|
|
54302
|
+
"strokeStyle": color
|
|
54303
|
+
});
|
|
54301
54304
|
} else {
|
|
54302
54305
|
let height = y - y0;
|
|
54303
54306
|
const pixelEnd = x + width;
|
|
@@ -54306,9 +54309,10 @@
|
|
|
54306
54309
|
fillStyle: color
|
|
54307
54310
|
});
|
|
54308
54311
|
}
|
|
54309
|
-
lastValue = f.value;
|
|
54310
|
-
lastPixelEnd = pixelEnd;
|
|
54311
54312
|
}
|
|
54313
|
+
lastPixelEnd = x + width;
|
|
54314
|
+
lastValue = f.value;
|
|
54315
|
+
lastY = y;
|
|
54312
54316
|
}
|
|
54313
54317
|
|
|
54314
54318
|
// If the track includes negative values draw a baseline
|