dwv 0.33.0-beta.7 → 0.33.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 +14 -27
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +8 -8
package/dist/dwv.d.ts
CHANGED
|
@@ -2016,6 +2016,12 @@ export declare class LayerGroup {
|
|
|
2016
2016
|
* @returns {number} The number of layers.
|
|
2017
2017
|
*/
|
|
2018
2018
|
getNumberOfLayers(): number;
|
|
2019
|
+
/**
|
|
2020
|
+
* Get the number of view layers handled by this class.
|
|
2021
|
+
*
|
|
2022
|
+
* @returns {number} The number of layers.
|
|
2023
|
+
*/
|
|
2024
|
+
getNumberOfViewLayers(): number;
|
|
2019
2025
|
/**
|
|
2020
2026
|
* Get the active image layer.
|
|
2021
2027
|
*
|
|
@@ -3201,12 +3207,6 @@ export declare class View {
|
|
|
3201
3207
|
* @param {object} presets The window presets.
|
|
3202
3208
|
*/
|
|
3203
3209
|
setWindowPresets(presets: object): void;
|
|
3204
|
-
/**
|
|
3205
|
-
* Set the default colour map.
|
|
3206
|
-
*
|
|
3207
|
-
* @param {ColourMap} map The colour map.
|
|
3208
|
-
*/
|
|
3209
|
-
setDefaultColourMap(map: ColourMap): void;
|
|
3210
3210
|
/**
|
|
3211
3211
|
* Add window presets to the existing ones.
|
|
3212
3212
|
*
|
|
@@ -3222,16 +3222,16 @@ export declare class View {
|
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Get the colour map of the image.
|
|
3224
3224
|
*
|
|
3225
|
-
* @returns {
|
|
3225
|
+
* @returns {string} The colour map name.
|
|
3226
3226
|
*/
|
|
3227
|
-
getColourMap():
|
|
3227
|
+
getColourMap(): string;
|
|
3228
3228
|
/**
|
|
3229
3229
|
* Set the colour map of the image.
|
|
3230
3230
|
*
|
|
3231
|
-
* @param {
|
|
3232
|
-
* @fires View#
|
|
3231
|
+
* @param {string} name The colour map name.
|
|
3232
|
+
* @fires View#colourmapchange
|
|
3233
3233
|
*/
|
|
3234
|
-
setColourMap(
|
|
3234
|
+
setColourMap(name: string): void;
|
|
3235
3235
|
/**
|
|
3236
3236
|
* Get the current position.
|
|
3237
3237
|
*
|
|
@@ -3743,22 +3743,15 @@ export declare class ViewController {
|
|
|
3743
3743
|
/**
|
|
3744
3744
|
* Get the colour map.
|
|
3745
3745
|
*
|
|
3746
|
-
* @returns {ColourMap} The colour map.
|
|
3747
|
-
*/
|
|
3748
|
-
getColourMap(): ColourMap;
|
|
3749
|
-
/**
|
|
3750
|
-
* Get the colour map name.
|
|
3751
|
-
*
|
|
3752
3746
|
* @returns {string} The colour map name.
|
|
3753
3747
|
*/
|
|
3754
|
-
|
|
3748
|
+
getColourMap(): string;
|
|
3755
3749
|
/**
|
|
3756
3750
|
* Set the colour map.
|
|
3757
3751
|
*
|
|
3758
|
-
* @param {
|
|
3759
|
-
* @param {string} [name] The colour map name.
|
|
3752
|
+
* @param {string} name The colour map name.
|
|
3760
3753
|
*/
|
|
3761
|
-
setColourMap(
|
|
3754
|
+
setColourMap(name: string): void;
|
|
3762
3755
|
/**
|
|
3763
3756
|
* @callback alphaFn@callback alphaFn
|
|
3764
3757
|
* @param {object} value The pixel value.
|
|
@@ -3771,12 +3764,6 @@ export declare class ViewController {
|
|
|
3771
3764
|
* @param {alphaFn} func The function.
|
|
3772
3765
|
*/
|
|
3773
3766
|
setViewAlphaFunction(func: (value: object, index: object) => number): void;
|
|
3774
|
-
/**
|
|
3775
|
-
* Set the colour map from a name.
|
|
3776
|
-
*
|
|
3777
|
-
* @param {string} name The name of the colour map to set.
|
|
3778
|
-
*/
|
|
3779
|
-
setColourMapFromName(name: string): void;
|
|
3780
3767
|
/**
|
|
3781
3768
|
* Add an event listener to this class.
|
|
3782
3769
|
*
|