Bug fix for lesion table
This commit is contained in:
parent
48c22bda06
commit
a18b6a6dbf
@ -8,7 +8,7 @@
|
|||||||
#viewportAndLesionTable
|
#viewportAndLesionTable
|
||||||
height: 100%
|
height: 100%
|
||||||
width: calc(100% - 120px)
|
width: calc(100% - 120px)
|
||||||
float: right
|
float: left
|
||||||
|
|
||||||
#imageViewerViewports
|
#imageViewerViewports
|
||||||
.viewportContainer
|
.viewportContainer
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
.viewerMain
|
.viewerMain
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 75%
|
height: 75%
|
||||||
float: left
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<template name="lesionTable">
|
<template name="lesionTable">
|
||||||
<div id="lesionTableContainer">
|
<div id="lesionTableContainer">
|
||||||
<table class="table table-bordered lesionTable" id="tblLesion">
|
<table class="table table-striped noselect lesionTable" id="tblLesion">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th id="thNumber">Lesion #</th>
|
<th id="thNumber">Lesion #</th>
|
||||||
@ -10,7 +10,8 @@
|
|||||||
{{ #each timepoints }}
|
{{ #each timepoints }}
|
||||||
{{ >lesionTableTimepointHeader }}
|
{{ >lesionTableTimepointHeader }}
|
||||||
{{ /each }}
|
{{ /each }}
|
||||||
<th id="thSpacer"> </th>
|
<!--What is this for?-->
|
||||||
|
<!--<th id="thSpacer"> </th>-->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@ -1,44 +1,72 @@
|
|||||||
#lesionTableContainer {
|
#lesionTableContainer
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 25%
|
height: 25%
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.lesionTable > thead > tr > th {
|
.lesionTable
|
||||||
font-style: italic;
|
|
||||||
color:white;
|
td.lesionNumber, th#thNumber
|
||||||
height: 20px;
|
width: 70px
|
||||||
line-height: 20px;
|
|
||||||
|
td.location, th#thLocation
|
||||||
|
width: 250px
|
||||||
|
|
||||||
|
td.target, th#thTarget
|
||||||
|
width: 70px
|
||||||
|
|
||||||
|
td.lesionTableTimepointCell
|
||||||
|
width: 70px
|
||||||
|
|
||||||
|
|
||||||
|
thead
|
||||||
|
width: 100%
|
||||||
|
display: block
|
||||||
|
|
||||||
|
tr
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
th
|
||||||
|
border-bottom-width: 0
|
||||||
|
float:left
|
||||||
|
font-weight: normal
|
||||||
|
color:white
|
||||||
|
line-height: 20px
|
||||||
text-align: center
|
text-align: center
|
||||||
margin: 0;
|
margin: 0
|
||||||
padding: 5px;
|
padding: 5px
|
||||||
background-color: #424242;
|
background-color: #424242
|
||||||
}
|
|
||||||
table.lesionTable > tbody > tr > td {
|
|
||||||
height: 15px;
|
|
||||||
line-height: 15px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.lesionTable tbody tr.lesionTableRow:nth-child(even) {background: #888}
|
#thTarget
|
||||||
table.lesionTable tbody tr.lesionTableRow:nth-child(odd) {background: #BBB}
|
width: 1%
|
||||||
table.lesionTable tbody tr.lesionTableRow:hover{ background-color: #009BD2; color: white; }
|
|
||||||
|
|
||||||
#thTarget {
|
#thLocation
|
||||||
width: 1%;
|
text-align: left
|
||||||
}
|
width: 15%
|
||||||
|
|
||||||
#thLocation {
|
#thSpacer
|
||||||
text-align: left;
|
width: 61%
|
||||||
width: 15%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
tbody
|
||||||
|
display: block
|
||||||
|
height: 200px // Seems like this has to be fixed for overflow to work properly!
|
||||||
|
overflow: auto
|
||||||
|
width: 100%
|
||||||
|
|
||||||
#thSpacer {
|
tr.lesionTableRow
|
||||||
width: 61%;
|
width: 100%
|
||||||
}
|
|
||||||
|
|
||||||
td.lesionNumber, .target,.lesionTableTimepointCell {
|
&:nth-child(even)
|
||||||
text-align: center;
|
background: #888
|
||||||
}
|
&:nth-child(odd)
|
||||||
|
background: #BBB
|
||||||
|
&:hover(odd)
|
||||||
|
background-color: #009BD2
|
||||||
|
color: white
|
||||||
|
|
||||||
|
td
|
||||||
|
border-bottom-width: 0
|
||||||
|
float:left
|
||||||
|
margin: 0
|
||||||
|
padding: 5px
|
||||||
|
|
||||||
|
&.lesionNumber, &.target, &.lesionTableTimepointCell
|
||||||
|
text-align: center
|
||||||
|
|||||||
@ -20,11 +20,16 @@ addMetaData = function(imageId, data) {
|
|||||||
description: seriesMetaData.seriesDescription,
|
description: seriesMetaData.seriesDescription,
|
||||||
number: seriesMetaData.seriesNumber,
|
number: seriesMetaData.seriesNumber,
|
||||||
modality: seriesMetaData.modality,
|
modality: seriesMetaData.modality,
|
||||||
instanceUid: seriesMetaData.instanceUid,
|
instanceUid: seriesMetaData.seriesInstanceUid,
|
||||||
numImages: numImages
|
numImages: numImages
|
||||||
};
|
};
|
||||||
|
|
||||||
metaData.instance = {
|
metaData.instance = {
|
||||||
|
wadouri: instanceMetaData.wadouri,
|
||||||
|
imageType: instanceMetaData.imageType,
|
||||||
|
photometricInterpretation: instanceMetaData.photometricInterpretation,
|
||||||
|
sopInstanceUid: instanceMetaData.sopInstanceUid,
|
||||||
|
sopClassUid: instanceMetaData.sopClassUid,
|
||||||
number: instanceMetaData.instanceNumber,
|
number: instanceMetaData.instanceNumber,
|
||||||
index: imageIndex
|
index: imageIndex
|
||||||
};
|
};
|
||||||
|
|||||||
@ -86,11 +86,14 @@ toolManager = {
|
|||||||
if (!element.classList.contains('empty') && canvases.length > 0) {
|
if (!element.classList.contains('empty') && canvases.length > 0) {
|
||||||
// First, deactivate the current active tool
|
// First, deactivate the current active tool
|
||||||
tools[activeTool].mouse.deactivate(element, 1);
|
tools[activeTool].mouse.deactivate(element, 1);
|
||||||
|
|
||||||
|
if (tools[activeTool].touch) {
|
||||||
tools[activeTool].touch.deactivate(element);
|
tools[activeTool].touch.deactivate(element);
|
||||||
|
}
|
||||||
|
|
||||||
// First, get the stack toolData
|
// First, get the stack toolData
|
||||||
var toolData = cornerstoneTools.getToolState(element, 'stack');
|
var toolData = cornerstoneTools.getToolState(element, 'stack');
|
||||||
if (toolData === undefined || toolData.data === undefined || toolData.data.length === 0) {
|
if (!toolData || !toolData.data || !toolData.data.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +130,10 @@ toolManager = {
|
|||||||
// Activate the chosen tool
|
// Activate the chosen tool
|
||||||
tools[tool].mouse.activate(element, 1);
|
tools[tool].mouse.activate(element, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tools[tool].touch) {
|
||||||
tools[tool].touch.activate(element);
|
tools[tool].touch.activate(element);
|
||||||
|
}
|
||||||
|
|
||||||
cornerstoneTools.zoomTouchPinch.activate(element);
|
cornerstoneTools.zoomTouchPinch.activate(element);
|
||||||
cornerstoneTools.panMultiTouch.activate(element);
|
cornerstoneTools.panMultiTouch.activate(element);
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
// Create package logger using loglevel
|
// Create package logger using loglevel
|
||||||
// https://atmospherejs.com/spacejamio/loglevel
|
// https://atmospherejs.com/spacejamio/loglevel
|
||||||
log = loglevel.createPackageLogger('viewerbase', defaultLevel = 'info');
|
log = loglevel.createPackageLogger('viewerbase', defaultLevel = 'warn');
|
||||||
@ -14,6 +14,7 @@ Package.onUse(function (api) {
|
|||||||
api.use('ian:accounts-ui-bootstrap-3');
|
api.use('ian:accounts-ui-bootstrap-3');
|
||||||
api.use('http');
|
api.use('http');
|
||||||
api.use('practicalmeteor:loglevel');
|
api.use('practicalmeteor:loglevel');
|
||||||
|
api.use('momentjs:moment');
|
||||||
|
|
||||||
// Our custom package
|
// Our custom package
|
||||||
api.use('cornerstone');
|
api.use('cornerstone');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user