dwv 0.33.0-beta.0 → 0.33.0-beta.2
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 +40 -5
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +2 -2
package/dist/dwv.d.ts
CHANGED
|
@@ -64,11 +64,11 @@ export declare class App {
|
|
|
64
64
|
*/
|
|
65
65
|
getMetaData(index: number): object;
|
|
66
66
|
/**
|
|
67
|
-
* Get the
|
|
67
|
+
* Get the list of ids in the data storage.
|
|
68
68
|
*
|
|
69
|
-
* @returns {
|
|
69
|
+
* @returns {Array} The list of data ids.
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
getDataIds(): any[];
|
|
72
72
|
/**
|
|
73
73
|
* Can the data be scrolled?
|
|
74
74
|
*
|
|
@@ -299,6 +299,28 @@ export declare class App {
|
|
|
299
299
|
* @param {object} configs The configuration list.
|
|
300
300
|
*/
|
|
301
301
|
setDataViewConfig(configs: object): void;
|
|
302
|
+
/**
|
|
303
|
+
* Add a data view config.
|
|
304
|
+
*
|
|
305
|
+
* @param {number} dataId The data id.
|
|
306
|
+
* @param {object} config The view configuration.
|
|
307
|
+
*/
|
|
308
|
+
addDataViewConfig(dataId: number, config: object): void;
|
|
309
|
+
/**
|
|
310
|
+
* Remove a data view config.
|
|
311
|
+
*
|
|
312
|
+
* @param {number} dataId The data id.
|
|
313
|
+
* @param {object} config The view configuration.
|
|
314
|
+
*/
|
|
315
|
+
removeDataViewConfig(dataId: number, config: object): void;
|
|
316
|
+
/**
|
|
317
|
+
* Update a data view config.
|
|
318
|
+
*
|
|
319
|
+
* @param {number} dataId The data id.
|
|
320
|
+
* @param {string} divId The div id.
|
|
321
|
+
* @param {object} config The view configuration.
|
|
322
|
+
*/
|
|
323
|
+
updateDataViewConfig(dataId: number, divId: string, config: object): void;
|
|
302
324
|
/**
|
|
303
325
|
* Set the layer groups binders.
|
|
304
326
|
*
|
|
@@ -309,8 +331,9 @@ export declare class App {
|
|
|
309
331
|
* Render the current data.
|
|
310
332
|
*
|
|
311
333
|
* @param {number} dataIndex The data index to render.
|
|
334
|
+
* @param {Array} [viewConfigs] The list of configs to render.
|
|
312
335
|
*/
|
|
313
|
-
render(dataIndex: number): void;
|
|
336
|
+
render(dataIndex: number, viewConfigs?: any[]): void;
|
|
314
337
|
/**
|
|
315
338
|
* Zoom to the layers.
|
|
316
339
|
*
|
|
@@ -521,7 +544,13 @@ export declare const defaultPresets: {
|
|
|
521
544
|
};
|
|
522
545
|
};
|
|
523
546
|
|
|
524
|
-
export declare
|
|
547
|
+
export declare namespace defaults {
|
|
548
|
+
let labelText: {
|
|
549
|
+
[x: string]: {
|
|
550
|
+
[x: string]: string;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
}
|
|
525
554
|
|
|
526
555
|
/**
|
|
527
556
|
* DicomParser class.
|
|
@@ -1705,6 +1734,12 @@ export declare class LayerGroup {
|
|
|
1705
1734
|
* Empty the layer list.
|
|
1706
1735
|
*/
|
|
1707
1736
|
empty(): void;
|
|
1737
|
+
/**
|
|
1738
|
+
* Remove a layer from this layer group.
|
|
1739
|
+
*
|
|
1740
|
+
* @param {ViewLayer | DrawLayer} layer The layer to remove.
|
|
1741
|
+
*/
|
|
1742
|
+
removeLayer(layer: ViewLayer | DrawLayer): void;
|
|
1708
1743
|
/**
|
|
1709
1744
|
* Update layers (but not the active view layer) to a position change.
|
|
1710
1745
|
*
|