Added rudimentary HUD
This commit is contained in:
1 parent
e90db4a7c6
commit
7fca7e3129
16 files changed
+218
-57
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<template name="lesionTableHUD">
|
||||
<div id="lesionTableHUD">
|
||||
<div class="header">
|
||||
Measurements
|
||||
</div>
|
||||
{{ >lesionTableView }}
|
||||
<div class="footer">
|
||||
{{ #each toolbarButtons }}
|
||||
{{ >toolbarSectionButton }}
|
||||
{{ /each }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,33 @@
|
||||
Template.lesionTableHUD.helpers({
|
||||
toolbarButtons() {
|
||||
var buttonData = [];
|
||||
|
||||
buttonData.push({
|
||||
id: 'bidirectional',
|
||||
title: 'Target',
|
||||
classes: 'imageViewerTool',
|
||||
svgLink: '/packages/lesiontracker/assets/icons.svg#icon-tools-measure-target'
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
id: 'nonTarget',
|
||||
title: 'Non-Target',
|
||||
classes: 'imageViewerTool toolbarSectionButton',
|
||||
svgLink: '/packages/lesiontracker/assets/icons.svg#icon-tools-measure-non-target'
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
id: 'length',
|
||||
title: 'Temp',
|
||||
classes: 'imageViewerTool toolbarSectionButton',
|
||||
svgLink: '/packages/lesiontracker/assets/icons.svg#icon-tools-measure-temp'
|
||||
});
|
||||
|
||||
return buttonData;
|
||||
}
|
||||
});
|
||||
|
||||
Template.lesionTableHUD.onRendered(function() {
|
||||
var dialog = $('#lesionTableHUD');
|
||||
dialog.draggable();
|
||||
});
|
||||
@@ -0,0 +1,86 @@
|
||||
@import "{design}/app"
|
||||
|
||||
$borderColor = rgba(77, 99, 110, 0.81)
|
||||
$backgroundColor = #14191e
|
||||
|
||||
#lesionTableHUD
|
||||
display: none
|
||||
position: absolute
|
||||
top: auto
|
||||
left: auto
|
||||
bottom: 3px
|
||||
right: 3px
|
||||
|
||||
z-index: 10000
|
||||
width: 318px
|
||||
height: 326px
|
||||
opacity: 0.95
|
||||
background: black
|
||||
border-radius: 8px
|
||||
border: solid 1px $borderColor;
|
||||
|
||||
.header
|
||||
width: 100%
|
||||
height: 55px
|
||||
line-height: 55px
|
||||
background: $backgroundColor
|
||||
border-bottom: $uiBorderThickness solid $borderColor
|
||||
text-align: center
|
||||
font-weight: 200
|
||||
font-size: 20px
|
||||
color: $textSecondaryColor
|
||||
|
||||
.lesionTableView.scrollArea
|
||||
height: calc(100% - 55px - 70px)
|
||||
padding-bottom: 20px
|
||||
|
||||
.footer
|
||||
width: 100%
|
||||
height: 70px
|
||||
position: absolute
|
||||
bottom: 0
|
||||
background: $backgroundColor
|
||||
border-top: $uiBorderThickness solid $borderColor
|
||||
padding: 10px
|
||||
|
||||
.toolbarSectionButton
|
||||
display: inline-block
|
||||
color: $defaultColor
|
||||
fill: $defaultColor
|
||||
stroke: $defaultColor
|
||||
padding: 0 10px
|
||||
height: $toolbarHeight
|
||||
min-width: 30px
|
||||
cursor: pointer
|
||||
text-align: center
|
||||
|
||||
&.disabled
|
||||
opacity: 0.5
|
||||
cursor: not-allowed
|
||||
|
||||
.buttonLabel
|
||||
font-size: 12px
|
||||
|
||||
.svgContainer
|
||||
margin: 0 auto
|
||||
text-align: center
|
||||
|
||||
svg
|
||||
background-color: transparent
|
||||
margin: 2px
|
||||
width: 21px
|
||||
height: 21px
|
||||
|
||||
&:active, &.active
|
||||
color: $activeColor
|
||||
|
||||
svg
|
||||
fill: $activeColor
|
||||
stroke: $activeColor
|
||||
|
||||
&:hover
|
||||
color: $hoverColor
|
||||
|
||||
svg
|
||||
fill: $hoverColor
|
||||
stroke: $hoverColor
|
||||
Reference in new issue
Block a user