dwv 0.34.0-beta.6 → 0.34.0-beta.7

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
@@ -239,16 +239,16 @@ export declare class AnnotationGroup {
239
239
  * Get a meta data value.
240
240
  *
241
241
  * @param {string} key The meta data key.
242
- * @returns {object} The meta data value.
242
+ * @returns {string|object} The meta data value.
243
243
  */
244
- getMetaValue(key: string): object;
244
+ getMetaValue(key: string): string | object;
245
245
  /**
246
246
  * Set a meta data.
247
247
  *
248
248
  * @param {string} key The meta data key.
249
- * @param {object} value The value of the meta data.
249
+ * @param {string|object} value The value of the meta data.
250
250
  */
251
- setMetaValue(key: string, value: object): void;
251
+ setMetaValue(key: string, value: string | object): void;
252
252
  /**
253
253
  * Add an event listener to this class.
254
254
  *
@@ -788,6 +788,22 @@ export declare class App {
788
788
  * @param {string} dataId The data id.
789
789
  */
790
790
  toggleOverlayListeners(dataId: string): void;
791
+ /**
792
+ * Create new annotation data based on the data of
793
+ * the active view layer.
794
+ *
795
+ * @param {LayerGroup} layerGroup The layerGroup with the data to associate
796
+ * to the annotation.
797
+ * @returns {DicomData} The new data.
798
+ */
799
+ createAnnotationData(layerGroup: LayerGroup): DicomData;
800
+ /**
801
+ * Add new data and render it with a simple new data view config.
802
+ *
803
+ * @param {DicomData} data The data to add.
804
+ * @param {string} divId The div where to draw.
805
+ */
806
+ addAndRenderAnnotationData(data: DicomData, divId: string): void;
791
807
  /**
792
808
  * Add a draw layer.
793
809
  *
@@ -1143,7 +1159,6 @@ export declare class DeleteSegmentCommand {
1143
1159
  * DICOM code: item of a basic code sequence.
1144
1160
  *
1145
1161
  * Ref: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_8.8.html}.
1146
- * List: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part16/chapter_d.html}.
1147
1162
  */
1148
1163
  export declare class DicomCode {
1149
1164
  /**