Fixing image annotation color on images
This commit is contained in:
parent
c4793cbf0b
commit
1a83379868
@ -37,6 +37,14 @@ OHIF.measurements.getImageDataUrl = ({
|
|||||||
// Add the measurement state and enable the tool if a measurement was given
|
// Add the measurement state and enable the tool if a measurement was given
|
||||||
if (measurement) {
|
if (measurement) {
|
||||||
const state = Object.assign({}, measurement, { active: true });
|
const state = Object.assign({}, measurement, { active: true });
|
||||||
|
Object.keys(measurement.handles).forEach(handleKey => {
|
||||||
|
const handle = Object.assign({}, state.handles[handleKey]);
|
||||||
|
handle.selected = false;
|
||||||
|
handle.active = false;
|
||||||
|
handle.moving = false;
|
||||||
|
state.handles[handleKey] = handle;
|
||||||
|
});
|
||||||
|
|
||||||
cornerstoneTools.addToolState(element, measurement.toolType, state);
|
cornerstoneTools.addToolState(element, measurement.toolType, state);
|
||||||
cornerstoneTools[measurement.toolType].enable(element);
|
cornerstoneTools[measurement.toolType].enable(element);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user