mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 20:28:14 +00:00
[JSDoc] Add annotations
Bulk-add JSDoc annotations, WTD-1482.
This commit is contained in:
@ -44,6 +44,7 @@ define(
|
||||
* are applicable in a given plot view, maintains current
|
||||
* selection state thereof, and provides handlers for the
|
||||
* different behaviors associated with these modes.
|
||||
* @memberof platform/features/plot
|
||||
* @constructor
|
||||
* @param {DomainObject[]} the telemetry objects being
|
||||
* represented in this plot view
|
||||
@ -61,6 +62,7 @@ define(
|
||||
* and view-level interactions with pan-zoom state.
|
||||
* @returns {PlotOverlayMode|PlotStackMode} a handler
|
||||
* for the current mode
|
||||
* @memberof platform/features/plot.PlotModeOptions#
|
||||
*/
|
||||
getModeHandler: function () {
|
||||
// Lazily initialize
|
||||
@ -77,6 +79,7 @@ define(
|
||||
* mode contains a `name` and `glyph` field suitable
|
||||
* for display in a template.
|
||||
* @return {Array} the available modes
|
||||
* @memberof platform/features/plot.PlotModeOptions#
|
||||
*/
|
||||
getModeOptions: function () {
|
||||
return options;
|
||||
@ -86,6 +89,7 @@ define(
|
||||
* This will be one of the elements returned from
|
||||
* `getModeOptions`.
|
||||
* @return {object} the current mode
|
||||
* @memberof platform/features/plot.PlotModeOptions#
|
||||
*/
|
||||
getMode: function () {
|
||||
return mode;
|
||||
@ -96,6 +100,7 @@ define(
|
||||
* returned by `getModeOptions`.
|
||||
* @param {object} option one of the plot mode options
|
||||
* from `getModeOptions`
|
||||
* @memberof platform/features/plot.PlotModeOptions#
|
||||
*/
|
||||
setMode: function (option) {
|
||||
if (mode !== option) {
|
||||
@ -110,4 +115,4 @@ define(
|
||||
|
||||
return PlotModeOptions;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -29,6 +29,7 @@ define(
|
||||
/**
|
||||
* Handles plotting in Overlaid mode. In overlaid mode, there
|
||||
* is one sub-plot which contains all plotted objects.
|
||||
* @memberof platform/features/plot
|
||||
* @constructor
|
||||
* @param {DomainObject[]} the domain objects to be plotted
|
||||
*/
|
||||
@ -68,12 +69,14 @@ define(
|
||||
/**
|
||||
* Plot telemetry to the sub-plot(s) managed by this mode.
|
||||
* @param {PlotPreparer} prepared the prepared data to plot
|
||||
* @memberof platform/features/plot.PlotOverlayMode#
|
||||
*/
|
||||
plotTelemetry: plotTelemetry,
|
||||
/**
|
||||
* Get all sub-plots to be displayed in this mode; used
|
||||
* to populate the plot template.
|
||||
* @return {SubPlot[]} all sub-plots to display in this mode
|
||||
* @memberof platform/features/plot.PlotOverlayMode#
|
||||
*/
|
||||
getSubPlots: function () {
|
||||
return subplots;
|
||||
@ -83,6 +86,7 @@ define(
|
||||
* there are some temporary user modifications to the
|
||||
* current pan-zoom state.)
|
||||
* @returns {boolean} true if not in the base pan-zoom state
|
||||
* @memberof platform/features/plot.PlotOverlayMode#
|
||||
*/
|
||||
isZoomed: function () {
|
||||
return panZoomStack.getDepth() > 1;
|
||||
@ -90,6 +94,7 @@ define(
|
||||
/**
|
||||
* Undo the most recent pan/zoom change and restore
|
||||
* the prior state.
|
||||
* @memberof platform/features/plot.PlotOverlayMode#
|
||||
*/
|
||||
stepBackPanZoom: function () {
|
||||
panZoomStack.popPanZoom();
|
||||
@ -104,4 +109,4 @@ define(
|
||||
|
||||
return PlotOverlayMode;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -29,6 +29,7 @@ define(
|
||||
/**
|
||||
* Handles plotting in Stacked mode. In stacked mode, there
|
||||
* is one sub-plot for each plotted object.
|
||||
* @memberof platform/features/plot
|
||||
* @constructor
|
||||
* @param {DomainObject[]} the domain objects to be plotted
|
||||
*/
|
||||
@ -77,12 +78,14 @@ define(
|
||||
/**
|
||||
* Plot telemetry to the sub-plot(s) managed by this mode.
|
||||
* @param {PlotPreparer} prepared the prepared data to plot
|
||||
* @memberof platform/features/plot.PlotStackMode#
|
||||
*/
|
||||
plotTelemetry: plotTelemetry,
|
||||
/**
|
||||
* Get all sub-plots to be displayed in this mode; used
|
||||
* to populate the plot template.
|
||||
* @return {SubPlot[]} all sub-plots to display in this mode
|
||||
* @memberof platform/features/plot.PlotStackMode#
|
||||
*/
|
||||
getSubPlots: function () {
|
||||
return subplots;
|
||||
@ -92,6 +95,7 @@ define(
|
||||
* there are some temporary user modifications to the
|
||||
* current pan-zoom state.)
|
||||
* @returns {boolean} true if not in the base pan-zoom state
|
||||
* @memberof platform/features/plot.PlotStackMode#
|
||||
*/
|
||||
isZoomed: function () {
|
||||
return panZoomStackGroup.getDepth() > 1;
|
||||
@ -99,6 +103,7 @@ define(
|
||||
/**
|
||||
* Undo the most recent pan/zoom change and restore
|
||||
* the prior state.
|
||||
* @memberof platform/features/plot.PlotStackMode#
|
||||
*/
|
||||
stepBackPanZoom: function () {
|
||||
panZoomStackGroup.popPanZoom();
|
||||
@ -108,6 +113,7 @@ define(
|
||||
},
|
||||
/**
|
||||
* Undo all pan/zoom changes and restore the initial state.
|
||||
* @memberof platform/features/plot.PlotStackMode#
|
||||
*/
|
||||
unzoom: function () {
|
||||
panZoomStackGroup.clearPanZoom();
|
||||
@ -120,4 +126,4 @@ define(
|
||||
|
||||
return PlotStackMode;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user