dcmjs 0.52.2 → 0.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dcmjs.es.js +25 -2
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +25 -2
- 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 +1 -1
package/build/dcmjs.js
CHANGED
|
@@ -9697,8 +9697,8 @@
|
|
|
9697
9697
|
}
|
|
9698
9698
|
var DicomMessage$3, Tag$1, DicomMetaDictionary$1;
|
|
9699
9699
|
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT", "UV"],
|
|
9700
|
-
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9701
|
-
singleVRs$1 = ["SQ", "OF", "OW", "OB", "UN"];
|
|
9700
|
+
length32VRs = ["OB", "OW", "OF", "OL", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9701
|
+
singleVRs$1 = ["SQ", "OF", "OL", "OW", "OB", "UN"];
|
|
9702
9702
|
var ValueRepresentation = /*#__PURE__*/function () {
|
|
9703
9703
|
function ValueRepresentation(type) {
|
|
9704
9704
|
_classCallCheck(this, ValueRepresentation);
|
|
@@ -11278,6 +11278,22 @@
|
|
|
11278
11278
|
}
|
|
11279
11279
|
_inherits(OtherFloatString, _BinaryRepresentation6);
|
|
11280
11280
|
return _createClass(OtherFloatString);
|
|
11281
|
+
}(BinaryRepresentation); // A stream of 32 bit words. Used by the large mesh attributes of Surface
|
|
11282
|
+
// Segmentation - Long Triangle Point Index List (0066,0041) and its Edge and
|
|
11283
|
+
// Vertex counterparts - where the 16 bit indices of the OW forms cap a surface
|
|
11284
|
+
// at 65535 points.
|
|
11285
|
+
var OtherLongString = /*#__PURE__*/function (_BinaryRepresentation7) {
|
|
11286
|
+
function OtherLongString() {
|
|
11287
|
+
var _this34;
|
|
11288
|
+
_classCallCheck(this, OtherLongString);
|
|
11289
|
+
_this34 = _callSuper(this, OtherLongString, ["OL"]);
|
|
11290
|
+
_this34.maxLength = null;
|
|
11291
|
+
_this34.padByte = PADDING_NULL;
|
|
11292
|
+
_this34.noMultiple = true;
|
|
11293
|
+
return _this34;
|
|
11294
|
+
}
|
|
11295
|
+
_inherits(OtherLongString, _BinaryRepresentation7);
|
|
11296
|
+
return _createClass(OtherLongString);
|
|
11281
11297
|
}(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
|
|
11282
11298
|
var VRinstances = {
|
|
11283
11299
|
AE: new ApplicationEntity(),
|
|
@@ -11295,6 +11311,7 @@
|
|
|
11295
11311
|
OB: new OtherByteString(),
|
|
11296
11312
|
OD: new OtherDoubleString(),
|
|
11297
11313
|
OF: new OtherFloatString(),
|
|
11314
|
+
OL: new OtherLongString(),
|
|
11298
11315
|
OW: new OtherWordString(),
|
|
11299
11316
|
PN: new PersonName(),
|
|
11300
11317
|
SH: new ShortString(),
|
|
@@ -12420,6 +12437,12 @@
|
|
|
12420
12437
|
}
|
|
12421
12438
|
}
|
|
12422
12439
|
var _vr = ValueRepresentation.createByTypeString(dataItem.vr);
|
|
12440
|
+
if (dataItem.vr === "DS" && Array.isArray(dataItem.Value)) {
|
|
12441
|
+
// Format numbers to fit 16 characters instead of truncating String(number) below
|
|
12442
|
+
dataItem.Value = dataItem.Value.map(function (value) {
|
|
12443
|
+
return typeof value === "number" ? _vr.convertToString(value) : value;
|
|
12444
|
+
});
|
|
12445
|
+
}
|
|
12423
12446
|
dataItem.Value = DicomMetaDictionary.denaturalizeValue(dataItem.Value);
|
|
12424
12447
|
if (entry.vr == "SQ") {
|
|
12425
12448
|
var unnaturalValues = [];
|