dwv 0.33.0-beta.10 → 0.33.0-beta.11
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 +62 -8
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -229,8 +229,8 @@ export declare class App {
|
|
|
229
229
|
* @fires App#loadprogress
|
|
230
230
|
* @fires App#loaditem
|
|
231
231
|
* @fires App#loadend
|
|
232
|
-
* @fires App#
|
|
233
|
-
* @fires App#
|
|
232
|
+
* @fires App#error
|
|
233
|
+
* @fires App#abort
|
|
234
234
|
* @function
|
|
235
235
|
*/
|
|
236
236
|
loadFiles: (files: File[]) => void;
|
|
@@ -246,8 +246,8 @@ export declare class App {
|
|
|
246
246
|
* @fires App#loadprogress
|
|
247
247
|
* @fires App#loaditem
|
|
248
248
|
* @fires App#loadend
|
|
249
|
-
* @fires App#
|
|
250
|
-
* @fires App#
|
|
249
|
+
* @fires App#error
|
|
250
|
+
* @fires App#abort
|
|
251
251
|
* @function
|
|
252
252
|
*/
|
|
253
253
|
loadURLs: (urls: string[], options?: object) => void;
|
|
@@ -268,8 +268,8 @@ export declare class App {
|
|
|
268
268
|
* @fires App#loadprogress
|
|
269
269
|
* @fires App#loaditem
|
|
270
270
|
* @fires App#loadend
|
|
271
|
-
* @fires App#
|
|
272
|
-
* @fires App#
|
|
271
|
+
* @fires App#error
|
|
272
|
+
* @fires App#abort
|
|
273
273
|
* @function
|
|
274
274
|
*/
|
|
275
275
|
loadImageObject: (data: any[]) => void;
|
|
@@ -292,6 +292,26 @@ export declare class App {
|
|
|
292
292
|
* @param {boolean} flag True to enable smoothing.
|
|
293
293
|
*/
|
|
294
294
|
setImageSmoothing(flag: boolean): void;
|
|
295
|
+
/**
|
|
296
|
+
* Get the layer group configuration from a data id.
|
|
297
|
+
*
|
|
298
|
+
* @param {string} dataId The data id.
|
|
299
|
+
* @param {boolean} [excludeStarConfig] Exclude the star config
|
|
300
|
+
* (default to false).
|
|
301
|
+
* @returns {ViewConfig[]} The list of associated configs.
|
|
302
|
+
*/
|
|
303
|
+
getViewConfigs(dataId: string, excludeStarConfig?: boolean): ViewConfig[];
|
|
304
|
+
/**
|
|
305
|
+
* Get the layer group configuration for a data id and group
|
|
306
|
+
* div id.
|
|
307
|
+
*
|
|
308
|
+
* @param {string} dataId The data id.
|
|
309
|
+
* @param {string} groupDivId The layer group div id.
|
|
310
|
+
* @param {boolean} [excludeStarConfig] Exclude the star config
|
|
311
|
+
* (default to false).
|
|
312
|
+
* @returns {ViewConfig|undefined} The associated config.
|
|
313
|
+
*/
|
|
314
|
+
getViewConfig(dataId: string, groupDivId: string, excludeStarConfig?: boolean): ViewConfig | undefined;
|
|
295
315
|
/**
|
|
296
316
|
* Get the data view config.
|
|
297
317
|
* Carefull, returns a reference, do not modify without resetting.
|
|
@@ -325,7 +345,7 @@ export declare class App {
|
|
|
325
345
|
*/
|
|
326
346
|
removeDataViewConfig(dataId: string, config: ViewConfig): void;
|
|
327
347
|
/**
|
|
328
|
-
* Update
|
|
348
|
+
* Update an existing data view config.
|
|
329
349
|
* Removes and re-creates the layer if found.
|
|
330
350
|
*
|
|
331
351
|
* @param {string} dataId The data id.
|
|
@@ -946,6 +966,13 @@ export declare class DrawController {
|
|
|
946
966
|
* DeleteCommand has been executed.
|
|
947
967
|
*/
|
|
948
968
|
deleteDraws(cmdCallback: Function, exeCallback: Function): void;
|
|
969
|
+
/**
|
|
970
|
+
* Get the total number of draws
|
|
971
|
+
* (at all positions).
|
|
972
|
+
*
|
|
973
|
+
* @returns {number} The total number of draws.
|
|
974
|
+
*/
|
|
975
|
+
getNumberOfDraws(): number;
|
|
949
976
|
#private;
|
|
950
977
|
}
|
|
951
978
|
|
|
@@ -1143,6 +1170,13 @@ export declare class DrawLayer {
|
|
|
1143
1170
|
* DeleteCommand has been executed.
|
|
1144
1171
|
*/
|
|
1145
1172
|
deleteDraws(exeCallback: object): void;
|
|
1173
|
+
/**
|
|
1174
|
+
* Get the total number of draws of this layer
|
|
1175
|
+
* (at all positions).
|
|
1176
|
+
*
|
|
1177
|
+
* @returns {number|undefined} The total number of draws.
|
|
1178
|
+
*/
|
|
1179
|
+
getNumberOfDraws(): number | undefined;
|
|
1146
1180
|
/**
|
|
1147
1181
|
* Enable and listen to container interaction events.
|
|
1148
1182
|
*/
|
|
@@ -3078,7 +3112,15 @@ export declare class ToolConfig {
|
|
|
3078
3112
|
options: string[] | undefined;
|
|
3079
3113
|
}
|
|
3080
3114
|
|
|
3081
|
-
|
|
3115
|
+
/**
|
|
3116
|
+
* List of client provided tools to be added to
|
|
3117
|
+
* the default ones.
|
|
3118
|
+
*
|
|
3119
|
+
* @type {Object<string, any>}
|
|
3120
|
+
*/
|
|
3121
|
+
export declare const toolList: {
|
|
3122
|
+
[x: string]: any;
|
|
3123
|
+
};
|
|
3082
3124
|
|
|
3083
3125
|
/**
|
|
3084
3126
|
* Immutable 3D vector.
|
|
@@ -3477,6 +3519,18 @@ export declare class ViewConfig {
|
|
|
3477
3519
|
* @type {number|undefined}
|
|
3478
3520
|
*/
|
|
3479
3521
|
opacity: number | undefined;
|
|
3522
|
+
/**
|
|
3523
|
+
* Optional layer window center.
|
|
3524
|
+
*
|
|
3525
|
+
* @type {number|undefined}
|
|
3526
|
+
*/
|
|
3527
|
+
windowCenter: number | undefined;
|
|
3528
|
+
/**
|
|
3529
|
+
* Optional layer window width.
|
|
3530
|
+
*
|
|
3531
|
+
* @type {number|undefined}
|
|
3532
|
+
*/
|
|
3533
|
+
windowWidth: number | undefined;
|
|
3480
3534
|
}
|
|
3481
3535
|
|
|
3482
3536
|
/**
|