Skip to content

Commit

Permalink
mm/px measurement units corrected (#320)
Browse files Browse the repository at this point in the history
* mm/px measurement units corrected

* Update docs

* docs

* Update docs

* fixed freehandRoi

* Update docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 43c55d9 commit d6831d3
Show file tree
Hide file tree
Showing 23 changed files with 4,207 additions and 332 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

## Dicom Image Toolkit for CornerstoneJS

### Current version: 2.4.5
### Current version: 2.4.6

### Latest Published Release: 2.4.5
### Latest Published Release: 2.4.6

This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.

Expand Down
2 changes: 1 addition & 1 deletion dist/imaging/imageStore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type SetPayload = ["errorLog" | "leftActiveTool" | "rightActiveTool", string] |
("progress" | "loading" | "minPixelValue" | "maxPixelValue" | "minSliceId" | "maxSliceId" | "minTimeId" | "maxTimeId" | "rotation" | "scale" | "sliceId" | "timeId" | "thickness" | "numberOfFrames" | "numberOfTemporalPositions"),
string,
number
] | ["timestamp", string, number | undefined] | ["seriesUID", string, string | undefined] | ["pendingSliceId", string, number | undefined] | ["timestamps" | "timeIds" | "pixelShift", string, number[]] | [
] | ["timestamp", string, number | undefined] | ["seriesUID" | "modality", string, string | undefined] | ["pendingSliceId", string, number | undefined] | ["timestamps" | "timeIds" | "pixelShift", string, number[]] | [
"contrast" | "dimensions" | "spacing" | "translation",
string,
number,
Expand Down
46 changes: 46 additions & 0 deletions dist/imaging/tools/custom/EllipticalRoiUSTool.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
declare const BaseAnnotationTool: any;
import { Coords, EventData, MeasurementData, MeasurementMouseEvent } from "../types";
/**
* @public
* @class EllipticalRoiTool
* @memberof Tools.Annotation
* @classdesc Tool for drawing elliptical regions of interest, and measuring
* the statistics of the enclosed pixels.
* @extends Tools.Base.BaseAnnotationTool
*/
export default class EllipticalRoiTool extends BaseAnnotationTool {
constructor(props?: {});
createNewMeasurement(eventData: EventData): {
visible: boolean;
active: boolean;
color: undefined;
invalidated: boolean;
handles: {
start: {
x: number;
y: number;
highlight: boolean;
active: boolean;
};
end: {
x: number;
y: number;
highlight: boolean;
active: boolean;
};
initialRotation: any;
textBox: {
active: boolean;
hasMoved: boolean;
movesIndependently: boolean;
drawnIndependently: boolean;
allowedOutsideImage: boolean;
hasBoundingBox: boolean;
};
};
} | undefined;
pointNearTool(element: Element, data: MeasurementData, coords: Coords, interactionType: string): boolean;
updateCachedStats(image: cornerstone.Image, element: Element, data: MeasurementData): void;
renderToolData(evt: MeasurementMouseEvent): void;
}
export {};
Loading

0 comments on commit d6831d3

Please sign in to comment.