mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
[Formatting] Remove test code
This commit is contained in:
parent
4d3afb8efc
commit
5e0975ddfa
12
main.js
12
main.js
@ -102,18 +102,6 @@ define([
|
||||
'./platform/status/bundle',
|
||||
'./platform/commonUI/regions/bundle'
|
||||
], function (Main, legacyRegistry) {
|
||||
setTimeout(function() {
|
||||
var plotEl = document.getElementsByClassName('gl-plot')[0];
|
||||
|
||||
html2canvas(plotEl, {
|
||||
onrendered: function(htmlCanvas) {
|
||||
var pdf = new jsPDF('l', 'px', [plotEl.offsetHeight, plotEl.offsetWidth]);
|
||||
pdf.addImage(htmlCanvas.toDataURL('image/jpeg', 2.0), 'JPEG', 0, 0, plotEl.offsetWidth, plotEl.offsetHeight);
|
||||
pdf.save("plot.pdf");
|
||||
}
|
||||
});
|
||||
}, 5000);
|
||||
|
||||
return {
|
||||
legacyRegistry: legacyRegistry,
|
||||
run: function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user