transitive-js
Version:
A tool for generating dynamic stylized transit maps that are easy to understand.
21 lines (20 loc) • 518 B
TypeScript
/**
* A transit Route, as defined in the input data.
* Routes contain one or more Patterns.
*/
export default class Route {
constructor(data: any);
patterns: any[];
/**
* Add Pattern
*
* @param {Pattern}
*/
addPattern(pattern: any): void;
/**
* Rather than rely on the route text color field to be defined, simply return
* the black or white inverse of the background color.
*/
getTextColor(): [any] | undefined;
getColor(): any;
}