Fixes after rebasing

This commit is contained in:
Erik Ziegler committed 2020-05-15 14:29:27 +02:00
1 parent 70b7158c9b
commit f3f50d11fe
105 files changed
+920 -3853

No files matched your search

-2
View File
@@ -1,6 +1,4 @@
export default class Queue {
constructor(limit) {
this.limit = limit;
this.size = 0;
@@ -167,8 +167,8 @@ function _getSpacingIssue(spacing, averageSpacing) {
function _getPerpendicularDistance(a, b) {
return Math.sqrt(
Math.pow(a[0] - b[0], 2) +
Math.pow(a[1] - b[1], 2) +
Math.pow(a[2] - b[2], 2)
Math.pow(a[1] - b[1], 2) +
Math.pow(a[2] - b[2], 2)
);
}
+6 -4
View File
@@ -1,7 +1,9 @@
export default function makeDeferred() {
let reject, resolve, promise = new Promise(function (res, rej) {
resolve = res;
reject = rej;
});
let reject,
resolve,
promise = new Promise(function(res, rej) {
resolve = res;
reject = rej;
});
return Object.freeze({ promise, resolve, reject });
}
@@ -116,9 +116,8 @@ function _getPaletteColor(server, paletteColorLookupTableData, lutDescriptor) {
const bits = lutDescriptor[2];
const arrayBufferToPaletteColorLUT = arraybuffer => {
const byteArray = bits === 16 ?
new Uint16Array(arraybuffer) :
new Uint8Array(arraybuffer);
const byteArray =
bits === 16 ? new Uint16Array(arraybuffer) : new Uint8Array(arraybuffer);
const lut = [];
for (let i = 0; i < numLutEntries; i++) {
@@ -124,7 +124,7 @@ export default function getPixelSpacingInformation(instance) {
};
}
log.info(
log.info(
'Unknown combination of PixelSpacing and ImagerPixelSpacing identified. Unable to determine spacing.'
);
}