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.es.js
CHANGED
|
@@ -9691,8 +9691,8 @@ function toWindows(inputArray, size) {
|
|
|
9691
9691
|
}
|
|
9692
9692
|
var DicomMessage$3, Tag$1, DicomMetaDictionary$1;
|
|
9693
9693
|
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT", "UV"],
|
|
9694
|
-
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9695
|
-
singleVRs$1 = ["SQ", "OF", "OW", "OB", "UN"];
|
|
9694
|
+
length32VRs = ["OB", "OW", "OF", "OL", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9695
|
+
singleVRs$1 = ["SQ", "OF", "OL", "OW", "OB", "UN"];
|
|
9696
9696
|
var ValueRepresentation = /*#__PURE__*/function () {
|
|
9697
9697
|
function ValueRepresentation(type) {
|
|
9698
9698
|
_classCallCheck(this, ValueRepresentation);
|
|
@@ -11272,6 +11272,22 @@ var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
|
|
|
11272
11272
|
}
|
|
11273
11273
|
_inherits(OtherFloatString, _BinaryRepresentation6);
|
|
11274
11274
|
return _createClass(OtherFloatString);
|
|
11275
|
+
}(BinaryRepresentation); // A stream of 32 bit words. Used by the large mesh attributes of Surface
|
|
11276
|
+
// Segmentation - Long Triangle Point Index List (0066,0041) and its Edge and
|
|
11277
|
+
// Vertex counterparts - where the 16 bit indices of the OW forms cap a surface
|
|
11278
|
+
// at 65535 points.
|
|
11279
|
+
var OtherLongString = /*#__PURE__*/function (_BinaryRepresentation7) {
|
|
11280
|
+
function OtherLongString() {
|
|
11281
|
+
var _this34;
|
|
11282
|
+
_classCallCheck(this, OtherLongString);
|
|
11283
|
+
_this34 = _callSuper(this, OtherLongString, ["OL"]);
|
|
11284
|
+
_this34.maxLength = null;
|
|
11285
|
+
_this34.padByte = PADDING_NULL;
|
|
11286
|
+
_this34.noMultiple = true;
|
|
11287
|
+
return _this34;
|
|
11288
|
+
}
|
|
11289
|
+
_inherits(OtherLongString, _BinaryRepresentation7);
|
|
11290
|
+
return _createClass(OtherLongString);
|
|
11275
11291
|
}(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
|
|
11276
11292
|
var VRinstances = {
|
|
11277
11293
|
AE: new ApplicationEntity(),
|
|
@@ -11289,6 +11305,7 @@ var VRinstances = {
|
|
|
11289
11305
|
OB: new OtherByteString(),
|
|
11290
11306
|
OD: new OtherDoubleString(),
|
|
11291
11307
|
OF: new OtherFloatString(),
|
|
11308
|
+
OL: new OtherLongString(),
|
|
11292
11309
|
OW: new OtherWordString(),
|
|
11293
11310
|
PN: new PersonName(),
|
|
11294
11311
|
SH: new ShortString(),
|
|
@@ -12414,6 +12431,12 @@ var DicomMetaDictionary = /*#__PURE__*/function () {
|
|
|
12414
12431
|
}
|
|
12415
12432
|
}
|
|
12416
12433
|
var _vr = ValueRepresentation.createByTypeString(dataItem.vr);
|
|
12434
|
+
if (dataItem.vr === "DS" && Array.isArray(dataItem.Value)) {
|
|
12435
|
+
// Format numbers to fit 16 characters instead of truncating String(number) below
|
|
12436
|
+
dataItem.Value = dataItem.Value.map(function (value) {
|
|
12437
|
+
return typeof value === "number" ? _vr.convertToString(value) : value;
|
|
12438
|
+
});
|
|
12439
|
+
}
|
|
12417
12440
|
dataItem.Value = DicomMetaDictionary.denaturalizeValue(dataItem.Value);
|
|
12418
12441
|
if (entry.vr == "SQ") {
|
|
12419
12442
|
var unnaturalValues = [];
|