dwv 0.33.0-beta.17 → 0.33.0-beta.18

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
@@ -1508,16 +1508,16 @@ export declare function getDefaultDicomSegJson(): object;
1508
1508
  export declare function getDwvVersion(): string;
1509
1509
 
1510
1510
  /**
1511
- * Get the DICOM elements from a 'simple' DICOM json tags object.
1512
- * The json is a simplified version of the oficial DICOM json with
1511
+ * Get the DICOM elements from a 'simple' DICOM tags object.
1512
+ * The input object is a simplified version of the oficial DICOM json with
1513
1513
  * tag names instead of keys and direct values (no value property) for
1514
1514
  * simple tags. See synthetic test data (in tests/dicom) for examples.
1515
1515
  *
1516
- * @param {Object<string, any>} jsonTags The DICOM
1517
- * json tags object.
1516
+ * @param {Object<string, any>} simpleTags The 'simple' DICOM
1517
+ * tags object.
1518
1518
  * @returns {Object<string, DataElement>} The DICOM elements.
1519
1519
  */
1520
- export declare function getElementsFromJSONTags(jsonTags: {
1520
+ export declare function getElementsFromJSONTags(simpleTags: {
1521
1521
  [x: string]: any;
1522
1522
  }): {
1523
1523
  [x: string]: DataElement;
@@ -1786,15 +1786,19 @@ declare class Image_2 {
1786
1786
  /**
1787
1787
  * Get the meta information of the image.
1788
1788
  *
1789
- * @returns {object} The meta information of the image.
1789
+ * @returns {Object<string, any>} The meta information of the image.
1790
1790
  */
1791
- getMeta(): object;
1791
+ getMeta(): {
1792
+ [x: string]: any;
1793
+ };
1792
1794
  /**
1793
1795
  * Set the meta information of the image.
1794
1796
  *
1795
- * @param {object} rhs The meta information of the image.
1797
+ * @param {Object<string, any>} rhs The meta information of the image.
1796
1798
  */
1797
- setMeta(rhs: object): void;
1799
+ setMeta(rhs: {
1800
+ [x: string]: any;
1801
+ }): void;
1798
1802
  /**
1799
1803
  * Get value at offset. Warning: No size check...
1800
1804
  *
@@ -2550,16 +2554,16 @@ export declare class MaskSegmentHelper {
2550
2554
  removeFromHidden(segmentNumber: number): void;
2551
2555
  /**
2552
2556
  * @callback alphaFn@callback alphaFn
2553
- * @param {object} value The pixel value.
2554
- * @param {object} index The values' index.
2555
- * @returns {number} The value to display.
2557
+ * @param {number[]|number} value The pixel value.
2558
+ * @param {number} index The values' index.
2559
+ * @returns {number} The opacity of the input value.
2556
2560
  */
2557
2561
  /**
2558
2562
  * Get the alpha function to apply hidden colors.
2559
2563
  *
2560
2564
  * @returns {alphaFn} The corresponding alpha function.
2561
2565
  */
2562
- getAlphaFunc(): (value: object, index: object) => number;
2566
+ getAlphaFunc(): (value: number[] | number, index: number) => number;
2563
2567
  /**
2564
2568
  * @callback eventFn@callback eventFn
2565
2569
  * @param {object} event The event.
@@ -3624,23 +3628,23 @@ export declare class View {
3624
3628
  getPlaybackMilliseconds(recommendedDisplayFrameRate: number): number;
3625
3629
  /**
3626
3630
  * @callback alphaFn@callback alphaFn
3627
- * @param {object} value The pixel value.
3628
- * @param {object} index The values' index.
3629
- * @returns {number} The value to display.
3631
+ * @param {number[]|number} value The pixel value.
3632
+ * @param {number} index The values' index.
3633
+ * @returns {number} The opacity of the input value.
3630
3634
  */
3631
3635
  /**
3632
3636
  * Get the alpha function.
3633
3637
  *
3634
3638
  * @returns {alphaFn} The function.
3635
3639
  */
3636
- getAlphaFunction(): (value: object, index: object) => number;
3640
+ getAlphaFunction(): (value: number[] | number, index: number) => number;
3637
3641
  /**
3638
3642
  * Set alpha function.
3639
3643
  *
3640
3644
  * @param {alphaFn} func The function.
3641
3645
  * @fires View#alphafuncchange
3642
3646
  */
3643
- setAlphaFunction(func: (value: object, index: object) => number): void;
3647
+ setAlphaFunction(func: (value: number[] | number, index: number) => number): void;
3644
3648
  /**
3645
3649
  * Get the window presets.
3646
3650
  *
@@ -4229,16 +4233,16 @@ export declare class ViewController {
4229
4233
  setColourMap(name: string): void;
4230
4234
  /**
4231
4235
  * @callback alphaFn@callback alphaFn
4232
- * @param {object} value The pixel value.
4233
- * @param {object} index The values' index.
4234
- * @returns {number} The value to display.
4236
+ * @param {number[]|number} value The pixel value.
4237
+ * @param {number} index The values' index.
4238
+ * @returns {number} The opacity of the input value.
4235
4239
  */
4236
4240
  /**
4237
4241
  * Set the view per value alpha function.
4238
4242
  *
4239
4243
  * @param {alphaFn} func The function.
4240
4244
  */
4241
- setViewAlphaFunction(func: (value: object, index: object) => number): void;
4245
+ setViewAlphaFunction(func: (value: number[] | number, index: number) => number): void;
4242
4246
  /**
4243
4247
  * Add an event listener to this class.
4244
4248
  *