dwv 0.34.0-beta.4 → 0.34.0-beta.5
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 +19 -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
|
@@ -109,6 +109,12 @@ export declare class Annotation {
|
|
|
109
109
|
* @returns {object} The factory.
|
|
110
110
|
*/
|
|
111
111
|
getFactory(): object;
|
|
112
|
+
/**
|
|
113
|
+
* Get the string type of this annotation.
|
|
114
|
+
*
|
|
115
|
+
* @returns {string} The type.
|
|
116
|
+
*/
|
|
117
|
+
getType(): string;
|
|
112
118
|
#private;
|
|
113
119
|
}
|
|
114
120
|
|
|
@@ -208,6 +214,14 @@ export declare class AnnotationGroup {
|
|
|
208
214
|
* @returns {Annotation|undefined} The found annotation.
|
|
209
215
|
*/
|
|
210
216
|
find(id: string): Annotation | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* Get the meta data.
|
|
219
|
+
*
|
|
220
|
+
* @returns {Object<string, any>} The meta data.
|
|
221
|
+
*/
|
|
222
|
+
getMeta(): {
|
|
223
|
+
[x: string]: any;
|
|
224
|
+
};
|
|
211
225
|
/**
|
|
212
226
|
* Check if this list contains a meta data value.
|
|
213
227
|
*
|
|
@@ -221,14 +235,14 @@ export declare class AnnotationGroup {
|
|
|
221
235
|
* @param {string} key The meta data key.
|
|
222
236
|
* @returns {object} The meta data value.
|
|
223
237
|
*/
|
|
224
|
-
|
|
238
|
+
getMetaValue(key: string): object;
|
|
225
239
|
/**
|
|
226
240
|
* Set a meta data.
|
|
227
241
|
*
|
|
228
242
|
* @param {string} key The meta data key.
|
|
229
243
|
* @param {object} value The value of the meta data.
|
|
230
244
|
*/
|
|
231
|
-
|
|
245
|
+
setMetaValue(key: string, value: object): void;
|
|
232
246
|
/**
|
|
233
247
|
* Add an event listener to this class.
|
|
234
248
|
*
|
|
@@ -1737,8 +1751,9 @@ export declare class DrawShapeHandler {
|
|
|
1737
1751
|
*/
|
|
1738
1752
|
/**
|
|
1739
1753
|
* @param {App} app The associated application.
|
|
1754
|
+
* @param {Function} eventCallback Event callback.
|
|
1740
1755
|
*/
|
|
1741
|
-
constructor(app: App);
|
|
1756
|
+
constructor(app: App, eventCallback: Function);
|
|
1742
1757
|
/**
|
|
1743
1758
|
* Set the draw editor shape.
|
|
1744
1759
|
*
|
|
@@ -1777,7 +1792,7 @@ export declare class DrawShapeHandler {
|
|
|
1777
1792
|
*
|
|
1778
1793
|
* @param {DrawLayer} drawLayer The origin draw layer.
|
|
1779
1794
|
* @param {Konva.Group} shapeGroup The shape group to set on.
|
|
1780
|
-
* @param {Annotation} annotation The associated
|
|
1795
|
+
* @param {Annotation} annotation The associated annotation.
|
|
1781
1796
|
*/
|
|
1782
1797
|
addShapeListeners(drawLayer: DrawLayer, shapeGroup: Konva.Group, annotation: Annotation): void;
|
|
1783
1798
|
/**
|
|
@@ -4764,18 +4779,6 @@ export declare class ViewController {
|
|
|
4764
4779
|
* @returns {string} The unit.
|
|
4765
4780
|
*/
|
|
4766
4781
|
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
4782
|
/**
|
|
4780
4783
|
* Get some values from the associated image in a region.
|
|
4781
4784
|
*
|