dwv 0.35.0-beta.12 → 0.35.0-beta.13

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
@@ -571,6 +571,7 @@ export declare class App {
571
571
  * Load a list of files. Can be image files or a state file.
572
572
  *
573
573
  * @param {File[]} files The list of files to load.
574
+ * @returns {string} The data ID, '-1' if problem.
574
575
  * @fires App#loadstart
575
576
  * @fires App#loadprogress
576
577
  * @fires App#loaditem
@@ -579,7 +580,7 @@ export declare class App {
579
580
  * @fires App#abort
580
581
  * @function
581
582
  */
582
- loadFiles: (files: File[]) => void;
583
+ loadFiles: (files: File[]) => string;
583
584
  /**
584
585
  * Load a list of URLs. Can be image files or a state file.
585
586
  *
@@ -588,6 +589,7 @@ export declare class App {
588
589
  * - requestHeaders: an array of {name, value} to use as request headers,
589
590
  * - withCredentials: boolean xhr.withCredentials flag to pass to the request,
590
591
  * - batchSize: the size of the request url batch.
592
+ * @returns {string} The data ID, '-1' if problem.
591
593
  * @fires App#loadstart
592
594
  * @fires App#loadprogress
593
595
  * @fires App#loaditem
@@ -596,7 +598,7 @@ export declare class App {
596
598
  * @fires App#abort
597
599
  * @function
598
600
  */
599
- loadURLs: (urls: string[], options?: object) => void;
601
+ loadURLs: (urls: string[], options?: object) => string;
600
602
  /**
601
603
  * Load from an input uri.
602
604
  *
@@ -610,6 +612,7 @@ export declare class App {
610
612
  *
611
613
  * @param {Array} data The list of ArrayBuffers to load
612
614
  * in the form of [{name: "", filename: "", data: data}].
615
+ * @returns {string} The data ID.
613
616
  * @fires App#loadstart
614
617
  * @fires App#loadprogress
615
618
  * @fires App#loaditem
@@ -618,7 +621,7 @@ export declare class App {
618
621
  * @fires App#abort
619
622
  * @function
620
623
  */
621
- loadImageObject: (data: any[]) => void;
624
+ loadImageObject: (data: any[]) => string;
622
625
  /**
623
626
  * Abort all the current loads.
624
627
  */
@@ -4577,9 +4580,9 @@ export declare class ROI {
4577
4580
  * a non-self-intersecting closed polygon.
4578
4581
  * Ref: {@link https://en.wikipedia.org/wiki/Centroid#Of_a_polygon}.
4579
4582
  *
4580
- * @returns {Point2D} The centroid point.
4583
+ * @returns {Point2D|undefined} The centroid point.
4581
4584
  */
4582
- getCentroid(): Point2D;
4585
+ getCentroid(): Point2D | undefined;
4583
4586
  #private;
4584
4587
  }
4585
4588