Skip to content
Snippets Groups Projects
Commit 1803382c authored by Naab, Daniel James's avatar Naab, Daniel James
Browse files

Correct some "timeseries" renames

parent 80c59b20
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ export const getNearestTime = function(data, time) {
/*
* Returns a function that the time series data point nearest the tooltip focus time for the given timeseries
* @param {Object} state - Redux store
* @param String} tsKey - TimeSeries key
* @param String} tsKey - Time series key
* @return {Object}
*/
export const tsCursorPointsSelector = memoize(tsKey => createSelector(
......
......@@ -137,7 +137,7 @@ export const currentVariablePointsSelector = memoize(tsKey => createSelector(
* Returns a selector that, for a given tsKey:
* Returns an array of time points for all time series.
* @param {Object} state Redux store
* @param {String} tsKey TimeSeries key
* @param {String} tsKey Time series key
* @return {Array} Array of array of points.
*/
export const pointsSelector = memoize((tsKey) => createSelector(
......@@ -209,7 +209,7 @@ export const visiblePointsSelector = createSelector(
* Factory function creates a function that, for a given tsKey:
* Returns all point data as an array of [value, time, qualifiers].
* @param {Object} state - Redux store
* @param {String} tsKey - time series key
* @param {String} tsKey - Time series key
* @param {Object} - keys are ts id, values are an array of points where each point is an Array as follows: [value, time, qualifiers].
*/
export const pointsTableDataSelector = memoize(tsKey => createSelector(
......@@ -249,7 +249,7 @@ const getLineClasses = function(pt) {
* Factory function creates a function that:
* Returns all points in a time series grouped into line segments, for each time series.
* @param {Object} state Redux store
* @param {String} tsKey TimeSeries key
* @param {String} tsKey Time series key
* @return {Object} Keys are ts Ids, values are of array of line segments.
*/
export const lineSegmentsSelector = memoize((tsKey, period) => createSelector(
......
......@@ -125,7 +125,7 @@ export const addSparkLine = function(svgSelection, {seriesLineSegments, scales})
* a row changes the active parameter code.
* @param {Object} elem d3 selection
* @param {String} siteno
* @param {Object} availableTimeSeries TimeSeries metadata to display
* @param {Object} availableTimeSeries Time series metadata to display
* @param {Object} lineSegmentsByParmCd line segments for each parameter code
* @param {Object} timeSeriesScalesByParmCd scales for each parameter code
*/
......
......@@ -92,7 +92,7 @@ export const hasTimeSeriesWithPoints = memoize((tsKey, period) => createSelector
* Factory function creates a function that:
* Returns the current show state of a timeseries.
* @param {Object} state Redux store
* @param {String} tsKey TimeSeries key
* @param {String} tsKey Time series key
* @return {Boolean} Show state of the timeseries
*/
export const isVisibleSelector = memoize(tsKey => (state) => {
......
......@@ -51,7 +51,7 @@ const updateFocusLine = function(elem, {cursorTime, yScale, xScale}) {
* where the y-value is finite; no use in making a point if y is Infinity.
*
* @param {Object} state - Redux store
* @param String} tsKey - TimeSeries key
* @param String} tsKey - Time series key
* @return {Object}
*/
const tooltipPointsSelector = memoize(tsKey => createSelector(
......
......@@ -40,7 +40,7 @@ export const getCurrentParmCd = createSelector(
);
/*
* @param {String} - time series key: current, compre or median
* @param {String} - Time series key: current, compre or median
* @param {String} or null period = date range of interest as an ISO-8601 duration. If null the currentDateRange is used
* @param {String} or null parmCD - if null the parmCd of the current variable is used.
* @return {String} or null - Return the the request key for the request object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment