Work on refactoring measurements out of Lesion Tracker package

- Removed AssociatedStudies Collection
- Measurement API is generated from configuration files
- Data exchange methods are defined in configuration
This commit is contained in:
Erik Ziegler committed 2016-11-15 08:21:46 +01:00
1 parent c511edd419
commit ab4d4c9008
537 files changed
+5122 -3545

No files matched your search

@@ -0,0 +1,45 @@
<template name="radialProgressBar">
<div class="radialProgress">
<svg id="svg"
width="46"
height="46"
viewPort="0 0 50 50"
version="1.1"
xmlns="http://www.w3.org/2000/svg">
<!-- stroke-dasharray is 2 * PI * radius !-->
<circle r="21"
cx="23"
cy="23"
fill="transparent"
stroke-dasharray="131.9469"
stroke-dashoffset="0">
</circle>
{{#unless isLocked}}
<circle id="bar"
r="21"
cx="23"
cy="23"
fill="transparent"
stroke-dasharray="131.9469"
style="stroke-dashoffset: {{progressRadius}}px;">
</circle>
{{/unless}}
</svg>
<div class="progressText">
{{#if isLocked}}
<svg class="locked">
<use xlink:href=/packages/ohif_viewerbase/assets/icons.svg#icon-status-lock></use>
</svg>
{{else}}
{{#if progressComplete}}
<svg class="complete">
<use xlink:href=/packages/ohif_viewerbase/assets/icons.svg#icon-status-complete></use>
</svg>
{{else}}
{{progressText}}
{{/if}}
{{/if}}
</div>
</div>
</template>
@@ -0,0 +1,13 @@
Template.radialProgressBar.helpers({
progressComplete() {
const instance = Template.instance();
return instance.data.progressPercent === 100;
},
progressRadius() {
var radius = 21 * 2 * Math.PI;
const instance = Template.instance();
var percentLeft = (100 - instance.data.progressPercent) / 100;
return percentLeft * radius;
}
});
@@ -0,0 +1,48 @@
@import "{design}/app"
$circleSize = 46px
.radialProgress
position: relative
height: $circleSize
width: $circleSize
vendorize(box-shadow, 0 0 1em black)
border-radius: 100%
#svg circle
stroke-dashoffset: 0
theme('stroke', '$uiBorderColorDark')
stroke-width: 3px
vendorize(transition, stroke-dashoffset 1s linear)
#svg #bar
theme('stroke', '$activeColor')
vendorize(transform, rotate(270deg))
vendorize(transform-origin, center center)
.progressText
position: absolute
width: $circleSize
height: $circleSize
line-height: $circleSize
font-weight: 700
font-size: 17px
text-align: center
theme('color', '$activeColor')
top: 0
svg
theme('fill', '$activeColor')
left: 50%
position: absolute
theme('stroke', '$activeColor')
top: 50%
transform(translateX(-50%) translateY(-50%))
&.locked
width: 16px
height: 21px
&.complete
width: 27px
height: 27px