constants.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. export declare const RANGE_VALUE = "range";
  2. export declare const RANGE_TYPE = "type";
  3. export declare const PERCENT = "percent";
  4. export declare const DEFAULT_COLOR = "#f0f0f0";
  5. /** 仪表盘由 指针和表盘 组成 */
  6. export declare const INDICATEOR_VIEW_ID = "indicator-view";
  7. export declare const RANGE_VIEW_ID = "range-view";
  8. /**
  9. * 仪表盘默认配置项
  10. */
  11. export declare const DEFAULT_OPTIONS: {
  12. percent: number;
  13. range: {
  14. ticks: any[];
  15. };
  16. innerRadius: number;
  17. radius: number;
  18. startAngle: number;
  19. endAngle: number;
  20. syncViewPadding: boolean;
  21. axis: {
  22. line: any;
  23. label: {
  24. offset: number;
  25. style: {
  26. textAlign: "center";
  27. textBaseline: "middle";
  28. };
  29. };
  30. subTickLine: {
  31. length: number;
  32. };
  33. tickLine: {
  34. length: number;
  35. };
  36. grid: any;
  37. };
  38. indicator: {
  39. pointer: {
  40. style: {
  41. lineWidth: number;
  42. lineCap: "round";
  43. };
  44. };
  45. pin: {
  46. style: {
  47. r: number;
  48. lineWidth: number;
  49. fill: string;
  50. };
  51. };
  52. };
  53. statistic: {
  54. title: false;
  55. };
  56. meta: {
  57. range: {
  58. sync: string;
  59. };
  60. percent: {
  61. sync: string;
  62. tickCount: number;
  63. tickInterval: number;
  64. };
  65. };
  66. animation: false;
  67. };