dwv 0.34.0 → 0.35.0-beta.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 +27 -14
- 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
|
@@ -956,12 +956,6 @@ export declare class AppOptions {
|
|
|
956
956
|
rootDocument: DocumentFragment;
|
|
957
957
|
}
|
|
958
958
|
|
|
959
|
-
export declare namespace BLACK {
|
|
960
|
-
let r: number;
|
|
961
|
-
let g: number;
|
|
962
|
-
let b: number;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
959
|
/**
|
|
966
960
|
* Build a multipart message.
|
|
967
961
|
*
|
|
@@ -2625,6 +2619,25 @@ declare class Image_2 {
|
|
|
2625
2619
|
* @param {string} interp The photometricInterpretation of the image.
|
|
2626
2620
|
*/
|
|
2627
2621
|
setPhotometricInterpretation(interp: string): void;
|
|
2622
|
+
/**
|
|
2623
|
+
* Set the palette colour map.
|
|
2624
|
+
*
|
|
2625
|
+
* @param {ColourMap} map The colour map.
|
|
2626
|
+
*/
|
|
2627
|
+
setPaletteColourMap(map: ColourMap): void;
|
|
2628
|
+
/**
|
|
2629
|
+
* Get the palette colour map.
|
|
2630
|
+
*
|
|
2631
|
+
* @returns {ColourMap} The colour map.
|
|
2632
|
+
*/
|
|
2633
|
+
getPaletteColourMap(): ColourMap;
|
|
2634
|
+
/**
|
|
2635
|
+
* Update the palette colour map.
|
|
2636
|
+
*
|
|
2637
|
+
* @param {number} index The index to change the colour of.
|
|
2638
|
+
* @param {RGB} colour The colour to use at index.
|
|
2639
|
+
*/
|
|
2640
|
+
updatePaletteColourMap(index: number, colour: RGB): void;
|
|
2628
2641
|
/**
|
|
2629
2642
|
* Get the planarConfiguration of the image.
|
|
2630
2643
|
*
|
|
@@ -2757,21 +2770,21 @@ declare class Image_2 {
|
|
|
2757
2770
|
*
|
|
2758
2771
|
* @param {number[][]} offsetsLists List of offset lists where
|
|
2759
2772
|
* to set the data.
|
|
2760
|
-
* @param {
|
|
2773
|
+
* @param {number} value The value to set at the given offsets.
|
|
2761
2774
|
* @returns {Array} A list of objects representing the original values before
|
|
2762
2775
|
* replacing them.
|
|
2763
2776
|
* @fires Image#imagecontentchange
|
|
2764
2777
|
*/
|
|
2765
|
-
setAtOffsetsAndGetOriginals(offsetsLists: number[][], value:
|
|
2778
|
+
setAtOffsetsAndGetOriginals(offsetsLists: number[][], value: number): any[];
|
|
2766
2779
|
/**
|
|
2767
2780
|
* Set the inner buffer values at given offsets.
|
|
2768
2781
|
*
|
|
2769
2782
|
* @param {number[][]} offsetsLists List of offset lists
|
|
2770
2783
|
* where to set the data.
|
|
2771
|
-
* @param {
|
|
2784
|
+
* @param {number|Array} value The value to set at the given offsets.
|
|
2772
2785
|
* @fires Image#imagecontentchange
|
|
2773
2786
|
*/
|
|
2774
|
-
setAtOffsetsWithIterator(offsetsLists: number[][], value:
|
|
2787
|
+
setAtOffsetsWithIterator(offsetsLists: number[][], value: number | any[]): void;
|
|
2775
2788
|
/**
|
|
2776
2789
|
* Get the value of the image at a specific coordinate.
|
|
2777
2790
|
*
|
|
@@ -3541,9 +3554,9 @@ export declare class MaskSegmentViewHelper {
|
|
|
3541
3554
|
/**
|
|
3542
3555
|
* Add a segment to the hidden list.
|
|
3543
3556
|
*
|
|
3544
|
-
* @param {
|
|
3557
|
+
* @param {number} segmentNumber The segment number.
|
|
3545
3558
|
*/
|
|
3546
|
-
addToHidden(
|
|
3559
|
+
addToHidden(segmentNumber: number): void;
|
|
3547
3560
|
/**
|
|
3548
3561
|
* Remove a segment from the hidden list.
|
|
3549
3562
|
*
|
|
@@ -3552,7 +3565,7 @@ export declare class MaskSegmentViewHelper {
|
|
|
3552
3565
|
removeFromHidden(segmentNumber: number): void;
|
|
3553
3566
|
/**
|
|
3554
3567
|
* @callback alphaFn@callback alphaFn
|
|
3555
|
-
* @param {number[]
|
|
3568
|
+
* @param {number|number[]} value The pixel value.
|
|
3556
3569
|
* @param {number} index The values' index.
|
|
3557
3570
|
* @returns {number} The opacity of the input value.
|
|
3558
3571
|
*/
|
|
@@ -3561,7 +3574,7 @@ export declare class MaskSegmentViewHelper {
|
|
|
3561
3574
|
*
|
|
3562
3575
|
* @returns {alphaFn} The corresponding alpha function.
|
|
3563
3576
|
*/
|
|
3564
|
-
getAlphaFunc(): (value: number
|
|
3577
|
+
getAlphaFunc(): (value: number | number[], index: number) => number;
|
|
3565
3578
|
#private;
|
|
3566
3579
|
}
|
|
3567
3580
|
|