You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
802 B
24 lines
802 B
declare module 'quickchart-js' {
|
|
import * as ChartJS from 'chart.js';
|
|
|
|
class QuickChart {
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
constructor(apiKey?: string, accountId?: string);
|
|
|
|
public setConfig(config: ChartJS.ChartConfiguration): QuickChart;
|
|
public setWidth(width: number): QuickChart;
|
|
public setHeight(height: number): QuickChart;
|
|
public setBackgroundColor(color: string): QuickChart;
|
|
public setDevicePixelRatio(ratio: number): QuickChart;
|
|
public setFormat(fmt: string): QuickChart;
|
|
|
|
public getUrl(): string;
|
|
public getShortUrl(): Promise<string>;
|
|
public toBinary(): Promise<Buffer>;
|
|
public toFile(
|
|
pathOrDescriptor: string | number | Buffer | URL
|
|
): Promise<void>;
|
|
}
|
|
|
|
export = QuickChart;
|
|
}
|
|
|