@visactor/react-vchart 0.10.0-alpha.3 → 0.11.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/VChart.d.ts +1 -3
- package/cjs/VChart.js +2 -2
- package/cjs/VChart.js.map +1 -1
- package/cjs/charts/AreaChart.d.ts +1 -1
- package/cjs/charts/AreaChart.js +3 -9
- package/cjs/charts/AreaChart.js.map +1 -1
- package/cjs/charts/Bar3dChart.d.ts +10 -0
- package/cjs/charts/Bar3dChart.js +13 -0
- package/cjs/charts/Bar3dChart.js.map +1 -0
- package/cjs/charts/BarChart.d.ts +1 -1
- package/cjs/charts/BarChart.js +3 -9
- package/cjs/charts/BarChart.js.map +1 -1
- package/cjs/charts/BaseChart.d.ts +5 -4
- package/cjs/charts/BaseChart.js +27 -16
- package/cjs/charts/BaseChart.js.map +1 -1
- package/cjs/charts/BoxPlotChart.d.ts +1 -1
- package/cjs/charts/BoxPlotChart.js +3 -9
- package/cjs/charts/BoxPlotChart.js.map +1 -1
- package/cjs/charts/CirclePackingChart.d.ts +10 -0
- package/cjs/charts/CirclePackingChart.js +13 -0
- package/cjs/charts/CirclePackingChart.js.map +1 -0
- package/cjs/charts/CircularProgressChart.d.ts +1 -1
- package/cjs/charts/CircularProgressChart.js +3 -9
- package/cjs/charts/CircularProgressChart.js.map +1 -1
- package/cjs/charts/CommonChart.d.ts +1 -1
- package/cjs/charts/CommonChart.js +3 -9
- package/cjs/charts/CommonChart.js.map +1 -1
- package/cjs/charts/CorrelationChart.d.ts +10 -0
- package/cjs/charts/CorrelationChart.js +13 -0
- package/cjs/charts/CorrelationChart.js.map +1 -0
- package/cjs/charts/Funnel3dChart.d.ts +10 -0
- package/cjs/charts/Funnel3dChart.js +13 -0
- package/cjs/charts/Funnel3dChart.js.map +1 -0
- package/cjs/charts/FunnelChart.d.ts +1 -1
- package/cjs/charts/FunnelChart.js +3 -9
- package/cjs/charts/FunnelChart.js.map +1 -1
- package/cjs/charts/GaugeChart.d.ts +10 -0
- package/cjs/charts/GaugeChart.js +13 -0
- package/cjs/charts/GaugeChart.js.map +1 -0
- package/cjs/charts/HeatmapChart.d.ts +10 -0
- package/cjs/charts/HeatmapChart.js +13 -0
- package/cjs/charts/HeatmapChart.js.map +1 -0
- package/cjs/charts/Histogram3dChart.d.ts +10 -0
- package/cjs/charts/Histogram3dChart.js +13 -0
- package/cjs/charts/Histogram3dChart.js.map +1 -0
- package/cjs/charts/HistogramChart.d.ts +1 -1
- package/cjs/charts/HistogramChart.js +3 -10
- package/cjs/charts/HistogramChart.js.map +1 -1
- package/cjs/charts/LineChart.d.ts +1 -1
- package/cjs/charts/LineChart.js +3 -9
- package/cjs/charts/LineChart.js.map +1 -1
- package/cjs/charts/LinearProgressChart.d.ts +1 -1
- package/cjs/charts/LinearProgressChart.js +3 -9
- package/cjs/charts/LinearProgressChart.js.map +1 -1
- package/cjs/charts/LiquidChart.d.ts +10 -0
- package/cjs/charts/LiquidChart.js +13 -0
- package/cjs/charts/LiquidChart.js.map +1 -0
- package/cjs/charts/MapChart.d.ts +1 -1
- package/cjs/charts/MapChart.js +3 -9
- package/cjs/charts/MapChart.js.map +1 -1
- package/cjs/charts/Pie3dChart.d.ts +10 -0
- package/cjs/charts/Pie3dChart.js +13 -0
- package/cjs/charts/Pie3dChart.js.map +1 -0
- package/cjs/charts/PieChart.d.ts +1 -1
- package/cjs/charts/PieChart.js +3 -9
- package/cjs/charts/PieChart.js.map +1 -1
- package/cjs/charts/RadarChart.d.ts +1 -1
- package/cjs/charts/RadarChart.js +3 -9
- package/cjs/charts/RadarChart.js.map +1 -1
- package/cjs/charts/RangeColumn3dChart.d.ts +10 -0
- package/cjs/charts/RangeColumn3dChart.js +13 -0
- package/cjs/charts/RangeColumn3dChart.js.map +1 -0
- package/cjs/charts/RangeColumnChart.d.ts +1 -1
- package/cjs/charts/RangeColumnChart.js +3 -9
- package/cjs/charts/RangeColumnChart.js.map +1 -1
- package/cjs/charts/RoseChart.d.ts +1 -1
- package/cjs/charts/RoseChart.js +4 -9
- package/cjs/charts/RoseChart.js.map +1 -1
- package/cjs/charts/SankeyChart.d.ts +10 -0
- package/cjs/charts/SankeyChart.js +13 -0
- package/cjs/charts/SankeyChart.js.map +1 -0
- package/cjs/charts/ScatterChart.d.ts +1 -1
- package/cjs/charts/ScatterChart.js +3 -9
- package/cjs/charts/ScatterChart.js.map +1 -1
- package/cjs/charts/SequenceChart.d.ts +1 -1
- package/cjs/charts/SequenceChart.js +3 -9
- package/cjs/charts/SequenceChart.js.map +1 -1
- package/cjs/charts/SunburstChart.d.ts +10 -0
- package/cjs/charts/SunburstChart.js +13 -0
- package/cjs/charts/SunburstChart.js.map +1 -0
- package/cjs/charts/TreemapChart.d.ts +10 -0
- package/cjs/charts/TreemapChart.js +13 -0
- package/cjs/charts/TreemapChart.js.map +1 -0
- package/cjs/charts/WaterfallChart.d.ts +10 -0
- package/cjs/charts/WaterfallChart.js +12 -0
- package/cjs/charts/WaterfallChart.js.map +1 -0
- package/cjs/charts/WordCloud3dChart.d.ts +10 -0
- package/cjs/charts/WordCloud3dChart.js +13 -0
- package/cjs/charts/WordCloud3dChart.js.map +1 -0
- package/cjs/charts/WordCloudChart.d.ts +1 -1
- package/cjs/charts/WordCloudChart.js +3 -9
- package/cjs/charts/WordCloudChart.js.map +1 -1
- package/cjs/charts/index.d.ts +26 -10
- package/cjs/charts/index.js +15 -7
- package/cjs/charts/index.js.map +1 -1
- package/cjs/charts/register.d.ts +3 -0
- package/cjs/charts/register.js +12 -0
- package/cjs/charts/register.js.map +1 -0
- package/cjs/components/BaseComponent.d.ts +1 -1
- package/cjs/components/BaseComponent.js +3 -2
- package/cjs/components/BaseComponent.js.map +1 -1
- package/cjs/components/Brush.js +2 -2
- package/cjs/components/Brush.js.map +1 -1
- package/cjs/components/ContinuousLegend.d.ts +5 -0
- package/cjs/components/ContinuousLegend.js +10 -0
- package/cjs/components/ContinuousLegend.js.map +1 -0
- package/cjs/components/DataZoom.js +2 -2
- package/cjs/components/DataZoom.js.map +1 -1
- package/cjs/components/Indicator.js +2 -2
- package/cjs/components/Indicator.js.map +1 -1
- package/cjs/components/Legend.js +2 -2
- package/cjs/components/Legend.js.map +1 -1
- package/cjs/components/Mark.js +2 -2
- package/cjs/components/Mark.js.map +1 -1
- package/cjs/components/MarkArea.js +2 -2
- package/cjs/components/MarkArea.js.map +1 -1
- package/cjs/components/MarkLine.js +2 -2
- package/cjs/components/MarkLine.js.map +1 -1
- package/cjs/components/MarkPoint.js +2 -2
- package/cjs/components/MarkPoint.js.map +1 -1
- package/cjs/components/Player.js +2 -2
- package/cjs/components/Player.js.map +1 -1
- package/cjs/components/Region.d.ts +1 -2
- package/cjs/components/Region.js.map +1 -1
- package/cjs/components/ScrollBar.js +2 -2
- package/cjs/components/ScrollBar.js.map +1 -1
- package/cjs/components/Title.js +2 -2
- package/cjs/components/Title.js.map +1 -1
- package/cjs/components/index.d.ts +2 -1
- package/cjs/components/index.js +2 -2
- package/cjs/components/index.js.map +1 -1
- package/cjs/components/tooltip/CanvasTooltip.d.ts +2 -0
- package/cjs/components/tooltip/CanvasTooltip.js +10 -0
- package/cjs/components/tooltip/CanvasTooltip.js.map +1 -0
- package/cjs/components/tooltip/Tooltip.d.ts +2 -0
- package/cjs/components/tooltip/Tooltip.js +10 -0
- package/cjs/components/tooltip/Tooltip.js.map +1 -0
- package/cjs/components/tooltip/constant.d.ts +1 -0
- package/cjs/components/tooltip/constant.js +10 -0
- package/cjs/components/tooltip/constant.js.map +1 -0
- package/cjs/components/tooltip/index.d.ts +4 -0
- package/cjs/components/tooltip/index.js +22 -0
- package/cjs/components/tooltip/index.js.map +1 -0
- package/cjs/components/tooltip/interface.d.ts +14 -0
- package/cjs/components/tooltip/interface.js +6 -0
- package/cjs/components/tooltip/interface.js.map +1 -0
- package/cjs/components/tooltip/util.d.ts +5 -0
- package/cjs/components/tooltip/util.js +47 -0
- package/cjs/components/tooltip/util.js.map +1 -0
- package/cjs/containers/withContainer.d.ts +1 -1
- package/cjs/containers/withContainer.js.map +1 -1
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +12 -3
- package/cjs/index.js.map +1 -1
- package/cjs/series/Area.js +2 -2
- package/cjs/series/Area.js.map +1 -1
- package/cjs/series/Bar.js +3 -3
- package/cjs/series/Bar.js.map +1 -1
- package/cjs/series/Bar3d.d.ts +7 -0
- package/cjs/series/Bar3d.js +10 -0
- package/cjs/series/Bar3d.js.map +1 -0
- package/cjs/series/BaseSeries.d.ts +1 -1
- package/cjs/series/BaseSeries.js +11 -9
- package/cjs/series/BaseSeries.js.map +1 -1
- package/cjs/series/BoxPlot.js +3 -3
- package/cjs/series/BoxPlot.js.map +1 -1
- package/cjs/series/CirclePacking.d.ts +7 -0
- package/cjs/series/CirclePacking.js +10 -0
- package/cjs/series/CirclePacking.js.map +1 -0
- package/cjs/series/CircularProgress.js +3 -3
- package/cjs/series/CircularProgress.js.map +1 -1
- package/cjs/series/Correlation.d.ts +7 -0
- package/cjs/series/Correlation.js +10 -0
- package/cjs/series/Correlation.js.map +1 -0
- package/cjs/series/Dot.js +3 -3
- package/cjs/series/Dot.js.map +1 -1
- package/cjs/series/Funnel.js +3 -3
- package/cjs/series/Funnel.js.map +1 -1
- package/cjs/series/Funnel3d.d.ts +7 -0
- package/cjs/series/Funnel3d.js +10 -0
- package/cjs/series/Funnel3d.js.map +1 -0
- package/cjs/series/Gauge.d.ts +7 -0
- package/cjs/series/Gauge.js +10 -0
- package/cjs/series/Gauge.js.map +1 -0
- package/cjs/series/Heatmap.d.ts +7 -0
- package/cjs/series/Heatmap.js +10 -0
- package/cjs/series/Heatmap.js.map +1 -0
- package/cjs/series/Line.js +3 -3
- package/cjs/series/Line.js.map +1 -1
- package/cjs/series/LinearProgress.js +3 -2
- package/cjs/series/LinearProgress.js.map +1 -1
- package/cjs/series/Link.js +3 -3
- package/cjs/series/Link.js.map +1 -1
- package/cjs/series/Liquid.d.ts +7 -0
- package/cjs/series/Liquid.js +10 -0
- package/cjs/series/Liquid.js.map +1 -0
- package/cjs/series/Map.js +3 -3
- package/cjs/series/Map.js.map +1 -1
- package/cjs/series/Pie.js +3 -3
- package/cjs/series/Pie.js.map +1 -1
- package/cjs/series/Pie3d.d.ts +7 -0
- package/cjs/series/Pie3d.js +10 -0
- package/cjs/series/Pie3d.js.map +1 -0
- package/cjs/series/Radar.js +3 -3
- package/cjs/series/Radar.js.map +1 -1
- package/cjs/series/RangeColumn.js +3 -3
- package/cjs/series/RangeColumn.js.map +1 -1
- package/cjs/series/RangeColumn3d.d.ts +7 -0
- package/cjs/series/RangeColumn3d.js +10 -0
- package/cjs/series/RangeColumn3d.js.map +1 -0
- package/cjs/series/Rose.js +3 -3
- package/cjs/series/Rose.js.map +1 -1
- package/cjs/series/Sankey.d.ts +7 -0
- package/cjs/series/Sankey.js +10 -0
- package/cjs/series/Sankey.js.map +1 -0
- package/cjs/series/Scatter.js +3 -3
- package/cjs/series/Scatter.js.map +1 -1
- package/cjs/series/Sunburst.d.ts +7 -0
- package/cjs/series/Sunburst.js +10 -0
- package/cjs/series/Sunburst.js.map +1 -0
- package/cjs/series/Treemap.d.ts +7 -0
- package/cjs/series/Treemap.js +10 -0
- package/cjs/series/Treemap.js.map +1 -0
- package/cjs/series/Waterfall.d.ts +7 -0
- package/cjs/series/Waterfall.js +10 -0
- package/cjs/series/Waterfall.js.map +1 -0
- package/cjs/series/WordCloud.js +2 -2
- package/cjs/series/WordCloud.js.map +1 -1
- package/cjs/series/WordCloud3d.d.ts +7 -0
- package/cjs/series/WordCloud3d.js +10 -0
- package/cjs/series/WordCloud3d.js.map +1 -0
- package/cjs/series/index.d.ts +24 -10
- package/cjs/series/index.js +16 -9
- package/cjs/series/index.js.map +1 -1
- package/cjs/util.d.ts +0 -1
- package/cjs/util.js +2 -10
- package/cjs/util.js.map +1 -1
- package/esm/VChart.d.ts +1 -3
- package/esm/VChart.js +1 -3
- package/esm/VChart.js.map +1 -1
- package/esm/charts/AreaChart.d.ts +1 -1
- package/esm/charts/AreaChart.js +4 -2
- package/esm/charts/AreaChart.js.map +1 -1
- package/esm/charts/Bar3dChart.d.ts +10 -0
- package/esm/charts/Bar3dChart.js +11 -0
- package/esm/charts/Bar3dChart.js.map +1 -0
- package/esm/charts/BarChart.d.ts +1 -1
- package/esm/charts/BarChart.js +4 -2
- package/esm/charts/BarChart.js.map +1 -1
- package/esm/charts/BaseChart.d.ts +5 -4
- package/esm/charts/BaseChart.js +29 -17
- package/esm/charts/BaseChart.js.map +1 -1
- package/esm/charts/BoxPlotChart.d.ts +1 -1
- package/esm/charts/BoxPlotChart.js +4 -2
- package/esm/charts/BoxPlotChart.js.map +1 -1
- package/esm/charts/CirclePackingChart.d.ts +10 -0
- package/esm/charts/CirclePackingChart.js +11 -0
- package/esm/charts/CirclePackingChart.js.map +1 -0
- package/esm/charts/CircularProgressChart.d.ts +1 -1
- package/esm/charts/CircularProgressChart.js +4 -2
- package/esm/charts/CircularProgressChart.js.map +1 -1
- package/esm/charts/CommonChart.d.ts +1 -1
- package/esm/charts/CommonChart.js +2 -2
- package/esm/charts/CommonChart.js.map +1 -1
- package/esm/charts/CorrelationChart.d.ts +10 -0
- package/esm/charts/CorrelationChart.js +11 -0
- package/esm/charts/CorrelationChart.js.map +1 -0
- package/esm/charts/Funnel3dChart.d.ts +10 -0
- package/esm/charts/Funnel3dChart.js +11 -0
- package/esm/charts/Funnel3dChart.js.map +1 -0
- package/esm/charts/FunnelChart.d.ts +1 -1
- package/esm/charts/FunnelChart.js +4 -2
- package/esm/charts/FunnelChart.js.map +1 -1
- package/esm/charts/GaugeChart.d.ts +10 -0
- package/esm/charts/GaugeChart.js +11 -0
- package/esm/charts/GaugeChart.js.map +1 -0
- package/esm/charts/HeatmapChart.d.ts +10 -0
- package/esm/charts/HeatmapChart.js +11 -0
- package/esm/charts/HeatmapChart.js.map +1 -0
- package/esm/charts/Histogram3dChart.d.ts +10 -0
- package/esm/charts/Histogram3dChart.js +11 -0
- package/esm/charts/Histogram3dChart.js.map +1 -0
- package/esm/charts/HistogramChart.d.ts +1 -1
- package/esm/charts/HistogramChart.js +4 -3
- package/esm/charts/HistogramChart.js.map +1 -1
- package/esm/charts/LineChart.d.ts +1 -1
- package/esm/charts/LineChart.js +4 -2
- package/esm/charts/LineChart.js.map +1 -1
- package/esm/charts/LinearProgressChart.d.ts +1 -1
- package/esm/charts/LinearProgressChart.js +4 -2
- package/esm/charts/LinearProgressChart.js.map +1 -1
- package/esm/charts/LiquidChart.d.ts +10 -0
- package/esm/charts/LiquidChart.js +11 -0
- package/esm/charts/LiquidChart.js.map +1 -0
- package/esm/charts/MapChart.d.ts +1 -1
- package/esm/charts/MapChart.js +4 -2
- package/esm/charts/MapChart.js.map +1 -1
- package/esm/charts/Pie3dChart.d.ts +10 -0
- package/esm/charts/Pie3dChart.js +11 -0
- package/esm/charts/Pie3dChart.js.map +1 -0
- package/esm/charts/PieChart.d.ts +1 -1
- package/esm/charts/PieChart.js +4 -2
- package/esm/charts/PieChart.js.map +1 -1
- package/esm/charts/RadarChart.d.ts +1 -1
- package/esm/charts/RadarChart.js +4 -2
- package/esm/charts/RadarChart.js.map +1 -1
- package/esm/charts/RangeColumn3dChart.d.ts +10 -0
- package/esm/charts/RangeColumn3dChart.js +11 -0
- package/esm/charts/RangeColumn3dChart.js.map +1 -0
- package/esm/charts/RangeColumnChart.d.ts +1 -1
- package/esm/charts/RangeColumnChart.js +4 -2
- package/esm/charts/RangeColumnChart.js.map +1 -1
- package/esm/charts/RoseChart.d.ts +1 -1
- package/esm/charts/RoseChart.js +5 -2
- package/esm/charts/RoseChart.js.map +1 -1
- package/esm/charts/SankeyChart.d.ts +10 -0
- package/esm/charts/SankeyChart.js +11 -0
- package/esm/charts/SankeyChart.js.map +1 -0
- package/esm/charts/ScatterChart.d.ts +1 -1
- package/esm/charts/ScatterChart.js +4 -2
- package/esm/charts/ScatterChart.js.map +1 -1
- package/esm/charts/SequenceChart.d.ts +1 -1
- package/esm/charts/SequenceChart.js +4 -2
- package/esm/charts/SequenceChart.js.map +1 -1
- package/esm/charts/SunburstChart.d.ts +10 -0
- package/esm/charts/SunburstChart.js +11 -0
- package/esm/charts/SunburstChart.js.map +1 -0
- package/esm/charts/TreemapChart.d.ts +10 -0
- package/esm/charts/TreemapChart.js +11 -0
- package/esm/charts/TreemapChart.js.map +1 -0
- package/esm/charts/WaterfallChart.d.ts +10 -0
- package/esm/charts/WaterfallChart.js +10 -0
- package/esm/charts/WaterfallChart.js.map +1 -0
- package/esm/charts/WordCloud3dChart.d.ts +10 -0
- package/esm/charts/WordCloud3dChart.js +11 -0
- package/esm/charts/WordCloud3dChart.js.map +1 -0
- package/esm/charts/WordCloudChart.d.ts +1 -1
- package/esm/charts/WordCloudChart.js +4 -2
- package/esm/charts/WordCloudChart.js.map +1 -1
- package/esm/charts/index.d.ts +26 -10
- package/esm/charts/index.js +43 -11
- package/esm/charts/index.js.map +1 -1
- package/esm/charts/register.d.ts +3 -0
- package/esm/charts/register.js +8 -0
- package/esm/charts/register.js.map +1 -0
- package/esm/components/BaseComponent.d.ts +1 -1
- package/esm/components/BaseComponent.js +5 -2
- package/esm/components/BaseComponent.js.map +1 -1
- package/esm/components/Brush.js +3 -1
- package/esm/components/Brush.js.map +1 -1
- package/esm/components/ContinuousLegend.d.ts +5 -0
- package/esm/components/ContinuousLegend.js +8 -0
- package/esm/components/ContinuousLegend.js.map +1 -0
- package/esm/components/DataZoom.js +3 -1
- package/esm/components/DataZoom.js.map +1 -1
- package/esm/components/Indicator.js +3 -1
- package/esm/components/Indicator.js.map +1 -1
- package/esm/components/Legend.js +3 -1
- package/esm/components/Legend.js.map +1 -1
- package/esm/components/Mark.js +3 -1
- package/esm/components/Mark.js.map +1 -1
- package/esm/components/MarkArea.js +3 -1
- package/esm/components/MarkArea.js.map +1 -1
- package/esm/components/MarkLine.js +3 -1
- package/esm/components/MarkLine.js.map +1 -1
- package/esm/components/MarkPoint.js +3 -1
- package/esm/components/MarkPoint.js.map +1 -1
- package/esm/components/Player.js +3 -1
- package/esm/components/Player.js.map +1 -1
- package/esm/components/Region.d.ts +1 -2
- package/esm/components/Region.js.map +1 -1
- package/esm/components/ScrollBar.js +3 -1
- package/esm/components/ScrollBar.js.map +1 -1
- package/esm/components/Title.js +3 -1
- package/esm/components/Title.js.map +1 -1
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.js +3 -1
- package/esm/components/index.js.map +1 -1
- package/esm/components/tooltip/CanvasTooltip.d.ts +2 -0
- package/esm/components/tooltip/CanvasTooltip.js +6 -0
- package/esm/components/tooltip/CanvasTooltip.js.map +1 -0
- package/esm/components/tooltip/Tooltip.d.ts +2 -0
- package/esm/components/tooltip/Tooltip.js +6 -0
- package/esm/components/tooltip/Tooltip.js.map +1 -0
- package/esm/components/tooltip/constant.d.ts +1 -0
- package/esm/components/tooltip/constant.js +4 -0
- package/esm/components/tooltip/constant.js.map +1 -0
- package/esm/components/tooltip/index.d.ts +4 -0
- package/esm/components/tooltip/index.js +8 -0
- package/esm/components/tooltip/index.js.map +1 -0
- package/esm/components/tooltip/interface.d.ts +14 -0
- package/esm/components/tooltip/interface.js +2 -0
- package/esm/components/tooltip/interface.js.map +1 -0
- package/esm/components/tooltip/util.d.ts +5 -0
- package/esm/components/tooltip/util.js +40 -0
- package/esm/components/tooltip/util.js.map +1 -0
- package/esm/containers/withContainer.d.ts +1 -1
- package/esm/containers/withContainer.js.map +1 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +3 -1
- package/esm/index.js.map +1 -1
- package/esm/series/Area.js +3 -1
- package/esm/series/Area.js.map +1 -1
- package/esm/series/Bar.js +4 -2
- package/esm/series/Bar.js.map +1 -1
- package/esm/series/Bar3d.d.ts +7 -0
- package/esm/series/Bar3d.js +6 -0
- package/esm/series/Bar3d.js.map +1 -0
- package/esm/series/BaseSeries.d.ts +1 -1
- package/esm/series/BaseSeries.js +13 -9
- package/esm/series/BaseSeries.js.map +1 -1
- package/esm/series/BoxPlot.js +4 -2
- package/esm/series/BoxPlot.js.map +1 -1
- package/esm/series/CirclePacking.d.ts +7 -0
- package/esm/series/CirclePacking.js +6 -0
- package/esm/series/CirclePacking.js.map +1 -0
- package/esm/series/CircularProgress.js +4 -2
- package/esm/series/CircularProgress.js.map +1 -1
- package/esm/series/Correlation.d.ts +7 -0
- package/esm/series/Correlation.js +6 -0
- package/esm/series/Correlation.js.map +1 -0
- package/esm/series/Dot.js +4 -2
- package/esm/series/Dot.js.map +1 -1
- package/esm/series/Funnel.js +4 -2
- package/esm/series/Funnel.js.map +1 -1
- package/esm/series/Funnel3d.d.ts +7 -0
- package/esm/series/Funnel3d.js +6 -0
- package/esm/series/Funnel3d.js.map +1 -0
- package/esm/series/Gauge.d.ts +7 -0
- package/esm/series/Gauge.js +6 -0
- package/esm/series/Gauge.js.map +1 -0
- package/esm/series/Heatmap.d.ts +7 -0
- package/esm/series/Heatmap.js +6 -0
- package/esm/series/Heatmap.js.map +1 -0
- package/esm/series/Line.js +4 -2
- package/esm/series/Line.js.map +1 -1
- package/esm/series/LinearProgress.js +4 -1
- package/esm/series/LinearProgress.js.map +1 -1
- package/esm/series/Link.js +4 -2
- package/esm/series/Link.js.map +1 -1
- package/esm/series/Liquid.d.ts +7 -0
- package/esm/series/Liquid.js +6 -0
- package/esm/series/Liquid.js.map +1 -0
- package/esm/series/Map.js +4 -2
- package/esm/series/Map.js.map +1 -1
- package/esm/series/Pie.js +4 -2
- package/esm/series/Pie.js.map +1 -1
- package/esm/series/Pie3d.d.ts +7 -0
- package/esm/series/Pie3d.js +6 -0
- package/esm/series/Pie3d.js.map +1 -0
- package/esm/series/Radar.js +4 -2
- package/esm/series/Radar.js.map +1 -1
- package/esm/series/RangeColumn.js +4 -2
- package/esm/series/RangeColumn.js.map +1 -1
- package/esm/series/RangeColumn3d.d.ts +7 -0
- package/esm/series/RangeColumn3d.js +6 -0
- package/esm/series/RangeColumn3d.js.map +1 -0
- package/esm/series/Rose.js +4 -2
- package/esm/series/Rose.js.map +1 -1
- package/esm/series/Sankey.d.ts +7 -0
- package/esm/series/Sankey.js +6 -0
- package/esm/series/Sankey.js.map +1 -0
- package/esm/series/Scatter.js +4 -2
- package/esm/series/Scatter.js.map +1 -1
- package/esm/series/Sunburst.d.ts +7 -0
- package/esm/series/Sunburst.js +6 -0
- package/esm/series/Sunburst.js.map +1 -0
- package/esm/series/Treemap.d.ts +7 -0
- package/esm/series/Treemap.js +6 -0
- package/esm/series/Treemap.js.map +1 -0
- package/esm/series/Waterfall.d.ts +7 -0
- package/esm/series/Waterfall.js +6 -0
- package/esm/series/Waterfall.js.map +1 -0
- package/esm/series/WordCloud.js +3 -1
- package/esm/series/WordCloud.js.map +1 -1
- package/esm/series/WordCloud3d.d.ts +7 -0
- package/esm/series/WordCloud3d.js +6 -0
- package/esm/series/WordCloud3d.js.map +1 -0
- package/esm/series/index.d.ts +24 -10
- package/esm/series/index.js +40 -12
- package/esm/series/index.js.map +1 -1
- package/esm/util.d.ts +0 -1
- package/esm/util.js +0 -4
- package/esm/util.js.map +1 -1
- package/package.json +6 -6
- package/cjs/components/Tooltip.d.ts +0 -4
- package/cjs/components/Tooltip.js +0 -10
- package/cjs/components/Tooltip.js.map +0 -1
- package/esm/components/Tooltip.d.ts +0 -4
- package/esm/components/Tooltip.js +0 -4
- package/esm/components/Tooltip.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/MarkPoint.tsx"],"names":[],"mappings":";;;AAAA,mDAAsE;
|
|
1
|
+
{"version":3,"sources":["../src/components/MarkPoint.tsx"],"names":[],"mappings":";;;AAAA,mDAAsE;AAEtE,6CAAqD;AAIxC,QAAA,SAAS,GAAG,IAAA,+BAAe,EAAiB,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,0BAAiB,CAAC,CAAC,CAAC","file":"MarkPoint.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IMarkPointSpec } from '@visactor/vchart';\nimport { registerMarkPoint } from '@visactor/vchart';\n\nexport type MarkPointProps = IMarkPointSpec & BaseComponentProps;\n\nexport const MarkPoint = createComponent<MarkPointProps>('MarkPoint', 'markPoint', null, false, [registerMarkPoint]);\n"]}
|
package/cjs/components/Player.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.Player = void 0;
|
|
6
6
|
|
|
7
|
-
const eventsUtils_1 = require("../eventsUtils"), BaseComponent_1 = require("./BaseComponent");
|
|
7
|
+
const eventsUtils_1 = require("../eventsUtils"), BaseComponent_1 = require("./BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.Player = (0, BaseComponent_1.createComponent)("Player", "player", eventsUtils_1.PLAYER_CUSTOMIZED_EVENTS, !0);
|
|
9
|
+
exports.Player = (0, BaseComponent_1.createComponent)("Player", "player", eventsUtils_1.PLAYER_CUSTOMIZED_EVENTS, !0, [ vchart_1.registerPlayer ]);
|
|
10
10
|
//# sourceMappingURL=Player.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Player.tsx"],"names":[],"mappings":";;;AAAA,gDAA4E;AAC5E,mDAAsE;
|
|
1
|
+
{"version":3,"sources":["../src/components/Player.tsx"],"names":[],"mappings":";;;AAAA,gDAA4E;AAC5E,mDAAsE;AAEtE,6CAAkD;AAIrC,QAAA,MAAM,GAAG,IAAA,+BAAe,EAAc,QAAQ,EAAE,QAAQ,EAAE,sCAAwB,EAAE,IAAI,EAAE;IACrG,uBAAc;CACf,CAAC,CAAC","file":"Player.js","sourcesContent":["import { PLAYER_CUSTOMIZED_EVENTS, PlayerEventProps } from '../eventsUtils';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IPlayerSpec } from '@visactor/vchart';\nimport { registerPlayer } from '@visactor/vchart';\n\nexport type PlayerProps = IPlayerSpec & BaseComponentProps & PlayerEventProps;\n\nexport const Player = createComponent<PlayerProps>('Player', 'player', PLAYER_CUSTOMIZED_EVENTS, true, [\n registerPlayer\n]);\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IRegionSpec } from '@visactor/vchart';
|
|
2
2
|
import { BaseComponentProps } from './BaseComponent';
|
|
3
|
-
export
|
|
4
|
-
}
|
|
3
|
+
export type RegionProps = BaseComponentProps & IRegionSpec;
|
|
5
4
|
export declare const Region: import("react").FC<RegionProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Region.tsx"],"names":[],"mappings":";;;AACA,mDAAsE;
|
|
1
|
+
{"version":3,"sources":["../src/components/Region.tsx"],"names":[],"mappings":";;;AACA,mDAAsE;AAIzD,QAAA,MAAM,GAAG,IAAA,+BAAe,EAAc,QAAQ,EAAE,QAAQ,CAAC,CAAC","file":"Region.js","sourcesContent":["import type { IRegionSpec } from '@visactor/vchart';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\n\nexport type RegionProps = BaseComponentProps & IRegionSpec;\n\nexport const Region = createComponent<RegionProps>('Region', 'region');\n"]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.ScrollBar = void 0;
|
|
6
6
|
|
|
7
|
-
const eventsUtils_1 = require("../eventsUtils"), BaseComponent_1 = require("./BaseComponent");
|
|
7
|
+
const eventsUtils_1 = require("../eventsUtils"), BaseComponent_1 = require("./BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.ScrollBar = (0, BaseComponent_1.createComponent)("ScrollBar", "scrollBar", eventsUtils_1.SCROLLBAR_CUSTOMIZED_EVENTS);
|
|
9
|
+
exports.ScrollBar = (0, BaseComponent_1.createComponent)("ScrollBar", "scrollBar", eventsUtils_1.SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ vchart_1.registerScrollBar ]);
|
|
10
10
|
//# sourceMappingURL=ScrollBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ScrollBar.tsx"],"names":[],"mappings":";;;AAAA,gDAAkF;AAClF,mDAAsE;
|
|
1
|
+
{"version":3,"sources":["../src/components/ScrollBar.tsx"],"names":[],"mappings":";;;AAAA,gDAAkF;AAClF,mDAAsE;AAEtE,6CAAqD;AAIxC,QAAA,SAAS,GAAG,IAAA,+BAAe,EAAiB,WAAW,EAAE,WAAW,EAAE,yCAA2B,EAAE,KAAK,EAAE;IACrH,0BAAiB;CAClB,CAAC,CAAC","file":"ScrollBar.js","sourcesContent":["import { SCROLLBAR_CUSTOMIZED_EVENTS, ScrollBarEventProps } from '../eventsUtils';\nimport { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { IScrollBarSpec } from '@visactor/vchart';\nimport { registerScrollBar } from '@visactor/vchart';\n\nexport type ScrollBarProps = IScrollBarSpec & BaseComponentProps & ScrollBarEventProps;\n\nexport const ScrollBar = createComponent<ScrollBarProps>('ScrollBar', 'scrollBar', SCROLLBAR_CUSTOMIZED_EVENTS, false, [\n registerScrollBar\n]);\n"]}
|
package/cjs/components/Title.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.Title = void 0;
|
|
6
6
|
|
|
7
|
-
const BaseComponent_1 = require("./BaseComponent");
|
|
7
|
+
const BaseComponent_1 = require("./BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.Title = (0, BaseComponent_1.createComponent)("Title", "title", null, !0);
|
|
9
|
+
exports.Title = (0, BaseComponent_1.createComponent)("Title", "title", null, !0, [ vchart_1.registerTitle ]);
|
|
10
10
|
//# sourceMappingURL=Title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Title.tsx"],"names":[],"mappings":";;;AAAA,mDAAsE;
|
|
1
|
+
{"version":3,"sources":["../src/components/Title.tsx"],"names":[],"mappings":";;;AAAA,mDAAsE;AAEtE,6CAAiD;AAIpC,QAAA,KAAK,GAAG,IAAA,+BAAe,EAAa,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAC","file":"Title.js","sourcesContent":["import { BaseComponentProps, createComponent } from './BaseComponent';\nimport type { ITitleSpec } from '@visactor/vchart';\nimport { registerTitle } from '@visactor/vchart';\n\nexport type TitleProps = ITitleSpec & BaseComponentProps;\n\nexport const Title = createComponent<TitleProps>('Title', 'title', null, true, [registerTitle]);\n"]}
|
|
@@ -9,7 +9,8 @@ export * from './MarkLine';
|
|
|
9
9
|
export * from './MarkArea';
|
|
10
10
|
export * from './MarkPoint';
|
|
11
11
|
export * from './ScrollBar';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './tooltip';
|
|
13
13
|
export * from './Player';
|
|
14
14
|
export * from './Indicator';
|
|
15
15
|
export * from './Title';
|
|
16
|
+
export * from './ContinuousLegend';
|
package/cjs/components/index.js
CHANGED
|
@@ -22,7 +22,7 @@ __exportStar(require("./Region"), exports), __exportStar(require("./Legend"), ex
|
|
|
22
22
|
__exportStar(require("./Brush"), exports), __exportStar(require("./Crosshair"), exports),
|
|
23
23
|
__exportStar(require("./DataZoom"), exports), __exportStar(require("./MarkLine"), exports),
|
|
24
24
|
__exportStar(require("./MarkArea"), exports), __exportStar(require("./MarkPoint"), exports),
|
|
25
|
-
__exportStar(require("./ScrollBar"), exports), __exportStar(require("./
|
|
25
|
+
__exportStar(require("./ScrollBar"), exports), __exportStar(require("./tooltip"), exports),
|
|
26
26
|
__exportStar(require("./Player"), exports), __exportStar(require("./Indicator"), exports),
|
|
27
|
-
__exportStar(require("./Title"), exports);
|
|
27
|
+
__exportStar(require("./Title"), exports), __exportStar(require("./ContinuousLegend"), exports);
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB","file":"index.js","sourcesContent":["export * from './Axis';\nexport * from './Mark';\nexport * from './Region';\nexport * from './Legend';\nexport * from './Brush';\nexport * from './Crosshair';\nexport * from './DataZoom';\nexport * from './MarkLine';\nexport * from './MarkArea';\nexport * from './MarkPoint';\nexport * from './ScrollBar';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,qDAAmC","file":"index.js","sourcesContent":["export * from './Axis';\nexport * from './Mark';\nexport * from './Region';\nexport * from './Legend';\nexport * from './Brush';\nexport * from './Crosshair';\nexport * from './DataZoom';\nexport * from './MarkLine';\nexport * from './MarkArea';\nexport * from './MarkPoint';\nexport * from './ScrollBar';\nexport * from './tooltip';\nexport * from './Player';\nexport * from './Indicator';\nexport * from './Title';\nexport * from './ContinuousLegend';\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.CanvasTooltip = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseComponent_1 = require("../BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
|
+
|
|
9
|
+
exports.CanvasTooltip = (0, BaseComponent_1.createComponent)("CanvasTooltip", "tooltip", null, !0, [ vchart_1.registerTooltip, vchart_1.registerCanvasTooltipHandler ]);
|
|
10
|
+
//# sourceMappingURL=CanvasTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":";;;AAAA,oDAAmD;AAEnD,6CAAiF;AAEpE,QAAA,aAAa,GAAG,IAAA,+BAAe,EAAe,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;IACjG,wBAAe;IACf,qCAA4B;CAC7B,CAAC,CAAC","file":"CanvasTooltip.js","sourcesContent":["import { createComponent } from '../BaseComponent';\nimport { TooltipProps } from './interface';\nimport { registerTooltip, registerCanvasTooltipHandler } from '@visactor/vchart';\n\nexport const CanvasTooltip = createComponent<TooltipProps>('CanvasTooltip', 'tooltip', null, true, [\n registerTooltip,\n registerCanvasTooltipHandler\n]);\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Tooltip = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseComponent_1 = require("../BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
|
+
|
|
9
|
+
exports.Tooltip = (0, BaseComponent_1.createComponent)("Tooltip", "tooltip", null, !0, [ vchart_1.registerTooltip, vchart_1.registerDomTooltipHandler ]);
|
|
10
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;AAAA,oDAAmD;AAEnD,6CAA8E;AAEjE,QAAA,OAAO,GAAG,IAAA,+BAAe,EAAe,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE;IACrF,wBAAe;IACf,kCAAyB;CAC1B,CAAC,CAAC","file":"Tooltip.js","sourcesContent":["import { createComponent } from '../BaseComponent';\nimport { TooltipProps } from './interface';\nimport { registerTooltip, registerDomTooltipHandler } from '@visactor/vchart';\n\nexport const Tooltip = createComponent<TooltipProps>('Tooltip', 'tooltip', null, true, [\n registerTooltip,\n registerDomTooltipHandler\n]);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REACT_TOOLTIP_ClASS_NAME: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.REACT_TOOLTIP_ClASS_NAME = void 0;
|
|
6
|
+
|
|
7
|
+
const vchart_1 = require("@visactor/vchart");
|
|
8
|
+
|
|
9
|
+
exports.REACT_TOOLTIP_ClASS_NAME = `${vchart_1.PREFIX}_REACT_TOOLTIP`;
|
|
10
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/constant.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE7B,QAAA,wBAAwB,GAAG,GAAG,eAAM,gBAAgB,CAAC","file":"constant.js","sourcesContent":["import { PREFIX } from '@visactor/vchart';\n\nexport const REACT_TOOLTIP_ClASS_NAME = `${PREFIX}_REACT_TOOLTIP`;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4
|
+
void 0 === k2 && (k2 = k);
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
get: function() {
|
|
9
|
+
return m[k];
|
|
10
|
+
}
|
|
11
|
+
}), Object.defineProperty(o, k2, desc);
|
|
12
|
+
} : function(o, m, k, k2) {
|
|
13
|
+
void 0 === k2 && (k2 = k), o[k2] = m[k];
|
|
14
|
+
}), __exportStar = this && this.__exportStar || function(m, exports) {
|
|
15
|
+
for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), __exportStar(require("./Tooltip"), exports), __exportStar(require("./interface"), exports),
|
|
21
|
+
__exportStar(require("./constant"), exports), __exportStar(require("./CanvasTooltip"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC","file":"index.js","sourcesContent":["export * from './Tooltip';\nexport * from './interface';\nexport * from './constant';\nexport * from './CanvasTooltip';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../BaseComponent';
|
|
3
|
+
import type { ITooltipSpec, ITooltipActual, TooltipHandlerParams } from '@visactor/vchart';
|
|
4
|
+
export type TooltipProps = PropsWithChildren<ITooltipSpec & IReactTooltipProps & BaseComponentProps>;
|
|
5
|
+
export interface ITooltipRenderProps {
|
|
6
|
+
tooltipElement: HTMLElement;
|
|
7
|
+
actualTooltip: ITooltipActual;
|
|
8
|
+
params: TooltipHandlerParams;
|
|
9
|
+
}
|
|
10
|
+
export type TooltipRender = (tooltipElement: HTMLElement, actualTooltip: ITooltipActual, params: TooltipHandlerParams) => ReactNode;
|
|
11
|
+
export interface IReactTooltipProps {
|
|
12
|
+
tooltipRender?: TooltipRender;
|
|
13
|
+
reserveDefaultTooltip?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import { PropsWithChildren, ReactNode } from 'react';\nimport { BaseComponentProps } from '../BaseComponent';\nimport type { ITooltipSpec, ITooltipActual, TooltipHandlerParams } from '@visactor/vchart';\n\nexport type TooltipProps = PropsWithChildren<ITooltipSpec & IReactTooltipProps & BaseComponentProps>;\n\nexport interface ITooltipRenderProps {\n tooltipElement: HTMLElement;\n actualTooltip: ITooltipActual;\n params: TooltipHandlerParams;\n}\n\nexport type TooltipRender = (\n tooltipElement: HTMLElement,\n actualTooltip: ITooltipActual,\n params: TooltipHandlerParams\n) => ReactNode;\n\nexport interface IReactTooltipProps {\n /**\n * tooltip 自定义渲染器\n * @since 1.10.0\n */\n tooltipRender?: TooltipRender;\n /**\n * 在应用 `tooltipRender` 配置时,是否保留默认 tooltip dom 元素的显示\n * @since 1.10.0\n */\n reserveDefaultTooltip?: boolean;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BaseChartProps } from '../../charts/BaseChart';
|
|
3
|
+
import { TooltipProps } from './interface';
|
|
4
|
+
import { ITooltipSpec } from '@visactor/vchart';
|
|
5
|
+
export declare const initCustomTooltip: (setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>, props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __importDefault = this && this.__importDefault || function(mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
default: mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), exports.initCustomTooltip = void 0;
|
|
12
|
+
|
|
13
|
+
const react_1 = __importDefault(require("react")), vutils_1 = require("@visactor/vutils"), constant_1 = require("./constant"), react_dom_1 = require("react-dom"), initCustomTooltip = (setTooltipNode, props, spec) => {
|
|
14
|
+
let render;
|
|
15
|
+
if ((null == spec ? void 0 : spec.tooltipRender) ? (render = spec.tooltipRender,
|
|
16
|
+
delete spec.tooltipRender) : (null == spec ? void 0 : spec.children) ? render = (tooltipElement, actualTooltip, params) => react_1.default.Children.map(spec.children, (child => (0,
|
|
17
|
+
vutils_1.isObject)(child) ? react_1.default.cloneElement(child, {
|
|
18
|
+
tooltipElement: tooltipElement,
|
|
19
|
+
actualTooltip: actualTooltip,
|
|
20
|
+
params: params
|
|
21
|
+
}) : child)) : props.tooltipRender && (render = props.tooltipRender), render) {
|
|
22
|
+
let reserve;
|
|
23
|
+
return (null == spec ? void 0 : spec.reserveDefaultTooltip) ? (reserve = spec.reserveDefaultTooltip,
|
|
24
|
+
delete spec.reserveDefaultTooltip) : reserve = props.reserveDefaultTooltip, Object.assign(Object.assign({}, spec), {
|
|
25
|
+
updateElement: (el, actualTooltip, params) => {
|
|
26
|
+
const {changePositionOnly: changePositionOnly} = params;
|
|
27
|
+
if (!changePositionOnly) {
|
|
28
|
+
if (!reserve) {
|
|
29
|
+
el.style.width = "auto", el.style.height = "auto", el.style.minHeight = "auto",
|
|
30
|
+
el.style.padding = "0px";
|
|
31
|
+
for (let i = 0; i < el.children.length; i++) {
|
|
32
|
+
const childNode = el.children[i];
|
|
33
|
+
childNode.className !== constant_1.REACT_TOOLTIP_ClASS_NAME && "none" !== childNode.style.display && (childNode.style.display = "none");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
setTooltipNode((0, react_dom_1.createPortal)(react_1.default.createElement("div", {
|
|
37
|
+
className: constant_1.REACT_TOOLTIP_ClASS_NAME
|
|
38
|
+
}, render(el, actualTooltip, params)), el));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return spec;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.initCustomTooltip = initCustomTooltip;
|
|
47
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,6CAA4C;AAE5C,yCAAsD;AACtD,yCAAyC;AAGlC,MAAM,iBAAiB,GAAG,CAC/B,cAAqE,EACrE,KAAqB,EACrB,IAAmB,EACnB,EAAE;IACF,IAAI,MAAM,GAAkB,SAAS,CAAC;IACtC,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,EAAE;QACvB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5B,OAAO,IAAI,CAAC,aAAa,CAAC;KAC3B;SAAM,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAE;QACzB,MAAM,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,CACjD,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CACxC,IAAA,iBAAQ,EAAC,KAAK,CAAC;YACb,CAAC,CAAC,eAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;gBACrF,cAAc;gBACd,aAAa;gBACb,MAAM;aACP,CAAC;YACJ,CAAC,CAAC,KAAK,CACV,CAAC;KACL;SAAM,IAAI,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAO,GAAY,SAAS,CAAC;QACjC,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,qBAAqB,EAAE;YAC/B,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC;YACrC,OAAO,IAAI,CAAC,qBAAqB,CAAC;SACnC;aAAM;YACL,OAAO,GAAG,KAAK,CAAC,qBAAqB,CAAC;SACvC;QACD,OAAO,gCACF,IAAI,KACP,aAAa,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE;gBAC3C,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;gBACtC,IAAI,kBAAkB,EAAE;oBACtB,OAAO;iBACR;gBACD,IAAI,CAAC,OAAO,EAAE;oBACZ,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBACxB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;oBACzB,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;oBAC5B,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;oBACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAgB,CAAC;wBAChD,IAAI,SAAS,CAAC,SAAS,KAAK,mCAAwB,IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE;4BAC1F,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;yBAClC;qBACF;iBACF;gBACD,cAAc,CACZ,IAAA,wBAAY,EAAC,uCAAK,SAAS,EAAE,mCAAwB,IAAG,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,CAAO,EAAE,EAAE,CAAC,CACtG,CAAC;YACJ,CAAC,GACc,CAAC;KACnB;IAED,OAAO,IAAoB,CAAC;AAC9B,CAAC,CAAC;AA3DW,QAAA,iBAAiB,qBA2D5B","file":"util.js","sourcesContent":["import React from 'react';\nimport type { BaseChartProps } from '../../charts/BaseChart';\nimport { TooltipProps, TooltipRender } from './interface';\nimport { isObject } from '@visactor/vutils';\nimport { ITooltipSpec } from '@visactor/vchart';\nimport { REACT_TOOLTIP_ClASS_NAME } from './constant';\nimport { createPortal } from 'react-dom';\n\n/** tooltip 自定义插槽 */\nexport const initCustomTooltip = (\n setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>,\n props: BaseChartProps,\n spec?: TooltipProps\n) => {\n let render: TooltipRender = undefined;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (spec?.children) {\n render = (tooltipElement, actualTooltip, params) =>\n React.Children.map(spec.children, child =>\n isObject(child)\n ? React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n tooltipElement,\n actualTooltip,\n params\n })\n : child\n );\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean = undefined;\n if (spec?.reserveDefaultTooltip) {\n reserve = spec.reserveDefaultTooltip;\n delete spec.reserveDefaultTooltip;\n } else {\n reserve = props.reserveDefaultTooltip;\n }\n return {\n ...spec,\n updateElement: (el, actualTooltip, params) => {\n const { changePositionOnly } = params;\n if (changePositionOnly) {\n return;\n }\n if (!reserve) {\n el.style.width = 'auto';\n el.style.height = 'auto';\n el.style.minHeight = 'auto';\n el.style.padding = '0px';\n for (let i = 0; i < el.children.length; i++) {\n const childNode = el.children[i] as HTMLElement;\n if (childNode.className !== REACT_TOOLTIP_ClASS_NAME && childNode.style.display !== 'none') {\n childNode.style.display = 'none';\n }\n }\n }\n setTooltipNode(\n createPortal(<div className={REACT_TOOLTIP_ClASS_NAME}>{render(el, actualTooltip, params)}</div>, el)\n );\n }\n } as ITooltipSpec;\n }\n\n return spec as ITooltipSpec;\n};\n"]}
|
|
@@ -5,4 +5,4 @@ export interface ContainerProps {
|
|
|
5
5
|
width?: number | string;
|
|
6
6
|
height?: number | string;
|
|
7
7
|
}
|
|
8
|
-
export default function withContainer<Props extends ContainerProps, CompProps>(Comp:
|
|
8
|
+
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: any, name?: string, getProps?: (props: any) => CompProps): React.ForwardRefExoticComponent<React.PropsWithoutRef<CompProps & Props> & React.RefAttributes<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiE;AASjE,SAAwB,aAAa,CACnC,
|
|
1
|
+
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiE;AASjE,SAAwB,aAAa,CACnC,IAAS,EACT,IAAI,GAAG,gBAAgB,EACvB,QAAoC;IAEpC,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAyB,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;QACrF,MAAM,SAAS,GAAG,IAAA,cAAM,GAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA/C,+BAAuC,CAAQ,CAAC;QAEtD,IAAA,uBAAe,EAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,uCACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,MAAM,EAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,MAAM,IACzB,KAAK,KAGT,MAAM,CAAC,CAAC,CAAC,CACR,8BAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,IAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAAqB,CAAC,EAAI,CAC9G,CAAC,CAAC,CAAC,CACF,6DAAK,CACN,CACG,CACP,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;IACpC,OAAO,GAAG,CAAC;AACb,CAAC;AAnCD,gCAmCC","file":"withContainer.js","sourcesContent":["import React, { useRef, useState, useLayoutEffect } from 'react';\n\nexport interface ContainerProps {\n style?: React.CSSProperties;\n className?: string;\n width?: number | string;\n height?: number | string;\n}\n\nexport default function withContainer<Props extends ContainerProps, CompProps>(\n Comp: any,\n name = 'ChartContainer',\n getProps?: (props: any) => CompProps\n) {\n const Cls = React.forwardRef<any, CompProps & Props>((props: CompProps & Props, ref) => {\n const container = useRef();\n const [inited, setInited] = useState(false);\n const { className, style, width, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n className={className}\n style={{\n position: 'relative',\n height: props.height || '100%',\n width: props.width || '100%',\n ...style\n }}\n >\n {inited ? (\n <Comp ref={ref} container={container.current} {...(getProps ? getProps(options) : (options as CompProps))} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
|
package/cjs/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export * from './series';
|
|
|
3
3
|
export * from './components';
|
|
4
4
|
export * from './VChart';
|
|
5
5
|
export * from './VChartSimple';
|
|
6
|
-
export
|
|
6
|
+
export { VChart as VChartCore } from '@visactor/vchart';
|
|
7
|
+
export declare const version = "0.11.6-alpha.2";
|
|
7
8
|
export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
|
package/cjs/index.js
CHANGED
|
@@ -17,7 +17,16 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
|
-
}), exports.version = void 0, __exportStar(require("./charts"), exports),
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
20
|
+
}), exports.version = exports.VChartCore = void 0, __exportStar(require("./charts"), exports),
|
|
21
|
+
__exportStar(require("./series"), exports), __exportStar(require("./components"), exports),
|
|
22
|
+
__exportStar(require("./VChart"), exports), __exportStar(require("./VChartSimple"), exports);
|
|
23
|
+
|
|
24
|
+
var vchart_1 = require("@visactor/vchart");
|
|
25
|
+
|
|
26
|
+
Object.defineProperty(exports, "VChartCore", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
get: function() {
|
|
29
|
+
return vchart_1.VChart;
|
|
30
|
+
}
|
|
31
|
+
}), exports.version = "0.11.6-alpha.2";
|
|
23
32
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAwD;AAA/C,oGAAA,MAAM,OAAc;AAGhB,QAAA,OAAO,GAAG,gBAAgB,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"0.11.6-alpha.2\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n"]}
|
package/cjs/series/Area.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.Area = void 0;
|
|
6
6
|
|
|
7
|
-
const BaseSeries_1 = require("./BaseSeries");
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.Area = (0, BaseSeries_1.createSeries)("Area", [ "area" ], "area");
|
|
9
|
+
exports.Area = (0, BaseSeries_1.createSeries)("Area", [ "area" ], "area", [ vchart_1.registerAreaSeries ]);
|
|
10
10
|
//# sourceMappingURL=Area.js.map
|
package/cjs/series/Area.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/Area.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;
|
|
1
|
+
{"version":3,"sources":["../src/series/Area.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAsD;AAGzC,QAAA,IAAI,GAAG,IAAA,yBAAY,EAAY,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,2BAAkB,CAAC,CAAC,CAAC","file":"Area.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IAreaSeriesSpec } from '@visactor/vchart';\nimport { registerAreaSeries } from '@visactor/vchart';\n\nexport type AreaProps = BaseSeriesProps & Omit<IAreaSeriesSpec, 'type'>;\nexport const Area = createSeries<AreaProps>('Area', ['area'], 'area', [registerAreaSeries]);\n"]}
|
package/cjs/series/Bar.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.Bar = void 0;
|
|
6
6
|
|
|
7
|
-
const BaseSeries_1 = require("./BaseSeries");
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.Bar = (0, BaseSeries_1.createSeries)("Bar", [ "bar" ], "bar");
|
|
10
|
-
//# sourceMappingURL=Bar.js.map
|
|
9
|
+
exports.Bar = (0, BaseSeries_1.createSeries)("Bar", [ "bar" ], "bar", [ vchart_1.registerBarSeries ]);
|
|
10
|
+
//# sourceMappingURL=Bar.js.map
|
package/cjs/series/Bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/Bar.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;
|
|
1
|
+
{"version":3,"sources":["../src/series/Bar.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAqD;AAIxC,QAAA,GAAG,GAAG,IAAA,yBAAY,EAAW,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,0BAAiB,CAAC,CAAC,CAAC","file":"Bar.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IBarSeriesSpec } from '@visactor/vchart';\nimport { registerBarSeries } from '@visactor/vchart';\n\nexport type BarProps = BaseSeriesProps & Omit<IBarSeriesSpec, 'type'>;\n\nexport const Bar = createSeries<BarProps>('Bar', ['bar'], 'bar', [registerBarSeries]);\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IBar3dSeriesSpec } from '@visactor/vchart';
|
|
3
|
+
export type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;
|
|
4
|
+
export declare const Bar3d: import("react").FC<BaseSeriesProps & Omit<IBar3dSeriesSpec, "type"> & {
|
|
5
|
+
updateId?: number;
|
|
6
|
+
componentId?: string;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.Bar3d = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
|
+
|
|
9
|
+
exports.Bar3d = (0, BaseSeries_1.createSeries)("Bar3d", [ "bar" ], "bar3d", [ vchart_1.registerBar3dSeries ]);
|
|
10
|
+
//# sourceMappingURL=Bar3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/Bar3d.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,yBAAY,EAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,4BAAmB,CAAC,CAAC,CAAC","file":"Bar3d.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IBar3dSeriesSpec } from '@visactor/vchart';\nimport { registerBar3dSeries } from '@visactor/vchart';\n\nexport type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;\n\nexport const Bar3d = createSeries<Bar3dProps>('Bar3d', ['bar'], 'bar3d', [registerBar3dSeries]);\n"]}
|
|
@@ -3,7 +3,7 @@ import { EventsProps } from '../eventsUtils';
|
|
|
3
3
|
export interface BaseSeriesProps extends EventsProps {
|
|
4
4
|
id?: string | number;
|
|
5
5
|
}
|
|
6
|
-
export declare const createSeries: <T extends BaseSeriesProps>(componentName: string, markNames: string[], type?: string) => React.FC<T & {
|
|
6
|
+
export declare const createSeries: <T extends BaseSeriesProps>(componentName: string, markNames: string[], type?: string, registers?: (() => void)[]) => React.FC<T & {
|
|
7
7
|
updateId?: number;
|
|
8
8
|
componentId?: string;
|
|
9
9
|
}>;
|
package/cjs/series/BaseSeries.js
CHANGED
|
@@ -10,19 +10,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
10
|
value: !0
|
|
11
11
|
}), exports.createSeries = void 0;
|
|
12
12
|
|
|
13
|
-
const react_1 = __importDefault(require("react")), vutils_1 = require("@visactor/vutils"), chart_1 = __importDefault(require("../context/chart")), eventsUtils_1 = require("../eventsUtils"), createSeries = (componentName, markNames, type) => {
|
|
14
|
-
|
|
13
|
+
const react_1 = __importDefault(require("react")), vutils_1 = require("@visactor/vutils"), chart_1 = __importDefault(require("../context/chart")), eventsUtils_1 = require("../eventsUtils"), vchart_1 = require("@visactor/vchart"), createSeries = (componentName, markNames, type, registers) => {
|
|
14
|
+
registers && registers.length && vchart_1.VChart.useRegisters(registers);
|
|
15
|
+
const notSpecKeys = eventsUtils_1.COMMON_EVENTK_KEYS.concat([ "updateId", "componentId" ]), Comp = props => {
|
|
15
16
|
var _a;
|
|
16
17
|
const context = react_1.default.useContext(chart_1.default), id = null !== (_a = props.id) && void 0 !== _a ? _a : props.componentId, bindedEvents = react_1.default.useRef({}), handleEvent = e => {
|
|
17
18
|
const markIds = markNames.map((markName => `${id}-${markName}`));
|
|
18
19
|
(null == e ? void 0 : e.mark) && markIds.includes(e.mark.getUserId()) && props[eventsUtils_1.VCHART_TO_REACT_EVENTS[e.event.type]](e);
|
|
19
20
|
}, addMarkEvent = events => {
|
|
20
|
-
events && context.chart && (bindedEvents && Object.keys(bindedEvents).forEach((eventKey => {
|
|
21
|
-
|
|
22
|
-
bindedEvents.current[eventKey] =
|
|
23
|
-
})), Object.keys(events).forEach((eventKey => {
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
events && context.chart && (bindedEvents.current && Object.keys(bindedEvents.current).forEach((eventKey => {
|
|
22
|
+
context.chart.off(eventsUtils_1.REACT_TO_VCHART_EVENTS[eventKey], bindedEvents.current[eventKey]),
|
|
23
|
+
bindedEvents.current[eventKey] = null;
|
|
24
|
+
})), events && Object.keys(events).forEach((eventKey => {
|
|
25
|
+
var _a;
|
|
26
|
+
(null === (_a = bindedEvents.current) || void 0 === _a ? void 0 : _a[eventKey]) || (context.chart.on(eventsUtils_1.REACT_TO_VCHART_EVENTS[eventKey], handleEvent),
|
|
27
|
+
bindedEvents.current || (bindedEvents.current = {}), bindedEvents.current[eventKey] = handleEvent);
|
|
26
28
|
})));
|
|
27
29
|
};
|
|
28
30
|
return addMarkEvent((0, eventsUtils_1.findEventProps)(props)), react_1.default.useEffect((() => () => {
|
|
@@ -47,4 +49,4 @@ const react_1 = __importDefault(require("react")), vutils_1 = require("@visactor
|
|
|
47
49
|
};
|
|
48
50
|
|
|
49
51
|
exports.createSeries = createSeries;
|
|
50
|
-
//# sourceMappingURL=BaseSeries.js.map
|
|
52
|
+
//# sourceMappingURL=BaseSeries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/BaseSeries.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,6CAAsD;AACtD,6DAAgD;AAChD,gDAMwB;
|
|
1
|
+
{"version":3,"sources":["../src/series/BaseSeries.tsx"],"names":[],"mappings":"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","file":"BaseSeries.js","sourcesContent":["import React from 'react';\nimport { isNil, pickWithout } from '@visactor/vutils';\nimport RootChartContext from '../context/chart';\nimport {\n REACT_TO_VCHART_EVENTS,\n EventsProps,\n findEventProps,\n COMMON_EVENTK_KEYS,\n VCHART_TO_REACT_EVENTS\n} from '../eventsUtils';\nimport { VChart } from '@visactor/vchart';\nexport interface BaseSeriesProps extends EventsProps {\n id?: string | number;\n}\n\nexport const createSeries = <T extends BaseSeriesProps>(\n componentName: string,\n markNames: string[],\n type?: string,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length) {\n VChart.useRegisters(registers);\n }\n\n const ignoreKeys = ['updateId', 'componentId'];\n const notSpecKeys = COMMON_EVENTK_KEYS.concat(ignoreKeys);\n\n const addMarkId = (spec: any, seriesId: string | number) => {\n markNames.forEach(markName => {\n const defaultMarkId = `${seriesId}-${markName}`;\n\n if (isNil(spec[markName])) {\n spec[markName] = { id: defaultMarkId };\n } else if (isNil(spec[markName].id)) {\n spec[markName].id = defaultMarkId;\n }\n });\n };\n\n const Comp: React.FC<T & { updateId?: number; componentId?: string }> = props => {\n const context = React.useContext(RootChartContext);\n\n const id = props.id ?? props.componentId;\n const bindedEvents = React.useRef<Record<string, (e: any) => void>>({});\n\n const handleEvent = (e: any) => {\n const markIds = markNames.map(markName => `${id}-${markName}`);\n if (e?.mark && markIds.includes(e.mark.getUserId())) {\n props[VCHART_TO_REACT_EVENTS[e.event.type]](e);\n }\n };\n\n const addMarkEvent = (events: EventsProps) => {\n if (!events || !context.chart) {\n return;\n }\n\n if (bindedEvents.current) {\n Object.keys(bindedEvents.current).forEach(eventKey => {\n context.chart.off(REACT_TO_VCHART_EVENTS[eventKey], bindedEvents.current[eventKey]);\n bindedEvents.current[eventKey] = null;\n });\n }\n\n events &&\n Object.keys(events).forEach(eventKey => {\n if (!bindedEvents.current?.[eventKey]) {\n context.chart.on(REACT_TO_VCHART_EVENTS[eventKey], handleEvent);\n\n if (!bindedEvents.current) {\n bindedEvents.current = {};\n }\n bindedEvents.current[eventKey] = handleEvent;\n }\n });\n };\n\n const removeMarkEvent = () => {\n addMarkEvent({});\n };\n\n addMarkEvent(findEventProps(props));\n\n React.useEffect(() => {\n return () => {\n removeMarkEvent();\n bindedEvents.current = {};\n };\n }, []);\n\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (compProps: T & { updateId?: number; componentId?: string }) => {\n const newSeriesSpec = pickWithout<T>(compProps, notSpecKeys);\n\n addMarkId(newSeriesSpec, compProps.id ?? compProps.componentId);\n\n if (!isNil(type)) {\n (newSeriesSpec as any).type = type;\n }\n\n return {\n spec: newSeriesSpec,\n specName: 'series'\n };\n };\n return Comp;\n};\n"]}
|
package/cjs/series/BoxPlot.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.BoxPlot = void 0;
|
|
6
6
|
|
|
7
|
-
const BaseSeries_1 = require("./BaseSeries");
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.BoxPlot = (0, BaseSeries_1.createSeries)("BoxPlot", [ "boxPlot" ], "boxPlot");
|
|
10
|
-
//# sourceMappingURL=BoxPlot.js.map
|
|
9
|
+
exports.BoxPlot = (0, BaseSeries_1.createSeries)("BoxPlot", [ "boxPlot" ], "boxPlot", [ vchart_1.registerBoxplotSeries ]);
|
|
10
|
+
//# sourceMappingURL=BoxPlot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/BoxPlot.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;
|
|
1
|
+
{"version":3,"sources":["../src/series/BoxPlot.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAyD;AAI5C,QAAA,OAAO,GAAG,IAAA,yBAAY,EAAe,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,8BAAqB,CAAC,CAAC,CAAC","file":"BoxPlot.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { IBoxPlotSeriesSpec } from '@visactor/vchart';\nimport { registerBoxplotSeries } from '@visactor/vchart';\n\nexport type BoxPlotProps = BaseSeriesProps & Omit<IBoxPlotSeriesSpec, 'type'>;\n\nexport const BoxPlot = createSeries<BoxPlotProps>('BoxPlot', ['boxPlot'], 'boxPlot', [registerBoxplotSeries]);\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { ICirclePackingSeriesSpec } from '@visactor/vchart';
|
|
3
|
+
export type CirclePackingProps = BaseSeriesProps & Omit<ICirclePackingSeriesSpec, 'type'>;
|
|
4
|
+
export declare const CirclePacking: import("react").FC<BaseSeriesProps & Omit<ICirclePackingSeriesSpec, "type"> & {
|
|
5
|
+
updateId?: number;
|
|
6
|
+
componentId?: string;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.CirclePacking = void 0;
|
|
6
|
+
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
|
+
|
|
9
|
+
exports.CirclePacking = (0, BaseSeries_1.createSeries)("CirclePacking", [ "circlePacking", "label" ], "circlePacking", [ vchart_1.registerCirclePackingSeries ]);
|
|
10
|
+
//# sourceMappingURL=CirclePacking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/CirclePacking.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAA+D;AAIlD,QAAA,aAAa,GAAG,IAAA,yBAAY,EACvC,eAAe,EACf,CAAC,eAAe,EAAE,OAAO,CAAC,EAC1B,eAAe,EACf,CAAC,oCAA2B,CAAC,CAC9B,CAAC","file":"CirclePacking.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { ICirclePackingSeriesSpec } from '@visactor/vchart';\nimport { registerCirclePackingSeries } from '@visactor/vchart';\n\nexport type CirclePackingProps = BaseSeriesProps & Omit<ICirclePackingSeriesSpec, 'type'>;\n\nexport const CirclePacking = createSeries<CirclePackingProps>(\n 'CirclePacking',\n ['circlePacking', 'label'],\n 'circlePacking',\n [registerCirclePackingSeries]\n);\n"]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.CircularProgress = void 0;
|
|
6
6
|
|
|
7
|
-
const BaseSeries_1 = require("./BaseSeries");
|
|
7
|
+
const BaseSeries_1 = require("./BaseSeries"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.CircularProgress = (0, BaseSeries_1.createSeries)("CircularProgress", [ "circularProgress" ], "circularProgress");
|
|
10
|
-
//# sourceMappingURL=CircularProgress.js.map
|
|
9
|
+
exports.CircularProgress = (0, BaseSeries_1.createSeries)("CircularProgress", [ "circularProgress" ], "circularProgress", [ vchart_1.registerCircularProgressSeries ]);
|
|
10
|
+
//# sourceMappingURL=CircularProgress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/CircularProgress.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;
|
|
1
|
+
{"version":3,"sources":["../src/series/CircularProgress.tsx"],"names":[],"mappings":";;;AAAA,6CAA6D;AAE7D,6CAAkE;AAIrD,QAAA,gBAAgB,GAAG,IAAA,yBAAY,EAC1C,kBAAkB,EAClB,CAAC,kBAAkB,CAAC,EACpB,kBAAkB,EAClB,CAAC,uCAA8B,CAAC,CACjC,CAAC","file":"CircularProgress.js","sourcesContent":["import { BaseSeriesProps, createSeries } from './BaseSeries';\nimport type { ICircularProgressSeriesSpec } from '@visactor/vchart';\nimport { registerCircularProgressSeries } from '@visactor/vchart';\n\nexport type CircularProgressProps = BaseSeriesProps & Omit<ICircularProgressSeriesSpec, 'type'>;\n\nexport const CircularProgress = createSeries<CircularProgressProps>(\n 'CircularProgress',\n ['circularProgress'],\n 'circularProgress',\n [registerCircularProgressSeries]\n);\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { ICorrelationSeriesSpec } from '@visactor/vchart';
|
|
3
|
+
export type CorrelationProps = BaseSeriesProps & Omit<ICorrelationSeriesSpec, 'type'>;
|
|
4
|
+
export declare const Correlation: import("react").FC<BaseSeriesProps & Omit<ICorrelationSeriesSpec, "type"> & {
|
|
5
|
+
updateId?: number;
|
|
6
|
+
componentId?: string;
|
|
7
|
+
}>;
|