amos-tool 1.6.13 → 1.6.14
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/docs/Logger.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/lib/arrayUtils.js +7 -5
- package/package.json +1 -1
package/docs/Logger.html
CHANGED
|
@@ -490,7 +490,7 @@ isDebug: true
|
|
|
490
490
|
<br class="clear">
|
|
491
491
|
|
|
492
492
|
<footer>
|
|
493
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed
|
|
493
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed Jun 12 2024 13:51:57 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
494
494
|
</footer>
|
|
495
495
|
|
|
496
496
|
<script>prettyPrint();</script>
|
package/docs/global.html
CHANGED
|
@@ -18905,7 +18905,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
|
|
|
18905
18905
|
<br class="clear">
|
|
18906
18906
|
|
|
18907
18907
|
<footer>
|
|
18908
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed
|
|
18908
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed Jun 12 2024 13:51:57 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
18909
18909
|
</footer>
|
|
18910
18910
|
|
|
18911
18911
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -797,7 +797,7 @@ convert2BMP(canvas, width, height)</p>
|
|
|
797
797
|
<br class="clear">
|
|
798
798
|
|
|
799
799
|
<footer>
|
|
800
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed
|
|
800
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed Jun 12 2024 13:51:57 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
801
801
|
</footer>
|
|
802
802
|
|
|
803
803
|
<script>prettyPrint();</script>
|
package/lib/arrayUtils.js
CHANGED
|
@@ -18,9 +18,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
18
18
|
return t;
|
|
19
19
|
},
|
|
20
20
|
merge2DArraysDiagonally: function(r, e) {
|
|
21
|
-
for (var t = [], n = Math.max(r.length, e.length), u = 0
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
for (var t = [], n = Math.max(r.length, e.length), u = r[0].length, a = e[0].length, l = function(r) {
|
|
22
|
+
return Array(r).fill(null);
|
|
23
|
+
}, o = 0; o < n; o++) {
|
|
24
|
+
var i = r[o] || l(u), s = e[o] || l(a);
|
|
25
|
+
t[o] = [].concat((0, _toConsumableArray2.default)(i), (0, _toConsumableArray2.default)(s));
|
|
24
26
|
}
|
|
25
27
|
return t;
|
|
26
28
|
},
|
|
@@ -41,8 +43,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
41
43
|
for (var e = {}, t = r.slice().sort((function(r, e) {
|
|
42
44
|
return r - e;
|
|
43
45
|
})), n = 1, u = t[0], a = 0; a < t.length; a++) {
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
+
var l = t[a];
|
|
47
|
+
l !== u && (n = a + 1, u = l), e[l] ? (e[l].count++, e[l].sum += n) : e[l] = {
|
|
46
48
|
count: 1,
|
|
47
49
|
sum: n
|
|
48
50
|
};
|