constants.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export declare const X_FIELD = "x";
  2. export declare const Y_FIELD = "y";
  3. export declare const DEFAULT_TOOLTIP_OPTIONS: {
  4. showTitle: boolean;
  5. shared: boolean;
  6. showMarkers: boolean;
  7. customContent: (x: string, data: any[]) => string;
  8. containerTpl: string;
  9. itemTpl: string;
  10. domStyles: {
  11. 'g2-tooltip': {
  12. padding: string;
  13. fontSize: string;
  14. };
  15. };
  16. showCrosshairs: boolean;
  17. crosshairs: {
  18. type: "x";
  19. };
  20. };
  21. /**
  22. * 默认配置项
  23. */
  24. export declare const DEFAULT_OPTIONS: {
  25. appendPadding: number;
  26. tooltip: {
  27. showTitle: boolean;
  28. shared: boolean;
  29. showMarkers: boolean;
  30. customContent: (x: string, data: any[]) => string;
  31. containerTpl: string;
  32. itemTpl: string;
  33. domStyles: {
  34. 'g2-tooltip': {
  35. padding: string;
  36. fontSize: string;
  37. };
  38. };
  39. showCrosshairs: boolean;
  40. crosshairs: {
  41. type: "x";
  42. };
  43. };
  44. animation: {};
  45. };