dwv 0.35.0-beta.29 → 0.35.0-beta.30
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 +53 -10
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -247,9 +247,10 @@ export declare class AnnotationGroup {
|
|
|
247
247
|
*
|
|
248
248
|
* @param {Annotation} annotation The annotation to update.
|
|
249
249
|
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
250
|
-
* @param {boolean} [
|
|
250
|
+
* @param {boolean} [propagate] Whether the update event propagates
|
|
251
|
+
* outside of dwv or not, defaults to true.
|
|
251
252
|
*/
|
|
252
|
-
update(annotation: Annotation, propKeys?: string[],
|
|
253
|
+
update(annotation: Annotation, propKeys?: string[], propagate?: boolean): void;
|
|
253
254
|
/**
|
|
254
255
|
* Remove an annotation.
|
|
255
256
|
*
|
|
@@ -339,7 +340,7 @@ export declare class AnnotationGroupFactory {
|
|
|
339
340
|
[x: string]: DataElement;
|
|
340
341
|
}): string | undefined;
|
|
341
342
|
/**
|
|
342
|
-
* Get an {@link
|
|
343
|
+
* Get an {@link AnnotationGroup} object from the read DICOM file.
|
|
343
344
|
*
|
|
344
345
|
* @param {Object<string, DataElement>} dataElements The DICOM tags.
|
|
345
346
|
* @returns {AnnotationGroup} A new annotation group.
|
|
@@ -348,6 +349,15 @@ export declare class AnnotationGroupFactory {
|
|
|
348
349
|
create(dataElements: {
|
|
349
350
|
[x: string]: DataElement;
|
|
350
351
|
}): AnnotationGroup;
|
|
352
|
+
/**
|
|
353
|
+
* Get an {@link CADReport} object from the read DICOM file.
|
|
354
|
+
*
|
|
355
|
+
* @param {Object<string, DataElement>} dataElements The DICOM tags.
|
|
356
|
+
* @returns {CADReport|undefined} A new CAD report.
|
|
357
|
+
*/
|
|
358
|
+
createCADReport(dataElements: {
|
|
359
|
+
[x: string]: DataElement;
|
|
360
|
+
}): CADReport | undefined;
|
|
351
361
|
/**
|
|
352
362
|
* Convert an annotation group into a DICOM SR object using the
|
|
353
363
|
* TID 1500 template.
|
|
@@ -362,17 +372,14 @@ export declare class AnnotationGroupFactory {
|
|
|
362
372
|
[x: string]: DataElement;
|
|
363
373
|
};
|
|
364
374
|
/**
|
|
365
|
-
* Convert a
|
|
366
|
-
*
|
|
375
|
+
* Convert a CAD report into a DICOM CAD report SR object using
|
|
376
|
+
* the TID 4100 template.
|
|
367
377
|
*
|
|
368
|
-
* @param {
|
|
369
|
-
* @param {object[]} responseEvaluations List of response evaluations
|
|
370
|
-
* as {current, measure}.
|
|
371
|
-
* @param {string} comment Report comment.
|
|
378
|
+
* @param {CADReport} report The CAD report.
|
|
372
379
|
* @param {Object<string, any>} [extraTags] Optional list of extra tags.
|
|
373
380
|
* @returns {Object<string, DataElement>} A list of dicom elements.
|
|
374
381
|
*/
|
|
375
|
-
toDicomCADReport(
|
|
382
|
+
toDicomCADReport(report: CADReport, extraTags?: {
|
|
376
383
|
[x: string]: any;
|
|
377
384
|
}): {
|
|
378
385
|
[x: string]: DataElement;
|
|
@@ -1047,6 +1054,24 @@ export declare class AppOptions {
|
|
|
1047
1054
|
*/
|
|
1048
1055
|
export declare function buildMultipart(parts: any[], boundary: string): Uint8Array;
|
|
1049
1056
|
|
|
1057
|
+
/**
|
|
1058
|
+
* CAD report class.
|
|
1059
|
+
*/
|
|
1060
|
+
export declare class CADReport {
|
|
1061
|
+
/**
|
|
1062
|
+
* @type {AnnotationGroup[]}
|
|
1063
|
+
*/
|
|
1064
|
+
annotationGroups: AnnotationGroup[];
|
|
1065
|
+
/**
|
|
1066
|
+
* @type {ResponseEvaluation[]}
|
|
1067
|
+
*/
|
|
1068
|
+
responseEvaluations: ResponseEvaluation[];
|
|
1069
|
+
/**
|
|
1070
|
+
* @type {string}
|
|
1071
|
+
*/
|
|
1072
|
+
comment: string;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1050
1075
|
/**
|
|
1051
1076
|
* Change segment colour command.
|
|
1052
1077
|
*/
|
|
@@ -4638,6 +4663,24 @@ export declare class RescaleSlopeAndIntercept {
|
|
|
4638
4663
|
#private;
|
|
4639
4664
|
}
|
|
4640
4665
|
|
|
4666
|
+
/**
|
|
4667
|
+
* Response evaluation class.
|
|
4668
|
+
*/
|
|
4669
|
+
export declare class ResponseEvaluation {
|
|
4670
|
+
/**
|
|
4671
|
+
* Current response.
|
|
4672
|
+
*
|
|
4673
|
+
* @type {DicomCode}
|
|
4674
|
+
*/
|
|
4675
|
+
current: DicomCode;
|
|
4676
|
+
/**
|
|
4677
|
+
* Measurement of response (mm).
|
|
4678
|
+
*
|
|
4679
|
+
* @type {number}
|
|
4680
|
+
*/
|
|
4681
|
+
measure: number;
|
|
4682
|
+
}
|
|
4683
|
+
|
|
4641
4684
|
/**
|
|
4642
4685
|
* RGB colour class.
|
|
4643
4686
|
*/
|