* fix(measurements): Add measurement table functions - Support for labeling measurements and adding measurement description - Jump to measurement when clicked on measurement table * fix(layout): Fix the issues with layout when switched with different plugins * fix(measurements): Support for deleting measurements in measurement table * fix(measurements): Add context menu for measurements * fix(dependencies): Bump ohif-core to 0.4.2
22 lines
543 B
JavaScript
22 lines
543 B
JavaScript
import cornerstoneTools from 'cornerstone-tools'
|
|
import updateTableWithNewMeasurementData from './updateTableWithNewMeasurementData'
|
|
|
|
export default function getMeasurementLocationCallback(
|
|
eventData,
|
|
tool,
|
|
options
|
|
) {
|
|
const { toolType } = tool
|
|
const { element } = eventData
|
|
const doneCallback = updateTableWithNewMeasurementData
|
|
|
|
const ToolInstance = cornerstoneTools.getToolForElement(element, toolType)
|
|
|
|
ToolInstance.configuration.getMeasurementLocationCallback(
|
|
tool,
|
|
eventData,
|
|
doneCallback,
|
|
options
|
|
)
|
|
}
|