dwv 0.35.0-beta.20 → 0.35.0-beta.21
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/dist/dwv.d.ts +29 -0
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -2411,6 +2411,13 @@ export declare function getRectangleIndices(center: Index, size: number[], dir:
|
|
|
2411
2411
|
*/
|
|
2412
2412
|
export declare function getReverseOrientation(ori: string): string;
|
|
2413
2413
|
|
|
2414
|
+
/**
|
|
2415
|
+
* Get a segmentation DICOM code.
|
|
2416
|
+
*
|
|
2417
|
+
* @returns {DicomCode} The code.
|
|
2418
|
+
*/
|
|
2419
|
+
export declare function getSegmentationCode(): DicomCode;
|
|
2420
|
+
|
|
2414
2421
|
/**
|
|
2415
2422
|
* Get a content item object from a dicom element.
|
|
2416
2423
|
*
|
|
@@ -2476,6 +2483,14 @@ export declare function getUID(tagName: string): string;
|
|
|
2476
2483
|
*/
|
|
2477
2484
|
export declare function hasDicomPrefix(buffer: ArrayBuffer): boolean;
|
|
2478
2485
|
|
|
2486
|
+
/**
|
|
2487
|
+
* Convert a hex color into RGB.
|
|
2488
|
+
*
|
|
2489
|
+
* @param {string} hexStr The hex color as '#ab01ef'.
|
|
2490
|
+
* @returns {RGB} The RGB values as {r,g,b}.
|
|
2491
|
+
*/
|
|
2492
|
+
export declare function hexToRgb(hexStr: string): RGB;
|
|
2493
|
+
|
|
2479
2494
|
export declare namespace i18n {
|
|
2480
2495
|
/**
|
|
2481
2496
|
* Get the translated text.
|
|
@@ -4571,6 +4586,14 @@ export declare class RGB {
|
|
|
4571
4586
|
b: number;
|
|
4572
4587
|
}
|
|
4573
4588
|
|
|
4589
|
+
/**
|
|
4590
|
+
* Convert RGB to its hex equivalent.
|
|
4591
|
+
*
|
|
4592
|
+
* @param {RGB} rgb The RGB object as {r,g,b}.
|
|
4593
|
+
* @returns {string} A string representing the hex color as '#ab01ef'.
|
|
4594
|
+
*/
|
|
4595
|
+
export declare function rgbToHex(rgb: RGB): string;
|
|
4596
|
+
|
|
4574
4597
|
/**
|
|
4575
4598
|
* Region Of Interest shape.
|
|
4576
4599
|
* Note: should be a closed path.
|
|
@@ -4922,6 +4945,12 @@ export declare class Tag {
|
|
|
4922
4945
|
* @returns {string|undefined} The VR.
|
|
4923
4946
|
*/
|
|
4924
4947
|
getVrFromDictionary(): string | undefined;
|
|
4948
|
+
/**
|
|
4949
|
+
* Get the multiplicity from the dicom dictionary.
|
|
4950
|
+
*
|
|
4951
|
+
* @returns {number|undefined} The multiplicity.
|
|
4952
|
+
*/
|
|
4953
|
+
getMultiplicityFromDictionary(): number | undefined;
|
|
4925
4954
|
/**
|
|
4926
4955
|
* Get the tag name from the dicom dictionary.
|
|
4927
4956
|
*
|