dcmjs 0.50.2 → 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 +625 -660
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +625 -660
- 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,39 +14882,48 @@
|
|
|
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
|
|
14894
|
-
|
|
14912
|
+
case 4:
|
|
14913
|
+
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14914
|
+
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14915
|
+
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
14916
|
+
//
|
|
14917
|
+
// TODO: the original charset value should also be preserved:
|
|
14918
|
+
// it is needed for bulk data decoding.
|
|
14919
|
+
values = ["ISO_IR 192"];
|
|
14920
|
+
case 5:
|
|
14921
|
+
valuesForListener = Array.isArray(values) ? values : [values];
|
|
14922
|
+
valuesForListener.forEach(function (value) {
|
|
14895
14923
|
return listener.value(value);
|
|
14896
14924
|
});
|
|
14897
14925
|
return _context11.abrupt("return", values);
|
|
14898
|
-
case
|
|
14926
|
+
case 6:
|
|
14899
14927
|
case "end":
|
|
14900
14928
|
return _context11.stop();
|
|
14901
14929
|
}
|
|
@@ -14907,7 +14935,6 @@
|
|
|
14907
14935
|
return readSingle;
|
|
14908
14936
|
}())
|
|
14909
14937
|
}]);
|
|
14910
|
-
return AsyncDicomReader;
|
|
14911
14938
|
}();
|
|
14912
14939
|
_defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
|
|
14913
14940
|
|
|
@@ -14973,7 +15000,7 @@
|
|
|
14973
15000
|
};
|
|
14974
15001
|
this.derive();
|
|
14975
15002
|
}
|
|
14976
|
-
_createClass(DerivedDataset, [{
|
|
15003
|
+
return _createClass(DerivedDataset, [{
|
|
14977
15004
|
key: "assignToDataset",
|
|
14978
15005
|
value: function assignToDataset(data) {
|
|
14979
15006
|
var _this = this;
|
|
@@ -15011,11 +15038,9 @@
|
|
|
15011
15038
|
return JSON.parse(JSON.stringify(dataset));
|
|
15012
15039
|
}
|
|
15013
15040
|
}]);
|
|
15014
|
-
return DerivedDataset;
|
|
15015
15041
|
}();
|
|
15016
15042
|
|
|
15017
15043
|
var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
15018
|
-
_inherits(DerivedPixels, _DerivedDataset);
|
|
15019
15044
|
function DerivedPixels(datasets) {
|
|
15020
15045
|
var _this;
|
|
15021
15046
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -15030,7 +15055,8 @@
|
|
|
15030
15055
|
|
|
15031
15056
|
// this assumes a normalized multiframe input and will create
|
|
15032
15057
|
// a multiframe derived image
|
|
15033
|
-
|
|
15058
|
+
_inherits(DerivedPixels, _DerivedDataset);
|
|
15059
|
+
return _createClass(DerivedPixels, [{
|
|
15034
15060
|
key: "derive",
|
|
15035
15061
|
value: function derive() {
|
|
15036
15062
|
_get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
|
|
@@ -15057,29 +15083,26 @@
|
|
|
15057
15083
|
this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
|
|
15058
15084
|
}
|
|
15059
15085
|
}]);
|
|
15060
|
-
return DerivedPixels;
|
|
15061
15086
|
}(DerivedDataset);
|
|
15062
15087
|
|
|
15063
15088
|
var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
|
|
15064
|
-
_inherits(DerivedImage, _DerivedPixels);
|
|
15065
15089
|
function DerivedImage(datasets) {
|
|
15066
15090
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15067
15091
|
_classCallCheck(this, DerivedImage);
|
|
15068
15092
|
return _callSuper(this, DerivedImage, [datasets, options]);
|
|
15069
15093
|
}
|
|
15070
|
-
|
|
15094
|
+
_inherits(DerivedImage, _DerivedPixels);
|
|
15095
|
+
return _createClass(DerivedImage, [{
|
|
15071
15096
|
key: "derive",
|
|
15072
15097
|
value: function derive() {
|
|
15073
15098
|
_get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
|
|
15074
15099
|
this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
|
|
15075
15100
|
}
|
|
15076
15101
|
}]);
|
|
15077
|
-
return DerivedImage;
|
|
15078
15102
|
}(DerivedPixels);
|
|
15079
15103
|
|
|
15080
15104
|
var Normalizer$1;
|
|
15081
15105
|
var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
15082
|
-
_inherits(Segmentation, _DerivedPixels);
|
|
15083
15106
|
function Segmentation(datasets) {
|
|
15084
15107
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15085
15108
|
includeSliceSpacing: true
|
|
@@ -15087,7 +15110,8 @@
|
|
|
15087
15110
|
_classCallCheck(this, Segmentation);
|
|
15088
15111
|
return _callSuper(this, Segmentation, [datasets, options]);
|
|
15089
15112
|
}
|
|
15090
|
-
|
|
15113
|
+
_inherits(Segmentation, _DerivedPixels);
|
|
15114
|
+
return _createClass(Segmentation, [{
|
|
15091
15115
|
key: "derive",
|
|
15092
15116
|
value: function derive() {
|
|
15093
15117
|
_get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
|
|
@@ -15402,11 +15426,9 @@
|
|
|
15402
15426
|
Normalizer$1 = normalizer;
|
|
15403
15427
|
}
|
|
15404
15428
|
}]);
|
|
15405
|
-
return Segmentation;
|
|
15406
15429
|
}(DerivedPixels);
|
|
15407
15430
|
|
|
15408
15431
|
var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
15409
|
-
_inherits(ParametricMap, _DerivedDataset);
|
|
15410
15432
|
function ParametricMap(datasets) {
|
|
15411
15433
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15412
15434
|
_classCallCheck(this, ParametricMap);
|
|
@@ -15415,7 +15437,8 @@
|
|
|
15415
15437
|
|
|
15416
15438
|
// this assumes a normalized multiframe input and will create
|
|
15417
15439
|
// a multiframe derived image
|
|
15418
|
-
|
|
15440
|
+
_inherits(ParametricMap, _DerivedDataset);
|
|
15441
|
+
return _createClass(ParametricMap, [{
|
|
15419
15442
|
key: "derive",
|
|
15420
15443
|
value: function derive() {
|
|
15421
15444
|
_get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
|
|
@@ -15425,11 +15448,9 @@
|
|
|
15425
15448
|
this.assignFromReference([]);
|
|
15426
15449
|
}
|
|
15427
15450
|
}]);
|
|
15428
|
-
return ParametricMap;
|
|
15429
15451
|
}(DerivedDataset);
|
|
15430
15452
|
|
|
15431
15453
|
var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
15432
|
-
_inherits(StructuredReport, _DerivedDataset);
|
|
15433
15454
|
function StructuredReport(datasets) {
|
|
15434
15455
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15435
15456
|
_classCallCheck(this, StructuredReport);
|
|
@@ -15438,7 +15459,8 @@
|
|
|
15438
15459
|
|
|
15439
15460
|
// this assumes a normalized multiframe input and will create
|
|
15440
15461
|
// a multiframe derived image
|
|
15441
|
-
|
|
15462
|
+
_inherits(StructuredReport, _DerivedDataset);
|
|
15463
|
+
return _createClass(StructuredReport, [{
|
|
15442
15464
|
key: "derive",
|
|
15443
15465
|
value: function derive() {
|
|
15444
15466
|
_get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
|
|
@@ -15450,7 +15472,6 @@
|
|
|
15450
15472
|
this.assignFromReference([]);
|
|
15451
15473
|
}
|
|
15452
15474
|
}]);
|
|
15453
|
-
return StructuredReport;
|
|
15454
15475
|
}(DerivedDataset);
|
|
15455
15476
|
|
|
15456
15477
|
var Normalizer = /*#__PURE__*/function () {
|
|
@@ -15459,7 +15480,7 @@
|
|
|
15459
15480
|
this.datasets = datasets; // one or more dicom-like object instances
|
|
15460
15481
|
this.dataset = undefined; // a normalized multiframe dicom object instance
|
|
15461
15482
|
}
|
|
15462
|
-
_createClass(Normalizer, [{
|
|
15483
|
+
return _createClass(Normalizer, [{
|
|
15463
15484
|
key: "normalize",
|
|
15464
15485
|
value: function normalize() {
|
|
15465
15486
|
return "No normalization defined";
|
|
@@ -15537,15 +15558,14 @@
|
|
|
15537
15558
|
return normalizer.dataset;
|
|
15538
15559
|
}
|
|
15539
15560
|
}]);
|
|
15540
|
-
return Normalizer;
|
|
15541
15561
|
}();
|
|
15542
15562
|
var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
15543
|
-
_inherits(ImageNormalizer, _Normalizer);
|
|
15544
15563
|
function ImageNormalizer() {
|
|
15545
15564
|
_classCallCheck(this, ImageNormalizer);
|
|
15546
15565
|
return _callSuper(this, ImageNormalizer, arguments);
|
|
15547
15566
|
}
|
|
15548
|
-
|
|
15567
|
+
_inherits(ImageNormalizer, _Normalizer);
|
|
15568
|
+
return _createClass(ImageNormalizer, [{
|
|
15549
15569
|
key: "normalize",
|
|
15550
15570
|
value: function normalize() {
|
|
15551
15571
|
this.convertToMultiframe();
|
|
@@ -15842,15 +15862,14 @@
|
|
|
15842
15862
|
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
15843
15863
|
}
|
|
15844
15864
|
}]);
|
|
15845
|
-
return ImageNormalizer;
|
|
15846
15865
|
}(Normalizer);
|
|
15847
15866
|
var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
15848
|
-
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15849
15867
|
function MRImageNormalizer() {
|
|
15850
15868
|
_classCallCheck(this, MRImageNormalizer);
|
|
15851
15869
|
return _callSuper(this, MRImageNormalizer, arguments);
|
|
15852
15870
|
}
|
|
15853
|
-
|
|
15871
|
+
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15872
|
+
return _createClass(MRImageNormalizer, [{
|
|
15854
15873
|
key: "normalize",
|
|
15855
15874
|
value: function normalize() {
|
|
15856
15875
|
_get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15877,57 +15896,53 @@
|
|
|
15877
15896
|
};
|
|
15878
15897
|
}
|
|
15879
15898
|
}]);
|
|
15880
|
-
return MRImageNormalizer;
|
|
15881
15899
|
}(ImageNormalizer);
|
|
15882
15900
|
var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
|
|
15883
|
-
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15884
15901
|
function EnhancedCTImageNormalizer() {
|
|
15885
15902
|
_classCallCheck(this, EnhancedCTImageNormalizer);
|
|
15886
15903
|
return _callSuper(this, EnhancedCTImageNormalizer, arguments);
|
|
15887
15904
|
}
|
|
15888
|
-
|
|
15905
|
+
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15906
|
+
return _createClass(EnhancedCTImageNormalizer, [{
|
|
15889
15907
|
key: "normalize",
|
|
15890
15908
|
value: function normalize() {
|
|
15891
15909
|
_get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
15892
15910
|
}
|
|
15893
15911
|
}]);
|
|
15894
|
-
return EnhancedCTImageNormalizer;
|
|
15895
15912
|
}(ImageNormalizer);
|
|
15896
15913
|
var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
|
|
15897
|
-
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15898
15914
|
function EnhancedMRImageNormalizer() {
|
|
15899
15915
|
_classCallCheck(this, EnhancedMRImageNormalizer);
|
|
15900
15916
|
return _callSuper(this, EnhancedMRImageNormalizer, arguments);
|
|
15901
15917
|
}
|
|
15902
|
-
|
|
15918
|
+
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15919
|
+
return _createClass(EnhancedMRImageNormalizer, [{
|
|
15903
15920
|
key: "normalize",
|
|
15904
15921
|
value: function normalize() {
|
|
15905
15922
|
_get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
|
|
15906
15923
|
}
|
|
15907
15924
|
}]);
|
|
15908
|
-
return EnhancedMRImageNormalizer;
|
|
15909
15925
|
}(ImageNormalizer);
|
|
15910
15926
|
var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
|
|
15911
|
-
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15912
15927
|
function EnhancedUSVolumeNormalizer() {
|
|
15913
15928
|
_classCallCheck(this, EnhancedUSVolumeNormalizer);
|
|
15914
15929
|
return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
|
|
15915
15930
|
}
|
|
15916
|
-
|
|
15931
|
+
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15932
|
+
return _createClass(EnhancedUSVolumeNormalizer, [{
|
|
15917
15933
|
key: "normalize",
|
|
15918
15934
|
value: function normalize() {
|
|
15919
15935
|
_get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
|
|
15920
15936
|
}
|
|
15921
15937
|
}]);
|
|
15922
|
-
return EnhancedUSVolumeNormalizer;
|
|
15923
15938
|
}(ImageNormalizer);
|
|
15924
15939
|
var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
15925
|
-
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15926
15940
|
function NMImageNormalizer() {
|
|
15927
15941
|
_classCallCheck(this, NMImageNormalizer);
|
|
15928
15942
|
return _callSuper(this, NMImageNormalizer, arguments);
|
|
15929
15943
|
}
|
|
15930
|
-
|
|
15944
|
+
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15945
|
+
return _createClass(NMImageNormalizer, [{
|
|
15931
15946
|
key: "normalize",
|
|
15932
15947
|
value: function normalize() {
|
|
15933
15948
|
_get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15936,15 +15951,14 @@
|
|
|
15936
15951
|
this.dataset.SOPClassUID = toUID.NMImage;
|
|
15937
15952
|
}
|
|
15938
15953
|
}]);
|
|
15939
|
-
return NMImageNormalizer;
|
|
15940
15954
|
}(ImageNormalizer);
|
|
15941
15955
|
var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
15942
|
-
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15943
15956
|
function CTImageNormalizer() {
|
|
15944
15957
|
_classCallCheck(this, CTImageNormalizer);
|
|
15945
15958
|
return _callSuper(this, CTImageNormalizer, arguments);
|
|
15946
15959
|
}
|
|
15947
|
-
|
|
15960
|
+
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15961
|
+
return _createClass(CTImageNormalizer, [{
|
|
15948
15962
|
key: "normalize",
|
|
15949
15963
|
value: function normalize() {
|
|
15950
15964
|
_get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15954,15 +15968,14 @@
|
|
|
15954
15968
|
this.dataset.SOPClassUID = toUID.EnhancedCTImage;
|
|
15955
15969
|
}
|
|
15956
15970
|
}]);
|
|
15957
|
-
return CTImageNormalizer;
|
|
15958
15971
|
}(ImageNormalizer);
|
|
15959
15972
|
var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
15960
|
-
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15961
15973
|
function PETImageNormalizer() {
|
|
15962
15974
|
_classCallCheck(this, PETImageNormalizer);
|
|
15963
15975
|
return _callSuper(this, PETImageNormalizer, arguments);
|
|
15964
15976
|
}
|
|
15965
|
-
|
|
15977
|
+
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15978
|
+
return _createClass(PETImageNormalizer, [{
|
|
15966
15979
|
key: "normalize",
|
|
15967
15980
|
value: function normalize() {
|
|
15968
15981
|
_get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15972,29 +15985,27 @@
|
|
|
15972
15985
|
this.dataset.SOPClassUID = toUID.EnhancedPETImage;
|
|
15973
15986
|
}
|
|
15974
15987
|
}]);
|
|
15975
|
-
return PETImageNormalizer;
|
|
15976
15988
|
}(ImageNormalizer);
|
|
15977
15989
|
var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
|
|
15978
|
-
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15979
15990
|
function SEGImageNormalizer() {
|
|
15980
15991
|
_classCallCheck(this, SEGImageNormalizer);
|
|
15981
15992
|
return _callSuper(this, SEGImageNormalizer, arguments);
|
|
15982
15993
|
}
|
|
15983
|
-
|
|
15994
|
+
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15995
|
+
return _createClass(SEGImageNormalizer, [{
|
|
15984
15996
|
key: "normalize",
|
|
15985
15997
|
value: function normalize() {
|
|
15986
15998
|
_get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
|
|
15987
15999
|
}
|
|
15988
16000
|
}]);
|
|
15989
|
-
return SEGImageNormalizer;
|
|
15990
16001
|
}(ImageNormalizer);
|
|
15991
16002
|
var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
15992
|
-
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
15993
16003
|
function PMImageNormalizer() {
|
|
15994
16004
|
_classCallCheck(this, PMImageNormalizer);
|
|
15995
16005
|
return _callSuper(this, PMImageNormalizer, arguments);
|
|
15996
16006
|
}
|
|
15997
|
-
|
|
16007
|
+
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16008
|
+
return _createClass(PMImageNormalizer, [{
|
|
15998
16009
|
key: "normalize",
|
|
15999
16010
|
value: function normalize() {
|
|
16000
16011
|
_get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -16004,49 +16015,45 @@
|
|
|
16004
16015
|
}
|
|
16005
16016
|
}
|
|
16006
16017
|
}]);
|
|
16007
|
-
return PMImageNormalizer;
|
|
16008
16018
|
}(ImageNormalizer);
|
|
16009
16019
|
var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
|
|
16010
|
-
_inherits(DSRNormalizer, _Normalizer2);
|
|
16011
16020
|
function DSRNormalizer() {
|
|
16012
16021
|
_classCallCheck(this, DSRNormalizer);
|
|
16013
16022
|
return _callSuper(this, DSRNormalizer, arguments);
|
|
16014
16023
|
}
|
|
16015
|
-
|
|
16024
|
+
_inherits(DSRNormalizer, _Normalizer2);
|
|
16025
|
+
return _createClass(DSRNormalizer, [{
|
|
16016
16026
|
key: "normalize",
|
|
16017
16027
|
value: function normalize() {
|
|
16018
16028
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16019
16029
|
}
|
|
16020
16030
|
}]);
|
|
16021
|
-
return DSRNormalizer;
|
|
16022
16031
|
}(Normalizer);
|
|
16023
16032
|
var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
|
|
16024
|
-
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16025
16033
|
function OPImageNormalizer() {
|
|
16026
16034
|
_classCallCheck(this, OPImageNormalizer);
|
|
16027
16035
|
return _callSuper(this, OPImageNormalizer, arguments);
|
|
16028
16036
|
}
|
|
16029
|
-
|
|
16037
|
+
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16038
|
+
return _createClass(OPImageNormalizer, [{
|
|
16030
16039
|
key: "normalize",
|
|
16031
16040
|
value: function normalize() {
|
|
16032
16041
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16033
16042
|
}
|
|
16034
16043
|
}]);
|
|
16035
|
-
return OPImageNormalizer;
|
|
16036
16044
|
}(Normalizer);
|
|
16037
16045
|
var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
|
|
16038
|
-
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16039
16046
|
function OCTImageNormalizer() {
|
|
16040
16047
|
_classCallCheck(this, OCTImageNormalizer);
|
|
16041
16048
|
return _callSuper(this, OCTImageNormalizer, arguments);
|
|
16042
16049
|
}
|
|
16043
|
-
|
|
16050
|
+
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16051
|
+
return _createClass(OCTImageNormalizer, [{
|
|
16044
16052
|
key: "normalize",
|
|
16045
16053
|
value: function normalize() {
|
|
16046
16054
|
_get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
16047
16055
|
}
|
|
16048
16056
|
}]);
|
|
16049
|
-
return OCTImageNormalizer;
|
|
16050
16057
|
}(ImageNormalizer); // Avoid import loops
|
|
16051
16058
|
Segmentation$4.setNormalizer(Normalizer);
|
|
16052
16059
|
|
|
@@ -16154,7 +16161,7 @@
|
|
|
16154
16161
|
}]
|
|
16155
16162
|
};
|
|
16156
16163
|
}
|
|
16157
|
-
_createClass(TID1500MeasurementReport, [{
|
|
16164
|
+
return _createClass(TID1500MeasurementReport, [{
|
|
16158
16165
|
key: "validate",
|
|
16159
16166
|
value: function validate() {}
|
|
16160
16167
|
}, {
|
|
@@ -16245,7 +16252,6 @@
|
|
|
16245
16252
|
this.tid1500.ContentSequence.push(ImagingMeasurments);
|
|
16246
16253
|
}
|
|
16247
16254
|
}]);
|
|
16248
|
-
return TID1500MeasurementReport;
|
|
16249
16255
|
}();
|
|
16250
16256
|
|
|
16251
16257
|
var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
@@ -16253,7 +16259,7 @@
|
|
|
16253
16259
|
_classCallCheck(this, TID1501MeasurementGroup);
|
|
16254
16260
|
this.TID300Measurements = TID300Measurements;
|
|
16255
16261
|
}
|
|
16256
|
-
_createClass(TID1501MeasurementGroup, [{
|
|
16262
|
+
return _createClass(TID1501MeasurementGroup, [{
|
|
16257
16263
|
key: "contentItem",
|
|
16258
16264
|
value: function contentItem() {
|
|
16259
16265
|
var _this = this;
|
|
@@ -16282,7 +16288,6 @@
|
|
|
16282
16288
|
};
|
|
16283
16289
|
}
|
|
16284
16290
|
}]);
|
|
16285
|
-
return TID1501MeasurementGroup;
|
|
16286
16291
|
}();
|
|
16287
16292
|
|
|
16288
16293
|
var toArray = function toArray(x) {
|
|
@@ -16342,7 +16347,7 @@
|
|
|
16342
16347
|
function MeasurementReport() {
|
|
16343
16348
|
_classCallCheck(this, MeasurementReport);
|
|
16344
16349
|
}
|
|
16345
|
-
_createClass(MeasurementReport, null, [{
|
|
16350
|
+
return _createClass(MeasurementReport, null, [{
|
|
16346
16351
|
key: "getSetupMeasurementData",
|
|
16347
16352
|
value: function getSetupMeasurementData(MeasurementGroup) {
|
|
16348
16353
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -16553,7 +16558,6 @@
|
|
|
16553
16558
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
16554
16559
|
}
|
|
16555
16560
|
}]);
|
|
16556
|
-
return MeasurementReport;
|
|
16557
16561
|
}();
|
|
16558
16562
|
MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
|
|
16559
16563
|
MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -16565,7 +16569,7 @@
|
|
|
16565
16569
|
this.ReferencedSOPSequence = props.ReferencedSOPSequence;
|
|
16566
16570
|
this.props = props;
|
|
16567
16571
|
}
|
|
16568
|
-
_createClass(TID300Measurement, [{
|
|
16572
|
+
return _createClass(TID300Measurement, [{
|
|
16569
16573
|
key: "getMeasurement",
|
|
16570
16574
|
value: function getMeasurement(contentSequenceEntries) {
|
|
16571
16575
|
return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
|
|
@@ -16673,7 +16677,6 @@
|
|
|
16673
16677
|
return flattenedCoordinates;
|
|
16674
16678
|
}
|
|
16675
16679
|
}]);
|
|
16676
|
-
return TID300Measurement;
|
|
16677
16680
|
}();
|
|
16678
16681
|
|
|
16679
16682
|
/**
|
|
@@ -16695,7 +16698,7 @@
|
|
|
16695
16698
|
this.referencedSOPSequence = referencedSOPSequence;
|
|
16696
16699
|
this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
|
|
16697
16700
|
}
|
|
16698
|
-
_createClass(TID320ContentItem, [{
|
|
16701
|
+
return _createClass(TID320ContentItem, [{
|
|
16699
16702
|
key: "contentItem",
|
|
16700
16703
|
value: function contentItem() {
|
|
16701
16704
|
var content = {
|
|
@@ -16716,16 +16719,15 @@
|
|
|
16716
16719
|
return content;
|
|
16717
16720
|
}
|
|
16718
16721
|
}]);
|
|
16719
|
-
return TID320ContentItem;
|
|
16720
16722
|
}();
|
|
16721
16723
|
|
|
16722
16724
|
var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
16723
|
-
_inherits(OpenPolyline, _TID300Measurement);
|
|
16724
16725
|
function OpenPolyline() {
|
|
16725
16726
|
_classCallCheck(this, OpenPolyline);
|
|
16726
16727
|
return _callSuper(this, OpenPolyline, arguments);
|
|
16727
16728
|
}
|
|
16728
|
-
|
|
16729
|
+
_inherits(OpenPolyline, _TID300Measurement);
|
|
16730
|
+
return _createClass(OpenPolyline, [{
|
|
16729
16731
|
key: "getPoints",
|
|
16730
16732
|
value: function getPoints() {
|
|
16731
16733
|
throw new Error("getPoints() must be implemented by subclass");
|
|
@@ -16774,7 +16776,6 @@
|
|
|
16774
16776
|
}]);
|
|
16775
16777
|
}
|
|
16776
16778
|
}]);
|
|
16777
|
-
return OpenPolyline;
|
|
16778
16779
|
}(TID300Measurement);
|
|
16779
16780
|
|
|
16780
16781
|
var knownUnits = [
|
|
@@ -16952,12 +16953,12 @@
|
|
|
16952
16953
|
unit2CodingValue.measurementMap = unitCodeMap;
|
|
16953
16954
|
|
|
16954
16955
|
var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
16955
|
-
_inherits(Length, _OpenPolyline);
|
|
16956
16956
|
function Length() {
|
|
16957
16957
|
_classCallCheck(this, Length);
|
|
16958
16958
|
return _callSuper(this, Length, arguments);
|
|
16959
16959
|
}
|
|
16960
|
-
|
|
16960
|
+
_inherits(Length, _OpenPolyline);
|
|
16961
|
+
return _createClass(Length, [{
|
|
16961
16962
|
key: "getPoints",
|
|
16962
16963
|
value: function getPoints() {
|
|
16963
16964
|
var _this$props = this.props,
|
|
@@ -16987,7 +16988,6 @@
|
|
|
16987
16988
|
};
|
|
16988
16989
|
}
|
|
16989
16990
|
}]);
|
|
16990
|
-
return Length;
|
|
16991
16991
|
}(OpenPolyline);
|
|
16992
16992
|
|
|
16993
16993
|
var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
|
|
@@ -16999,7 +16999,7 @@
|
|
|
16999
16999
|
}
|
|
17000
17000
|
|
|
17001
17001
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17002
|
-
_createClass(Length, null, [{
|
|
17002
|
+
return _createClass(Length, null, [{
|
|
17003
17003
|
key: "getMeasurementData",
|
|
17004
17004
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17005
17005
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17048,7 +17048,6 @@
|
|
|
17048
17048
|
};
|
|
17049
17049
|
}
|
|
17050
17050
|
}]);
|
|
17051
|
-
return Length;
|
|
17052
17051
|
}();
|
|
17053
17052
|
Length$1.toolType = LENGTH$1;
|
|
17054
17053
|
Length$1.utilityToolType = LENGTH$1;
|
|
@@ -17085,7 +17084,7 @@
|
|
|
17085
17084
|
function MeasurementBuilder() {
|
|
17086
17085
|
_classCallCheck(this, MeasurementBuilder);
|
|
17087
17086
|
}
|
|
17088
|
-
_createClass(MeasurementBuilder, null, [{
|
|
17087
|
+
return _createClass(MeasurementBuilder, null, [{
|
|
17089
17088
|
key: "createNumericMeasurement",
|
|
17090
17089
|
value:
|
|
17091
17090
|
/**
|
|
@@ -17179,16 +17178,15 @@
|
|
|
17179
17178
|
});
|
|
17180
17179
|
}
|
|
17181
17180
|
}]);
|
|
17182
|
-
return MeasurementBuilder;
|
|
17183
17181
|
}();
|
|
17184
17182
|
|
|
17185
17183
|
var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17186
|
-
_inherits(Polyline, _TID300Measurement);
|
|
17187
17184
|
function Polyline() {
|
|
17188
17185
|
_classCallCheck(this, Polyline);
|
|
17189
17186
|
return _callSuper(this, Polyline, arguments);
|
|
17190
17187
|
}
|
|
17191
|
-
|
|
17188
|
+
_inherits(Polyline, _TID300Measurement);
|
|
17189
|
+
return _createClass(Polyline, [{
|
|
17192
17190
|
key: "contentItem",
|
|
17193
17191
|
value: function contentItem() {
|
|
17194
17192
|
var _this$props = this.props,
|
|
@@ -17254,14 +17252,13 @@
|
|
|
17254
17252
|
return this.getMeasurement(measurements);
|
|
17255
17253
|
}
|
|
17256
17254
|
}]);
|
|
17257
|
-
return Polyline;
|
|
17258
17255
|
}(TID300Measurement);
|
|
17259
17256
|
|
|
17260
17257
|
var FreehandRoi = /*#__PURE__*/function () {
|
|
17261
17258
|
function FreehandRoi() {
|
|
17262
17259
|
_classCallCheck(this, FreehandRoi);
|
|
17263
17260
|
}
|
|
17264
|
-
_createClass(FreehandRoi, null, [{
|
|
17261
|
+
return _createClass(FreehandRoi, null, [{
|
|
17265
17262
|
key: "getMeasurementData",
|
|
17266
17263
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17267
17264
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17320,7 +17317,6 @@
|
|
|
17320
17317
|
};
|
|
17321
17318
|
}
|
|
17322
17319
|
}]);
|
|
17323
|
-
return FreehandRoi;
|
|
17324
17320
|
}();
|
|
17325
17321
|
FreehandRoi.toolType = "FreehandRoi";
|
|
17326
17322
|
FreehandRoi.utilityToolType = "FreehandRoi";
|
|
@@ -17341,12 +17337,12 @@
|
|
|
17341
17337
|
MeasurementReport$3.registerTool(FreehandRoi);
|
|
17342
17338
|
|
|
17343
17339
|
var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17344
|
-
_inherits(Bidirectional, _TID300Measurement);
|
|
17345
17340
|
function Bidirectional() {
|
|
17346
17341
|
_classCallCheck(this, Bidirectional);
|
|
17347
17342
|
return _callSuper(this, Bidirectional, arguments);
|
|
17348
17343
|
}
|
|
17349
|
-
|
|
17344
|
+
_inherits(Bidirectional, _TID300Measurement);
|
|
17345
|
+
return _createClass(Bidirectional, [{
|
|
17350
17346
|
key: "contentItem",
|
|
17351
17347
|
value: function contentItem() {
|
|
17352
17348
|
var _this$props = this.props,
|
|
@@ -17410,7 +17406,6 @@
|
|
|
17410
17406
|
}]);
|
|
17411
17407
|
}
|
|
17412
17408
|
}]);
|
|
17413
|
-
return Bidirectional;
|
|
17414
17409
|
}(TID300Measurement);
|
|
17415
17410
|
|
|
17416
17411
|
var BIDIRECTIONAL$1 = "Bidirectional";
|
|
@@ -17424,7 +17419,7 @@
|
|
|
17424
17419
|
}
|
|
17425
17420
|
|
|
17426
17421
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17427
|
-
_createClass(Bidirectional, null, [{
|
|
17422
|
+
return _createClass(Bidirectional, null, [{
|
|
17428
17423
|
key: "getMeasurementData",
|
|
17429
17424
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17430
17425
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -17555,7 +17550,6 @@
|
|
|
17555
17550
|
};
|
|
17556
17551
|
}
|
|
17557
17552
|
}]);
|
|
17558
|
-
return Bidirectional;
|
|
17559
17553
|
}();
|
|
17560
17554
|
Bidirectional$1.toolType = BIDIRECTIONAL$1;
|
|
17561
17555
|
Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
|
|
@@ -17576,12 +17570,12 @@
|
|
|
17576
17570
|
MeasurementReport$3.registerTool(Bidirectional$1);
|
|
17577
17571
|
|
|
17578
17572
|
var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17579
|
-
_inherits(Ellipse, _TID300Measurement);
|
|
17580
17573
|
function Ellipse() {
|
|
17581
17574
|
_classCallCheck(this, Ellipse);
|
|
17582
17575
|
return _callSuper(this, Ellipse, arguments);
|
|
17583
17576
|
}
|
|
17584
|
-
|
|
17577
|
+
_inherits(Ellipse, _TID300Measurement);
|
|
17578
|
+
return _createClass(Ellipse, [{
|
|
17585
17579
|
key: "contentItem",
|
|
17586
17580
|
value: function contentItem() {
|
|
17587
17581
|
var _this$props = this.props,
|
|
@@ -17639,7 +17633,6 @@
|
|
|
17639
17633
|
return this.getMeasurement(measurements);
|
|
17640
17634
|
}
|
|
17641
17635
|
}]);
|
|
17642
|
-
return Ellipse;
|
|
17643
17636
|
}(TID300Measurement);
|
|
17644
17637
|
|
|
17645
17638
|
var ELLIPTICALROI$1 = "EllipticalRoi";
|
|
@@ -17649,7 +17642,7 @@
|
|
|
17649
17642
|
}
|
|
17650
17643
|
|
|
17651
17644
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17652
|
-
_createClass(EllipticalRoi, null, [{
|
|
17645
|
+
return _createClass(EllipticalRoi, null, [{
|
|
17653
17646
|
key: "getMeasurementData",
|
|
17654
17647
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17655
17648
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17794,7 +17787,6 @@
|
|
|
17794
17787
|
};
|
|
17795
17788
|
}
|
|
17796
17789
|
}]);
|
|
17797
|
-
return EllipticalRoi;
|
|
17798
17790
|
}();
|
|
17799
17791
|
EllipticalRoi.toolType = ELLIPTICALROI$1;
|
|
17800
17792
|
EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
|
|
@@ -17815,12 +17807,12 @@
|
|
|
17815
17807
|
MeasurementReport$3.registerTool(EllipticalRoi);
|
|
17816
17808
|
|
|
17817
17809
|
var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17818
|
-
_inherits(Circle, _TID300Measurement);
|
|
17819
17810
|
function Circle() {
|
|
17820
17811
|
_classCallCheck(this, Circle);
|
|
17821
17812
|
return _callSuper(this, Circle, arguments);
|
|
17822
17813
|
}
|
|
17823
|
-
|
|
17814
|
+
_inherits(Circle, _TID300Measurement);
|
|
17815
|
+
return _createClass(Circle, [{
|
|
17824
17816
|
key: "contentItem",
|
|
17825
17817
|
value: function contentItem() {
|
|
17826
17818
|
var _this$props = this.props,
|
|
@@ -17897,7 +17889,6 @@
|
|
|
17897
17889
|
return this.getMeasurement(measurements);
|
|
17898
17890
|
}
|
|
17899
17891
|
}]);
|
|
17900
|
-
return Circle;
|
|
17901
17892
|
}(TID300Measurement);
|
|
17902
17893
|
|
|
17903
17894
|
var CIRCLEROI = "CircleRoi";
|
|
@@ -17907,7 +17898,7 @@
|
|
|
17907
17898
|
}
|
|
17908
17899
|
|
|
17909
17900
|
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
17910
|
-
_createClass(CircleRoi, null, [{
|
|
17901
|
+
return _createClass(CircleRoi, null, [{
|
|
17911
17902
|
key: "getMeasurementData",
|
|
17912
17903
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17913
17904
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17996,7 +17987,6 @@
|
|
|
17996
17987
|
};
|
|
17997
17988
|
}
|
|
17998
17989
|
}]);
|
|
17999
|
-
return CircleRoi;
|
|
18000
17990
|
}();
|
|
18001
17991
|
CircleRoi.toolType = CIRCLEROI;
|
|
18002
17992
|
CircleRoi.utilityToolType = CIRCLEROI;
|
|
@@ -18017,12 +18007,12 @@
|
|
|
18017
18007
|
MeasurementReport$3.registerTool(CircleRoi);
|
|
18018
18008
|
|
|
18019
18009
|
var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
18020
|
-
_inherits(Point, _TID300Measurement);
|
|
18021
18010
|
function Point() {
|
|
18022
18011
|
_classCallCheck(this, Point);
|
|
18023
18012
|
return _callSuper(this, Point, arguments);
|
|
18024
18013
|
}
|
|
18025
|
-
|
|
18014
|
+
_inherits(Point, _TID300Measurement);
|
|
18015
|
+
return _createClass(Point, [{
|
|
18026
18016
|
key: "contentItem",
|
|
18027
18017
|
value: function contentItem() {
|
|
18028
18018
|
var _this$props = this.props,
|
|
@@ -18063,7 +18053,6 @@
|
|
|
18063
18053
|
}]);
|
|
18064
18054
|
}
|
|
18065
18055
|
}]);
|
|
18066
|
-
return Point;
|
|
18067
18056
|
}(TID300Measurement);
|
|
18068
18057
|
|
|
18069
18058
|
var ARROW_ANNOTATE$1 = "ArrowAnnotate";
|
|
@@ -18072,7 +18061,7 @@
|
|
|
18072
18061
|
function ArrowAnnotate() {
|
|
18073
18062
|
_classCallCheck(this, ArrowAnnotate);
|
|
18074
18063
|
}
|
|
18075
|
-
_createClass(ArrowAnnotate, null, [{
|
|
18064
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
18076
18065
|
key: "getMeasurementData",
|
|
18077
18066
|
value: function getMeasurementData(MeasurementGroup) {
|
|
18078
18067
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18137,7 +18126,6 @@
|
|
|
18137
18126
|
return TID300RepresentationArguments;
|
|
18138
18127
|
}
|
|
18139
18128
|
}]);
|
|
18140
|
-
return ArrowAnnotate;
|
|
18141
18129
|
}();
|
|
18142
18130
|
ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
|
|
18143
18131
|
ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
|
|
@@ -22005,12 +21993,12 @@ b"+i+"*=d\
|
|
|
22005
21993
|
}
|
|
22006
21994
|
|
|
22007
21995
|
var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
22008
|
-
_inherits(CobbAngle, _OpenPolyline);
|
|
22009
21996
|
function CobbAngle() {
|
|
22010
21997
|
_classCallCheck(this, CobbAngle);
|
|
22011
21998
|
return _callSuper(this, CobbAngle, arguments);
|
|
22012
21999
|
}
|
|
22013
|
-
|
|
22000
|
+
_inherits(CobbAngle, _OpenPolyline);
|
|
22001
|
+
return _createClass(CobbAngle, [{
|
|
22014
22002
|
key: "getPoints",
|
|
22015
22003
|
value: function getPoints() {
|
|
22016
22004
|
var _this$props = this.props,
|
|
@@ -22044,7 +22032,6 @@ b"+i+"*=d\
|
|
|
22044
22032
|
};
|
|
22045
22033
|
}
|
|
22046
22034
|
}]);
|
|
22047
|
-
return CobbAngle;
|
|
22048
22035
|
}(OpenPolyline);
|
|
22049
22036
|
|
|
22050
22037
|
var COBB_ANGLE = "CobbAngle";
|
|
@@ -22054,7 +22041,7 @@ b"+i+"*=d\
|
|
|
22054
22041
|
}
|
|
22055
22042
|
|
|
22056
22043
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22057
|
-
_createClass(CobbAngle, null, [{
|
|
22044
|
+
return _createClass(CobbAngle, null, [{
|
|
22058
22045
|
key: "getMeasurementData",
|
|
22059
22046
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22060
22047
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22119,7 +22106,6 @@ b"+i+"*=d\
|
|
|
22119
22106
|
};
|
|
22120
22107
|
}
|
|
22121
22108
|
}]);
|
|
22122
|
-
return CobbAngle;
|
|
22123
22109
|
}();
|
|
22124
22110
|
CobbAngle.toolType = COBB_ANGLE;
|
|
22125
22111
|
CobbAngle.utilityToolType = COBB_ANGLE;
|
|
@@ -22150,7 +22136,7 @@ b"+i+"*=d\
|
|
|
22150
22136
|
* @param MeasurementGroup
|
|
22151
22137
|
* @returns
|
|
22152
22138
|
*/
|
|
22153
|
-
_createClass(Angle, null, [{
|
|
22139
|
+
return _createClass(Angle, null, [{
|
|
22154
22140
|
key: "getMeasurementData",
|
|
22155
22141
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22156
22142
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22208,7 +22194,6 @@ b"+i+"*=d\
|
|
|
22208
22194
|
};
|
|
22209
22195
|
}
|
|
22210
22196
|
}]);
|
|
22211
|
-
return Angle;
|
|
22212
22197
|
}();
|
|
22213
22198
|
Angle.toolType = ANGLE;
|
|
22214
22199
|
Angle.utilityToolType = ANGLE;
|
|
@@ -22232,7 +22217,7 @@ b"+i+"*=d\
|
|
|
22232
22217
|
function RectangleRoi() {
|
|
22233
22218
|
_classCallCheck(this, RectangleRoi);
|
|
22234
22219
|
}
|
|
22235
|
-
_createClass(RectangleRoi, null, [{
|
|
22220
|
+
return _createClass(RectangleRoi, null, [{
|
|
22236
22221
|
key: "getMeasurementData",
|
|
22237
22222
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22238
22223
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22301,7 +22286,6 @@ b"+i+"*=d\
|
|
|
22301
22286
|
};
|
|
22302
22287
|
}
|
|
22303
22288
|
}]);
|
|
22304
|
-
return RectangleRoi;
|
|
22305
22289
|
}();
|
|
22306
22290
|
RectangleRoi.toolType = "RectangleRoi";
|
|
22307
22291
|
RectangleRoi.utilityToolType = "RectangleRoi";
|
|
@@ -22421,7 +22405,7 @@ b"+i+"*=d\
|
|
|
22421
22405
|
function MeasurementReport() {
|
|
22422
22406
|
_classCallCheck(this, MeasurementReport);
|
|
22423
22407
|
}
|
|
22424
|
-
_createClass(MeasurementReport, null, [{
|
|
22408
|
+
return _createClass(MeasurementReport, null, [{
|
|
22425
22409
|
key: "getCornerstoneLabelFromDefaultState",
|
|
22426
22410
|
value: function getCornerstoneLabelFromDefaultState(defaultState) {
|
|
22427
22411
|
var _defaultState$finding = defaultState.findingSites,
|
|
@@ -22672,7 +22656,6 @@ b"+i+"*=d\
|
|
|
22672
22656
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
22673
22657
|
}
|
|
22674
22658
|
}]);
|
|
22675
|
-
return MeasurementReport;
|
|
22676
22659
|
}();
|
|
22677
22660
|
MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
|
|
22678
22661
|
MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -22688,7 +22671,7 @@ b"+i+"*=d\
|
|
|
22688
22671
|
}
|
|
22689
22672
|
|
|
22690
22673
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22691
|
-
_createClass(Length, null, [{
|
|
22674
|
+
return _createClass(Length, null, [{
|
|
22692
22675
|
key: "getMeasurementData",
|
|
22693
22676
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22694
22677
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
|
|
@@ -22755,7 +22738,6 @@ b"+i+"*=d\
|
|
|
22755
22738
|
};
|
|
22756
22739
|
}
|
|
22757
22740
|
}]);
|
|
22758
|
-
return Length;
|
|
22759
22741
|
}();
|
|
22760
22742
|
Length.toolType = LENGTH;
|
|
22761
22743
|
Length.utilityToolType = LENGTH;
|
|
@@ -22783,7 +22765,7 @@ b"+i+"*=d\
|
|
|
22783
22765
|
function Bidirectional() {
|
|
22784
22766
|
_classCallCheck(this, Bidirectional);
|
|
22785
22767
|
}
|
|
22786
|
-
_createClass(Bidirectional, null, [{
|
|
22768
|
+
return _createClass(Bidirectional, null, [{
|
|
22787
22769
|
key: "getMeasurementData",
|
|
22788
22770
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22789
22771
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
|
|
@@ -22894,7 +22876,6 @@ b"+i+"*=d\
|
|
|
22894
22876
|
};
|
|
22895
22877
|
}
|
|
22896
22878
|
}]);
|
|
22897
|
-
return Bidirectional;
|
|
22898
22879
|
}();
|
|
22899
22880
|
Bidirectional.toolType = BIDIRECTIONAL;
|
|
22900
22881
|
Bidirectional.utilityToolType = BIDIRECTIONAL;
|
|
@@ -23779,7 +23760,7 @@ b"+i+"*=d\
|
|
|
23779
23760
|
function EllipticalROI() {
|
|
23780
23761
|
_classCallCheck(this, EllipticalROI);
|
|
23781
23762
|
}
|
|
23782
|
-
_createClass(EllipticalROI, null, [{
|
|
23763
|
+
return _createClass(EllipticalROI, null, [{
|
|
23783
23764
|
key: "getMeasurementData",
|
|
23784
23765
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23785
23766
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
|
|
@@ -23925,7 +23906,6 @@ b"+i+"*=d\
|
|
|
23925
23906
|
};
|
|
23926
23907
|
}
|
|
23927
23908
|
}]);
|
|
23928
|
-
return EllipticalROI;
|
|
23929
23909
|
}();
|
|
23930
23910
|
EllipticalROI.toolType = ELLIPTICALROI;
|
|
23931
23911
|
EllipticalROI.utilityToolType = ELLIPTICALROI;
|
|
@@ -23949,12 +23929,12 @@ b"+i+"*=d\
|
|
|
23949
23929
|
MeasurementReport$2.registerTool(EllipticalROI);
|
|
23950
23930
|
|
|
23951
23931
|
var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
23952
|
-
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23953
23932
|
function ArrowAnnotate() {
|
|
23954
23933
|
_classCallCheck(this, ArrowAnnotate);
|
|
23955
23934
|
return _callSuper(this, ArrowAnnotate, arguments);
|
|
23956
23935
|
}
|
|
23957
|
-
|
|
23936
|
+
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23937
|
+
return _createClass(ArrowAnnotate, [{
|
|
23958
23938
|
key: "getPoints",
|
|
23959
23939
|
value: function getPoints() {
|
|
23960
23940
|
return this.props.points;
|
|
@@ -23981,7 +23961,6 @@ b"+i+"*=d\
|
|
|
23981
23961
|
};
|
|
23982
23962
|
}
|
|
23983
23963
|
}]);
|
|
23984
|
-
return ArrowAnnotate;
|
|
23985
23964
|
}(OpenPolyline);
|
|
23986
23965
|
|
|
23987
23966
|
var ARROW_ANNOTATE = "ArrowAnnotate";
|
|
@@ -23992,7 +23971,7 @@ b"+i+"*=d\
|
|
|
23992
23971
|
function ArrowAnnotate() {
|
|
23993
23972
|
_classCallCheck(this, ArrowAnnotate);
|
|
23994
23973
|
}
|
|
23995
|
-
_createClass(ArrowAnnotate, null, [{
|
|
23974
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
23996
23975
|
key: "getMeasurementData",
|
|
23997
23976
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23998
23977
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
|
|
@@ -24080,7 +24059,6 @@ b"+i+"*=d\
|
|
|
24080
24059
|
return TID300RepresentationArguments;
|
|
24081
24060
|
}
|
|
24082
24061
|
}]);
|
|
24083
|
-
return ArrowAnnotate;
|
|
24084
24062
|
}();
|
|
24085
24063
|
ArrowAnnotate.toolType = ARROW_ANNOTATE;
|
|
24086
24064
|
ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
|
|
@@ -24106,7 +24084,7 @@ b"+i+"*=d\
|
|
|
24106
24084
|
function Probe() {
|
|
24107
24085
|
_classCallCheck(this, Probe);
|
|
24108
24086
|
}
|
|
24109
|
-
_createClass(Probe, null, [{
|
|
24087
|
+
return _createClass(Probe, null, [{
|
|
24110
24088
|
key: "getMeasurementData",
|
|
24111
24089
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24112
24090
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
|
|
@@ -24161,7 +24139,6 @@ b"+i+"*=d\
|
|
|
24161
24139
|
return TID300RepresentationArguments;
|
|
24162
24140
|
}
|
|
24163
24141
|
}]);
|
|
24164
|
-
return Probe;
|
|
24165
24142
|
}();
|
|
24166
24143
|
Probe.toolType = PROBE;
|
|
24167
24144
|
Probe.utilityToolType = PROBE;
|
|
@@ -24188,7 +24165,7 @@ b"+i+"*=d\
|
|
|
24188
24165
|
function PlanarFreehandROI() {
|
|
24189
24166
|
_classCallCheck(this, PlanarFreehandROI);
|
|
24190
24167
|
}
|
|
24191
|
-
_createClass(PlanarFreehandROI, null, [{
|
|
24168
|
+
return _createClass(PlanarFreehandROI, null, [{
|
|
24192
24169
|
key: "getMeasurementData",
|
|
24193
24170
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24194
24171
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
|
|
@@ -24265,7 +24242,6 @@ b"+i+"*=d\
|
|
|
24265
24242
|
};
|
|
24266
24243
|
}
|
|
24267
24244
|
}]);
|
|
24268
|
-
return PlanarFreehandROI;
|
|
24269
24245
|
}();
|
|
24270
24246
|
PlanarFreehandROI.toolType = PLANARFREEHANDROI;
|
|
24271
24247
|
PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
|
|
@@ -24427,7 +24403,7 @@ b"+i+"*=d\
|
|
|
24427
24403
|
* @param dataset
|
|
24428
24404
|
* @return {{}}
|
|
24429
24405
|
*/
|
|
24430
|
-
_createClass(Segmentation, null, [{
|
|
24406
|
+
return _createClass(Segmentation, null, [{
|
|
24431
24407
|
key: "generateSegments",
|
|
24432
24408
|
value: function generateSegments(dataset) {
|
|
24433
24409
|
if (dataset.SegmentSequence.constructor.name !== "Array") {
|
|
@@ -24475,7 +24451,6 @@ b"+i+"*=d\
|
|
|
24475
24451
|
return segments;
|
|
24476
24452
|
}
|
|
24477
24453
|
}]);
|
|
24478
|
-
return Segmentation;
|
|
24479
24454
|
}();
|
|
24480
24455
|
|
|
24481
24456
|
var VTKjs = {
|
|
@@ -24501,7 +24476,7 @@ b"+i+"*=d\
|
|
|
24501
24476
|
function MeasurementReport() {
|
|
24502
24477
|
_classCallCheck(this, MeasurementReport);
|
|
24503
24478
|
}
|
|
24504
|
-
_createClass(MeasurementReport, null, [{
|
|
24479
|
+
return _createClass(MeasurementReport, null, [{
|
|
24505
24480
|
key: "generateReport",
|
|
24506
24481
|
value: function generateReport(rois, metadataProvider, options) {
|
|
24507
24482
|
// Input is all ROIS returned via viewer.getALLROIs()
|
|
@@ -24640,7 +24615,6 @@ b"+i+"*=d\
|
|
|
24640
24615
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
|
|
24641
24616
|
}
|
|
24642
24617
|
}]);
|
|
24643
|
-
return MeasurementReport;
|
|
24644
24618
|
}();
|
|
24645
24619
|
MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
|
|
24646
24620
|
MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -24650,7 +24624,7 @@ b"+i+"*=d\
|
|
|
24650
24624
|
function Polyline() {
|
|
24651
24625
|
_classCallCheck(this, Polyline);
|
|
24652
24626
|
}
|
|
24653
|
-
_createClass(Polyline, null, [{
|
|
24627
|
+
return _createClass(Polyline, null, [{
|
|
24654
24628
|
key: "getMeasurementData",
|
|
24655
24629
|
value: function getMeasurementData(measurementContent) {
|
|
24656
24630
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24687,7 +24661,6 @@ b"+i+"*=d\
|
|
|
24687
24661
|
};
|
|
24688
24662
|
}
|
|
24689
24663
|
}]);
|
|
24690
|
-
return Polyline;
|
|
24691
24664
|
}();
|
|
24692
24665
|
Polyline.graphicType = "POLYLINE";
|
|
24693
24666
|
Polyline.toolType = "Polyline";
|
|
@@ -24696,12 +24669,12 @@ b"+i+"*=d\
|
|
|
24696
24669
|
MeasurementReport$1.registerTool(Polyline);
|
|
24697
24670
|
|
|
24698
24671
|
var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
24699
|
-
_inherits(Polygon, _TID300Measurement);
|
|
24700
24672
|
function Polygon() {
|
|
24701
24673
|
_classCallCheck(this, Polygon);
|
|
24702
24674
|
return _callSuper(this, Polygon, arguments);
|
|
24703
24675
|
}
|
|
24704
|
-
|
|
24676
|
+
_inherits(Polygon, _TID300Measurement);
|
|
24677
|
+
return _createClass(Polygon, [{
|
|
24705
24678
|
key: "contentItem",
|
|
24706
24679
|
value: function contentItem() {
|
|
24707
24680
|
var _this$props = this.props,
|
|
@@ -24755,14 +24728,13 @@ b"+i+"*=d\
|
|
|
24755
24728
|
}]);
|
|
24756
24729
|
}
|
|
24757
24730
|
}]);
|
|
24758
|
-
return Polygon;
|
|
24759
24731
|
}(TID300Measurement);
|
|
24760
24732
|
|
|
24761
24733
|
var Polygon = /*#__PURE__*/function () {
|
|
24762
24734
|
function Polygon() {
|
|
24763
24735
|
_classCallCheck(this, Polygon);
|
|
24764
24736
|
}
|
|
24765
|
-
_createClass(Polygon, null, [{
|
|
24737
|
+
return _createClass(Polygon, null, [{
|
|
24766
24738
|
key: "getMeasurementData",
|
|
24767
24739
|
value: function getMeasurementData(measurementContent) {
|
|
24768
24740
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24799,7 +24771,6 @@ b"+i+"*=d\
|
|
|
24799
24771
|
};
|
|
24800
24772
|
}
|
|
24801
24773
|
}]);
|
|
24802
|
-
return Polygon;
|
|
24803
24774
|
}();
|
|
24804
24775
|
Polygon.graphicType = "POLYGON";
|
|
24805
24776
|
Polygon.toolType = "Polygon";
|
|
@@ -24811,7 +24782,7 @@ b"+i+"*=d\
|
|
|
24811
24782
|
function Point() {
|
|
24812
24783
|
_classCallCheck(this, Point);
|
|
24813
24784
|
}
|
|
24814
|
-
_createClass(Point, null, [{
|
|
24785
|
+
return _createClass(Point, null, [{
|
|
24815
24786
|
key: "getMeasurementData",
|
|
24816
24787
|
value: function getMeasurementData(measurementContent) {
|
|
24817
24788
|
var measurement = measurementContent.map(function (item) {
|
|
@@ -24839,7 +24810,6 @@ b"+i+"*=d\
|
|
|
24839
24810
|
};
|
|
24840
24811
|
}
|
|
24841
24812
|
}]);
|
|
24842
|
-
return Point;
|
|
24843
24813
|
}();
|
|
24844
24814
|
Point.graphicType = "POINT";
|
|
24845
24815
|
Point.toolType = "Point";
|
|
@@ -24851,7 +24821,7 @@ b"+i+"*=d\
|
|
|
24851
24821
|
function Circle() {
|
|
24852
24822
|
_classCallCheck(this, Circle);
|
|
24853
24823
|
}
|
|
24854
|
-
_createClass(Circle, null, [{
|
|
24824
|
+
return _createClass(Circle, null, [{
|
|
24855
24825
|
key: "getMeasurementData",
|
|
24856
24826
|
value: function getMeasurementData(measurementContent) {
|
|
24857
24827
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24888,7 +24858,6 @@ b"+i+"*=d\
|
|
|
24888
24858
|
};
|
|
24889
24859
|
}
|
|
24890
24860
|
}]);
|
|
24891
|
-
return Circle;
|
|
24892
24861
|
}();
|
|
24893
24862
|
Circle.graphicType = "CIRCLE";
|
|
24894
24863
|
Circle.toolType = "Circle";
|
|
@@ -24900,7 +24869,7 @@ b"+i+"*=d\
|
|
|
24900
24869
|
function Ellipse() {
|
|
24901
24870
|
_classCallCheck(this, Ellipse);
|
|
24902
24871
|
}
|
|
24903
|
-
_createClass(Ellipse, null, [{
|
|
24872
|
+
return _createClass(Ellipse, null, [{
|
|
24904
24873
|
key: "getMeasurementData",
|
|
24905
24874
|
value: function getMeasurementData(measurementContent) {
|
|
24906
24875
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24937,7 +24906,6 @@ b"+i+"*=d\
|
|
|
24937
24906
|
};
|
|
24938
24907
|
}
|
|
24939
24908
|
}]);
|
|
24940
|
-
return Ellipse;
|
|
24941
24909
|
}();
|
|
24942
24910
|
Ellipse.graphicType = "ELLIPSE";
|
|
24943
24911
|
Ellipse.toolType = "Ellipse";
|
|
@@ -24967,12 +24935,12 @@ b"+i+"*=d\
|
|
|
24967
24935
|
};
|
|
24968
24936
|
|
|
24969
24937
|
var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
24970
|
-
_inherits(Calibration, _OpenPolyline);
|
|
24971
24938
|
function Calibration() {
|
|
24972
24939
|
_classCallCheck(this, Calibration);
|
|
24973
24940
|
return _callSuper(this, Calibration, arguments);
|
|
24974
24941
|
}
|
|
24975
|
-
|
|
24942
|
+
_inherits(Calibration, _OpenPolyline);
|
|
24943
|
+
return _createClass(Calibration, [{
|
|
24976
24944
|
key: "getPoints",
|
|
24977
24945
|
value: function getPoints() {
|
|
24978
24946
|
var _this$props = this.props,
|
|
@@ -25002,7 +24970,6 @@ b"+i+"*=d\
|
|
|
25002
24970
|
};
|
|
25003
24971
|
}
|
|
25004
24972
|
}]);
|
|
25005
|
-
return Calibration;
|
|
25006
24973
|
}(OpenPolyline);
|
|
25007
24974
|
|
|
25008
24975
|
// To be implemented:
|
|
@@ -25411,7 +25378,7 @@ b"+i+"*=d\
|
|
|
25411
25378
|
this[_schemeDesignator] = options.schemeDesignator;
|
|
25412
25379
|
this[_schemeVersion] = options.schemeVersion || null;
|
|
25413
25380
|
}
|
|
25414
|
-
_createClass(Code, [{
|
|
25381
|
+
return _createClass(Code, [{
|
|
25415
25382
|
key: "value",
|
|
25416
25383
|
get: function get() {
|
|
25417
25384
|
return this[_value];
|
|
@@ -25432,7 +25399,6 @@ b"+i+"*=d\
|
|
|
25432
25399
|
return this[_schemeVersion];
|
|
25433
25400
|
}
|
|
25434
25401
|
}]);
|
|
25435
|
-
return Code;
|
|
25436
25402
|
}();
|
|
25437
25403
|
var CodedConcept = /*#__PURE__*/function () {
|
|
25438
25404
|
function CodedConcept(options) {
|
|
@@ -25453,7 +25419,7 @@ b"+i+"*=d\
|
|
|
25453
25419
|
this.CodingSchemeVersion = options.schemeVersion;
|
|
25454
25420
|
}
|
|
25455
25421
|
}
|
|
25456
|
-
_createClass(CodedConcept, [{
|
|
25422
|
+
return _createClass(CodedConcept, [{
|
|
25457
25423
|
key: "equals",
|
|
25458
25424
|
value: function equals(other) {
|
|
25459
25425
|
if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
|
|
@@ -25485,7 +25451,6 @@ b"+i+"*=d\
|
|
|
25485
25451
|
return this.CodingSchemeVersion;
|
|
25486
25452
|
}
|
|
25487
25453
|
}]);
|
|
25488
|
-
return CodedConcept;
|
|
25489
25454
|
}();
|
|
25490
25455
|
|
|
25491
25456
|
var coding = /*#__PURE__*/Object.freeze({
|
|
@@ -25578,7 +25543,6 @@ b"+i+"*=d\
|
|
|
25578
25543
|
return DA(date) + TM(date);
|
|
25579
25544
|
}
|
|
25580
25545
|
var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
25581
|
-
_inherits(ContentSequence, _Array);
|
|
25582
25546
|
function ContentSequence() {
|
|
25583
25547
|
_classCallCheck(this, ContentSequence);
|
|
25584
25548
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -25589,6 +25553,7 @@ b"+i+"*=d\
|
|
|
25589
25553
|
|
|
25590
25554
|
// filterBy(options) {
|
|
25591
25555
|
// }
|
|
25556
|
+
_inherits(ContentSequence, _Array);
|
|
25592
25557
|
return _createClass(ContentSequence);
|
|
25593
25558
|
}(/*#__PURE__*/_wrapNativeSuper(Array));
|
|
25594
25559
|
var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
@@ -25622,7 +25587,6 @@ b"+i+"*=d\
|
|
|
25622
25587
|
// }
|
|
25623
25588
|
);
|
|
25624
25589
|
var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
25625
|
-
_inherits(CodeContentItem, _ContentItem);
|
|
25626
25590
|
function CodeContentItem(options) {
|
|
25627
25591
|
var _this;
|
|
25628
25592
|
_classCallCheck(this, CodeContentItem);
|
|
@@ -25640,10 +25604,10 @@ b"+i+"*=d\
|
|
|
25640
25604
|
_this.ConceptCodeSequence = addAccessors([options.value]);
|
|
25641
25605
|
return _this;
|
|
25642
25606
|
}
|
|
25607
|
+
_inherits(CodeContentItem, _ContentItem);
|
|
25643
25608
|
return _createClass(CodeContentItem);
|
|
25644
25609
|
}(ContentItem);
|
|
25645
25610
|
var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
25646
|
-
_inherits(TextContentItem, _ContentItem2);
|
|
25647
25611
|
function TextContentItem(options) {
|
|
25648
25612
|
var _this2;
|
|
25649
25613
|
_classCallCheck(this, TextContentItem);
|
|
@@ -25661,10 +25625,10 @@ b"+i+"*=d\
|
|
|
25661
25625
|
_this2.TextValue = options.value;
|
|
25662
25626
|
return _this2;
|
|
25663
25627
|
}
|
|
25628
|
+
_inherits(TextContentItem, _ContentItem2);
|
|
25664
25629
|
return _createClass(TextContentItem);
|
|
25665
25630
|
}(ContentItem);
|
|
25666
25631
|
var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
25667
|
-
_inherits(PNameContentItem, _ContentItem3);
|
|
25668
25632
|
function PNameContentItem(options) {
|
|
25669
25633
|
var _this3;
|
|
25670
25634
|
_classCallCheck(this, PNameContentItem);
|
|
@@ -25682,10 +25646,10 @@ b"+i+"*=d\
|
|
|
25682
25646
|
_this3.PersonName = options.value;
|
|
25683
25647
|
return _this3;
|
|
25684
25648
|
}
|
|
25649
|
+
_inherits(PNameContentItem, _ContentItem3);
|
|
25685
25650
|
return _createClass(PNameContentItem);
|
|
25686
25651
|
}(ContentItem);
|
|
25687
25652
|
var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
25688
|
-
_inherits(TimeContentItem, _ContentItem4);
|
|
25689
25653
|
function TimeContentItem(options) {
|
|
25690
25654
|
var _this4;
|
|
25691
25655
|
_classCallCheck(this, TimeContentItem);
|
|
@@ -25703,10 +25667,10 @@ b"+i+"*=d\
|
|
|
25703
25667
|
_this4.Time = TM(options.value);
|
|
25704
25668
|
return _this4;
|
|
25705
25669
|
}
|
|
25670
|
+
_inherits(TimeContentItem, _ContentItem4);
|
|
25706
25671
|
return _createClass(TimeContentItem);
|
|
25707
25672
|
}(ContentItem);
|
|
25708
25673
|
var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
25709
|
-
_inherits(DateContentItem, _ContentItem5);
|
|
25710
25674
|
function DateContentItem(options) {
|
|
25711
25675
|
var _this5;
|
|
25712
25676
|
_classCallCheck(this, DateContentItem);
|
|
@@ -25724,10 +25688,10 @@ b"+i+"*=d\
|
|
|
25724
25688
|
_this5.Date = DA(options.value);
|
|
25725
25689
|
return _this5;
|
|
25726
25690
|
}
|
|
25691
|
+
_inherits(DateContentItem, _ContentItem5);
|
|
25727
25692
|
return _createClass(DateContentItem);
|
|
25728
25693
|
}(ContentItem);
|
|
25729
25694
|
var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
25730
|
-
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25731
25695
|
function DateTimeContentItem(options) {
|
|
25732
25696
|
var _this6;
|
|
25733
25697
|
_classCallCheck(this, DateTimeContentItem);
|
|
@@ -25745,10 +25709,10 @@ b"+i+"*=d\
|
|
|
25745
25709
|
_this6.DateTime = DT(options.value);
|
|
25746
25710
|
return _this6;
|
|
25747
25711
|
}
|
|
25712
|
+
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25748
25713
|
return _createClass(DateTimeContentItem);
|
|
25749
25714
|
}(ContentItem);
|
|
25750
25715
|
var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
25751
|
-
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25752
25716
|
function UIDRefContentItem(options) {
|
|
25753
25717
|
var _this7;
|
|
25754
25718
|
_classCallCheck(this, UIDRefContentItem);
|
|
@@ -25766,10 +25730,10 @@ b"+i+"*=d\
|
|
|
25766
25730
|
_this7.UID = options.value;
|
|
25767
25731
|
return _this7;
|
|
25768
25732
|
}
|
|
25733
|
+
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25769
25734
|
return _createClass(UIDRefContentItem);
|
|
25770
25735
|
}(ContentItem);
|
|
25771
25736
|
var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
25772
|
-
_inherits(NumContentItem, _ContentItem8);
|
|
25773
25737
|
function NumContentItem(options) {
|
|
25774
25738
|
var _this8;
|
|
25775
25739
|
_classCallCheck(this, NumContentItem);
|
|
@@ -25805,10 +25769,10 @@ b"+i+"*=d\
|
|
|
25805
25769
|
}
|
|
25806
25770
|
return _this8;
|
|
25807
25771
|
}
|
|
25772
|
+
_inherits(NumContentItem, _ContentItem8);
|
|
25808
25773
|
return _createClass(NumContentItem);
|
|
25809
25774
|
}(ContentItem);
|
|
25810
25775
|
var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
25811
|
-
_inherits(ContainerContentItem, _ContentItem9);
|
|
25812
25776
|
function ContainerContentItem(options) {
|
|
25813
25777
|
var _this9;
|
|
25814
25778
|
_classCallCheck(this, ContainerContentItem);
|
|
@@ -25833,10 +25797,10 @@ b"+i+"*=d\
|
|
|
25833
25797
|
}
|
|
25834
25798
|
return _this9;
|
|
25835
25799
|
}
|
|
25800
|
+
_inherits(ContainerContentItem, _ContentItem9);
|
|
25836
25801
|
return _createClass(ContainerContentItem);
|
|
25837
25802
|
}(ContentItem);
|
|
25838
25803
|
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
25839
|
-
_inherits(CompositeContentItem, _ContentItem0);
|
|
25840
25804
|
function CompositeContentItem(options) {
|
|
25841
25805
|
var _this0;
|
|
25842
25806
|
_classCallCheck(this, CompositeContentItem);
|
|
@@ -25863,10 +25827,10 @@ b"+i+"*=d\
|
|
|
25863
25827
|
_this0.ReferenceSOPSequence = [item];
|
|
25864
25828
|
return _this0;
|
|
25865
25829
|
}
|
|
25830
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
25866
25831
|
return _createClass(CompositeContentItem);
|
|
25867
25832
|
}(ContentItem);
|
|
25868
25833
|
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
25869
|
-
_inherits(ImageContentItem, _ContentItem1);
|
|
25870
25834
|
function ImageContentItem(options) {
|
|
25871
25835
|
var _this1;
|
|
25872
25836
|
_classCallCheck(this, ImageContentItem);
|
|
@@ -25907,10 +25871,10 @@ b"+i+"*=d\
|
|
|
25907
25871
|
_this1.ReferencedSOPSequence = [item];
|
|
25908
25872
|
return _this1;
|
|
25909
25873
|
}
|
|
25874
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
25910
25875
|
return _createClass(ImageContentItem);
|
|
25911
25876
|
}(ContentItem);
|
|
25912
25877
|
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
25913
|
-
_inherits(ScoordContentItem, _ContentItem10);
|
|
25914
25878
|
function ScoordContentItem(options) {
|
|
25915
25879
|
var _this10;
|
|
25916
25880
|
_classCallCheck(this, ScoordContentItem);
|
|
@@ -25954,10 +25918,10 @@ b"+i+"*=d\
|
|
|
25954
25918
|
}
|
|
25955
25919
|
return _this10;
|
|
25956
25920
|
}
|
|
25921
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
25957
25922
|
return _createClass(ScoordContentItem);
|
|
25958
25923
|
}(ContentItem);
|
|
25959
25924
|
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
25960
|
-
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25961
25925
|
function Scoord3DContentItem(options) {
|
|
25962
25926
|
var _this11;
|
|
25963
25927
|
_classCallCheck(this, Scoord3DContentItem);
|
|
@@ -26001,10 +25965,10 @@ b"+i+"*=d\
|
|
|
26001
25965
|
}
|
|
26002
25966
|
return _this11;
|
|
26003
25967
|
}
|
|
25968
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
26004
25969
|
return _createClass(Scoord3DContentItem);
|
|
26005
25970
|
}(ContentItem);
|
|
26006
25971
|
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
26007
|
-
_inherits(TcoordContentItem, _ContentItem12);
|
|
26008
25972
|
function TcoordContentItem(options) {
|
|
26009
25973
|
var _this12;
|
|
26010
25974
|
_classCallCheck(this, TcoordContentItem);
|
|
@@ -26041,6 +26005,7 @@ b"+i+"*=d\
|
|
|
26041
26005
|
}
|
|
26042
26006
|
return _this12;
|
|
26043
26007
|
}
|
|
26008
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
26044
26009
|
return _createClass(TcoordContentItem);
|
|
26045
26010
|
}(ContentItem);
|
|
26046
26011
|
|
|
@@ -26070,7 +26035,6 @@ b"+i+"*=d\
|
|
|
26070
26035
|
});
|
|
26071
26036
|
|
|
26072
26037
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
26073
|
-
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26074
26038
|
function LongitudinalTemporalOffsetFromEvent(options) {
|
|
26075
26039
|
var _this;
|
|
26076
26040
|
_classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
|
|
@@ -26097,10 +26061,10 @@ b"+i+"*=d\
|
|
|
26097
26061
|
_this.ContentSequence.push(item);
|
|
26098
26062
|
return _this;
|
|
26099
26063
|
}
|
|
26064
|
+
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26100
26065
|
return _createClass(LongitudinalTemporalOffsetFromEvent);
|
|
26101
26066
|
}(NumContentItem);
|
|
26102
26067
|
var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
26103
|
-
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26104
26068
|
function SourceImageForRegion(options) {
|
|
26105
26069
|
_classCallCheck(this, SourceImageForRegion);
|
|
26106
26070
|
return _callSuper(this, SourceImageForRegion, [{
|
|
@@ -26115,10 +26079,10 @@ b"+i+"*=d\
|
|
|
26115
26079
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26116
26080
|
}]);
|
|
26117
26081
|
}
|
|
26082
|
+
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26118
26083
|
return _createClass(SourceImageForRegion);
|
|
26119
26084
|
}(ImageContentItem);
|
|
26120
26085
|
var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
26121
|
-
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26122
26086
|
function SourceImageForSegmentation(options) {
|
|
26123
26087
|
_classCallCheck(this, SourceImageForSegmentation);
|
|
26124
26088
|
return _callSuper(this, SourceImageForSegmentation, [{
|
|
@@ -26133,10 +26097,10 @@ b"+i+"*=d\
|
|
|
26133
26097
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26134
26098
|
}]);
|
|
26135
26099
|
}
|
|
26100
|
+
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26136
26101
|
return _createClass(SourceImageForSegmentation);
|
|
26137
26102
|
}(ImageContentItem);
|
|
26138
26103
|
var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
26139
|
-
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26140
26104
|
function SourceSeriesForSegmentation(options) {
|
|
26141
26105
|
_classCallCheck(this, SourceSeriesForSegmentation);
|
|
26142
26106
|
return _callSuper(this, SourceSeriesForSegmentation, [{
|
|
@@ -26149,10 +26113,10 @@ b"+i+"*=d\
|
|
|
26149
26113
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26150
26114
|
}]);
|
|
26151
26115
|
}
|
|
26116
|
+
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26152
26117
|
return _createClass(SourceSeriesForSegmentation);
|
|
26153
26118
|
}(UIDRefContentItem);
|
|
26154
26119
|
var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
26155
|
-
_inherits(ImageRegion, _ScoordContentItem);
|
|
26156
26120
|
function ImageRegion(options) {
|
|
26157
26121
|
var _this2;
|
|
26158
26122
|
_classCallCheck(this, ImageRegion);
|
|
@@ -26180,10 +26144,10 @@ b"+i+"*=d\
|
|
|
26180
26144
|
_this2.ContentSequence.push(options.sourceImage);
|
|
26181
26145
|
return _this2;
|
|
26182
26146
|
}
|
|
26147
|
+
_inherits(ImageRegion, _ScoordContentItem);
|
|
26183
26148
|
return _createClass(ImageRegion);
|
|
26184
26149
|
}(ScoordContentItem);
|
|
26185
26150
|
var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
26186
|
-
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26187
26151
|
function ImageRegion3D(options) {
|
|
26188
26152
|
var _this3;
|
|
26189
26153
|
_classCallCheck(this, ImageRegion3D);
|
|
@@ -26206,10 +26170,10 @@ b"+i+"*=d\
|
|
|
26206
26170
|
}
|
|
26207
26171
|
return _this3;
|
|
26208
26172
|
}
|
|
26173
|
+
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26209
26174
|
return _createClass(ImageRegion3D);
|
|
26210
26175
|
}(Scoord3DContentItem);
|
|
26211
26176
|
var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
26212
|
-
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26213
26177
|
function VolumeSurface(options) {
|
|
26214
26178
|
var _this4;
|
|
26215
26179
|
_classCallCheck(this, VolumeSurface);
|
|
@@ -26245,10 +26209,10 @@ b"+i+"*=d\
|
|
|
26245
26209
|
}
|
|
26246
26210
|
return _this4;
|
|
26247
26211
|
}
|
|
26212
|
+
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26248
26213
|
return _createClass(VolumeSurface);
|
|
26249
26214
|
}(Scoord3DContentItem);
|
|
26250
26215
|
var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
|
|
26251
|
-
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26252
26216
|
function ReferencedRealWorldValueMap(options) {
|
|
26253
26217
|
_classCallCheck(this, ReferencedRealWorldValueMap);
|
|
26254
26218
|
return _callSuper(this, ReferencedRealWorldValueMap, [{
|
|
@@ -26262,10 +26226,10 @@ b"+i+"*=d\
|
|
|
26262
26226
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26263
26227
|
}]);
|
|
26264
26228
|
}
|
|
26229
|
+
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26265
26230
|
return _createClass(ReferencedRealWorldValueMap);
|
|
26266
26231
|
}(CompositeContentItem);
|
|
26267
26232
|
var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
26268
|
-
_inherits(FindingSite, _CodeContentItem);
|
|
26269
26233
|
function FindingSite(options) {
|
|
26270
26234
|
var _this5;
|
|
26271
26235
|
_classCallCheck(this, FindingSite);
|
|
@@ -26305,10 +26269,10 @@ b"+i+"*=d\
|
|
|
26305
26269
|
}
|
|
26306
26270
|
return _this5;
|
|
26307
26271
|
}
|
|
26272
|
+
_inherits(FindingSite, _CodeContentItem);
|
|
26308
26273
|
return _createClass(FindingSite);
|
|
26309
26274
|
}(CodeContentItem);
|
|
26310
26275
|
var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
26311
|
-
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26312
26276
|
function ReferencedSegmentationFrame(options) {
|
|
26313
26277
|
var _this6;
|
|
26314
26278
|
_classCallCheck(this, ReferencedSegmentationFrame);
|
|
@@ -26346,10 +26310,10 @@ b"+i+"*=d\
|
|
|
26346
26310
|
_this6.push(options.sourceImage);
|
|
26347
26311
|
return _this6;
|
|
26348
26312
|
}
|
|
26313
|
+
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26349
26314
|
return _createClass(ReferencedSegmentationFrame);
|
|
26350
26315
|
}(ContentSequence);
|
|
26351
26316
|
var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
26352
|
-
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26353
26317
|
function ReferencedSegmentation(options) {
|
|
26354
26318
|
var _this7;
|
|
26355
26319
|
_classCallCheck(this, ReferencedSegmentation);
|
|
@@ -26395,6 +26359,7 @@ b"+i+"*=d\
|
|
|
26395
26359
|
}
|
|
26396
26360
|
return _this7;
|
|
26397
26361
|
}
|
|
26362
|
+
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26398
26363
|
return _createClass(ReferencedSegmentation);
|
|
26399
26364
|
}(ContentSequence);
|
|
26400
26365
|
|
|
@@ -26414,7 +26379,6 @@ b"+i+"*=d\
|
|
|
26414
26379
|
});
|
|
26415
26380
|
|
|
26416
26381
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
26417
|
-
_inherits(Template, _ContentSequence);
|
|
26418
26382
|
function Template() {
|
|
26419
26383
|
_classCallCheck(this, Template);
|
|
26420
26384
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26422,10 +26386,10 @@ b"+i+"*=d\
|
|
|
26422
26386
|
}
|
|
26423
26387
|
return _callSuper(this, Template, [].concat(args));
|
|
26424
26388
|
}
|
|
26389
|
+
_inherits(Template, _ContentSequence);
|
|
26425
26390
|
return _createClass(Template);
|
|
26426
26391
|
}(ContentSequence);
|
|
26427
26392
|
var Measurement = /*#__PURE__*/function (_Template) {
|
|
26428
|
-
_inherits(Measurement, _Template);
|
|
26429
26393
|
function Measurement(options) {
|
|
26430
26394
|
var _valueItem$ContentSeq;
|
|
26431
26395
|
var _this;
|
|
@@ -26525,10 +26489,10 @@ b"+i+"*=d\
|
|
|
26525
26489
|
_this.push(valueItem);
|
|
26526
26490
|
return _this;
|
|
26527
26491
|
}
|
|
26492
|
+
_inherits(Measurement, _Template);
|
|
26528
26493
|
return _createClass(Measurement);
|
|
26529
26494
|
}(Template);
|
|
26530
26495
|
var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
26531
|
-
_inherits(MeasurementProperties, _Template2);
|
|
26532
26496
|
function MeasurementProperties(options) {
|
|
26533
26497
|
var _this2;
|
|
26534
26498
|
_classCallCheck(this, MeasurementProperties);
|
|
@@ -26609,10 +26573,10 @@ b"+i+"*=d\
|
|
|
26609
26573
|
}
|
|
26610
26574
|
return _this2;
|
|
26611
26575
|
}
|
|
26576
|
+
_inherits(MeasurementProperties, _Template2);
|
|
26612
26577
|
return _createClass(MeasurementProperties);
|
|
26613
26578
|
}(Template);
|
|
26614
26579
|
var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
26615
|
-
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26616
26580
|
function MeasurementStatisticalProperties(options) {
|
|
26617
26581
|
var _this5;
|
|
26618
26582
|
_classCallCheck(this, MeasurementStatisticalProperties);
|
|
@@ -26655,10 +26619,10 @@ b"+i+"*=d\
|
|
|
26655
26619
|
}
|
|
26656
26620
|
return _this5;
|
|
26657
26621
|
}
|
|
26622
|
+
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26658
26623
|
return _createClass(MeasurementStatisticalProperties);
|
|
26659
26624
|
}(Template);
|
|
26660
26625
|
var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
26661
|
-
_inherits(NormalRangeProperties, _Template4);
|
|
26662
26626
|
function NormalRangeProperties(options) {
|
|
26663
26627
|
var _this6;
|
|
26664
26628
|
_classCallCheck(this, NormalRangeProperties);
|
|
@@ -26701,10 +26665,10 @@ b"+i+"*=d\
|
|
|
26701
26665
|
}
|
|
26702
26666
|
return _this6;
|
|
26703
26667
|
}
|
|
26668
|
+
_inherits(NormalRangeProperties, _Template4);
|
|
26704
26669
|
return _createClass(NormalRangeProperties);
|
|
26705
26670
|
}(Template);
|
|
26706
26671
|
var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
26707
|
-
_inherits(ObservationContext, _Template5);
|
|
26708
26672
|
function ObservationContext(options) {
|
|
26709
26673
|
var _this8;
|
|
26710
26674
|
var _this7;
|
|
@@ -26733,10 +26697,10 @@ b"+i+"*=d\
|
|
|
26733
26697
|
}
|
|
26734
26698
|
return _this7;
|
|
26735
26699
|
}
|
|
26700
|
+
_inherits(ObservationContext, _Template5);
|
|
26736
26701
|
return _createClass(ObservationContext);
|
|
26737
26702
|
}(Template);
|
|
26738
26703
|
var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
26739
|
-
_inherits(ObserverContext, _Template6);
|
|
26740
26704
|
function ObserverContext(options) {
|
|
26741
26705
|
var _this10;
|
|
26742
26706
|
var _this1;
|
|
@@ -26787,10 +26751,10 @@ b"+i+"*=d\
|
|
|
26787
26751
|
(_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
|
|
26788
26752
|
return _this1;
|
|
26789
26753
|
}
|
|
26754
|
+
_inherits(ObserverContext, _Template6);
|
|
26790
26755
|
return _createClass(ObserverContext);
|
|
26791
26756
|
}(Template);
|
|
26792
26757
|
var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
26793
|
-
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26794
26758
|
function PersonObserverIdentifyingAttributes(options) {
|
|
26795
26759
|
var _this11;
|
|
26796
26760
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
@@ -26858,10 +26822,10 @@ b"+i+"*=d\
|
|
|
26858
26822
|
}
|
|
26859
26823
|
return _this11;
|
|
26860
26824
|
}
|
|
26825
|
+
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26861
26826
|
return _createClass(PersonObserverIdentifyingAttributes);
|
|
26862
26827
|
}(Template);
|
|
26863
26828
|
var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
26864
|
-
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26865
26829
|
function DeviceObserverIdentifyingAttributes(options) {
|
|
26866
26830
|
var _this12;
|
|
26867
26831
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
@@ -26941,10 +26905,10 @@ b"+i+"*=d\
|
|
|
26941
26905
|
}
|
|
26942
26906
|
return _this12;
|
|
26943
26907
|
}
|
|
26908
|
+
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26944
26909
|
return _createClass(DeviceObserverIdentifyingAttributes);
|
|
26945
26910
|
}(Template);
|
|
26946
26911
|
var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
26947
|
-
_inherits(SubjectContext, _Template9);
|
|
26948
26912
|
function SubjectContext(options) {
|
|
26949
26913
|
var _this14;
|
|
26950
26914
|
var _this13;
|
|
@@ -26999,10 +26963,10 @@ b"+i+"*=d\
|
|
|
26999
26963
|
(_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
|
|
27000
26964
|
return _this13;
|
|
27001
26965
|
}
|
|
26966
|
+
_inherits(SubjectContext, _Template9);
|
|
27002
26967
|
return _createClass(SubjectContext);
|
|
27003
26968
|
}(Template);
|
|
27004
26969
|
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
27005
|
-
_inherits(SubjectContextFetus, _Template0);
|
|
27006
26970
|
function SubjectContextFetus(options) {
|
|
27007
26971
|
var _this15;
|
|
27008
26972
|
_classCallCheck(this, SubjectContextFetus);
|
|
@@ -27022,10 +26986,10 @@ b"+i+"*=d\
|
|
|
27022
26986
|
_this15.push(subjectIdItem);
|
|
27023
26987
|
return _this15;
|
|
27024
26988
|
}
|
|
26989
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
27025
26990
|
return _createClass(SubjectContextFetus);
|
|
27026
26991
|
}(Template);
|
|
27027
26992
|
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
27028
|
-
_inherits(SubjectContextSpecimen, _Template1);
|
|
27029
26993
|
function SubjectContextSpecimen(options) {
|
|
27030
26994
|
var _this16;
|
|
27031
26995
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
@@ -27081,10 +27045,10 @@ b"+i+"*=d\
|
|
|
27081
27045
|
}
|
|
27082
27046
|
return _this16;
|
|
27083
27047
|
}
|
|
27048
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
27084
27049
|
return _createClass(SubjectContextSpecimen);
|
|
27085
27050
|
}(Template);
|
|
27086
27051
|
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
27087
|
-
_inherits(SubjectContextDevice, _Template10);
|
|
27088
27052
|
function SubjectContextDevice(options) {
|
|
27089
27053
|
var _this17;
|
|
27090
27054
|
_classCallCheck(this, SubjectContextDevice);
|
|
@@ -27164,10 +27128,10 @@ b"+i+"*=d\
|
|
|
27164
27128
|
}
|
|
27165
27129
|
return _this17;
|
|
27166
27130
|
}
|
|
27131
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
27167
27132
|
return _createClass(SubjectContextDevice);
|
|
27168
27133
|
}(Template);
|
|
27169
27134
|
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
27170
|
-
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27171
27135
|
function LanguageOfContentItemAndDescendants(options) {
|
|
27172
27136
|
var _this18;
|
|
27173
27137
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
@@ -27191,10 +27155,10 @@ b"+i+"*=d\
|
|
|
27191
27155
|
_this18.push(languageItem);
|
|
27192
27156
|
return _this18;
|
|
27193
27157
|
}
|
|
27158
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27194
27159
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
27195
27160
|
}(Template);
|
|
27196
27161
|
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
27197
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27198
27162
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
27199
27163
|
var _groupItem$ContentSeq;
|
|
27200
27164
|
var _this19;
|
|
@@ -27284,10 +27248,10 @@ b"+i+"*=d\
|
|
|
27284
27248
|
_this19.push(groupItem);
|
|
27285
27249
|
return _this19;
|
|
27286
27250
|
}
|
|
27251
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27287
27252
|
return _createClass(_MeasurementsAndQualitatitiveEvaluations);
|
|
27288
27253
|
}(Template);
|
|
27289
27254
|
var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
|
|
27290
|
-
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27291
27255
|
function _ROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27292
27256
|
var _this20;
|
|
27293
27257
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
@@ -27336,10 +27300,10 @@ b"+i+"*=d\
|
|
|
27336
27300
|
_this20[0] = groupItem;
|
|
27337
27301
|
return _this20;
|
|
27338
27302
|
}
|
|
27303
|
+
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27339
27304
|
return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27340
27305
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27341
27306
|
var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
|
|
27342
|
-
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27343
27307
|
function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27344
27308
|
_classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27345
27309
|
var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
|
|
@@ -27363,10 +27327,10 @@ b"+i+"*=d\
|
|
|
27363
27327
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27364
27328
|
}]);
|
|
27365
27329
|
}
|
|
27330
|
+
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27366
27331
|
return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27367
27332
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27368
27333
|
var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
|
|
27369
|
-
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27370
27334
|
function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27371
27335
|
_classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27372
27336
|
return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
|
|
@@ -27381,10 +27345,10 @@ b"+i+"*=d\
|
|
|
27381
27345
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27382
27346
|
}]);
|
|
27383
27347
|
}
|
|
27348
|
+
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27384
27349
|
return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27385
27350
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27386
27351
|
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
27387
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27388
27352
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
27389
27353
|
var _this21;
|
|
27390
27354
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
@@ -27421,10 +27385,10 @@ b"+i+"*=d\
|
|
|
27421
27385
|
_this21.push(valueItem);
|
|
27422
27386
|
return _this21;
|
|
27423
27387
|
}
|
|
27388
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27424
27389
|
return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
|
|
27425
27390
|
}(Template);
|
|
27426
27391
|
var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
|
|
27427
|
-
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27428
27392
|
function MeasurementAndQualitativeEvaluationGroup(options) {
|
|
27429
27393
|
_classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
|
|
27430
27394
|
return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
|
|
@@ -27437,10 +27401,10 @@ b"+i+"*=d\
|
|
|
27437
27401
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27438
27402
|
}]);
|
|
27439
27403
|
}
|
|
27404
|
+
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27440
27405
|
return _createClass(MeasurementAndQualitativeEvaluationGroup);
|
|
27441
27406
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27442
27407
|
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
27443
|
-
_inherits(ROIMeasurements, _Template14);
|
|
27444
27408
|
function ROIMeasurements(options) {
|
|
27445
27409
|
var _this22;
|
|
27446
27410
|
_classCallCheck(this, ROIMeasurements);
|
|
@@ -27485,10 +27449,10 @@ b"+i+"*=d\
|
|
|
27485
27449
|
});
|
|
27486
27450
|
return _this22;
|
|
27487
27451
|
}
|
|
27452
|
+
_inherits(ROIMeasurements, _Template14);
|
|
27488
27453
|
return _createClass(ROIMeasurements);
|
|
27489
27454
|
}(Template);
|
|
27490
27455
|
var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
27491
|
-
_inherits(MeasurementReport, _Template15);
|
|
27492
27456
|
function MeasurementReport(options) {
|
|
27493
27457
|
var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
|
|
27494
27458
|
var _this23;
|
|
@@ -27581,10 +27545,10 @@ b"+i+"*=d\
|
|
|
27581
27545
|
_this23.push(item);
|
|
27582
27546
|
return _this23;
|
|
27583
27547
|
}
|
|
27548
|
+
_inherits(MeasurementReport, _Template15);
|
|
27584
27549
|
return _createClass(MeasurementReport);
|
|
27585
27550
|
}(Template);
|
|
27586
27551
|
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
27587
|
-
_inherits(TimePointContext, _Template16);
|
|
27588
27552
|
function TimePointContext(options) {
|
|
27589
27553
|
var _this24;
|
|
27590
27554
|
_classCallCheck(this, TimePointContext);
|
|
@@ -27665,10 +27629,10 @@ b"+i+"*=d\
|
|
|
27665
27629
|
}
|
|
27666
27630
|
return _this24;
|
|
27667
27631
|
}
|
|
27632
|
+
_inherits(TimePointContext, _Template16);
|
|
27668
27633
|
return _createClass(TimePointContext);
|
|
27669
27634
|
}(Template);
|
|
27670
27635
|
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
27671
|
-
_inherits(ImageLibrary, _Template17);
|
|
27672
27636
|
function ImageLibrary() {
|
|
27673
27637
|
var _this25;
|
|
27674
27638
|
_classCallCheck(this, ImageLibrary);
|
|
@@ -27684,10 +27648,10 @@ b"+i+"*=d\
|
|
|
27684
27648
|
_this25.push(libraryItem);
|
|
27685
27649
|
return _this25;
|
|
27686
27650
|
}
|
|
27651
|
+
_inherits(ImageLibrary, _Template17);
|
|
27687
27652
|
return _createClass(ImageLibrary);
|
|
27688
27653
|
}(Template);
|
|
27689
27654
|
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
27690
|
-
_inherits(AlgorithmIdentification, _Template18);
|
|
27691
27655
|
function AlgorithmIdentification(options) {
|
|
27692
27656
|
var _this26;
|
|
27693
27657
|
_classCallCheck(this, AlgorithmIdentification);
|
|
@@ -27737,10 +27701,10 @@ b"+i+"*=d\
|
|
|
27737
27701
|
}
|
|
27738
27702
|
return _this26;
|
|
27739
27703
|
}
|
|
27704
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
27740
27705
|
return _createClass(AlgorithmIdentification);
|
|
27741
27706
|
}(Template);
|
|
27742
27707
|
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
27743
|
-
_inherits(TrackingIdentifier, _Template19);
|
|
27744
27708
|
function TrackingIdentifier(options) {
|
|
27745
27709
|
var _this27;
|
|
27746
27710
|
_classCallCheck(this, TrackingIdentifier);
|
|
@@ -27772,6 +27736,7 @@ b"+i+"*=d\
|
|
|
27772
27736
|
_this27.push(trackingUIDItem);
|
|
27773
27737
|
return _this27;
|
|
27774
27738
|
}
|
|
27739
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
27775
27740
|
return _createClass(TrackingIdentifier);
|
|
27776
27741
|
}(Template);
|
|
27777
27742
|
|