mirror of
https://github.com/nasa/openmct.git
synced 2025-05-22 10:13:58 +00:00
31 lines
751 B
JavaScript
31 lines
751 B
JavaScript
/*global define*/
|
|
|
|
define(
|
|
[],
|
|
function () {
|
|
"use strict";
|
|
|
|
/**
|
|
* Provides data to populate resource graphs associated
|
|
* with timelines in a timeline view.
|
|
* This is a placeholder until WTD-918.
|
|
* @constructor
|
|
*/
|
|
function TimelineUtilization() {
|
|
return {
|
|
getPointCount: function () {
|
|
return 1000;
|
|
},
|
|
getDomainValue: function (index) {
|
|
return 60000 * index;
|
|
},
|
|
getRangeValue: function (index) {
|
|
return Math.sin(index) * (index % 10);
|
|
}
|
|
};
|
|
}
|
|
|
|
return TimelineUtilization;
|
|
}
|
|
|
|
); |