index.ts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. // // Export modularized config and utility functions with type definitions
  2. // export {
  3. // config,
  4. // assign,
  5. // util
  6. // } from './lib/config';
  7. // export {
  8. // hexToRgb
  9. // } from './lib/utils/color';
  10. // export {
  11. // findRange,
  12. // calCandleMA
  13. // } from './lib/utils/math';
  14. // export {
  15. // convertCoordinateOrigin,
  16. // isInAngleRange,
  17. // calValidDistance
  18. // } from './lib/utils/coordinate';
  19. // export {
  20. // measureText
  21. // } from './lib/utils/text';
  22. // export {
  23. // avoidCollision,
  24. // isCollision
  25. // } from './lib/utils/collision';
  26. // export {
  27. // getH5Offset,
  28. // createCurveControlPoints,
  29. // getTouches
  30. // } from './lib/utils/misc';
  31. // // Export core chart classes
  32. // export {
  33. // uCharts,
  34. // uChartsEvent
  35. // } from './lib/charts/index';
  36. // // Default export for backward compatibility
  37. // export { default } from './lib/charts/index';
  38. // // Re-export config and util from u-charts for backward compatibility
  39. // export { config as uChartsConfig, util as uChartsUtil } from './lib/config';
  40. // // Export chart types
  41. // export type {
  42. // CanvasContext,
  43. // ChartsTitle,
  44. // ChartsConfig,
  45. // YAxisConfig,
  46. // XAxisConfig,
  47. // LegendConfig,
  48. // ExtraConfig,
  49. // ScrollOption,
  50. // TouchEvent,
  51. // TouchPoint,
  52. // ToolTipOption as ChartsToolTipOption,
  53. // EventListener,
  54. // EventMap
  55. // } from './lib/charts/index';
  56. // // Export data processing functions
  57. // export {
  58. // fixPieSeries,
  59. // fillSeries,
  60. // fillCustomColor,
  61. // getDataRange,
  62. // dataCombine,
  63. // dataCombineStack,
  64. // calXAxisData,
  65. // getXAxisPoints,
  66. // calYAxisData,
  67. // calCategoriesData,
  68. // getToolTipData,
  69. // getMixToolTipData
  70. // } from './lib/data-processing/index';
  71. // export type {
  72. // SeriesItem,
  73. // ChartOptions,
  74. // ChartExtraOptions,
  75. // BarOptions,
  76. // ColumnOptions,
  77. // TooltipOptions,
  78. // MountOptions,
  79. // XAxisOptions,
  80. // YAxisOptions,
  81. // YAxisDataItem,
  82. // ChartData,
  83. // UChartsConfig,
  84. // DataRange,
  85. // XAxisDataResult,
  86. // YAxisDataResult,
  87. // AxisPointsResult,
  88. // CategoriesDataResult,
  89. // ToolTipOption,
  90. // ToolTipDataResult
  91. // } from './lib/data-processing/index';
  92. // // Export charts data points calculation functions
  93. // export {
  94. // getDataPoints,
  95. // getLineDataPoints,
  96. // getColumnDataPoints,
  97. // getCandleDataPoints,
  98. // getMountDataPoints,
  99. // getBarDataPoints,
  100. // getStackDataPoints,
  101. // getBarStackDataPoints,
  102. // getPieDataPoints,
  103. // getRoseDataPoints,
  104. // getRadarDataPoints,
  105. // getGaugeDataPoints,
  106. // getGaugeArcbarDataPoints,
  107. // getArcbarDataPoints,
  108. // getGaugeAxisPoints,
  109. // getFunnelDataPoints
  110. // } from './lib/charts-data/index';
  111. // // Export renderer functions
  112. // export {
  113. // drawPointShape,
  114. // drawActivePoint,
  115. // drawRingTitle,
  116. // drawPointText,
  117. // drawToolTipSplitLine,
  118. // drawMarkLine,
  119. // drawToolTipHorizentalLine,
  120. // drawToolTipSplitArea,
  121. // drawBarToolTipSplitArea,
  122. // drawToolTip,
  123. // drawToolTipBridge,
  124. // drawCanvas
  125. // } from './lib/renderers/index';
  126. // export type {
  127. // Point as RendererPoint,
  128. // ToolTipTextItem,
  129. // ToolTipOption as RendererToolTipOption,
  130. // MarkLineDataItem,
  131. // ActivePointOption,
  132. // TitleOption
  133. // } from './lib/renderers/index';
  134. // // Export helper functions
  135. // export {
  136. // // Index finders
  137. // findCurrentIndex,
  138. // findBarChartCurrentIndex,
  139. // findLegendIndex,
  140. // findRadarChartCurrentIndex,
  141. // findFunnelChartCurrentIndex,
  142. // findWordChartCurrentIndex,
  143. // findMapChartCurrentIndex,
  144. // findRoseChartCurrentIndex,
  145. // findPieChartCurrentIndex,
  146. // // Area checkers
  147. // isInExactLegendArea,
  148. // isInExactChartArea,
  149. // isInExactPieChartArea,
  150. // // Data helpers
  151. // getSeriesDataItem,
  152. // filterSeries,
  153. // splitPoints,
  154. // getMaxTextListLength,
  155. // getRadarCoordinateSeries,
  156. // // Legend helpers
  157. // calLegendData,
  158. // getPieTextMaxLength,
  159. // // Coordinate helpers
  160. // lonlat2mercator,
  161. // mercator2lonlat,
  162. // getBoundingBox,
  163. // coordinateToPoint,
  164. // pointToCoordinate,
  165. // isRayIntersectsSegment,
  166. // isPoiWithinPoly,
  167. // // Data fixers
  168. // fixColumeData,
  169. // fixBarData,
  170. // fixColumeMeterData,
  171. // fixColumeStackData,
  172. // fixBarStackData,
  173. // // Misc helpers
  174. // getXAxisTextList,
  175. // getYAxisTextList,
  176. // calTooltipYAxisData,
  177. // calMarkLineData,
  178. // contextRotate,
  179. // normalInt,
  180. // collisionNew,
  181. // getWordCloudPoint
  182. // } from './lib/helper-functions/index';
  183. // export type {
  184. // LegendData,
  185. // PieData,
  186. // RadarData
  187. // } from './lib/helper-functions/index';
  188. // // Export draw controllers (core drawing control functions)
  189. // export {
  190. // drawCharts
  191. // } from './lib/draw-controllers/index';
  192. // export {
  193. // Animation,
  194. // AnimationFunction
  195. // } from './lib/draw-controllers/index';
  196. // export type {
  197. // DrawChartsContext,
  198. // DrawChartsFunction,
  199. // AnimationOptions,
  200. // TimingFunction,
  201. // TimingFunctions
  202. // } from './lib/draw-controllers/index';
  203. // ============================================================================
  204. // React Chart Components (Story 016.009)
  205. // ============================================================================
  206. // export {
  207. // // BaseChart component
  208. // BaseChart,
  209. // BaseChartDefault,
  210. // // BarChart component (横向柱状图)
  211. // BarChart,
  212. // BarChartDefault,
  213. // // ColumnChart component
  214. // ColumnChart,
  215. // ColumnChartDefault,
  216. // // LineChart component
  217. // LineChart,
  218. // LineChartDefault,
  219. // // CandleChart component
  220. // CandleChart,
  221. // CandleChartDefault,
  222. // // PieChart component
  223. // PieChart,
  224. // PieChartDefault,
  225. // // RadarChart component
  226. // RadarChart,
  227. // RadarChartDefault
  228. // } from './components/index';
  229. // export type {
  230. // // BaseChart types
  231. // BaseChartProps,
  232. // // BarChart types
  233. // BarChartProps,
  234. // BarType,
  235. // // ColumnChart types
  236. // ColumnChartProps,
  237. // ColumnType,
  238. // // LineChart types
  239. // LineChartProps,
  240. // DataPointShape,
  241. // // CandleChart types
  242. // CandleChartProps,
  243. // // PieChart types
  244. // PieChartProps,
  245. // PieChartType,
  246. // // RadarChart types
  247. // RadarChartProps
  248. // } from './components/index';