lib/Map/TableStructure.js
function calculateTimeIntervals(timeColumn) {
  // First we find the last time for all of the data (this is an optomisation for the calculateAvailability operation.
  const endTime = timeColumn.values.reduce(function(latest, value, index) {
    const current = finishFromIndex(timeColumn, index);
    if (
      !defined(latest) ||
      (defined(current) && JulianDate.greaterThan(current, latest))
    ) {
      return current;
    }
    return latest;
  }, finishFromIndex(timeColumn, 0));

  return timeColumn.values.map(function(value, index) {
    return calculateAvailability(timeColumn, index, endTime);
  });
}
function calculateTimeIntervals(timeColumn) {
  // First we find the last time for all of the data (this is an optomisation for the calculateAvailability operation.
  const endTime = timeColumn.values.reduce(function(latest, value, index) {
    const current = finishFromIndex(timeColumn, index);
    if (
      !defined(latest) ||
      (defined(current) && JulianDate.greaterThan(current, latest))
    ) {
      return current;
    }
    return latest;
  }, finishFromIndex(timeColumn, 0));

  return timeColumn.values.map(function(value, index) {
    return calculateAvailability(timeColumn, index, endTime);
  });
}
function calculateTimeIntervals ( timeColumn ) { // First we find the last time for all of the data (this is an optomisation for the calculateAvailability operation. const endTime = timeColumn . values . reduce ( function ( latest , value , index ) { const current = finishFromIndex ( timeColumn , index ) ; if ( ! defined ( latest ) || ( defined ( current ) && JulianDate . greaterThan ( current , latest ) ) ) { return current ; } return latest ; } , finishFromIndex ( timeColumn , 0 ) ) ; return timeColumn . values . map ( function ( value , index ) { return calculateAvailability ( timeColumn , index , endTime ) ; } ) ; }
Calculates and returns TimeInterval array, whose elements say when to display each row.
@private
Calculates and returns TimeInterval array whose elements say when to display each row .