dwv 0.33.0-beta.40 → 0.33.0-beta.42

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
@@ -1972,6 +1972,7 @@ declare class Image_2 {
1972
1972
  * Append a slice to the image.
1973
1973
  *
1974
1974
  * @param {Image} rhs The slice to append.
1975
+ * @fires Image#imagegeometrychange
1975
1976
  */
1976
1977
  appendSlice(rhs: Image_2): void;
1977
1978
  /**
@@ -1991,15 +1992,15 @@ declare class Image_2 {
1991
1992
  /**
1992
1993
  * Get the data range.
1993
1994
  *
1994
- * @returns {object} The data range.
1995
+ * @returns {NumberRange} The data range.
1995
1996
  */
1996
- getDataRange(): object;
1997
+ getDataRange(): NumberRange;
1997
1998
  /**
1998
1999
  * Get the rescaled data range.
1999
2000
  *
2000
- * @returns {object} The rescaled data range.
2001
+ * @returns {NumberRange} The rescaled data range.
2001
2002
  */
2002
- getRescaledDataRange(): object;
2003
+ getRescaledDataRange(): NumberRange;
2003
2004
  /**
2004
2005
  * Get the histogram.
2005
2006
  *
@@ -2027,7 +2028,7 @@ declare class Image_2 {
2027
2028
  *
2028
2029
  * @param {number[]} offsets List of offsets where to set the data.
2029
2030
  * @param {number|RGB} value The value to set at the given offsets.
2030
- * @fires Image#imagechange
2031
+ * @fires Image#imagecontentchange
2031
2032
  */
2032
2033
  setAtOffsets(offsets: number[], value: number | RGB): void;
2033
2034
  /**
@@ -2038,7 +2039,7 @@ declare class Image_2 {
2038
2039
  * @param {RGB} value The value to set at the given offsets.
2039
2040
  * @returns {Array} A list of objects representing the original values before
2040
2041
  * replacing them.
2041
- * @fires Image#imagechange
2042
+ * @fires Image#imagecontentchange
2042
2043
  */
2043
2044
  setAtOffsetsAndGetOriginals(offsetsLists: number[][], value: RGB): any[];
2044
2045
  /**
@@ -2047,7 +2048,7 @@ declare class Image_2 {
2047
2048
  * @param {number[][]} offsetsLists List of offset lists
2048
2049
  * where to set the data.
2049
2050
  * @param {RGB|Array} value The value to set at the given offsets.
2050
- * @fires Image#imagechange
2051
+ * @fires Image#imagecontentchange
2051
2052
  */
2052
2053
  setAtOffsetsWithIterator(offsetsLists: number[][], value: RGB | any[]): void;
2053
2054
  /**
@@ -2906,6 +2907,25 @@ export declare class Matrix33 {
2906
2907
  #private;
2907
2908
  }
2908
2909
 
2910
+ /**
2911
+ * Number range.
2912
+ */
2913
+ export declare class NumberRange {
2914
+ /**
2915
+ * @param {number} min The minimum.
2916
+ * @param {number} max The maximum.
2917
+ */
2918
+ constructor(min: number, max: number);
2919
+ /**
2920
+ * @type {number}
2921
+ */
2922
+ min: number;
2923
+ /**
2924
+ * @type {number}
2925
+ */
2926
+ max: number;
2927
+ }
2928
+
2909
2929
  export declare namespace Orientation {
2910
2930
  let Axial: string;
2911
2931
  let Coronal: string;
@@ -3903,7 +3923,7 @@ export declare class View {
3903
3923
  */
3904
3924
  init(): void;
3905
3925
  /**
3906
- * Set the initial index to 0.
3926
+ * Set the initial index to the middle position.
3907
3927
  */
3908
3928
  setInitialIndex(): void;
3909
3929
  /**
@@ -4302,10 +4322,10 @@ export declare class ViewController {
4302
4322
  /**
4303
4323
  * Get some values from the associated image in variable regions.
4304
4324
  *
4305
- * @param {Array} regions A list of regions.
4325
+ * @param {number[][][]} regions A list of [x, y] pairs (min, max).
4306
4326
  * @returns {Array} A list of values.
4307
4327
  */
4308
- getImageVariableRegionValues(regions: any[]): any[];
4328
+ getImageVariableRegionValues(regions: number[][][]): any[];
4309
4329
  /**
4310
4330
  * Can the image values be quantified?
4311
4331
  *
@@ -4333,7 +4353,7 @@ export declare class ViewController {
4333
4353
  */
4334
4354
  canScroll(): boolean;
4335
4355
  /**
4336
- * Get the image size.
4356
+ * Get the oriented image size.
4337
4357
  *
4338
4358
  * @returns {Size} The size.
4339
4359
  */
@@ -4603,13 +4623,20 @@ export declare class ViewLayer {
4603
4623
  * @function
4604
4624
  */
4605
4625
  onimageset: (event: object) => void;
4626
+ /**
4627
+ * Handle an image content change event.
4628
+ *
4629
+ * @param {object} event The event.
4630
+ * @function
4631
+ */
4632
+ onimagecontentchange: (event: object) => void;
4606
4633
  /**
4607
4634
  * Handle an image change event.
4608
4635
  *
4609
4636
  * @param {object} event The event.
4610
4637
  * @function
4611
4638
  */
4612
- onimagechange: (event: object) => void;
4639
+ onimagegeometrychange: (event: object) => void;
4613
4640
  /**
4614
4641
  * Get the id of the layer.
4615
4642
  *
@@ -4680,9 +4707,11 @@ export declare class ViewLayer {
4680
4707
  *
4681
4708
  * @param {Vector3D} scrollOffset The scroll offset vector.
4682
4709
  * @param {Vector3D} planeOffset The plane offset vector.
4710
+ * @param {Point3D} [layerGroupOrigin] The layer group origin.
4711
+ * @param {Point3D} [layerGroupOrigin0] The layer group first origin.
4683
4712
  * @returns {boolean} True if the offset was updated.
4684
4713
  */
4685
- setBaseOffset(scrollOffset: Vector3D, planeOffset: Vector3D): boolean;
4714
+ setBaseOffset(scrollOffset: Vector3D, planeOffset: Vector3D, layerGroupOrigin?: Point3D, layerGroupOrigin0?: Point3D): boolean;
4686
4715
  /**
4687
4716
  * Set the layer offset.
4688
4717
  *