Added Measurements Observe hook to repopulate toolData from database. Refactored lesion tools and lesionTable.
This commit is contained in:
1 parent
9ad2ccaaaf
commit
c178505d38
9 files changed
+481
-609
No files matched your search
@@ -198,7 +198,7 @@ function loadSeriesIntoViewport(data) {
|
||||
// Use the tool manager to enable the currently active tool for this
|
||||
// newly rendered element
|
||||
var activeTool = toolManager.getActiveTool();
|
||||
toolManager.setActiveTool(activeTool);
|
||||
toolManager.setActiveTool(activeTool, element);
|
||||
|
||||
// Define a function to run whenever the Cornerstone viewport is rendered
|
||||
// (e.g. following a change of window or zoom)
|
||||
@@ -382,6 +382,7 @@ Template.imageViewerViewport.onRendered(function() {
|
||||
currentImageIdIndex: this.data.currentImageIdIndex,
|
||||
studyInstanceUid: this.data.studyInstanceUid,
|
||||
seriesInstanceUid: this.data.seriesInstanceUid,
|
||||
renderedCallback: this.data.renderedCallback,
|
||||
activeViewport: activeViewport
|
||||
};
|
||||
|
||||
|
||||
@@ -112,7 +112,9 @@ Template.toolbar.events({
|
||||
'click .imageViewerTool': function(e) {
|
||||
var tool = e.currentTarget.id;
|
||||
console.log('Setting active tool to: ' + tool);
|
||||
toolManager.setActiveTool(tool);
|
||||
|
||||
var elements = $('.imageViewerViewport');
|
||||
toolManager.setActiveTool(tool, elements);
|
||||
},
|
||||
'click .imageViewerCommand': function(e) {
|
||||
var command = e.currentTarget.id;
|
||||
|
||||
Reference in new issue
Block a user