dwv 0.37.0-beta.2 → 0.37.0-beta.3

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
@@ -4,14 +4,20 @@ import Konva from 'konva';
4
4
  * Add tags to the dictionary.
5
5
  *
6
6
  * @param {string} group The group key.
7
- * @param {Object<string, string[]>} tags The tags to add as an
7
+ * @param {Record<string, string[]>} tags The tags to add as an
8
8
  * object indexed by element key with values as:
9
9
  * [VR, multiplicity, TagName] (all strings).
10
10
  */
11
- export declare function addTagsToDictionary(group: string, tags: {
12
- [x: string]: string[];
13
- }): void;
11
+ export declare function addTagsToDictionary(group: string, tags: Record<string, string[]>): void;
14
12
 
13
+ /**
14
+ * @import {Point2D} from '../math/point.js';
15
+ * @import {Index} from '../math/index.js';
16
+ * @import {Value} from '../math/value.js';
17
+ * @import {ViewController} from '../app/viewController.js';
18
+ * @import {PlaneHelper} from './planeHelper.js';
19
+ * @import {DicomCode} from '../dicom/dicomCode.js';
20
+ */
15
21
  /**
16
22
  * Image annotation.
17
23
  */
@@ -29,7 +35,7 @@ export declare class Annotation {
29
35
  */
30
36
  trackingUid: string;
31
37
  /**
32
- * Referenced image SOP isntance UID.
38
+ * Referenced image SOP instance UID.
33
39
  *
34
40
  * @type {string}
35
41
  */
@@ -67,11 +73,9 @@ export declare class Annotation {
67
73
  /**
68
74
  * Annotation quantification.
69
75
  *
70
- * @type {Object<string, Value>|undefined}
76
+ * @type {Record<string, Value>|undefined}
71
77
  */
72
- quantification: {
73
- [x: string]: Value;
74
- } | undefined;
78
+ quantification: Record<string, Value> | undefined;
75
79
  /**
76
80
  * Text expression. Can contain variables surrounded with '{}' that will
77
81
  * be extracted from the quantification object.
@@ -167,12 +171,10 @@ export declare class Annotation {
167
171
  /**
168
172
  * Set the annotation text expression.
169
173
  *
170
- * @param {Object.<string, string>} labelText The list of label
174
+ * @param {Record<string, string>} labelText The list of label
171
175
  * texts indexed by modality.
172
176
  */
173
- setTextExpr(labelText: {
174
- [x: string]: string;
175
- }): void;
177
+ setTextExpr(labelText: Record<string, string>): void;
176
178
  /**
177
179
  * Get the annotation label text by applying the
178
180
  * text expression on the current quantification.
@@ -279,11 +281,9 @@ export declare class AnnotationGroup {
279
281
  /**
280
282
  * Get the meta data.
281
283
  *
282
- * @returns {Object<string, any>} The meta data.
284
+ * @returns {Record<string, any>} The meta data.
283
285
  */
284
- getMeta(): {
285
- [x: string]: any;
286
- };
286
+ getMeta(): Record<string, any>;
287
287
  /**
288
288
  * Check if this list contains a meta data value.
289
289
  *
@@ -338,64 +338,50 @@ export declare class AnnotationGroupFactory {
338
338
  /**
339
339
  * Check dicom elements.
340
340
  *
341
- * @param {Object<string, DataElement>} dataElements The DICOM data elements.
341
+ * @param {Record<string, DataElement>} dataElements The DICOM data elements.
342
342
  * @returns {string|undefined} A possible warning.
343
343
  */
344
- checkElements(dataElements: {
345
- [x: string]: DataElement;
346
- }): string | undefined;
344
+ checkElements(dataElements: Record<string, DataElement>): string | undefined;
347
345
  /**
348
346
  * Get an {@link AnnotationGroup} object from the read DICOM file.
349
347
  *
350
- * @param {Object<string, DataElement>} dataElements The DICOM tags.
348
+ * @param {Record<string, DataElement>} dataElements The DICOM tags.
351
349
  * @returns {AnnotationGroup} A new annotation group.
352
350
  * @throws {Error} Error for missing or wrong data.
353
351
  */
354
- create(dataElements: {
355
- [x: string]: DataElement;
356
- }): AnnotationGroup;
352
+ create(dataElements: Record<string, DataElement>): AnnotationGroup;
357
353
  /**
358
354
  * Get an {@link CADReport} object from the read DICOM file.
359
355
  *
360
- * @param {Object<string, DataElement>} dataElements The DICOM tags.
356
+ * @param {Record<string, DataElement>} dataElements The DICOM tags.
361
357
  * @returns {CADReport|undefined} A new CAD report.
362
358
  */
363
- createCADReport(dataElements: {
364
- [x: string]: DataElement;
365
- }): CADReport | undefined;
359
+ createCADReport(dataElements: Record<string, DataElement>): CADReport | undefined;
366
360
  /**
367
361
  * Convert an annotation group into a DICOM SR object using the
368
362
  * TID 1500 template.
369
363
  *
370
364
  * @param {AnnotationGroup} annotationGroup The annotation group.
371
- * @param {Object<string, any>} [extraTags] Optional list of extra tags.
372
- * @returns {Object<string, DataElement>} A list of dicom elements.
365
+ * @param {Record<string, any>} [extraTags] Optional list of extra tags.
366
+ * @returns {Record<string, DataElement>} A list of dicom elements.
373
367
  */
374
- toDicom(annotationGroup: AnnotationGroup, extraTags?: {
375
- [x: string]: any;
376
- }): {
377
- [x: string]: DataElement;
378
- };
368
+ toDicom(annotationGroup: AnnotationGroup, extraTags?: Record<string, any>): Record<string, DataElement>;
379
369
  /**
380
370
  * Convert a CAD report into a DICOM CAD report SR object using
381
371
  * the TID 4100 template.
382
372
  *
383
373
  * @param {CADReport} report The CAD report.
384
- * @param {Object<string, any>} [extraTags] Optional list of extra tags.
385
- * @returns {Object<string, DataElement>} A list of dicom elements.
386
- */
387
- toDicomCADReport(report: CADReport, extraTags?: {
388
- [x: string]: any;
389
- }): {
390
- [x: string]: DataElement;
391
- };
374
+ * @param {Record<string, any>} [extraTags] Optional list of extra tags.
375
+ * @returns {Record<string, DataElement>} A list of dicom elements.
376
+ */
377
+ toDicomCADReport(report: CADReport, extraTags?: Record<string, any>): Record<string, DataElement>;
392
378
  #private;
393
379
  }
394
380
 
395
381
  /**
396
382
  * List of ViewConfigs indexed by dataIds.
397
383
  *
398
- * @typedef {Object<string, ViewConfig[]>} DataViewConfigs
384
+ * @typedef {Record<string, ViewConfig[]>} DataViewConfigs
399
385
  */
400
386
  /**
401
387
  * Main application class.
@@ -455,11 +441,9 @@ export declare class App {
455
441
  * Get the meta data.
456
442
  *
457
443
  * @param {string} dataId The data id.
458
- * @returns {Object<string, DataElement>|undefined} The list of meta data.
444
+ * @returns {Record<string, DataElement>|undefined} The list of meta data.
459
445
  */
460
- getMetaData(dataId: string): {
461
- [x: string]: DataElement;
462
- } | undefined;
446
+ getMetaData(dataId: string): Record<string, DataElement> | undefined;
463
447
  /**
464
448
  * Get the list of ids in the data storage.
465
449
  *
@@ -785,20 +769,16 @@ export declare class App {
785
769
  * Get the data view config.
786
770
  * Carefull, returns a reference, do not modify without resetting.
787
771
  *
788
- * @returns {Object<string, ViewConfig[]>} The configuration list.
772
+ * @returns {Record<string, ViewConfig[]>} The configuration list.
789
773
  */
790
- getDataViewConfigs(): {
791
- [x: string]: ViewConfig[];
792
- };
774
+ getDataViewConfigs(): Record<string, ViewConfig[]>;
793
775
  /**
794
776
  * Set the data view configuration.
795
777
  * Resets the stage and recreates all the views.
796
778
  *
797
- * @param {Object<string, ViewConfig[]>} configs The configuration list.
779
+ * @param {Record<string, ViewConfig[]>} configs The configuration list.
798
780
  */
799
- setDataViewConfigs(configs: {
800
- [x: string]: ViewConfig[];
801
- }): void;
781
+ setDataViewConfigs(configs: Record<string, ViewConfig[]>): void;
802
782
  /**
803
783
  * Add a data view config.
804
784
  *
@@ -1038,28 +1018,22 @@ export declare class App {
1038
1018
  */
1039
1019
  export declare class AppOptions {
1040
1020
  /**
1041
- * @param {Object<string, ViewConfig[]>} [dataViewConfigs] Optional dataId
1021
+ * @param {Record<string, ViewConfig[]>} [dataViewConfigs] Optional dataId
1042
1022
  * indexed object containing the data view configurations.
1043
1023
  */
1044
- constructor(dataViewConfigs?: {
1045
- [x: string]: ViewConfig[];
1046
- });
1024
+ constructor(dataViewConfigs?: Record<string, ViewConfig[]>);
1047
1025
  /**
1048
1026
  * DataId indexed object containing the data view configurations.
1049
1027
  *
1050
- * @type {Object<string, ViewConfig[]>|undefined}
1028
+ * @type {Record<string, ViewConfig[]>|undefined}
1051
1029
  */
1052
- dataViewConfigs: {
1053
- [x: string]: ViewConfig[];
1054
- } | undefined;
1030
+ dataViewConfigs: Record<string, ViewConfig[]> | undefined;
1055
1031
  /**
1056
1032
  * Tool name indexed object containing individual tool configurations.
1057
1033
  *
1058
- * @type {Object<string, ToolConfig>|undefined}
1034
+ * @type {Record<string, ToolConfig>|undefined}
1059
1035
  */
1060
- tools: {
1061
- [x: string]: ToolConfig;
1062
- } | undefined;
1036
+ tools: Record<string, ToolConfig> | undefined;
1063
1037
  /**
1064
1038
  * Optional array of layerGroup binder names.
1065
1039
  *
@@ -1146,6 +1120,11 @@ export declare class CADReport {
1146
1120
  comment: string;
1147
1121
  }
1148
1122
 
1123
+ /**
1124
+ * @import {Image} from '../image/image.js';
1125
+ * @import {MaskSegment} from '../dicom/dicomSegment.js';
1126
+ * @import {RGB} from '../utils/colour.js';
1127
+ */
1149
1128
  /**
1150
1129
  * Change segment colour command.
1151
1130
  */
@@ -1247,11 +1226,9 @@ export declare class Circle {
1247
1226
  * @param {Index} index The index at which to get the
1248
1227
  * image values.
1249
1228
  * @param {string[]} flags A list of stat values to calculate.
1250
- * @returns {Object<string, Value>} A quantification object.
1229
+ * @returns {Record<string, Value>} A quantification object.
1251
1230
  */
1252
- quantify(viewController: ViewController, index: Index, flags: string[]): {
1253
- [x: string]: Value;
1254
- };
1231
+ quantify(viewController: ViewController, index: Index, flags: string[]): Record<string, Value>;
1255
1232
  #private;
1256
1233
  }
1257
1234
 
@@ -1309,45 +1286,31 @@ export declare class Command {
1309
1286
  /**
1310
1287
  * Create an Image from DICOM elements.
1311
1288
  *
1312
- * @param {Object<string, DataElement>} elements The DICOM elements.
1289
+ * @param {Record<string, DataElement>} elements The DICOM elements.
1313
1290
  * @returns {Image} The Image object.
1314
1291
  */
1315
- export declare function createImage(elements: {
1316
- [x: string]: DataElement;
1317
- }): Image_2;
1292
+ export declare function createImage(elements: Record<string, DataElement>): Image_2;
1318
1293
 
1319
1294
  /**
1320
1295
  * Create a mask Image from DICOM elements.
1321
1296
  *
1322
- * @param {Object<string, DataElement>} elements The DICOM elements.
1297
+ * @param {Record<string, DataElement>} elements The DICOM elements.
1323
1298
  * @returns {Image} The mask Image object.
1324
1299
  */
1325
- export declare function createMaskImage(elements: {
1326
- [x: string]: DataElement;
1327
- }): Image_2;
1300
+ export declare function createMaskImage(elements: Record<string, DataElement>): Image_2;
1328
1301
 
1329
1302
  /**
1330
1303
  * Create a View from DICOM elements and image.
1331
1304
  *
1332
- * @param {Object<string, DataElement>} elements The DICOM elements.
1305
+ * @param {Record<string, DataElement>} elements The DICOM elements.
1333
1306
  * @param {Image} image The associated image.
1334
1307
  * @returns {View} The View object.
1335
1308
  */
1336
- export declare function createView(elements: {
1337
- [x: string]: DataElement;
1338
- }, image: Image_2): View;
1309
+ export declare function createView(elements: Record<string, DataElement>, image: Image_2): View;
1339
1310
 
1340
1311
  export declare namespace custom {
1341
- let wlPresets: {
1342
- [x: string]: {
1343
- [x: string]: WindowLevel;
1344
- };
1345
- };
1346
- let labelTexts: {
1347
- [x: string]: {
1348
- [x: string]: string;
1349
- };
1350
- };
1312
+ let wlPresets: Record<string, Record<string, WindowLevel>>;
1313
+ let labelTexts: Record<string, Record<string, string>>;
1351
1314
  let privateBValueRules: object[];
1352
1315
  let openRoiDialog: any;
1353
1316
  let getVolumeIdTagValue: any;
@@ -1355,6 +1318,9 @@ export declare namespace custom {
1355
1318
  let getTagPixelUnit: any;
1356
1319
  }
1357
1320
 
1321
+ /**
1322
+ * @import {Tag} from './dicomTag.js';
1323
+ */
1358
1324
  /**
1359
1325
  * DICOM data element.
1360
1326
  */
@@ -1416,23 +1382,21 @@ export declare class DataElement {
1416
1382
  /**
1417
1383
  * Default tool list.
1418
1384
  *
1419
- * @type {Object<string, any>}
1385
+ * @type {Record<string, any>}
1420
1386
  */
1421
- export declare const defaultToolList: {
1422
- [x: string]: any;
1423
- };
1387
+ export declare const defaultToolList: Record<string, any>;
1424
1388
 
1425
1389
  /**
1426
1390
  * Default tool options.
1427
1391
  *
1428
- * @type {Object<string, Object<string, any>>}
1392
+ * @type {Record<string, Record<string, any>>}
1429
1393
  */
1430
- export declare const defaultToolOptions: {
1431
- [x: string]: {
1432
- [x: string]: any;
1433
- };
1434
- };
1394
+ export declare const defaultToolOptions: Record<string, Record<string, any>>;
1435
1395
 
1396
+ /**
1397
+ * @import {Image} from '../image/image.js';
1398
+ * @import {MaskSegment} from '../dicom/dicomSegment.js';
1399
+ */
1436
1400
  /**
1437
1401
  * Delete segment command.
1438
1402
  */
@@ -1464,6 +1428,10 @@ export declare class DeleteSegmentCommand extends Command {
1464
1428
  #private;
1465
1429
  }
1466
1430
 
1431
+ /**
1432
+ * @import {Point} from '../math/point.js';
1433
+ * @import {Value} from '../math/value.js';
1434
+ */
1467
1435
  /**
1468
1436
  * Diameter type.
1469
1437
  */
@@ -1561,19 +1529,15 @@ export declare class DicomCode {
1561
1529
  */
1562
1530
  export declare class DicomData {
1563
1531
  /**
1564
- * @param {Object<string, DataElement>} meta The DICOM meta data.
1532
+ * @param {Record<string, DataElement>} meta The DICOM meta data.
1565
1533
  */
1566
- constructor(meta: {
1567
- [x: string]: DataElement;
1568
- });
1534
+ constructor(meta: Record<string, DataElement>);
1569
1535
  /**
1570
1536
  * DICOM meta data.
1571
1537
  *
1572
- * @type {Object<string, DataElement>}
1538
+ * @type {Record<string, DataElement>}
1573
1539
  */
1574
- meta: {
1575
- [x: string]: DataElement;
1576
- };
1540
+ meta: Record<string, DataElement>;
1577
1541
  /**
1578
1542
  * Image extracted from meta data.
1579
1543
  *
@@ -1680,11 +1644,9 @@ export declare class DicomParser {
1680
1644
  /**
1681
1645
  * Get the DICOM data elements.
1682
1646
  *
1683
- * @returns {Object<string, DataElement>} The data elements.
1647
+ * @returns {Record<string, DataElement>} The data elements.
1684
1648
  */
1685
- getDicomElements(): {
1686
- [x: string]: DataElement;
1687
- };
1649
+ getDicomElements(): Record<string, DataElement>;
1688
1650
  /**
1689
1651
  * Safely get an elements' first value from the parsed elements.
1690
1652
  *
@@ -1814,14 +1776,12 @@ export declare class DicomWriter {
1814
1776
  * First checked by tagKey, tagName and then by groupName,
1815
1777
  * if nothing is found the default rule is applied.
1816
1778
  *
1817
- * @param {Object<string, WriterRule>} rules The input rules.
1779
+ * @param {Record<string, WriterRule>} rules The input rules.
1818
1780
  * @param {boolean} [addMissingTags] If true, explicit tags that
1819
1781
  * have replace rule and a value will be
1820
1782
  * added if missing. Defaults to false.
1821
1783
  */
1822
- setRules(rules: {
1823
- [x: string]: WriterRule;
1824
- }, addMissingTags?: boolean): void;
1784
+ setRules(rules: Record<string, WriterRule>, addMissingTags?: boolean): void;
1825
1785
  /**
1826
1786
  * Use a TextEncoder instead of the default text decoder.
1827
1787
  */
@@ -1837,15 +1797,63 @@ export declare class DicomWriter {
1837
1797
  /**
1838
1798
  * Get the ArrayBuffer corresponding to input DICOM elements.
1839
1799
  *
1840
- * @param {Object<string, DataElement>} dataElements The elements to write.
1800
+ * @param {Record<string, DataElement>} dataElements The elements to write.
1841
1801
  * @returns {ArrayBuffer} The elements as a buffer.
1842
1802
  */
1843
- getBuffer(dataElements: {
1844
- [x: string]: DataElement;
1845
- }): ArrayBuffer;
1803
+ getBuffer(dataElements: Record<string, DataElement>): ArrayBuffer;
1846
1804
  #private;
1847
1805
  }
1848
1806
 
1807
+ /**
1808
+ * Draw brush command.
1809
+ */
1810
+ export declare class DrawBrushCommand extends Command {
1811
+ /**
1812
+ * @param {DrawBrushCommandProperties} properties The command properties.
1813
+ */
1814
+ constructor(properties: DrawBrushCommandProperties);
1815
+ /**
1816
+ * Get the original values before applying brush.
1817
+ *
1818
+ * @returns {Array|undefined} Lists of original value iterators,
1819
+ * undefined when erasing.
1820
+ */
1821
+ getOriginalValuesLists(): any[] | undefined;
1822
+ /**
1823
+ * Get the execute event.
1824
+ *
1825
+ * @returns {CustomEvent} The event.
1826
+ */
1827
+ getExecuteEvent(): CustomEvent;
1828
+ /**
1829
+ * Handle an execute event.
1830
+ *
1831
+ * @param {CustomEvent} _event The execute event with type and id.
1832
+ */
1833
+ onExecute(_event: CustomEvent): void;
1834
+ /**
1835
+ * Handle an undo event.
1836
+ *
1837
+ * @param {CustomEvent} _event The undo event with type and id.
1838
+ */
1839
+ onUndo(_event: CustomEvent): void;
1840
+ #private;
1841
+ }
1842
+
1843
+ export declare class DrawBrushCommandProperties {
1844
+ mask: any;
1845
+ dataId: any;
1846
+ offsetsLists: any;
1847
+ mode: any;
1848
+ segmentNumber: any;
1849
+ srclayerid: any;
1850
+ originalValuesLists: any;
1851
+ isSilent: any;
1852
+ }
1853
+
1854
+ /**
1855
+ * @import {Annotation} from '../image/annotation.js';
1856
+ */
1849
1857
  /**
1850
1858
  * Draw controller.
1851
1859
  */
@@ -1941,6 +1949,15 @@ export declare class DrawController {
1941
1949
  #private;
1942
1950
  }
1943
1951
 
1952
+ /**
1953
+ * @import {Point, Point3D} from '../math/point.js';
1954
+ * @import {Vector3D} from '../math/vector.js';
1955
+ * @import {Scalar2D, Scalar3D} from '../math/scalar.js';
1956
+ * @import {Image} from '../image/image.js';
1957
+ * @import {PlaneHelper} from '../image/planeHelper.js';
1958
+ * @import {AnnotationGroup} from '../image/annotationGroup.js';
1959
+ * @import {DrawShapeHandler} from '../tools/shapes/drawShapeHandler.js';
1960
+ */
1944
1961
  /**
1945
1962
  * Debug function to output the layer hierarchy as text.
1946
1963
  *
@@ -2215,16 +2232,11 @@ export declare class DrawLayer {
2215
2232
  /**
2216
2233
  * Draw shape handler: handle action on existing shapes.
2217
2234
  */
2218
- export declare class DrawShapeHandler {
2219
- /**
2220
- * @callback eventFn@callback eventFn
2221
- * @param {object} event The event.
2222
- */
2235
+ export declare class DrawShapeHandler extends EventTarget {
2223
2236
  /**
2224
2237
  * @param {App} app The associated application.
2225
- * @param {Function} eventCallback Event callback.
2226
2238
  */
2227
- constructor(app: App, eventCallback: Function);
2239
+ constructor(app: App);
2228
2240
  /**
2229
2241
  * Set the draw editor shape.
2230
2242
  *
@@ -2351,11 +2363,9 @@ export declare class Ellipse {
2351
2363
  * @param {Index} index The index at which to get the
2352
2364
  * image values.
2353
2365
  * @param {string[]} flags A list of stat values to calculate.
2354
- * @returns {Object<string, Value>} A quantification object.
2366
+ * @returns {Record<string, Value>} A quantification object.
2355
2367
  */
2356
- quantify(viewController: ViewController, index: Index, flags: string[]): {
2357
- [x: string]: Value;
2358
- };
2368
+ quantify(viewController: ViewController, index: Index, flags: string[]): Record<string, Value>;
2359
2369
  #private;
2360
2370
  }
2361
2371
 
@@ -2597,15 +2607,11 @@ export declare class Geometry {
2597
2607
  * - indexed by tag names instead of tag keys,
2598
2608
  * - no element object, just value if not sequence nor merged item.
2599
2609
  *
2600
- * @param {Object<string, DataElement>} metaData The meta data
2610
+ * @param {Record<string, DataElement>} metaData The meta data
2601
2611
  * index by tag keys.
2602
- * @returns {Object<string, any>} The simple elements.
2612
+ * @returns {Record<string, any>} The simple elements.
2603
2613
  */
2604
- export declare function getAsSimpleElements(metaData: {
2605
- [x: string]: DataElement;
2606
- }): {
2607
- [x: string]: any;
2608
- };
2614
+ export declare function getAsSimpleElements(metaData: Record<string, DataElement>): Record<string, any>;
2609
2615
 
2610
2616
  /**
2611
2617
  * Get the default DICOM seg tags as an object.
@@ -2618,17 +2624,15 @@ export declare function getDefaultDicomSegJson(): object;
2618
2624
  * Get a simple dicom element item from a content item object.
2619
2625
  *
2620
2626
  * @param {DicomSRContent} content The content item object.
2621
- * @returns {Object<string, any>} The item as a list of (key, value) pairs.
2627
+ * @returns {Record<string, any>} The item as a list of (key, value) pairs.
2622
2628
  */
2623
- export declare function getDicomSRContentItem(content: DicomSRContent): {
2624
- [x: string]: any;
2625
- };
2629
+ export declare function getDicomSRContentItem(content: DicomSRContent): Record<string, any>;
2626
2630
 
2627
2631
  /**
2628
2632
  * List of DICOM data elements indexed via a 8 character string formed from
2629
2633
  * the group and element numbers.
2630
2634
  *
2631
- * @typedef {Object<string, DataElement>} DataElements
2635
+ * @typedef {Record<string, DataElement>} DataElements
2632
2636
  */
2633
2637
  /**
2634
2638
  * Get the version of the library.
@@ -2643,15 +2647,11 @@ export declare function getDwvVersion(): string;
2643
2647
  * tag names instead of keys and direct values (no value property) for
2644
2648
  * simple tags. See synthetic test data (in tests/dicom) for examples.
2645
2649
  *
2646
- * @param {Object<string, any>} simpleTags The 'simple' DICOM
2650
+ * @param {Record<string, any>} simpleTags The 'simple' DICOM
2647
2651
  * tags object.
2648
- * @returns {Object<string, DataElement>} The DICOM elements.
2652
+ * @returns {Record<string, DataElement>} The DICOM elements.
2649
2653
  */
2650
- export declare function getElementsFromJSONTags(simpleTags: {
2651
- [x: string]: any;
2652
- }): {
2653
- [x: string]: DataElement;
2654
- };
2654
+ export declare function getElementsFromJSONTags(simpleTags: Record<string, any>): Record<string, DataElement>;
2655
2655
 
2656
2656
  /**
2657
2657
  * Get the indices that form a ellpise.
@@ -2676,12 +2676,10 @@ export declare function getLayerDetailsFromEvent(event: object): object;
2676
2676
  /**
2677
2677
  * Get the manufacturer.
2678
2678
  *
2679
- * @param {Object<string, DataElement>} elements The DICOM tags.
2679
+ * @param {Record<string, DataElement>} elements The DICOM tags.
2680
2680
  * @returns {string|undefined} The manufacturer.
2681
2681
  */
2682
- export declare function getManufacturer(elements: {
2683
- [x: string]: DataElement;
2684
- }): string | undefined;
2682
+ export declare function getManufacturer(elements: Record<string, DataElement>): string | undefined;
2685
2683
 
2686
2684
  /**
2687
2685
  * Get the offset of an input mouse event.
@@ -2694,13 +2692,11 @@ export declare function getMousePoint(event: object): Point2D;
2694
2692
  /**
2695
2693
  * Get the normalised manufacturer.
2696
2694
  *
2697
- * @param {Object<string, DataElement>} elements The DICOM tags.
2695
+ * @param {Record<string, DataElement>} elements The DICOM tags.
2698
2696
  * @returns {string|undefined} The manufacturer as a unique
2699
2697
  * all lower case string.
2700
2698
  */
2701
- export declare function getNormalisedManufacturer(elements: {
2702
- [x: string]: DataElement;
2703
- }): string | undefined;
2699
+ export declare function getNormalisedManufacturer(elements: Record<string, DataElement>): string | undefined;
2704
2700
 
2705
2701
  /**
2706
2702
  * Get the name of an image orientation patient.
@@ -2732,12 +2728,10 @@ export declare function getRectangleIndices(center: Index, size: number[], dir:
2732
2728
  /**
2733
2729
  * Get the referenced series UID from the data elements.
2734
2730
  *
2735
- * @param {Object<string, DataElement>} dataElements The data elements.
2731
+ * @param {Record<string, DataElement>} dataElements The data elements.
2736
2732
  * @returns {string|undefined} The referenced series UID.
2737
2733
  */
2738
- export declare function getReferencedSeriesUID(dataElements: {
2739
- [x: string]: DataElement;
2740
- }): string | undefined;
2734
+ export declare function getReferencedSeriesUID(dataElements: Record<string, DataElement>): string | undefined;
2741
2735
 
2742
2736
  /**
2743
2737
  * Get patient orientation label in the reverse direction.
@@ -2757,12 +2751,10 @@ export declare function getSegmentationCode(): DicomCode;
2757
2751
  /**
2758
2752
  * Get a content item object from a dicom element.
2759
2753
  *
2760
- * @param {Object<string, DataElement>} dataElements The dicom element.
2754
+ * @param {Record<string, DataElement>} dataElements The dicom element.
2761
2755
  * @returns {DicomSRContent} A content item object.
2762
2756
  */
2763
- export declare function getSRContent(dataElements: {
2764
- [x: string]: DataElement;
2765
- }): DicomSRContent;
2757
+ export declare function getSRContent(dataElements: Record<string, DataElement>): DicomSRContent;
2766
2758
 
2767
2759
  /**
2768
2760
  * Split a group-element key used to store DICOM elements.
@@ -3069,19 +3061,15 @@ declare class Image_2 {
3069
3061
  /**
3070
3062
  * Get the meta information of the image.
3071
3063
  *
3072
- * @returns {Object<string, any>} The meta information of the image.
3064
+ * @returns {Record<string, any>} The meta information of the image.
3073
3065
  */
3074
- getMeta(): {
3075
- [x: string]: any;
3076
- };
3066
+ getMeta(): Record<string, any>;
3077
3067
  /**
3078
3068
  * Set the meta information of the image.
3079
3069
  *
3080
- * @param {Object<string, any>} rhs The meta information of the image.
3070
+ * @param {Record<string, any>} rhs The meta information of the image.
3081
3071
  */
3082
- setMeta(rhs: {
3083
- [x: string]: any;
3084
- }): void;
3072
+ setMeta(rhs: Record<string, any>): void;
3085
3073
  /**
3086
3074
  * Get value at offset. Warning: No size check...
3087
3075
  *
@@ -3454,11 +3442,9 @@ export declare class InfoData {
3454
3442
  /**
3455
3443
  * @param {App} app The associated application.
3456
3444
  * @param {string} dataId The associated data id.
3457
- * @param {Object<string, InfoDataItem[]>} configs The info data config.
3445
+ * @param {Record<string, InfoDataItem[]>} configs The info data config.
3458
3446
  */
3459
- constructor(app: App, dataId: string, configs: {
3460
- [x: string]: InfoDataItem[];
3461
- });
3447
+ constructor(app: App, dataId: string, configs: Record<string, InfoDataItem[]>);
3462
3448
  /**
3463
3449
  * Reset the data.
3464
3450
  */
@@ -3466,11 +3452,9 @@ export declare class InfoData {
3466
3452
  /**
3467
3453
  * Handle a new loaded item event.
3468
3454
  *
3469
- * @param {Object<string, DataElement>} data The item meta data.
3455
+ * @param {Record<string, DataElement>} data The item meta data.
3470
3456
  */
3471
- addItemMeta(data: {
3472
- [x: string]: DataElement;
3473
- }): void;
3457
+ addItemMeta(data: Record<string, DataElement>): void;
3474
3458
  /**
3475
3459
  * Handle a changed slice event.
3476
3460
  *
@@ -3510,6 +3494,10 @@ export declare class InfoData {
3510
3494
  #private;
3511
3495
  }
3512
3496
 
3497
+ /**
3498
+ * @import {App} from '../app/application.js';
3499
+ * @import {DataElement} from '../dicom/dataElement.js';
3500
+ */
3513
3501
  /**
3514
3502
  * Info data item class.
3515
3503
  */
@@ -4044,21 +4032,45 @@ export declare namespace logger {
4044
4032
  let ERROR: number;
4045
4033
  }
4046
4034
  let level: number;
4035
+ /**
4036
+ * Log a trace message.
4037
+ *
4038
+ * @param {string} msg The message to log.
4039
+ */
4047
4040
  export function trace(msg: string): void;
4041
+ /**
4042
+ * Log a debug message.
4043
+ * Careful: depends on console settings.
4044
+ *
4045
+ * @param {string} msg The message to log.
4046
+ */
4048
4047
  export function debug(msg: string): void;
4048
+ /**
4049
+ * Log an info message.
4050
+ *
4051
+ * @param {string} msg The message to log.
4052
+ */
4049
4053
  export function info(msg: string): void;
4054
+ /**
4055
+ * Log a warn message.
4056
+ *
4057
+ * @param {string} msg The message to log.
4058
+ */
4050
4059
  export function warn(msg: string): void;
4060
+ /**
4061
+ * Log an error message.
4062
+ *
4063
+ * @param {string} msg The message to log.
4064
+ */
4051
4065
  export function error(msg: string): void;
4052
4066
  }
4053
4067
 
4054
4068
  /**
4055
4069
  * List of available lookup tables (lut).
4056
4070
  *
4057
- * @type {Object<string, ColourMap>}
4071
+ * @type {Record<string, ColourMap>}
4058
4072
  */
4059
- export declare const luts: {
4060
- [x: string]: ColourMap;
4061
- };
4073
+ export declare const luts: Record<string, ColourMap>;
4062
4074
 
4063
4075
  /**
4064
4076
  * Mask {@link Image} factory.
@@ -4074,16 +4086,14 @@ export declare class MaskFactory {
4074
4086
  /**
4075
4087
  * Check dicom elements.
4076
4088
  *
4077
- * @param {Object<string, DataElement>} _dicomElements The DICOM tags.
4089
+ * @param {Record<string, DataElement>} _dicomElements The DICOM tags.
4078
4090
  * @returns {string|undefined} A possible warning.
4079
4091
  */
4080
- checkElements(_dicomElements: {
4081
- [x: string]: DataElement;
4082
- }): string | undefined;
4092
+ checkElements(_dicomElements: Record<string, DataElement>): string | undefined;
4083
4093
  /**
4084
4094
  * Get an {@link Image} object from the read DICOM file.
4085
4095
  *
4086
- * @param {Object<string, DataElement>} dataElements The DICOM tags.
4096
+ * @param {Record<string, DataElement>} dataElements The DICOM tags.
4087
4097
  * @param {Uint8Array | Int8Array |
4088
4098
  * Uint16Array | Int16Array |
4089
4099
  * Uint32Array | Int32Array} pixelBuffer The pixel buffer.
@@ -4092,23 +4102,17 @@ export declare class MaskFactory {
4092
4102
  * @returns {Image} A new Image.
4093
4103
  * @throws {Error} Error for missing or wrong data.
4094
4104
  */
4095
- create(dataElements: {
4096
- [x: string]: DataElement;
4097
- }, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array, refImage?: Image_2): Image_2;
4105
+ create(dataElements: Record<string, DataElement>, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array, refImage?: Image_2): Image_2;
4098
4106
  /**
4099
4107
  * Convert a mask image into a DICOM segmentation object.
4100
4108
  *
4101
4109
  * @param {Image} image The mask image.
4102
4110
  * @param {MaskSegment[]} segments The mask segments.
4103
4111
  * @param {Image} sourceImage The source image.
4104
- * @param {Object<string, any>} [extraTags] Optional list of extra tags.
4105
- * @returns {Object<string, DataElement>} A list of dicom elements.
4106
- */
4107
- toDicom(image: Image_2, segments: MaskSegment[], sourceImage: Image_2, extraTags?: {
4108
- [x: string]: any;
4109
- }): {
4110
- [x: string]: DataElement;
4111
- };
4112
+ * @param {Record<string, any>} [extraTags] Optional list of extra tags.
4113
+ * @returns {Record<string, DataElement>} A list of dicom elements.
4114
+ */
4115
+ toDicom(image: Image_2, segments: MaskSegment[], sourceImage: Image_2, extraTags?: Record<string, any>): Record<string, DataElement>;
4112
4116
  #private;
4113
4117
  }
4114
4118
 
@@ -4188,6 +4192,10 @@ export declare class MaskSegment {
4188
4192
  trackingId: string | undefined;
4189
4193
  }
4190
4194
 
4195
+ /**
4196
+ * @import {Image} from './image.js';
4197
+ * @import {MaskSegment} from '../dicom/dicomSegment.js';
4198
+ */
4191
4199
  /**
4192
4200
  * Mask segment helper: helps handling the segments list,
4193
4201
  * but does *NOT* update the associated mask (use special commands
@@ -4264,7 +4272,7 @@ export declare class MaskSegmentHelper {
4264
4272
  *
4265
4273
  * @typedef Overlap@typedef Overlap
4266
4274
  * @property {string} label The segment label.
4267
- * @property {Object.<number, OverlapCount>} overlap A Dictionary
4275
+ * @property {Record<number, OverlapCount>} overlap A Dictionary
4268
4276
  * containing the counts. The key is the segment number of the overlapping
4269
4277
  * segment.
4270
4278
  * @property {number} count The voxel volume of this segment.
@@ -4276,7 +4284,7 @@ export declare class MaskSegmentHelper {
4276
4284
  * The value is a Dictionary of all of the segments in the second set
4277
4285
  * that overlap with the key segment.
4278
4286
  *
4279
- * @typedef {Object.<number, Overlap>} OverlapMap
4287
+ * @typedef {Record<number, Overlap>} OverlapMap
4280
4288
  */
4281
4289
  /**
4282
4290
  * Find the overlap for each segment between two segmentation masks.
@@ -4287,39 +4295,35 @@ export declare class MaskSegmentHelper {
4287
4295
  * @returns {OverlapMap} The overlapping voxel counts. First level is the
4288
4296
  * segments from this image, second level is the compare image segments.
4289
4297
  */
4290
- findOverlap(rhs: MaskSegmentHelper): {
4291
- [x: number]: {
4298
+ findOverlap(rhs: MaskSegmentHelper): Record<number, {
4299
+ /**
4300
+ * The segment label.
4301
+ */
4302
+ label: string;
4303
+ /**
4304
+ * A Dictionary
4305
+ * containing the counts. The key is the segment number of the overlapping
4306
+ * segment.
4307
+ */
4308
+ overlap: Record<number, {
4292
4309
  /**
4293
4310
  * The segment label.
4294
4311
  */
4295
4312
  label: string;
4296
4313
  /**
4297
- * A Dictionary
4298
- * containing the counts. The key is the segment number of the overlapping
4299
- * segment.
4314
+ * The number of overlapping voxels.
4300
4315
  */
4301
- overlap: {
4302
- [x: number]: {
4303
- /**
4304
- * The segment label.
4305
- */
4306
- label: string;
4307
- /**
4308
- * The number of overlapping voxels.
4309
- */
4310
- count: number;
4311
- /**
4312
- * The overlap percentage between 0 and 100.
4313
- */
4314
- percentage: number;
4315
- };
4316
- };
4316
+ count: number;
4317
4317
  /**
4318
- * The voxel volume of this segment.
4318
+ * The overlap percentage between 0 and 100.
4319
4319
  */
4320
- count: number;
4321
- };
4322
- };
4320
+ percentage: number;
4321
+ }>;
4322
+ /**
4323
+ * The voxel volume of this segment.
4324
+ */
4325
+ count: number;
4326
+ }>;
4323
4327
  #private;
4324
4328
  }
4325
4329
 
@@ -4515,6 +4519,14 @@ export declare namespace Orientation {
4515
4519
  let Sagittal: string;
4516
4520
  }
4517
4521
 
4522
+ /**
4523
+ * @import {Point} from '../math/point.js';
4524
+ * @import {Index} from '../math/index.js';
4525
+ * @import {Geometry} from '../image/geometry.js';
4526
+ * @import {Matrix33} from '../math/matrix.js';
4527
+ * @import {Spacing} from './spacing.js';
4528
+ * @import {Scalar2D, Scalar3D} from '../math/scalar.js';
4529
+ */
4518
4530
  /**
4519
4531
  * Plane geometry helper.
4520
4532
  */
@@ -5055,6 +5067,11 @@ export declare class PositionHelper {
5055
5067
  */
5056
5068
  export declare function precisionRound(number: number, precision: number): number;
5057
5069
 
5070
+ /**
5071
+ * @import {Point2D} from '../math/point.js';
5072
+ * @import {Value} from './value.js';
5073
+ * @import {ViewController} from '../app/viewController.js';
5074
+ */
5058
5075
  /**
5059
5076
  * Protractor shape: 3 points from which to calculate an angle.
5060
5077
  */
@@ -5089,11 +5106,9 @@ export declare class Protractor {
5089
5106
  *
5090
5107
  * @param {ViewController} _viewController The associated view controller.
5091
5108
  * @param {string[]} _flags A list of stat values to calculate.
5092
- * @returns {Object<string, Value>} A quantification object.
5109
+ * @returns {Record<string, Value>} A quantification object.
5093
5110
  */
5094
- quantify(_viewController: ViewController, _flags: string[]): {
5095
- [x: string]: Value;
5096
- };
5111
+ quantify(_viewController: ViewController, _flags: string[]): Record<string, Value>;
5097
5112
  #private;
5098
5113
  }
5099
5114
 
@@ -5184,11 +5199,9 @@ export declare class Rectangle {
5184
5199
  * @param {Index} index The index at which to get the
5185
5200
  * image values.
5186
5201
  * @param {string[]} flags A list of stat values to calculate.
5187
- * @returns {Object<string, Value>} A quantification object.
5202
+ * @returns {Record<string, Value>} A quantification object.
5188
5203
  */
5189
- quantify(viewController: ViewController, index: Index, flags: string[]): {
5190
- [x: string]: Value;
5191
- };
5204
+ quantify(viewController: ViewController, index: Index, flags: string[]): Record<string, Value>;
5192
5205
  #private;
5193
5206
  }
5194
5207
 
@@ -5254,6 +5267,9 @@ export declare class ResponseEvaluation {
5254
5267
  measure: number;
5255
5268
  }
5256
5269
 
5270
+ /**
5271
+ * @import {Scalar3D} from '../math/scalar.js';
5272
+ */
5257
5273
  /**
5258
5274
  * RGB colour class.
5259
5275
  */
@@ -5344,6 +5360,34 @@ export declare class ROI {
5344
5360
  #private;
5345
5361
  }
5346
5362
 
5363
+ /**
5364
+ * @import {App} from '../app/application.js';
5365
+ */
5366
+ /**
5367
+ * Run filter command.
5368
+ */
5369
+ export declare class RunFilterCommand extends Command {
5370
+ /**
5371
+ * @param {object} filter The filter to run.
5372
+ * @param {string} dataId The data to filter.
5373
+ * @param {App} app The associated application.
5374
+ */
5375
+ constructor(filter: object, dataId: string, app: App);
5376
+ /**
5377
+ * Handle an execute event.
5378
+ *
5379
+ * @param {object} _event The execute event with type and id.
5380
+ */
5381
+ onExecute(_event: object): void;
5382
+ /**
5383
+ * Handle an undo event.
5384
+ *
5385
+ * @param {object} _event The undo event with type and id.
5386
+ */
5387
+ onUndo(_event: object): void;
5388
+ #private;
5389
+ }
5390
+
5347
5391
  /**
5348
5392
  * Mutable 2D scalar ({x,y}).
5349
5393
  */
@@ -5387,23 +5431,15 @@ export declare class Scalar3D {
5387
5431
  }
5388
5432
 
5389
5433
  /**
5390
- * Scroll wheel class: provides a wheel event handler
5391
- * that scroll the corresponding data.
5434
+ * Slice / dimension scrolling on wheel ticks.
5392
5435
  */
5393
- export declare class ScrollWheel {
5394
- /**
5395
- * @param {App} app The associated application.
5396
- */
5397
- constructor(app: App);
5398
- /**
5399
- * Handle mouse wheel event.
5400
- *
5401
- * @param {WheelEvent} event The mouse wheel event.
5402
- */
5403
- wheel(event: WheelEvent): void;
5404
- #private;
5436
+ export declare class ScrollWheelBehavior extends WheelBehavior {
5405
5437
  }
5406
5438
 
5439
+ /**
5440
+ * @import {Matrix33} from '../math/matrix.js';
5441
+ * @import {Scalar2D} from '../math/scalar.js';
5442
+ */
5407
5443
  /**
5408
5444
  * Immutable Size class.
5409
5445
  * Warning: the input array is NOT cloned, modifying it will
@@ -5531,6 +5567,9 @@ export declare class Size {
5531
5567
  #private;
5532
5568
  }
5533
5569
 
5570
+ /**
5571
+ * @import {Scalar2D} from '../math/scalar.js';
5572
+ */
5534
5573
  /**
5535
5574
  * Immutable Spacing class.
5536
5575
  * Warning: the input array is NOT cloned, modifying it will
@@ -5590,6 +5629,9 @@ export declare class Spacing {
5590
5629
  */
5591
5630
  export declare function srgbToCielab(triplet: RGB): object;
5592
5631
 
5632
+ /**
5633
+ * @import {DataElement} from '../dicom/dataElement.js';
5634
+ */
5593
5635
  /**
5594
5636
  * Immutable tag.
5595
5637
  */
@@ -5674,6 +5716,11 @@ export declare class Tag {
5674
5716
  #private;
5675
5717
  }
5676
5718
 
5719
+ /**
5720
+ * @import {LayerGroup} from '../gui/layerGroup.js';
5721
+ * @import {ViewLayer} from '../gui/viewLayer.js';
5722
+ * @import {DrawLayer} from '../gui/drawLayer.js';
5723
+ */
5677
5724
  /**
5678
5725
  * Toolbox controller.
5679
5726
  */
@@ -5791,11 +5838,9 @@ export declare class ToolConfig {
5791
5838
  * 'https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm'
5792
5839
  * ]);
5793
5840
  *
5794
- * @type {Object<string, any>}
5841
+ * @type {Record<string, any>}
5795
5842
  */
5796
- export declare const toolList: {
5797
- [x: string]: any;
5798
- };
5843
+ export declare const toolList: Record<string, any>;
5799
5844
 
5800
5845
  /**
5801
5846
  * List of client provided tool options to be added to
@@ -5809,7 +5854,6 @@ export declare const toolList: {
5809
5854
  * getName() {return 'love';}
5810
5855
  * static supports(mathShape) {return mathShape instanceof ROI;}
5811
5856
  * getNPoints() {return 1;}
5812
- * getTimeout() {return 0;}
5813
5857
  * setAnnotationMathShape(annotation, points) {
5814
5858
  * const px = points[0].getX();
5815
5859
  * const py = points[0].getY();
@@ -5862,13 +5906,9 @@ export declare const toolList: {
5862
5906
  * 'https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm'
5863
5907
  * ]);
5864
5908
  *
5865
- * @type {Object<string, Object<string, any>>}
5909
+ * @type {Record<string, Record<string, any>>}
5866
5910
  */
5867
- export declare const toolOptions: {
5868
- [x: string]: {
5869
- [x: string]: any;
5870
- };
5871
- };
5911
+ export declare const toolOptions: Record<string, Record<string, any>>;
5872
5912
 
5873
5913
  /**
5874
5914
  * Class to store a value and a unit.
@@ -6279,6 +6319,16 @@ export declare class View {
6279
6319
  #private;
6280
6320
  }
6281
6321
 
6322
+ /**
6323
+ * @import {LayerGroup} from '../gui/layerGroup.js';
6324
+ * @import {ViewLayer} from '../gui/viewLayer.js';
6325
+ * @import {DrawLayer} from '../gui/drawLayer.js';
6326
+ * @import {Image} from '../image/image.js';
6327
+ * @import {Matrix33} from '../math/matrix.js';
6328
+ * @import {DataElement} from '../dicom/dataElement.js';
6329
+ * @import {Scalar3D} from '../math/scalar.js';
6330
+ * @import {Command} from '../command/undoStack.js';
6331
+ */
6282
6332
  /**
6283
6333
  * View configuration: mainly defines the ´divId´
6284
6334
  * of the associated HTML div.
@@ -6347,6 +6397,15 @@ export declare class ViewConfig {
6347
6397
  windowWidth: number | undefined;
6348
6398
  }
6349
6399
 
6400
+ /**
6401
+ * @import {View} from '../image/view.js';
6402
+ * @import {WindowLevel} from '../image/windowLevel.js';
6403
+ * @import {Point} from '../math/point.js';
6404
+ * @import {Scalar2D} from '../math/scalar.js';
6405
+ * @import {Matrix33} from '../math/matrix.js';
6406
+ * @import {ViewLayer} from '../gui/viewLayer.js';
6407
+ * @import {MaskSegmentViewHelper} from '../image/maskSegmentViewHelper.js';
6408
+ */
6350
6409
  /**
6351
6410
  * View controller.
6352
6411
  */
@@ -6804,6 +6863,11 @@ export declare class ViewController {
6804
6863
  #private;
6805
6864
  }
6806
6865
 
6866
+ /**
6867
+ * @import {Vector3D} from '../math/vector.js';
6868
+ * @import {Point, Point3D} from '../math/point.js';
6869
+ * @import {Scalar2D, Scalar3D} from '../math/scalar.js';
6870
+ */
6807
6871
  /**
6808
6872
  * View layer.
6809
6873
  */
@@ -7122,6 +7186,32 @@ export declare class ViewLayer {
7122
7186
  #private;
7123
7187
  }
7124
7188
 
7189
+ /**
7190
+ * @import {LayerGroup} from '../../gui/layerGroup.js';
7191
+ */
7192
+ /**
7193
+ * Mouse wheel handling: subclasses may override {@link WheelBehavior#onWheel}
7194
+ * (every event) and/or {@link WheelBehavior#onWheelTick}
7195
+ * (after tick threshold).
7196
+ */
7197
+ export declare class WheelBehavior {
7198
+ /**
7199
+ * Raw wheel event (every `wheel`); use with continuous effects such as zoom.
7200
+ *
7201
+ * @param {WheelEvent} _event The wheel event.
7202
+ * @param {LayerGroup|undefined} _layerGroup Layer group under the wheel.
7203
+ */
7204
+ onWheel(_event: WheelEvent, _layerGroup: LayerGroup | undefined): void;
7205
+ /**
7206
+ * Discrete wheel tick after accumulation; use for
7207
+ * slice scroll and similar stepped actions.
7208
+ *
7209
+ * @param {boolean} _up True when spin is in the positive direction.
7210
+ * @param {LayerGroup} _layerGroup Layer group under the wheel event.
7211
+ */
7212
+ onWheelTick(_up: boolean, _layerGroup: LayerGroup): void;
7213
+ }
7214
+
7125
7215
  /**
7126
7216
  * Window and Level also known as window width and center.
7127
7217
  */