Skip to content

Commit

Permalink
Merge pull request #922 from cornerstonejs/freehand-modified-event
Browse files Browse the repository at this point in the history
fix(freehand): Pass event data on measurement modified event of freehand tool
  • Loading branch information
JamesAPetts authored May 2, 2019
2 parents 07fa8df + 779993e commit 2969865
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tools/annotation/FreehandMouseTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1607,10 +1607,16 @@ export default class FreehandMouseTool extends BaseAnnotationTool {
* @param {any} data the measurment data
*/
fireModifiedEvent(element, data) {
const modifiedEventData = {
toolName: this.name,
element,
measurementData: data,
};

external.cornerstone.triggerEvent(
element,
EVENTS.MEASUREMENT_MODIFIED,
data
modifiedEventData
);
}

Expand Down

0 comments on commit 2969865

Please sign in to comment.