dwv 0.34.0-beta.7 → 0.34.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/dist/dwv.d.ts +66 -26
- 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
|
@@ -19,8 +19,6 @@ export declare class Annotation {
|
|
|
19
19
|
/**
|
|
20
20
|
* The ID.
|
|
21
21
|
*
|
|
22
|
-
* 'Tracking Unique Identifier', 112040, DCM.
|
|
23
|
-
*
|
|
24
22
|
* @type {string}
|
|
25
23
|
*/
|
|
26
24
|
id: string;
|
|
@@ -45,38 +43,34 @@ export declare class Annotation {
|
|
|
45
43
|
/**
|
|
46
44
|
* Additional points used to define the annotation.
|
|
47
45
|
*
|
|
48
|
-
* @type {Point2D[]}
|
|
46
|
+
* @type {Point2D[]|undefined}
|
|
49
47
|
*/
|
|
50
|
-
referencePoints: Point2D[];
|
|
48
|
+
referencePoints: Point2D[] | undefined;
|
|
51
49
|
/**
|
|
52
50
|
* The color: for example 'green', '#00ff00' or 'rgb(0,255,0)'.
|
|
53
51
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
52
|
+
* @type {string|undefined}
|
|
57
53
|
*/
|
|
58
|
-
colour: string;
|
|
54
|
+
colour: string | undefined;
|
|
59
55
|
/**
|
|
60
56
|
* Annotation quantification.
|
|
61
57
|
*
|
|
62
|
-
* @type {object}
|
|
58
|
+
* @type {object|undefined}
|
|
63
59
|
*/
|
|
64
|
-
quantification: object;
|
|
60
|
+
quantification: object | undefined;
|
|
65
61
|
/**
|
|
66
62
|
* Text expression. Can contain variables surrounded with '{}' that will
|
|
67
63
|
* be extracted from the quantification object.
|
|
68
64
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
65
|
+
* @type {string|undefined}
|
|
72
66
|
*/
|
|
73
|
-
textExpr: string;
|
|
67
|
+
textExpr: string | undefined;
|
|
74
68
|
/**
|
|
75
69
|
* Label position.
|
|
76
70
|
*
|
|
77
|
-
* @type {Point2D}
|
|
71
|
+
* @type {Point2D|undefined}
|
|
78
72
|
*/
|
|
79
|
-
labelPosition: Point2D;
|
|
73
|
+
labelPosition: Point2D | undefined;
|
|
80
74
|
/**
|
|
81
75
|
* Set the associated view controller.
|
|
82
76
|
*
|
|
@@ -189,6 +183,18 @@ export declare class AnnotationGroup {
|
|
|
189
183
|
* @returns {number} The number of annotations.
|
|
190
184
|
*/
|
|
191
185
|
getLength(): number;
|
|
186
|
+
/**
|
|
187
|
+
* Check if the annotation group is editable.
|
|
188
|
+
*
|
|
189
|
+
* @returns {boolean} True if editable.
|
|
190
|
+
*/
|
|
191
|
+
isEditable(): boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Set the annotation group editability.
|
|
194
|
+
*
|
|
195
|
+
* @param {boolean} flag True to make the annotation group editable.
|
|
196
|
+
*/
|
|
197
|
+
setEditable(flag: boolean): void;
|
|
192
198
|
/**
|
|
193
199
|
* Add a new annotation.
|
|
194
200
|
*
|
|
@@ -199,8 +205,9 @@ export declare class AnnotationGroup {
|
|
|
199
205
|
* Update an existing annotation.
|
|
200
206
|
*
|
|
201
207
|
* @param {Annotation} annotation The annotation to update.
|
|
208
|
+
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
202
209
|
*/
|
|
203
|
-
update(annotation: Annotation): void;
|
|
210
|
+
update(annotation: Annotation, propKeys?: string[]): void;
|
|
204
211
|
/**
|
|
205
212
|
* Remove an annotation.
|
|
206
213
|
*
|
|
@@ -1448,6 +1455,18 @@ export declare class DrawController {
|
|
|
1448
1455
|
* @returns {AnnotationGroup} The list.
|
|
1449
1456
|
*/
|
|
1450
1457
|
getAnnotationGroup(): AnnotationGroup;
|
|
1458
|
+
/**
|
|
1459
|
+
* Check if the annotation group is editable.
|
|
1460
|
+
*
|
|
1461
|
+
* @returns {boolean} True if editable.
|
|
1462
|
+
*/
|
|
1463
|
+
isAnnotationGroupEditable(): boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* Set the annotation group editability.
|
|
1466
|
+
*
|
|
1467
|
+
* @param {boolean} flag True to make the annotation group editable.
|
|
1468
|
+
*/
|
|
1469
|
+
setAnnotationGroupEditable(flag: boolean): void;
|
|
1451
1470
|
/**
|
|
1452
1471
|
* Add an annotation.
|
|
1453
1472
|
*
|
|
@@ -1458,8 +1477,9 @@ export declare class DrawController {
|
|
|
1458
1477
|
* Update an anotation from the list.
|
|
1459
1478
|
*
|
|
1460
1479
|
* @param {Annotation} annotation The annotation to update.
|
|
1480
|
+
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
1461
1481
|
*/
|
|
1462
|
-
updateAnnotation(annotation: Annotation): void;
|
|
1482
|
+
updateAnnotation(annotation: Annotation, propKeys?: string[]): void;
|
|
1463
1483
|
/**
|
|
1464
1484
|
* Remove an anotation for the list.
|
|
1465
1485
|
*
|
|
@@ -1473,6 +1493,17 @@ export declare class DrawController {
|
|
|
1473
1493
|
* @param {Function} exeCallback The undo stack callback.
|
|
1474
1494
|
*/
|
|
1475
1495
|
removeAnnotationWithCommand(id: string, exeCallback: Function): void;
|
|
1496
|
+
/**
|
|
1497
|
+
* Update an annotation via an update command (triggers draw actions).
|
|
1498
|
+
*
|
|
1499
|
+
* @param {string} id The annotation id.
|
|
1500
|
+
* @param {object} originalProps The original annotation properties
|
|
1501
|
+
* that will be updated.
|
|
1502
|
+
* @param {object} newProps The new annotation properties
|
|
1503
|
+
* that will replace the original ones.
|
|
1504
|
+
* @param {Function} exeCallback The undo stack callback.
|
|
1505
|
+
*/
|
|
1506
|
+
updateAnnotationWithCommand(id: string, originalProps: object, newProps: object, exeCallback: Function): void;
|
|
1476
1507
|
/**
|
|
1477
1508
|
* Remove all annotations via remove commands (triggers draw actions).
|
|
1478
1509
|
*
|
|
@@ -1664,19 +1695,28 @@ export declare class DrawLayer {
|
|
|
1664
1695
|
*/
|
|
1665
1696
|
fitToContainer(containerSize: Scalar2D, divToWorldSizeRatio: number, fitOffset: Scalar2D): void;
|
|
1666
1697
|
/**
|
|
1667
|
-
* Check the visibility of
|
|
1698
|
+
* Check the visibility of an annotation.
|
|
1699
|
+
*
|
|
1700
|
+
* @param {string} id The id of the annotation.
|
|
1701
|
+
* @returns {boolean} True if the annotation is visible.
|
|
1702
|
+
*/
|
|
1703
|
+
isAnnotationVisible(id: string): boolean;
|
|
1704
|
+
/**
|
|
1705
|
+
* Set the visibility of an annotation.
|
|
1668
1706
|
*
|
|
1669
|
-
* @param {string} id The id of the
|
|
1670
|
-
* @
|
|
1707
|
+
* @param {string} id The id of the annotation.
|
|
1708
|
+
* @param {boolean} [visible] True to set to visible,
|
|
1709
|
+
* will toggle visibility if not defined.
|
|
1710
|
+
* @returns {boolean} False if the annotation shape cannot be found.
|
|
1671
1711
|
*/
|
|
1672
|
-
|
|
1712
|
+
setAnnotationVisibility(id: string, visible?: boolean): boolean;
|
|
1673
1713
|
/**
|
|
1674
|
-
*
|
|
1714
|
+
* Set the visibility of all labels.
|
|
1675
1715
|
*
|
|
1676
|
-
* @param {
|
|
1677
|
-
*
|
|
1716
|
+
* @param {boolean} [visible] True to set to visible,
|
|
1717
|
+
* will toggle visibility if not defined.
|
|
1678
1718
|
*/
|
|
1679
|
-
|
|
1719
|
+
setLabelsVisibility(visible?: boolean): void;
|
|
1680
1720
|
/**
|
|
1681
1721
|
* Delete a Draw from the stage.
|
|
1682
1722
|
*
|