@sports-alliance/sports-lib
Version:
A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
14 lines (13 loc) • 656 B
TypeScript
import { StreamJSONInterface } from '../streams/stream';
import { RouteStreamDataItem, RouteStreamInterface } from './route-stream.interface';
export declare class RouteStream implements RouteStreamInterface {
readonly type: string;
protected data: (number | null)[];
constructor(type: string, data?: (number | null)[]);
getData(onlyNumeric?: boolean, filterInfinity?: boolean): (number | null)[];
setData(data: (number | null)[]): this;
getStreamDataByIndex(onlyNumeric?: boolean, filterInfinity?: boolean): RouteStreamDataItem[];
isExportable(): boolean;
toJSON(): StreamJSONInterface;
private shouldDataBeFiltered;
}