dwv 0.32.2-beta.0 → 0.32.2
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 +168 -68
- 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
|
@@ -18,9 +18,10 @@ export declare function addTagsToDictionary(group: string, tags: object): void;
|
|
|
18
18
|
* // create the dwv app
|
|
19
19
|
* const app = new dwv.App();
|
|
20
20
|
* // initialise
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* const viewConfig0 = new ViewConfig('layerGroup0');
|
|
22
|
+
* const viewConfigs = {'*': [viewConfig0]};
|
|
23
|
+
* const options = new AppOptions(viewConfigs);
|
|
24
|
+
* app.init(options);
|
|
24
25
|
* // load dicom data
|
|
25
26
|
* app.loadURLs([
|
|
26
27
|
* 'https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm'
|
|
@@ -107,9 +108,9 @@ export declare class App {
|
|
|
107
108
|
/**
|
|
108
109
|
* Get the toolbox controller.
|
|
109
110
|
*
|
|
110
|
-
* @returns {
|
|
111
|
+
* @returns {ToolboxController} The controller.
|
|
111
112
|
*/
|
|
112
|
-
getToolboxController():
|
|
113
|
+
getToolboxController(): ToolboxController;
|
|
113
114
|
/**
|
|
114
115
|
* Get the active layer group.
|
|
115
116
|
* The layer is available after the first loaded item.
|
|
@@ -122,17 +123,17 @@ export declare class App {
|
|
|
122
123
|
* The layer are available after the first loaded item.
|
|
123
124
|
*
|
|
124
125
|
* @param {number} index The data index.
|
|
125
|
-
* @returns {
|
|
126
|
+
* @returns {ViewLayer[]} The layers.
|
|
126
127
|
*/
|
|
127
|
-
getViewLayersByDataIndex(index: number):
|
|
128
|
+
getViewLayersByDataIndex(index: number): ViewLayer[];
|
|
128
129
|
/**
|
|
129
130
|
* Get the draw layers associated to a data index.
|
|
130
131
|
* The layer are available after the first loaded item.
|
|
131
132
|
*
|
|
132
133
|
* @param {number} index The data index.
|
|
133
|
-
* @returns {
|
|
134
|
+
* @returns {DrawLayer[]} The layers.
|
|
134
135
|
*/
|
|
135
|
-
getDrawLayersByDataIndex(index: number):
|
|
136
|
+
getDrawLayersByDataIndex(index: number): DrawLayer[];
|
|
136
137
|
/**
|
|
137
138
|
* Get a layer group by div id.
|
|
138
139
|
* The layer is available after the first loaded item.
|
|
@@ -169,10 +170,11 @@ export declare class App {
|
|
|
169
170
|
* // create the dwv app
|
|
170
171
|
* const app = new dwv.App();
|
|
171
172
|
* // initialise
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
173
|
+
* const viewConfig0 = new ViewConfig('layerGroup0');
|
|
174
|
+
* const viewConfigs = {'*': [viewConfig0]};
|
|
175
|
+
* const options = new AppOptions(viewConfigs);
|
|
176
|
+
* options.viewOnFirstLoadItem = false;
|
|
177
|
+
* app.init(options);
|
|
176
178
|
* // render button
|
|
177
179
|
* const button = document.createElement('button');
|
|
178
180
|
* button.id = 'render';
|
|
@@ -205,18 +207,18 @@ export declare class App {
|
|
|
205
207
|
* Add an event listener to this class.
|
|
206
208
|
*
|
|
207
209
|
* @param {string} type The event type.
|
|
208
|
-
* @param {
|
|
210
|
+
* @param {Function} callback The function associated with the provided
|
|
209
211
|
* event type, will be called with the fired event.
|
|
210
212
|
*/
|
|
211
|
-
addEventListener(type: string, callback:
|
|
213
|
+
addEventListener(type: string, callback: Function): void;
|
|
212
214
|
/**
|
|
213
215
|
* Remove an event listener from this class.
|
|
214
216
|
*
|
|
215
217
|
* @param {string} type The event type.
|
|
216
|
-
* @param {
|
|
218
|
+
* @param {Function} callback The function associated with the provided
|
|
217
219
|
* event type.
|
|
218
220
|
*/
|
|
219
|
-
removeEventListener(type: string, callback:
|
|
221
|
+
removeEventListener(type: string, callback: Function): void;
|
|
220
222
|
/**
|
|
221
223
|
* Load a list of files. Can be image files or a state file.
|
|
222
224
|
*
|
|
@@ -446,6 +448,13 @@ export declare class App {
|
|
|
446
448
|
* Application options.
|
|
447
449
|
*/
|
|
448
450
|
export declare class AppOptions {
|
|
451
|
+
/**
|
|
452
|
+
* @param {Object<string, ViewConfig[]>} dataViewConfigs DataId
|
|
453
|
+
* indexed object containing the data view configurations.
|
|
454
|
+
*/
|
|
455
|
+
constructor(dataViewConfigs: {
|
|
456
|
+
[x: string]: ViewConfig[];
|
|
457
|
+
});
|
|
449
458
|
/**
|
|
450
459
|
* DataId indexed object containing the data view configurations.
|
|
451
460
|
*
|
|
@@ -457,13 +466,11 @@ export declare class AppOptions {
|
|
|
457
466
|
/**
|
|
458
467
|
* Tool name indexed object containing individual tool configurations.
|
|
459
468
|
*
|
|
460
|
-
* @type {Object<string,
|
|
469
|
+
* @type {Object<string, ToolConfig>|undefined}
|
|
461
470
|
*/
|
|
462
471
|
tools: {
|
|
463
|
-
[x: string]:
|
|
464
|
-
|
|
465
|
-
};
|
|
466
|
-
};
|
|
472
|
+
[x: string]: ToolConfig;
|
|
473
|
+
} | undefined;
|
|
467
474
|
/**
|
|
468
475
|
* Optional array of layerGroup binder names.
|
|
469
476
|
*
|
|
@@ -504,6 +511,12 @@ export declare function buildMultipart(parts: any[], boundary: string): Uint8Arr
|
|
|
504
511
|
* to associate with intensity values.
|
|
505
512
|
*/
|
|
506
513
|
export declare class ColourMap {
|
|
514
|
+
/**
|
|
515
|
+
* @param {number[]} red Red component.
|
|
516
|
+
* @param {number[]} green Green component.
|
|
517
|
+
* @param {number[]} blue Blue component.
|
|
518
|
+
*/
|
|
519
|
+
constructor(red: number[], green: number[], blue: number[]);
|
|
507
520
|
/**
|
|
508
521
|
* Red component: 256 values in the [0, 255] range.
|
|
509
522
|
*
|
|
@@ -851,9 +864,9 @@ export declare class DrawLayer {
|
|
|
851
864
|
* Set the layer scale.
|
|
852
865
|
*
|
|
853
866
|
* @param {object} newScale The scale as {x,y}.
|
|
854
|
-
* @param {Point3D} center The scale center.
|
|
867
|
+
* @param {Point3D} [center] The scale center.
|
|
855
868
|
*/
|
|
856
|
-
setScale(newScale: object, center
|
|
869
|
+
setScale(newScale: object, center?: Point3D): void;
|
|
857
870
|
/**
|
|
858
871
|
* Set the layer offset.
|
|
859
872
|
*
|
|
@@ -914,7 +927,7 @@ export declare class DrawLayer {
|
|
|
914
927
|
* @param {string} id The id of the group.
|
|
915
928
|
* @returns {boolean} False if the group cannot be found.
|
|
916
929
|
*/
|
|
917
|
-
|
|
930
|
+
toggleGroupVisibility(id: string): boolean;
|
|
918
931
|
/**
|
|
919
932
|
* Delete a Draw from the stage.
|
|
920
933
|
*
|
|
@@ -950,18 +963,18 @@ export declare class DrawLayer {
|
|
|
950
963
|
* Add an event listener to this class.
|
|
951
964
|
*
|
|
952
965
|
* @param {string} type The event type.
|
|
953
|
-
* @param {
|
|
966
|
+
* @param {Function} callback The function associated with the provided
|
|
954
967
|
* event type, will be called with the fired event.
|
|
955
968
|
*/
|
|
956
|
-
addEventListener(type: string, callback:
|
|
969
|
+
addEventListener(type: string, callback: Function): void;
|
|
957
970
|
/**
|
|
958
971
|
* Remove an event listener from this class.
|
|
959
972
|
*
|
|
960
973
|
* @param {string} type The event type.
|
|
961
|
-
* @param {
|
|
974
|
+
* @param {Function} callback The function associated with the provided
|
|
962
975
|
* event type.
|
|
963
976
|
*/
|
|
964
|
-
removeEventListener(type: string, callback:
|
|
977
|
+
removeEventListener(type: string, callback: Function): void;
|
|
965
978
|
#private;
|
|
966
979
|
}
|
|
967
980
|
|
|
@@ -1485,18 +1498,18 @@ declare class Image_2 {
|
|
|
1485
1498
|
* Add an event listener to this class.
|
|
1486
1499
|
*
|
|
1487
1500
|
* @param {string} type The event type.
|
|
1488
|
-
* @param {
|
|
1501
|
+
* @param {Function} callback The function associated with the provided
|
|
1489
1502
|
* event type, will be called with the fired event.
|
|
1490
1503
|
*/
|
|
1491
|
-
addEventListener(type: string, callback:
|
|
1504
|
+
addEventListener(type: string, callback: Function): void;
|
|
1492
1505
|
/**
|
|
1493
1506
|
* Remove an event listener from this class.
|
|
1494
1507
|
*
|
|
1495
1508
|
* @param {string} type The event type.
|
|
1496
|
-
* @param {
|
|
1509
|
+
* @param {Function} callback The function associated with the provided
|
|
1497
1510
|
* event type.
|
|
1498
1511
|
*/
|
|
1499
|
-
removeEventListener(type: string, callback:
|
|
1512
|
+
removeEventListener(type: string, callback: Function): void;
|
|
1500
1513
|
/**
|
|
1501
1514
|
* Set the inner buffer values at given offsets.
|
|
1502
1515
|
*
|
|
@@ -1638,9 +1651,9 @@ export { Image_2 as Image }
|
|
|
1638
1651
|
*/
|
|
1639
1652
|
export declare class Index {
|
|
1640
1653
|
/**
|
|
1641
|
-
* @param {
|
|
1654
|
+
* @param {number[]} values The index values.
|
|
1642
1655
|
*/
|
|
1643
|
-
constructor(values:
|
|
1656
|
+
constructor(values: number[]);
|
|
1644
1657
|
/**
|
|
1645
1658
|
* Get the index value at the given array index.
|
|
1646
1659
|
*
|
|
@@ -1663,9 +1676,9 @@ export declare class Index {
|
|
|
1663
1676
|
/**
|
|
1664
1677
|
* Get the values of this index.
|
|
1665
1678
|
*
|
|
1666
|
-
* @returns {
|
|
1679
|
+
* @returns {number[]} The array of values.
|
|
1667
1680
|
*/
|
|
1668
|
-
getValues():
|
|
1681
|
+
getValues(): number[];
|
|
1669
1682
|
/**
|
|
1670
1683
|
* Check if the input index can be compared to this one.
|
|
1671
1684
|
*
|
|
@@ -1684,9 +1697,9 @@ export declare class Index {
|
|
|
1684
1697
|
* Compare indices and return different dimensions.
|
|
1685
1698
|
*
|
|
1686
1699
|
* @param {Index} rhs The index to compare to.
|
|
1687
|
-
* @returns {
|
|
1700
|
+
* @returns {number[]} The list of different dimensions.
|
|
1688
1701
|
*/
|
|
1689
|
-
compare(rhs: Index):
|
|
1702
|
+
compare(rhs: Index): number[];
|
|
1690
1703
|
/**
|
|
1691
1704
|
* Add another index to this one.
|
|
1692
1705
|
*
|
|
@@ -1705,10 +1718,10 @@ export declare class Index {
|
|
|
1705
1718
|
/**
|
|
1706
1719
|
* Get a string id from the index values in the form of: '#0-1_#1-2'.
|
|
1707
1720
|
*
|
|
1708
|
-
* @param {
|
|
1721
|
+
* @param {number[]} [dims] Optional list of dimensions to use.
|
|
1709
1722
|
* @returns {string} The string id.
|
|
1710
1723
|
*/
|
|
1711
|
-
toStringId(dims?:
|
|
1724
|
+
toStringId(dims?: number[]): string;
|
|
1712
1725
|
#private;
|
|
1713
1726
|
}
|
|
1714
1727
|
|
|
@@ -1947,18 +1960,18 @@ export declare class LayerGroup {
|
|
|
1947
1960
|
* Add an event listener to this class.
|
|
1948
1961
|
*
|
|
1949
1962
|
* @param {string} type The event type.
|
|
1950
|
-
* @param {
|
|
1963
|
+
* @param {Function} callback The function associated with the provided
|
|
1951
1964
|
* event type, will be called with the fired event.
|
|
1952
1965
|
*/
|
|
1953
|
-
addEventListener(type: string, callback:
|
|
1966
|
+
addEventListener(type: string, callback: Function): void;
|
|
1954
1967
|
/**
|
|
1955
1968
|
* Remove an event listener from this class.
|
|
1956
1969
|
*
|
|
1957
1970
|
* @param {string} type The event type.
|
|
1958
|
-
* @param {
|
|
1971
|
+
* @param {Function} callback The function associated with the provided
|
|
1959
1972
|
* event type.
|
|
1960
1973
|
*/
|
|
1961
|
-
removeEventListener(type: string, callback:
|
|
1974
|
+
removeEventListener(type: string, callback: Function): void;
|
|
1962
1975
|
#private;
|
|
1963
1976
|
}
|
|
1964
1977
|
|
|
@@ -2102,9 +2115,9 @@ export declare class Matrix33 {
|
|
|
2102
2115
|
*/
|
|
2103
2116
|
export declare class Point {
|
|
2104
2117
|
/**
|
|
2105
|
-
* @param {
|
|
2118
|
+
* @param {number[]} values The point values.
|
|
2106
2119
|
*/
|
|
2107
|
-
constructor(values:
|
|
2120
|
+
constructor(values: number[]);
|
|
2108
2121
|
/**
|
|
2109
2122
|
* Get the index value at the given array index.
|
|
2110
2123
|
*
|
|
@@ -2127,9 +2140,9 @@ export declare class Point {
|
|
|
2127
2140
|
/**
|
|
2128
2141
|
* Get the values of this index.
|
|
2129
2142
|
*
|
|
2130
|
-
* @returns {
|
|
2143
|
+
* @returns {number[]} The array of values.
|
|
2131
2144
|
*/
|
|
2132
|
-
getValues():
|
|
2145
|
+
getValues(): number[];
|
|
2133
2146
|
/**
|
|
2134
2147
|
* Check if the input point can be compared to this one.
|
|
2135
2148
|
*
|
|
@@ -2148,9 +2161,9 @@ export declare class Point {
|
|
|
2148
2161
|
* Compare points and return different dimensions.
|
|
2149
2162
|
*
|
|
2150
2163
|
* @param {Point} rhs The point to compare to.
|
|
2151
|
-
* @returns {
|
|
2164
|
+
* @returns {number[]} The list of different dimensions.
|
|
2152
2165
|
*/
|
|
2153
|
-
compare(rhs: Point):
|
|
2166
|
+
compare(rhs: Point): number[];
|
|
2154
2167
|
/**
|
|
2155
2168
|
* Get the 3D part of this point.
|
|
2156
2169
|
*
|
|
@@ -2659,6 +2672,85 @@ export declare class TagValueExtractor {
|
|
|
2659
2672
|
}): number | undefined;
|
|
2660
2673
|
}
|
|
2661
2674
|
|
|
2675
|
+
/**
|
|
2676
|
+
* Toolbox controller.
|
|
2677
|
+
*/
|
|
2678
|
+
export declare class ToolboxController {
|
|
2679
|
+
/**
|
|
2680
|
+
* @param {object} toolList The list of tool objects.
|
|
2681
|
+
*/
|
|
2682
|
+
constructor(toolList: object);
|
|
2683
|
+
/**
|
|
2684
|
+
* Initialise.
|
|
2685
|
+
*/
|
|
2686
|
+
init(): void;
|
|
2687
|
+
/**
|
|
2688
|
+
* Get the tool list.
|
|
2689
|
+
*
|
|
2690
|
+
* @returns {Array} The list of tool objects.
|
|
2691
|
+
*/
|
|
2692
|
+
getToolList(): any[];
|
|
2693
|
+
/**
|
|
2694
|
+
* Check if a tool is in the tool list.
|
|
2695
|
+
*
|
|
2696
|
+
* @param {string} name The name to check.
|
|
2697
|
+
* @returns {boolean} The tool list element for the given name.
|
|
2698
|
+
*/
|
|
2699
|
+
hasTool(name: string): boolean;
|
|
2700
|
+
/**
|
|
2701
|
+
* Get the selected tool.
|
|
2702
|
+
*
|
|
2703
|
+
* @returns {object} The selected tool.
|
|
2704
|
+
*/
|
|
2705
|
+
getSelectedTool(): object;
|
|
2706
|
+
/**
|
|
2707
|
+
* Get the selected tool event handler.
|
|
2708
|
+
*
|
|
2709
|
+
* @param {string} eventType The event type, for example
|
|
2710
|
+
* mousedown, touchstart...
|
|
2711
|
+
* @returns {Function} The event handler.
|
|
2712
|
+
*/
|
|
2713
|
+
getSelectedToolEventHandler(eventType: string): Function;
|
|
2714
|
+
/**
|
|
2715
|
+
* Set the selected tool.
|
|
2716
|
+
*
|
|
2717
|
+
* @param {string} name The name of the tool.
|
|
2718
|
+
*/
|
|
2719
|
+
setSelectedTool(name: string): void;
|
|
2720
|
+
/**
|
|
2721
|
+
* Set the selected tool live features.
|
|
2722
|
+
*
|
|
2723
|
+
* @param {object} list The list of features.
|
|
2724
|
+
*/
|
|
2725
|
+
setToolFeatures(list: object): void;
|
|
2726
|
+
/**
|
|
2727
|
+
* Listen to layer interaction events.
|
|
2728
|
+
*
|
|
2729
|
+
* @param {object} layer The layer to listen to.
|
|
2730
|
+
* @param {string} layerGroupDivId The associated layer group div id.
|
|
2731
|
+
*/
|
|
2732
|
+
bindLayer(layer: object, layerGroupDivId: string): void;
|
|
2733
|
+
#private;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
/**
|
|
2737
|
+
* Tool configuration.
|
|
2738
|
+
*/
|
|
2739
|
+
export declare class ToolConfig {
|
|
2740
|
+
/**
|
|
2741
|
+
* @param {string[]} [options] Optional tool options.
|
|
2742
|
+
*/
|
|
2743
|
+
constructor(options?: string[]);
|
|
2744
|
+
/**
|
|
2745
|
+
* Optional tool options.
|
|
2746
|
+
* For Draw: list of shape names.
|
|
2747
|
+
* For Filter: list of filter names.
|
|
2748
|
+
*
|
|
2749
|
+
* @type {string[]|undefined}
|
|
2750
|
+
*/
|
|
2751
|
+
options: string[] | undefined;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2662
2754
|
/**
|
|
2663
2755
|
* Immutable 3D vector.
|
|
2664
2756
|
*/
|
|
@@ -2959,18 +3051,18 @@ export declare class View {
|
|
|
2959
3051
|
* Add an event listener to this class.
|
|
2960
3052
|
*
|
|
2961
3053
|
* @param {string} type The event type.
|
|
2962
|
-
* @param {
|
|
3054
|
+
* @param {Function} callback The function associated with the provided
|
|
2963
3055
|
* event type, will be called with the fired event.
|
|
2964
3056
|
*/
|
|
2965
|
-
addEventListener(type: string, callback:
|
|
3057
|
+
addEventListener(type: string, callback: Function): void;
|
|
2966
3058
|
/**
|
|
2967
3059
|
* Remove an event listener from this class.
|
|
2968
3060
|
*
|
|
2969
3061
|
* @param {string} type The event type.
|
|
2970
|
-
* @param {
|
|
3062
|
+
* @param {Function} callback The function associated with the provided
|
|
2971
3063
|
* event type.
|
|
2972
3064
|
*/
|
|
2973
|
-
removeEventListener(type: string, callback:
|
|
3065
|
+
removeEventListener(type: string, callback: Function): void;
|
|
2974
3066
|
/**
|
|
2975
3067
|
* Get the image window/level that covers the full data range.
|
|
2976
3068
|
* Warning: uses the latest set rescale LUT or the default linear one.
|
|
@@ -3035,6 +3127,10 @@ export declare class View {
|
|
|
3035
3127
|
* of the associated HTML div.
|
|
3036
3128
|
*/
|
|
3037
3129
|
export declare class ViewConfig {
|
|
3130
|
+
/**
|
|
3131
|
+
* @param {string} divId The associated HTML div id.
|
|
3132
|
+
*/
|
|
3133
|
+
constructor(divId: string);
|
|
3038
3134
|
/**
|
|
3039
3135
|
* Associated HTML div id.
|
|
3040
3136
|
*
|
|
@@ -3412,18 +3508,18 @@ export declare class ViewController {
|
|
|
3412
3508
|
* Add an event listener to this class.
|
|
3413
3509
|
*
|
|
3414
3510
|
* @param {string} type The event type.
|
|
3415
|
-
* @param {
|
|
3511
|
+
* @param {Function} callback The function associated with the provided
|
|
3416
3512
|
* event type, will be called with the fired event.
|
|
3417
3513
|
*/
|
|
3418
|
-
addEventListener(type: string, callback:
|
|
3514
|
+
addEventListener(type: string, callback: Function): void;
|
|
3419
3515
|
/**
|
|
3420
3516
|
* Remove an event listener from this class.
|
|
3421
3517
|
*
|
|
3422
3518
|
* @param {string} type The event type.
|
|
3423
|
-
* @param {
|
|
3519
|
+
* @param {Function} callback The function associated with the provided
|
|
3424
3520
|
* event type.
|
|
3425
3521
|
*/
|
|
3426
|
-
removeEventListener(type: string, callback:
|
|
3522
|
+
removeEventListener(type: string, callback: Function): void;
|
|
3427
3523
|
#private;
|
|
3428
3524
|
}
|
|
3429
3525
|
|
|
@@ -3523,9 +3619,9 @@ export declare class ViewLayer {
|
|
|
3523
3619
|
* Set the layer scale.
|
|
3524
3620
|
*
|
|
3525
3621
|
* @param {object} newScale The scale as {x,y}.
|
|
3526
|
-
* @param {Point3D} center The scale center.
|
|
3622
|
+
* @param {Point3D} [center] The scale center.
|
|
3527
3623
|
*/
|
|
3528
|
-
setScale(newScale: object, center
|
|
3624
|
+
setScale(newScale: object, center?: Point3D): void;
|
|
3529
3625
|
/**
|
|
3530
3626
|
* Set the base layer offset. Updates the layer offset.
|
|
3531
3627
|
*
|
|
@@ -3628,18 +3724,18 @@ export declare class ViewLayer {
|
|
|
3628
3724
|
* Add an event listener to this class.
|
|
3629
3725
|
*
|
|
3630
3726
|
* @param {string} type The event type.
|
|
3631
|
-
* @param {
|
|
3727
|
+
* @param {Function} callback The function associated with the provided
|
|
3632
3728
|
* event type, will be called with the fired event.
|
|
3633
3729
|
*/
|
|
3634
|
-
addEventListener(type: string, callback:
|
|
3730
|
+
addEventListener(type: string, callback: Function): void;
|
|
3635
3731
|
/**
|
|
3636
3732
|
* Remove an event listener from this class.
|
|
3637
3733
|
*
|
|
3638
3734
|
* @param {string} type The event type.
|
|
3639
|
-
* @param {
|
|
3735
|
+
* @param {Function} callback The function associated with the provided
|
|
3640
3736
|
* event type.
|
|
3641
3737
|
*/
|
|
3642
|
-
removeEventListener(type: string, callback:
|
|
3738
|
+
removeEventListener(type: string, callback: Function): void;
|
|
3643
3739
|
/**
|
|
3644
3740
|
* Set the current position.
|
|
3645
3741
|
*
|
|
@@ -3788,6 +3884,10 @@ export declare class WindowLut {
|
|
|
3788
3884
|
* Writer rule.
|
|
3789
3885
|
*/
|
|
3790
3886
|
export declare class WriterRule {
|
|
3887
|
+
/**
|
|
3888
|
+
* @param {string} action The rule action.
|
|
3889
|
+
*/
|
|
3890
|
+
constructor(action: string);
|
|
3791
3891
|
/**
|
|
3792
3892
|
* Rule action: `copy`, `remove`, `clear` or `replace`.
|
|
3793
3893
|
*
|
|
@@ -3795,11 +3895,11 @@ export declare class WriterRule {
|
|
|
3795
3895
|
*/
|
|
3796
3896
|
action: string;
|
|
3797
3897
|
/**
|
|
3798
|
-
*
|
|
3898
|
+
* Optional value to use for replace action.
|
|
3799
3899
|
*
|
|
3800
|
-
* @type {any}
|
|
3900
|
+
* @type {any|undefined}
|
|
3801
3901
|
*/
|
|
3802
|
-
value: any;
|
|
3902
|
+
value: any | undefined;
|
|
3803
3903
|
}
|
|
3804
3904
|
|
|
3805
3905
|
export { }
|