mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
parent
72ecbb0abc
commit
a6386b1612
@ -34,7 +34,7 @@ define([
|
|||||||
PlotController,
|
PlotController,
|
||||||
PlotViewPolicy,
|
PlotViewPolicy,
|
||||||
PlotOptionsController,
|
PlotOptionsController,
|
||||||
ExportImageService,
|
exportImageService,
|
||||||
plotTemplate,
|
plotTemplate,
|
||||||
plotOptionsBrowseTemplate,
|
plotOptionsBrowseTemplate,
|
||||||
legacyRegistry
|
legacyRegistry
|
||||||
@ -91,7 +91,7 @@ define([
|
|||||||
"services": [
|
"services": [
|
||||||
{
|
{
|
||||||
"key": "ExportImageService",
|
"key": "ExportImageService",
|
||||||
"implementation": ExportImageService,
|
"implementation": exportImageService,
|
||||||
"depends": [
|
"depends": [
|
||||||
"$q",
|
"$q",
|
||||||
"$timeout",
|
"$timeout",
|
||||||
|
@ -64,7 +64,7 @@ define(
|
|||||||
function PlotController(
|
function PlotController(
|
||||||
$scope,
|
$scope,
|
||||||
$element,
|
$element,
|
||||||
ExportImageService,
|
exportImageService,
|
||||||
telemetryFormatter,
|
telemetryFormatter,
|
||||||
telemetryHandler,
|
telemetryHandler,
|
||||||
throttle,
|
throttle,
|
||||||
@ -249,7 +249,7 @@ define(
|
|||||||
|
|
||||||
self.pending = true;
|
self.pending = true;
|
||||||
self.$element = $element;
|
self.$element = $element;
|
||||||
self.ExportImageService = ExportImageService;
|
self.exportImageService = exportImageService;
|
||||||
|
|
||||||
// Initialize axes; will get repopulated when telemetry
|
// Initialize axes; will get repopulated when telemetry
|
||||||
// metadata becomes available.
|
// metadata becomes available.
|
||||||
@ -374,7 +374,7 @@ define(
|
|||||||
PlotController.prototype.exportPDF = function () {
|
PlotController.prototype.exportPDF = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
self.hideExportButtons = true;
|
self.hideExportButtons = true;
|
||||||
self.ExportImageService.exportPDF(self.$element[0], "plot.pdf").finally(function () {
|
self.exportImageService.exportPDF(self.$element[0], "plot.pdf").finally(function () {
|
||||||
self.hideExportButtons = false;
|
self.hideExportButtons = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -385,7 +385,7 @@ define(
|
|||||||
PlotController.prototype.exportPNG = function () {
|
PlotController.prototype.exportPNG = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
self.hideExportButtons = true;
|
self.hideExportButtons = true;
|
||||||
self.ExportImageService.exportPNG(self.$element[0], "plot.png").finally(function () {
|
self.exportImageService.exportPNG(self.$element[0], "plot.png").finally(function () {
|
||||||
self.hideExportButtons = false;
|
self.hideExportButtons = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -396,7 +396,7 @@ define(
|
|||||||
PlotController.prototype.exportJPG = function () {
|
PlotController.prototype.exportJPG = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
self.hideExportButtons = true;
|
self.hideExportButtons = true;
|
||||||
self.ExportImageService.exportJPG(self.$element[0], "plot.jpg").finally(function () {
|
self.exportImageService.exportJPG(self.$element[0], "plot.jpg").finally(function () {
|
||||||
self.hideExportButtons = false;
|
self.hideExportButtons = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user