dwv 0.34.0-beta.4 → 0.34.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/dist/dwv.d.ts +25 -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
|
@@ -42,6 +42,12 @@ export declare class Annotation {
|
|
|
42
42
|
* @type {object}
|
|
43
43
|
*/
|
|
44
44
|
mathShape: object;
|
|
45
|
+
/**
|
|
46
|
+
* Additional points used to define the annotation.
|
|
47
|
+
*
|
|
48
|
+
* @type {Point2D[]}
|
|
49
|
+
*/
|
|
50
|
+
referencePoints: Point2D[];
|
|
45
51
|
/**
|
|
46
52
|
* The color: for example 'green', '#00ff00' or 'rgb(0,255,0)'.
|
|
47
53
|
*
|
|
@@ -109,6 +115,12 @@ export declare class Annotation {
|
|
|
109
115
|
* @returns {object} The factory.
|
|
110
116
|
*/
|
|
111
117
|
getFactory(): object;
|
|
118
|
+
/**
|
|
119
|
+
* Get the string type of this annotation.
|
|
120
|
+
*
|
|
121
|
+
* @returns {string} The type.
|
|
122
|
+
*/
|
|
123
|
+
getType(): string;
|
|
112
124
|
#private;
|
|
113
125
|
}
|
|
114
126
|
|
|
@@ -208,6 +220,14 @@ export declare class AnnotationGroup {
|
|
|
208
220
|
* @returns {Annotation|undefined} The found annotation.
|
|
209
221
|
*/
|
|
210
222
|
find(id: string): Annotation | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Get the meta data.
|
|
225
|
+
*
|
|
226
|
+
* @returns {Object<string, any>} The meta data.
|
|
227
|
+
*/
|
|
228
|
+
getMeta(): {
|
|
229
|
+
[x: string]: any;
|
|
230
|
+
};
|
|
211
231
|
/**
|
|
212
232
|
* Check if this list contains a meta data value.
|
|
213
233
|
*
|
|
@@ -221,14 +241,14 @@ export declare class AnnotationGroup {
|
|
|
221
241
|
* @param {string} key The meta data key.
|
|
222
242
|
* @returns {object} The meta data value.
|
|
223
243
|
*/
|
|
224
|
-
|
|
244
|
+
getMetaValue(key: string): object;
|
|
225
245
|
/**
|
|
226
246
|
* Set a meta data.
|
|
227
247
|
*
|
|
228
248
|
* @param {string} key The meta data key.
|
|
229
249
|
* @param {object} value The value of the meta data.
|
|
230
250
|
*/
|
|
231
|
-
|
|
251
|
+
setMetaValue(key: string, value: object): void;
|
|
232
252
|
/**
|
|
233
253
|
* Add an event listener to this class.
|
|
234
254
|
*
|
|
@@ -1737,8 +1757,9 @@ export declare class DrawShapeHandler {
|
|
|
1737
1757
|
*/
|
|
1738
1758
|
/**
|
|
1739
1759
|
* @param {App} app The associated application.
|
|
1760
|
+
* @param {Function} eventCallback Event callback.
|
|
1740
1761
|
*/
|
|
1741
|
-
constructor(app: App);
|
|
1762
|
+
constructor(app: App, eventCallback: Function);
|
|
1742
1763
|
/**
|
|
1743
1764
|
* Set the draw editor shape.
|
|
1744
1765
|
*
|
|
@@ -1777,7 +1798,7 @@ export declare class DrawShapeHandler {
|
|
|
1777
1798
|
*
|
|
1778
1799
|
* @param {DrawLayer} drawLayer The origin draw layer.
|
|
1779
1800
|
* @param {Konva.Group} shapeGroup The shape group to set on.
|
|
1780
|
-
* @param {Annotation} annotation The associated
|
|
1801
|
+
* @param {Annotation} annotation The associated annotation.
|
|
1781
1802
|
*/
|
|
1782
1803
|
addShapeListeners(drawLayer: DrawLayer, shapeGroup: Konva.Group, annotation: Annotation): void;
|
|
1783
1804
|
/**
|
|
@@ -4764,18 +4785,6 @@ export declare class ViewController {
|
|
|
4764
4785
|
* @returns {string} The unit.
|
|
4765
4786
|
*/
|
|
4766
4787
|
getPixelUnit(): string;
|
|
4767
|
-
/**
|
|
4768
|
-
* Get the image study instance UID.
|
|
4769
|
-
*
|
|
4770
|
-
* @returns {string} The UID.
|
|
4771
|
-
*/
|
|
4772
|
-
getStudyInstanceUID(): string;
|
|
4773
|
-
/**
|
|
4774
|
-
* Get the image series instance UID.
|
|
4775
|
-
*
|
|
4776
|
-
* @returns {string} The UID.
|
|
4777
|
-
*/
|
|
4778
|
-
getSeriesInstanceUID(): string;
|
|
4779
4788
|
/**
|
|
4780
4789
|
* Get some values from the associated image in a region.
|
|
4781
4790
|
*
|