Skip to content

Commit

Permalink
Beta v0.34.0-beta.19
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Oct 17, 2024
1 parent 1ec14db commit 28ced73
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 15 deletions.
48 changes: 40 additions & 8 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ export declare class Annotation {
* @type {Point3D[]|undefined}
*/
planePoints: Point3D[] | undefined;
/**
* Get the orientation name for this annotation.
*
* @returns {string|undefined} The orientation name,
* undefined if same as reference data.
*/
getOrientationName(): string | undefined;
/**
* Initialise the annotation.
*
Expand Down Expand Up @@ -2336,11 +2343,12 @@ export declare function getMousePoint(event: object): Point2D;
/**
* Get the name of an image orientation patient.
*
* @param {number[]} orientation The image orientation patient.
* @param {number[]} cosines The image orientation
* patient cosines (6 values).
* @returns {string|undefined} The orientation
* name: axial, coronal or sagittal.
*/
export declare function getOrientationName(orientation: number[]): string | undefined;
export declare function getOrientationName(cosines: number[]): string | undefined;

/**
* Get the PixelData Tag.
Expand Down Expand Up @@ -3727,6 +3735,18 @@ export declare class PlaneHelper {
* @param {Matrix33} viewOrientation The view orientation.
*/
constructor(imageGeometry: Geometry, viewOrientation: Matrix33);
/**
* Get the view orientation.
*
* @returns {Matrix33} The orientation matrix.
*/
getViewOrientation(): Matrix33;
/**
* Get the target orientation.
*
* @returns {Matrix33} The orientation matrix.
*/
getTargetOrientation(): Matrix33;
/**
* Get a 3D offset from a plane one.
*
Expand Down Expand Up @@ -3843,34 +3863,34 @@ export declare class PlaneHelper {
/**
* Immutable point.
* Warning: the input array is NOT cloned, modifying it will
* modify the index values.
* modify the point values.
*/
export declare class Point {
/**
* @param {number[]} values The point values.
*/
constructor(values: number[]);
/**
* Get the index value at the given array index.
* Get the point value at the given array index.
*
* @param {number} i The index to get.
* @returns {number} The value.
*/
get(i: number): number;
/**
* Get the length of the index.
* Get the length of the point.
*
* @returns {number} The length.
*/
length(): number;
/**
* Get a string representation of the Index.
* Get a string representation of the point.
*
* @returns {string} The Index as a string.
* @returns {string} The point as a string.
*/
toString(): string;
/**
* Get the values of this index.
* Get the values of this point.
*
* @returns {number[]} The array of values.
*/
Expand Down Expand Up @@ -3940,6 +3960,12 @@ export declare class Point2D {
* @returns {number} The Y position of the point.
*/
getY(): number;
/**
* Get the values of this point.
*
* @returns {number[]} The array of values.
*/
getValues(): number[];
/**
* Get the centroid of the point, ie itself.
*
Expand Down Expand Up @@ -3997,6 +4023,12 @@ export declare class Point3D {
* @returns {number} The Z position of the point.
*/
getZ(): number;
/**
* Get the values of this point.
*
* @returns {number[]} The array of values.
*/
getValues(): number[];
/**
* Check for Point3D equality.
*
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.18",
"version": "0.34.0-beta.19",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
7 changes: 6 additions & 1 deletion resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class Annotation {
colour: string | undefined;
getCentroid(): Point | undefined;
getFactory(): object;
getOrientationName(): string | undefined;
getText(): string;
id: string;
init(viewController: ViewController): void;
Expand Down Expand Up @@ -497,7 +498,7 @@ export function getLayerDetailsFromEvent(event: object): object;
export function getMousePoint(event: object): Point2D;

// @public
export function getOrientationName(orientation: number[]): string | undefined;
export function getOrientationName(cosines: number[]): string | undefined;

// @public
export function getPixelDataTag(): Tag;
Expand Down Expand Up @@ -812,8 +813,10 @@ export class PlaneHelper {
getScrollIndex(): number;
getTargetDeOrientedPoint3D(planePoint: Point3D): Point3D;
getTargetDeOrientedVector3D(planeVector: Vector3D): Vector3D;
getTargetOrientation(): Matrix33;
getTargetOrientedPositiveXYZ(values: Scalar3D): Scalar3D;
getTargetOrientedVector3D(vector: Vector3D): Vector3D;
getViewOrientation(): Matrix33;
isAquisitionOrientation(): boolean;
worldToIndex(point: Point): Index;
}
Expand All @@ -839,6 +842,7 @@ export class Point2D {
equals(rhs: Point2D): boolean;
getCentroid(): Point2D;
getDistance(point2D: Point2D): number;
getValues(): number[];
getX(): number;
getY(): number;
toString(): string;
Expand All @@ -850,6 +854,7 @@ export class Point3D {
equals(rhs: Point3D): boolean;
getClosest(pointList: Point3D[]): number;
getDistance(point3D: Point3D): number;
getValues(): number[];
getX(): number;
getY(): number;
getZ(): number;
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.18.</i>",
"footer": "<i>Documentation generated for dwv v0.34.0-beta.19.</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.18/dwv-0.34.0-beta.18.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.34.0-beta.19/dwv-0.34.0-beta.19.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 @@ -29,7 +29,7 @@ import {logger} from '../utils/logger';
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.34.0-beta.18';
return '0.34.0-beta.19';
}

/**
Expand Down

0 comments on commit 28ced73

Please sign in to comment.