Skip to content

Commit

Permalink
Beta v0.35.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Dec 20, 2024
1 parent cf0cbb9 commit 6fd3071
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 32 deletions.
53 changes: 36 additions & 17 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3919,13 +3919,13 @@ export declare class PlaneHelper {
*
* @returns {number} The index.
*/
getScrollIndex(): number;
getScrollDimIndex(): number;
/**
* Get the native (image) scroll dimension index.
*
* @returns {number} The index.
*/
getNativeScrollIndex(): number;
getNativeScrollDimIndex(): number;
#private;
}

Expand Down Expand Up @@ -4163,13 +4163,38 @@ export declare class PositionHelper {
*
* @returns {number} The scroll index.
*/
getScrollIndex(): number;
getScrollDimIndex(): number;
/**
* Get the maximum scroll index.
*
* @returns {number} The maximum index.
*/
getMaximumScrollIndex(): number;
/**
* Get the current position.
*
* @returns {Point} The current position.
*/
getCurrentPositon(): Point;
getCurrentPosition(): Point;
/**
* Get the scroll index for the current position.
*
* @returns {number} The index.
*/
getCurrentPositionScrollIndex(): number;
/**
* Get the current position updated at the provided scroll index.
*
* @param {number} index The scroll index.
* @returns {Point} The position.
*/
getCurrentPositionAtScrollIndex(index: number): Point;
/**
* Get the current index.
*
* @returns {Index} The current index.
*/
getCurrentIndex(): Index;
/**
* Set the current position.
*
Expand Down Expand Up @@ -4200,12 +4225,6 @@ export declare class PositionHelper {
* @returns {boolean} True is the position is in bounds.
*/
isPositionInBounds(position: Point): boolean;
/**
* Get the current index.
*
* @returns {Index} The current index.
*/
getCurrentIndex(): Index;
/**
* Get the current position incremented in the input direction.
*
Expand Down Expand Up @@ -4239,13 +4258,13 @@ export declare class PositionHelper {
*
* @returns {boolean} True if possible and in bounds.
*/
incrementScrollPosition(): boolean;
incrementPositionAlongScroll(): boolean;
/**
* Decrement the current position along the scroll dimension.
*
* @returns {boolean} True if possible and in bounds.
*/
decrementScrollPosition(): boolean;
decrementPositionAlongScroll(): boolean;
#private;
}

Expand Down Expand Up @@ -5380,7 +5399,7 @@ export declare class View {
*
* @returns {number} The index.
*/
getScrollIndex(): number;
getScrollDimIndex(): number;
/**
* Is this view in the same orientation as the image aquisition.
*
Expand Down Expand Up @@ -5552,17 +5571,17 @@ export declare class ViewController {
*/
getCurrentOrientedIndex(): Index;
/**
* Get the scroll index.
* Get the scroll dimension index.
*
* @returns {number} The index.
*/
getScrollIndex(): number;
getScrollDimIndex(): number;
/**
* Get the current scroll index value.
* Get the current index scroll value.
*
* @returns {number} The value.
*/
getCurrentScrollIndexValue(): number;
getCurrentIndexScrollValue(): number;
/**
* Get the first origin or at a given position.
*
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.7",
"version": "0.35.0-beta.8",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
21 changes: 12 additions & 9 deletions resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,13 +807,13 @@ export class PlaneHelper {
getImageDeOrientedVector3D(vector: Vector3D): Vector3D;
getImageOrientedPoint3D(planePoint: Point3D): Point3D;
getImageOrientedVector3D(planeVector: Vector3D): Vector3D;
getNativeScrollIndex(): number;
getNativeScrollDimIndex(): number;
getOffset3DFromPlaneOffset(offset2D: Scalar2D): Vector3D;
getPlaneOffsetFromOffset3D(offset3D: Scalar3D): Scalar2D;
getPlanePointFromPosition(point: Point): Point3D;
getPlanePoints(position: Point): Point3D[];
getPositionFromPlanePoint(point2D: Point2D, k: number): Point3D;
getScrollIndex(): number;
getScrollDimIndex(): number;
getTargetDeOrientedPoint3D(planePoint: Point3D): Point3D;
getTargetDeOrientedVector3D(planeVector: Vector3D): Vector3D;
getTargetOrientation(): Matrix33;
Expand Down Expand Up @@ -870,15 +870,18 @@ export class Point3D {
export class PositionHelper {
constructor(view: View);
decrementPosition(dim: number): boolean;
decrementScrollPosition(): boolean;
decrementPositionAlongScroll(): boolean;
getCurrentIndex(): Index;
getCurrentPositon(): Point;
getCurrentPosition(): Point;
getCurrentPositionAtScrollIndex(index: number): Point;
getCurrentPositionScrollIndex(): number;
getDecrementPosition(dim: number): Point;
getGeometry(): Geometry;
getIncrementPosition(dim: number): Point;
getScrollIndex(): number;
getMaximumScrollIndex(): number;
getScrollDimIndex(): number;
incrementPosition(dim: number): boolean;
incrementScrollPosition(): boolean;
incrementPositionAlongScroll(): boolean;
isPositionInBounds(position: Point): boolean;
merge(rhs: PositionHelper): void;
setCurrentPositon(position: Point, silent?: boolean): boolean;
Expand Down Expand Up @@ -1073,7 +1076,7 @@ export class View {
getOrigin(position?: Point): Point3D;
getOriginForImageUid(uid: string): Point3D | undefined;
getPlaybackMilliseconds(recommendedDisplayFrameRate: number): number;
getScrollIndex(): number;
getScrollDimIndex(): number;
getWindowLevel(): WindowLevel;
getWindowLevelMinMax(): WindowLevel;
getWindowPresets(): object;
Expand Down Expand Up @@ -1124,9 +1127,9 @@ export class ViewController {
getColourMap(): string;
getCurrentImageUid(): string;
getCurrentIndex(): Index;
getCurrentIndexScrollValue(): number;
getCurrentOrientedIndex(): Index;
getCurrentPosition(): Point;
getCurrentScrollIndexValue(): number;
getCurrentScrollPosition(): number;
getCurrentWindowPresetName(): string;
getImageRegionValues(min: Point2D, max: Point2D, index: Index): any[];
Expand All @@ -1147,7 +1150,7 @@ export class ViewController {
getPositionFromPlanePoint(point2D: Point2D, k?: number): Point;
getPositionHelper(): PositionHelper;
getRescaledImageValue(position: Point): number | undefined;
getScrollIndex(): number;
getScrollDimIndex(): number;
getWindowLevel(): WindowLevel;
getWindowLevelPresetsNames(): string[];
includesImageUid(uid: string): boolean;
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.7.</i>",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.8.</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.7/dwv-0.35.0-beta.7.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.8/dwv-0.35.0-beta.8.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.7';
return '0.35.0-beta.8';
}

/**
Expand Down

0 comments on commit 6fd3071

Please sign in to comment.