dwv 0.35.0-beta.30 → 0.35.0-beta.32
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 +50 -4
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/dist/dwv.node.min.js +2 -0
- package/dist/dwv.node.min.js.map +1 -0
- package/package.json +23 -22
package/dist/dwv.d.ts
CHANGED
|
@@ -626,8 +626,18 @@ export declare class App {
|
|
|
626
626
|
reset(): void;
|
|
627
627
|
/**
|
|
628
628
|
* Reset the layout of the application.
|
|
629
|
+
*
|
|
630
|
+
* @deprecated Since v0.35, prefer resetZoomPan.
|
|
629
631
|
*/
|
|
630
632
|
resetLayout(): void;
|
|
633
|
+
/**
|
|
634
|
+
* Reset the zoom and pan of the stage.
|
|
635
|
+
*/
|
|
636
|
+
resetZoomPan(): void;
|
|
637
|
+
/**
|
|
638
|
+
* Reset the position and window level of the stage.
|
|
639
|
+
*/
|
|
640
|
+
resetViews(): void;
|
|
631
641
|
/**
|
|
632
642
|
* Add an event listener to this class.
|
|
633
643
|
*
|
|
@@ -1725,9 +1735,10 @@ export declare class DrawController {
|
|
|
1725
1735
|
*
|
|
1726
1736
|
* @param {Annotation} annotation The annotation to update.
|
|
1727
1737
|
* @param {string[]} [propKeys] Optional properties that got updated.
|
|
1728
|
-
* @param {boolean} [
|
|
1738
|
+
* @param {boolean} [propagate] Whether the update event propagates
|
|
1739
|
+
* outside of dwv or not, defaults to true.
|
|
1729
1740
|
*/
|
|
1730
|
-
updateAnnotation(annotation: Annotation, propKeys?: string[],
|
|
1741
|
+
updateAnnotation(annotation: Annotation, propKeys?: string[], propagate?: boolean): void;
|
|
1731
1742
|
/**
|
|
1732
1743
|
* Remove an anotation for the list.
|
|
1733
1744
|
*
|
|
@@ -3232,7 +3243,7 @@ export declare class LayerGroup {
|
|
|
3232
3243
|
*/
|
|
3233
3244
|
includes(id: string): boolean;
|
|
3234
3245
|
/**
|
|
3235
|
-
* Get
|
|
3246
|
+
* Get the view layers that satisfy the input callback function.
|
|
3236
3247
|
*
|
|
3237
3248
|
* @param {Function} [callbackFn] A function that takes
|
|
3238
3249
|
* a ViewLayer as input and returns a boolean. If undefined,
|
|
@@ -3241,6 +3252,17 @@ export declare class LayerGroup {
|
|
|
3241
3252
|
* satisfy the callbackFn.
|
|
3242
3253
|
*/
|
|
3243
3254
|
getViewLayers(callbackFn?: Function): ViewLayer[];
|
|
3255
|
+
/**
|
|
3256
|
+
* Get the view layers that satisfy the input callback function
|
|
3257
|
+
* starting from the active layer.
|
|
3258
|
+
*
|
|
3259
|
+
* @param {Function} [callbackFn] A function that takes
|
|
3260
|
+
* a ViewLayer as input and returns a boolean. If undefined,
|
|
3261
|
+
* returns all view layers.
|
|
3262
|
+
* @returns {ViewLayer[]} The layers that
|
|
3263
|
+
* satisfy the callbackFn.
|
|
3264
|
+
*/
|
|
3265
|
+
getViewLayersFromActive(callbackFn?: Function): ViewLayer[];
|
|
3244
3266
|
/**
|
|
3245
3267
|
* Test if one of the view layers satisfies an input callbackFn.
|
|
3246
3268
|
*
|
|
@@ -3299,7 +3321,7 @@ export declare class LayerGroup {
|
|
|
3299
3321
|
*/
|
|
3300
3322
|
getViewLayersByDataId(dataId: string): ViewLayer[];
|
|
3301
3323
|
/**
|
|
3302
|
-
* Search view layers for equal
|
|
3324
|
+
* Search view layers for equal image meta data.
|
|
3303
3325
|
*
|
|
3304
3326
|
* @param {object} meta The meta data to find.
|
|
3305
3327
|
* @returns {ViewLayer[]} The list of view layers that contain matched data.
|
|
@@ -3337,6 +3359,12 @@ export declare class LayerGroup {
|
|
|
3337
3359
|
* @param {number} index The index of the layer to set as active.
|
|
3338
3360
|
*/
|
|
3339
3361
|
setActiveLayer(index: number): void;
|
|
3362
|
+
/**
|
|
3363
|
+
* Set the active layer with a layer id.
|
|
3364
|
+
*
|
|
3365
|
+
* @param {string} id The layer id.
|
|
3366
|
+
*/
|
|
3367
|
+
setActiveLayerById(id: string): void;
|
|
3340
3368
|
/**
|
|
3341
3369
|
* Set the active layer with a data id.
|
|
3342
3370
|
*
|
|
@@ -3471,8 +3499,18 @@ export declare class LayerGroup {
|
|
|
3471
3499
|
setOffset(newOffset: Scalar3D): void;
|
|
3472
3500
|
/**
|
|
3473
3501
|
* Reset the stage to its initial scale and no offset.
|
|
3502
|
+
*
|
|
3503
|
+
* @deprecated Since v0.35, prefer resetZoomPan.
|
|
3474
3504
|
*/
|
|
3475
3505
|
reset(): void;
|
|
3506
|
+
/**
|
|
3507
|
+
* Reset the zoom and pan of all layers.
|
|
3508
|
+
*/
|
|
3509
|
+
resetZoomPan(): void;
|
|
3510
|
+
/**
|
|
3511
|
+
* Reset the position and window level of all view layers.
|
|
3512
|
+
*/
|
|
3513
|
+
resetViews(): void;
|
|
3476
3514
|
/**
|
|
3477
3515
|
* Draw the layer.
|
|
3478
3516
|
*/
|
|
@@ -5724,6 +5762,14 @@ export declare class ViewController {
|
|
|
5724
5762
|
* Initialise the controller.
|
|
5725
5763
|
*/
|
|
5726
5764
|
initialise(): void;
|
|
5765
|
+
/**
|
|
5766
|
+
* Reset the window level.
|
|
5767
|
+
*/
|
|
5768
|
+
resetWindowLevel(): void;
|
|
5769
|
+
/**
|
|
5770
|
+
* Reset the position.
|
|
5771
|
+
*/
|
|
5772
|
+
resetPosition(): void;
|
|
5727
5773
|
/**
|
|
5728
5774
|
* Get the image modality.
|
|
5729
5775
|
*
|