dwv 0.35.0-beta.30 → 0.35.0-beta.31

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
@@ -1725,9 +1725,10 @@ export declare class DrawController {
1725
1725
  *
1726
1726
  * @param {Annotation} annotation The annotation to update.
1727
1727
  * @param {string[]} [propKeys] Optional properties that got updated.
1728
- * @param {boolean} [silent] Whether to send a update event or not.
1728
+ * @param {boolean} [propagate] Whether the update event propagates
1729
+ * outside of dwv or not, defaults to true.
1729
1730
  */
1730
- updateAnnotation(annotation: Annotation, propKeys?: string[], silent?: boolean): void;
1731
+ updateAnnotation(annotation: Annotation, propKeys?: string[], propagate?: boolean): void;
1731
1732
  /**
1732
1733
  * Remove an anotation for the list.
1733
1734
  *
@@ -3232,7 +3233,7 @@ export declare class LayerGroup {
3232
3233
  */
3233
3234
  includes(id: string): boolean;
3234
3235
  /**
3235
- * Get a list of view layers according to an input callback function.
3236
+ * Get the view layers that satisfy the input callback function.
3236
3237
  *
3237
3238
  * @param {Function} [callbackFn] A function that takes
3238
3239
  * a ViewLayer as input and returns a boolean. If undefined,
@@ -3241,6 +3242,17 @@ export declare class LayerGroup {
3241
3242
  * satisfy the callbackFn.
3242
3243
  */
3243
3244
  getViewLayers(callbackFn?: Function): ViewLayer[];
3245
+ /**
3246
+ * Get the view layers that satisfy the input callback function
3247
+ * starting from the active layer.
3248
+ *
3249
+ * @param {Function} [callbackFn] A function that takes
3250
+ * a ViewLayer as input and returns a boolean. If undefined,
3251
+ * returns all view layers.
3252
+ * @returns {ViewLayer[]} The layers that
3253
+ * satisfy the callbackFn.
3254
+ */
3255
+ getViewLayersFromActive(callbackFn?: Function): ViewLayer[];
3244
3256
  /**
3245
3257
  * Test if one of the view layers satisfies an input callbackFn.
3246
3258
  *
@@ -3299,7 +3311,7 @@ export declare class LayerGroup {
3299
3311
  */
3300
3312
  getViewLayersByDataId(dataId: string): ViewLayer[];
3301
3313
  /**
3302
- * Search view layers for equal imae meta data.
3314
+ * Search view layers for equal image meta data.
3303
3315
  *
3304
3316
  * @param {object} meta The meta data to find.
3305
3317
  * @returns {ViewLayer[]} The list of view layers that contain matched data.