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.

element.arc.d.ts 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import Element from '../core/core.element.js';
  2. import type { ArcOptions, Point } from '../types/index.js';
  3. export interface ArcProps extends Point {
  4. startAngle: number;
  5. endAngle: number;
  6. innerRadius: number;
  7. outerRadius: number;
  8. circumference: number;
  9. }
  10. export default class ArcElement extends Element<ArcProps, ArcOptions> {
  11. static id: string;
  12. static defaults: {
  13. borderAlign: string;
  14. borderColor: string;
  15. borderDash: any[];
  16. borderDashOffset: number;
  17. borderJoinStyle: any;
  18. borderRadius: number;
  19. borderWidth: number;
  20. offset: number;
  21. spacing: number;
  22. angle: any;
  23. circular: boolean;
  24. };
  25. static defaultRoutes: {
  26. backgroundColor: string;
  27. };
  28. static descriptors: {
  29. _scriptable: boolean;
  30. _indexable: (name: any) => boolean;
  31. };
  32. circumference: number;
  33. endAngle: number;
  34. fullCircles: number;
  35. innerRadius: number;
  36. outerRadius: number;
  37. pixelMargin: number;
  38. startAngle: number;
  39. constructor(cfg: any);
  40. inRange(chartX: number, chartY: number, useFinalPosition: boolean): boolean;
  41. getCenterPoint(useFinalPosition: boolean): {
  42. x: number;
  43. y: number;
  44. };
  45. tooltipPosition(useFinalPosition: boolean): {
  46. x: number;
  47. y: number;
  48. };
  49. draw(ctx: CanvasRenderingContext2D): void;
  50. }