dwv 0.32.2-beta.1 → 0.32.2
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 +87 -16
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -108,9 +108,9 @@ export declare class App {
|
|
|
108
108
|
/**
|
|
109
109
|
* Get the toolbox controller.
|
|
110
110
|
*
|
|
111
|
-
* @returns {
|
|
111
|
+
* @returns {ToolboxController} The controller.
|
|
112
112
|
*/
|
|
113
|
-
getToolboxController():
|
|
113
|
+
getToolboxController(): ToolboxController;
|
|
114
114
|
/**
|
|
115
115
|
* Get the active layer group.
|
|
116
116
|
* The layer is available after the first loaded item.
|
|
@@ -123,17 +123,17 @@ export declare class App {
|
|
|
123
123
|
* The layer are available after the first loaded item.
|
|
124
124
|
*
|
|
125
125
|
* @param {number} index The data index.
|
|
126
|
-
* @returns {
|
|
126
|
+
* @returns {ViewLayer[]} The layers.
|
|
127
127
|
*/
|
|
128
|
-
getViewLayersByDataIndex(index: number):
|
|
128
|
+
getViewLayersByDataIndex(index: number): ViewLayer[];
|
|
129
129
|
/**
|
|
130
130
|
* Get the draw layers associated to a data index.
|
|
131
131
|
* The layer are available after the first loaded item.
|
|
132
132
|
*
|
|
133
133
|
* @param {number} index The data index.
|
|
134
|
-
* @returns {
|
|
134
|
+
* @returns {DrawLayer[]} The layers.
|
|
135
135
|
*/
|
|
136
|
-
getDrawLayersByDataIndex(index: number):
|
|
136
|
+
getDrawLayersByDataIndex(index: number): DrawLayer[];
|
|
137
137
|
/**
|
|
138
138
|
* Get a layer group by div id.
|
|
139
139
|
* The layer is available after the first loaded item.
|
|
@@ -466,11 +466,11 @@ export declare class AppOptions {
|
|
|
466
466
|
/**
|
|
467
467
|
* Tool name indexed object containing individual tool configurations.
|
|
468
468
|
*
|
|
469
|
-
* @type {Object<string, ToolConfig
|
|
469
|
+
* @type {Object<string, ToolConfig>|undefined}
|
|
470
470
|
*/
|
|
471
471
|
tools: {
|
|
472
472
|
[x: string]: ToolConfig;
|
|
473
|
-
};
|
|
473
|
+
} | undefined;
|
|
474
474
|
/**
|
|
475
475
|
* Optional array of layerGroup binder names.
|
|
476
476
|
*
|
|
@@ -511,6 +511,12 @@ export declare function buildMultipart(parts: any[], boundary: string): Uint8Arr
|
|
|
511
511
|
* to associate with intensity values.
|
|
512
512
|
*/
|
|
513
513
|
export declare class ColourMap {
|
|
514
|
+
/**
|
|
515
|
+
* @param {number[]} red Red component.
|
|
516
|
+
* @param {number[]} green Green component.
|
|
517
|
+
* @param {number[]} blue Blue component.
|
|
518
|
+
*/
|
|
519
|
+
constructor(red: number[], green: number[], blue: number[]);
|
|
514
520
|
/**
|
|
515
521
|
* Red component: 256 values in the [0, 255] range.
|
|
516
522
|
*
|
|
@@ -858,9 +864,9 @@ export declare class DrawLayer {
|
|
|
858
864
|
* Set the layer scale.
|
|
859
865
|
*
|
|
860
866
|
* @param {object} newScale The scale as {x,y}.
|
|
861
|
-
* @param {Point3D} center The scale center.
|
|
867
|
+
* @param {Point3D} [center] The scale center.
|
|
862
868
|
*/
|
|
863
|
-
setScale(newScale: object, center
|
|
869
|
+
setScale(newScale: object, center?: Point3D): void;
|
|
864
870
|
/**
|
|
865
871
|
* Set the layer offset.
|
|
866
872
|
*
|
|
@@ -921,7 +927,7 @@ export declare class DrawLayer {
|
|
|
921
927
|
* @param {string} id The id of the group.
|
|
922
928
|
* @returns {boolean} False if the group cannot be found.
|
|
923
929
|
*/
|
|
924
|
-
|
|
930
|
+
toggleGroupVisibility(id: string): boolean;
|
|
925
931
|
/**
|
|
926
932
|
* Delete a Draw from the stage.
|
|
927
933
|
*
|
|
@@ -2666,6 +2672,67 @@ export declare class TagValueExtractor {
|
|
|
2666
2672
|
}): number | undefined;
|
|
2667
2673
|
}
|
|
2668
2674
|
|
|
2675
|
+
/**
|
|
2676
|
+
* Toolbox controller.
|
|
2677
|
+
*/
|
|
2678
|
+
export declare class ToolboxController {
|
|
2679
|
+
/**
|
|
2680
|
+
* @param {object} toolList The list of tool objects.
|
|
2681
|
+
*/
|
|
2682
|
+
constructor(toolList: object);
|
|
2683
|
+
/**
|
|
2684
|
+
* Initialise.
|
|
2685
|
+
*/
|
|
2686
|
+
init(): void;
|
|
2687
|
+
/**
|
|
2688
|
+
* Get the tool list.
|
|
2689
|
+
*
|
|
2690
|
+
* @returns {Array} The list of tool objects.
|
|
2691
|
+
*/
|
|
2692
|
+
getToolList(): any[];
|
|
2693
|
+
/**
|
|
2694
|
+
* Check if a tool is in the tool list.
|
|
2695
|
+
*
|
|
2696
|
+
* @param {string} name The name to check.
|
|
2697
|
+
* @returns {boolean} The tool list element for the given name.
|
|
2698
|
+
*/
|
|
2699
|
+
hasTool(name: string): boolean;
|
|
2700
|
+
/**
|
|
2701
|
+
* Get the selected tool.
|
|
2702
|
+
*
|
|
2703
|
+
* @returns {object} The selected tool.
|
|
2704
|
+
*/
|
|
2705
|
+
getSelectedTool(): object;
|
|
2706
|
+
/**
|
|
2707
|
+
* Get the selected tool event handler.
|
|
2708
|
+
*
|
|
2709
|
+
* @param {string} eventType The event type, for example
|
|
2710
|
+
* mousedown, touchstart...
|
|
2711
|
+
* @returns {Function} The event handler.
|
|
2712
|
+
*/
|
|
2713
|
+
getSelectedToolEventHandler(eventType: string): Function;
|
|
2714
|
+
/**
|
|
2715
|
+
* Set the selected tool.
|
|
2716
|
+
*
|
|
2717
|
+
* @param {string} name The name of the tool.
|
|
2718
|
+
*/
|
|
2719
|
+
setSelectedTool(name: string): void;
|
|
2720
|
+
/**
|
|
2721
|
+
* Set the selected tool live features.
|
|
2722
|
+
*
|
|
2723
|
+
* @param {object} list The list of features.
|
|
2724
|
+
*/
|
|
2725
|
+
setToolFeatures(list: object): void;
|
|
2726
|
+
/**
|
|
2727
|
+
* Listen to layer interaction events.
|
|
2728
|
+
*
|
|
2729
|
+
* @param {object} layer The layer to listen to.
|
|
2730
|
+
* @param {string} layerGroupDivId The associated layer group div id.
|
|
2731
|
+
*/
|
|
2732
|
+
bindLayer(layer: object, layerGroupDivId: string): void;
|
|
2733
|
+
#private;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2669
2736
|
/**
|
|
2670
2737
|
* Tool configuration.
|
|
2671
2738
|
*/
|
|
@@ -3552,9 +3619,9 @@ export declare class ViewLayer {
|
|
|
3552
3619
|
* Set the layer scale.
|
|
3553
3620
|
*
|
|
3554
3621
|
* @param {object} newScale The scale as {x,y}.
|
|
3555
|
-
* @param {Point3D} center The scale center.
|
|
3622
|
+
* @param {Point3D} [center] The scale center.
|
|
3556
3623
|
*/
|
|
3557
|
-
setScale(newScale: object, center
|
|
3624
|
+
setScale(newScale: object, center?: Point3D): void;
|
|
3558
3625
|
/**
|
|
3559
3626
|
* Set the base layer offset. Updates the layer offset.
|
|
3560
3627
|
*
|
|
@@ -3817,6 +3884,10 @@ export declare class WindowLut {
|
|
|
3817
3884
|
* Writer rule.
|
|
3818
3885
|
*/
|
|
3819
3886
|
export declare class WriterRule {
|
|
3887
|
+
/**
|
|
3888
|
+
* @param {string} action The rule action.
|
|
3889
|
+
*/
|
|
3890
|
+
constructor(action: string);
|
|
3820
3891
|
/**
|
|
3821
3892
|
* Rule action: `copy`, `remove`, `clear` or `replace`.
|
|
3822
3893
|
*
|
|
@@ -3824,11 +3895,11 @@ export declare class WriterRule {
|
|
|
3824
3895
|
*/
|
|
3825
3896
|
action: string;
|
|
3826
3897
|
/**
|
|
3827
|
-
*
|
|
3898
|
+
* Optional value to use for replace action.
|
|
3828
3899
|
*
|
|
3829
|
-
* @type {any}
|
|
3900
|
+
* @type {any|undefined}
|
|
3830
3901
|
*/
|
|
3831
|
-
value: any;
|
|
3902
|
+
value: any | undefined;
|
|
3832
3903
|
}
|
|
3833
3904
|
|
|
3834
3905
|
export { }
|