|
@@ -1,225 +1,225 @@
|
|
|
-// Export modularized config and utility functions with type definitions
|
|
|
|
|
-export {
|
|
|
|
|
- config,
|
|
|
|
|
- assign,
|
|
|
|
|
- util
|
|
|
|
|
-} from './lib/config';
|
|
|
|
|
|
|
+// // Export modularized config and utility functions with type definitions
|
|
|
|
|
+// export {
|
|
|
|
|
+// config,
|
|
|
|
|
+// assign,
|
|
|
|
|
+// util
|
|
|
|
|
+// } from './lib/config';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- hexToRgb
|
|
|
|
|
-} from './lib/utils/color';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// hexToRgb
|
|
|
|
|
+// } from './lib/utils/color';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- findRange,
|
|
|
|
|
- calCandleMA
|
|
|
|
|
-} from './lib/utils/math';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// findRange,
|
|
|
|
|
+// calCandleMA
|
|
|
|
|
+// } from './lib/utils/math';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- convertCoordinateOrigin,
|
|
|
|
|
- isInAngleRange,
|
|
|
|
|
- calValidDistance
|
|
|
|
|
-} from './lib/utils/coordinate';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// convertCoordinateOrigin,
|
|
|
|
|
+// isInAngleRange,
|
|
|
|
|
+// calValidDistance
|
|
|
|
|
+// } from './lib/utils/coordinate';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- measureText
|
|
|
|
|
-} from './lib/utils/text';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// measureText
|
|
|
|
|
+// } from './lib/utils/text';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- avoidCollision,
|
|
|
|
|
- isCollision
|
|
|
|
|
-} from './lib/utils/collision';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// avoidCollision,
|
|
|
|
|
+// isCollision
|
|
|
|
|
+// } from './lib/utils/collision';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- getH5Offset,
|
|
|
|
|
- createCurveControlPoints,
|
|
|
|
|
- getTouches
|
|
|
|
|
-} from './lib/utils/misc';
|
|
|
|
|
|
|
+// export {
|
|
|
|
|
+// getH5Offset,
|
|
|
|
|
+// createCurveControlPoints,
|
|
|
|
|
+// getTouches
|
|
|
|
|
+// } from './lib/utils/misc';
|
|
|
|
|
|
|
|
-// Export core chart classes
|
|
|
|
|
-export {
|
|
|
|
|
- uCharts,
|
|
|
|
|
- uChartsEvent
|
|
|
|
|
-} from './lib/charts/index';
|
|
|
|
|
|
|
+// // Export core chart classes
|
|
|
|
|
+// export {
|
|
|
|
|
+// uCharts,
|
|
|
|
|
+// uChartsEvent
|
|
|
|
|
+// } from './lib/charts/index';
|
|
|
|
|
|
|
|
-// Default export for backward compatibility
|
|
|
|
|
-export { default } 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';
|
|
|
|
|
|
|
+// // 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 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 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 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 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 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 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 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 type {
|
|
|
|
|
+// LegendData,
|
|
|
|
|
+// PieData,
|
|
|
|
|
+// RadarData
|
|
|
|
|
+// } from './lib/helper-functions/index';
|
|
|
|
|
|
|
|
-// Export draw controllers (core drawing control functions)
|
|
|
|
|
-export {
|
|
|
|
|
- drawCharts
|
|
|
|
|
-} from './lib/draw-controllers/index';
|
|
|
|
|
|
|
+// // Export draw controllers (core drawing control functions)
|
|
|
|
|
+// export {
|
|
|
|
|
+// drawCharts
|
|
|
|
|
+// } from './lib/draw-controllers/index';
|
|
|
|
|
|
|
|
-export {
|
|
|
|
|
- Animation,
|
|
|
|
|
- AnimationFunction
|
|
|
|
|
-} 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';
|
|
|
|
|
|
|
+// export type {
|
|
|
|
|
+// DrawChartsContext,
|
|
|
|
|
+// DrawChartsFunction,
|
|
|
|
|
+// AnimationOptions,
|
|
|
|
|
+// TimingFunction,
|
|
|
|
|
+// TimingFunctions
|
|
|
|
|
+// } from './lib/draw-controllers/index';
|
|
|
|
|
|
|
|
// ============================================================================
|
|
// ============================================================================
|
|
|
// React Chart Components (Story 016.009)
|
|
// React Chart Components (Story 016.009)
|