| 1 |
/** |
| 2 |
* Platform class for charts that can access the DOM and global window/document properties |
| 3 |
* @extends BasePlatform |
| 4 |
*/ |
| 5 |
export default class DomPlatform extends BasePlatform { |
| 6 |
/** |
| 7 |
* @param {HTMLCanvasElement} canvas |
| 8 |
* @param {number} [aspectRatio] |
| 9 |
* @return {CanvasRenderingContext2D|null} |
| 10 |
*/ |
| 11 |
acquireContext(canvas: HTMLCanvasElement, aspectRatio?: number): CanvasRenderingContext2D | null; |
| 12 |
/** |
| 13 |
* @param {Chart} chart |
| 14 |
* @param {string} type |
| 15 |
*/ |
| 16 |
removeEventListener(chart: Chart, type: string): void; |
| 17 |
} |
| 18 |
export type Chart = import('../core/core.controller.js').default; |
| 19 |
import BasePlatform from "./platform.base.js"; |