dwv 0.34.0-beta.1 → 0.34.0-beta.10

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 CHANGED
@@ -16,15 +16,9 @@ export declare function addTagsToDictionary(group: string, tags: {
16
16
  * Image annotation.
17
17
  */
18
18
  export declare class Annotation {
19
- /**
20
- * @param {ViewController} viewController The associated view controller.
21
- */
22
- constructor(viewController: ViewController);
23
19
  /**
24
20
  * The ID.
25
21
  *
26
- * 'Tracking Unique Identifier', 112040, DCM.
27
- *
28
22
  * @type {string}
29
23
  */
30
24
  id: string;
@@ -34,12 +28,6 @@ export declare class Annotation {
34
28
  * @type {string}
35
29
  */
36
30
  referenceSopUID: string;
37
- /**
38
- * The position: an Index converted to string.
39
- *
40
- * @type {string}
41
- */
42
- position: string;
43
31
  /**
44
32
  * The mathematical shape.
45
33
  *
@@ -47,28 +35,43 @@ export declare class Annotation {
47
35
  */
48
36
  mathShape: object;
49
37
  /**
50
- * The color: for example 'green', '#00ff00' or 'rgb(0,255,0)'.
38
+ * Additional points used to define the annotation.
51
39
  *
52
- * 'RGB R Component', 110834, DCM...
40
+ * @type {Point2D[]|undefined}
41
+ */
42
+ referencePoints: Point2D[] | undefined;
43
+ /**
44
+ * The color: for example 'green', '#00ff00' or 'rgb(0,255,0)'.
53
45
  *
54
- * @type {string}
46
+ * @type {string|undefined}
55
47
  */
56
- colour: string;
48
+ colour: string | undefined;
57
49
  /**
58
50
  * Annotation quantification.
59
51
  *
60
- * @type {object}
52
+ * @type {object|undefined}
61
53
  */
62
- quantification: object;
54
+ quantification: object | undefined;
63
55
  /**
64
56
  * Text expression. Can contain variables surrounded with '{}' that will
65
57
  * be extracted from the quantification object.
66
58
  *
67
- * 'Short label', 125309, DCM.
59
+ * @type {string|undefined}
60
+ */
61
+ textExpr: string | undefined;
62
+ /**
63
+ * Label position. If undefined, the default shape
64
+ * label position will be used.
68
65
  *
69
- * @type {string}
66
+ * @type {Point2D|undefined}
70
67
  */
71
- textExpr: string;
68
+ labelPosition: Point2D | undefined;
69
+ /**
70
+ * Set the associated view controller.
71
+ *
72
+ * @param {ViewController} viewController The associated view controller.
73
+ */
74
+ setViewController(viewController: ViewController): void;
72
75
  /**
73
76
  * Get the image origin for a image UID.
74
77
  *
@@ -96,70 +99,31 @@ export declare class Annotation {
96
99
  */
97
100
  updateQuantification(): void;
98
101
  /**
99
- * Get the math shape associated factory.
102
+ * Get the math shape associated draw factory.
100
103
  *
101
104
  * @returns {object} The factory.
102
105
  */
103
106
  getFactory(): object;
104
- #private;
105
- }
106
-
107
- /**
108
- * {@link Annotation} factory.
109
- */
110
- export declare class AnnotationFactory {
111
- /**
112
- * Get a warning string if elements are not as expected.
113
- * Created by checkElements.
114
- *
115
- * @returns {string|undefined} The warning.
116
- */
117
- getWarning(): string | undefined;
118
- /**
119
- * Check dicom elements. Throws an error if not suitable.
120
- *
121
- * @param {Object<string, DataElement>} dataElements The DICOM data elements.
122
- * @returns {string|undefined} A possible warning.
123
- */
124
- checkElements(dataElements: {
125
- [x: string]: DataElement;
126
- }): string | undefined;
127
- /**
128
- * Get an {@link Annotation} object from the read DICOM file.
129
- *
130
- * @param {Object<string, DataElement>} dataElements The DICOM tags.
131
- * @param {ViewController} viewController The associated view controller.
132
- * @returns {AnnotationList} A new annotation list.
133
- */
134
- create(dataElements: {
135
- [x: string]: DataElement;
136
- }, viewController: ViewController): AnnotationList;
137
107
  /**
138
- * Convert an annotation list into a DICOM SR object.
108
+ * Get the string type of this annotation.
139
109
  *
140
- * @param {AnnotationList} annotationList The annotation list.
141
- * @param {Object<string, any>} [extraTags] Optional list of extra tags.
142
- * @returns {Object<string, DataElement>} A list of dicom elements.
110
+ * @returns {string} The type.
143
111
  */
144
- toDicom(annotationList: AnnotationList, extraTags?: {
145
- [x: string]: any;
146
- }): {
147
- [x: string]: DataElement;
148
- };
112
+ getType(): string;
149
113
  #private;
150
114
  }
151
115
 
152
116
  /**
153
- * Annotation list.
117
+ * Annotation group.
154
118
  */
155
- export declare class AnnotationList {
119
+ export declare class AnnotationGroup {
156
120
  /**
157
121
  * @param {Annotation[]} [list] Optional list, will
158
122
  * create new if not provided.
159
123
  */
160
124
  constructor(list?: Annotation[]);
161
125
  /**
162
- * Get the annotation list as an array.
126
+ * Get the annotation group as an array.
163
127
  *
164
128
  * @returns {Annotation[]} The array.
165
129
  */
@@ -170,6 +134,18 @@ export declare class AnnotationList {
170
134
  * @returns {number} The number of annotations.
171
135
  */
172
136
  getLength(): number;
137
+ /**
138
+ * Check if the annotation group is editable.
139
+ *
140
+ * @returns {boolean} True if editable.
141
+ */
142
+ isEditable(): boolean;
143
+ /**
144
+ * Set the annotation group editability.
145
+ *
146
+ * @param {boolean} flag True to make the annotation group editable.
147
+ */
148
+ setEditable(flag: boolean): void;
173
149
  /**
174
150
  * Add a new annotation.
175
151
  *
@@ -180,14 +156,21 @@ export declare class AnnotationList {
180
156
  * Update an existing annotation.
181
157
  *
182
158
  * @param {Annotation} annotation The annotation to update.
159
+ * @param {string[]} [propKeys] Optional properties that got updated.
183
160
  */
184
- update(annotation: Annotation): void;
161
+ update(annotation: Annotation, propKeys?: string[]): void;
185
162
  /**
186
- * Remoave an annotation.
163
+ * Remove an annotation.
187
164
  *
188
165
  * @param {string} id The id of the annotation to remove.
189
166
  */
190
167
  remove(id: string): void;
168
+ /**
169
+ * Set the associated view controller.
170
+ *
171
+ * @param {ViewController} viewController The associated view controller.
172
+ */
173
+ setViewController(viewController: ViewController): void;
191
174
  /**
192
175
  * Find an annotation.
193
176
  *
@@ -195,6 +178,14 @@ export declare class AnnotationList {
195
178
  * @returns {Annotation|undefined} The found annotation.
196
179
  */
197
180
  find(id: string): Annotation | undefined;
181
+ /**
182
+ * Get the meta data.
183
+ *
184
+ * @returns {Object<string, any>} The meta data.
185
+ */
186
+ getMeta(): {
187
+ [x: string]: any;
188
+ };
198
189
  /**
199
190
  * Check if this list contains a meta data value.
200
191
  *
@@ -206,16 +197,16 @@ export declare class AnnotationList {
206
197
  * Get a meta data value.
207
198
  *
208
199
  * @param {string} key The meta data key.
209
- * @returns {string} The meta data value.
200
+ * @returns {string|object} The meta data value.
210
201
  */
211
- getMeta(key: string): string;
202
+ getMetaValue(key: string): string | object;
212
203
  /**
213
204
  * Set a meta data.
214
205
  *
215
206
  * @param {string} key The meta data key.
216
- * @param {string} value The value of the meta data.
207
+ * @param {string|object} value The value of the meta data.
217
208
  */
218
- setMeta(key: string, value: string): void;
209
+ setMetaValue(key: string, value: string | object): void;
219
210
  /**
220
211
  * Add an event listener to this class.
221
212
  *
@@ -235,6 +226,50 @@ export declare class AnnotationList {
235
226
  #private;
236
227
  }
237
228
 
229
+ /**
230
+ * {@link AnnotationGroup} factory.
231
+ */
232
+ export declare class AnnotationGroupFactory {
233
+ /**
234
+ * Get a warning string if elements are not as expected.
235
+ * Created by checkElements.
236
+ *
237
+ * @returns {string|undefined} The warning.
238
+ */
239
+ getWarning(): string | undefined;
240
+ /**
241
+ * Check dicom elements. Throws an error if not suitable.
242
+ *
243
+ * @param {Object<string, DataElement>} dataElements The DICOM data elements.
244
+ * @returns {string|undefined} A possible warning.
245
+ */
246
+ checkElements(dataElements: {
247
+ [x: string]: DataElement;
248
+ }): string | undefined;
249
+ /**
250
+ * Get an {@link Annotation} object from the read DICOM file.
251
+ *
252
+ * @param {Object<string, DataElement>} dataElements The DICOM tags.
253
+ * @returns {AnnotationGroup} A new annotation group.
254
+ */
255
+ create(dataElements: {
256
+ [x: string]: DataElement;
257
+ }): AnnotationGroup;
258
+ /**
259
+ * Convert an annotation group into a DICOM SR object.
260
+ *
261
+ * @param {AnnotationGroup} annotationGroup The annotation group.
262
+ * @param {Object<string, any>} [extraTags] Optional list of extra tags.
263
+ * @returns {Object<string, DataElement>} A list of dicom elements.
264
+ */
265
+ toDicom(annotationGroup: AnnotationGroup, extraTags?: {
266
+ [x: string]: any;
267
+ }): {
268
+ [x: string]: DataElement;
269
+ };
270
+ #private;
271
+ }
272
+
238
273
  /**
239
274
  * List of ViewConfigs indexed by dataIds.
240
275
  *
@@ -258,12 +293,12 @@ export declare class AnnotationList {
258
293
  */
259
294
  export declare class App {
260
295
  /**
261
- * Get the image.
296
+ * Get a DicomData.
262
297
  *
263
298
  * @param {string} dataId The data id.
264
- * @returns {Image|undefined} The associated image.
299
+ * @returns {DicomData|undefined} The data.
265
300
  */
266
- getImage(dataId: string): Image_2 | undefined;
301
+ getData(dataId: string): DicomData | undefined;
267
302
  /**
268
303
  * Set the image at the given id.
269
304
  *
@@ -272,15 +307,12 @@ export declare class App {
272
307
  */
273
308
  setImage(dataId: string, img: Image_2): void;
274
309
  /**
275
- * Add a new image.
310
+ * Add a new DicomData.
276
311
  *
277
- * @param {Image} image The new image.
278
- * @param {object} meta The image meta.
279
- * @param {string} source The source of the new image,
280
- * will be passed with load events.
281
- * @returns {string} The new image data id.
312
+ * @param {DicomData} data The new data.
313
+ * @returns {string} The data id.
282
314
  */
283
- addNewImage(image: Image_2, meta: object, source: string): string;
315
+ addData(data: DicomData): string;
284
316
  /**
285
317
  * Get the meta data.
286
318
  *
@@ -399,6 +431,15 @@ export declare class App {
399
431
  * @function
400
432
  */
401
433
  addToUndoStack: (cmd: object) => void;
434
+ /**
435
+ * Remove a command from the undo stack.
436
+ *
437
+ * @param {string} name The name of the command to remove.
438
+ * @returns {boolean} True if the command was found and removed.
439
+ * @fires UndoStack#undoremove
440
+ * @function
441
+ */
442
+ removeFromUndoStack: (name: string) => boolean;
402
443
  /**
403
444
  * Initialise the application.
404
445
  *
@@ -758,6 +799,22 @@ export declare class App {
758
799
  * @param {string} dataId The data id.
759
800
  */
760
801
  toggleOverlayListeners(dataId: string): void;
802
+ /**
803
+ * Create new annotation data based on the data of
804
+ * the active view layer.
805
+ *
806
+ * @param {LayerGroup} layerGroup The layerGroup with the data to associate
807
+ * to the annotation.
808
+ * @returns {DicomData} The new data.
809
+ */
810
+ createAnnotationData(layerGroup: LayerGroup): DicomData;
811
+ /**
812
+ * Add new data and render it with a simple new data view config.
813
+ *
814
+ * @param {DicomData} data The data to add.
815
+ * @param {string} divId The div where to draw.
816
+ */
817
+ addAndRenderAnnotationData(data: DicomData, divId: string): void;
761
818
  /**
762
819
  * Add a draw layer.
763
820
  *
@@ -1113,7 +1170,6 @@ export declare class DeleteSegmentCommand {
1113
1170
  * DICOM code: item of a basic code sequence.
1114
1171
  *
1115
1172
  * Ref: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_8.8.html}.
1116
- * List: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part16/chapter_d.html}.
1117
1173
  */
1118
1174
  export declare class DicomCode {
1119
1175
  /**
@@ -1158,6 +1214,34 @@ export declare class DicomCode {
1158
1214
  toString(): string;
1159
1215
  }
1160
1216
 
1217
+ /**
1218
+ * DICOM data: meta and possible image.
1219
+ */
1220
+ export declare class DicomData {
1221
+ /**
1222
+ * @param {object} meta The DICOM meta data.
1223
+ */
1224
+ constructor(meta: object);
1225
+ /**
1226
+ * DICOM meta data.
1227
+ *
1228
+ * @type {object}
1229
+ */
1230
+ meta: object;
1231
+ /**
1232
+ * Image extracted from meta data.
1233
+ *
1234
+ * @type {Image|undefined}
1235
+ */
1236
+ image: Image_2 | undefined;
1237
+ /**
1238
+ * Annotattion group extracted from meta data.
1239
+ *
1240
+ * @type {AnnotationGroup|undefined}
1241
+ */
1242
+ annotationGroup: AnnotationGroup | undefined;
1243
+ }
1244
+
1161
1245
  /**
1162
1246
  * DicomParser class.
1163
1247
  *
@@ -1359,9 +1443,9 @@ export declare class DicomWriter {
1359
1443
  */
1360
1444
  export declare class DrawController {
1361
1445
  /**
1362
- * @param {AnnotationList} [list] Optional annotation list.
1446
+ * @param {AnnotationGroup} [group] Optional annotation group.
1363
1447
  */
1364
- constructor(list?: AnnotationList);
1448
+ constructor(group?: AnnotationGroup);
1365
1449
  /**
1366
1450
  * Get an annotation.
1367
1451
  *
@@ -1370,11 +1454,23 @@ export declare class DrawController {
1370
1454
  */
1371
1455
  getAnnotation(id: string): Annotation | undefined;
1372
1456
  /**
1373
- * Get the annotation list.
1457
+ * Get the annotation group.
1374
1458
  *
1375
- * @returns {AnnotationList} The list.
1459
+ * @returns {AnnotationGroup} The list.
1376
1460
  */
1377
- getAnnotationList(): AnnotationList;
1461
+ getAnnotationGroup(): AnnotationGroup;
1462
+ /**
1463
+ * Check if the annotation group is editable.
1464
+ *
1465
+ * @returns {boolean} True if editable.
1466
+ */
1467
+ isAnnotationGroupEditable(): boolean;
1468
+ /**
1469
+ * Set the annotation group editability.
1470
+ *
1471
+ * @param {boolean} flag True to make the annotation group editable.
1472
+ */
1473
+ setAnnotationGroupEditable(flag: boolean): void;
1378
1474
  /**
1379
1475
  * Add an annotation.
1380
1476
  *
@@ -1385,8 +1481,9 @@ export declare class DrawController {
1385
1481
  * Update an anotation from the list.
1386
1482
  *
1387
1483
  * @param {Annotation} annotation The annotation to update.
1484
+ * @param {string[]} [propKeys] Optional properties that got updated.
1388
1485
  */
1389
- updateAnnotation(annotation: Annotation): void;
1486
+ updateAnnotation(annotation: Annotation, propKeys?: string[]): void;
1390
1487
  /**
1391
1488
  * Remove an anotation for the list.
1392
1489
  *
@@ -1394,7 +1491,31 @@ export declare class DrawController {
1394
1491
  */
1395
1492
  removeAnnotation(id: string): void;
1396
1493
  /**
1397
- * Check if the annotation list contains a meta data value.
1494
+ * Remove an annotation via a remove command (triggers draw actions).
1495
+ *
1496
+ * @param {string} id The annotation id.
1497
+ * @param {Function} exeCallback The undo stack callback.
1498
+ */
1499
+ removeAnnotationWithCommand(id: string, exeCallback: Function): void;
1500
+ /**
1501
+ * Update an annotation via an update command (triggers draw actions).
1502
+ *
1503
+ * @param {string} id The annotation id.
1504
+ * @param {object} originalProps The original annotation properties
1505
+ * that will be updated.
1506
+ * @param {object} newProps The new annotation properties
1507
+ * that will replace the original ones.
1508
+ * @param {Function} exeCallback The undo stack callback.
1509
+ */
1510
+ updateAnnotationWithCommand(id: string, originalProps: object, newProps: object, exeCallback: Function): void;
1511
+ /**
1512
+ * Remove all annotations via remove commands (triggers draw actions).
1513
+ *
1514
+ * @param {Function} exeCallback The undo stack callback.
1515
+ */
1516
+ removeAllAnnotationsWithCommand(exeCallback: Function): void;
1517
+ /**
1518
+ * Check if the annotation group contains a meta data value.
1398
1519
  *
1399
1520
  * @param {string} key The key to check.
1400
1521
  * @returns {boolean} True if the meta data is present.
@@ -1432,6 +1553,12 @@ export declare class DrawLayer {
1432
1553
  * as this layer id.
1433
1554
  */
1434
1555
  constructor(containerDiv: HTMLDivElement);
1556
+ /**
1557
+ * Set the draw shape handler.
1558
+ *
1559
+ * @param {DrawShapeHandler|undefined} handler The shape handler.
1560
+ */
1561
+ setShapeHandler(handler: DrawShapeHandler | undefined): void;
1435
1562
  /**
1436
1563
  * Get the associated data id.
1437
1564
  *
@@ -1453,9 +1580,9 @@ export declare class DrawLayer {
1453
1580
  /**
1454
1581
  * Get the draw controller.
1455
1582
  *
1456
- * @returns {object} The controller.
1583
+ * @returns {DrawController} The controller.
1457
1584
  */
1458
- getDrawController(): object;
1585
+ getDrawController(): DrawController;
1459
1586
  /**
1460
1587
  * Set the plane helper.
1461
1588
  *
@@ -1556,14 +1683,13 @@ export declare class DrawLayer {
1556
1683
  */
1557
1684
  initialise(size: Scalar2D, spacing: Scalar2D): void;
1558
1685
  /**
1559
- * Set the annotation list.
1686
+ * Set the annotation group.
1560
1687
  *
1561
- * @param {AnnotationList} list The annotation list.
1688
+ * @param {AnnotationGroup} annotationGroup The annotation group.
1562
1689
  * @param {string} dataId The associated data id.
1563
- * @param {object} cmdCallback The command callback.
1564
- * @param {object} exeCallback The exe callback.
1690
+ * @param {object} exeCallback The undo stack callback.
1565
1691
  */
1566
- setAnnotationList(list: AnnotationList, dataId: string, cmdCallback: object, exeCallback: object): void;
1692
+ setAnnotationGroup(annotationGroup: AnnotationGroup, dataId: string, exeCallback: object): void;
1567
1693
  /**
1568
1694
  * Fit the layer to its parent container.
1569
1695
  *
@@ -1573,34 +1699,45 @@ export declare class DrawLayer {
1573
1699
  */
1574
1700
  fitToContainer(containerSize: Scalar2D, divToWorldSizeRatio: number, fitOffset: Scalar2D): void;
1575
1701
  /**
1576
- * Check the visibility of a given group.
1702
+ * Check the visibility of an annotation.
1703
+ *
1704
+ * @param {string} id The id of the annotation.
1705
+ * @returns {boolean} True if the annotation is visible.
1706
+ */
1707
+ isAnnotationVisible(id: string): boolean;
1708
+ /**
1709
+ * Set the visibility of an annotation.
1577
1710
  *
1578
- * @param {string} id The id of the group.
1579
- * @returns {boolean} True if the group is visible.
1711
+ * @param {string} id The id of the annotation.
1712
+ * @param {boolean} [visible] True to set to visible,
1713
+ * will toggle visibility if not defined.
1714
+ * @returns {boolean} False if the annotation shape cannot be found.
1580
1715
  */
1581
- isGroupVisible(id: string): boolean;
1716
+ setAnnotationVisibility(id: string, visible?: boolean): boolean;
1582
1717
  /**
1583
- * Toggle the visibility of a given group.
1718
+ * Set the visibility of all labels.
1584
1719
  *
1585
- * @param {string} id The id of the group.
1586
- * @returns {boolean} False if the group cannot be found.
1720
+ * @param {boolean} [visible] True to set to visible,
1721
+ * will toggle visibility if not defined.
1587
1722
  */
1588
- toggleGroupVisibility(id: string): boolean;
1723
+ setLabelsVisibility(visible?: boolean): void;
1589
1724
  /**
1590
1725
  * Delete a Draw from the stage.
1591
1726
  *
1592
- * @param {string} id The id of the group to delete.
1593
- * @param {Function} exeCallback The callback to call once the
1727
+ * @deprecated
1728
+ * @param {string} _id The id of the group to delete.
1729
+ * @param {Function} _exeCallback The callback to call once the
1594
1730
  * DeleteCommand has been executed.
1595
1731
  */
1596
- deleteDraw(id: string, exeCallback: Function): void;
1732
+ deleteDraw(_id: string, _exeCallback: Function): void;
1597
1733
  /**
1598
1734
  * Delete all Draws from the stage.
1599
1735
  *
1600
- * @param {Function} exeCallback The callback to call once the
1736
+ * @deprecated
1737
+ * @param {Function} _exeCallback The callback to call once the
1601
1738
  * DeleteCommand has been executed.
1602
1739
  */
1603
- deleteDraws(exeCallback: Function): void;
1740
+ deleteDraws(_exeCallback: Function): void;
1604
1741
  /**
1605
1742
  * Get the total number of draws of this layer
1606
1743
  * (at all positions).
@@ -1669,6 +1806,69 @@ export declare class DrawLayer {
1669
1806
  #private;
1670
1807
  }
1671
1808
 
1809
+ /**
1810
+ * Draw shape handler: handle action on existing shapes.
1811
+ */
1812
+ export declare class DrawShapeHandler {
1813
+ /**
1814
+ * @callback eventFn@callback eventFn
1815
+ * @param {object} event The event.
1816
+ */
1817
+ /**
1818
+ * @param {App} app The associated application.
1819
+ * @param {Function} eventCallback Event callback.
1820
+ */
1821
+ constructor(app: App, eventCallback: Function);
1822
+ /**
1823
+ * Set the draw editor shape.
1824
+ *
1825
+ * @param {Konva.Shape} shape The shape to edit.
1826
+ * @param {DrawLayer} drawLayer The layer the shape belongs to.
1827
+ */
1828
+ setEditorShape(shape: Konva.Shape, drawLayer: DrawLayer): void;
1829
+ /**
1830
+ * Get the currently edited shape group.
1831
+ *
1832
+ * @returns {Konva.Group|undefined} The edited group.
1833
+ */
1834
+ getEditorShapeGroup(): Konva.Group | undefined;
1835
+ /**
1836
+ * Get the currently edited annotation.
1837
+ *
1838
+ * @returns {Annotation|undefined} The edited annotation.
1839
+ */
1840
+ getEditorAnnotation(): Annotation | undefined;
1841
+ /**
1842
+ * Disable and reset the shape editor.
1843
+ */
1844
+ disableAndResetEditor(): void;
1845
+ /**
1846
+ * Store specific mouse over cursor.
1847
+ *
1848
+ * @param {string} cursor The cursor name.
1849
+ */
1850
+ storeMouseOverCursor(cursor: string): void;
1851
+ /**
1852
+ * Handle shape group mouseout.
1853
+ */
1854
+ onMouseOutShapeGroup(): void;
1855
+ /**
1856
+ * Add shape group listeners.
1857
+ *
1858
+ * @param {DrawLayer} drawLayer The origin draw layer.
1859
+ * @param {Konva.Group} shapeGroup The shape group to set on.
1860
+ * @param {Annotation} annotation The associated annotation.
1861
+ */
1862
+ addShapeListeners(drawLayer: DrawLayer, shapeGroup: Konva.Group, annotation: Annotation): void;
1863
+ /**
1864
+ * Remove shape group listeners.
1865
+ *
1866
+ * @param {Konva.Group} shapeGroup The shape group to set off.
1867
+ */
1868
+ removeShapeListeners(shapeGroup: Konva.Group): void;
1869
+ #private;
1870
+ }
1871
+
1672
1872
  /**
1673
1873
  * 2D/3D Geometry class.
1674
1874
  */
@@ -4644,12 +4844,6 @@ export declare class ViewController {
4644
4844
  * @returns {string} The unit.
4645
4845
  */
4646
4846
  getPixelUnit(): string;
4647
- /**
4648
- * Get the image study instance UID.
4649
- *
4650
- * @returns {string} The UID.
4651
- */
4652
- getStudyInstanceUID(): string;
4653
4847
  /**
4654
4848
  * Get some values from the associated image in a region.
4655
4849
  *