dcmjs 0.50.3 → 0.51.0
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/build/dcmjs.es.js +618 -661
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +618 -661
- package/build/dcmjs.js.map +1 -1
- package/build/dcmjs.min.js +1 -1
- package/build/dcmjs.min.js.map +1 -1
- package/package.json +2 -2
package/build/dcmjs.js
CHANGED
|
@@ -8027,7 +8027,7 @@
|
|
|
8027
8027
|
/**
|
|
8028
8028
|
* Consumes the already written or read data, up to the given offset.
|
|
8029
8029
|
*/
|
|
8030
|
-
_createClass(SplitDataView, [{
|
|
8030
|
+
return _createClass(SplitDataView, [{
|
|
8031
8031
|
key: "consume",
|
|
8032
8032
|
value: function consume(offset) {
|
|
8033
8033
|
this.consumeOffset = Math.max(offset, this.consumeOffset);
|
|
@@ -8265,61 +8265,69 @@
|
|
|
8265
8265
|
return view.getUint32(offset - viewOffset, isLittleEndian);
|
|
8266
8266
|
}
|
|
8267
8267
|
}, {
|
|
8268
|
-
key: "
|
|
8269
|
-
value: function
|
|
8270
|
-
var _this$findView4 = this.findView(offset,
|
|
8268
|
+
key: "getBigUint64",
|
|
8269
|
+
value: function getBigUint64(offset, isLittleEndian) {
|
|
8270
|
+
var _this$findView4 = this.findView(offset, 8),
|
|
8271
8271
|
view = _this$findView4.view,
|
|
8272
8272
|
viewOffset = _this$findView4.viewOffset;
|
|
8273
|
+
return view.getBigUint64(offset - viewOffset, isLittleEndian);
|
|
8274
|
+
}
|
|
8275
|
+
}, {
|
|
8276
|
+
key: "getFloat32",
|
|
8277
|
+
value: function getFloat32(offset, isLittleEndian) {
|
|
8278
|
+
var _this$findView5 = this.findView(offset, 4),
|
|
8279
|
+
view = _this$findView5.view,
|
|
8280
|
+
viewOffset = _this$findView5.viewOffset;
|
|
8273
8281
|
return view.getFloat32(offset - viewOffset, isLittleEndian);
|
|
8274
8282
|
}
|
|
8275
8283
|
}, {
|
|
8276
8284
|
key: "getFloat64",
|
|
8277
8285
|
value: function getFloat64(offset, isLittleEndian) {
|
|
8278
|
-
var _this$
|
|
8279
|
-
view = _this$
|
|
8280
|
-
viewOffset = _this$
|
|
8286
|
+
var _this$findView6 = this.findView(offset, 8),
|
|
8287
|
+
view = _this$findView6.view,
|
|
8288
|
+
viewOffset = _this$findView6.viewOffset;
|
|
8281
8289
|
return view.getFloat64(offset - viewOffset, isLittleEndian);
|
|
8282
8290
|
}
|
|
8283
8291
|
}, {
|
|
8284
8292
|
key: "getInt8",
|
|
8285
8293
|
value: function getInt8(offset) {
|
|
8286
|
-
var _this$
|
|
8287
|
-
view = _this$
|
|
8288
|
-
viewOffset = _this$
|
|
8294
|
+
var _this$findView7 = this.findView(offset, 1),
|
|
8295
|
+
view = _this$findView7.view,
|
|
8296
|
+
viewOffset = _this$findView7.viewOffset;
|
|
8289
8297
|
return view.getInt8(offset - viewOffset);
|
|
8290
8298
|
}
|
|
8291
8299
|
}, {
|
|
8292
8300
|
key: "getInt16",
|
|
8293
8301
|
value: function getInt16(offset, isLittleEndian) {
|
|
8294
|
-
var _this$
|
|
8295
|
-
view = _this$
|
|
8296
|
-
viewOffset = _this$
|
|
8302
|
+
var _this$findView8 = this.findView(offset, 2),
|
|
8303
|
+
view = _this$findView8.view,
|
|
8304
|
+
viewOffset = _this$findView8.viewOffset;
|
|
8297
8305
|
return view.getInt16(offset - viewOffset, isLittleEndian);
|
|
8298
8306
|
}
|
|
8299
8307
|
}, {
|
|
8300
8308
|
key: "getInt32",
|
|
8301
8309
|
value: function getInt32(offset, isLittleEndian) {
|
|
8302
|
-
var _this$
|
|
8303
|
-
view = _this$
|
|
8304
|
-
viewOffset = _this$
|
|
8310
|
+
var _this$findView9 = this.findView(offset, 4),
|
|
8311
|
+
view = _this$findView9.view,
|
|
8312
|
+
viewOffset = _this$findView9.viewOffset;
|
|
8305
8313
|
return view.getInt32(offset - viewOffset, isLittleEndian);
|
|
8306
8314
|
}
|
|
8307
8315
|
}, {
|
|
8308
8316
|
key: "setUint8",
|
|
8309
8317
|
value: function setUint8(offset, value) {
|
|
8310
|
-
var _this$
|
|
8311
|
-
view = _this$
|
|
8312
|
-
viewOffset = _this$
|
|
8318
|
+
var _this$findView0 = this.findView(offset, 1),
|
|
8319
|
+
view = _this$findView0.view,
|
|
8320
|
+
viewOffset = _this$findView0.viewOffset;
|
|
8313
8321
|
view.setUint8(offset - viewOffset, value);
|
|
8314
8322
|
// Commit is unneeded since 1 byte will always be available
|
|
8315
8323
|
}
|
|
8316
8324
|
}, {
|
|
8317
8325
|
key: "setUint16",
|
|
8318
8326
|
value: function setUint16(offset, value, isLittleEndian) {
|
|
8319
|
-
var _this$
|
|
8320
|
-
view = _this$
|
|
8321
|
-
viewOffset = _this$
|
|
8322
|
-
writeCommit = _this$
|
|
8327
|
+
var _this$findView1 = this.findView(offset, 2),
|
|
8328
|
+
view = _this$findView1.view,
|
|
8329
|
+
viewOffset = _this$findView1.viewOffset,
|
|
8330
|
+
writeCommit = _this$findView1.writeCommit;
|
|
8323
8331
|
view.setUint16(offset - viewOffset, value, isLittleEndian);
|
|
8324
8332
|
if (writeCommit) {
|
|
8325
8333
|
this.writeCommit(view, offset);
|
|
@@ -8328,22 +8336,34 @@
|
|
|
8328
8336
|
}, {
|
|
8329
8337
|
key: "setUint32",
|
|
8330
8338
|
value: function setUint32(offset, value, isLittleEndian) {
|
|
8331
|
-
var _this$
|
|
8332
|
-
view = _this$
|
|
8333
|
-
viewOffset = _this$
|
|
8334
|
-
writeCommit = _this$
|
|
8339
|
+
var _this$findView10 = this.findView(offset, 4),
|
|
8340
|
+
view = _this$findView10.view,
|
|
8341
|
+
viewOffset = _this$findView10.viewOffset,
|
|
8342
|
+
writeCommit = _this$findView10.writeCommit;
|
|
8335
8343
|
view.setUint32(offset - viewOffset, value, isLittleEndian);
|
|
8336
8344
|
if (writeCommit) {
|
|
8337
8345
|
this.writeCommit(view, offset);
|
|
8338
8346
|
}
|
|
8339
8347
|
}
|
|
8348
|
+
}, {
|
|
8349
|
+
key: "setBigUint64",
|
|
8350
|
+
value: function setBigUint64(offset, value, isLittleEndian) {
|
|
8351
|
+
var _this$findView11 = this.findView(offset, 8),
|
|
8352
|
+
view = _this$findView11.view,
|
|
8353
|
+
viewOffset = _this$findView11.viewOffset,
|
|
8354
|
+
writeCommit = _this$findView11.writeCommit;
|
|
8355
|
+
view.setBigUint64(offset - viewOffset, value, isLittleEndian);
|
|
8356
|
+
if (writeCommit) {
|
|
8357
|
+
this.writeCommit(view, offset);
|
|
8358
|
+
}
|
|
8359
|
+
}
|
|
8340
8360
|
}, {
|
|
8341
8361
|
key: "setFloat32",
|
|
8342
8362
|
value: function setFloat32(offset, value, isLittleEndian) {
|
|
8343
|
-
var _this$
|
|
8344
|
-
view = _this$
|
|
8345
|
-
viewOffset = _this$
|
|
8346
|
-
writeCommit = _this$
|
|
8363
|
+
var _this$findView12 = this.findView(offset, 4),
|
|
8364
|
+
view = _this$findView12.view,
|
|
8365
|
+
viewOffset = _this$findView12.viewOffset,
|
|
8366
|
+
writeCommit = _this$findView12.writeCommit;
|
|
8347
8367
|
view.setFloat32(offset - viewOffset, value, isLittleEndian);
|
|
8348
8368
|
if (writeCommit) {
|
|
8349
8369
|
this.writeCommit(view, offset);
|
|
@@ -8352,10 +8372,10 @@
|
|
|
8352
8372
|
}, {
|
|
8353
8373
|
key: "setFloat64",
|
|
8354
8374
|
value: function setFloat64(offset, value, isLittleEndian) {
|
|
8355
|
-
var _this$
|
|
8356
|
-
view = _this$
|
|
8357
|
-
viewOffset = _this$
|
|
8358
|
-
writeCommit = _this$
|
|
8375
|
+
var _this$findView13 = this.findView(offset, 8),
|
|
8376
|
+
view = _this$findView13.view,
|
|
8377
|
+
viewOffset = _this$findView13.viewOffset,
|
|
8378
|
+
writeCommit = _this$findView13.writeCommit;
|
|
8359
8379
|
view.setFloat64(offset - viewOffset, value, isLittleEndian);
|
|
8360
8380
|
if (writeCommit) {
|
|
8361
8381
|
this.writeCommit(view, offset);
|
|
@@ -8364,19 +8384,19 @@
|
|
|
8364
8384
|
}, {
|
|
8365
8385
|
key: "setInt8",
|
|
8366
8386
|
value: function setInt8(offset, value) {
|
|
8367
|
-
var _this$
|
|
8368
|
-
view = _this$
|
|
8369
|
-
viewOffset = _this$
|
|
8387
|
+
var _this$findView14 = this.findView(offset, 1),
|
|
8388
|
+
view = _this$findView14.view,
|
|
8389
|
+
viewOffset = _this$findView14.viewOffset;
|
|
8370
8390
|
view.setInt8(offset - viewOffset, value);
|
|
8371
8391
|
// Commit is unneeded since 1 byte will always be available
|
|
8372
8392
|
}
|
|
8373
8393
|
}, {
|
|
8374
8394
|
key: "setInt16",
|
|
8375
8395
|
value: function setInt16(offset, value, isLittleEndian) {
|
|
8376
|
-
var _this$
|
|
8377
|
-
view = _this$
|
|
8378
|
-
viewOffset = _this$
|
|
8379
|
-
writeCommit = _this$
|
|
8396
|
+
var _this$findView15 = this.findView(offset, 2),
|
|
8397
|
+
view = _this$findView15.view,
|
|
8398
|
+
viewOffset = _this$findView15.viewOffset,
|
|
8399
|
+
writeCommit = _this$findView15.writeCommit;
|
|
8380
8400
|
view.setInt16(offset - viewOffset, value, isLittleEndian);
|
|
8381
8401
|
if (writeCommit) {
|
|
8382
8402
|
this.writeCommit(view, offset);
|
|
@@ -8385,10 +8405,10 @@
|
|
|
8385
8405
|
}, {
|
|
8386
8406
|
key: "setInt32",
|
|
8387
8407
|
value: function setInt32(offset, value, isLittleEndian) {
|
|
8388
|
-
var _this$
|
|
8389
|
-
view = _this$
|
|
8390
|
-
viewOffset = _this$
|
|
8391
|
-
writeCommit = _this$
|
|
8408
|
+
var _this$findView16 = this.findView(offset, 4),
|
|
8409
|
+
view = _this$findView16.view,
|
|
8410
|
+
viewOffset = _this$findView16.viewOffset,
|
|
8411
|
+
writeCommit = _this$findView16.writeCommit;
|
|
8392
8412
|
view.setInt32(offset - viewOffset, value, isLittleEndian);
|
|
8393
8413
|
if (writeCommit) {
|
|
8394
8414
|
this.writeCommit(view, offset);
|
|
@@ -8441,7 +8461,6 @@
|
|
|
8441
8461
|
};
|
|
8442
8462
|
}
|
|
8443
8463
|
}]);
|
|
8444
|
-
return SplitDataView;
|
|
8445
8464
|
}();
|
|
8446
8465
|
|
|
8447
8466
|
/**
|
|
@@ -8498,7 +8517,7 @@
|
|
|
8498
8517
|
/**
|
|
8499
8518
|
* Mark this stream as having finished being written or read from
|
|
8500
8519
|
*/
|
|
8501
|
-
_createClass(BufferStream, [{
|
|
8520
|
+
return _createClass(BufferStream, [{
|
|
8502
8521
|
key: "setComplete",
|
|
8503
8522
|
value: function setComplete() {
|
|
8504
8523
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
@@ -8531,14 +8550,14 @@
|
|
|
8531
8550
|
var bytes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1024;
|
|
8532
8551
|
if (!this.isAvailable(bytes)) {
|
|
8533
8552
|
return new Promise(function (resolve) {
|
|
8534
|
-
var
|
|
8553
|
+
var _recheckAvailable = function recheckAvailable() {
|
|
8535
8554
|
if (_this.isAvailable(bytes)) {
|
|
8536
8555
|
resolve(true);
|
|
8537
8556
|
return;
|
|
8538
8557
|
}
|
|
8539
|
-
_this.availableListeners.push(
|
|
8558
|
+
_this.availableListeners.push(_recheckAvailable);
|
|
8540
8559
|
};
|
|
8541
|
-
|
|
8560
|
+
_recheckAvailable();
|
|
8542
8561
|
});
|
|
8543
8562
|
}
|
|
8544
8563
|
return true;
|
|
@@ -8644,6 +8663,13 @@
|
|
|
8644
8663
|
this.view.setInt32(this.offset, toInt(value), this.isLittleEndian);
|
|
8645
8664
|
return this.increment(4);
|
|
8646
8665
|
}
|
|
8666
|
+
}, {
|
|
8667
|
+
key: "writeBigUint64",
|
|
8668
|
+
value: function writeBigUint64(value) {
|
|
8669
|
+
this.checkSize(8);
|
|
8670
|
+
this.view.setBigUint64(this.offset, value, this.isLittleEndian);
|
|
8671
|
+
return this.increment(8);
|
|
8672
|
+
}
|
|
8647
8673
|
}, {
|
|
8648
8674
|
key: "writeFloat",
|
|
8649
8675
|
value: function writeFloat(value) {
|
|
@@ -8679,6 +8705,13 @@
|
|
|
8679
8705
|
}
|
|
8680
8706
|
return this.increment(len);
|
|
8681
8707
|
}
|
|
8708
|
+
}, {
|
|
8709
|
+
key: "readBigUint64",
|
|
8710
|
+
value: function readBigUint64() {
|
|
8711
|
+
var val = this.view.getBigUint64(this.offset, this.isLittleEndian);
|
|
8712
|
+
this.increment(8);
|
|
8713
|
+
return val;
|
|
8714
|
+
}
|
|
8682
8715
|
}, {
|
|
8683
8716
|
key: "readUint32",
|
|
8684
8717
|
value: function readUint32() {
|
|
@@ -8846,64 +8879,64 @@
|
|
|
8846
8879
|
key: "fromAsyncStream",
|
|
8847
8880
|
value: (function () {
|
|
8848
8881
|
var _fromAsyncStream = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(stream) {
|
|
8849
|
-
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab;
|
|
8850
|
-
return _regeneratorRuntime().wrap(function
|
|
8882
|
+
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab, _t;
|
|
8883
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
8851
8884
|
while (1) switch (_context.prev = _context.next) {
|
|
8852
8885
|
case 0:
|
|
8853
8886
|
_iteratorAbruptCompletion = false;
|
|
8854
8887
|
_didIteratorError = false;
|
|
8855
|
-
_context.prev =
|
|
8888
|
+
_context.prev = 1;
|
|
8856
8889
|
_iterator = _asyncIterator(stream);
|
|
8857
|
-
case
|
|
8858
|
-
_context.next =
|
|
8890
|
+
case 2:
|
|
8891
|
+
_context.next = 3;
|
|
8859
8892
|
return _iterator.next();
|
|
8860
|
-
case
|
|
8893
|
+
case 3:
|
|
8861
8894
|
if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
|
|
8862
|
-
_context.next =
|
|
8895
|
+
_context.next = 5;
|
|
8863
8896
|
break;
|
|
8864
8897
|
}
|
|
8865
8898
|
chunk = _step.value;
|
|
8866
8899
|
ab = chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.byteLength);
|
|
8867
8900
|
this.addBuffer(ab);
|
|
8868
|
-
case
|
|
8901
|
+
case 4:
|
|
8869
8902
|
_iteratorAbruptCompletion = false;
|
|
8870
|
-
_context.next =
|
|
8903
|
+
_context.next = 2;
|
|
8871
8904
|
break;
|
|
8872
|
-
case
|
|
8873
|
-
_context.next =
|
|
8905
|
+
case 5:
|
|
8906
|
+
_context.next = 7;
|
|
8874
8907
|
break;
|
|
8875
|
-
case
|
|
8876
|
-
_context.prev =
|
|
8877
|
-
|
|
8908
|
+
case 6:
|
|
8909
|
+
_context.prev = 6;
|
|
8910
|
+
_t = _context["catch"](1);
|
|
8878
8911
|
_didIteratorError = true;
|
|
8879
|
-
_iteratorError =
|
|
8880
|
-
case
|
|
8881
|
-
_context.prev =
|
|
8882
|
-
_context.prev =
|
|
8912
|
+
_iteratorError = _t;
|
|
8913
|
+
case 7:
|
|
8914
|
+
_context.prev = 7;
|
|
8915
|
+
_context.prev = 8;
|
|
8883
8916
|
if (!(_iteratorAbruptCompletion && _iterator.return != null)) {
|
|
8884
|
-
_context.next =
|
|
8917
|
+
_context.next = 9;
|
|
8885
8918
|
break;
|
|
8886
8919
|
}
|
|
8887
|
-
_context.next =
|
|
8920
|
+
_context.next = 9;
|
|
8888
8921
|
return _iterator.return();
|
|
8889
|
-
case
|
|
8890
|
-
_context.prev =
|
|
8922
|
+
case 9:
|
|
8923
|
+
_context.prev = 9;
|
|
8891
8924
|
if (!_didIteratorError) {
|
|
8892
|
-
_context.next =
|
|
8925
|
+
_context.next = 10;
|
|
8893
8926
|
break;
|
|
8894
8927
|
}
|
|
8895
8928
|
throw _iteratorError;
|
|
8896
|
-
case
|
|
8897
|
-
return _context.finish(
|
|
8898
|
-
case
|
|
8899
|
-
return _context.finish(
|
|
8900
|
-
case
|
|
8929
|
+
case 10:
|
|
8930
|
+
return _context.finish(9);
|
|
8931
|
+
case 11:
|
|
8932
|
+
return _context.finish(7);
|
|
8933
|
+
case 12:
|
|
8901
8934
|
this.setComplete();
|
|
8902
|
-
case
|
|
8935
|
+
case 13:
|
|
8903
8936
|
case "end":
|
|
8904
8937
|
return _context.stop();
|
|
8905
8938
|
}
|
|
8906
|
-
}, _callee, this, [[
|
|
8939
|
+
}, _callee, this, [[1, 6, 7, 12], [8,, 9, 11]]);
|
|
8907
8940
|
}));
|
|
8908
8941
|
function fromAsyncStream(_x) {
|
|
8909
8942
|
return _fromAsyncStream.apply(this, arguments);
|
|
@@ -9020,10 +9053,8 @@
|
|
|
9020
9053
|
return this.view.getBufferMemoryInfo(this.offset);
|
|
9021
9054
|
}
|
|
9022
9055
|
}]);
|
|
9023
|
-
return BufferStream;
|
|
9024
9056
|
}();
|
|
9025
|
-
var ReadBufferStream = /*#__PURE__*/function (
|
|
9026
|
-
_inherits(ReadBufferStream, _BufferStream);
|
|
9057
|
+
var ReadBufferStream = /*#__PURE__*/function (_BufferStream2) {
|
|
9027
9058
|
function ReadBufferStream(buffer, littleEndian) {
|
|
9028
9059
|
var _ref, _options$start;
|
|
9029
9060
|
var _this2;
|
|
@@ -9051,7 +9082,8 @@
|
|
|
9051
9082
|
_this2.endOffset = _this2.size;
|
|
9052
9083
|
return _this2;
|
|
9053
9084
|
}
|
|
9054
|
-
|
|
9085
|
+
_inherits(ReadBufferStream, _BufferStream2);
|
|
9086
|
+
return _createClass(ReadBufferStream, [{
|
|
9055
9087
|
key: "setDecoder",
|
|
9056
9088
|
value: function setDecoder(decoder) {
|
|
9057
9089
|
this.decoder = decoder;
|
|
@@ -9143,19 +9175,17 @@
|
|
|
9143
9175
|
throw new Error(stream, "concat not implemented");
|
|
9144
9176
|
}
|
|
9145
9177
|
}]);
|
|
9146
|
-
return ReadBufferStream;
|
|
9147
9178
|
}(BufferStream);
|
|
9148
9179
|
var DeflatedReadBufferStream = /*#__PURE__*/function (_ReadBufferStream) {
|
|
9149
|
-
_inherits(DeflatedReadBufferStream, _ReadBufferStream);
|
|
9150
9180
|
function DeflatedReadBufferStream(stream, options) {
|
|
9151
9181
|
_classCallCheck(this, DeflatedReadBufferStream);
|
|
9152
9182
|
var inflatedBuffer = pako.inflateRaw(stream.getBuffer(stream.offset, stream.size));
|
|
9153
9183
|
return _callSuper(this, DeflatedReadBufferStream, [inflatedBuffer.buffer, stream.littleEndian, options]);
|
|
9154
9184
|
}
|
|
9185
|
+
_inherits(DeflatedReadBufferStream, _ReadBufferStream);
|
|
9155
9186
|
return _createClass(DeflatedReadBufferStream);
|
|
9156
9187
|
}(ReadBufferStream);
|
|
9157
|
-
var WriteBufferStream = /*#__PURE__*/function (
|
|
9158
|
-
_inherits(WriteBufferStream, _BufferStream2);
|
|
9188
|
+
var WriteBufferStream = /*#__PURE__*/function (_BufferStream3) {
|
|
9159
9189
|
function WriteBufferStream(defaultSize, littleEndian) {
|
|
9160
9190
|
var _this3;
|
|
9161
9191
|
_classCallCheck(this, WriteBufferStream);
|
|
@@ -9166,6 +9196,7 @@
|
|
|
9166
9196
|
_this3.size = 0;
|
|
9167
9197
|
return _this3;
|
|
9168
9198
|
}
|
|
9199
|
+
_inherits(WriteBufferStream, _BufferStream3);
|
|
9169
9200
|
return _createClass(WriteBufferStream);
|
|
9170
9201
|
}(BufferStream);
|
|
9171
9202
|
|
|
@@ -9656,8 +9687,8 @@
|
|
|
9656
9687
|
);
|
|
9657
9688
|
}
|
|
9658
9689
|
var DicomMessage$3, Tag$1, DicomMetaDictionary$1;
|
|
9659
|
-
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT"],
|
|
9660
|
-
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD"],
|
|
9690
|
+
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT", "UV"],
|
|
9691
|
+
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9661
9692
|
singleVRs$1 = ["SQ", "OF", "OW", "OB", "UN"];
|
|
9662
9693
|
var ValueRepresentation = /*#__PURE__*/function () {
|
|
9663
9694
|
function ValueRepresentation(type) {
|
|
@@ -9669,7 +9700,7 @@
|
|
|
9669
9700
|
this._isLength32 = length32VRs.indexOf(this.type) != -1;
|
|
9670
9701
|
this._storeRaw = true;
|
|
9671
9702
|
}
|
|
9672
|
-
_createClass(ValueRepresentation, [{
|
|
9703
|
+
return _createClass(ValueRepresentation, [{
|
|
9673
9704
|
key: "isBinary",
|
|
9674
9705
|
value: function isBinary() {
|
|
9675
9706
|
return this._isBinary;
|
|
@@ -9962,15 +9993,14 @@
|
|
|
9962
9993
|
return new ParsedUnknownValue(type);
|
|
9963
9994
|
}
|
|
9964
9995
|
}]);
|
|
9965
|
-
return ValueRepresentation;
|
|
9966
9996
|
}();
|
|
9967
9997
|
var AsciiStringRepresentation = /*#__PURE__*/function (_ValueRepresentation) {
|
|
9968
|
-
_inherits(AsciiStringRepresentation, _ValueRepresentation);
|
|
9969
9998
|
function AsciiStringRepresentation(type) {
|
|
9970
9999
|
_classCallCheck(this, AsciiStringRepresentation);
|
|
9971
10000
|
return _callSuper(this, AsciiStringRepresentation, [type]);
|
|
9972
10001
|
}
|
|
9973
|
-
|
|
10002
|
+
_inherits(AsciiStringRepresentation, _ValueRepresentation);
|
|
10003
|
+
return _createClass(AsciiStringRepresentation, [{
|
|
9974
10004
|
key: "readBytes",
|
|
9975
10005
|
value: function readBytes(stream, length) {
|
|
9976
10006
|
return stream.readAsciiString(length);
|
|
@@ -9982,15 +10012,14 @@
|
|
|
9982
10012
|
return _get(_getPrototypeOf(AsciiStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
|
|
9983
10013
|
}
|
|
9984
10014
|
}]);
|
|
9985
|
-
return AsciiStringRepresentation;
|
|
9986
10015
|
}(ValueRepresentation);
|
|
9987
10016
|
var EncodedStringRepresentation = /*#__PURE__*/function (_ValueRepresentation2) {
|
|
9988
|
-
_inherits(EncodedStringRepresentation, _ValueRepresentation2);
|
|
9989
10017
|
function EncodedStringRepresentation(type) {
|
|
9990
10018
|
_classCallCheck(this, EncodedStringRepresentation);
|
|
9991
10019
|
return _callSuper(this, EncodedStringRepresentation, [type]);
|
|
9992
10020
|
}
|
|
9993
|
-
|
|
10021
|
+
_inherits(EncodedStringRepresentation, _ValueRepresentation2);
|
|
10022
|
+
return _createClass(EncodedStringRepresentation, [{
|
|
9994
10023
|
key: "readBytes",
|
|
9995
10024
|
value: function readBytes(stream, length) {
|
|
9996
10025
|
return stream.readEncodedString(length);
|
|
@@ -10002,10 +10031,8 @@
|
|
|
10002
10031
|
return _get(_getPrototypeOf(EncodedStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
|
|
10003
10032
|
}
|
|
10004
10033
|
}]);
|
|
10005
|
-
return EncodedStringRepresentation;
|
|
10006
10034
|
}(ValueRepresentation);
|
|
10007
10035
|
var BinaryRepresentation = /*#__PURE__*/function (_ValueRepresentation3) {
|
|
10008
|
-
_inherits(BinaryRepresentation, _ValueRepresentation3);
|
|
10009
10036
|
function BinaryRepresentation(type) {
|
|
10010
10037
|
var _this;
|
|
10011
10038
|
_classCallCheck(this, BinaryRepresentation);
|
|
@@ -10013,7 +10040,8 @@
|
|
|
10013
10040
|
_this._storeRaw = false;
|
|
10014
10041
|
return _this;
|
|
10015
10042
|
}
|
|
10016
|
-
|
|
10043
|
+
_inherits(BinaryRepresentation, _ValueRepresentation3);
|
|
10044
|
+
return _createClass(BinaryRepresentation, [{
|
|
10017
10045
|
key: "writeBytes",
|
|
10018
10046
|
value: function writeBytes(stream, value, _syntax, isEncapsulated) {
|
|
10019
10047
|
var writeOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
@@ -10206,10 +10234,8 @@
|
|
|
10206
10234
|
}
|
|
10207
10235
|
}
|
|
10208
10236
|
}]);
|
|
10209
|
-
return BinaryRepresentation;
|
|
10210
10237
|
}(ValueRepresentation);
|
|
10211
10238
|
var ApplicationEntity = /*#__PURE__*/function (_AsciiStringRepresent) {
|
|
10212
|
-
_inherits(ApplicationEntity, _AsciiStringRepresent);
|
|
10213
10239
|
function ApplicationEntity() {
|
|
10214
10240
|
var _this2;
|
|
10215
10241
|
_classCallCheck(this, ApplicationEntity);
|
|
@@ -10218,7 +10244,8 @@
|
|
|
10218
10244
|
_this2.padByte = PADDING_SPACE;
|
|
10219
10245
|
return _this2;
|
|
10220
10246
|
}
|
|
10221
|
-
|
|
10247
|
+
_inherits(ApplicationEntity, _AsciiStringRepresent);
|
|
10248
|
+
return _createClass(ApplicationEntity, [{
|
|
10222
10249
|
key: "readBytes",
|
|
10223
10250
|
value: function readBytes(stream, length) {
|
|
10224
10251
|
return stream.readAsciiString(length);
|
|
@@ -10229,10 +10256,8 @@
|
|
|
10229
10256
|
return value.trim();
|
|
10230
10257
|
}
|
|
10231
10258
|
}]);
|
|
10232
|
-
return ApplicationEntity;
|
|
10233
10259
|
}(AsciiStringRepresentation);
|
|
10234
10260
|
var CodeString = /*#__PURE__*/function (_AsciiStringRepresent2) {
|
|
10235
|
-
_inherits(CodeString, _AsciiStringRepresent2);
|
|
10236
10261
|
function CodeString() {
|
|
10237
10262
|
var _this3;
|
|
10238
10263
|
_classCallCheck(this, CodeString);
|
|
@@ -10241,7 +10266,8 @@
|
|
|
10241
10266
|
_this3.padByte = PADDING_SPACE;
|
|
10242
10267
|
return _this3;
|
|
10243
10268
|
}
|
|
10244
|
-
|
|
10269
|
+
_inherits(CodeString, _AsciiStringRepresent2);
|
|
10270
|
+
return _createClass(CodeString, [{
|
|
10245
10271
|
key: "readBytes",
|
|
10246
10272
|
value: function readBytes(stream, length) {
|
|
10247
10273
|
var BACKSLASH = String.fromCharCode(VM_DELIMITER);
|
|
@@ -10261,10 +10287,8 @@
|
|
|
10261
10287
|
return trim(value);
|
|
10262
10288
|
}
|
|
10263
10289
|
}]);
|
|
10264
|
-
return CodeString;
|
|
10265
10290
|
}(AsciiStringRepresentation);
|
|
10266
10291
|
var AgeString = /*#__PURE__*/function (_AsciiStringRepresent3) {
|
|
10267
|
-
_inherits(AgeString, _AsciiStringRepresent3);
|
|
10268
10292
|
function AgeString() {
|
|
10269
10293
|
var _this4;
|
|
10270
10294
|
_classCallCheck(this, AgeString);
|
|
@@ -10275,10 +10299,10 @@
|
|
|
10275
10299
|
_this4.defaultValue = "";
|
|
10276
10300
|
return _this4;
|
|
10277
10301
|
}
|
|
10302
|
+
_inherits(AgeString, _AsciiStringRepresent3);
|
|
10278
10303
|
return _createClass(AgeString);
|
|
10279
10304
|
}(AsciiStringRepresentation);
|
|
10280
10305
|
var AttributeTag = /*#__PURE__*/function (_ValueRepresentation4) {
|
|
10281
|
-
_inherits(AttributeTag, _ValueRepresentation4);
|
|
10282
10306
|
function AttributeTag() {
|
|
10283
10307
|
var _this5;
|
|
10284
10308
|
_classCallCheck(this, AttributeTag);
|
|
@@ -10289,7 +10313,8 @@
|
|
|
10289
10313
|
_this5.fixed = true;
|
|
10290
10314
|
return _this5;
|
|
10291
10315
|
}
|
|
10292
|
-
|
|
10316
|
+
_inherits(AttributeTag, _ValueRepresentation4);
|
|
10317
|
+
return _createClass(AttributeTag, [{
|
|
10293
10318
|
key: "readBytes",
|
|
10294
10319
|
value: function readBytes(stream) {
|
|
10295
10320
|
return Tag$1.readTag(stream).value;
|
|
@@ -10300,10 +10325,8 @@
|
|
|
10300
10325
|
return _get(_getPrototypeOf(AttributeTag.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(AttributeTag.prototype), "write", this).call(this, stream, "TwoUint16s", value), writeOptions);
|
|
10301
10326
|
}
|
|
10302
10327
|
}]);
|
|
10303
|
-
return AttributeTag;
|
|
10304
10328
|
}(ValueRepresentation);
|
|
10305
10329
|
var DateValue = /*#__PURE__*/function (_AsciiStringRepresent4) {
|
|
10306
|
-
_inherits(DateValue, _AsciiStringRepresent4);
|
|
10307
10330
|
function DateValue(value) {
|
|
10308
10331
|
var _this6;
|
|
10309
10332
|
_classCallCheck(this, DateValue);
|
|
@@ -10315,7 +10338,8 @@
|
|
|
10315
10338
|
_this6.defaultValue = "";
|
|
10316
10339
|
return _this6;
|
|
10317
10340
|
}
|
|
10318
|
-
|
|
10341
|
+
_inherits(DateValue, _AsciiStringRepresent4);
|
|
10342
|
+
return _createClass(DateValue, [{
|
|
10319
10343
|
key: "checkLength",
|
|
10320
10344
|
value: function checkLength(value) {
|
|
10321
10345
|
if (typeof value === "string" || value instanceof String) {
|
|
@@ -10325,15 +10349,14 @@
|
|
|
10325
10349
|
return true;
|
|
10326
10350
|
}
|
|
10327
10351
|
}]);
|
|
10328
|
-
return DateValue;
|
|
10329
10352
|
}(AsciiStringRepresentation);
|
|
10330
10353
|
var NumericStringRepresentation = /*#__PURE__*/function (_AsciiStringRepresent5) {
|
|
10331
|
-
_inherits(NumericStringRepresentation, _AsciiStringRepresent5);
|
|
10332
10354
|
function NumericStringRepresentation() {
|
|
10333
10355
|
_classCallCheck(this, NumericStringRepresentation);
|
|
10334
10356
|
return _callSuper(this, NumericStringRepresentation, arguments);
|
|
10335
10357
|
}
|
|
10336
|
-
|
|
10358
|
+
_inherits(NumericStringRepresentation, _AsciiStringRepresent5);
|
|
10359
|
+
return _createClass(NumericStringRepresentation, [{
|
|
10337
10360
|
key: "readBytes",
|
|
10338
10361
|
value: function readBytes(stream, length) {
|
|
10339
10362
|
var BACKSLASH = String.fromCharCode(VM_DELIMITER);
|
|
@@ -10341,10 +10364,8 @@
|
|
|
10341
10364
|
return this.dropPadByte(numStr.split(BACKSLASH));
|
|
10342
10365
|
}
|
|
10343
10366
|
}]);
|
|
10344
|
-
return NumericStringRepresentation;
|
|
10345
10367
|
}(AsciiStringRepresentation);
|
|
10346
10368
|
var DecimalString = /*#__PURE__*/function (_NumericStringReprese) {
|
|
10347
|
-
_inherits(DecimalString, _NumericStringReprese);
|
|
10348
10369
|
function DecimalString() {
|
|
10349
10370
|
var _this7;
|
|
10350
10371
|
_classCallCheck(this, DecimalString);
|
|
@@ -10353,7 +10374,8 @@
|
|
|
10353
10374
|
_this7.padByte = PADDING_SPACE;
|
|
10354
10375
|
return _this7;
|
|
10355
10376
|
}
|
|
10356
|
-
|
|
10377
|
+
_inherits(DecimalString, _NumericStringReprese);
|
|
10378
|
+
return _createClass(DecimalString, [{
|
|
10357
10379
|
key: "applyFormatting",
|
|
10358
10380
|
value: function applyFormatting(value) {
|
|
10359
10381
|
var formatNumber = function formatNumber(numberStr) {
|
|
@@ -10410,10 +10432,8 @@
|
|
|
10410
10432
|
return _get(_getPrototypeOf(DecimalString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
|
|
10411
10433
|
}
|
|
10412
10434
|
}]);
|
|
10413
|
-
return DecimalString;
|
|
10414
10435
|
}(NumericStringRepresentation);
|
|
10415
10436
|
var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
|
|
10416
|
-
_inherits(DateTime, _AsciiStringRepresent6);
|
|
10417
10437
|
function DateTime() {
|
|
10418
10438
|
var _this9;
|
|
10419
10439
|
_classCallCheck(this, DateTime);
|
|
@@ -10423,7 +10443,8 @@
|
|
|
10423
10443
|
_this9.padByte = PADDING_SPACE;
|
|
10424
10444
|
return _this9;
|
|
10425
10445
|
}
|
|
10426
|
-
|
|
10446
|
+
_inherits(DateTime, _AsciiStringRepresent6);
|
|
10447
|
+
return _createClass(DateTime, [{
|
|
10427
10448
|
key: "checkLength",
|
|
10428
10449
|
value: function checkLength(value) {
|
|
10429
10450
|
if (typeof value === "string" || value instanceof String) {
|
|
@@ -10433,10 +10454,8 @@
|
|
|
10433
10454
|
return true;
|
|
10434
10455
|
}
|
|
10435
10456
|
}]);
|
|
10436
|
-
return DateTime;
|
|
10437
10457
|
}(AsciiStringRepresentation);
|
|
10438
10458
|
var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
|
|
10439
|
-
_inherits(FloatingPointSingle, _ValueRepresentation5);
|
|
10440
10459
|
function FloatingPointSingle() {
|
|
10441
10460
|
var _this0;
|
|
10442
10461
|
_classCallCheck(this, FloatingPointSingle);
|
|
@@ -10447,7 +10466,8 @@
|
|
|
10447
10466
|
_this0.defaultValue = 0.0;
|
|
10448
10467
|
return _this0;
|
|
10449
10468
|
}
|
|
10450
|
-
|
|
10469
|
+
_inherits(FloatingPointSingle, _ValueRepresentation5);
|
|
10470
|
+
return _createClass(FloatingPointSingle, [{
|
|
10451
10471
|
key: "readBytes",
|
|
10452
10472
|
value: function readBytes(stream) {
|
|
10453
10473
|
return stream.readFloat();
|
|
@@ -10463,10 +10483,8 @@
|
|
|
10463
10483
|
return _get(_getPrototypeOf(FloatingPointSingle.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointSingle.prototype), "write", this).call(this, stream, "Float", value), writeOptions);
|
|
10464
10484
|
}
|
|
10465
10485
|
}]);
|
|
10466
|
-
return FloatingPointSingle;
|
|
10467
10486
|
}(ValueRepresentation);
|
|
10468
10487
|
var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
|
|
10469
|
-
_inherits(FloatingPointDouble, _ValueRepresentation6);
|
|
10470
10488
|
function FloatingPointDouble() {
|
|
10471
10489
|
var _this1;
|
|
10472
10490
|
_classCallCheck(this, FloatingPointDouble);
|
|
@@ -10477,7 +10495,8 @@
|
|
|
10477
10495
|
_this1.defaultValue = 0.0;
|
|
10478
10496
|
return _this1;
|
|
10479
10497
|
}
|
|
10480
|
-
|
|
10498
|
+
_inherits(FloatingPointDouble, _ValueRepresentation6);
|
|
10499
|
+
return _createClass(FloatingPointDouble, [{
|
|
10481
10500
|
key: "readBytes",
|
|
10482
10501
|
value: function readBytes(stream) {
|
|
10483
10502
|
return stream.readDouble();
|
|
@@ -10493,10 +10512,8 @@
|
|
|
10493
10512
|
return _get(_getPrototypeOf(FloatingPointDouble.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointDouble.prototype), "write", this).call(this, stream, "Double", value), writeOptions);
|
|
10494
10513
|
}
|
|
10495
10514
|
}]);
|
|
10496
|
-
return FloatingPointDouble;
|
|
10497
10515
|
}(ValueRepresentation);
|
|
10498
10516
|
var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
|
|
10499
|
-
_inherits(IntegerString, _NumericStringReprese2);
|
|
10500
10517
|
function IntegerString() {
|
|
10501
10518
|
var _this10;
|
|
10502
10519
|
_classCallCheck(this, IntegerString);
|
|
@@ -10505,7 +10522,8 @@
|
|
|
10505
10522
|
_this10.padByte = PADDING_SPACE;
|
|
10506
10523
|
return _this10;
|
|
10507
10524
|
}
|
|
10508
|
-
|
|
10525
|
+
_inherits(IntegerString, _NumericStringReprese2);
|
|
10526
|
+
return _createClass(IntegerString, [{
|
|
10509
10527
|
key: "applyFormatting",
|
|
10510
10528
|
value: function applyFormatting(value) {
|
|
10511
10529
|
var formatNumber = function formatNumber(numberStr) {
|
|
@@ -10533,10 +10551,8 @@
|
|
|
10533
10551
|
return _get(_getPrototypeOf(IntegerString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
|
|
10534
10552
|
}
|
|
10535
10553
|
}]);
|
|
10536
|
-
return IntegerString;
|
|
10537
10554
|
}(NumericStringRepresentation);
|
|
10538
10555
|
var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
|
|
10539
|
-
_inherits(LongString, _EncodedStringReprese);
|
|
10540
10556
|
function LongString() {
|
|
10541
10557
|
var _this12;
|
|
10542
10558
|
_classCallCheck(this, LongString);
|
|
@@ -10545,7 +10561,8 @@
|
|
|
10545
10561
|
_this12.padByte = PADDING_SPACE;
|
|
10546
10562
|
return _this12;
|
|
10547
10563
|
}
|
|
10548
|
-
|
|
10564
|
+
_inherits(LongString, _EncodedStringReprese);
|
|
10565
|
+
return _createClass(LongString, [{
|
|
10549
10566
|
key: "readBytes",
|
|
10550
10567
|
value: function readBytes(stream, length) {
|
|
10551
10568
|
return stream.readEncodedString(length);
|
|
@@ -10556,10 +10573,8 @@
|
|
|
10556
10573
|
return value.trim();
|
|
10557
10574
|
}
|
|
10558
10575
|
}]);
|
|
10559
|
-
return LongString;
|
|
10560
10576
|
}(EncodedStringRepresentation);
|
|
10561
10577
|
var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
|
|
10562
|
-
_inherits(LongText, _EncodedStringReprese2);
|
|
10563
10578
|
function LongText() {
|
|
10564
10579
|
var _this13;
|
|
10565
10580
|
_classCallCheck(this, LongText);
|
|
@@ -10568,7 +10583,8 @@
|
|
|
10568
10583
|
_this13.padByte = PADDING_SPACE;
|
|
10569
10584
|
return _this13;
|
|
10570
10585
|
}
|
|
10571
|
-
|
|
10586
|
+
_inherits(LongText, _EncodedStringReprese2);
|
|
10587
|
+
return _createClass(LongText, [{
|
|
10572
10588
|
key: "readBytes",
|
|
10573
10589
|
value: function readBytes(stream, length) {
|
|
10574
10590
|
return stream.readEncodedString(length);
|
|
@@ -10579,10 +10595,8 @@
|
|
|
10579
10595
|
return rtrim(value);
|
|
10580
10596
|
}
|
|
10581
10597
|
}]);
|
|
10582
|
-
return LongText;
|
|
10583
10598
|
}(EncodedStringRepresentation);
|
|
10584
10599
|
var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
|
|
10585
|
-
_inherits(PersonName, _EncodedStringReprese3);
|
|
10586
10600
|
function PersonName() {
|
|
10587
10601
|
var _this14;
|
|
10588
10602
|
_classCallCheck(this, PersonName);
|
|
@@ -10591,7 +10605,8 @@
|
|
|
10591
10605
|
_this14.padByte = PADDING_SPACE;
|
|
10592
10606
|
return _this14;
|
|
10593
10607
|
}
|
|
10594
|
-
|
|
10608
|
+
_inherits(PersonName, _EncodedStringReprese3);
|
|
10609
|
+
return _createClass(PersonName, [{
|
|
10595
10610
|
key: "addValueAccessors",
|
|
10596
10611
|
value:
|
|
10597
10612
|
// Adds toJSON and toString accessors to normalize PersonName output; ie toJSON
|
|
@@ -10694,10 +10709,8 @@
|
|
|
10694
10709
|
return true;
|
|
10695
10710
|
}
|
|
10696
10711
|
}]);
|
|
10697
|
-
return PersonName;
|
|
10698
10712
|
}(EncodedStringRepresentation);
|
|
10699
10713
|
var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
|
|
10700
|
-
_inherits(ShortString, _EncodedStringReprese4);
|
|
10701
10714
|
function ShortString() {
|
|
10702
10715
|
var _this15;
|
|
10703
10716
|
_classCallCheck(this, ShortString);
|
|
@@ -10706,7 +10719,8 @@
|
|
|
10706
10719
|
_this15.padByte = PADDING_SPACE;
|
|
10707
10720
|
return _this15;
|
|
10708
10721
|
}
|
|
10709
|
-
|
|
10722
|
+
_inherits(ShortString, _EncodedStringReprese4);
|
|
10723
|
+
return _createClass(ShortString, [{
|
|
10710
10724
|
key: "readBytes",
|
|
10711
10725
|
value: function readBytes(stream, length) {
|
|
10712
10726
|
return stream.readEncodedString(length);
|
|
@@ -10717,10 +10731,8 @@
|
|
|
10717
10731
|
return value.trim();
|
|
10718
10732
|
}
|
|
10719
10733
|
}]);
|
|
10720
|
-
return ShortString;
|
|
10721
10734
|
}(EncodedStringRepresentation);
|
|
10722
10735
|
var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
|
|
10723
|
-
_inherits(SignedLong, _ValueRepresentation7);
|
|
10724
10736
|
function SignedLong() {
|
|
10725
10737
|
var _this16;
|
|
10726
10738
|
_classCallCheck(this, SignedLong);
|
|
@@ -10731,7 +10743,8 @@
|
|
|
10731
10743
|
_this16.defaultValue = 0;
|
|
10732
10744
|
return _this16;
|
|
10733
10745
|
}
|
|
10734
|
-
|
|
10746
|
+
_inherits(SignedLong, _ValueRepresentation7);
|
|
10747
|
+
return _createClass(SignedLong, [{
|
|
10735
10748
|
key: "readBytes",
|
|
10736
10749
|
value: function readBytes(stream) {
|
|
10737
10750
|
return stream.readInt32();
|
|
@@ -10742,10 +10755,8 @@
|
|
|
10742
10755
|
return _get(_getPrototypeOf(SignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedLong.prototype), "write", this).call(this, stream, "Int32", value), writeOptions);
|
|
10743
10756
|
}
|
|
10744
10757
|
}]);
|
|
10745
|
-
return SignedLong;
|
|
10746
10758
|
}(ValueRepresentation);
|
|
10747
10759
|
var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
10748
|
-
_inherits(SequenceOfItems, _ValueRepresentation8);
|
|
10749
10760
|
function SequenceOfItems() {
|
|
10750
10761
|
var _this17;
|
|
10751
10762
|
_classCallCheck(this, SequenceOfItems);
|
|
@@ -10756,7 +10767,8 @@
|
|
|
10756
10767
|
_this17._storeRaw = false;
|
|
10757
10768
|
return _this17;
|
|
10758
10769
|
}
|
|
10759
|
-
|
|
10770
|
+
_inherits(SequenceOfItems, _ValueRepresentation8);
|
|
10771
|
+
return _createClass(SequenceOfItems, [{
|
|
10760
10772
|
key: "readBytes",
|
|
10761
10773
|
value: function readBytes(stream, sqlength, syntax) {
|
|
10762
10774
|
if (sqlength == 0x0) {
|
|
@@ -10868,10 +10880,8 @@
|
|
|
10868
10880
|
return _get(_getPrototypeOf(SequenceOfItems.prototype), "writeBytes", this).call(this, stream, value, [written], writeOptions);
|
|
10869
10881
|
}
|
|
10870
10882
|
}]);
|
|
10871
|
-
return SequenceOfItems;
|
|
10872
10883
|
}(ValueRepresentation);
|
|
10873
10884
|
var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
|
|
10874
|
-
_inherits(SignedShort, _ValueRepresentation9);
|
|
10875
10885
|
function SignedShort() {
|
|
10876
10886
|
var _this18;
|
|
10877
10887
|
_classCallCheck(this, SignedShort);
|
|
@@ -10883,7 +10893,8 @@
|
|
|
10883
10893
|
_this18.defaultValue = 0;
|
|
10884
10894
|
return _this18;
|
|
10885
10895
|
}
|
|
10886
|
-
|
|
10896
|
+
_inherits(SignedShort, _ValueRepresentation9);
|
|
10897
|
+
return _createClass(SignedShort, [{
|
|
10887
10898
|
key: "readBytes",
|
|
10888
10899
|
value: function readBytes(stream) {
|
|
10889
10900
|
return stream.readInt16();
|
|
@@ -10894,10 +10905,8 @@
|
|
|
10894
10905
|
return _get(_getPrototypeOf(SignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedShort.prototype), "write", this).call(this, stream, "Int16", value), writeOptions);
|
|
10895
10906
|
}
|
|
10896
10907
|
}]);
|
|
10897
|
-
return SignedShort;
|
|
10898
10908
|
}(ValueRepresentation);
|
|
10899
10909
|
var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
|
|
10900
|
-
_inherits(ShortText, _EncodedStringReprese5);
|
|
10901
10910
|
function ShortText() {
|
|
10902
10911
|
var _this19;
|
|
10903
10912
|
_classCallCheck(this, ShortText);
|
|
@@ -10906,7 +10915,8 @@
|
|
|
10906
10915
|
_this19.padByte = PADDING_SPACE;
|
|
10907
10916
|
return _this19;
|
|
10908
10917
|
}
|
|
10909
|
-
|
|
10918
|
+
_inherits(ShortText, _EncodedStringReprese5);
|
|
10919
|
+
return _createClass(ShortText, [{
|
|
10910
10920
|
key: "readBytes",
|
|
10911
10921
|
value: function readBytes(stream, length) {
|
|
10912
10922
|
return stream.readEncodedString(length);
|
|
@@ -10917,10 +10927,8 @@
|
|
|
10917
10927
|
return rtrim(value);
|
|
10918
10928
|
}
|
|
10919
10929
|
}]);
|
|
10920
|
-
return ShortText;
|
|
10921
10930
|
}(EncodedStringRepresentation);
|
|
10922
10931
|
var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
|
|
10923
|
-
_inherits(TimeValue, _AsciiStringRepresent7);
|
|
10924
10932
|
function TimeValue() {
|
|
10925
10933
|
var _this20;
|
|
10926
10934
|
_classCallCheck(this, TimeValue);
|
|
@@ -10930,7 +10938,8 @@
|
|
|
10930
10938
|
_this20.padByte = PADDING_SPACE;
|
|
10931
10939
|
return _this20;
|
|
10932
10940
|
}
|
|
10933
|
-
|
|
10941
|
+
_inherits(TimeValue, _AsciiStringRepresent7);
|
|
10942
|
+
return _createClass(TimeValue, [{
|
|
10934
10943
|
key: "readBytes",
|
|
10935
10944
|
value: function readBytes(stream, length) {
|
|
10936
10945
|
return stream.readAsciiString(length);
|
|
@@ -10950,10 +10959,8 @@
|
|
|
10950
10959
|
return true;
|
|
10951
10960
|
}
|
|
10952
10961
|
}]);
|
|
10953
|
-
return TimeValue;
|
|
10954
10962
|
}(AsciiStringRepresentation);
|
|
10955
10963
|
var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
|
|
10956
|
-
_inherits(UnlimitedCharacters, _EncodedStringReprese6);
|
|
10957
10964
|
function UnlimitedCharacters() {
|
|
10958
10965
|
var _this21;
|
|
10959
10966
|
_classCallCheck(this, UnlimitedCharacters);
|
|
@@ -10963,7 +10970,8 @@
|
|
|
10963
10970
|
_this21.padByte = PADDING_SPACE;
|
|
10964
10971
|
return _this21;
|
|
10965
10972
|
}
|
|
10966
|
-
|
|
10973
|
+
_inherits(UnlimitedCharacters, _EncodedStringReprese6);
|
|
10974
|
+
return _createClass(UnlimitedCharacters, [{
|
|
10967
10975
|
key: "readBytes",
|
|
10968
10976
|
value: function readBytes(stream, length) {
|
|
10969
10977
|
return stream.readEncodedString(length);
|
|
@@ -10974,10 +10982,8 @@
|
|
|
10974
10982
|
return rtrim(value);
|
|
10975
10983
|
}
|
|
10976
10984
|
}]);
|
|
10977
|
-
return UnlimitedCharacters;
|
|
10978
10985
|
}(EncodedStringRepresentation);
|
|
10979
10986
|
var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
|
|
10980
|
-
_inherits(UnlimitedText, _EncodedStringReprese7);
|
|
10981
10987
|
function UnlimitedText() {
|
|
10982
10988
|
var _this22;
|
|
10983
10989
|
_classCallCheck(this, UnlimitedText);
|
|
@@ -10986,7 +10992,8 @@
|
|
|
10986
10992
|
_this22.padByte = PADDING_SPACE;
|
|
10987
10993
|
return _this22;
|
|
10988
10994
|
}
|
|
10989
|
-
|
|
10995
|
+
_inherits(UnlimitedText, _EncodedStringReprese7);
|
|
10996
|
+
return _createClass(UnlimitedText, [{
|
|
10990
10997
|
key: "readBytes",
|
|
10991
10998
|
value: function readBytes(stream, length) {
|
|
10992
10999
|
return stream.readEncodedString(length);
|
|
@@ -10997,10 +11004,8 @@
|
|
|
10997
11004
|
return rtrim(value);
|
|
10998
11005
|
}
|
|
10999
11006
|
}]);
|
|
11000
|
-
return UnlimitedText;
|
|
11001
11007
|
}(EncodedStringRepresentation);
|
|
11002
11008
|
var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
|
|
11003
|
-
_inherits(UnsignedShort, _ValueRepresentation0);
|
|
11004
11009
|
function UnsignedShort() {
|
|
11005
11010
|
var _this23;
|
|
11006
11011
|
_classCallCheck(this, UnsignedShort);
|
|
@@ -11011,7 +11016,8 @@
|
|
|
11011
11016
|
_this23.defaultValue = 0;
|
|
11012
11017
|
return _this23;
|
|
11013
11018
|
}
|
|
11014
|
-
|
|
11019
|
+
_inherits(UnsignedShort, _ValueRepresentation0);
|
|
11020
|
+
return _createClass(UnsignedShort, [{
|
|
11015
11021
|
key: "readBytes",
|
|
11016
11022
|
value: function readBytes(stream) {
|
|
11017
11023
|
return stream.readUint16();
|
|
@@ -11022,10 +11028,8 @@
|
|
|
11022
11028
|
return _get(_getPrototypeOf(UnsignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedShort.prototype), "write", this).call(this, stream, "Uint16", value), writeOptions);
|
|
11023
11029
|
}
|
|
11024
11030
|
}]);
|
|
11025
|
-
return UnsignedShort;
|
|
11026
11031
|
}(ValueRepresentation);
|
|
11027
11032
|
var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
|
|
11028
|
-
_inherits(UnsignedLong, _ValueRepresentation1);
|
|
11029
11033
|
function UnsignedLong() {
|
|
11030
11034
|
var _this24;
|
|
11031
11035
|
_classCallCheck(this, UnsignedLong);
|
|
@@ -11036,7 +11040,8 @@
|
|
|
11036
11040
|
_this24.defaultValue = 0;
|
|
11037
11041
|
return _this24;
|
|
11038
11042
|
}
|
|
11039
|
-
|
|
11043
|
+
_inherits(UnsignedLong, _ValueRepresentation1);
|
|
11044
|
+
return _createClass(UnsignedLong, [{
|
|
11040
11045
|
key: "readBytes",
|
|
11041
11046
|
value: function readBytes(stream) {
|
|
11042
11047
|
return stream.readUint32();
|
|
@@ -11047,19 +11052,42 @@
|
|
|
11047
11052
|
return _get(_getPrototypeOf(UnsignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedLong.prototype), "write", this).call(this, stream, "Uint32", value), writeOptions);
|
|
11048
11053
|
}
|
|
11049
11054
|
}]);
|
|
11050
|
-
return UnsignedLong;
|
|
11051
11055
|
}(ValueRepresentation);
|
|
11052
|
-
var
|
|
11053
|
-
|
|
11054
|
-
function UniqueIdentifier() {
|
|
11056
|
+
var Unsigned64BitVeryLong = /*#__PURE__*/function (_ValueRepresentation10) {
|
|
11057
|
+
function Unsigned64BitVeryLong() {
|
|
11055
11058
|
var _this25;
|
|
11056
|
-
_classCallCheck(this,
|
|
11057
|
-
_this25 = _callSuper(this,
|
|
11058
|
-
_this25.maxLength =
|
|
11059
|
+
_classCallCheck(this, Unsigned64BitVeryLong);
|
|
11060
|
+
_this25 = _callSuper(this, Unsigned64BitVeryLong, ["UV"]);
|
|
11061
|
+
_this25.maxLength = 8;
|
|
11059
11062
|
_this25.padByte = PADDING_NULL;
|
|
11063
|
+
_this25.fixed = true;
|
|
11064
|
+
_this25.defaultValue = 0;
|
|
11060
11065
|
return _this25;
|
|
11061
11066
|
}
|
|
11062
|
-
|
|
11067
|
+
_inherits(Unsigned64BitVeryLong, _ValueRepresentation10);
|
|
11068
|
+
return _createClass(Unsigned64BitVeryLong, [{
|
|
11069
|
+
key: "readBytes",
|
|
11070
|
+
value: function readBytes(stream) {
|
|
11071
|
+
return stream.readBigUint64();
|
|
11072
|
+
}
|
|
11073
|
+
}, {
|
|
11074
|
+
key: "writeBytes",
|
|
11075
|
+
value: function writeBytes(stream, value, writeOptions) {
|
|
11076
|
+
return _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "write", this).call(this, stream, "BigUint64", value), writeOptions);
|
|
11077
|
+
}
|
|
11078
|
+
}]);
|
|
11079
|
+
}(ValueRepresentation);
|
|
11080
|
+
var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
|
|
11081
|
+
function UniqueIdentifier() {
|
|
11082
|
+
var _this26;
|
|
11083
|
+
_classCallCheck(this, UniqueIdentifier);
|
|
11084
|
+
_this26 = _callSuper(this, UniqueIdentifier, ["UI"]);
|
|
11085
|
+
_this26.maxLength = 64;
|
|
11086
|
+
_this26.padByte = PADDING_NULL;
|
|
11087
|
+
return _this26;
|
|
11088
|
+
}
|
|
11089
|
+
_inherits(UniqueIdentifier, _AsciiStringRepresent8);
|
|
11090
|
+
return _createClass(UniqueIdentifier, [{
|
|
11063
11091
|
key: "readBytes",
|
|
11064
11092
|
value: function readBytes(stream, length) {
|
|
11065
11093
|
var result = this.readPaddedAsciiString(stream, length);
|
|
@@ -11091,55 +11119,53 @@
|
|
|
11091
11119
|
return removeInvalidUidChars(value);
|
|
11092
11120
|
}
|
|
11093
11121
|
}]);
|
|
11094
|
-
return UniqueIdentifier;
|
|
11095
11122
|
}(AsciiStringRepresentation);
|
|
11096
11123
|
var UniversalResource = /*#__PURE__*/function (_AsciiStringRepresent9) {
|
|
11097
|
-
_inherits(UniversalResource, _AsciiStringRepresent9);
|
|
11098
11124
|
function UniversalResource() {
|
|
11099
|
-
var
|
|
11125
|
+
var _this27;
|
|
11100
11126
|
_classCallCheck(this, UniversalResource);
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
return
|
|
11127
|
+
_this27 = _callSuper(this, UniversalResource, ["UR"]);
|
|
11128
|
+
_this27.maxLength = null;
|
|
11129
|
+
_this27.padByte = PADDING_SPACE;
|
|
11130
|
+
return _this27;
|
|
11105
11131
|
}
|
|
11106
|
-
|
|
11132
|
+
_inherits(UniversalResource, _AsciiStringRepresent9);
|
|
11133
|
+
return _createClass(UniversalResource, [{
|
|
11107
11134
|
key: "readBytes",
|
|
11108
11135
|
value: function readBytes(stream, length) {
|
|
11109
11136
|
return stream.readAsciiString(length);
|
|
11110
11137
|
}
|
|
11111
11138
|
}]);
|
|
11112
|
-
return UniversalResource;
|
|
11113
11139
|
}(AsciiStringRepresentation);
|
|
11114
11140
|
var UnknownValue = /*#__PURE__*/function (_BinaryRepresentation) {
|
|
11115
|
-
_inherits(UnknownValue, _BinaryRepresentation);
|
|
11116
11141
|
function UnknownValue() {
|
|
11117
|
-
var
|
|
11142
|
+
var _this28;
|
|
11118
11143
|
_classCallCheck(this, UnknownValue);
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
return
|
|
11144
|
+
_this28 = _callSuper(this, UnknownValue, ["UN"]);
|
|
11145
|
+
_this28.maxLength = null;
|
|
11146
|
+
_this28.padByte = PADDING_NULL;
|
|
11147
|
+
_this28.noMultiple = true;
|
|
11148
|
+
return _this28;
|
|
11124
11149
|
}
|
|
11150
|
+
_inherits(UnknownValue, _BinaryRepresentation);
|
|
11125
11151
|
return _createClass(UnknownValue);
|
|
11126
11152
|
}(BinaryRepresentation);
|
|
11127
11153
|
var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
|
|
11128
|
-
_inherits(ParsedUnknownValue, _BinaryRepresentation2);
|
|
11129
11154
|
function ParsedUnknownValue(vr) {
|
|
11130
|
-
var
|
|
11155
|
+
var _this29;
|
|
11131
11156
|
_classCallCheck(this, ParsedUnknownValue);
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
return
|
|
11157
|
+
_this29 = _callSuper(this, ParsedUnknownValue, [vr]);
|
|
11158
|
+
_this29.maxLength = null;
|
|
11159
|
+
_this29.padByte = 0;
|
|
11160
|
+
_this29.noMultiple = true;
|
|
11161
|
+
_this29._isBinary = true;
|
|
11162
|
+
_this29._allowMultiple = false;
|
|
11163
|
+
_this29._isLength32 = true;
|
|
11164
|
+
_this29._storeRaw = true;
|
|
11165
|
+
return _this29;
|
|
11141
11166
|
}
|
|
11142
|
-
|
|
11167
|
+
_inherits(ParsedUnknownValue, _BinaryRepresentation2);
|
|
11168
|
+
return _createClass(ParsedUnknownValue, [{
|
|
11143
11169
|
key: "read",
|
|
11144
11170
|
value: function read(stream, length, syntax, readOptions) {
|
|
11145
11171
|
var arrayBuffer = this.readBytes(stream, length, syntax)[0];
|
|
@@ -11166,58 +11192,57 @@
|
|
|
11166
11192
|
}
|
|
11167
11193
|
}
|
|
11168
11194
|
}]);
|
|
11169
|
-
return ParsedUnknownValue;
|
|
11170
11195
|
}(BinaryRepresentation);
|
|
11171
11196
|
var OtherWordString = /*#__PURE__*/function (_BinaryRepresentation3) {
|
|
11172
|
-
_inherits(OtherWordString, _BinaryRepresentation3);
|
|
11173
11197
|
function OtherWordString() {
|
|
11174
|
-
var _this29;
|
|
11175
|
-
_classCallCheck(this, OtherWordString);
|
|
11176
|
-
_this29 = _callSuper(this, OtherWordString, ["OW"]);
|
|
11177
|
-
_this29.maxLength = null;
|
|
11178
|
-
_this29.padByte = PADDING_NULL;
|
|
11179
|
-
_this29.noMultiple = true;
|
|
11180
|
-
return _this29;
|
|
11181
|
-
}
|
|
11182
|
-
return _createClass(OtherWordString);
|
|
11183
|
-
}(BinaryRepresentation);
|
|
11184
|
-
var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
|
|
11185
|
-
_inherits(OtherByteString, _BinaryRepresentation4);
|
|
11186
|
-
function OtherByteString() {
|
|
11187
11198
|
var _this30;
|
|
11188
|
-
_classCallCheck(this,
|
|
11189
|
-
_this30 = _callSuper(this,
|
|
11199
|
+
_classCallCheck(this, OtherWordString);
|
|
11200
|
+
_this30 = _callSuper(this, OtherWordString, ["OW"]);
|
|
11190
11201
|
_this30.maxLength = null;
|
|
11191
11202
|
_this30.padByte = PADDING_NULL;
|
|
11192
11203
|
_this30.noMultiple = true;
|
|
11193
11204
|
return _this30;
|
|
11194
11205
|
}
|
|
11195
|
-
|
|
11206
|
+
_inherits(OtherWordString, _BinaryRepresentation3);
|
|
11207
|
+
return _createClass(OtherWordString);
|
|
11196
11208
|
}(BinaryRepresentation);
|
|
11197
|
-
var
|
|
11198
|
-
|
|
11199
|
-
function OtherDoubleString() {
|
|
11209
|
+
var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
|
|
11210
|
+
function OtherByteString() {
|
|
11200
11211
|
var _this31;
|
|
11201
|
-
_classCallCheck(this,
|
|
11202
|
-
_this31 = _callSuper(this,
|
|
11212
|
+
_classCallCheck(this, OtherByteString);
|
|
11213
|
+
_this31 = _callSuper(this, OtherByteString, ["OB"]);
|
|
11203
11214
|
_this31.maxLength = null;
|
|
11204
11215
|
_this31.padByte = PADDING_NULL;
|
|
11205
11216
|
_this31.noMultiple = true;
|
|
11206
11217
|
return _this31;
|
|
11207
11218
|
}
|
|
11208
|
-
|
|
11219
|
+
_inherits(OtherByteString, _BinaryRepresentation4);
|
|
11220
|
+
return _createClass(OtherByteString);
|
|
11209
11221
|
}(BinaryRepresentation);
|
|
11210
|
-
var
|
|
11211
|
-
|
|
11212
|
-
function OtherFloatString() {
|
|
11222
|
+
var OtherDoubleString = /*#__PURE__*/function (_BinaryRepresentation5) {
|
|
11223
|
+
function OtherDoubleString() {
|
|
11213
11224
|
var _this32;
|
|
11214
|
-
_classCallCheck(this,
|
|
11215
|
-
_this32 = _callSuper(this,
|
|
11225
|
+
_classCallCheck(this, OtherDoubleString);
|
|
11226
|
+
_this32 = _callSuper(this, OtherDoubleString, ["OD"]);
|
|
11216
11227
|
_this32.maxLength = null;
|
|
11217
11228
|
_this32.padByte = PADDING_NULL;
|
|
11218
11229
|
_this32.noMultiple = true;
|
|
11219
11230
|
return _this32;
|
|
11220
11231
|
}
|
|
11232
|
+
_inherits(OtherDoubleString, _BinaryRepresentation5);
|
|
11233
|
+
return _createClass(OtherDoubleString);
|
|
11234
|
+
}(BinaryRepresentation);
|
|
11235
|
+
var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
|
|
11236
|
+
function OtherFloatString() {
|
|
11237
|
+
var _this33;
|
|
11238
|
+
_classCallCheck(this, OtherFloatString);
|
|
11239
|
+
_this33 = _callSuper(this, OtherFloatString, ["OF"]);
|
|
11240
|
+
_this33.maxLength = null;
|
|
11241
|
+
_this33.padByte = PADDING_NULL;
|
|
11242
|
+
_this33.noMultiple = true;
|
|
11243
|
+
return _this33;
|
|
11244
|
+
}
|
|
11245
|
+
_inherits(OtherFloatString, _BinaryRepresentation6);
|
|
11221
11246
|
return _createClass(OtherFloatString);
|
|
11222
11247
|
}(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
|
|
11223
11248
|
var VRinstances = {
|
|
@@ -11250,7 +11275,8 @@
|
|
|
11250
11275
|
UN: new UnknownValue(),
|
|
11251
11276
|
UR: new UniversalResource(),
|
|
11252
11277
|
US: new UnsignedShort(),
|
|
11253
|
-
UT: new UnlimitedText()
|
|
11278
|
+
UT: new UnlimitedText(),
|
|
11279
|
+
UV: new Unsigned64BitVeryLong()
|
|
11254
11280
|
};
|
|
11255
11281
|
|
|
11256
11282
|
var EXPLICIT_LITTLE_ENDIAN = "1.2.840.10008.1.2.1";
|
|
@@ -11261,7 +11287,7 @@
|
|
|
11261
11287
|
this.meta = meta;
|
|
11262
11288
|
this.dict = {};
|
|
11263
11289
|
}
|
|
11264
|
-
_createClass(DicomDict, [{
|
|
11290
|
+
return _createClass(DicomDict, [{
|
|
11265
11291
|
key: "upsertTag",
|
|
11266
11292
|
value: function upsertTag(tag, vr, values) {
|
|
11267
11293
|
if (this.dict[tag]) {
|
|
@@ -11306,7 +11332,6 @@
|
|
|
11306
11332
|
DicomMessage$2 = dicomMessageClass;
|
|
11307
11333
|
}
|
|
11308
11334
|
}]);
|
|
11309
|
-
return DicomDict;
|
|
11310
11335
|
}();
|
|
11311
11336
|
|
|
11312
11337
|
// AUTO-GENERATED from dictionary.js. Exact (GGGG,EEEE) tags only.
|
|
@@ -12145,7 +12170,7 @@
|
|
|
12145
12170
|
this.customDictionary = customDictionary;
|
|
12146
12171
|
this.customNameMap = DicomMetaDictionary._generateCustomNameMap(customDictionary);
|
|
12147
12172
|
}
|
|
12148
|
-
_createClass(DicomMetaDictionary, [{
|
|
12173
|
+
return _createClass(DicomMetaDictionary, [{
|
|
12149
12174
|
key: "denaturalizeDataset",
|
|
12150
12175
|
value:
|
|
12151
12176
|
// denaturalizes dataset using custom dictionary and nameMap
|
|
@@ -12491,7 +12516,6 @@
|
|
|
12491
12516
|
});
|
|
12492
12517
|
}
|
|
12493
12518
|
}]);
|
|
12494
|
-
return DicomMetaDictionary;
|
|
12495
12519
|
}();
|
|
12496
12520
|
|
|
12497
12521
|
// Subset of those listed at:
|
|
@@ -12547,7 +12571,7 @@
|
|
|
12547
12571
|
}
|
|
12548
12572
|
|
|
12549
12573
|
/** Helper method to avoid circular dependencies */
|
|
12550
|
-
_createClass(Tag, [{
|
|
12574
|
+
return _createClass(Tag, [{
|
|
12551
12575
|
key: "toString",
|
|
12552
12576
|
value: function toString() {
|
|
12553
12577
|
return "(" + paddingLeft("0000", this.group().toString(16).toUpperCase()) + "," + paddingLeft("0000", this.element().toString(16).toUpperCase()) + ")";
|
|
@@ -12716,7 +12740,6 @@
|
|
|
12716
12740
|
throw Error("Invalid tag in sequence");
|
|
12717
12741
|
}
|
|
12718
12742
|
}]);
|
|
12719
|
-
return Tag;
|
|
12720
12743
|
}();
|
|
12721
12744
|
ValueRepresentation.setTagClass(Tag);
|
|
12722
12745
|
|
|
@@ -12759,7 +12782,7 @@
|
|
|
12759
12782
|
function DicomMessage() {
|
|
12760
12783
|
_classCallCheck(this, DicomMessage);
|
|
12761
12784
|
}
|
|
12762
|
-
_createClass(DicomMessage, null, [{
|
|
12785
|
+
return _createClass(DicomMessage, null, [{
|
|
12763
12786
|
key: "read",
|
|
12764
12787
|
value: function read(bufferStream, syntax, ignoreErrors) {
|
|
12765
12788
|
var untilTag = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -13080,7 +13103,6 @@
|
|
|
13080
13103
|
return DicomMetaDictionary.dictionary[tag.toString()];
|
|
13081
13104
|
}
|
|
13082
13105
|
}]);
|
|
13083
|
-
return DicomMessage;
|
|
13084
13106
|
}();
|
|
13085
13107
|
|
|
13086
13108
|
// AUTO-GENERATED from dictionary.mjs by generate/pack_private.mjs
|
|
@@ -13189,7 +13211,7 @@
|
|
|
13189
13211
|
this.rootURL = options.rootURL;
|
|
13190
13212
|
this.progressCallback = options.progressCallback;
|
|
13191
13213
|
}
|
|
13192
|
-
_createClass(DICOMWEB, [{
|
|
13214
|
+
return _createClass(DICOMWEB, [{
|
|
13193
13215
|
key: "request",
|
|
13194
13216
|
value: function request(endpoint) {
|
|
13195
13217
|
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -13299,7 +13321,6 @@
|
|
|
13299
13321
|
return array[Math.floor(Math.random() * array.length)];
|
|
13300
13322
|
}
|
|
13301
13323
|
}]);
|
|
13302
|
-
return DICOMWEB;
|
|
13303
13324
|
}();
|
|
13304
13325
|
|
|
13305
13326
|
//
|
|
@@ -13319,7 +13340,7 @@
|
|
|
13319
13340
|
function Colors() {
|
|
13320
13341
|
_classCallCheck(this, Colors);
|
|
13321
13342
|
}
|
|
13322
|
-
_createClass(Colors, null, [{
|
|
13343
|
+
return _createClass(Colors, null, [{
|
|
13323
13344
|
key: "d65WhitePointXYZ",
|
|
13324
13345
|
value: function d65WhitePointXYZ() {
|
|
13325
13346
|
// white points of D65 light point (CIELAB standard white point)
|
|
@@ -13450,7 +13471,6 @@
|
|
|
13450
13471
|
}
|
|
13451
13472
|
}
|
|
13452
13473
|
}]);
|
|
13453
|
-
return Colors;
|
|
13454
13474
|
}();
|
|
13455
13475
|
|
|
13456
13476
|
/**
|
|
@@ -13598,7 +13618,7 @@
|
|
|
13598
13618
|
* @param {Object} options.information - Optional information to pass to the filters
|
|
13599
13619
|
* @returns {void}
|
|
13600
13620
|
*/
|
|
13601
|
-
_createClass(DicomMetadataListener, [{
|
|
13621
|
+
return _createClass(DicomMetadataListener, [{
|
|
13602
13622
|
key: "setDrain",
|
|
13603
13623
|
value:
|
|
13604
13624
|
/**
|
|
@@ -13798,7 +13818,6 @@
|
|
|
13798
13818
|
return undefined;
|
|
13799
13819
|
}
|
|
13800
13820
|
}]);
|
|
13801
|
-
return DicomMetadataListener;
|
|
13802
13821
|
}();
|
|
13803
13822
|
|
|
13804
13823
|
var readLog = log.getLogger("AsyncDicomReader");
|
|
@@ -13826,7 +13845,7 @@
|
|
|
13826
13845
|
}
|
|
13827
13846
|
|
|
13828
13847
|
/** Sentinel returned when stream is Part 10 but has no preamble (starts with meta). */
|
|
13829
|
-
_createClass(AsyncDicomReader, [{
|
|
13848
|
+
return _createClass(AsyncDicomReader, [{
|
|
13830
13849
|
key: "readPreamble",
|
|
13831
13850
|
value: (
|
|
13832
13851
|
/**
|
|
@@ -13842,40 +13861,40 @@
|
|
|
13842
13861
|
function () {
|
|
13843
13862
|
var _readPreamble = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
13844
13863
|
var stream, group;
|
|
13845
|
-
return _regeneratorRuntime().wrap(function
|
|
13864
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
13846
13865
|
while (1) switch (_context.prev = _context.next) {
|
|
13847
13866
|
case 0:
|
|
13848
13867
|
stream = this.stream;
|
|
13849
|
-
_context.next =
|
|
13868
|
+
_context.next = 1;
|
|
13850
13869
|
return stream.ensureAvailable();
|
|
13851
|
-
case
|
|
13870
|
+
case 1:
|
|
13852
13871
|
stream.reset();
|
|
13853
13872
|
stream.increment(128);
|
|
13854
13873
|
if (!(stream.readAsciiString(4) !== "DICM")) {
|
|
13855
|
-
_context.next =
|
|
13874
|
+
_context.next = 5;
|
|
13856
13875
|
break;
|
|
13857
13876
|
}
|
|
13858
13877
|
stream.reset();
|
|
13859
|
-
_context.next =
|
|
13878
|
+
_context.next = 2;
|
|
13860
13879
|
return stream.ensureAvailable(4);
|
|
13861
|
-
case
|
|
13880
|
+
case 2:
|
|
13862
13881
|
stream.setEndian(true); // Part 10 meta and tag are little-endian
|
|
13863
13882
|
group = stream.readUint16();
|
|
13864
13883
|
stream.readUint16(); // element
|
|
13865
13884
|
stream.reset();
|
|
13866
13885
|
if (!(group === 0x0002)) {
|
|
13867
|
-
_context.next =
|
|
13886
|
+
_context.next = 3;
|
|
13868
13887
|
break;
|
|
13869
13888
|
}
|
|
13870
13889
|
return _context.abrupt("return", AsyncDicomReader.PART10_NO_PREAMBLE);
|
|
13871
|
-
case
|
|
13872
|
-
_context.next =
|
|
13890
|
+
case 3:
|
|
13891
|
+
_context.next = 4;
|
|
13873
13892
|
return this.detectRawEncoding();
|
|
13874
|
-
case
|
|
13893
|
+
case 4:
|
|
13875
13894
|
return _context.abrupt("return", false);
|
|
13876
|
-
case
|
|
13895
|
+
case 5:
|
|
13877
13896
|
return _context.abrupt("return", true);
|
|
13878
|
-
case
|
|
13897
|
+
case 6:
|
|
13879
13898
|
case "end":
|
|
13880
13899
|
return _context.stop();
|
|
13881
13900
|
}
|
|
@@ -13901,13 +13920,13 @@
|
|
|
13901
13920
|
value: (function () {
|
|
13902
13921
|
var _detectRawEncoding = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13903
13922
|
var stream, group, byte4, byte5, potentialLength, isASCIILetter, vrCandidate;
|
|
13904
|
-
return _regeneratorRuntime().wrap(function
|
|
13923
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
13905
13924
|
while (1) switch (_context2.prev = _context2.next) {
|
|
13906
13925
|
case 0:
|
|
13907
13926
|
stream = this.stream;
|
|
13908
|
-
_context2.next =
|
|
13927
|
+
_context2.next = 1;
|
|
13909
13928
|
return stream.ensureAvailable(8);
|
|
13910
|
-
case
|
|
13929
|
+
case 1:
|
|
13911
13930
|
// Need at least 8 bytes (tag + length) to detect
|
|
13912
13931
|
|
|
13913
13932
|
stream.reset();
|
|
@@ -13919,18 +13938,18 @@
|
|
|
13919
13938
|
|
|
13920
13939
|
// Part 10 meta (group 0002) is handled in readPreamble; raw dataset can start with 0008, 0028, etc.
|
|
13921
13940
|
if (!(group === 0x0002)) {
|
|
13922
|
-
_context2.next =
|
|
13941
|
+
_context2.next = 2;
|
|
13923
13942
|
break;
|
|
13924
13943
|
}
|
|
13925
13944
|
throw new Error("Invalid DICOM file: stream starts with meta (0002,xxxx) but was not handled as Part 10");
|
|
13926
|
-
case
|
|
13945
|
+
case 2:
|
|
13927
13946
|
// Check if bytes 4-5 (after tag) look like a valid VR (2 ASCII letters)
|
|
13928
13947
|
byte4 = stream.peekUint8(0);
|
|
13929
13948
|
byte5 = stream.peekUint8(1); // If we're going to assume LEI, check the length is even (DICOM requirement)
|
|
13930
13949
|
// Read the length value (4 bytes after tag in LEI format) as little-endian uint32
|
|
13931
|
-
_context2.next =
|
|
13950
|
+
_context2.next = 3;
|
|
13932
13951
|
return stream.ensureAvailable(8);
|
|
13933
|
-
case
|
|
13952
|
+
case 3:
|
|
13934
13953
|
// Need at least 8 bytes (tag + length)
|
|
13935
13954
|
potentialLength = stream.view.getUint32(stream.offset, true); // true = little endian
|
|
13936
13955
|
isASCIILetter = function isASCIILetter(byte) {
|
|
@@ -13939,42 +13958,42 @@
|
|
|
13939
13958
|
byte >= 0x61 && byte <= 0x7a; // a-z
|
|
13940
13959
|
};
|
|
13941
13960
|
if (!(isASCIILetter(byte4) && isASCIILetter(byte5))) {
|
|
13942
|
-
_context2.next =
|
|
13961
|
+
_context2.next = 7;
|
|
13943
13962
|
break;
|
|
13944
13963
|
}
|
|
13945
13964
|
// Check if it's a valid VR code
|
|
13946
13965
|
vrCandidate = String.fromCharCode(byte4, byte5).toUpperCase();
|
|
13947
13966
|
if (!VALID_VRS.has(vrCandidate)) {
|
|
13948
|
-
_context2.next =
|
|
13967
|
+
_context2.next = 4;
|
|
13949
13968
|
break;
|
|
13950
13969
|
}
|
|
13951
13970
|
// Valid VR detected - this is LEE (Explicit Little Endian)
|
|
13952
13971
|
this.syntax = EXPLICIT_LITTLE_ENDIAN$1;
|
|
13953
|
-
_context2.next =
|
|
13972
|
+
_context2.next = 6;
|
|
13954
13973
|
break;
|
|
13955
|
-
case
|
|
13974
|
+
case 4:
|
|
13956
13975
|
if (!(potentialLength % 2 !== 0)) {
|
|
13957
|
-
_context2.next =
|
|
13976
|
+
_context2.next = 5;
|
|
13958
13977
|
break;
|
|
13959
13978
|
}
|
|
13960
13979
|
throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
|
|
13961
|
-
case
|
|
13980
|
+
case 5:
|
|
13962
13981
|
this.syntax = IMPLICIT_LITTLE_ENDIAN;
|
|
13963
|
-
case
|
|
13964
|
-
_context2.next =
|
|
13982
|
+
case 6:
|
|
13983
|
+
_context2.next = 9;
|
|
13965
13984
|
break;
|
|
13966
|
-
case
|
|
13985
|
+
case 7:
|
|
13967
13986
|
if (!(potentialLength % 2 !== 0)) {
|
|
13968
|
-
_context2.next =
|
|
13987
|
+
_context2.next = 8;
|
|
13969
13988
|
break;
|
|
13970
13989
|
}
|
|
13971
13990
|
throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
|
|
13972
|
-
case
|
|
13991
|
+
case 8:
|
|
13973
13992
|
this.syntax = IMPLICIT_LITTLE_ENDIAN;
|
|
13974
|
-
case
|
|
13993
|
+
case 9:
|
|
13975
13994
|
// Reset stream to beginning for reading
|
|
13976
13995
|
stream.reset();
|
|
13977
|
-
case
|
|
13996
|
+
case 10:
|
|
13978
13997
|
case "end":
|
|
13979
13998
|
return _context2.stop();
|
|
13980
13999
|
}
|
|
@@ -14000,23 +14019,23 @@
|
|
|
14000
14019
|
_this$meta2,
|
|
14001
14020
|
_information2,
|
|
14002
14021
|
_args3 = arguments;
|
|
14003
|
-
return _regeneratorRuntime().wrap(function
|
|
14022
|
+
return _regeneratorRuntime().wrap(function (_context3) {
|
|
14004
14023
|
while (1) switch (_context3.prev = _context3.next) {
|
|
14005
14024
|
case 0:
|
|
14006
14025
|
options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : undefined;
|
|
14007
|
-
_context3.next =
|
|
14026
|
+
_context3.next = 1;
|
|
14008
14027
|
return this.readPreamble();
|
|
14009
|
-
case
|
|
14028
|
+
case 1:
|
|
14010
14029
|
hasPreamble = _context3.sent;
|
|
14011
14030
|
if (!(hasPreamble === AsyncDicomReader.PART10_NO_PREAMBLE)) {
|
|
14012
|
-
_context3.next =
|
|
14031
|
+
_context3.next = 4;
|
|
14013
14032
|
break;
|
|
14014
14033
|
}
|
|
14015
|
-
_context3.next =
|
|
14034
|
+
_context3.next = 2;
|
|
14016
14035
|
return this.readMeta(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
14017
14036
|
ignoreErrors: true
|
|
14018
14037
|
}));
|
|
14019
|
-
case
|
|
14038
|
+
case 2:
|
|
14020
14039
|
this.meta = _context3.sent;
|
|
14021
14040
|
_listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
|
|
14022
14041
|
if (_listener.information) {
|
|
@@ -14026,14 +14045,14 @@
|
|
|
14026
14045
|
}
|
|
14027
14046
|
this.dict || (this.dict = {});
|
|
14028
14047
|
_listener.startObject(this.dict);
|
|
14029
|
-
_context3.next =
|
|
14048
|
+
_context3.next = 3;
|
|
14030
14049
|
return this.read(_listener, options);
|
|
14031
|
-
case
|
|
14050
|
+
case 3:
|
|
14032
14051
|
this.dict = _context3.sent;
|
|
14033
14052
|
return _context3.abrupt("return", this);
|
|
14034
|
-
case
|
|
14053
|
+
case 4:
|
|
14035
14054
|
if (hasPreamble) {
|
|
14036
|
-
_context3.next =
|
|
14055
|
+
_context3.next = 6;
|
|
14037
14056
|
break;
|
|
14038
14057
|
}
|
|
14039
14058
|
// Handle raw dataset (no Part 10 preamble)
|
|
@@ -14046,15 +14065,15 @@
|
|
|
14046
14065
|
}
|
|
14047
14066
|
this.dict || (this.dict = {});
|
|
14048
14067
|
_listener2.startObject(this.dict);
|
|
14049
|
-
_context3.next =
|
|
14068
|
+
_context3.next = 5;
|
|
14050
14069
|
return this.read(_listener2, options);
|
|
14051
|
-
case
|
|
14070
|
+
case 5:
|
|
14052
14071
|
this.dict = _context3.sent;
|
|
14053
14072
|
return _context3.abrupt("return", this);
|
|
14054
|
-
case
|
|
14055
|
-
_context3.next =
|
|
14073
|
+
case 6:
|
|
14074
|
+
_context3.next = 7;
|
|
14056
14075
|
return this.readMeta(options);
|
|
14057
|
-
case
|
|
14076
|
+
case 7:
|
|
14058
14077
|
this.meta = _context3.sent;
|
|
14059
14078
|
listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
|
|
14060
14079
|
if (listener.information) {
|
|
@@ -14064,12 +14083,12 @@
|
|
|
14064
14083
|
}
|
|
14065
14084
|
this.dict || (this.dict = {});
|
|
14066
14085
|
listener.startObject(this.dict);
|
|
14067
|
-
_context3.next =
|
|
14086
|
+
_context3.next = 8;
|
|
14068
14087
|
return this.read(listener, options);
|
|
14069
|
-
case
|
|
14088
|
+
case 8:
|
|
14070
14089
|
this.dict = _context3.sent;
|
|
14071
14090
|
return _context3.abrupt("return", this);
|
|
14072
|
-
case
|
|
14091
|
+
case 9:
|
|
14073
14092
|
case "end":
|
|
14074
14093
|
return _context3.stop();
|
|
14075
14094
|
}
|
|
@@ -14099,54 +14118,54 @@
|
|
|
14099
14118
|
metaLength,
|
|
14100
14119
|
metaStream,
|
|
14101
14120
|
_args4 = arguments;
|
|
14102
|
-
return _regeneratorRuntime().wrap(function
|
|
14121
|
+
return _regeneratorRuntime().wrap(function (_context4) {
|
|
14103
14122
|
while (1) switch (_context4.prev = _context4.next) {
|
|
14104
14123
|
case 0:
|
|
14105
14124
|
options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : undefined;
|
|
14106
14125
|
stream = this.stream;
|
|
14107
|
-
_context4.next =
|
|
14126
|
+
_context4.next = 1;
|
|
14108
14127
|
return stream.ensureAvailable();
|
|
14109
|
-
case
|
|
14128
|
+
case 1:
|
|
14110
14129
|
metaStartPos = stream.offset;
|
|
14111
14130
|
el = this.readTagHeader();
|
|
14112
14131
|
if (!(el.tag !== TagHex.FileMetaInformationGroupLength)) {
|
|
14113
|
-
_context4.next =
|
|
14132
|
+
_context4.next = 4;
|
|
14114
14133
|
break;
|
|
14115
14134
|
}
|
|
14116
14135
|
if (options !== null && options !== void 0 && options.ignoreErrors) {
|
|
14117
|
-
_context4.next =
|
|
14136
|
+
_context4.next = 2;
|
|
14118
14137
|
break;
|
|
14119
14138
|
}
|
|
14120
14139
|
throw new Error("Invalid DICOM file, meta length tag is malformed or not present.");
|
|
14121
|
-
case
|
|
14140
|
+
case 2:
|
|
14122
14141
|
// reset stream to the position where we started reading tags
|
|
14123
14142
|
stream.offset = metaStartPos;
|
|
14124
14143
|
// Wait for at least 10k to be available to make sure there is enough
|
|
14125
14144
|
// data to read the entire Meta header
|
|
14126
|
-
_context4.next =
|
|
14145
|
+
_context4.next = 3;
|
|
14127
14146
|
return stream.ensureAvailable((options === null || options === void 0 ? void 0 : options.maxSizeMeta) || 1024 * 10);
|
|
14128
|
-
case
|
|
14147
|
+
case 3:
|
|
14129
14148
|
// read meta header elements sequentially
|
|
14130
14149
|
this.meta = DicomMessage._read(stream, EXPLICIT_LITTLE_ENDIAN$1, {
|
|
14131
14150
|
untilTag: "00030000",
|
|
14132
14151
|
stopOnGreaterTag: true,
|
|
14133
14152
|
ignoreErrors: true
|
|
14134
14153
|
});
|
|
14135
|
-
_context4.next =
|
|
14154
|
+
_context4.next = 6;
|
|
14136
14155
|
break;
|
|
14137
|
-
case
|
|
14156
|
+
case 4:
|
|
14138
14157
|
// meta length tag is present
|
|
14139
14158
|
metaLength = el.vrObj.readBytes(stream);
|
|
14140
|
-
_context4.next =
|
|
14159
|
+
_context4.next = 5;
|
|
14141
14160
|
return stream.ensureAvailable(metaLength);
|
|
14142
|
-
case
|
|
14161
|
+
case 5:
|
|
14143
14162
|
// read header buffer using the specified meta length
|
|
14144
14163
|
metaStream = stream.more(metaLength);
|
|
14145
14164
|
this.meta = DicomMessage._read(metaStream, EXPLICIT_LITTLE_ENDIAN$1, {});
|
|
14146
|
-
case
|
|
14165
|
+
case 6:
|
|
14147
14166
|
this.syntax = this.meta[TagHex.TransferSyntaxUID].Value[0];
|
|
14148
14167
|
return _context4.abrupt("return", this.meta);
|
|
14149
|
-
case
|
|
14168
|
+
case 7:
|
|
14150
14169
|
case "end":
|
|
14151
14170
|
return _context4.stop();
|
|
14152
14171
|
}
|
|
@@ -14162,17 +14181,17 @@
|
|
|
14162
14181
|
value: function () {
|
|
14163
14182
|
var _read = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(listener, options) {
|
|
14164
14183
|
var untilOffset, stream, tagInfo, tag, tagObj, length, addTagResult;
|
|
14165
|
-
return _regeneratorRuntime().wrap(function
|
|
14184
|
+
return _regeneratorRuntime().wrap(function (_context5) {
|
|
14166
14185
|
while (1) switch (_context5.prev = _context5.next) {
|
|
14167
14186
|
case 0:
|
|
14168
14187
|
untilOffset = (options === null || options === void 0 ? void 0 : options.untilOffset) || Number.MAX_SAFE_INTEGER;
|
|
14169
14188
|
this.listener = listener;
|
|
14170
14189
|
stream = this.stream;
|
|
14171
|
-
_context5.next =
|
|
14190
|
+
_context5.next = 1;
|
|
14172
14191
|
return stream.ensureAvailable();
|
|
14173
|
-
case
|
|
14192
|
+
case 1:
|
|
14174
14193
|
if (!(stream.offset < untilOffset && stream.isAvailable(1, false))) {
|
|
14175
|
-
_context5.next =
|
|
14194
|
+
_context5.next = 14;
|
|
14176
14195
|
break;
|
|
14177
14196
|
}
|
|
14178
14197
|
readLog.debug("read loop", stream.offset, untilOffset);
|
|
@@ -14182,74 +14201,74 @@
|
|
|
14182
14201
|
tagInfo = this.readTagHeader(options);
|
|
14183
14202
|
tag = tagInfo.tag, tagObj = tagInfo.tagObj, length = tagInfo.length;
|
|
14184
14203
|
if (!(tag === TagHex.ItemDelimitationEnd)) {
|
|
14185
|
-
_context5.next =
|
|
14204
|
+
_context5.next = 2;
|
|
14186
14205
|
break;
|
|
14187
14206
|
}
|
|
14188
14207
|
return _context5.abrupt("return", listener.pop());
|
|
14189
|
-
case
|
|
14208
|
+
case 2:
|
|
14190
14209
|
if (!tagObj.isInstruction()) {
|
|
14191
|
-
_context5.next =
|
|
14210
|
+
_context5.next = 3;
|
|
14192
14211
|
break;
|
|
14193
14212
|
}
|
|
14194
|
-
return _context5.abrupt("continue",
|
|
14195
|
-
case
|
|
14213
|
+
return _context5.abrupt("continue", 1);
|
|
14214
|
+
case 3:
|
|
14196
14215
|
if (!(tagObj.group() === 0 || tag === TagHex.DataSetTrailingPadding)) {
|
|
14197
|
-
_context5.next =
|
|
14216
|
+
_context5.next = 4;
|
|
14198
14217
|
break;
|
|
14199
14218
|
}
|
|
14200
14219
|
// Group length
|
|
14201
14220
|
stream.increment(tagObj.length);
|
|
14202
|
-
return _context5.abrupt("continue",
|
|
14203
|
-
case
|
|
14221
|
+
return _context5.abrupt("continue", 1);
|
|
14222
|
+
case 4:
|
|
14204
14223
|
addTagResult = listener.addTag(tag, tagInfo);
|
|
14205
14224
|
if (!this.isSequence(tagInfo)) {
|
|
14206
|
-
_context5.next =
|
|
14225
|
+
_context5.next = 6;
|
|
14207
14226
|
break;
|
|
14208
14227
|
}
|
|
14209
|
-
_context5.next =
|
|
14228
|
+
_context5.next = 5;
|
|
14210
14229
|
return this.readSequence(listener, tagInfo, options);
|
|
14211
|
-
case
|
|
14212
|
-
_context5.next =
|
|
14230
|
+
case 5:
|
|
14231
|
+
_context5.next = 12;
|
|
14213
14232
|
break;
|
|
14214
|
-
case
|
|
14233
|
+
case 6:
|
|
14215
14234
|
if (!tagObj.isPixelDataTag()) {
|
|
14216
|
-
_context5.next =
|
|
14235
|
+
_context5.next = 8;
|
|
14217
14236
|
break;
|
|
14218
14237
|
}
|
|
14219
|
-
_context5.next =
|
|
14238
|
+
_context5.next = 7;
|
|
14220
14239
|
return this.readPixelData(tagInfo);
|
|
14221
|
-
case
|
|
14222
|
-
_context5.next =
|
|
14240
|
+
case 7:
|
|
14241
|
+
_context5.next = 12;
|
|
14223
14242
|
break;
|
|
14224
|
-
case
|
|
14243
|
+
case 8:
|
|
14225
14244
|
if (!(length === UNDEFINED_LENGTH_FIX)) {
|
|
14226
|
-
_context5.next =
|
|
14245
|
+
_context5.next = 9;
|
|
14227
14246
|
break;
|
|
14228
14247
|
}
|
|
14229
14248
|
throw new Error("Can't handle tag ".concat(tagInfo.tag, " with -1 length and not sequence"));
|
|
14230
|
-
case
|
|
14249
|
+
case 9:
|
|
14231
14250
|
if (!((addTagResult === null || addTagResult === void 0 ? void 0 : addTagResult.expectsRaw) === true && length > 0)) {
|
|
14232
|
-
_context5.next =
|
|
14251
|
+
_context5.next = 11;
|
|
14233
14252
|
break;
|
|
14234
14253
|
}
|
|
14235
|
-
_context5.next =
|
|
14254
|
+
_context5.next = 10;
|
|
14236
14255
|
return this.readRawBinary(tagInfo);
|
|
14237
|
-
case
|
|
14238
|
-
_context5.next =
|
|
14256
|
+
case 10:
|
|
14257
|
+
_context5.next = 12;
|
|
14239
14258
|
break;
|
|
14240
|
-
case
|
|
14241
|
-
_context5.next =
|
|
14259
|
+
case 11:
|
|
14260
|
+
_context5.next = 12;
|
|
14242
14261
|
return this.readSingle(tagInfo, listener, options);
|
|
14243
|
-
case
|
|
14262
|
+
case 12:
|
|
14244
14263
|
listener.pop();
|
|
14245
|
-
_context5.next =
|
|
14264
|
+
_context5.next = 13;
|
|
14246
14265
|
return this.stream.ensureAvailable();
|
|
14247
|
-
case
|
|
14248
|
-
_context5.next =
|
|
14266
|
+
case 13:
|
|
14267
|
+
_context5.next = 1;
|
|
14249
14268
|
break;
|
|
14250
|
-
case
|
|
14269
|
+
case 14:
|
|
14251
14270
|
return _context5.abrupt("return", listener.pop());
|
|
14252
|
-
case
|
|
14271
|
+
case 15:
|
|
14253
14272
|
case "end":
|
|
14254
14273
|
return _context5.stop();
|
|
14255
14274
|
}
|
|
@@ -14264,33 +14283,33 @@
|
|
|
14264
14283
|
key: "readSequence",
|
|
14265
14284
|
value: function () {
|
|
14266
14285
|
var _readSequence = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(listener, sqTagInfo, options) {
|
|
14267
|
-
var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset;
|
|
14268
|
-
return _regeneratorRuntime().wrap(function
|
|
14286
|
+
var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, _t;
|
|
14287
|
+
return _regeneratorRuntime().wrap(function (_context6) {
|
|
14269
14288
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14270
14289
|
case 0:
|
|
14271
14290
|
length = sqTagInfo.length;
|
|
14272
14291
|
stream = this.stream, syntax = this.syntax;
|
|
14273
14292
|
endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
|
|
14274
|
-
case
|
|
14275
|
-
|
|
14276
|
-
if (!
|
|
14277
|
-
_context6.next =
|
|
14293
|
+
case 1:
|
|
14294
|
+
_t = stream.offset < endOffset;
|
|
14295
|
+
if (!_t) {
|
|
14296
|
+
_context6.next = 3;
|
|
14278
14297
|
break;
|
|
14279
14298
|
}
|
|
14280
|
-
_context6.next =
|
|
14299
|
+
_context6.next = 2;
|
|
14281
14300
|
return stream.ensureAvailable();
|
|
14282
|
-
case
|
|
14283
|
-
|
|
14284
|
-
case
|
|
14285
|
-
if (!
|
|
14286
|
-
_context6.next =
|
|
14301
|
+
case 2:
|
|
14302
|
+
_t = _context6.sent;
|
|
14303
|
+
case 3:
|
|
14304
|
+
if (!_t) {
|
|
14305
|
+
_context6.next = 8;
|
|
14287
14306
|
break;
|
|
14288
14307
|
}
|
|
14289
14308
|
readLog.debug("readSequence loop", stream.offset, endOffset);
|
|
14290
14309
|
tagInfo = this.readTagHeader(syntax, options);
|
|
14291
14310
|
tag = tagInfo.tag;
|
|
14292
14311
|
if (!(tag === TagHex.Item)) {
|
|
14293
|
-
_context6.next =
|
|
14312
|
+
_context6.next = 5;
|
|
14294
14313
|
break;
|
|
14295
14314
|
}
|
|
14296
14315
|
listener.startObject();
|
|
@@ -14302,26 +14321,26 @@
|
|
|
14302
14321
|
// as instructions and skips them.
|
|
14303
14322
|
itemLength = tagInfo.length;
|
|
14304
14323
|
itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset);
|
|
14305
|
-
_context6.next =
|
|
14324
|
+
_context6.next = 4;
|
|
14306
14325
|
return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
14307
14326
|
untilOffset: itemUntilOffset
|
|
14308
14327
|
}));
|
|
14309
|
-
case
|
|
14310
|
-
_context6.next =
|
|
14328
|
+
case 4:
|
|
14329
|
+
_context6.next = 7;
|
|
14311
14330
|
break;
|
|
14312
|
-
case
|
|
14331
|
+
case 5:
|
|
14313
14332
|
if (!(tag === TagHex.SequenceDelimitationEnd)) {
|
|
14314
|
-
_context6.next =
|
|
14333
|
+
_context6.next = 6;
|
|
14315
14334
|
break;
|
|
14316
14335
|
}
|
|
14317
14336
|
return _context6.abrupt("return");
|
|
14318
|
-
case
|
|
14337
|
+
case 6:
|
|
14319
14338
|
console.warn("Unknown tag info", length, tagInfo);
|
|
14320
14339
|
throw new Error();
|
|
14321
|
-
case
|
|
14322
|
-
_context6.next =
|
|
14340
|
+
case 7:
|
|
14341
|
+
_context6.next = 1;
|
|
14323
14342
|
break;
|
|
14324
|
-
case
|
|
14343
|
+
case 8:
|
|
14325
14344
|
case "end":
|
|
14326
14345
|
return _context6.stop();
|
|
14327
14346
|
}
|
|
@@ -14351,38 +14370,38 @@
|
|
|
14351
14370
|
var _emitSplitValues2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(length) {
|
|
14352
14371
|
var _listener$awaitDrain;
|
|
14353
14372
|
var stream, listener, maxFragmentSize, offset, chunkSize, buffer;
|
|
14354
|
-
return _regeneratorRuntime().wrap(function
|
|
14373
|
+
return _regeneratorRuntime().wrap(function (_context7) {
|
|
14355
14374
|
while (1) switch (_context7.prev = _context7.next) {
|
|
14356
14375
|
case 0:
|
|
14357
14376
|
stream = this.stream, listener = this.listener;
|
|
14358
|
-
_context7.next =
|
|
14377
|
+
_context7.next = 1;
|
|
14359
14378
|
return (_listener$awaitDrain = listener.awaitDrain) === null || _listener$awaitDrain === void 0 ? void 0 : _listener$awaitDrain.call(listener);
|
|
14360
|
-
case
|
|
14379
|
+
case 1:
|
|
14361
14380
|
maxFragmentSize = this.maxFragmentSize;
|
|
14362
14381
|
if (!(typeof maxFragmentSize !== "number" || maxFragmentSize <= 0)) {
|
|
14363
|
-
_context7.next =
|
|
14382
|
+
_context7.next = 2;
|
|
14364
14383
|
break;
|
|
14365
14384
|
}
|
|
14366
14385
|
throw new Error("maxFragmentSize must be a positive number, got ".concat(maxFragmentSize));
|
|
14367
|
-
case
|
|
14386
|
+
case 2:
|
|
14368
14387
|
offset = 0;
|
|
14369
|
-
case
|
|
14388
|
+
case 3:
|
|
14370
14389
|
if (!(offset < length)) {
|
|
14371
|
-
_context7.next =
|
|
14390
|
+
_context7.next = 5;
|
|
14372
14391
|
break;
|
|
14373
14392
|
}
|
|
14374
14393
|
readLog.trace("_emitSplitValues loop", offset, length);
|
|
14375
14394
|
chunkSize = Math.min(maxFragmentSize, length - offset);
|
|
14376
|
-
_context7.next =
|
|
14395
|
+
_context7.next = 4;
|
|
14377
14396
|
return stream.ensureAvailable(chunkSize);
|
|
14378
|
-
case
|
|
14397
|
+
case 4:
|
|
14379
14398
|
buffer = stream.readArrayBuffer(chunkSize);
|
|
14380
14399
|
listener.value(buffer);
|
|
14381
14400
|
offset += chunkSize;
|
|
14382
14401
|
stream.consume();
|
|
14383
|
-
_context7.next =
|
|
14402
|
+
_context7.next = 3;
|
|
14384
14403
|
break;
|
|
14385
|
-
case
|
|
14404
|
+
case 5:
|
|
14386
14405
|
case "end":
|
|
14387
14406
|
return _context7.stop();
|
|
14388
14407
|
}
|
|
@@ -14403,21 +14422,21 @@
|
|
|
14403
14422
|
var _readCompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_tagInfo) {
|
|
14404
14423
|
var _listener$information;
|
|
14405
14424
|
var stream, listener, transferSyntaxUid, isVideo, numberOfFrames, isSingleFrame, offsets, singleArray, startOffset, frameNumber, lastFrame, frameTag, length;
|
|
14406
|
-
return _regeneratorRuntime().wrap(function
|
|
14425
|
+
return _regeneratorRuntime().wrap(function (_context8) {
|
|
14407
14426
|
while (1) switch (_context8.prev = _context8.next) {
|
|
14408
14427
|
case 0:
|
|
14409
14428
|
stream = this.stream, listener = this.listener;
|
|
14410
14429
|
transferSyntaxUid = this.syntax;
|
|
14411
|
-
_context8.next =
|
|
14430
|
+
_context8.next = 1;
|
|
14412
14431
|
return stream.ensureAvailable();
|
|
14413
|
-
case
|
|
14432
|
+
case 1:
|
|
14414
14433
|
// Check if this is a video transfer syntax
|
|
14415
14434
|
isVideo = isVideoTransferSyntax(transferSyntaxUid); // Check number of frames - only use video logic for single frame (or undefined)
|
|
14416
14435
|
numberOfFrames = (_listener$information = listener.information) === null || _listener$information === void 0 ? void 0 : _listener$information.numberOfFrames;
|
|
14417
14436
|
isSingleFrame = !numberOfFrames || parseInt(numberOfFrames) <= 1;
|
|
14418
|
-
_context8.next =
|
|
14437
|
+
_context8.next = 2;
|
|
14419
14438
|
return this.readOffsets();
|
|
14420
|
-
case
|
|
14439
|
+
case 2:
|
|
14421
14440
|
offsets = _context8.sent;
|
|
14422
14441
|
singleArray = isVideo || isSingleFrame;
|
|
14423
14442
|
if (singleArray && !offsets) {
|
|
@@ -14430,15 +14449,15 @@
|
|
|
14430
14449
|
startOffset = stream.offset;
|
|
14431
14450
|
frameNumber = 0;
|
|
14432
14451
|
lastFrame = null;
|
|
14433
|
-
case
|
|
14452
|
+
case 3:
|
|
14434
14453
|
readLog.debug("readCompressed frame loop", frameNumber);
|
|
14435
14454
|
stream.consume();
|
|
14436
|
-
_context8.next =
|
|
14455
|
+
_context8.next = 4;
|
|
14437
14456
|
return stream.ensureAvailable();
|
|
14438
|
-
case
|
|
14457
|
+
case 4:
|
|
14439
14458
|
frameTag = this.readTagHeader();
|
|
14440
14459
|
if (!(frameTag.tag === TagHex.SequenceDelimitationEnd)) {
|
|
14441
|
-
_context8.next =
|
|
14460
|
+
_context8.next = 5;
|
|
14442
14461
|
break;
|
|
14443
14462
|
}
|
|
14444
14463
|
if (lastFrame) {
|
|
@@ -14446,29 +14465,29 @@
|
|
|
14446
14465
|
listener.pop();
|
|
14447
14466
|
}
|
|
14448
14467
|
return _context8.abrupt("return");
|
|
14449
|
-
case
|
|
14468
|
+
case 5:
|
|
14450
14469
|
if (!(frameTag.tag !== TagHex.Item)) {
|
|
14451
|
-
_context8.next =
|
|
14470
|
+
_context8.next = 6;
|
|
14452
14471
|
break;
|
|
14453
14472
|
}
|
|
14454
14473
|
throw new Error("frame tag isn't item: ".concat(frameTag.tag));
|
|
14455
|
-
case
|
|
14474
|
+
case 6:
|
|
14456
14475
|
length = frameTag.length;
|
|
14457
14476
|
if (!lastFrame) {
|
|
14458
14477
|
lastFrame = [];
|
|
14459
14478
|
listener.startObject(lastFrame);
|
|
14460
14479
|
}
|
|
14461
|
-
_context8.next =
|
|
14480
|
+
_context8.next = 7;
|
|
14462
14481
|
return this._emitSplitValues(length);
|
|
14463
|
-
case
|
|
14482
|
+
case 7:
|
|
14464
14483
|
if (!offsets || stream.offset >= offsets[frameNumber + 1] + startOffset) {
|
|
14465
14484
|
lastFrame = null;
|
|
14466
14485
|
listener.pop();
|
|
14467
14486
|
frameNumber++;
|
|
14468
14487
|
}
|
|
14469
|
-
_context8.next =
|
|
14488
|
+
_context8.next = 3;
|
|
14470
14489
|
break;
|
|
14471
|
-
case
|
|
14490
|
+
case 8:
|
|
14472
14491
|
case "end":
|
|
14473
14492
|
return _context8.stop();
|
|
14474
14493
|
}
|
|
@@ -14484,33 +14503,33 @@
|
|
|
14484
14503
|
value: function () {
|
|
14485
14504
|
var _readOffsets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
14486
14505
|
var tagInfo, offsets, numOfFrames, i;
|
|
14487
|
-
return _regeneratorRuntime().wrap(function
|
|
14506
|
+
return _regeneratorRuntime().wrap(function (_context9) {
|
|
14488
14507
|
while (1) switch (_context9.prev = _context9.next) {
|
|
14489
14508
|
case 0:
|
|
14490
14509
|
tagInfo = this.readTagHeader();
|
|
14491
14510
|
if (!(tagInfo.tag !== TagHex.Item)) {
|
|
14492
|
-
_context9.next =
|
|
14511
|
+
_context9.next = 1;
|
|
14493
14512
|
break;
|
|
14494
14513
|
}
|
|
14495
14514
|
throw new Error("Offsets tag is missing: ".concat(tagInfo.tag));
|
|
14496
|
-
case
|
|
14515
|
+
case 1:
|
|
14497
14516
|
if (!(tagInfo.length === 0)) {
|
|
14498
|
-
_context9.next =
|
|
14517
|
+
_context9.next = 2;
|
|
14499
14518
|
break;
|
|
14500
14519
|
}
|
|
14501
14520
|
return _context9.abrupt("return");
|
|
14502
|
-
case
|
|
14521
|
+
case 2:
|
|
14503
14522
|
offsets = [];
|
|
14504
14523
|
numOfFrames = tagInfo.length / 4;
|
|
14505
|
-
_context9.next =
|
|
14524
|
+
_context9.next = 3;
|
|
14506
14525
|
return this.stream.ensureAvailable(tagInfo.length);
|
|
14507
|
-
case
|
|
14526
|
+
case 3:
|
|
14508
14527
|
for (i = 0; i < numOfFrames; i++) {
|
|
14509
14528
|
readLog.trace("readOffsets loop", i, numOfFrames);
|
|
14510
14529
|
offsets.push(this.stream.readUint32());
|
|
14511
14530
|
}
|
|
14512
14531
|
return _context9.abrupt("return", offsets);
|
|
14513
|
-
case
|
|
14532
|
+
case 4:
|
|
14514
14533
|
case "end":
|
|
14515
14534
|
return _context9.stop();
|
|
14516
14535
|
}
|
|
@@ -14530,7 +14549,7 @@
|
|
|
14530
14549
|
var _readUncompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(tagInfo) {
|
|
14531
14550
|
var _listener$information2;
|
|
14532
14551
|
var length, listener, numberOfFrames, frameLength, _listener$information3, _listener$information4, _listener$information5, _listener$information6, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, frameNumber;
|
|
14533
|
-
return _regeneratorRuntime().wrap(function
|
|
14552
|
+
return _regeneratorRuntime().wrap(function (_context0) {
|
|
14534
14553
|
while (1) switch (_context0.prev = _context0.next) {
|
|
14535
14554
|
case 0:
|
|
14536
14555
|
length = tagInfo.length;
|
|
@@ -14538,7 +14557,7 @@
|
|
|
14538
14557
|
numberOfFrames = parseInt(((_listener$information2 = listener.information) === null || _listener$information2 === void 0 ? void 0 : _listener$information2.numberOfFrames) || 1);
|
|
14539
14558
|
frameLength = Math.floor(length / numberOfFrames);
|
|
14540
14559
|
if (!(numberOfFrames > 1)) {
|
|
14541
|
-
_context0.next =
|
|
14560
|
+
_context0.next = 4;
|
|
14542
14561
|
break;
|
|
14543
14562
|
}
|
|
14544
14563
|
rows = (_listener$information3 = listener.information) === null || _listener$information3 === void 0 ? void 0 : _listener$information3.rows;
|
|
@@ -14547,44 +14566,44 @@
|
|
|
14547
14566
|
bitsAllocated = (_listener$information6 = listener.information) === null || _listener$information6 === void 0 ? void 0 : _listener$information6.bitsAllocated;
|
|
14548
14567
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14549
14568
|
if (!(bitsPerFrame % 8 !== 0)) {
|
|
14550
|
-
_context0.next =
|
|
14569
|
+
_context0.next = 3;
|
|
14551
14570
|
break;
|
|
14552
14571
|
}
|
|
14553
14572
|
if (!(bitsAllocated === 1)) {
|
|
14554
|
-
_context0.next =
|
|
14573
|
+
_context0.next = 2;
|
|
14555
14574
|
break;
|
|
14556
14575
|
}
|
|
14557
|
-
_context0.next =
|
|
14576
|
+
_context0.next = 1;
|
|
14558
14577
|
return this.readUncompressedBitFrame(tagInfo);
|
|
14559
|
-
case
|
|
14578
|
+
case 1:
|
|
14560
14579
|
return _context0.abrupt("return", _context0.sent);
|
|
14561
|
-
case
|
|
14580
|
+
case 2:
|
|
14562
14581
|
throw new Error("Odd frame length must be single bit: ".concat(rows, ",").concat(cols, " ").concat(samplesPerPixel, " ").concat(bitsAllocated));
|
|
14563
|
-
case
|
|
14582
|
+
case 3:
|
|
14564
14583
|
if (!(length % numberOfFrames !== 0)) {
|
|
14565
|
-
_context0.next =
|
|
14584
|
+
_context0.next = 4;
|
|
14566
14585
|
break;
|
|
14567
14586
|
}
|
|
14568
14587
|
throw new Error("Invalid frame length: ".concat(length, " for ").concat(numberOfFrames, " frames"));
|
|
14569
|
-
case
|
|
14588
|
+
case 4:
|
|
14570
14589
|
frameNumber = 0;
|
|
14571
|
-
case
|
|
14590
|
+
case 5:
|
|
14572
14591
|
if (!(frameNumber < numberOfFrames)) {
|
|
14573
|
-
_context0.next =
|
|
14592
|
+
_context0.next = 8;
|
|
14574
14593
|
break;
|
|
14575
14594
|
}
|
|
14576
14595
|
readLog.trace("readUncompressed loop", frameNumber, numberOfFrames);
|
|
14577
14596
|
listener.startObject([]);
|
|
14578
|
-
_context0.next =
|
|
14597
|
+
_context0.next = 6;
|
|
14579
14598
|
return this._emitSplitValues(frameLength);
|
|
14580
|
-
case
|
|
14599
|
+
case 6:
|
|
14581
14600
|
listener.pop();
|
|
14582
14601
|
// console.log(stream.getBufferMemoryInfo());
|
|
14583
|
-
case
|
|
14602
|
+
case 7:
|
|
14584
14603
|
frameNumber++;
|
|
14585
|
-
_context0.next =
|
|
14604
|
+
_context0.next = 5;
|
|
14586
14605
|
break;
|
|
14587
|
-
case
|
|
14606
|
+
case 8:
|
|
14588
14607
|
case "end":
|
|
14589
14608
|
return _context0.stop();
|
|
14590
14609
|
}
|
|
@@ -14615,7 +14634,7 @@
|
|
|
14615
14634
|
var _readUncompressedBitFrame = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(tagInfo) {
|
|
14616
14635
|
var _listener$information7, _listener$information8, _listener$information9, _listener$information0, _listener$information1;
|
|
14617
14636
|
var length, listener, stream, numberOfFrames, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, bytesPerFrame, totalBits, totalBytes, allPixelData, frameNumber, bitOffset, frameBuffer, frameView, sourceView, bitIndex, globalBitIndex, sourceByteIndex, sourceBitIndex, targetByteIndex, targetBitIndex, sourceByte, bitValue;
|
|
14618
|
-
return _regeneratorRuntime().wrap(function
|
|
14637
|
+
return _regeneratorRuntime().wrap(function (_context1) {
|
|
14619
14638
|
while (1) switch (_context1.prev = _context1.next) {
|
|
14620
14639
|
case 0:
|
|
14621
14640
|
length = tagInfo.length;
|
|
@@ -14626,30 +14645,30 @@
|
|
|
14626
14645
|
samplesPerPixel = ((_listener$information0 = listener.information) === null || _listener$information0 === void 0 ? void 0 : _listener$information0.samplesPerPixel) || 1;
|
|
14627
14646
|
bitsAllocated = (_listener$information1 = listener.information) === null || _listener$information1 === void 0 ? void 0 : _listener$information1.bitsAllocated;
|
|
14628
14647
|
if (!(!rows || !cols || !bitsAllocated)) {
|
|
14629
|
-
_context1.next =
|
|
14648
|
+
_context1.next = 1;
|
|
14630
14649
|
break;
|
|
14631
14650
|
}
|
|
14632
14651
|
throw new Error("Missing required pixel data information: rows, columns, or bitsAllocated");
|
|
14633
|
-
case
|
|
14652
|
+
case 1:
|
|
14634
14653
|
if (!(bitsAllocated !== 1)) {
|
|
14635
|
-
_context1.next =
|
|
14654
|
+
_context1.next = 2;
|
|
14636
14655
|
break;
|
|
14637
14656
|
}
|
|
14638
14657
|
throw new Error("Odd-length bit frames require bitsAllocated=1, got ".concat(bitsAllocated));
|
|
14639
|
-
case
|
|
14658
|
+
case 2:
|
|
14640
14659
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14641
14660
|
bytesPerFrame = Math.ceil(bitsPerFrame / 8);
|
|
14642
14661
|
totalBits = bitsPerFrame * numberOfFrames;
|
|
14643
14662
|
totalBytes = Math.ceil(totalBits / 8);
|
|
14644
14663
|
if (!(totalBytes !== length)) {
|
|
14645
|
-
_context1.next =
|
|
14664
|
+
_context1.next = 3;
|
|
14646
14665
|
break;
|
|
14647
14666
|
}
|
|
14648
14667
|
throw new Error("The calculated length ".concat(totalBytes, " does not match the actual length ").concat(length));
|
|
14649
|
-
case
|
|
14650
|
-
_context1.next =
|
|
14668
|
+
case 3:
|
|
14669
|
+
_context1.next = 4;
|
|
14651
14670
|
return stream.ensureAvailable(length);
|
|
14652
|
-
case
|
|
14671
|
+
case 4:
|
|
14653
14672
|
allPixelData = stream.readArrayBuffer(totalBytes);
|
|
14654
14673
|
stream.consume();
|
|
14655
14674
|
|
|
@@ -14680,7 +14699,7 @@
|
|
|
14680
14699
|
listener.value(frameBuffer);
|
|
14681
14700
|
listener.pop();
|
|
14682
14701
|
}
|
|
14683
|
-
case
|
|
14702
|
+
case 5:
|
|
14684
14703
|
case "end":
|
|
14685
14704
|
return _context1.stop();
|
|
14686
14705
|
}
|
|
@@ -14701,13 +14720,13 @@
|
|
|
14701
14720
|
value: (function () {
|
|
14702
14721
|
var _readRawBinary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(tagInfo) {
|
|
14703
14722
|
var length;
|
|
14704
|
-
return _regeneratorRuntime().wrap(function
|
|
14723
|
+
return _regeneratorRuntime().wrap(function (_context10) {
|
|
14705
14724
|
while (1) switch (_context10.prev = _context10.next) {
|
|
14706
14725
|
case 0:
|
|
14707
14726
|
length = tagInfo.length;
|
|
14708
|
-
_context10.next =
|
|
14727
|
+
_context10.next = 1;
|
|
14709
14728
|
return this._emitSplitValues(length);
|
|
14710
|
-
case
|
|
14729
|
+
case 1:
|
|
14711
14730
|
case "end":
|
|
14712
14731
|
return _context10.stop();
|
|
14713
14732
|
}
|
|
@@ -14829,15 +14848,15 @@
|
|
|
14829
14848
|
key: "readSingle",
|
|
14830
14849
|
value: (function () {
|
|
14831
14850
|
var _readSingle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(tagInfo, listener, options) {
|
|
14832
|
-
var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding;
|
|
14833
|
-
return _regeneratorRuntime().wrap(function
|
|
14851
|
+
var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding, valuesForListener;
|
|
14852
|
+
return _regeneratorRuntime().wrap(function (_context11) {
|
|
14834
14853
|
while (1) switch (_context11.prev = _context11.next) {
|
|
14835
14854
|
case 0:
|
|
14836
14855
|
length = tagInfo.length;
|
|
14837
14856
|
stream = this.stream, syntax = this.syntax;
|
|
14838
|
-
_context11.next =
|
|
14857
|
+
_context11.next = 1;
|
|
14839
14858
|
return this.stream.ensureAvailable(length);
|
|
14840
|
-
case
|
|
14859
|
+
case 1:
|
|
14841
14860
|
vr = ValueRepresentation.createByTypeString(tagInfo.vr);
|
|
14842
14861
|
values = [];
|
|
14843
14862
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
@@ -14863,34 +14882,34 @@
|
|
|
14863
14882
|
}
|
|
14864
14883
|
}
|
|
14865
14884
|
if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
|
|
14866
|
-
_context11.next =
|
|
14885
|
+
_context11.next = 5;
|
|
14867
14886
|
break;
|
|
14868
14887
|
}
|
|
14869
14888
|
if (!(values.length > 0)) {
|
|
14870
|
-
_context11.next =
|
|
14889
|
+
_context11.next = 4;
|
|
14871
14890
|
break;
|
|
14872
14891
|
}
|
|
14873
14892
|
_values = values, _values2 = _slicedToArray(_values, 1), coding = _values2[0];
|
|
14874
14893
|
coding = coding.replace(/[_ ]/g, "-").toLowerCase();
|
|
14875
14894
|
if (!(coding in encodingMapping)) {
|
|
14876
|
-
_context11.next =
|
|
14895
|
+
_context11.next = 2;
|
|
14877
14896
|
break;
|
|
14878
14897
|
}
|
|
14879
14898
|
coding = encodingMapping[coding];
|
|
14880
14899
|
this.stream.setDecoder(new TextDecoder(coding));
|
|
14881
|
-
_context11.next =
|
|
14900
|
+
_context11.next = 4;
|
|
14882
14901
|
break;
|
|
14883
|
-
case
|
|
14902
|
+
case 2:
|
|
14884
14903
|
if (!(options !== null && options !== void 0 && options.ignoreErrors)) {
|
|
14885
|
-
_context11.next =
|
|
14904
|
+
_context11.next = 3;
|
|
14886
14905
|
break;
|
|
14887
14906
|
}
|
|
14888
14907
|
log.warn("Unsupported character set: ".concat(coding, ", using default character set"));
|
|
14889
|
-
_context11.next =
|
|
14908
|
+
_context11.next = 4;
|
|
14890
14909
|
break;
|
|
14891
|
-
case
|
|
14910
|
+
case 3:
|
|
14892
14911
|
throw Error("Unsupported character set: ".concat(coding));
|
|
14893
|
-
case
|
|
14912
|
+
case 4:
|
|
14894
14913
|
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14895
14914
|
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14896
14915
|
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
@@ -14898,12 +14917,13 @@
|
|
|
14898
14917
|
// TODO: the original charset value should also be preserved:
|
|
14899
14918
|
// it is needed for bulk data decoding.
|
|
14900
14919
|
values = ["ISO_IR 192"];
|
|
14901
|
-
case
|
|
14902
|
-
|
|
14920
|
+
case 5:
|
|
14921
|
+
valuesForListener = Array.isArray(values) ? values : [values];
|
|
14922
|
+
valuesForListener.forEach(function (value) {
|
|
14903
14923
|
return listener.value(value);
|
|
14904
14924
|
});
|
|
14905
14925
|
return _context11.abrupt("return", values);
|
|
14906
|
-
case
|
|
14926
|
+
case 6:
|
|
14907
14927
|
case "end":
|
|
14908
14928
|
return _context11.stop();
|
|
14909
14929
|
}
|
|
@@ -14915,7 +14935,6 @@
|
|
|
14915
14935
|
return readSingle;
|
|
14916
14936
|
}())
|
|
14917
14937
|
}]);
|
|
14918
|
-
return AsyncDicomReader;
|
|
14919
14938
|
}();
|
|
14920
14939
|
_defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
|
|
14921
14940
|
|
|
@@ -14981,7 +15000,7 @@
|
|
|
14981
15000
|
};
|
|
14982
15001
|
this.derive();
|
|
14983
15002
|
}
|
|
14984
|
-
_createClass(DerivedDataset, [{
|
|
15003
|
+
return _createClass(DerivedDataset, [{
|
|
14985
15004
|
key: "assignToDataset",
|
|
14986
15005
|
value: function assignToDataset(data) {
|
|
14987
15006
|
var _this = this;
|
|
@@ -15019,11 +15038,9 @@
|
|
|
15019
15038
|
return JSON.parse(JSON.stringify(dataset));
|
|
15020
15039
|
}
|
|
15021
15040
|
}]);
|
|
15022
|
-
return DerivedDataset;
|
|
15023
15041
|
}();
|
|
15024
15042
|
|
|
15025
15043
|
var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
15026
|
-
_inherits(DerivedPixels, _DerivedDataset);
|
|
15027
15044
|
function DerivedPixels(datasets) {
|
|
15028
15045
|
var _this;
|
|
15029
15046
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -15038,7 +15055,8 @@
|
|
|
15038
15055
|
|
|
15039
15056
|
// this assumes a normalized multiframe input and will create
|
|
15040
15057
|
// a multiframe derived image
|
|
15041
|
-
|
|
15058
|
+
_inherits(DerivedPixels, _DerivedDataset);
|
|
15059
|
+
return _createClass(DerivedPixels, [{
|
|
15042
15060
|
key: "derive",
|
|
15043
15061
|
value: function derive() {
|
|
15044
15062
|
_get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
|
|
@@ -15065,29 +15083,26 @@
|
|
|
15065
15083
|
this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
|
|
15066
15084
|
}
|
|
15067
15085
|
}]);
|
|
15068
|
-
return DerivedPixels;
|
|
15069
15086
|
}(DerivedDataset);
|
|
15070
15087
|
|
|
15071
15088
|
var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
|
|
15072
|
-
_inherits(DerivedImage, _DerivedPixels);
|
|
15073
15089
|
function DerivedImage(datasets) {
|
|
15074
15090
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15075
15091
|
_classCallCheck(this, DerivedImage);
|
|
15076
15092
|
return _callSuper(this, DerivedImage, [datasets, options]);
|
|
15077
15093
|
}
|
|
15078
|
-
|
|
15094
|
+
_inherits(DerivedImage, _DerivedPixels);
|
|
15095
|
+
return _createClass(DerivedImage, [{
|
|
15079
15096
|
key: "derive",
|
|
15080
15097
|
value: function derive() {
|
|
15081
15098
|
_get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
|
|
15082
15099
|
this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
|
|
15083
15100
|
}
|
|
15084
15101
|
}]);
|
|
15085
|
-
return DerivedImage;
|
|
15086
15102
|
}(DerivedPixels);
|
|
15087
15103
|
|
|
15088
15104
|
var Normalizer$1;
|
|
15089
15105
|
var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
15090
|
-
_inherits(Segmentation, _DerivedPixels);
|
|
15091
15106
|
function Segmentation(datasets) {
|
|
15092
15107
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15093
15108
|
includeSliceSpacing: true
|
|
@@ -15095,7 +15110,8 @@
|
|
|
15095
15110
|
_classCallCheck(this, Segmentation);
|
|
15096
15111
|
return _callSuper(this, Segmentation, [datasets, options]);
|
|
15097
15112
|
}
|
|
15098
|
-
|
|
15113
|
+
_inherits(Segmentation, _DerivedPixels);
|
|
15114
|
+
return _createClass(Segmentation, [{
|
|
15099
15115
|
key: "derive",
|
|
15100
15116
|
value: function derive() {
|
|
15101
15117
|
_get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
|
|
@@ -15410,11 +15426,9 @@
|
|
|
15410
15426
|
Normalizer$1 = normalizer;
|
|
15411
15427
|
}
|
|
15412
15428
|
}]);
|
|
15413
|
-
return Segmentation;
|
|
15414
15429
|
}(DerivedPixels);
|
|
15415
15430
|
|
|
15416
15431
|
var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
15417
|
-
_inherits(ParametricMap, _DerivedDataset);
|
|
15418
15432
|
function ParametricMap(datasets) {
|
|
15419
15433
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15420
15434
|
_classCallCheck(this, ParametricMap);
|
|
@@ -15423,7 +15437,8 @@
|
|
|
15423
15437
|
|
|
15424
15438
|
// this assumes a normalized multiframe input and will create
|
|
15425
15439
|
// a multiframe derived image
|
|
15426
|
-
|
|
15440
|
+
_inherits(ParametricMap, _DerivedDataset);
|
|
15441
|
+
return _createClass(ParametricMap, [{
|
|
15427
15442
|
key: "derive",
|
|
15428
15443
|
value: function derive() {
|
|
15429
15444
|
_get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
|
|
@@ -15433,11 +15448,9 @@
|
|
|
15433
15448
|
this.assignFromReference([]);
|
|
15434
15449
|
}
|
|
15435
15450
|
}]);
|
|
15436
|
-
return ParametricMap;
|
|
15437
15451
|
}(DerivedDataset);
|
|
15438
15452
|
|
|
15439
15453
|
var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
15440
|
-
_inherits(StructuredReport, _DerivedDataset);
|
|
15441
15454
|
function StructuredReport(datasets) {
|
|
15442
15455
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15443
15456
|
_classCallCheck(this, StructuredReport);
|
|
@@ -15446,7 +15459,8 @@
|
|
|
15446
15459
|
|
|
15447
15460
|
// this assumes a normalized multiframe input and will create
|
|
15448
15461
|
// a multiframe derived image
|
|
15449
|
-
|
|
15462
|
+
_inherits(StructuredReport, _DerivedDataset);
|
|
15463
|
+
return _createClass(StructuredReport, [{
|
|
15450
15464
|
key: "derive",
|
|
15451
15465
|
value: function derive() {
|
|
15452
15466
|
_get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
|
|
@@ -15458,7 +15472,6 @@
|
|
|
15458
15472
|
this.assignFromReference([]);
|
|
15459
15473
|
}
|
|
15460
15474
|
}]);
|
|
15461
|
-
return StructuredReport;
|
|
15462
15475
|
}(DerivedDataset);
|
|
15463
15476
|
|
|
15464
15477
|
var Normalizer = /*#__PURE__*/function () {
|
|
@@ -15467,7 +15480,7 @@
|
|
|
15467
15480
|
this.datasets = datasets; // one or more dicom-like object instances
|
|
15468
15481
|
this.dataset = undefined; // a normalized multiframe dicom object instance
|
|
15469
15482
|
}
|
|
15470
|
-
_createClass(Normalizer, [{
|
|
15483
|
+
return _createClass(Normalizer, [{
|
|
15471
15484
|
key: "normalize",
|
|
15472
15485
|
value: function normalize() {
|
|
15473
15486
|
return "No normalization defined";
|
|
@@ -15545,15 +15558,14 @@
|
|
|
15545
15558
|
return normalizer.dataset;
|
|
15546
15559
|
}
|
|
15547
15560
|
}]);
|
|
15548
|
-
return Normalizer;
|
|
15549
15561
|
}();
|
|
15550
15562
|
var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
15551
|
-
_inherits(ImageNormalizer, _Normalizer);
|
|
15552
15563
|
function ImageNormalizer() {
|
|
15553
15564
|
_classCallCheck(this, ImageNormalizer);
|
|
15554
15565
|
return _callSuper(this, ImageNormalizer, arguments);
|
|
15555
15566
|
}
|
|
15556
|
-
|
|
15567
|
+
_inherits(ImageNormalizer, _Normalizer);
|
|
15568
|
+
return _createClass(ImageNormalizer, [{
|
|
15557
15569
|
key: "normalize",
|
|
15558
15570
|
value: function normalize() {
|
|
15559
15571
|
this.convertToMultiframe();
|
|
@@ -15850,15 +15862,14 @@
|
|
|
15850
15862
|
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
15851
15863
|
}
|
|
15852
15864
|
}]);
|
|
15853
|
-
return ImageNormalizer;
|
|
15854
15865
|
}(Normalizer);
|
|
15855
15866
|
var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
15856
|
-
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15857
15867
|
function MRImageNormalizer() {
|
|
15858
15868
|
_classCallCheck(this, MRImageNormalizer);
|
|
15859
15869
|
return _callSuper(this, MRImageNormalizer, arguments);
|
|
15860
15870
|
}
|
|
15861
|
-
|
|
15871
|
+
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15872
|
+
return _createClass(MRImageNormalizer, [{
|
|
15862
15873
|
key: "normalize",
|
|
15863
15874
|
value: function normalize() {
|
|
15864
15875
|
_get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15885,57 +15896,53 @@
|
|
|
15885
15896
|
};
|
|
15886
15897
|
}
|
|
15887
15898
|
}]);
|
|
15888
|
-
return MRImageNormalizer;
|
|
15889
15899
|
}(ImageNormalizer);
|
|
15890
15900
|
var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
|
|
15891
|
-
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15892
15901
|
function EnhancedCTImageNormalizer() {
|
|
15893
15902
|
_classCallCheck(this, EnhancedCTImageNormalizer);
|
|
15894
15903
|
return _callSuper(this, EnhancedCTImageNormalizer, arguments);
|
|
15895
15904
|
}
|
|
15896
|
-
|
|
15905
|
+
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15906
|
+
return _createClass(EnhancedCTImageNormalizer, [{
|
|
15897
15907
|
key: "normalize",
|
|
15898
15908
|
value: function normalize() {
|
|
15899
15909
|
_get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
15900
15910
|
}
|
|
15901
15911
|
}]);
|
|
15902
|
-
return EnhancedCTImageNormalizer;
|
|
15903
15912
|
}(ImageNormalizer);
|
|
15904
15913
|
var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
|
|
15905
|
-
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15906
15914
|
function EnhancedMRImageNormalizer() {
|
|
15907
15915
|
_classCallCheck(this, EnhancedMRImageNormalizer);
|
|
15908
15916
|
return _callSuper(this, EnhancedMRImageNormalizer, arguments);
|
|
15909
15917
|
}
|
|
15910
|
-
|
|
15918
|
+
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15919
|
+
return _createClass(EnhancedMRImageNormalizer, [{
|
|
15911
15920
|
key: "normalize",
|
|
15912
15921
|
value: function normalize() {
|
|
15913
15922
|
_get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
|
|
15914
15923
|
}
|
|
15915
15924
|
}]);
|
|
15916
|
-
return EnhancedMRImageNormalizer;
|
|
15917
15925
|
}(ImageNormalizer);
|
|
15918
15926
|
var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
|
|
15919
|
-
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15920
15927
|
function EnhancedUSVolumeNormalizer() {
|
|
15921
15928
|
_classCallCheck(this, EnhancedUSVolumeNormalizer);
|
|
15922
15929
|
return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
|
|
15923
15930
|
}
|
|
15924
|
-
|
|
15931
|
+
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15932
|
+
return _createClass(EnhancedUSVolumeNormalizer, [{
|
|
15925
15933
|
key: "normalize",
|
|
15926
15934
|
value: function normalize() {
|
|
15927
15935
|
_get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
|
|
15928
15936
|
}
|
|
15929
15937
|
}]);
|
|
15930
|
-
return EnhancedUSVolumeNormalizer;
|
|
15931
15938
|
}(ImageNormalizer);
|
|
15932
15939
|
var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
15933
|
-
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15934
15940
|
function NMImageNormalizer() {
|
|
15935
15941
|
_classCallCheck(this, NMImageNormalizer);
|
|
15936
15942
|
return _callSuper(this, NMImageNormalizer, arguments);
|
|
15937
15943
|
}
|
|
15938
|
-
|
|
15944
|
+
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15945
|
+
return _createClass(NMImageNormalizer, [{
|
|
15939
15946
|
key: "normalize",
|
|
15940
15947
|
value: function normalize() {
|
|
15941
15948
|
_get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15944,15 +15951,14 @@
|
|
|
15944
15951
|
this.dataset.SOPClassUID = toUID.NMImage;
|
|
15945
15952
|
}
|
|
15946
15953
|
}]);
|
|
15947
|
-
return NMImageNormalizer;
|
|
15948
15954
|
}(ImageNormalizer);
|
|
15949
15955
|
var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
15950
|
-
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15951
15956
|
function CTImageNormalizer() {
|
|
15952
15957
|
_classCallCheck(this, CTImageNormalizer);
|
|
15953
15958
|
return _callSuper(this, CTImageNormalizer, arguments);
|
|
15954
15959
|
}
|
|
15955
|
-
|
|
15960
|
+
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15961
|
+
return _createClass(CTImageNormalizer, [{
|
|
15956
15962
|
key: "normalize",
|
|
15957
15963
|
value: function normalize() {
|
|
15958
15964
|
_get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15962,15 +15968,14 @@
|
|
|
15962
15968
|
this.dataset.SOPClassUID = toUID.EnhancedCTImage;
|
|
15963
15969
|
}
|
|
15964
15970
|
}]);
|
|
15965
|
-
return CTImageNormalizer;
|
|
15966
15971
|
}(ImageNormalizer);
|
|
15967
15972
|
var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
15968
|
-
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15969
15973
|
function PETImageNormalizer() {
|
|
15970
15974
|
_classCallCheck(this, PETImageNormalizer);
|
|
15971
15975
|
return _callSuper(this, PETImageNormalizer, arguments);
|
|
15972
15976
|
}
|
|
15973
|
-
|
|
15977
|
+
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15978
|
+
return _createClass(PETImageNormalizer, [{
|
|
15974
15979
|
key: "normalize",
|
|
15975
15980
|
value: function normalize() {
|
|
15976
15981
|
_get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15980,29 +15985,27 @@
|
|
|
15980
15985
|
this.dataset.SOPClassUID = toUID.EnhancedPETImage;
|
|
15981
15986
|
}
|
|
15982
15987
|
}]);
|
|
15983
|
-
return PETImageNormalizer;
|
|
15984
15988
|
}(ImageNormalizer);
|
|
15985
15989
|
var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
|
|
15986
|
-
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15987
15990
|
function SEGImageNormalizer() {
|
|
15988
15991
|
_classCallCheck(this, SEGImageNormalizer);
|
|
15989
15992
|
return _callSuper(this, SEGImageNormalizer, arguments);
|
|
15990
15993
|
}
|
|
15991
|
-
|
|
15994
|
+
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15995
|
+
return _createClass(SEGImageNormalizer, [{
|
|
15992
15996
|
key: "normalize",
|
|
15993
15997
|
value: function normalize() {
|
|
15994
15998
|
_get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
|
|
15995
15999
|
}
|
|
15996
16000
|
}]);
|
|
15997
|
-
return SEGImageNormalizer;
|
|
15998
16001
|
}(ImageNormalizer);
|
|
15999
16002
|
var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
16000
|
-
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16001
16003
|
function PMImageNormalizer() {
|
|
16002
16004
|
_classCallCheck(this, PMImageNormalizer);
|
|
16003
16005
|
return _callSuper(this, PMImageNormalizer, arguments);
|
|
16004
16006
|
}
|
|
16005
|
-
|
|
16007
|
+
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16008
|
+
return _createClass(PMImageNormalizer, [{
|
|
16006
16009
|
key: "normalize",
|
|
16007
16010
|
value: function normalize() {
|
|
16008
16011
|
_get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -16012,49 +16015,45 @@
|
|
|
16012
16015
|
}
|
|
16013
16016
|
}
|
|
16014
16017
|
}]);
|
|
16015
|
-
return PMImageNormalizer;
|
|
16016
16018
|
}(ImageNormalizer);
|
|
16017
16019
|
var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
|
|
16018
|
-
_inherits(DSRNormalizer, _Normalizer2);
|
|
16019
16020
|
function DSRNormalizer() {
|
|
16020
16021
|
_classCallCheck(this, DSRNormalizer);
|
|
16021
16022
|
return _callSuper(this, DSRNormalizer, arguments);
|
|
16022
16023
|
}
|
|
16023
|
-
|
|
16024
|
+
_inherits(DSRNormalizer, _Normalizer2);
|
|
16025
|
+
return _createClass(DSRNormalizer, [{
|
|
16024
16026
|
key: "normalize",
|
|
16025
16027
|
value: function normalize() {
|
|
16026
16028
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16027
16029
|
}
|
|
16028
16030
|
}]);
|
|
16029
|
-
return DSRNormalizer;
|
|
16030
16031
|
}(Normalizer);
|
|
16031
16032
|
var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
|
|
16032
|
-
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16033
16033
|
function OPImageNormalizer() {
|
|
16034
16034
|
_classCallCheck(this, OPImageNormalizer);
|
|
16035
16035
|
return _callSuper(this, OPImageNormalizer, arguments);
|
|
16036
16036
|
}
|
|
16037
|
-
|
|
16037
|
+
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16038
|
+
return _createClass(OPImageNormalizer, [{
|
|
16038
16039
|
key: "normalize",
|
|
16039
16040
|
value: function normalize() {
|
|
16040
16041
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16041
16042
|
}
|
|
16042
16043
|
}]);
|
|
16043
|
-
return OPImageNormalizer;
|
|
16044
16044
|
}(Normalizer);
|
|
16045
16045
|
var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
|
|
16046
|
-
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16047
16046
|
function OCTImageNormalizer() {
|
|
16048
16047
|
_classCallCheck(this, OCTImageNormalizer);
|
|
16049
16048
|
return _callSuper(this, OCTImageNormalizer, arguments);
|
|
16050
16049
|
}
|
|
16051
|
-
|
|
16050
|
+
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16051
|
+
return _createClass(OCTImageNormalizer, [{
|
|
16052
16052
|
key: "normalize",
|
|
16053
16053
|
value: function normalize() {
|
|
16054
16054
|
_get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
16055
16055
|
}
|
|
16056
16056
|
}]);
|
|
16057
|
-
return OCTImageNormalizer;
|
|
16058
16057
|
}(ImageNormalizer); // Avoid import loops
|
|
16059
16058
|
Segmentation$4.setNormalizer(Normalizer);
|
|
16060
16059
|
|
|
@@ -16162,7 +16161,7 @@
|
|
|
16162
16161
|
}]
|
|
16163
16162
|
};
|
|
16164
16163
|
}
|
|
16165
|
-
_createClass(TID1500MeasurementReport, [{
|
|
16164
|
+
return _createClass(TID1500MeasurementReport, [{
|
|
16166
16165
|
key: "validate",
|
|
16167
16166
|
value: function validate() {}
|
|
16168
16167
|
}, {
|
|
@@ -16253,7 +16252,6 @@
|
|
|
16253
16252
|
this.tid1500.ContentSequence.push(ImagingMeasurments);
|
|
16254
16253
|
}
|
|
16255
16254
|
}]);
|
|
16256
|
-
return TID1500MeasurementReport;
|
|
16257
16255
|
}();
|
|
16258
16256
|
|
|
16259
16257
|
var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
@@ -16261,7 +16259,7 @@
|
|
|
16261
16259
|
_classCallCheck(this, TID1501MeasurementGroup);
|
|
16262
16260
|
this.TID300Measurements = TID300Measurements;
|
|
16263
16261
|
}
|
|
16264
|
-
_createClass(TID1501MeasurementGroup, [{
|
|
16262
|
+
return _createClass(TID1501MeasurementGroup, [{
|
|
16265
16263
|
key: "contentItem",
|
|
16266
16264
|
value: function contentItem() {
|
|
16267
16265
|
var _this = this;
|
|
@@ -16290,7 +16288,6 @@
|
|
|
16290
16288
|
};
|
|
16291
16289
|
}
|
|
16292
16290
|
}]);
|
|
16293
|
-
return TID1501MeasurementGroup;
|
|
16294
16291
|
}();
|
|
16295
16292
|
|
|
16296
16293
|
var toArray = function toArray(x) {
|
|
@@ -16350,7 +16347,7 @@
|
|
|
16350
16347
|
function MeasurementReport() {
|
|
16351
16348
|
_classCallCheck(this, MeasurementReport);
|
|
16352
16349
|
}
|
|
16353
|
-
_createClass(MeasurementReport, null, [{
|
|
16350
|
+
return _createClass(MeasurementReport, null, [{
|
|
16354
16351
|
key: "getSetupMeasurementData",
|
|
16355
16352
|
value: function getSetupMeasurementData(MeasurementGroup) {
|
|
16356
16353
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -16561,7 +16558,6 @@
|
|
|
16561
16558
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
16562
16559
|
}
|
|
16563
16560
|
}]);
|
|
16564
|
-
return MeasurementReport;
|
|
16565
16561
|
}();
|
|
16566
16562
|
MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
|
|
16567
16563
|
MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -16573,7 +16569,7 @@
|
|
|
16573
16569
|
this.ReferencedSOPSequence = props.ReferencedSOPSequence;
|
|
16574
16570
|
this.props = props;
|
|
16575
16571
|
}
|
|
16576
|
-
_createClass(TID300Measurement, [{
|
|
16572
|
+
return _createClass(TID300Measurement, [{
|
|
16577
16573
|
key: "getMeasurement",
|
|
16578
16574
|
value: function getMeasurement(contentSequenceEntries) {
|
|
16579
16575
|
return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
|
|
@@ -16681,7 +16677,6 @@
|
|
|
16681
16677
|
return flattenedCoordinates;
|
|
16682
16678
|
}
|
|
16683
16679
|
}]);
|
|
16684
|
-
return TID300Measurement;
|
|
16685
16680
|
}();
|
|
16686
16681
|
|
|
16687
16682
|
/**
|
|
@@ -16703,7 +16698,7 @@
|
|
|
16703
16698
|
this.referencedSOPSequence = referencedSOPSequence;
|
|
16704
16699
|
this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
|
|
16705
16700
|
}
|
|
16706
|
-
_createClass(TID320ContentItem, [{
|
|
16701
|
+
return _createClass(TID320ContentItem, [{
|
|
16707
16702
|
key: "contentItem",
|
|
16708
16703
|
value: function contentItem() {
|
|
16709
16704
|
var content = {
|
|
@@ -16724,16 +16719,15 @@
|
|
|
16724
16719
|
return content;
|
|
16725
16720
|
}
|
|
16726
16721
|
}]);
|
|
16727
|
-
return TID320ContentItem;
|
|
16728
16722
|
}();
|
|
16729
16723
|
|
|
16730
16724
|
var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
16731
|
-
_inherits(OpenPolyline, _TID300Measurement);
|
|
16732
16725
|
function OpenPolyline() {
|
|
16733
16726
|
_classCallCheck(this, OpenPolyline);
|
|
16734
16727
|
return _callSuper(this, OpenPolyline, arguments);
|
|
16735
16728
|
}
|
|
16736
|
-
|
|
16729
|
+
_inherits(OpenPolyline, _TID300Measurement);
|
|
16730
|
+
return _createClass(OpenPolyline, [{
|
|
16737
16731
|
key: "getPoints",
|
|
16738
16732
|
value: function getPoints() {
|
|
16739
16733
|
throw new Error("getPoints() must be implemented by subclass");
|
|
@@ -16782,7 +16776,6 @@
|
|
|
16782
16776
|
}]);
|
|
16783
16777
|
}
|
|
16784
16778
|
}]);
|
|
16785
|
-
return OpenPolyline;
|
|
16786
16779
|
}(TID300Measurement);
|
|
16787
16780
|
|
|
16788
16781
|
var knownUnits = [
|
|
@@ -16960,12 +16953,12 @@
|
|
|
16960
16953
|
unit2CodingValue.measurementMap = unitCodeMap;
|
|
16961
16954
|
|
|
16962
16955
|
var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
16963
|
-
_inherits(Length, _OpenPolyline);
|
|
16964
16956
|
function Length() {
|
|
16965
16957
|
_classCallCheck(this, Length);
|
|
16966
16958
|
return _callSuper(this, Length, arguments);
|
|
16967
16959
|
}
|
|
16968
|
-
|
|
16960
|
+
_inherits(Length, _OpenPolyline);
|
|
16961
|
+
return _createClass(Length, [{
|
|
16969
16962
|
key: "getPoints",
|
|
16970
16963
|
value: function getPoints() {
|
|
16971
16964
|
var _this$props = this.props,
|
|
@@ -16995,7 +16988,6 @@
|
|
|
16995
16988
|
};
|
|
16996
16989
|
}
|
|
16997
16990
|
}]);
|
|
16998
|
-
return Length;
|
|
16999
16991
|
}(OpenPolyline);
|
|
17000
16992
|
|
|
17001
16993
|
var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
|
|
@@ -17007,7 +16999,7 @@
|
|
|
17007
16999
|
}
|
|
17008
17000
|
|
|
17009
17001
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17010
|
-
_createClass(Length, null, [{
|
|
17002
|
+
return _createClass(Length, null, [{
|
|
17011
17003
|
key: "getMeasurementData",
|
|
17012
17004
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17013
17005
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17056,7 +17048,6 @@
|
|
|
17056
17048
|
};
|
|
17057
17049
|
}
|
|
17058
17050
|
}]);
|
|
17059
|
-
return Length;
|
|
17060
17051
|
}();
|
|
17061
17052
|
Length$1.toolType = LENGTH$1;
|
|
17062
17053
|
Length$1.utilityToolType = LENGTH$1;
|
|
@@ -17093,7 +17084,7 @@
|
|
|
17093
17084
|
function MeasurementBuilder() {
|
|
17094
17085
|
_classCallCheck(this, MeasurementBuilder);
|
|
17095
17086
|
}
|
|
17096
|
-
_createClass(MeasurementBuilder, null, [{
|
|
17087
|
+
return _createClass(MeasurementBuilder, null, [{
|
|
17097
17088
|
key: "createNumericMeasurement",
|
|
17098
17089
|
value:
|
|
17099
17090
|
/**
|
|
@@ -17187,16 +17178,15 @@
|
|
|
17187
17178
|
});
|
|
17188
17179
|
}
|
|
17189
17180
|
}]);
|
|
17190
|
-
return MeasurementBuilder;
|
|
17191
17181
|
}();
|
|
17192
17182
|
|
|
17193
17183
|
var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17194
|
-
_inherits(Polyline, _TID300Measurement);
|
|
17195
17184
|
function Polyline() {
|
|
17196
17185
|
_classCallCheck(this, Polyline);
|
|
17197
17186
|
return _callSuper(this, Polyline, arguments);
|
|
17198
17187
|
}
|
|
17199
|
-
|
|
17188
|
+
_inherits(Polyline, _TID300Measurement);
|
|
17189
|
+
return _createClass(Polyline, [{
|
|
17200
17190
|
key: "contentItem",
|
|
17201
17191
|
value: function contentItem() {
|
|
17202
17192
|
var _this$props = this.props,
|
|
@@ -17262,14 +17252,13 @@
|
|
|
17262
17252
|
return this.getMeasurement(measurements);
|
|
17263
17253
|
}
|
|
17264
17254
|
}]);
|
|
17265
|
-
return Polyline;
|
|
17266
17255
|
}(TID300Measurement);
|
|
17267
17256
|
|
|
17268
17257
|
var FreehandRoi = /*#__PURE__*/function () {
|
|
17269
17258
|
function FreehandRoi() {
|
|
17270
17259
|
_classCallCheck(this, FreehandRoi);
|
|
17271
17260
|
}
|
|
17272
|
-
_createClass(FreehandRoi, null, [{
|
|
17261
|
+
return _createClass(FreehandRoi, null, [{
|
|
17273
17262
|
key: "getMeasurementData",
|
|
17274
17263
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17275
17264
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17328,7 +17317,6 @@
|
|
|
17328
17317
|
};
|
|
17329
17318
|
}
|
|
17330
17319
|
}]);
|
|
17331
|
-
return FreehandRoi;
|
|
17332
17320
|
}();
|
|
17333
17321
|
FreehandRoi.toolType = "FreehandRoi";
|
|
17334
17322
|
FreehandRoi.utilityToolType = "FreehandRoi";
|
|
@@ -17349,12 +17337,12 @@
|
|
|
17349
17337
|
MeasurementReport$3.registerTool(FreehandRoi);
|
|
17350
17338
|
|
|
17351
17339
|
var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17352
|
-
_inherits(Bidirectional, _TID300Measurement);
|
|
17353
17340
|
function Bidirectional() {
|
|
17354
17341
|
_classCallCheck(this, Bidirectional);
|
|
17355
17342
|
return _callSuper(this, Bidirectional, arguments);
|
|
17356
17343
|
}
|
|
17357
|
-
|
|
17344
|
+
_inherits(Bidirectional, _TID300Measurement);
|
|
17345
|
+
return _createClass(Bidirectional, [{
|
|
17358
17346
|
key: "contentItem",
|
|
17359
17347
|
value: function contentItem() {
|
|
17360
17348
|
var _this$props = this.props,
|
|
@@ -17418,7 +17406,6 @@
|
|
|
17418
17406
|
}]);
|
|
17419
17407
|
}
|
|
17420
17408
|
}]);
|
|
17421
|
-
return Bidirectional;
|
|
17422
17409
|
}(TID300Measurement);
|
|
17423
17410
|
|
|
17424
17411
|
var BIDIRECTIONAL$1 = "Bidirectional";
|
|
@@ -17432,7 +17419,7 @@
|
|
|
17432
17419
|
}
|
|
17433
17420
|
|
|
17434
17421
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17435
|
-
_createClass(Bidirectional, null, [{
|
|
17422
|
+
return _createClass(Bidirectional, null, [{
|
|
17436
17423
|
key: "getMeasurementData",
|
|
17437
17424
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17438
17425
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -17563,7 +17550,6 @@
|
|
|
17563
17550
|
};
|
|
17564
17551
|
}
|
|
17565
17552
|
}]);
|
|
17566
|
-
return Bidirectional;
|
|
17567
17553
|
}();
|
|
17568
17554
|
Bidirectional$1.toolType = BIDIRECTIONAL$1;
|
|
17569
17555
|
Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
|
|
@@ -17584,12 +17570,12 @@
|
|
|
17584
17570
|
MeasurementReport$3.registerTool(Bidirectional$1);
|
|
17585
17571
|
|
|
17586
17572
|
var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17587
|
-
_inherits(Ellipse, _TID300Measurement);
|
|
17588
17573
|
function Ellipse() {
|
|
17589
17574
|
_classCallCheck(this, Ellipse);
|
|
17590
17575
|
return _callSuper(this, Ellipse, arguments);
|
|
17591
17576
|
}
|
|
17592
|
-
|
|
17577
|
+
_inherits(Ellipse, _TID300Measurement);
|
|
17578
|
+
return _createClass(Ellipse, [{
|
|
17593
17579
|
key: "contentItem",
|
|
17594
17580
|
value: function contentItem() {
|
|
17595
17581
|
var _this$props = this.props,
|
|
@@ -17647,7 +17633,6 @@
|
|
|
17647
17633
|
return this.getMeasurement(measurements);
|
|
17648
17634
|
}
|
|
17649
17635
|
}]);
|
|
17650
|
-
return Ellipse;
|
|
17651
17636
|
}(TID300Measurement);
|
|
17652
17637
|
|
|
17653
17638
|
var ELLIPTICALROI$1 = "EllipticalRoi";
|
|
@@ -17657,7 +17642,7 @@
|
|
|
17657
17642
|
}
|
|
17658
17643
|
|
|
17659
17644
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17660
|
-
_createClass(EllipticalRoi, null, [{
|
|
17645
|
+
return _createClass(EllipticalRoi, null, [{
|
|
17661
17646
|
key: "getMeasurementData",
|
|
17662
17647
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17663
17648
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17802,7 +17787,6 @@
|
|
|
17802
17787
|
};
|
|
17803
17788
|
}
|
|
17804
17789
|
}]);
|
|
17805
|
-
return EllipticalRoi;
|
|
17806
17790
|
}();
|
|
17807
17791
|
EllipticalRoi.toolType = ELLIPTICALROI$1;
|
|
17808
17792
|
EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
|
|
@@ -17823,12 +17807,12 @@
|
|
|
17823
17807
|
MeasurementReport$3.registerTool(EllipticalRoi);
|
|
17824
17808
|
|
|
17825
17809
|
var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17826
|
-
_inherits(Circle, _TID300Measurement);
|
|
17827
17810
|
function Circle() {
|
|
17828
17811
|
_classCallCheck(this, Circle);
|
|
17829
17812
|
return _callSuper(this, Circle, arguments);
|
|
17830
17813
|
}
|
|
17831
|
-
|
|
17814
|
+
_inherits(Circle, _TID300Measurement);
|
|
17815
|
+
return _createClass(Circle, [{
|
|
17832
17816
|
key: "contentItem",
|
|
17833
17817
|
value: function contentItem() {
|
|
17834
17818
|
var _this$props = this.props,
|
|
@@ -17905,7 +17889,6 @@
|
|
|
17905
17889
|
return this.getMeasurement(measurements);
|
|
17906
17890
|
}
|
|
17907
17891
|
}]);
|
|
17908
|
-
return Circle;
|
|
17909
17892
|
}(TID300Measurement);
|
|
17910
17893
|
|
|
17911
17894
|
var CIRCLEROI = "CircleRoi";
|
|
@@ -17915,7 +17898,7 @@
|
|
|
17915
17898
|
}
|
|
17916
17899
|
|
|
17917
17900
|
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
17918
|
-
_createClass(CircleRoi, null, [{
|
|
17901
|
+
return _createClass(CircleRoi, null, [{
|
|
17919
17902
|
key: "getMeasurementData",
|
|
17920
17903
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17921
17904
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18004,7 +17987,6 @@
|
|
|
18004
17987
|
};
|
|
18005
17988
|
}
|
|
18006
17989
|
}]);
|
|
18007
|
-
return CircleRoi;
|
|
18008
17990
|
}();
|
|
18009
17991
|
CircleRoi.toolType = CIRCLEROI;
|
|
18010
17992
|
CircleRoi.utilityToolType = CIRCLEROI;
|
|
@@ -18025,12 +18007,12 @@
|
|
|
18025
18007
|
MeasurementReport$3.registerTool(CircleRoi);
|
|
18026
18008
|
|
|
18027
18009
|
var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
18028
|
-
_inherits(Point, _TID300Measurement);
|
|
18029
18010
|
function Point() {
|
|
18030
18011
|
_classCallCheck(this, Point);
|
|
18031
18012
|
return _callSuper(this, Point, arguments);
|
|
18032
18013
|
}
|
|
18033
|
-
|
|
18014
|
+
_inherits(Point, _TID300Measurement);
|
|
18015
|
+
return _createClass(Point, [{
|
|
18034
18016
|
key: "contentItem",
|
|
18035
18017
|
value: function contentItem() {
|
|
18036
18018
|
var _this$props = this.props,
|
|
@@ -18071,7 +18053,6 @@
|
|
|
18071
18053
|
}]);
|
|
18072
18054
|
}
|
|
18073
18055
|
}]);
|
|
18074
|
-
return Point;
|
|
18075
18056
|
}(TID300Measurement);
|
|
18076
18057
|
|
|
18077
18058
|
var ARROW_ANNOTATE$1 = "ArrowAnnotate";
|
|
@@ -18080,7 +18061,7 @@
|
|
|
18080
18061
|
function ArrowAnnotate() {
|
|
18081
18062
|
_classCallCheck(this, ArrowAnnotate);
|
|
18082
18063
|
}
|
|
18083
|
-
_createClass(ArrowAnnotate, null, [{
|
|
18064
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
18084
18065
|
key: "getMeasurementData",
|
|
18085
18066
|
value: function getMeasurementData(MeasurementGroup) {
|
|
18086
18067
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18145,7 +18126,6 @@
|
|
|
18145
18126
|
return TID300RepresentationArguments;
|
|
18146
18127
|
}
|
|
18147
18128
|
}]);
|
|
18148
|
-
return ArrowAnnotate;
|
|
18149
18129
|
}();
|
|
18150
18130
|
ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
|
|
18151
18131
|
ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
|
|
@@ -22013,12 +21993,12 @@ b"+i+"*=d\
|
|
|
22013
21993
|
}
|
|
22014
21994
|
|
|
22015
21995
|
var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
22016
|
-
_inherits(CobbAngle, _OpenPolyline);
|
|
22017
21996
|
function CobbAngle() {
|
|
22018
21997
|
_classCallCheck(this, CobbAngle);
|
|
22019
21998
|
return _callSuper(this, CobbAngle, arguments);
|
|
22020
21999
|
}
|
|
22021
|
-
|
|
22000
|
+
_inherits(CobbAngle, _OpenPolyline);
|
|
22001
|
+
return _createClass(CobbAngle, [{
|
|
22022
22002
|
key: "getPoints",
|
|
22023
22003
|
value: function getPoints() {
|
|
22024
22004
|
var _this$props = this.props,
|
|
@@ -22052,7 +22032,6 @@ b"+i+"*=d\
|
|
|
22052
22032
|
};
|
|
22053
22033
|
}
|
|
22054
22034
|
}]);
|
|
22055
|
-
return CobbAngle;
|
|
22056
22035
|
}(OpenPolyline);
|
|
22057
22036
|
|
|
22058
22037
|
var COBB_ANGLE = "CobbAngle";
|
|
@@ -22062,7 +22041,7 @@ b"+i+"*=d\
|
|
|
22062
22041
|
}
|
|
22063
22042
|
|
|
22064
22043
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22065
|
-
_createClass(CobbAngle, null, [{
|
|
22044
|
+
return _createClass(CobbAngle, null, [{
|
|
22066
22045
|
key: "getMeasurementData",
|
|
22067
22046
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22068
22047
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22127,7 +22106,6 @@ b"+i+"*=d\
|
|
|
22127
22106
|
};
|
|
22128
22107
|
}
|
|
22129
22108
|
}]);
|
|
22130
|
-
return CobbAngle;
|
|
22131
22109
|
}();
|
|
22132
22110
|
CobbAngle.toolType = COBB_ANGLE;
|
|
22133
22111
|
CobbAngle.utilityToolType = COBB_ANGLE;
|
|
@@ -22158,7 +22136,7 @@ b"+i+"*=d\
|
|
|
22158
22136
|
* @param MeasurementGroup
|
|
22159
22137
|
* @returns
|
|
22160
22138
|
*/
|
|
22161
|
-
_createClass(Angle, null, [{
|
|
22139
|
+
return _createClass(Angle, null, [{
|
|
22162
22140
|
key: "getMeasurementData",
|
|
22163
22141
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22164
22142
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22216,7 +22194,6 @@ b"+i+"*=d\
|
|
|
22216
22194
|
};
|
|
22217
22195
|
}
|
|
22218
22196
|
}]);
|
|
22219
|
-
return Angle;
|
|
22220
22197
|
}();
|
|
22221
22198
|
Angle.toolType = ANGLE;
|
|
22222
22199
|
Angle.utilityToolType = ANGLE;
|
|
@@ -22240,7 +22217,7 @@ b"+i+"*=d\
|
|
|
22240
22217
|
function RectangleRoi() {
|
|
22241
22218
|
_classCallCheck(this, RectangleRoi);
|
|
22242
22219
|
}
|
|
22243
|
-
_createClass(RectangleRoi, null, [{
|
|
22220
|
+
return _createClass(RectangleRoi, null, [{
|
|
22244
22221
|
key: "getMeasurementData",
|
|
22245
22222
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22246
22223
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22309,7 +22286,6 @@ b"+i+"*=d\
|
|
|
22309
22286
|
};
|
|
22310
22287
|
}
|
|
22311
22288
|
}]);
|
|
22312
|
-
return RectangleRoi;
|
|
22313
22289
|
}();
|
|
22314
22290
|
RectangleRoi.toolType = "RectangleRoi";
|
|
22315
22291
|
RectangleRoi.utilityToolType = "RectangleRoi";
|
|
@@ -22429,7 +22405,7 @@ b"+i+"*=d\
|
|
|
22429
22405
|
function MeasurementReport() {
|
|
22430
22406
|
_classCallCheck(this, MeasurementReport);
|
|
22431
22407
|
}
|
|
22432
|
-
_createClass(MeasurementReport, null, [{
|
|
22408
|
+
return _createClass(MeasurementReport, null, [{
|
|
22433
22409
|
key: "getCornerstoneLabelFromDefaultState",
|
|
22434
22410
|
value: function getCornerstoneLabelFromDefaultState(defaultState) {
|
|
22435
22411
|
var _defaultState$finding = defaultState.findingSites,
|
|
@@ -22680,7 +22656,6 @@ b"+i+"*=d\
|
|
|
22680
22656
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
22681
22657
|
}
|
|
22682
22658
|
}]);
|
|
22683
|
-
return MeasurementReport;
|
|
22684
22659
|
}();
|
|
22685
22660
|
MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
|
|
22686
22661
|
MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -22696,7 +22671,7 @@ b"+i+"*=d\
|
|
|
22696
22671
|
}
|
|
22697
22672
|
|
|
22698
22673
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22699
|
-
_createClass(Length, null, [{
|
|
22674
|
+
return _createClass(Length, null, [{
|
|
22700
22675
|
key: "getMeasurementData",
|
|
22701
22676
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22702
22677
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
|
|
@@ -22763,7 +22738,6 @@ b"+i+"*=d\
|
|
|
22763
22738
|
};
|
|
22764
22739
|
}
|
|
22765
22740
|
}]);
|
|
22766
|
-
return Length;
|
|
22767
22741
|
}();
|
|
22768
22742
|
Length.toolType = LENGTH;
|
|
22769
22743
|
Length.utilityToolType = LENGTH;
|
|
@@ -22791,7 +22765,7 @@ b"+i+"*=d\
|
|
|
22791
22765
|
function Bidirectional() {
|
|
22792
22766
|
_classCallCheck(this, Bidirectional);
|
|
22793
22767
|
}
|
|
22794
|
-
_createClass(Bidirectional, null, [{
|
|
22768
|
+
return _createClass(Bidirectional, null, [{
|
|
22795
22769
|
key: "getMeasurementData",
|
|
22796
22770
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22797
22771
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
|
|
@@ -22902,7 +22876,6 @@ b"+i+"*=d\
|
|
|
22902
22876
|
};
|
|
22903
22877
|
}
|
|
22904
22878
|
}]);
|
|
22905
|
-
return Bidirectional;
|
|
22906
22879
|
}();
|
|
22907
22880
|
Bidirectional.toolType = BIDIRECTIONAL;
|
|
22908
22881
|
Bidirectional.utilityToolType = BIDIRECTIONAL;
|
|
@@ -23787,7 +23760,7 @@ b"+i+"*=d\
|
|
|
23787
23760
|
function EllipticalROI() {
|
|
23788
23761
|
_classCallCheck(this, EllipticalROI);
|
|
23789
23762
|
}
|
|
23790
|
-
_createClass(EllipticalROI, null, [{
|
|
23763
|
+
return _createClass(EllipticalROI, null, [{
|
|
23791
23764
|
key: "getMeasurementData",
|
|
23792
23765
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23793
23766
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
|
|
@@ -23933,7 +23906,6 @@ b"+i+"*=d\
|
|
|
23933
23906
|
};
|
|
23934
23907
|
}
|
|
23935
23908
|
}]);
|
|
23936
|
-
return EllipticalROI;
|
|
23937
23909
|
}();
|
|
23938
23910
|
EllipticalROI.toolType = ELLIPTICALROI;
|
|
23939
23911
|
EllipticalROI.utilityToolType = ELLIPTICALROI;
|
|
@@ -23957,12 +23929,12 @@ b"+i+"*=d\
|
|
|
23957
23929
|
MeasurementReport$2.registerTool(EllipticalROI);
|
|
23958
23930
|
|
|
23959
23931
|
var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
23960
|
-
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23961
23932
|
function ArrowAnnotate() {
|
|
23962
23933
|
_classCallCheck(this, ArrowAnnotate);
|
|
23963
23934
|
return _callSuper(this, ArrowAnnotate, arguments);
|
|
23964
23935
|
}
|
|
23965
|
-
|
|
23936
|
+
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23937
|
+
return _createClass(ArrowAnnotate, [{
|
|
23966
23938
|
key: "getPoints",
|
|
23967
23939
|
value: function getPoints() {
|
|
23968
23940
|
return this.props.points;
|
|
@@ -23989,7 +23961,6 @@ b"+i+"*=d\
|
|
|
23989
23961
|
};
|
|
23990
23962
|
}
|
|
23991
23963
|
}]);
|
|
23992
|
-
return ArrowAnnotate;
|
|
23993
23964
|
}(OpenPolyline);
|
|
23994
23965
|
|
|
23995
23966
|
var ARROW_ANNOTATE = "ArrowAnnotate";
|
|
@@ -24000,7 +23971,7 @@ b"+i+"*=d\
|
|
|
24000
23971
|
function ArrowAnnotate() {
|
|
24001
23972
|
_classCallCheck(this, ArrowAnnotate);
|
|
24002
23973
|
}
|
|
24003
|
-
_createClass(ArrowAnnotate, null, [{
|
|
23974
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
24004
23975
|
key: "getMeasurementData",
|
|
24005
23976
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24006
23977
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
|
|
@@ -24088,7 +24059,6 @@ b"+i+"*=d\
|
|
|
24088
24059
|
return TID300RepresentationArguments;
|
|
24089
24060
|
}
|
|
24090
24061
|
}]);
|
|
24091
|
-
return ArrowAnnotate;
|
|
24092
24062
|
}();
|
|
24093
24063
|
ArrowAnnotate.toolType = ARROW_ANNOTATE;
|
|
24094
24064
|
ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
|
|
@@ -24114,7 +24084,7 @@ b"+i+"*=d\
|
|
|
24114
24084
|
function Probe() {
|
|
24115
24085
|
_classCallCheck(this, Probe);
|
|
24116
24086
|
}
|
|
24117
|
-
_createClass(Probe, null, [{
|
|
24087
|
+
return _createClass(Probe, null, [{
|
|
24118
24088
|
key: "getMeasurementData",
|
|
24119
24089
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24120
24090
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
|
|
@@ -24169,7 +24139,6 @@ b"+i+"*=d\
|
|
|
24169
24139
|
return TID300RepresentationArguments;
|
|
24170
24140
|
}
|
|
24171
24141
|
}]);
|
|
24172
|
-
return Probe;
|
|
24173
24142
|
}();
|
|
24174
24143
|
Probe.toolType = PROBE;
|
|
24175
24144
|
Probe.utilityToolType = PROBE;
|
|
@@ -24196,7 +24165,7 @@ b"+i+"*=d\
|
|
|
24196
24165
|
function PlanarFreehandROI() {
|
|
24197
24166
|
_classCallCheck(this, PlanarFreehandROI);
|
|
24198
24167
|
}
|
|
24199
|
-
_createClass(PlanarFreehandROI, null, [{
|
|
24168
|
+
return _createClass(PlanarFreehandROI, null, [{
|
|
24200
24169
|
key: "getMeasurementData",
|
|
24201
24170
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24202
24171
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
|
|
@@ -24273,7 +24242,6 @@ b"+i+"*=d\
|
|
|
24273
24242
|
};
|
|
24274
24243
|
}
|
|
24275
24244
|
}]);
|
|
24276
|
-
return PlanarFreehandROI;
|
|
24277
24245
|
}();
|
|
24278
24246
|
PlanarFreehandROI.toolType = PLANARFREEHANDROI;
|
|
24279
24247
|
PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
|
|
@@ -24435,7 +24403,7 @@ b"+i+"*=d\
|
|
|
24435
24403
|
* @param dataset
|
|
24436
24404
|
* @return {{}}
|
|
24437
24405
|
*/
|
|
24438
|
-
_createClass(Segmentation, null, [{
|
|
24406
|
+
return _createClass(Segmentation, null, [{
|
|
24439
24407
|
key: "generateSegments",
|
|
24440
24408
|
value: function generateSegments(dataset) {
|
|
24441
24409
|
if (dataset.SegmentSequence.constructor.name !== "Array") {
|
|
@@ -24483,7 +24451,6 @@ b"+i+"*=d\
|
|
|
24483
24451
|
return segments;
|
|
24484
24452
|
}
|
|
24485
24453
|
}]);
|
|
24486
|
-
return Segmentation;
|
|
24487
24454
|
}();
|
|
24488
24455
|
|
|
24489
24456
|
var VTKjs = {
|
|
@@ -24509,7 +24476,7 @@ b"+i+"*=d\
|
|
|
24509
24476
|
function MeasurementReport() {
|
|
24510
24477
|
_classCallCheck(this, MeasurementReport);
|
|
24511
24478
|
}
|
|
24512
|
-
_createClass(MeasurementReport, null, [{
|
|
24479
|
+
return _createClass(MeasurementReport, null, [{
|
|
24513
24480
|
key: "generateReport",
|
|
24514
24481
|
value: function generateReport(rois, metadataProvider, options) {
|
|
24515
24482
|
// Input is all ROIS returned via viewer.getALLROIs()
|
|
@@ -24648,7 +24615,6 @@ b"+i+"*=d\
|
|
|
24648
24615
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
|
|
24649
24616
|
}
|
|
24650
24617
|
}]);
|
|
24651
|
-
return MeasurementReport;
|
|
24652
24618
|
}();
|
|
24653
24619
|
MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
|
|
24654
24620
|
MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -24658,7 +24624,7 @@ b"+i+"*=d\
|
|
|
24658
24624
|
function Polyline() {
|
|
24659
24625
|
_classCallCheck(this, Polyline);
|
|
24660
24626
|
}
|
|
24661
|
-
_createClass(Polyline, null, [{
|
|
24627
|
+
return _createClass(Polyline, null, [{
|
|
24662
24628
|
key: "getMeasurementData",
|
|
24663
24629
|
value: function getMeasurementData(measurementContent) {
|
|
24664
24630
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24695,7 +24661,6 @@ b"+i+"*=d\
|
|
|
24695
24661
|
};
|
|
24696
24662
|
}
|
|
24697
24663
|
}]);
|
|
24698
|
-
return Polyline;
|
|
24699
24664
|
}();
|
|
24700
24665
|
Polyline.graphicType = "POLYLINE";
|
|
24701
24666
|
Polyline.toolType = "Polyline";
|
|
@@ -24704,12 +24669,12 @@ b"+i+"*=d\
|
|
|
24704
24669
|
MeasurementReport$1.registerTool(Polyline);
|
|
24705
24670
|
|
|
24706
24671
|
var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
24707
|
-
_inherits(Polygon, _TID300Measurement);
|
|
24708
24672
|
function Polygon() {
|
|
24709
24673
|
_classCallCheck(this, Polygon);
|
|
24710
24674
|
return _callSuper(this, Polygon, arguments);
|
|
24711
24675
|
}
|
|
24712
|
-
|
|
24676
|
+
_inherits(Polygon, _TID300Measurement);
|
|
24677
|
+
return _createClass(Polygon, [{
|
|
24713
24678
|
key: "contentItem",
|
|
24714
24679
|
value: function contentItem() {
|
|
24715
24680
|
var _this$props = this.props,
|
|
@@ -24763,14 +24728,13 @@ b"+i+"*=d\
|
|
|
24763
24728
|
}]);
|
|
24764
24729
|
}
|
|
24765
24730
|
}]);
|
|
24766
|
-
return Polygon;
|
|
24767
24731
|
}(TID300Measurement);
|
|
24768
24732
|
|
|
24769
24733
|
var Polygon = /*#__PURE__*/function () {
|
|
24770
24734
|
function Polygon() {
|
|
24771
24735
|
_classCallCheck(this, Polygon);
|
|
24772
24736
|
}
|
|
24773
|
-
_createClass(Polygon, null, [{
|
|
24737
|
+
return _createClass(Polygon, null, [{
|
|
24774
24738
|
key: "getMeasurementData",
|
|
24775
24739
|
value: function getMeasurementData(measurementContent) {
|
|
24776
24740
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24807,7 +24771,6 @@ b"+i+"*=d\
|
|
|
24807
24771
|
};
|
|
24808
24772
|
}
|
|
24809
24773
|
}]);
|
|
24810
|
-
return Polygon;
|
|
24811
24774
|
}();
|
|
24812
24775
|
Polygon.graphicType = "POLYGON";
|
|
24813
24776
|
Polygon.toolType = "Polygon";
|
|
@@ -24819,7 +24782,7 @@ b"+i+"*=d\
|
|
|
24819
24782
|
function Point() {
|
|
24820
24783
|
_classCallCheck(this, Point);
|
|
24821
24784
|
}
|
|
24822
|
-
_createClass(Point, null, [{
|
|
24785
|
+
return _createClass(Point, null, [{
|
|
24823
24786
|
key: "getMeasurementData",
|
|
24824
24787
|
value: function getMeasurementData(measurementContent) {
|
|
24825
24788
|
var measurement = measurementContent.map(function (item) {
|
|
@@ -24847,7 +24810,6 @@ b"+i+"*=d\
|
|
|
24847
24810
|
};
|
|
24848
24811
|
}
|
|
24849
24812
|
}]);
|
|
24850
|
-
return Point;
|
|
24851
24813
|
}();
|
|
24852
24814
|
Point.graphicType = "POINT";
|
|
24853
24815
|
Point.toolType = "Point";
|
|
@@ -24859,7 +24821,7 @@ b"+i+"*=d\
|
|
|
24859
24821
|
function Circle() {
|
|
24860
24822
|
_classCallCheck(this, Circle);
|
|
24861
24823
|
}
|
|
24862
|
-
_createClass(Circle, null, [{
|
|
24824
|
+
return _createClass(Circle, null, [{
|
|
24863
24825
|
key: "getMeasurementData",
|
|
24864
24826
|
value: function getMeasurementData(measurementContent) {
|
|
24865
24827
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24896,7 +24858,6 @@ b"+i+"*=d\
|
|
|
24896
24858
|
};
|
|
24897
24859
|
}
|
|
24898
24860
|
}]);
|
|
24899
|
-
return Circle;
|
|
24900
24861
|
}();
|
|
24901
24862
|
Circle.graphicType = "CIRCLE";
|
|
24902
24863
|
Circle.toolType = "Circle";
|
|
@@ -24908,7 +24869,7 @@ b"+i+"*=d\
|
|
|
24908
24869
|
function Ellipse() {
|
|
24909
24870
|
_classCallCheck(this, Ellipse);
|
|
24910
24871
|
}
|
|
24911
|
-
_createClass(Ellipse, null, [{
|
|
24872
|
+
return _createClass(Ellipse, null, [{
|
|
24912
24873
|
key: "getMeasurementData",
|
|
24913
24874
|
value: function getMeasurementData(measurementContent) {
|
|
24914
24875
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24945,7 +24906,6 @@ b"+i+"*=d\
|
|
|
24945
24906
|
};
|
|
24946
24907
|
}
|
|
24947
24908
|
}]);
|
|
24948
|
-
return Ellipse;
|
|
24949
24909
|
}();
|
|
24950
24910
|
Ellipse.graphicType = "ELLIPSE";
|
|
24951
24911
|
Ellipse.toolType = "Ellipse";
|
|
@@ -24975,12 +24935,12 @@ b"+i+"*=d\
|
|
|
24975
24935
|
};
|
|
24976
24936
|
|
|
24977
24937
|
var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
24978
|
-
_inherits(Calibration, _OpenPolyline);
|
|
24979
24938
|
function Calibration() {
|
|
24980
24939
|
_classCallCheck(this, Calibration);
|
|
24981
24940
|
return _callSuper(this, Calibration, arguments);
|
|
24982
24941
|
}
|
|
24983
|
-
|
|
24942
|
+
_inherits(Calibration, _OpenPolyline);
|
|
24943
|
+
return _createClass(Calibration, [{
|
|
24984
24944
|
key: "getPoints",
|
|
24985
24945
|
value: function getPoints() {
|
|
24986
24946
|
var _this$props = this.props,
|
|
@@ -25010,7 +24970,6 @@ b"+i+"*=d\
|
|
|
25010
24970
|
};
|
|
25011
24971
|
}
|
|
25012
24972
|
}]);
|
|
25013
|
-
return Calibration;
|
|
25014
24973
|
}(OpenPolyline);
|
|
25015
24974
|
|
|
25016
24975
|
// To be implemented:
|
|
@@ -25419,7 +25378,7 @@ b"+i+"*=d\
|
|
|
25419
25378
|
this[_schemeDesignator] = options.schemeDesignator;
|
|
25420
25379
|
this[_schemeVersion] = options.schemeVersion || null;
|
|
25421
25380
|
}
|
|
25422
|
-
_createClass(Code, [{
|
|
25381
|
+
return _createClass(Code, [{
|
|
25423
25382
|
key: "value",
|
|
25424
25383
|
get: function get() {
|
|
25425
25384
|
return this[_value];
|
|
@@ -25440,7 +25399,6 @@ b"+i+"*=d\
|
|
|
25440
25399
|
return this[_schemeVersion];
|
|
25441
25400
|
}
|
|
25442
25401
|
}]);
|
|
25443
|
-
return Code;
|
|
25444
25402
|
}();
|
|
25445
25403
|
var CodedConcept = /*#__PURE__*/function () {
|
|
25446
25404
|
function CodedConcept(options) {
|
|
@@ -25461,7 +25419,7 @@ b"+i+"*=d\
|
|
|
25461
25419
|
this.CodingSchemeVersion = options.schemeVersion;
|
|
25462
25420
|
}
|
|
25463
25421
|
}
|
|
25464
|
-
_createClass(CodedConcept, [{
|
|
25422
|
+
return _createClass(CodedConcept, [{
|
|
25465
25423
|
key: "equals",
|
|
25466
25424
|
value: function equals(other) {
|
|
25467
25425
|
if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
|
|
@@ -25493,7 +25451,6 @@ b"+i+"*=d\
|
|
|
25493
25451
|
return this.CodingSchemeVersion;
|
|
25494
25452
|
}
|
|
25495
25453
|
}]);
|
|
25496
|
-
return CodedConcept;
|
|
25497
25454
|
}();
|
|
25498
25455
|
|
|
25499
25456
|
var coding = /*#__PURE__*/Object.freeze({
|
|
@@ -25586,7 +25543,6 @@ b"+i+"*=d\
|
|
|
25586
25543
|
return DA(date) + TM(date);
|
|
25587
25544
|
}
|
|
25588
25545
|
var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
25589
|
-
_inherits(ContentSequence, _Array);
|
|
25590
25546
|
function ContentSequence() {
|
|
25591
25547
|
_classCallCheck(this, ContentSequence);
|
|
25592
25548
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -25597,6 +25553,7 @@ b"+i+"*=d\
|
|
|
25597
25553
|
|
|
25598
25554
|
// filterBy(options) {
|
|
25599
25555
|
// }
|
|
25556
|
+
_inherits(ContentSequence, _Array);
|
|
25600
25557
|
return _createClass(ContentSequence);
|
|
25601
25558
|
}(/*#__PURE__*/_wrapNativeSuper(Array));
|
|
25602
25559
|
var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
@@ -25630,7 +25587,6 @@ b"+i+"*=d\
|
|
|
25630
25587
|
// }
|
|
25631
25588
|
);
|
|
25632
25589
|
var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
25633
|
-
_inherits(CodeContentItem, _ContentItem);
|
|
25634
25590
|
function CodeContentItem(options) {
|
|
25635
25591
|
var _this;
|
|
25636
25592
|
_classCallCheck(this, CodeContentItem);
|
|
@@ -25648,10 +25604,10 @@ b"+i+"*=d\
|
|
|
25648
25604
|
_this.ConceptCodeSequence = addAccessors([options.value]);
|
|
25649
25605
|
return _this;
|
|
25650
25606
|
}
|
|
25607
|
+
_inherits(CodeContentItem, _ContentItem);
|
|
25651
25608
|
return _createClass(CodeContentItem);
|
|
25652
25609
|
}(ContentItem);
|
|
25653
25610
|
var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
25654
|
-
_inherits(TextContentItem, _ContentItem2);
|
|
25655
25611
|
function TextContentItem(options) {
|
|
25656
25612
|
var _this2;
|
|
25657
25613
|
_classCallCheck(this, TextContentItem);
|
|
@@ -25669,10 +25625,10 @@ b"+i+"*=d\
|
|
|
25669
25625
|
_this2.TextValue = options.value;
|
|
25670
25626
|
return _this2;
|
|
25671
25627
|
}
|
|
25628
|
+
_inherits(TextContentItem, _ContentItem2);
|
|
25672
25629
|
return _createClass(TextContentItem);
|
|
25673
25630
|
}(ContentItem);
|
|
25674
25631
|
var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
25675
|
-
_inherits(PNameContentItem, _ContentItem3);
|
|
25676
25632
|
function PNameContentItem(options) {
|
|
25677
25633
|
var _this3;
|
|
25678
25634
|
_classCallCheck(this, PNameContentItem);
|
|
@@ -25690,10 +25646,10 @@ b"+i+"*=d\
|
|
|
25690
25646
|
_this3.PersonName = options.value;
|
|
25691
25647
|
return _this3;
|
|
25692
25648
|
}
|
|
25649
|
+
_inherits(PNameContentItem, _ContentItem3);
|
|
25693
25650
|
return _createClass(PNameContentItem);
|
|
25694
25651
|
}(ContentItem);
|
|
25695
25652
|
var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
25696
|
-
_inherits(TimeContentItem, _ContentItem4);
|
|
25697
25653
|
function TimeContentItem(options) {
|
|
25698
25654
|
var _this4;
|
|
25699
25655
|
_classCallCheck(this, TimeContentItem);
|
|
@@ -25711,10 +25667,10 @@ b"+i+"*=d\
|
|
|
25711
25667
|
_this4.Time = TM(options.value);
|
|
25712
25668
|
return _this4;
|
|
25713
25669
|
}
|
|
25670
|
+
_inherits(TimeContentItem, _ContentItem4);
|
|
25714
25671
|
return _createClass(TimeContentItem);
|
|
25715
25672
|
}(ContentItem);
|
|
25716
25673
|
var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
25717
|
-
_inherits(DateContentItem, _ContentItem5);
|
|
25718
25674
|
function DateContentItem(options) {
|
|
25719
25675
|
var _this5;
|
|
25720
25676
|
_classCallCheck(this, DateContentItem);
|
|
@@ -25732,10 +25688,10 @@ b"+i+"*=d\
|
|
|
25732
25688
|
_this5.Date = DA(options.value);
|
|
25733
25689
|
return _this5;
|
|
25734
25690
|
}
|
|
25691
|
+
_inherits(DateContentItem, _ContentItem5);
|
|
25735
25692
|
return _createClass(DateContentItem);
|
|
25736
25693
|
}(ContentItem);
|
|
25737
25694
|
var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
25738
|
-
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25739
25695
|
function DateTimeContentItem(options) {
|
|
25740
25696
|
var _this6;
|
|
25741
25697
|
_classCallCheck(this, DateTimeContentItem);
|
|
@@ -25753,10 +25709,10 @@ b"+i+"*=d\
|
|
|
25753
25709
|
_this6.DateTime = DT(options.value);
|
|
25754
25710
|
return _this6;
|
|
25755
25711
|
}
|
|
25712
|
+
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25756
25713
|
return _createClass(DateTimeContentItem);
|
|
25757
25714
|
}(ContentItem);
|
|
25758
25715
|
var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
25759
|
-
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25760
25716
|
function UIDRefContentItem(options) {
|
|
25761
25717
|
var _this7;
|
|
25762
25718
|
_classCallCheck(this, UIDRefContentItem);
|
|
@@ -25774,10 +25730,10 @@ b"+i+"*=d\
|
|
|
25774
25730
|
_this7.UID = options.value;
|
|
25775
25731
|
return _this7;
|
|
25776
25732
|
}
|
|
25733
|
+
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25777
25734
|
return _createClass(UIDRefContentItem);
|
|
25778
25735
|
}(ContentItem);
|
|
25779
25736
|
var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
25780
|
-
_inherits(NumContentItem, _ContentItem8);
|
|
25781
25737
|
function NumContentItem(options) {
|
|
25782
25738
|
var _this8;
|
|
25783
25739
|
_classCallCheck(this, NumContentItem);
|
|
@@ -25813,10 +25769,10 @@ b"+i+"*=d\
|
|
|
25813
25769
|
}
|
|
25814
25770
|
return _this8;
|
|
25815
25771
|
}
|
|
25772
|
+
_inherits(NumContentItem, _ContentItem8);
|
|
25816
25773
|
return _createClass(NumContentItem);
|
|
25817
25774
|
}(ContentItem);
|
|
25818
25775
|
var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
25819
|
-
_inherits(ContainerContentItem, _ContentItem9);
|
|
25820
25776
|
function ContainerContentItem(options) {
|
|
25821
25777
|
var _this9;
|
|
25822
25778
|
_classCallCheck(this, ContainerContentItem);
|
|
@@ -25841,10 +25797,10 @@ b"+i+"*=d\
|
|
|
25841
25797
|
}
|
|
25842
25798
|
return _this9;
|
|
25843
25799
|
}
|
|
25800
|
+
_inherits(ContainerContentItem, _ContentItem9);
|
|
25844
25801
|
return _createClass(ContainerContentItem);
|
|
25845
25802
|
}(ContentItem);
|
|
25846
25803
|
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
25847
|
-
_inherits(CompositeContentItem, _ContentItem0);
|
|
25848
25804
|
function CompositeContentItem(options) {
|
|
25849
25805
|
var _this0;
|
|
25850
25806
|
_classCallCheck(this, CompositeContentItem);
|
|
@@ -25871,10 +25827,10 @@ b"+i+"*=d\
|
|
|
25871
25827
|
_this0.ReferenceSOPSequence = [item];
|
|
25872
25828
|
return _this0;
|
|
25873
25829
|
}
|
|
25830
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
25874
25831
|
return _createClass(CompositeContentItem);
|
|
25875
25832
|
}(ContentItem);
|
|
25876
25833
|
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
25877
|
-
_inherits(ImageContentItem, _ContentItem1);
|
|
25878
25834
|
function ImageContentItem(options) {
|
|
25879
25835
|
var _this1;
|
|
25880
25836
|
_classCallCheck(this, ImageContentItem);
|
|
@@ -25915,10 +25871,10 @@ b"+i+"*=d\
|
|
|
25915
25871
|
_this1.ReferencedSOPSequence = [item];
|
|
25916
25872
|
return _this1;
|
|
25917
25873
|
}
|
|
25874
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
25918
25875
|
return _createClass(ImageContentItem);
|
|
25919
25876
|
}(ContentItem);
|
|
25920
25877
|
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
25921
|
-
_inherits(ScoordContentItem, _ContentItem10);
|
|
25922
25878
|
function ScoordContentItem(options) {
|
|
25923
25879
|
var _this10;
|
|
25924
25880
|
_classCallCheck(this, ScoordContentItem);
|
|
@@ -25962,10 +25918,10 @@ b"+i+"*=d\
|
|
|
25962
25918
|
}
|
|
25963
25919
|
return _this10;
|
|
25964
25920
|
}
|
|
25921
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
25965
25922
|
return _createClass(ScoordContentItem);
|
|
25966
25923
|
}(ContentItem);
|
|
25967
25924
|
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
25968
|
-
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25969
25925
|
function Scoord3DContentItem(options) {
|
|
25970
25926
|
var _this11;
|
|
25971
25927
|
_classCallCheck(this, Scoord3DContentItem);
|
|
@@ -26009,10 +25965,10 @@ b"+i+"*=d\
|
|
|
26009
25965
|
}
|
|
26010
25966
|
return _this11;
|
|
26011
25967
|
}
|
|
25968
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
26012
25969
|
return _createClass(Scoord3DContentItem);
|
|
26013
25970
|
}(ContentItem);
|
|
26014
25971
|
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
26015
|
-
_inherits(TcoordContentItem, _ContentItem12);
|
|
26016
25972
|
function TcoordContentItem(options) {
|
|
26017
25973
|
var _this12;
|
|
26018
25974
|
_classCallCheck(this, TcoordContentItem);
|
|
@@ -26049,6 +26005,7 @@ b"+i+"*=d\
|
|
|
26049
26005
|
}
|
|
26050
26006
|
return _this12;
|
|
26051
26007
|
}
|
|
26008
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
26052
26009
|
return _createClass(TcoordContentItem);
|
|
26053
26010
|
}(ContentItem);
|
|
26054
26011
|
|
|
@@ -26078,7 +26035,6 @@ b"+i+"*=d\
|
|
|
26078
26035
|
});
|
|
26079
26036
|
|
|
26080
26037
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
26081
|
-
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26082
26038
|
function LongitudinalTemporalOffsetFromEvent(options) {
|
|
26083
26039
|
var _this;
|
|
26084
26040
|
_classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
|
|
@@ -26105,10 +26061,10 @@ b"+i+"*=d\
|
|
|
26105
26061
|
_this.ContentSequence.push(item);
|
|
26106
26062
|
return _this;
|
|
26107
26063
|
}
|
|
26064
|
+
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26108
26065
|
return _createClass(LongitudinalTemporalOffsetFromEvent);
|
|
26109
26066
|
}(NumContentItem);
|
|
26110
26067
|
var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
26111
|
-
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26112
26068
|
function SourceImageForRegion(options) {
|
|
26113
26069
|
_classCallCheck(this, SourceImageForRegion);
|
|
26114
26070
|
return _callSuper(this, SourceImageForRegion, [{
|
|
@@ -26123,10 +26079,10 @@ b"+i+"*=d\
|
|
|
26123
26079
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26124
26080
|
}]);
|
|
26125
26081
|
}
|
|
26082
|
+
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26126
26083
|
return _createClass(SourceImageForRegion);
|
|
26127
26084
|
}(ImageContentItem);
|
|
26128
26085
|
var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
26129
|
-
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26130
26086
|
function SourceImageForSegmentation(options) {
|
|
26131
26087
|
_classCallCheck(this, SourceImageForSegmentation);
|
|
26132
26088
|
return _callSuper(this, SourceImageForSegmentation, [{
|
|
@@ -26141,10 +26097,10 @@ b"+i+"*=d\
|
|
|
26141
26097
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26142
26098
|
}]);
|
|
26143
26099
|
}
|
|
26100
|
+
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26144
26101
|
return _createClass(SourceImageForSegmentation);
|
|
26145
26102
|
}(ImageContentItem);
|
|
26146
26103
|
var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
26147
|
-
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26148
26104
|
function SourceSeriesForSegmentation(options) {
|
|
26149
26105
|
_classCallCheck(this, SourceSeriesForSegmentation);
|
|
26150
26106
|
return _callSuper(this, SourceSeriesForSegmentation, [{
|
|
@@ -26157,10 +26113,10 @@ b"+i+"*=d\
|
|
|
26157
26113
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26158
26114
|
}]);
|
|
26159
26115
|
}
|
|
26116
|
+
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26160
26117
|
return _createClass(SourceSeriesForSegmentation);
|
|
26161
26118
|
}(UIDRefContentItem);
|
|
26162
26119
|
var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
26163
|
-
_inherits(ImageRegion, _ScoordContentItem);
|
|
26164
26120
|
function ImageRegion(options) {
|
|
26165
26121
|
var _this2;
|
|
26166
26122
|
_classCallCheck(this, ImageRegion);
|
|
@@ -26188,10 +26144,10 @@ b"+i+"*=d\
|
|
|
26188
26144
|
_this2.ContentSequence.push(options.sourceImage);
|
|
26189
26145
|
return _this2;
|
|
26190
26146
|
}
|
|
26147
|
+
_inherits(ImageRegion, _ScoordContentItem);
|
|
26191
26148
|
return _createClass(ImageRegion);
|
|
26192
26149
|
}(ScoordContentItem);
|
|
26193
26150
|
var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
26194
|
-
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26195
26151
|
function ImageRegion3D(options) {
|
|
26196
26152
|
var _this3;
|
|
26197
26153
|
_classCallCheck(this, ImageRegion3D);
|
|
@@ -26214,10 +26170,10 @@ b"+i+"*=d\
|
|
|
26214
26170
|
}
|
|
26215
26171
|
return _this3;
|
|
26216
26172
|
}
|
|
26173
|
+
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26217
26174
|
return _createClass(ImageRegion3D);
|
|
26218
26175
|
}(Scoord3DContentItem);
|
|
26219
26176
|
var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
26220
|
-
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26221
26177
|
function VolumeSurface(options) {
|
|
26222
26178
|
var _this4;
|
|
26223
26179
|
_classCallCheck(this, VolumeSurface);
|
|
@@ -26253,10 +26209,10 @@ b"+i+"*=d\
|
|
|
26253
26209
|
}
|
|
26254
26210
|
return _this4;
|
|
26255
26211
|
}
|
|
26212
|
+
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26256
26213
|
return _createClass(VolumeSurface);
|
|
26257
26214
|
}(Scoord3DContentItem);
|
|
26258
26215
|
var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
|
|
26259
|
-
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26260
26216
|
function ReferencedRealWorldValueMap(options) {
|
|
26261
26217
|
_classCallCheck(this, ReferencedRealWorldValueMap);
|
|
26262
26218
|
return _callSuper(this, ReferencedRealWorldValueMap, [{
|
|
@@ -26270,10 +26226,10 @@ b"+i+"*=d\
|
|
|
26270
26226
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26271
26227
|
}]);
|
|
26272
26228
|
}
|
|
26229
|
+
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26273
26230
|
return _createClass(ReferencedRealWorldValueMap);
|
|
26274
26231
|
}(CompositeContentItem);
|
|
26275
26232
|
var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
26276
|
-
_inherits(FindingSite, _CodeContentItem);
|
|
26277
26233
|
function FindingSite(options) {
|
|
26278
26234
|
var _this5;
|
|
26279
26235
|
_classCallCheck(this, FindingSite);
|
|
@@ -26313,10 +26269,10 @@ b"+i+"*=d\
|
|
|
26313
26269
|
}
|
|
26314
26270
|
return _this5;
|
|
26315
26271
|
}
|
|
26272
|
+
_inherits(FindingSite, _CodeContentItem);
|
|
26316
26273
|
return _createClass(FindingSite);
|
|
26317
26274
|
}(CodeContentItem);
|
|
26318
26275
|
var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
26319
|
-
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26320
26276
|
function ReferencedSegmentationFrame(options) {
|
|
26321
26277
|
var _this6;
|
|
26322
26278
|
_classCallCheck(this, ReferencedSegmentationFrame);
|
|
@@ -26354,10 +26310,10 @@ b"+i+"*=d\
|
|
|
26354
26310
|
_this6.push(options.sourceImage);
|
|
26355
26311
|
return _this6;
|
|
26356
26312
|
}
|
|
26313
|
+
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26357
26314
|
return _createClass(ReferencedSegmentationFrame);
|
|
26358
26315
|
}(ContentSequence);
|
|
26359
26316
|
var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
26360
|
-
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26361
26317
|
function ReferencedSegmentation(options) {
|
|
26362
26318
|
var _this7;
|
|
26363
26319
|
_classCallCheck(this, ReferencedSegmentation);
|
|
@@ -26403,6 +26359,7 @@ b"+i+"*=d\
|
|
|
26403
26359
|
}
|
|
26404
26360
|
return _this7;
|
|
26405
26361
|
}
|
|
26362
|
+
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26406
26363
|
return _createClass(ReferencedSegmentation);
|
|
26407
26364
|
}(ContentSequence);
|
|
26408
26365
|
|
|
@@ -26422,7 +26379,6 @@ b"+i+"*=d\
|
|
|
26422
26379
|
});
|
|
26423
26380
|
|
|
26424
26381
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
26425
|
-
_inherits(Template, _ContentSequence);
|
|
26426
26382
|
function Template() {
|
|
26427
26383
|
_classCallCheck(this, Template);
|
|
26428
26384
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26430,10 +26386,10 @@ b"+i+"*=d\
|
|
|
26430
26386
|
}
|
|
26431
26387
|
return _callSuper(this, Template, [].concat(args));
|
|
26432
26388
|
}
|
|
26389
|
+
_inherits(Template, _ContentSequence);
|
|
26433
26390
|
return _createClass(Template);
|
|
26434
26391
|
}(ContentSequence);
|
|
26435
26392
|
var Measurement = /*#__PURE__*/function (_Template) {
|
|
26436
|
-
_inherits(Measurement, _Template);
|
|
26437
26393
|
function Measurement(options) {
|
|
26438
26394
|
var _valueItem$ContentSeq;
|
|
26439
26395
|
var _this;
|
|
@@ -26533,10 +26489,10 @@ b"+i+"*=d\
|
|
|
26533
26489
|
_this.push(valueItem);
|
|
26534
26490
|
return _this;
|
|
26535
26491
|
}
|
|
26492
|
+
_inherits(Measurement, _Template);
|
|
26536
26493
|
return _createClass(Measurement);
|
|
26537
26494
|
}(Template);
|
|
26538
26495
|
var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
26539
|
-
_inherits(MeasurementProperties, _Template2);
|
|
26540
26496
|
function MeasurementProperties(options) {
|
|
26541
26497
|
var _this2;
|
|
26542
26498
|
_classCallCheck(this, MeasurementProperties);
|
|
@@ -26617,10 +26573,10 @@ b"+i+"*=d\
|
|
|
26617
26573
|
}
|
|
26618
26574
|
return _this2;
|
|
26619
26575
|
}
|
|
26576
|
+
_inherits(MeasurementProperties, _Template2);
|
|
26620
26577
|
return _createClass(MeasurementProperties);
|
|
26621
26578
|
}(Template);
|
|
26622
26579
|
var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
26623
|
-
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26624
26580
|
function MeasurementStatisticalProperties(options) {
|
|
26625
26581
|
var _this5;
|
|
26626
26582
|
_classCallCheck(this, MeasurementStatisticalProperties);
|
|
@@ -26663,10 +26619,10 @@ b"+i+"*=d\
|
|
|
26663
26619
|
}
|
|
26664
26620
|
return _this5;
|
|
26665
26621
|
}
|
|
26622
|
+
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26666
26623
|
return _createClass(MeasurementStatisticalProperties);
|
|
26667
26624
|
}(Template);
|
|
26668
26625
|
var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
26669
|
-
_inherits(NormalRangeProperties, _Template4);
|
|
26670
26626
|
function NormalRangeProperties(options) {
|
|
26671
26627
|
var _this6;
|
|
26672
26628
|
_classCallCheck(this, NormalRangeProperties);
|
|
@@ -26709,10 +26665,10 @@ b"+i+"*=d\
|
|
|
26709
26665
|
}
|
|
26710
26666
|
return _this6;
|
|
26711
26667
|
}
|
|
26668
|
+
_inherits(NormalRangeProperties, _Template4);
|
|
26712
26669
|
return _createClass(NormalRangeProperties);
|
|
26713
26670
|
}(Template);
|
|
26714
26671
|
var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
26715
|
-
_inherits(ObservationContext, _Template5);
|
|
26716
26672
|
function ObservationContext(options) {
|
|
26717
26673
|
var _this8;
|
|
26718
26674
|
var _this7;
|
|
@@ -26741,10 +26697,10 @@ b"+i+"*=d\
|
|
|
26741
26697
|
}
|
|
26742
26698
|
return _this7;
|
|
26743
26699
|
}
|
|
26700
|
+
_inherits(ObservationContext, _Template5);
|
|
26744
26701
|
return _createClass(ObservationContext);
|
|
26745
26702
|
}(Template);
|
|
26746
26703
|
var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
26747
|
-
_inherits(ObserverContext, _Template6);
|
|
26748
26704
|
function ObserverContext(options) {
|
|
26749
26705
|
var _this10;
|
|
26750
26706
|
var _this1;
|
|
@@ -26795,10 +26751,10 @@ b"+i+"*=d\
|
|
|
26795
26751
|
(_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
|
|
26796
26752
|
return _this1;
|
|
26797
26753
|
}
|
|
26754
|
+
_inherits(ObserverContext, _Template6);
|
|
26798
26755
|
return _createClass(ObserverContext);
|
|
26799
26756
|
}(Template);
|
|
26800
26757
|
var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
26801
|
-
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26802
26758
|
function PersonObserverIdentifyingAttributes(options) {
|
|
26803
26759
|
var _this11;
|
|
26804
26760
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
@@ -26866,10 +26822,10 @@ b"+i+"*=d\
|
|
|
26866
26822
|
}
|
|
26867
26823
|
return _this11;
|
|
26868
26824
|
}
|
|
26825
|
+
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26869
26826
|
return _createClass(PersonObserverIdentifyingAttributes);
|
|
26870
26827
|
}(Template);
|
|
26871
26828
|
var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
26872
|
-
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26873
26829
|
function DeviceObserverIdentifyingAttributes(options) {
|
|
26874
26830
|
var _this12;
|
|
26875
26831
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
@@ -26949,10 +26905,10 @@ b"+i+"*=d\
|
|
|
26949
26905
|
}
|
|
26950
26906
|
return _this12;
|
|
26951
26907
|
}
|
|
26908
|
+
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26952
26909
|
return _createClass(DeviceObserverIdentifyingAttributes);
|
|
26953
26910
|
}(Template);
|
|
26954
26911
|
var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
26955
|
-
_inherits(SubjectContext, _Template9);
|
|
26956
26912
|
function SubjectContext(options) {
|
|
26957
26913
|
var _this14;
|
|
26958
26914
|
var _this13;
|
|
@@ -27007,10 +26963,10 @@ b"+i+"*=d\
|
|
|
27007
26963
|
(_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
|
|
27008
26964
|
return _this13;
|
|
27009
26965
|
}
|
|
26966
|
+
_inherits(SubjectContext, _Template9);
|
|
27010
26967
|
return _createClass(SubjectContext);
|
|
27011
26968
|
}(Template);
|
|
27012
26969
|
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
27013
|
-
_inherits(SubjectContextFetus, _Template0);
|
|
27014
26970
|
function SubjectContextFetus(options) {
|
|
27015
26971
|
var _this15;
|
|
27016
26972
|
_classCallCheck(this, SubjectContextFetus);
|
|
@@ -27030,10 +26986,10 @@ b"+i+"*=d\
|
|
|
27030
26986
|
_this15.push(subjectIdItem);
|
|
27031
26987
|
return _this15;
|
|
27032
26988
|
}
|
|
26989
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
27033
26990
|
return _createClass(SubjectContextFetus);
|
|
27034
26991
|
}(Template);
|
|
27035
26992
|
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
27036
|
-
_inherits(SubjectContextSpecimen, _Template1);
|
|
27037
26993
|
function SubjectContextSpecimen(options) {
|
|
27038
26994
|
var _this16;
|
|
27039
26995
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
@@ -27089,10 +27045,10 @@ b"+i+"*=d\
|
|
|
27089
27045
|
}
|
|
27090
27046
|
return _this16;
|
|
27091
27047
|
}
|
|
27048
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
27092
27049
|
return _createClass(SubjectContextSpecimen);
|
|
27093
27050
|
}(Template);
|
|
27094
27051
|
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
27095
|
-
_inherits(SubjectContextDevice, _Template10);
|
|
27096
27052
|
function SubjectContextDevice(options) {
|
|
27097
27053
|
var _this17;
|
|
27098
27054
|
_classCallCheck(this, SubjectContextDevice);
|
|
@@ -27172,10 +27128,10 @@ b"+i+"*=d\
|
|
|
27172
27128
|
}
|
|
27173
27129
|
return _this17;
|
|
27174
27130
|
}
|
|
27131
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
27175
27132
|
return _createClass(SubjectContextDevice);
|
|
27176
27133
|
}(Template);
|
|
27177
27134
|
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
27178
|
-
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27179
27135
|
function LanguageOfContentItemAndDescendants(options) {
|
|
27180
27136
|
var _this18;
|
|
27181
27137
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
@@ -27199,10 +27155,10 @@ b"+i+"*=d\
|
|
|
27199
27155
|
_this18.push(languageItem);
|
|
27200
27156
|
return _this18;
|
|
27201
27157
|
}
|
|
27158
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27202
27159
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
27203
27160
|
}(Template);
|
|
27204
27161
|
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
27205
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27206
27162
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
27207
27163
|
var _groupItem$ContentSeq;
|
|
27208
27164
|
var _this19;
|
|
@@ -27292,10 +27248,10 @@ b"+i+"*=d\
|
|
|
27292
27248
|
_this19.push(groupItem);
|
|
27293
27249
|
return _this19;
|
|
27294
27250
|
}
|
|
27251
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27295
27252
|
return _createClass(_MeasurementsAndQualitatitiveEvaluations);
|
|
27296
27253
|
}(Template);
|
|
27297
27254
|
var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
|
|
27298
|
-
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27299
27255
|
function _ROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27300
27256
|
var _this20;
|
|
27301
27257
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
@@ -27344,10 +27300,10 @@ b"+i+"*=d\
|
|
|
27344
27300
|
_this20[0] = groupItem;
|
|
27345
27301
|
return _this20;
|
|
27346
27302
|
}
|
|
27303
|
+
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27347
27304
|
return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27348
27305
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27349
27306
|
var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
|
|
27350
|
-
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27351
27307
|
function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27352
27308
|
_classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27353
27309
|
var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
|
|
@@ -27371,10 +27327,10 @@ b"+i+"*=d\
|
|
|
27371
27327
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27372
27328
|
}]);
|
|
27373
27329
|
}
|
|
27330
|
+
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27374
27331
|
return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27375
27332
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27376
27333
|
var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
|
|
27377
|
-
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27378
27334
|
function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27379
27335
|
_classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27380
27336
|
return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
|
|
@@ -27389,10 +27345,10 @@ b"+i+"*=d\
|
|
|
27389
27345
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27390
27346
|
}]);
|
|
27391
27347
|
}
|
|
27348
|
+
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27392
27349
|
return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27393
27350
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27394
27351
|
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
27395
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27396
27352
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
27397
27353
|
var _this21;
|
|
27398
27354
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
@@ -27429,10 +27385,10 @@ b"+i+"*=d\
|
|
|
27429
27385
|
_this21.push(valueItem);
|
|
27430
27386
|
return _this21;
|
|
27431
27387
|
}
|
|
27388
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27432
27389
|
return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
|
|
27433
27390
|
}(Template);
|
|
27434
27391
|
var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
|
|
27435
|
-
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27436
27392
|
function MeasurementAndQualitativeEvaluationGroup(options) {
|
|
27437
27393
|
_classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
|
|
27438
27394
|
return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
|
|
@@ -27445,10 +27401,10 @@ b"+i+"*=d\
|
|
|
27445
27401
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27446
27402
|
}]);
|
|
27447
27403
|
}
|
|
27404
|
+
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27448
27405
|
return _createClass(MeasurementAndQualitativeEvaluationGroup);
|
|
27449
27406
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27450
27407
|
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
27451
|
-
_inherits(ROIMeasurements, _Template14);
|
|
27452
27408
|
function ROIMeasurements(options) {
|
|
27453
27409
|
var _this22;
|
|
27454
27410
|
_classCallCheck(this, ROIMeasurements);
|
|
@@ -27493,10 +27449,10 @@ b"+i+"*=d\
|
|
|
27493
27449
|
});
|
|
27494
27450
|
return _this22;
|
|
27495
27451
|
}
|
|
27452
|
+
_inherits(ROIMeasurements, _Template14);
|
|
27496
27453
|
return _createClass(ROIMeasurements);
|
|
27497
27454
|
}(Template);
|
|
27498
27455
|
var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
27499
|
-
_inherits(MeasurementReport, _Template15);
|
|
27500
27456
|
function MeasurementReport(options) {
|
|
27501
27457
|
var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
|
|
27502
27458
|
var _this23;
|
|
@@ -27589,10 +27545,10 @@ b"+i+"*=d\
|
|
|
27589
27545
|
_this23.push(item);
|
|
27590
27546
|
return _this23;
|
|
27591
27547
|
}
|
|
27548
|
+
_inherits(MeasurementReport, _Template15);
|
|
27592
27549
|
return _createClass(MeasurementReport);
|
|
27593
27550
|
}(Template);
|
|
27594
27551
|
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
27595
|
-
_inherits(TimePointContext, _Template16);
|
|
27596
27552
|
function TimePointContext(options) {
|
|
27597
27553
|
var _this24;
|
|
27598
27554
|
_classCallCheck(this, TimePointContext);
|
|
@@ -27673,10 +27629,10 @@ b"+i+"*=d\
|
|
|
27673
27629
|
}
|
|
27674
27630
|
return _this24;
|
|
27675
27631
|
}
|
|
27632
|
+
_inherits(TimePointContext, _Template16);
|
|
27676
27633
|
return _createClass(TimePointContext);
|
|
27677
27634
|
}(Template);
|
|
27678
27635
|
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
27679
|
-
_inherits(ImageLibrary, _Template17);
|
|
27680
27636
|
function ImageLibrary() {
|
|
27681
27637
|
var _this25;
|
|
27682
27638
|
_classCallCheck(this, ImageLibrary);
|
|
@@ -27692,10 +27648,10 @@ b"+i+"*=d\
|
|
|
27692
27648
|
_this25.push(libraryItem);
|
|
27693
27649
|
return _this25;
|
|
27694
27650
|
}
|
|
27651
|
+
_inherits(ImageLibrary, _Template17);
|
|
27695
27652
|
return _createClass(ImageLibrary);
|
|
27696
27653
|
}(Template);
|
|
27697
27654
|
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
27698
|
-
_inherits(AlgorithmIdentification, _Template18);
|
|
27699
27655
|
function AlgorithmIdentification(options) {
|
|
27700
27656
|
var _this26;
|
|
27701
27657
|
_classCallCheck(this, AlgorithmIdentification);
|
|
@@ -27745,10 +27701,10 @@ b"+i+"*=d\
|
|
|
27745
27701
|
}
|
|
27746
27702
|
return _this26;
|
|
27747
27703
|
}
|
|
27704
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
27748
27705
|
return _createClass(AlgorithmIdentification);
|
|
27749
27706
|
}(Template);
|
|
27750
27707
|
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
27751
|
-
_inherits(TrackingIdentifier, _Template19);
|
|
27752
27708
|
function TrackingIdentifier(options) {
|
|
27753
27709
|
var _this27;
|
|
27754
27710
|
_classCallCheck(this, TrackingIdentifier);
|
|
@@ -27780,6 +27736,7 @@ b"+i+"*=d\
|
|
|
27780
27736
|
_this27.push(trackingUIDItem);
|
|
27781
27737
|
return _this27;
|
|
27782
27738
|
}
|
|
27739
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
27783
27740
|
return _createClass(TrackingIdentifier);
|
|
27784
27741
|
}(Template);
|
|
27785
27742
|
|