07504db2e28da39758855dac4e51520e6fd8cc3565ffad841942244daa21a95c125f722e05c4eb208b67fde57c62ba4b98197d538feb4b9a284a9ca4df14be 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { ComponentOption, BoxLayoutOptionMixin, ZRTextAlign, ZRTextVerticalAlign, ZRColor, BorderOptionMixin, LabelOption } from '../../util/types.js';
  2. import { EChartsExtensionInstallRegisters } from '../../extension.js';
  3. export interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
  4. mainType?: 'title';
  5. show?: boolean;
  6. text?: string;
  7. /**
  8. * Link to url
  9. */
  10. link?: string;
  11. target?: 'self' | 'blank';
  12. subtext?: string;
  13. sublink?: string;
  14. subtarget?: 'self' | 'blank';
  15. textAlign?: ZRTextAlign;
  16. textVerticalAlign?: ZRTextVerticalAlign;
  17. /**
  18. * @deprecated Use textVerticalAlign instead
  19. */
  20. textBaseline?: ZRTextVerticalAlign;
  21. backgroundColor?: ZRColor;
  22. /**
  23. * Padding between text and border.
  24. * Support to be a single number or an array.
  25. */
  26. padding?: number | number[];
  27. /**
  28. * Gap between text and subtext
  29. */
  30. itemGap?: number;
  31. textStyle?: LabelOption;
  32. subtextStyle?: LabelOption;
  33. /**
  34. * If trigger mouse or touch event
  35. */
  36. triggerEvent?: boolean;
  37. /**
  38. * Radius of background border.
  39. */
  40. borderRadius?: number | number[];
  41. }
  42. export declare function install(registers: EChartsExtensionInstallRegisters): void;