dwv 0.34.0-beta.10 → 0.34.0-beta.12

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
@@ -803,18 +803,18 @@ export declare class App {
803
803
  * Create new annotation data based on the data of
804
804
  * the active view layer.
805
805
  *
806
- * @param {LayerGroup} layerGroup The layerGroup with the data to associate
807
- * to the annotation.
806
+ * @param {string} refDataId The reference data id.
808
807
  * @returns {DicomData} The new data.
809
808
  */
810
- createAnnotationData(layerGroup: LayerGroup): DicomData;
809
+ createAnnotationData(refDataId: string): DicomData;
811
810
  /**
812
811
  * Add new data and render it with a simple new data view config.
813
812
  *
814
813
  * @param {DicomData} data The data to add.
815
814
  * @param {string} divId The div where to draw.
815
+ * @param {string} refDataId The reference data id.
816
816
  */
817
- addAndRenderAnnotationData(data: DicomData, divId: string): void;
817
+ addAndRenderAnnotationData(data: DicomData, divId: string, refDataId: string): void;
818
818
  /**
819
819
  * Add a draw layer.
820
820
  *
@@ -1721,6 +1721,13 @@ export declare class DrawLayer {
1721
1721
  * will toggle visibility if not defined.
1722
1722
  */
1723
1723
  setLabelsVisibility(visible?: boolean): void;
1724
+ /**
1725
+ * Set a shape group label visibility according to
1726
+ * this layer setting.
1727
+ *
1728
+ * @param {Konva.Group} shapeGroup The shape group.
1729
+ */
1730
+ setLabelVisibility(shapeGroup: Konva.Group): void;
1724
1731
  /**
1725
1732
  * Delete a Draw from the stage.
1726
1733
  *
@@ -3222,6 +3229,12 @@ export declare class MaskSegmentHelper {
3222
3229
  * @returns {boolean} True if the segment is included.
3223
3230
  */
3224
3231
  hasSegment(segmentNumber: number): boolean;
3232
+ /**
3233
+ * Get the number of segments of the segmentation.
3234
+ *
3235
+ * @returns {number} The number of segments.
3236
+ */
3237
+ getNumberOfSegments(): number;
3225
3238
  /**
3226
3239
  * Check if a segment is present in a mask image.
3227
3240
  *