Skip to content

Commit

Permalink
Beta 0.35.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Feb 3, 2025
1 parent ea6eaac commit f0c2128
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
13 changes: 8 additions & 5 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ export declare class App {
* Load a list of files. Can be image files or a state file.
*
* @param {File[]} files The list of files to load.
* @returns {string} The data ID, '-1' if problem.
* @fires App#loadstart
* @fires App#loadprogress
* @fires App#loaditem
Expand All @@ -579,7 +580,7 @@ export declare class App {
* @fires App#abort
* @function
*/
loadFiles: (files: File[]) => void;
loadFiles: (files: File[]) => string;
/**
* Load a list of URLs. Can be image files or a state file.
*
Expand All @@ -588,6 +589,7 @@ export declare class App {
* - requestHeaders: an array of {name, value} to use as request headers,
* - withCredentials: boolean xhr.withCredentials flag to pass to the request,
* - batchSize: the size of the request url batch.
* @returns {string} The data ID, '-1' if problem.
* @fires App#loadstart
* @fires App#loadprogress
* @fires App#loaditem
Expand All @@ -596,7 +598,7 @@ export declare class App {
* @fires App#abort
* @function
*/
loadURLs: (urls: string[], options?: object) => void;
loadURLs: (urls: string[], options?: object) => string;
/**
* Load from an input uri.
*
Expand All @@ -610,6 +612,7 @@ export declare class App {
*
* @param {Array} data The list of ArrayBuffers to load
* in the form of [{name: "", filename: "", data: data}].
* @returns {string} The data ID.
* @fires App#loadstart
* @fires App#loadprogress
* @fires App#loaditem
Expand All @@ -618,7 +621,7 @@ export declare class App {
* @fires App#abort
* @function
*/
loadImageObject: (data: any[]) => void;
loadImageObject: (data: any[]) => string;
/**
* Abort all the current loads.
*/
Expand Down Expand Up @@ -4577,9 +4580,9 @@ export declare class ROI {
* a non-self-intersecting closed polygon.
* Ref: {@link https://en.wikipedia.org/wiki/Centroid#Of_a_polygon}.
*
* @returns {Point2D} The centroid point.
* @returns {Point2D|undefined} The centroid point.
*/
getCentroid(): Point2D;
getCentroid(): Point2D | undefined;
#private;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/dwv.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dwv.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dwv",
"version": "0.35.0-beta.12",
"version": "0.35.0-beta.13",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
8 changes: 4 additions & 4 deletions resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ export class App {
init(opt: AppOptions): void;
// @deprecated
initWLDisplay(): void;
loadFiles: (files: File[]) => void;
loadFiles: (files: File[]) => string;
loadFromUri: (uri: string, options?: object) => void;
loadImageObject: (data: any[]) => void;
loadURLs: (urls: string[], options?: object) => void;
loadImageObject: (data: any[]) => string;
loadURLs: (urls: string[], options?: object) => string;
onKeydown: (event: KeyboardEvent) => void;
onResize: () => void;
redo(): void;
Expand Down Expand Up @@ -945,7 +945,7 @@ export class ROI {
constructor(points?: Point2D[]);
addPoint(point: Point2D): void;
addPoints(rhs: Point2D[]): void;
getCentroid(): Point2D;
getCentroid(): Point2D | undefined;
getLength(): number;
getPoint(index: number): Point2D | undefined;
getPoints(): Point2D[];
Expand Down
4 changes: 2 additions & 2 deletions resources/doc/jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"package": "package.json",
"theme_opts": {
"title": "DWV",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.12.</i>",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.13.</i>",
"sections": [
"Tutorials",
"Namespaces",
Expand All @@ -50,7 +50,7 @@
"codepen": {
"enable_for": ["examples"],
"options": {
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.12/dwv-0.35.0-beta.12.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.13/dwv-0.35.0-beta.13.min.js",
"html": "<div id='dwv'><div id='layerGroup0'></div></div>"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/dicom/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {logger} from '../utils/logger';
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.35.0-beta.12';
return '0.35.0-beta.13';
}

/**
Expand Down

0 comments on commit f0c2128

Please sign in to comment.