Skip to content

Commit

Permalink
Beta v0.35.0-beta.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Feb 19, 2025
1 parent ebf0aad commit 96af789
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
27 changes: 17 additions & 10 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2145,11 +2145,11 @@ export declare class Geometry {
* Check if a point is in the origin list.
*
* @param {Point3D} point3D The point to check.
* @param {number} tol The comparison tolerance
* default to Number.EPSILON.
* @param {number} [tol] Optional number comparison tolerance
* defaults to Number.EPSILON.
* @returns {boolean} True if in list.
*/
includesOrigin(point3D: Point3D, tol: number): boolean;
includesOrigin(point3D: Point3D, tol?: number): boolean;
/**
* Get the object size.
* Warning: the size comes as stored in DICOM, meaning that it could
Expand Down Expand Up @@ -3639,11 +3639,18 @@ export declare class Matrix33 {
* Check for Matrix33 equality.
*
* @param {Matrix33} rhs The other matrix to compare to.
* @param {number} [p] A numeric expression for the precision to use in check
* (ex: 0.001). Defaults to Number.EPSILON if not provided.
* @returns {boolean} True if both matrices are equal.
*/
equals(rhs: Matrix33, p?: number): boolean;
equals(rhs: Matrix33): boolean;
/**
* Check for Matrix33 similarity.
*
* @param {Matrix33} rhs The other matrix to compare to.
* @param {number} [tol] Optional number comparison tolerance,
* defaults to Number.EPSILON.
* @returns {boolean} True if both matrices are similar.
*/
isSimilar(rhs: Matrix33, tol?: number): boolean;
/**
* Get a string representation of the Matrix33.
*
Expand Down Expand Up @@ -4133,11 +4140,11 @@ export declare class Point3D {
* Check for Point3D similarity.
*
* @param {Point3D} rhs The other point to compare to.
* @param {number} tol Optional comparison tolerance,
* default to Number.EPSILON.
* @returns {boolean} True if both points are equal.
* @param {number} [tol] Optional number comparison tolerance,
* defaults to Number.EPSILON.
* @returns {boolean} True if both points are similar.
*/
isSimilar(rhs: Point3D, tol: number): boolean;
isSimilar(rhs: Point3D, tol?: number): boolean;
/**
* Get a string representation of the Point3D.
*
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.17",
"version": "0.35.0-beta.18",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
7 changes: 4 additions & 3 deletions resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export class Geometry {
getSliceIndex(point: Point3D, time: number): number;
getSpacing(viewOrientation?: Matrix33): Spacing;
hasSlicesAtTime(time: number): boolean;
includesOrigin(point3D: Point3D, tol: number): boolean;
includesOrigin(point3D: Point3D, tol?: number): boolean;
indexToWorld(index: Index): Point;
isInBounds(point: Point): boolean;
isIndexInBounds(index: Index, dirs?: number[]): boolean;
Expand Down Expand Up @@ -756,13 +756,14 @@ export class MaskSegmentViewHelper {
export class Matrix33 {
constructor(values: number[]);
asOneAndZeros(): Matrix33;
equals(rhs: Matrix33, p?: number): boolean;
equals(rhs: Matrix33): boolean;
get(row: number, col: number): number | undefined;
getAbs(): Matrix33;
getColAbsMax(col: number): object;
getInverse(): Matrix33 | undefined;
getRowAbsMax(row: number): object;
getThirdColMajorDirection(): number;
isSimilar(rhs: Matrix33, tol?: number): boolean;
multiply(rhs: Matrix33): Matrix33;
multiplyArray3D(array3D: number[]): number[];
multiplyIndex3D(index3D: Index): Index;
Expand Down Expand Up @@ -863,7 +864,7 @@ export class Point3D {
getX(): number;
getY(): number;
getZ(): number;
isSimilar(rhs: Point3D, tol: number): boolean;
isSimilar(rhs: Point3D, tol?: number): boolean;
minus(point3D: Point3D): Vector3D;
toString(): string;
}
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.17.</i>",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.18.</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.17/dwv-0.35.0-beta.17.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.18/dwv-0.35.0-beta.18.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.17';
return '0.35.0-beta.18';
}

/**
Expand Down

0 comments on commit 96af789

Please sign in to comment.