transitive-js
Version:
A tool for generating dynamic stylized transit maps that are easy to understand.
38 lines (37 loc) • 1 kB
TypeScript
/**
* Styler object
*/
export default class Styler {
constructor(styles: any, transitive: any);
transitive: any;
/**
* Clear all current styles
*/
clear(): void;
/**
* Reset to the predefined styles
*/
reset(): void;
/**
* Load rules
*
* @param {Object} a set of style rules
*/
load(styles: any): void;
/**
* Compute a style rule based on the current display and data
*
* @param {Array} array of rules
* @param {Object} the Display object
* @param {Object} data associated with this object
* @param {Number} index of this object
*/
compute(rules: any, display: any, data: Object, index: number): any;
compute2(type: any, attr: any, data: any, index: any): any;
/**
* Return the collection of default segment styles for a mode.
*
* @param {String} an OTP mode string
*/
getModeStyles(mode: any, display: any): {};
}