Node-Red configuration
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.

platform.dom.d.ts 683B

12345678910111213141516171819
  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";