dcmjs 0.50.2 → 0.50.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 +10 -2
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +10 -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
|
@@ -14863,7 +14863,7 @@
|
|
|
14863
14863
|
}
|
|
14864
14864
|
}
|
|
14865
14865
|
if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
|
|
14866
|
-
_context11.next =
|
|
14866
|
+
_context11.next = 22;
|
|
14867
14867
|
break;
|
|
14868
14868
|
}
|
|
14869
14869
|
if (!(values.length > 0)) {
|
|
@@ -14891,11 +14891,19 @@
|
|
|
14891
14891
|
case 20:
|
|
14892
14892
|
throw Error("Unsupported character set: ".concat(coding));
|
|
14893
14893
|
case 21:
|
|
14894
|
+
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14895
|
+
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14896
|
+
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
14897
|
+
//
|
|
14898
|
+
// TODO: the original charset value should also be preserved:
|
|
14899
|
+
// it is needed for bulk data decoding.
|
|
14900
|
+
values = ["ISO_IR 192"];
|
|
14901
|
+
case 22:
|
|
14894
14902
|
values.forEach(function (value) {
|
|
14895
14903
|
return listener.value(value);
|
|
14896
14904
|
});
|
|
14897
14905
|
return _context11.abrupt("return", values);
|
|
14898
|
-
case
|
|
14906
|
+
case 24:
|
|
14899
14907
|
case "end":
|
|
14900
14908
|
return _context11.stop();
|
|
14901
14909
|
}
|