added prop options and func timeFormatter

added property `options`, which can be found in [the code](https://github.com/joewalnes/smoothie/blob/15fc4b62f5b23c8d5dd1784c820ae73f341626e6/smoothie.js#L270).
Even though it's not mentioned in the docs, it useful to be able to access these options after chart is initialized when you want to change appearance in real tme.

added function `timeFormatter`, which is mentioned in [right here, in the definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/smoothie/smoothie.d.ts#L127) and can be found in [the code](https://github.com/joewalnes/smoothie/blob/15fc4b62f5b23c8d5dd1784c820ae73f341626e6/smoothie.js#L795)
This commit is contained in:
Dmitry A. Efimenko
2016-09-15 10:20:57 -07:00
committed by GitHub
parent 24c082f150
commit 7c50d2c7a7
+4
View File
@@ -141,6 +141,8 @@ declare module "smoothie"
*/
export class SmoothieChart
{
options: IChartOptions;
constructor(chartOptions?: IChartOptions);
/**
@@ -188,5 +190,7 @@ declare module "smoothie"
updateValueRange(): void;
render(canvas?: HTMLCanvasElement, time?: number): void;
static timeFormatter(date: Date): string;
}
}