Skip to content

Commit

Permalink
Beta v0.34.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 2, 2024
1 parent 902b209 commit 5f061d3
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 37 deletions.
41 changes: 17 additions & 24 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export declare class Annotation {
/**
* Get the image origin for a image UID.
*
* @returns {Index|undefined} The origin index.
* @returns {Point3D|undefined} The origin.
*/
getOriginIndex(): Index | undefined;
getOrigin(): Point3D | undefined;
/**
* Set the annotation text expression.
*
Expand Down Expand Up @@ -1690,6 +1690,12 @@ export declare class DrawLayer {
* @param {object} exeCallback The undo stack callback.
*/
setAnnotationGroup(annotationGroup: AnnotationGroup, dataId: string, exeCallback: object): void;
/**
* Activate shapes at current position.
*
* @param {boolean} flag The flag to activate or not.
*/
activateCurrentPositionShapes(flag: boolean): void;
/**
* Fit the layer to its parent container.
*
Expand Down Expand Up @@ -1764,29 +1770,23 @@ export declare class DrawLayer {
* Set the current position.
*
* @param {Point} position The new position.
* @param {Index} index The new index.
* @param {Index} _index The new index.
* @returns {boolean} True if the position was updated.
*/
setCurrentPosition(position: Point, index: Index): boolean;
setCurrentPosition(position: Point, _index: Index): boolean;
/**
* Activate the current draw layer.
*
* @param {Index} index The current position.
* @param {Point} position The current position.
* @param {number} scrollIndex The scroll index.
*/
activateDrawLayer(index: Index, scrollIndex: number): void;
activateDrawLayer(position: Point, scrollIndex: number): void;
/**
* Get the current position group.
*
* @returns {Konva.Group|undefined} The Konva.Group.
*/
getCurrentPosGroup(): Konva.Group | undefined;
/**
* Get the non current position groups. Used to stop listeners.
*
* @returns {object[]} The groups that do not have the current position id.
*/
getNonCurrentPosGroup(): object[];
/**
* Get a Konva group using its id.
*
Expand Down Expand Up @@ -2710,13 +2710,6 @@ export declare class Index {
* @returns {Index} The new index.
*/
getWithNew2D(i: number, j: number): Index;
/**
* Get a string id from the index values in the form of: '#0-1_#1-2'.
*
* @param {number[]} [dims] Optional list of dimensions to use.
* @returns {string} The string id.
*/
toStringId(dims?: number[]): string;
#private;
}

Expand Down Expand Up @@ -4539,9 +4532,9 @@ export declare class View {
* Get the image origin for a image UID.
*
* @param {string} uid The UID.
* @returns {Index|undefined} The origin index.
* @returns {Point3D|undefined} The origin.
*/
getOriginIndexForImageUid(uid: string): Index | undefined;
getOriginForImageUid(uid: string): Point3D | undefined;
/**
* Check if the current position (default) or
* the provided position is in bounds.
Expand Down Expand Up @@ -4786,12 +4779,12 @@ export declare class ViewController {
*/
getCurrentImageUid(): string;
/**
* Get the image origin index for a image UID.
* Get the image origin for a image UID.
*
* @param {string} uid The UID.
* @returns {Index|undefined} The origin index.
* @returns {Point3D|undefined} The origin.
*/
getOriginIndexForImageUid(uid: string): Index | undefined;
getOriginForImageUid(uid: string): Point3D | undefined;
/**
* Get the current oriented index.
*
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.34.0-beta.12",
"version": "0.34.0-beta.13",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
13 changes: 6 additions & 7 deletions resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function addTagsToDictionary(group: string, tags: {
export class Annotation {
colour: string | undefined;
getFactory(): object;
getOriginIndex(): Index | undefined;
getOrigin(): Point3D | undefined;
getText(): string;
getType(): string;
id: string;
Expand Down Expand Up @@ -353,7 +353,8 @@ export class DrawController {
// @public
export class DrawLayer {
constructor(containerDiv: HTMLDivElement);
activateDrawLayer(index: Index, scrollIndex: number): void;
activateCurrentPositionShapes(flag: boolean): void;
activateDrawLayer(position: Point, scrollIndex: number): void;
addEventListener(type: string, callback: Function): void;
addFlipOffsetX(): void;
addFlipOffsetY(): void;
Expand All @@ -376,7 +377,6 @@ export class DrawLayer {
getId(): string;
getKonvaLayer(): Konva.Layer;
getKonvaStage(): Konva.Stage;
getNonCurrentPosGroup(): object[];
getNumberOfDraws(): number | undefined;
getOpacity(): number;
initialise(size: Scalar2D, spacing: Scalar2D): void;
Expand All @@ -387,7 +387,7 @@ export class DrawLayer {
setAnnotationGroup(annotationGroup: AnnotationGroup, dataId: string, exeCallback: object): void;
setAnnotationVisibility(id: string, visible?: boolean): boolean;
setBaseOffset(scrollOffset: Vector3D, planeOffset: Vector3D): boolean;
setCurrentPosition(position: Point, index: Index): boolean;
setCurrentPosition(position: Point, _index: Index): boolean;
setLabelsVisibility(visible?: boolean): void;
setLabelVisibility(shapeGroup: Konva.Group): void;
setOffset(newOffset: Scalar3D): void;
Expand Down Expand Up @@ -570,7 +570,6 @@ export class Index {
getWithNew2D(i: number, j: number): Index;
length(): number;
toString(): string;
toStringId(dims?: number[]): string;
}

// @public
Expand Down Expand Up @@ -969,7 +968,7 @@ export class View {
getImage(): Image_2;
getOrientation(): Matrix33;
getOrigin(position?: Point): Point3D;
getOriginIndexForImageUid(uid: string): Index | undefined;
getOriginForImageUid(uid: string): Point3D | undefined;
getPlaybackMilliseconds(recommendedDisplayFrameRate: number): number;
getScrollIndex(): number;
getWindowLevel(): WindowLevel;
Expand Down Expand Up @@ -1039,7 +1038,7 @@ export class ViewController {
getModality(): string;
getOffset3DFromPlaneOffset(offset2D: Scalar2D): Vector3D;
getOrigin(position?: Point): Point3D;
getOriginIndexForImageUid(uid: string): Index | undefined;
getOriginForImageUid(uid: string): Point3D | undefined;
getPixelUnit(): string;
getPlaneHelper(): PlaneHelper;
getPlanePositionFromPlanePoint(point2D: Point2D): Point3D;
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.34.0-beta.12.</i>",
"footer": "<i>Documentation generated for dwv v0.34.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.34.0-beta.12/dwv-0.34.0-beta.12.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.34.0-beta.13/dwv-0.34.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 @@ -34,7 +34,7 @@ import {
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.34.0-beta.12';
return '0.34.0-beta.13';
}

/**
Expand Down

0 comments on commit 5f061d3

Please sign in to comment.