LT-55: Finishing the PDF template
This commit is contained in:
parent
edcecade56
commit
f56c586a3c
@ -2,4 +2,3 @@ import './conformance';
|
||||
import './lib';
|
||||
import './helpers';
|
||||
import './components';
|
||||
import './reports';
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
// import { $ } from 'meteor/jquery';
|
||||
import jsPDF from 'jspdf';
|
||||
import html2canvas from 'html2canvas';
|
||||
// import jsPDF from 'jspdf';
|
||||
// import html2canvas from 'html2canvas';
|
||||
// import * as pdfMake from 'pdfmake';
|
||||
|
||||
window.jsPDF = jsPDF;
|
||||
window.html2canvas = html2canvas;
|
||||
// window.jsPDF = jsPDF;
|
||||
// window.html2canvas = html2canvas;
|
||||
// window.pdfMake = pdfMake;
|
||||
|
||||
OHIF.measurements.exportPdf = (measurementGroups, measurementApi, timepointApi) => {
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
import './measurements/measurements.html';
|
||||
import './measurements/measurements.styl';
|
||||
import './measurements/measurements.js';
|
||||
@ -1,15 +0,0 @@
|
||||
<template name="measurementsReport">
|
||||
<div id="measurementsReport" class="print">
|
||||
{{#each pages}}
|
||||
<div class="page" style="width:{{width}}pt; height:{{height}}pt;">
|
||||
<div class="pageNumber">{{@index}}</div>
|
||||
<div>{{patient.name}}</div>
|
||||
<div>
|
||||
{{#each item in items}}
|
||||
<div class="item">{{item}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</template>
|
||||
@ -1,15 +0,0 @@
|
||||
Template.measurementsReport.onRendered(() => {
|
||||
const instance = Template.instance();
|
||||
const data = Template.currentData();
|
||||
const onRendered = data.onRendered;
|
||||
|
||||
if (onRendered) {
|
||||
onRendered(instance);
|
||||
}
|
||||
});
|
||||
|
||||
Template.measurementsReport.helpers({
|
||||
getCanvasData(canvas) {
|
||||
|
||||
}
|
||||
});
|
||||
@ -1,25 +0,0 @@
|
||||
#measurementsReport
|
||||
background-color: #FFF;
|
||||
color: #000;
|
||||
font-size: 12pt;
|
||||
left: 0;
|
||||
min-width: 300pt;
|
||||
min-height: 150pt;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: 10000;
|
||||
// transform: translate(-100%, -100%);
|
||||
|
||||
.page
|
||||
border: solid 1pt #F00;
|
||||
padding: 6pt;
|
||||
|
||||
.pageNumber
|
||||
float: right;
|
||||
|
||||
.item
|
||||
background-color: #EEE;
|
||||
color: #666;
|
||||
margin: 10pt 0;
|
||||
padding: 10pt;
|
||||
// page-break-before: auto;
|
||||
File diff suppressed because one or more lines are too long
@ -1,8 +1,6 @@
|
||||
Npm.depends({
|
||||
ajv: '4.10.4',
|
||||
jspdf: '1.3.2',
|
||||
html2canvas: '0.5.0-beta4',
|
||||
pdfmake: '0.1.24'
|
||||
jspdf: '1.3.2'
|
||||
});
|
||||
|
||||
Package.describe({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user