icn3d 3.26.2 → 3.26.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.
- package/icn3d.js +21 -4
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +21 -4
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -45399,10 +45399,27 @@ class LineGraph {
|
|
|
45399
45399
|
|
|
45400
45400
|
try {
|
|
45401
45401
|
let dataArray2 = [];
|
|
45402
|
-
|
|
45403
|
-
//
|
|
45404
|
-
//
|
|
45405
|
-
|
|
45402
|
+
|
|
45403
|
+
// let allPromise = Promise.allSettled(ajaxArray);
|
|
45404
|
+
// dataArray2 = await allPromise;
|
|
45405
|
+
|
|
45406
|
+
//split arrays into chunks of 100 jobs
|
|
45407
|
+
let n = (me.bNode) ? 48 : 96;
|
|
45408
|
+
for(let i = 0, il = (ajaxArray.length - 1) / n + 1; i < il; ++i) {
|
|
45409
|
+
let currAjaxArray = [];
|
|
45410
|
+
if(i == il - 1) { // last one
|
|
45411
|
+
currAjaxArray = ajaxArray.slice(i * n, ajaxArray.length);
|
|
45412
|
+
}
|
|
45413
|
+
else {
|
|
45414
|
+
currAjaxArray = ajaxArray.slice(i * n, (i + 1) * n);
|
|
45415
|
+
}
|
|
45416
|
+
|
|
45417
|
+
let currPromise = Promise.allSettled(currAjaxArray);
|
|
45418
|
+
let currDataArray = await currPromise;
|
|
45419
|
+
|
|
45420
|
+
dataArray2 = dataArray2.concat(currDataArray);
|
|
45421
|
+
}
|
|
45422
|
+
|
|
45406
45423
|
|
|
45407
45424
|
let bRound1 = true;
|
|
45408
45425
|
await thisClass.parseAlignData(dataArray2, domainidpairArray, bRound1);
|