mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
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:
committed by
GitHub
parent
24c082f150
commit
7c50d2c7a7
Vendored
+4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user