dwv 0.33.0-beta.1 → 0.33.0-beta.3

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
@@ -1,3 +1,5 @@
1
+ import Konva from 'konva';
2
+
1
3
  /**
2
4
  * Add tags to the dictionary.
3
5
  *
@@ -64,11 +66,11 @@ export declare class App {
64
66
  */
65
67
  getMetaData(index: number): object;
66
68
  /**
67
- * Get the number of loaded data.
69
+ * Get the list of ids in the data storage.
68
70
  *
69
- * @returns {number} The number.
71
+ * @returns {Array} The list of data ids.
70
72
  */
71
- getNumberOfLoadedData(): number;
73
+ getDataIds(): any[];
72
74
  /**
73
75
  * Can the data be scrolled?
74
76
  *
@@ -313,6 +315,14 @@ export declare class App {
313
315
  * @param {object} config The view configuration.
314
316
  */
315
317
  removeDataViewConfig(dataId: number, config: object): void;
318
+ /**
319
+ * Update a data view config.
320
+ *
321
+ * @param {number} dataId The data id.
322
+ * @param {string} divId The div id.
323
+ * @param {object} config The view configuration.
324
+ */
325
+ updateDataViewConfig(dataId: number, divId: string, config: object): void;
316
326
  /**
317
327
  * Set the layer groups binders.
318
328
  *
@@ -323,8 +333,9 @@ export declare class App {
323
333
  * Render the current data.
324
334
  *
325
335
  * @param {number} dataIndex The data index to render.
336
+ * @param {Array} [viewConfigs] The list of configs to render.
326
337
  */
327
- render(dataIndex: number): void;
338
+ render(dataIndex: number, viewConfigs?: any[]): void;
328
339
  /**
329
340
  * Zoom to the layers.
330
341
  *
@@ -667,15 +678,15 @@ export declare class DrawLayer {
667
678
  /**
668
679
  * Get the Konva stage.
669
680
  *
670
- * @returns {object} The stage.
681
+ * @returns {Konva.Stage} The stage.
671
682
  */
672
- getKonvaStage(): object;
683
+ getKonvaStage(): Konva.Stage;
673
684
  /**
674
685
  * Get the Konva layer.
675
686
  *
676
- * @returns {object} The layer.
687
+ * @returns {Konva.Layer} The layer.
677
688
  */
678
- getKonvaLayer(): object;
689
+ getKonvaLayer(): Konva.Layer;
679
690
  /**
680
691
  * Get the draw controller.
681
692
  *