dwv 0.34.0-beta.8 → 0.34.0-beta.9

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 CHANGED
@@ -28,12 +28,6 @@ export declare class Annotation {
28
28
  * @type {string}
29
29
  */
30
30
  referenceSopUID: string;
31
- /**
32
- * The position: an Index converted to string.
33
- *
34
- * @type {string}
35
- */
36
- position: string;
37
31
  /**
38
32
  * The mathematical shape.
39
33
  *
@@ -66,7 +60,8 @@ export declare class Annotation {
66
60
  */
67
61
  textExpr: string | undefined;
68
62
  /**
69
- * Label position.
63
+ * Label position. If undefined, the default shape
64
+ * label position will be used.
70
65
  *
71
66
  * @type {Point2D|undefined}
72
67
  */
@@ -118,50 +113,6 @@ export declare class Annotation {
118
113
  #private;
119
114
  }
120
115
 
121
- /**
122
- * {@link Annotation} factory.
123
- */
124
- export declare class AnnotationFactory {
125
- /**
126
- * Get a warning string if elements are not as expected.
127
- * Created by checkElements.
128
- *
129
- * @returns {string|undefined} The warning.
130
- */
131
- getWarning(): string | undefined;
132
- /**
133
- * Check dicom elements. Throws an error if not suitable.
134
- *
135
- * @param {Object<string, DataElement>} dataElements The DICOM data elements.
136
- * @returns {string|undefined} A possible warning.
137
- */
138
- checkElements(dataElements: {
139
- [x: string]: DataElement;
140
- }): string | undefined;
141
- /**
142
- * Get an {@link Annotation} object from the read DICOM file.
143
- *
144
- * @param {Object<string, DataElement>} dataElements The DICOM tags.
145
- * @returns {AnnotationGroup} A new annotation group.
146
- */
147
- create(dataElements: {
148
- [x: string]: DataElement;
149
- }): AnnotationGroup;
150
- /**
151
- * Convert an annotation group into a DICOM SR object.
152
- *
153
- * @param {AnnotationGroup} annotationGroup The annotation group.
154
- * @param {Object<string, any>} [extraTags] Optional list of extra tags.
155
- * @returns {Object<string, DataElement>} A list of dicom elements.
156
- */
157
- toDicom(annotationGroup: AnnotationGroup, extraTags?: {
158
- [x: string]: any;
159
- }): {
160
- [x: string]: DataElement;
161
- };
162
- #private;
163
- }
164
-
165
116
  /**
166
117
  * Annotation group.
167
118
  */
@@ -275,6 +226,50 @@ export declare class AnnotationGroup {
275
226
  #private;
276
227
  }
277
228
 
229
+ /**
230
+ * {@link AnnotationGroup} factory.
231
+ */
232
+ export declare class AnnotationGroupFactory {
233
+ /**
234
+ * Get a warning string if elements are not as expected.
235
+ * Created by checkElements.
236
+ *
237
+ * @returns {string|undefined} The warning.
238
+ */
239
+ getWarning(): string | undefined;
240
+ /**
241
+ * Check dicom elements. Throws an error if not suitable.
242
+ *
243
+ * @param {Object<string, DataElement>} dataElements The DICOM data elements.
244
+ * @returns {string|undefined} A possible warning.
245
+ */
246
+ checkElements(dataElements: {
247
+ [x: string]: DataElement;
248
+ }): string | undefined;
249
+ /**
250
+ * Get an {@link Annotation} object from the read DICOM file.
251
+ *
252
+ * @param {Object<string, DataElement>} dataElements The DICOM tags.
253
+ * @returns {AnnotationGroup} A new annotation group.
254
+ */
255
+ create(dataElements: {
256
+ [x: string]: DataElement;
257
+ }): AnnotationGroup;
258
+ /**
259
+ * Convert an annotation group into a DICOM SR object.
260
+ *
261
+ * @param {AnnotationGroup} annotationGroup The annotation group.
262
+ * @param {Object<string, any>} [extraTags] Optional list of extra tags.
263
+ * @returns {Object<string, DataElement>} A list of dicom elements.
264
+ */
265
+ toDicom(annotationGroup: AnnotationGroup, extraTags?: {
266
+ [x: string]: any;
267
+ }): {
268
+ [x: string]: DataElement;
269
+ };
270
+ #private;
271
+ }
272
+
278
273
  /**
279
274
  * List of ViewConfigs indexed by dataIds.
280
275
  *