Skip to content

Commit

Permalink
Tool to remove regions from optimal ww/wc calculation (#326)
Browse files Browse the repository at this point in the history
* update version

* wwwcremoveregion

* Update docs

* removing listener when tool is already up

* Update docs

* removing a log

* removing logs compiled

* Update docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
panizzopoli and github-actions[bot] authored Mar 13, 2024
1 parent 9e67874 commit f92a363
Show file tree
Hide file tree
Showing 9 changed files with 798 additions and 10 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.9
### Current version: 2.4.10

### Latest Published Release: 2.4.9
### Latest Published Release: 2.4.10

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
57 changes: 57 additions & 0 deletions dist/imaging/tools/custom/WwwcRemoveRegionTool.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* @public
* @class WwwcRemoveRegionTool
* @memberof Tools
*
* @classdesc Tool for setting wwwc based on a rectangular region.
* @extends Tools.Base.BaseTool
*/
export default class WwwcRemoveRegionTool {
constructor(props?: {});
dataHandles: any[];
_drawingMouseUpCallback: (evt: any) => void;
_editMouseUpCallback: (evt: any) => void;
throttledUpdateCachedStats: any;
createNewMeasurement(eventData: any): {
computeMeasurements: any;
visible: boolean;
active: boolean;
color: undefined;
invalidated: boolean;
handles: {
start: {
x: any;
y: any;
highlight: boolean;
active: boolean;
};
end: {
x: any;
y: any;
highlight: boolean;
active: boolean;
};
initialRotation: any;
textBox: {
active: boolean;
hasMoved: boolean;
movesIndependently: boolean;
drawnIndependently: boolean;
allowedOutsideImage: boolean;
hasBoundingBox: boolean;
};
};
} | undefined;
pointNearTool(element: any, data: any, coords: any, interactionType: any): boolean;
updateCachedStats(image: any, element: any, data: any): void;
renderToolData(evt: any): void;
/**
* Event handler for MOUSE_UP/TOUCH_END during handle drag event loop.
*
* @private
* @method _applyStrategy
* @param {(CornerstoneTools.event#MOUSE_UP|CornerstoneTools.event#TOUCH_END)} evt Interaction event emitted by an enabledElement
* @returns {void}
*/
private _applyStrategy;
}
2 changes: 1 addition & 1 deletion dist/larvitar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/larvitar.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ <h3> </h3>
<h1 id="larvitar">Larvitar</h1>
<p><a href="https://github.com/dvisionlab/Larvitar"><img src="https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&amp;prefix=%E2%89%A5&amp;suffix=%25&amp;query=$.typeCoverage.atLeast&amp;uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Ftype-coverage%2Fmaster%2Fpackage.json" alt="type-coverage"></a></p>
<h2 id="dicom-image-toolkit-for-cornerstonejs">Dicom Image Toolkit for CornerstoneJS</h2>
<h3 id="current-version%3A-2.4.9">Current version: 2.4.9</h3>
<h3 id="latest-published-release%3A-2.4.9">Latest Published Release: 2.4.9</h3>
<h3 id="current-version%3A-2.4.10">Current version: 2.4.10</h3>
<h3 id="latest-published-release%3A-2.4.10">Latest Published Release: 2.4.10</h3>
<p>This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.</p>
<h2 id="features%3A">Features:</h2>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/larvitar.js

Large diffs are not rendered by default.

Loading

0 comments on commit f92a363

Please sign in to comment.