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