dwv 0.37.0-beta.4 → 0.37.0-beta.6
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/dev/dicom/pages/diff.html +34 -0
- package/dev/dicom/pages/diff.js +97 -0
- package/dev/index.html +2 -1
- package/dev/pacs/viewer.ui.segment.js +119 -13
- package/dist/assets/workers/labeling.worker.min.js.map +1 -1
- package/dist/assets/workers/resampling.worker.min.js.map +1 -1
- package/dist/assets/workers/rle.worker.min.js.map +1 -1
- package/dist/dwv.d.ts +75 -8
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/dist/dwv.node.min.js +1 -1
- package/dist/dwv.node.min.js.map +1 -1
- package/package.json +7 -5
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
|
*
|
|
@@ -4853,6 +4867,23 @@ export declare class Matrix33 {
|
|
|
4853
4867
|
#private;
|
|
4854
4868
|
}
|
|
4855
4869
|
|
|
4870
|
+
/**
|
|
4871
|
+
* Merge two mask images into a new combined mask image.
|
|
4872
|
+
*
|
|
4873
|
+
* Segments from mask2 that share a segment number with mask1 are renumbered
|
|
4874
|
+
* (bumped to the next available number) to avoid conflicts. Both masks must
|
|
4875
|
+
* reference the same geometry (same spatial volume).
|
|
4876
|
+
* Brush-painted masks (no per-segment SegmentCollection data) are supported.
|
|
4877
|
+
*
|
|
4878
|
+
* The returned image can be saved with the standard
|
|
4879
|
+
* `new MaskFactory().toDicom(merged, undefined, sourceImage)` workflow.
|
|
4880
|
+
*
|
|
4881
|
+
* @param {Image} mask1 The first mask (provides base geometry and meta).
|
|
4882
|
+
* @param {Image} mask2 The second mask to merge into mask1.
|
|
4883
|
+
* @returns {Image} The new merged mask image.
|
|
4884
|
+
*/
|
|
4885
|
+
export declare function mergeMaskImages(mask1: Image_2, mask2: Image_2): Image_2;
|
|
4886
|
+
|
|
4856
4887
|
export declare namespace NormalisedManufacturers {
|
|
4857
4888
|
let GE: string;
|
|
4858
4889
|
let SIEMENS: string;
|
|
@@ -6996,9 +7027,9 @@ export declare class View extends EventTarget {
|
|
|
6996
7027
|
/**
|
|
6997
7028
|
* Get the window presets.
|
|
6998
7029
|
*
|
|
6999
|
-
* @returns {
|
|
7030
|
+
* @returns {Record<string, WindowPreset>} The window presets.
|
|
7000
7031
|
*/
|
|
7001
|
-
getWindowPresets():
|
|
7032
|
+
getWindowPresets(): Record<string, WindowPreset>;
|
|
7002
7033
|
/**
|
|
7003
7034
|
* Get the window presets names.
|
|
7004
7035
|
*
|
|
@@ -7008,15 +7039,15 @@ export declare class View extends EventTarget {
|
|
|
7008
7039
|
/**
|
|
7009
7040
|
* Set the window presets.
|
|
7010
7041
|
*
|
|
7011
|
-
* @param {
|
|
7042
|
+
* @param {Record<string, WindowPreset>} presets The window presets.
|
|
7012
7043
|
*/
|
|
7013
|
-
setWindowPresets(presets:
|
|
7044
|
+
setWindowPresets(presets: Record<string, WindowPreset>): void;
|
|
7014
7045
|
/**
|
|
7015
7046
|
* Add window presets to the existing ones.
|
|
7016
7047
|
*
|
|
7017
|
-
* @param {
|
|
7048
|
+
* @param {Record<string, WindowPreset>} presets The window presets.
|
|
7018
7049
|
*/
|
|
7019
|
-
addWindowPresets(presets:
|
|
7050
|
+
addWindowPresets(presets: Record<string, WindowPreset>): void;
|
|
7020
7051
|
/**
|
|
7021
7052
|
* Get the current window level preset name.
|
|
7022
7053
|
*
|
|
@@ -7247,6 +7278,7 @@ export declare class ViewConfig {
|
|
|
7247
7278
|
/**
|
|
7248
7279
|
* @import {View} from '../image/view.js';
|
|
7249
7280
|
* @import {WindowLevel} from '../image/windowLevel.js';
|
|
7281
|
+
* @import {WindowPreset} from '../image/windowPreset.js';
|
|
7250
7282
|
* @import {Point} from '../math/point.js';
|
|
7251
7283
|
* @import {Scalar2D} from '../math/scalar.js';
|
|
7252
7284
|
* @import {Matrix33} from '../math/matrix.js';
|
|
@@ -7310,10 +7342,10 @@ export declare class ViewController {
|
|
|
7310
7342
|
/**
|
|
7311
7343
|
* Add window/level presets to the view.
|
|
7312
7344
|
*
|
|
7313
|
-
* @param {
|
|
7345
|
+
* @param {Record<string, WindowPreset>} presets A preset object.
|
|
7314
7346
|
* @returns {object} The list of presets.
|
|
7315
7347
|
*/
|
|
7316
|
-
addWindowLevelPresets(presets:
|
|
7348
|
+
addWindowLevelPresets(presets: Record<string, WindowPreset>): object;
|
|
7317
7349
|
/**
|
|
7318
7350
|
* Set the window level to the preset with the input name.
|
|
7319
7351
|
*
|
|
@@ -8085,6 +8117,41 @@ export declare class WindowLevel {
|
|
|
8085
8117
|
width: number;
|
|
8086
8118
|
}
|
|
8087
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
|
+
|
|
8088
8155
|
/**
|
|
8089
8156
|
* Writer rule.
|
|
8090
8157
|
*/
|