@dcmjs-org/dcmjs 1.0.0-beta.7 → 1.0.0-beta.8
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.js +22 -0
- 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 +7 -7
package/build/dcmjs.js
CHANGED
|
@@ -9760,6 +9760,11 @@
|
|
|
9760
9760
|
value: function isBinary() {
|
|
9761
9761
|
return this._isBinary;
|
|
9762
9762
|
}
|
|
9763
|
+
}, {
|
|
9764
|
+
key: "isString",
|
|
9765
|
+
value: function isString() {
|
|
9766
|
+
return false;
|
|
9767
|
+
}
|
|
9763
9768
|
}, {
|
|
9764
9769
|
key: "allowMultiple",
|
|
9765
9770
|
value: function allowMultiple() {
|
|
@@ -9859,6 +9864,13 @@
|
|
|
9859
9864
|
var readOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
|
|
9860
9865
|
forceStoreRaw: false
|
|
9861
9866
|
};
|
|
9867
|
+
// a zero-length string element has no value, not one empty value
|
|
9868
|
+
if (length === 0 && this.isString()) {
|
|
9869
|
+
return {
|
|
9870
|
+
rawValue: [],
|
|
9871
|
+
value: []
|
|
9872
|
+
};
|
|
9873
|
+
}
|
|
9862
9874
|
if (this.fixed && this.maxLength) {
|
|
9863
9875
|
if (!length) return {
|
|
9864
9876
|
rawValue: this.defaultValue,
|
|
@@ -10085,6 +10097,11 @@
|
|
|
10085
10097
|
}
|
|
10086
10098
|
_inherits(AsciiStringRepresentation, _ValueRepresentation);
|
|
10087
10099
|
return _createClass(AsciiStringRepresentation, [{
|
|
10100
|
+
key: "isString",
|
|
10101
|
+
value: function isString() {
|
|
10102
|
+
return true;
|
|
10103
|
+
}
|
|
10104
|
+
}, {
|
|
10088
10105
|
key: "readBytes",
|
|
10089
10106
|
value: function readBytes(stream, length) {
|
|
10090
10107
|
return stream.readAsciiString(length);
|
|
@@ -10104,6 +10121,11 @@
|
|
|
10104
10121
|
}
|
|
10105
10122
|
_inherits(EncodedStringRepresentation, _ValueRepresentation2);
|
|
10106
10123
|
return _createClass(EncodedStringRepresentation, [{
|
|
10124
|
+
key: "isString",
|
|
10125
|
+
value: function isString() {
|
|
10126
|
+
return true;
|
|
10127
|
+
}
|
|
10128
|
+
}, {
|
|
10107
10129
|
key: "readBytes",
|
|
10108
10130
|
value: function readBytes(stream, length) {
|
|
10109
10131
|
return stream.readEncodedString(length);
|