dwv 0.37.0-beta.5 → 0.37.0-beta.7

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
@@ -1469,6 +1469,10 @@ export declare namespace custom {
1469
1469
  let openRoiDialog: any;
1470
1470
  let getVolumeIdTagValue: any;
1471
1471
  let getPostLoadVolumeIdTagValue: any;
1472
+ let postLoadVolumeIdCandidates: {
1473
+ name: string;
1474
+ getter: Function;
1475
+ }[];
1472
1476
  let getTagPixelUnit: any;
1473
1477
  }
1474
1478
 
@@ -2839,6 +2843,16 @@ export declare class Geometry {
2839
2843
  * @returns {boolean} True if both objects are equal.
2840
2844
  */
2841
2845
  equals(rhs: Geometry): boolean;
2846
+ /**
2847
+ * Check for similarity for origin and orientation, equality
2848
+ * for size and spacing.
2849
+ *
2850
+ * @param {Geometry} rhs The object to compare to.
2851
+ * @param {number} [tol] Optional number comparison tolerance,
2852
+ * defaults to Number.EPSILON.
2853
+ * @returns {boolean} True if both objects are equal.
2854
+ */
2855
+ isSimilar(rhs: Geometry, tol?: number): boolean;
2842
2856
  /**
2843
2857
  * Check that a point is within bounds.
2844
2858
  *
@@ -7013,9 +7027,9 @@ export declare class View extends EventTarget {
7013
7027
  /**
7014
7028
  * Get the window presets.
7015
7029
  *
7016
- * @returns {object} The window presets.
7030
+ * @returns {Record<string, WindowPreset>} The window presets.
7017
7031
  */
7018
- getWindowPresets(): object;
7032
+ getWindowPresets(): Record<string, WindowPreset>;
7019
7033
  /**
7020
7034
  * Get the window presets names.
7021
7035
  *
@@ -7025,15 +7039,15 @@ export declare class View extends EventTarget {
7025
7039
  /**
7026
7040
  * Set the window presets.
7027
7041
  *
7028
- * @param {object} presets The window presets.
7042
+ * @param {Record<string, WindowPreset>} presets The window presets.
7029
7043
  */
7030
- setWindowPresets(presets: object): void;
7044
+ setWindowPresets(presets: Record<string, WindowPreset>): void;
7031
7045
  /**
7032
7046
  * Add window presets to the existing ones.
7033
7047
  *
7034
- * @param {object} presets The window presets.
7048
+ * @param {Record<string, WindowPreset>} presets The window presets.
7035
7049
  */
7036
- addWindowPresets(presets: object): void;
7050
+ addWindowPresets(presets: Record<string, WindowPreset>): void;
7037
7051
  /**
7038
7052
  * Get the current window level preset name.
7039
7053
  *
@@ -7264,6 +7278,7 @@ export declare class ViewConfig {
7264
7278
  /**
7265
7279
  * @import {View} from '../image/view.js';
7266
7280
  * @import {WindowLevel} from '../image/windowLevel.js';
7281
+ * @import {WindowPreset} from '../image/windowPreset.js';
7267
7282
  * @import {Point} from '../math/point.js';
7268
7283
  * @import {Scalar2D} from '../math/scalar.js';
7269
7284
  * @import {Matrix33} from '../math/matrix.js';
@@ -7327,10 +7342,10 @@ export declare class ViewController {
7327
7342
  /**
7328
7343
  * Add window/level presets to the view.
7329
7344
  *
7330
- * @param {object} presets A preset object.
7345
+ * @param {Record<string, WindowPreset>} presets A preset object.
7331
7346
  * @returns {object} The list of presets.
7332
7347
  */
7333
- addWindowLevelPresets(presets: object): object;
7348
+ addWindowLevelPresets(presets: Record<string, WindowPreset>): object;
7334
7349
  /**
7335
7350
  * Set the window level to the preset with the input name.
7336
7351
  *
@@ -8102,6 +8117,41 @@ export declare class WindowLevel {
8102
8117
  width: number;
8103
8118
  }
8104
8119
 
8120
+ /**
8121
+ * @import {WindowLevel} from './windowLevel.js';
8122
+ */
8123
+ /**
8124
+ * Window level preset: a named list of window levels.
8125
+ * The list holds a single window level unless the preset is 'perslice',
8126
+ * in which case it holds one window level per slice.
8127
+ */
8128
+ export declare class WindowPreset {
8129
+ /**
8130
+ * @param {string} name The preset name.
8131
+ * @param {WindowLevel[]} [wl] The list of window levels.
8132
+ * @param {boolean} [perslice] Flag for a per-slice window level list.
8133
+ */
8134
+ constructor(name: string, wl?: WindowLevel[], perslice?: boolean);
8135
+ /**
8136
+ * The preset name.
8137
+ *
8138
+ * @type {string}
8139
+ */
8140
+ name: string;
8141
+ /**
8142
+ * The list of window levels.
8143
+ *
8144
+ * @type {WindowLevel[]|undefined}
8145
+ */
8146
+ wl: WindowLevel[] | undefined;
8147
+ /**
8148
+ * Flag to indicate a per-slice window level list.
8149
+ *
8150
+ * @type {boolean|undefined}
8151
+ */
8152
+ perslice: boolean | undefined;
8153
+ }
8154
+
8105
8155
  /**
8106
8156
  * Writer rule.
8107
8157
  */