@@ -916,10 +916,10 @@ export default {
|
||||
toolGroup.addTool(ArrowAnnotateTool.toolName, {
|
||||
arrowHeadStyle: 'standard',
|
||||
changeTextCallback: async(data, eventData, doneChangingTextCallback) => {
|
||||
return doneChangingTextCallback('')
|
||||
return doneChangingTextCallback(data.label)
|
||||
},
|
||||
getTextCallback: async(doneChangingTextCallback) => {
|
||||
return doneChangingTextCallback('')
|
||||
return doneChangingTextCallback('_')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -1178,7 +1178,12 @@ export default {
|
||||
const annotations = cornerstoneTools.annotation.state.getAllAnnotations()
|
||||
const idx = annotations.findIndex(i => i.annotationUID === obj.annotationUID)
|
||||
if (idx === -1) return
|
||||
annotations[idx].data.label = obj.name
|
||||
if (annotations[idx].metadata.toolName === 'ArrowAnnotate') {
|
||||
annotations[idx].data.text = obj.name
|
||||
} else {
|
||||
annotations[idx].data.label = obj.name
|
||||
}
|
||||
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
const viewportId = `viewport-${this.activeViewportIndex}`
|
||||
const viewport = renderingEngine.getViewport(viewportId)
|
||||
|
||||
Reference in New Issue
Block a user