@dcmjs-org/dcmjs 1.0.0-beta.11 → 1.0.0-beta.13
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.cjs +1 -1
- package/build/dcmjs.es.js +1 -1
- package/build/dcmjs.js +229 -19
- package/build/dcmjs.js.map +1 -1
- package/build/dcmjs.min.js +1 -1
- package/build/dcmjs.min.js.map +1 -1
- package/build/{dcmjs.shared-DzVDSFp8.js → dcmjs.shared-CP8p6SfT.js} +36 -4
- package/build/dcmjs.shared-CP8p6SfT.js.map +1 -0
- package/build/{dcmjs.shared-CvR7StGL.cjs → dcmjs.shared-DI53lI_H.cjs} +35 -3
- package/build/dcmjs.shared-DI53lI_H.cjs.map +1 -0
- package/build/eventStream.cjs +1 -1
- package/build/eventStream.es.js +1 -1
- package/package.json +7 -7
- package/build/dcmjs.shared-CvR7StGL.cjs.map +0 -1
- package/build/dcmjs.shared-DzVDSFp8.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { log, ValueRepresentation as ValueRepresentation$1, writePart10, TagHex, resolveCharsetDecoder, normalizeSyntax, isEncapsulatedSyntax, EXPLICIT_LITTLE_ENDIAN, IMPLICIT_LITTLE_ENDIAN, VALID_VRS, ReadBufferStream, DEFLATED_EXPLICIT_LITTLE_ENDIAN, DeflatedReadBufferStream, writeTagObject, writeDataSet, getTagWriteValues, Tag, UNDEFINED_LENGTH, singleVRs, DicomMetaDictionary, VM_DELIMITER, UNDEFINED_LENGTH_FIX, EXPLICIT_BIG_ENDIAN, DicomMetadataListener, isVideoTransferSyntax, addAccessors, createInformationFilter, toInt, toFloat, dicomJson, BULKDATA_VRS, DEFAULT_INFORMATION_TAGS, ITEM_DELIMITATION_LENGTH, PADDING_NULL, PADDING_SPACE, PN_COMPONENT_DELIMITER, SEQUENCE_DELIMITATION_VALUE, SEQUENCE_DELIMITER_TAG, SEQUENCE_ITEM_TAG, TAG_NAME_MAP, encodingMapping, unencapsulatedTransferSyntaxes, videoTransferSyntaxUIDs, registerPrivatesModule, lookupPrivateTag, frameDataset, definePrivateAliases, setPersonName, setAttribute, setVr, WriteBufferStream } from '@dcmjs-org/core';
|
|
1
|
+
import { log, ValueRepresentation as ValueRepresentation$1, reservePrivateBlock, findPrivateBlock, writePart10, TagHex, resolveCharsetDecoder, normalizeSyntax, isEncapsulatedSyntax, EXPLICIT_LITTLE_ENDIAN, IMPLICIT_LITTLE_ENDIAN, VALID_VRS, ReadBufferStream, DEFLATED_EXPLICIT_LITTLE_ENDIAN, DeflatedReadBufferStream, writeTagObject, writeDataSet, getTagWriteValues, Tag, UNDEFINED_LENGTH, singleVRs, DicomMetaDictionary, VM_DELIMITER, UNDEFINED_LENGTH_FIX, EXPLICIT_BIG_ENDIAN, DicomMetadataListener, isVideoTransferSyntax, addAccessors, createInformationFilter, toInt, toFloat, dicomJson, BULKDATA_VRS, DEFAULT_INFORMATION_TAGS, ITEM_DELIMITATION_LENGTH, PADDING_NULL, PADDING_SPACE, PN_COMPONENT_DELIMITER, SEQUENCE_DELIMITATION_VALUE, SEQUENCE_DELIMITER_TAG, SEQUENCE_ITEM_TAG, TAG_NAME_MAP, encodingMapping, unencapsulatedTransferSyntaxes, videoTransferSyntaxUIDs, registerPrivatesModule, lookupPrivateTag, privateBlockKey, frameDataset, definePrivateAliases, setPersonName, setAttribute, setVr, WriteBufferStream } from '@dcmjs-org/core';
|
|
2
2
|
|
|
3
3
|
/* eslint no-bitwise: 0 */
|
|
4
4
|
var BitArray = {
|
|
@@ -718,6 +718,34 @@ var DicomDict = /*#__PURE__*/function () {
|
|
|
718
718
|
this.dict[tag].Value = ValueRepresentation$1.addValueAccessorsFor(this.dict[tag].vr, values);
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
/**
|
|
722
|
+
* Reserves a private block for a creator, and writes its creator element
|
|
723
|
+
* when the creator has no block yet; pass `{ create: false }` to only look
|
|
724
|
+
* it up. The block is found by creator, never assumed (NAT-U-PRIV-11).
|
|
725
|
+
*
|
|
726
|
+
* dicomDict.privateBlock("4D43:ACME 1.0").set("x01", "CS", ["HYBRID"]);
|
|
727
|
+
*
|
|
728
|
+
* @param {number|string} groupOrKey odd group number, or block key "gggg:creator"
|
|
729
|
+
* @param {string} [creator] creator string, with a group number
|
|
730
|
+
* @param {{create?: boolean}} [options] create defaults to true; false
|
|
731
|
+
* returns null when the creator is absent
|
|
732
|
+
* @returns {Object|null} accessor with key, group, creator, reservedBlock,
|
|
733
|
+
* tag, has, get and set
|
|
734
|
+
*/
|
|
735
|
+
}, {
|
|
736
|
+
key: "privateBlock",
|
|
737
|
+
value: function privateBlock(groupOrKey, creator) {
|
|
738
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
739
|
+
if (typeof groupOrKey === "string" && _typeof(creator) === "object") {
|
|
740
|
+
options = creator;
|
|
741
|
+
creator = undefined;
|
|
742
|
+
}
|
|
743
|
+
var _ref = options || {},
|
|
744
|
+
_ref$create = _ref.create,
|
|
745
|
+
create = _ref$create === void 0 ? true : _ref$create;
|
|
746
|
+
return create ? reservePrivateBlock(this.dict, groupOrKey, creator) : findPrivateBlock(this.dict, groupOrKey, creator);
|
|
747
|
+
}
|
|
748
|
+
|
|
721
749
|
// The Part 10 envelope (preamble/DICM, computed meta group length,
|
|
722
750
|
// deflate branch, default transfer syntax) moved verbatim to
|
|
723
751
|
// @dcmjs-org/core as writePart10 (core/writeCore.js); this delegation
|
|
@@ -1879,7 +1907,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
1879
1907
|
break;
|
|
1880
1908
|
}
|
|
1881
1909
|
// Group length
|
|
1882
|
-
stream.increment(
|
|
1910
|
+
stream.increment(length);
|
|
1883
1911
|
return _context5.abrupt("continue", 1);
|
|
1884
1912
|
case 5:
|
|
1885
1913
|
addTagResult = listener.addTag(tag, tagInfo);
|
|
@@ -15750,7 +15778,11 @@ var data = {
|
|
|
15750
15778
|
setAttribute: setAttribute,
|
|
15751
15779
|
setPersonName: setPersonName,
|
|
15752
15780
|
definePrivateAliases: definePrivateAliases,
|
|
15753
|
-
frameDataset: frameDataset
|
|
15781
|
+
frameDataset: frameDataset,
|
|
15782
|
+
// private blocks of a DICOM JSON dict (NAT-U-PRIV-11)
|
|
15783
|
+
findPrivateBlock: findPrivateBlock,
|
|
15784
|
+
reservePrivateBlock: reservePrivateBlock,
|
|
15785
|
+
privateBlockKey: privateBlockKey
|
|
15754
15786
|
};
|
|
15755
15787
|
var async = {
|
|
15756
15788
|
AsyncDicomReader: AsyncDicomReader
|
|
@@ -15798,4 +15830,4 @@ ValueRepresentation.setTagClass(Tag);
|
|
|
15798
15830
|
// entries (src/eventStream.js, ...): the default entry is the 0.52 surface.
|
|
15799
15831
|
|
|
15800
15832
|
export { DICOMWEB as D, _inherits as _, _createClass as a, _objectSpread2 as b, _classCallCheck as c, _callSuper as d, _createForOfIteratorHelper as e, datasetToDict as f, _typeof as g, _asyncToGenerator as h, _regeneratorRuntime as i, adapters as j, anonymizer as k, async as l, constants as m, data as n, dcmjs as o, derivations as p, normalizers as q, sr as s, utilities as u };
|
|
15801
|
-
//# sourceMappingURL=dcmjs.shared-
|
|
15833
|
+
//# sourceMappingURL=dcmjs.shared-CP8p6SfT.js.map
|