|
@@ -1,271 +1,33 @@
|
|
|
-// // Export modularized config and utility functions with type definitions
|
|
|
|
|
-// export {
|
|
|
|
|
-// config,
|
|
|
|
|
-// assign,
|
|
|
|
|
-// util
|
|
|
|
|
-// } from './lib/config';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// hexToRgb
|
|
|
|
|
-// } from './lib/utils/color';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// findRange,
|
|
|
|
|
-// calCandleMA
|
|
|
|
|
-// } from './lib/utils/math';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// convertCoordinateOrigin,
|
|
|
|
|
-// isInAngleRange,
|
|
|
|
|
-// calValidDistance
|
|
|
|
|
-// } from './lib/utils/coordinate';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// measureText
|
|
|
|
|
-// } from './lib/utils/text';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// avoidCollision,
|
|
|
|
|
-// isCollision
|
|
|
|
|
-// } from './lib/utils/collision';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// getH5Offset,
|
|
|
|
|
-// createCurveControlPoints,
|
|
|
|
|
-// getTouches
|
|
|
|
|
-// } from './lib/utils/misc';
|
|
|
|
|
-
|
|
|
|
|
-// // Export core chart classes
|
|
|
|
|
-// export {
|
|
|
|
|
-// uCharts,
|
|
|
|
|
-// uChartsEvent
|
|
|
|
|
-// } from './lib/charts/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Default export for backward compatibility
|
|
|
|
|
-// export { default } from './lib/charts/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Re-export config and util from u-charts for backward compatibility
|
|
|
|
|
-// export { config as uChartsConfig, util as uChartsUtil } from './lib/config';
|
|
|
|
|
-
|
|
|
|
|
-// // Export chart types
|
|
|
|
|
-// export type {
|
|
|
|
|
-// CanvasContext,
|
|
|
|
|
-// ChartsTitle,
|
|
|
|
|
-// ChartsConfig,
|
|
|
|
|
-// YAxisConfig,
|
|
|
|
|
-// XAxisConfig,
|
|
|
|
|
-// LegendConfig,
|
|
|
|
|
-// ExtraConfig,
|
|
|
|
|
-// ScrollOption,
|
|
|
|
|
-// TouchEvent,
|
|
|
|
|
-// TouchPoint,
|
|
|
|
|
-// ToolTipOption as ChartsToolTipOption,
|
|
|
|
|
-// EventListener,
|
|
|
|
|
-// EventMap
|
|
|
|
|
-// } from './lib/charts/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Export data processing functions
|
|
|
|
|
-// export {
|
|
|
|
|
-// fixPieSeries,
|
|
|
|
|
-// fillSeries,
|
|
|
|
|
-// fillCustomColor,
|
|
|
|
|
-// getDataRange,
|
|
|
|
|
-// dataCombine,
|
|
|
|
|
-// dataCombineStack,
|
|
|
|
|
-// calXAxisData,
|
|
|
|
|
-// getXAxisPoints,
|
|
|
|
|
-// calYAxisData,
|
|
|
|
|
-// calCategoriesData,
|
|
|
|
|
-// getToolTipData,
|
|
|
|
|
-// getMixToolTipData
|
|
|
|
|
-// } from './lib/data-processing/index';
|
|
|
|
|
-
|
|
|
|
|
-// export type {
|
|
|
|
|
-// SeriesItem,
|
|
|
|
|
-// ChartOptions,
|
|
|
|
|
-// ChartExtraOptions,
|
|
|
|
|
-// BarOptions,
|
|
|
|
|
-// ColumnOptions,
|
|
|
|
|
-// TooltipOptions,
|
|
|
|
|
-// MountOptions,
|
|
|
|
|
-// XAxisOptions,
|
|
|
|
|
-// YAxisOptions,
|
|
|
|
|
-// YAxisDataItem,
|
|
|
|
|
-// ChartData,
|
|
|
|
|
-// UChartsConfig,
|
|
|
|
|
-// DataRange,
|
|
|
|
|
-// XAxisDataResult,
|
|
|
|
|
-// YAxisDataResult,
|
|
|
|
|
-// AxisPointsResult,
|
|
|
|
|
-// CategoriesDataResult,
|
|
|
|
|
-// ToolTipOption,
|
|
|
|
|
-// ToolTipDataResult
|
|
|
|
|
-// } from './lib/data-processing/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Export charts data points calculation functions
|
|
|
|
|
-// export {
|
|
|
|
|
-// getDataPoints,
|
|
|
|
|
-// getLineDataPoints,
|
|
|
|
|
-// getColumnDataPoints,
|
|
|
|
|
-// getCandleDataPoints,
|
|
|
|
|
-// getMountDataPoints,
|
|
|
|
|
-// getBarDataPoints,
|
|
|
|
|
-// getStackDataPoints,
|
|
|
|
|
-// getBarStackDataPoints,
|
|
|
|
|
-// getPieDataPoints,
|
|
|
|
|
-// getRoseDataPoints,
|
|
|
|
|
-// getRadarDataPoints,
|
|
|
|
|
-// getGaugeDataPoints,
|
|
|
|
|
-// getGaugeArcbarDataPoints,
|
|
|
|
|
-// getArcbarDataPoints,
|
|
|
|
|
-// getGaugeAxisPoints,
|
|
|
|
|
-// getFunnelDataPoints
|
|
|
|
|
-// } from './lib/charts-data/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Export renderer functions
|
|
|
|
|
-// export {
|
|
|
|
|
-// drawPointShape,
|
|
|
|
|
-// drawActivePoint,
|
|
|
|
|
-// drawRingTitle,
|
|
|
|
|
-// drawPointText,
|
|
|
|
|
-// drawToolTipSplitLine,
|
|
|
|
|
-// drawMarkLine,
|
|
|
|
|
-// drawToolTipHorizentalLine,
|
|
|
|
|
-// drawToolTipSplitArea,
|
|
|
|
|
-// drawBarToolTipSplitArea,
|
|
|
|
|
-// drawToolTip,
|
|
|
|
|
-// drawToolTipBridge,
|
|
|
|
|
-// drawCanvas
|
|
|
|
|
-// } from './lib/renderers/index';
|
|
|
|
|
-
|
|
|
|
|
-// export type {
|
|
|
|
|
-// Point as RendererPoint,
|
|
|
|
|
-// ToolTipTextItem,
|
|
|
|
|
-// ToolTipOption as RendererToolTipOption,
|
|
|
|
|
-// MarkLineDataItem,
|
|
|
|
|
-// ActivePointOption,
|
|
|
|
|
-// TitleOption
|
|
|
|
|
-// } from './lib/renderers/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Export helper functions
|
|
|
|
|
-// export {
|
|
|
|
|
-// // Index finders
|
|
|
|
|
-// findCurrentIndex,
|
|
|
|
|
-// findBarChartCurrentIndex,
|
|
|
|
|
-// findLegendIndex,
|
|
|
|
|
-// findRadarChartCurrentIndex,
|
|
|
|
|
-// findFunnelChartCurrentIndex,
|
|
|
|
|
-// findWordChartCurrentIndex,
|
|
|
|
|
-// findMapChartCurrentIndex,
|
|
|
|
|
-// findRoseChartCurrentIndex,
|
|
|
|
|
-// findPieChartCurrentIndex,
|
|
|
|
|
-// // Area checkers
|
|
|
|
|
-// isInExactLegendArea,
|
|
|
|
|
-// isInExactChartArea,
|
|
|
|
|
-// isInExactPieChartArea,
|
|
|
|
|
-// // Data helpers
|
|
|
|
|
-// getSeriesDataItem,
|
|
|
|
|
-// filterSeries,
|
|
|
|
|
-// splitPoints,
|
|
|
|
|
-// getMaxTextListLength,
|
|
|
|
|
-// getRadarCoordinateSeries,
|
|
|
|
|
-// // Legend helpers
|
|
|
|
|
-// calLegendData,
|
|
|
|
|
-// getPieTextMaxLength,
|
|
|
|
|
-// // Coordinate helpers
|
|
|
|
|
-// lonlat2mercator,
|
|
|
|
|
-// mercator2lonlat,
|
|
|
|
|
-// getBoundingBox,
|
|
|
|
|
-// coordinateToPoint,
|
|
|
|
|
-// pointToCoordinate,
|
|
|
|
|
-// isRayIntersectsSegment,
|
|
|
|
|
-// isPoiWithinPoly,
|
|
|
|
|
-// // Data fixers
|
|
|
|
|
-// fixColumeData,
|
|
|
|
|
-// fixBarData,
|
|
|
|
|
-// fixColumeMeterData,
|
|
|
|
|
-// fixColumeStackData,
|
|
|
|
|
-// fixBarStackData,
|
|
|
|
|
-// // Misc helpers
|
|
|
|
|
-// getXAxisTextList,
|
|
|
|
|
-// getYAxisTextList,
|
|
|
|
|
-// calTooltipYAxisData,
|
|
|
|
|
-// calMarkLineData,
|
|
|
|
|
-// contextRotate,
|
|
|
|
|
-// normalInt,
|
|
|
|
|
-// collisionNew,
|
|
|
|
|
-// getWordCloudPoint
|
|
|
|
|
-// } from './lib/helper-functions/index';
|
|
|
|
|
-
|
|
|
|
|
-// export type {
|
|
|
|
|
-// LegendData,
|
|
|
|
|
-// PieData,
|
|
|
|
|
-// RadarData
|
|
|
|
|
-// } from './lib/helper-functions/index';
|
|
|
|
|
-
|
|
|
|
|
-// // Export draw controllers (core drawing control functions)
|
|
|
|
|
-// export {
|
|
|
|
|
-// drawCharts
|
|
|
|
|
-// } from './lib/draw-controllers/index';
|
|
|
|
|
-
|
|
|
|
|
-// export {
|
|
|
|
|
-// Animation,
|
|
|
|
|
-// AnimationFunction
|
|
|
|
|
-// } from './lib/draw-controllers/index';
|
|
|
|
|
-
|
|
|
|
|
-// export type {
|
|
|
|
|
-// DrawChartsContext,
|
|
|
|
|
-// DrawChartsFunction,
|
|
|
|
|
-// AnimationOptions,
|
|
|
|
|
-// TimingFunction,
|
|
|
|
|
-// TimingFunctions
|
|
|
|
|
-// } from './lib/draw-controllers/index';
|
|
|
|
|
-
|
|
|
|
|
// ============================================================================
|
|
// ============================================================================
|
|
|
// React Chart Components (Story 016.009)
|
|
// React Chart Components (Story 016.009)
|
|
|
// ============================================================================
|
|
// ============================================================================
|
|
|
|
|
|
|
|
-// export {
|
|
|
|
|
-// // BaseChart component
|
|
|
|
|
-// BaseChart,
|
|
|
|
|
-// BaseChartDefault,
|
|
|
|
|
-// // BarChart component (横向柱状图)
|
|
|
|
|
-// BarChart,
|
|
|
|
|
-// BarChartDefault,
|
|
|
|
|
-// // ColumnChart component
|
|
|
|
|
-// ColumnChart,
|
|
|
|
|
-// ColumnChartDefault,
|
|
|
|
|
-// // LineChart component
|
|
|
|
|
-// LineChart,
|
|
|
|
|
-// LineChartDefault,
|
|
|
|
|
-// // CandleChart component
|
|
|
|
|
-// CandleChart,
|
|
|
|
|
-// CandleChartDefault,
|
|
|
|
|
-// // PieChart component
|
|
|
|
|
-// PieChart,
|
|
|
|
|
-// PieChartDefault,
|
|
|
|
|
-// // RadarChart component
|
|
|
|
|
-// RadarChart,
|
|
|
|
|
-// RadarChartDefault
|
|
|
|
|
-// } from './components/index';
|
|
|
|
|
-
|
|
|
|
|
-// export type {
|
|
|
|
|
-// // BaseChart types
|
|
|
|
|
-// BaseChartProps,
|
|
|
|
|
-// // BarChart types
|
|
|
|
|
-// BarChartProps,
|
|
|
|
|
-// BarType,
|
|
|
|
|
-// // ColumnChart types
|
|
|
|
|
-// ColumnChartProps,
|
|
|
|
|
-// ColumnType,
|
|
|
|
|
-// // LineChart types
|
|
|
|
|
-// LineChartProps,
|
|
|
|
|
-// DataPointShape,
|
|
|
|
|
-// // CandleChart types
|
|
|
|
|
-// CandleChartProps,
|
|
|
|
|
-// // PieChart types
|
|
|
|
|
-// PieChartProps,
|
|
|
|
|
-// PieChartType,
|
|
|
|
|
-// // RadarChart types
|
|
|
|
|
-// RadarChartProps
|
|
|
|
|
-// } from './components/index';
|
|
|
|
|
|
|
+export {
|
|
|
|
|
+ // BaseChart component
|
|
|
|
|
+ BaseChart,
|
|
|
|
|
+ // BarChart component (横向柱状图)
|
|
|
|
|
+ BarChart,
|
|
|
|
|
+ // ColumnChart component
|
|
|
|
|
+ ColumnChart,
|
|
|
|
|
+ // LineChart component
|
|
|
|
|
+ LineChart,
|
|
|
|
|
+ // PieChart component
|
|
|
|
|
+ PieChart,
|
|
|
|
|
+ // RingChart component
|
|
|
|
|
+ RingChart
|
|
|
|
|
+} from './components/index';
|
|
|
|
|
+
|
|
|
|
|
+export type {
|
|
|
|
|
+ // BaseChart types
|
|
|
|
|
+ BaseChartProps,
|
|
|
|
|
+ // BarChart types
|
|
|
|
|
+ BarChartProps,
|
|
|
|
|
+ // ColumnChart types
|
|
|
|
|
+ ColumnChartProps,
|
|
|
|
|
+ // LineChart types
|
|
|
|
|
+ LineChartProps,
|
|
|
|
|
+ // PieChart types
|
|
|
|
|
+ PieChartProps,
|
|
|
|
|
+ // RingChart types
|
|
|
|
|
+ RingChartProps
|
|
|
|
|
+} from './components/index';
|