theme.d.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. declare const Theme: {
  2. fontFamily: string;
  3. pixelRatio: number;
  4. padding: number[];
  5. chart: {
  6. padding: string[];
  7. };
  8. colors: string[];
  9. shapes: {
  10. line: string[];
  11. point: string[];
  12. area: string[];
  13. interval: string[];
  14. };
  15. sizes: string[];
  16. shape: {
  17. line: {
  18. default: {
  19. lineWidth: string;
  20. lineJoin: string;
  21. lineCap: string;
  22. };
  23. smooth: {
  24. smooth: boolean;
  25. };
  26. dash: {
  27. lineDash: string[];
  28. };
  29. };
  30. point: {
  31. default: {
  32. size: string;
  33. };
  34. hollowCircle: {
  35. lineWidth: string;
  36. };
  37. };
  38. area: {
  39. default: {
  40. fillOpacity: number;
  41. };
  42. };
  43. interval: {
  44. default: {};
  45. };
  46. };
  47. axis: {
  48. labelOffset: string;
  49. line: {
  50. stroke: string;
  51. lineWidth: string;
  52. };
  53. label: {
  54. fill: string;
  55. fontSize: string;
  56. };
  57. grid: {
  58. stroke: string;
  59. lineWidth: string;
  60. lineDash: string[];
  61. };
  62. };
  63. guide: {
  64. line: {
  65. style: {
  66. stroke: string;
  67. lineWidth: number;
  68. };
  69. offsetX: number;
  70. offsetY: number;
  71. };
  72. text: {
  73. style: {
  74. fill: string;
  75. textBaseline: string;
  76. };
  77. offsetX: number;
  78. offsetY: number;
  79. };
  80. rect: {
  81. style: {
  82. fill: string;
  83. };
  84. };
  85. arc: {
  86. style: {
  87. stroke: string;
  88. };
  89. };
  90. html: {
  91. offsetX: number;
  92. offsetY: number;
  93. alignX: string;
  94. alignY: string;
  95. };
  96. tag: {
  97. offsetX: number;
  98. offsetY: number;
  99. side: number;
  100. background: {
  101. padding: number;
  102. radius: number;
  103. fill: string;
  104. };
  105. textStyle: {
  106. fontSize: number;
  107. fill: string;
  108. textAlign: string;
  109. textBaseline: string;
  110. };
  111. };
  112. point: {
  113. offsetX: number;
  114. offsetY: number;
  115. style: {
  116. fill: string;
  117. r: number;
  118. lineWidth: number;
  119. stroke: string;
  120. };
  121. };
  122. };
  123. };
  124. export default Theme;