transitive-js
Version:
A tool for generating dynamic stylized transit maps that are easy to understand.
24 lines (23 loc) • 647 B
TypeScript
/**
* A path through the network graph. Composed of PathSegments (which
* are in turn composed of a sequence of graph edges)
*/
export default class NetworkPath {
/**
* NetworkPath constructor
* @param {Object} parent the parent object (a RoutePattern or Journey)
*/
constructor(parent: Object);
parent: Object;
segments: any[];
clearGraphData(segment: any): void;
/**
* addSegment: add a new segment to the end of this NetworkPath
*/
addSegment(segment: any): void;
getRenderedSegments(): any[];
/**
* getPointArray
*/
getPointArray(): any[];
}