mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 08:43:17 +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/status/bundle',
|
||||||
'./platform/commonUI/regions/bundle'
|
'./platform/commonUI/regions/bundle'
|
||||||
], function (Main, legacyRegistry) {
|
], 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 {
|
return {
|
||||||
legacyRegistry: legacyRegistry,
|
legacyRegistry: legacyRegistry,
|
||||||
run: function () {
|
run: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user