@visactor/vchart 1.0.1-alpha.1 → 1.0.1-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/build/index.js +5027 -5002
- package/build/index.min.js +2 -2
- package/chart.d.ts +1 -1
- package/chart.js +1 -1
- package/cjs/chart/area/area.js +3 -1
- package/cjs/chart/area/area.js.map +1 -1
- package/cjs/chart/bar/bar-3d.d.ts +7 -0
- package/cjs/chart/bar/bar-3d.js +19 -0
- package/cjs/chart/bar/bar-3d.js.map +1 -0
- package/cjs/chart/bar/bar.d.ts +0 -6
- package/cjs/chart/bar/bar.js +4 -11
- package/cjs/chart/bar/bar.js.map +1 -1
- package/cjs/chart/bar/index.d.ts +1 -0
- package/cjs/chart/bar/index.js +2 -1
- package/cjs/chart/bar/index.js.map +1 -1
- package/cjs/chart/base-chart.d.ts +1 -1
- package/cjs/chart/box-plot/box-plot.js +3 -1
- package/cjs/chart/box-plot/box-plot.js.map +1 -1
- package/cjs/chart/circle-packing/circle-packing.js +3 -1
- package/cjs/chart/circle-packing/circle-packing.js.map +1 -1
- package/cjs/chart/funnel/base.d.ts +9 -0
- package/cjs/chart/funnel/base.js +47 -0
- package/cjs/chart/funnel/base.js.map +1 -0
- package/cjs/chart/funnel/funnel-3d.d.ts +7 -0
- package/cjs/chart/funnel/funnel-3d.js +19 -0
- package/cjs/chart/funnel/funnel-3d.js.map +1 -0
- package/cjs/chart/funnel/funnel.d.ts +1 -16
- package/cjs/chart/funnel/funnel.js +4 -48
- package/cjs/chart/funnel/funnel.js.map +1 -1
- package/cjs/chart/funnel/index.d.ts +1 -0
- package/cjs/chart/funnel/index.js +2 -1
- package/cjs/chart/funnel/index.js.map +1 -1
- package/cjs/chart/gauge/gauge.js +3 -1
- package/cjs/chart/gauge/gauge.js.map +1 -1
- package/cjs/chart/heatmap/heatmap.js +3 -1
- package/cjs/chart/heatmap/heatmap.js.map +1 -1
- package/cjs/chart/histogram/base.d.ts +5 -0
- package/cjs/chart/histogram/base.js +22 -0
- package/cjs/chart/histogram/base.js.map +1 -0
- package/cjs/chart/histogram/histogram-3d.d.ts +7 -0
- package/cjs/chart/histogram/histogram-3d.js +19 -0
- package/cjs/chart/histogram/histogram-3d.js.map +1 -0
- package/cjs/chart/histogram/histogram.d.ts +1 -12
- package/cjs/chart/histogram/histogram.js +4 -23
- package/cjs/chart/histogram/histogram.js.map +1 -1
- package/cjs/chart/histogram/index.d.ts +1 -0
- package/cjs/chart/histogram/index.js +2 -1
- package/cjs/chart/histogram/index.js.map +1 -1
- package/cjs/chart/index.d.ts +57 -22
- package/cjs/chart/index.js +293 -26
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/line/line.js +3 -1
- package/cjs/chart/line/line.js.map +1 -1
- package/cjs/chart/map/map.js +3 -1
- package/cjs/chart/map/map.js.map +1 -1
- package/cjs/chart/pie/base.d.ts +5 -0
- package/cjs/chart/pie/base.js +26 -0
- package/cjs/chart/pie/base.js.map +1 -0
- package/cjs/chart/pie/index.d.ts +1 -0
- package/cjs/chart/pie/index.js +2 -1
- package/cjs/chart/pie/index.js.map +1 -1
- package/cjs/chart/pie/pie-3d.d.ts +8 -0
- package/cjs/chart/pie/pie-3d.js +24 -0
- package/cjs/chart/pie/pie-3d.js.map +1 -0
- package/cjs/chart/pie/pie.d.ts +1 -13
- package/cjs/chart/pie/pie.js +4 -32
- package/cjs/chart/pie/pie.js.map +1 -1
- package/cjs/chart/progress/circular/circular.js +3 -1
- package/cjs/chart/progress/circular/circular.js.map +1 -1
- package/cjs/chart/progress/linear/linear.js +3 -1
- package/cjs/chart/progress/linear/linear.js.map +1 -1
- package/cjs/chart/radar/radar.js +3 -1
- package/cjs/chart/radar/radar.js.map +1 -1
- package/cjs/chart/range-area/range-area.js +3 -1
- package/cjs/chart/range-area/range-area.js.map +1 -1
- package/cjs/chart/range-column/index.d.ts +2 -1
- package/cjs/chart/range-column/index.js +2 -1
- package/cjs/chart/range-column/index.js.map +1 -1
- package/cjs/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
- package/cjs/chart/range-column/{rangeColumn.js → range-column-3d.js} +4 -17
- package/cjs/chart/range-column/range-column-3d.js.map +1 -0
- package/cjs/chart/range-column/range-column.d.ts +8 -0
- package/cjs/chart/range-column/range-column.js +25 -0
- package/cjs/chart/range-column/range-column.js.map +1 -0
- package/cjs/chart/rose/rose.js +3 -1
- package/cjs/chart/rose/rose.js.map +1 -1
- package/cjs/chart/sankey/sankey.js +3 -1
- package/cjs/chart/sankey/sankey.js.map +1 -1
- package/cjs/chart/scatter/scatter.js +3 -1
- package/cjs/chart/scatter/scatter.js.map +1 -1
- package/cjs/chart/sequence/sequence.js +3 -1
- package/cjs/chart/sequence/sequence.js.map +1 -1
- package/cjs/chart/sunburst/sunburst.js +3 -1
- package/cjs/chart/sunburst/sunburst.js.map +1 -1
- package/cjs/chart/treemap/treemap.js +3 -1
- package/cjs/chart/treemap/treemap.js.map +1 -1
- package/cjs/chart/waterfall/waterfall.js +3 -1
- package/cjs/chart/waterfall/waterfall.js.map +1 -1
- package/cjs/chart/word-cloud/base.d.ts +6 -0
- package/cjs/chart/word-cloud/base.js +25 -0
- package/cjs/chart/word-cloud/base.js.map +1 -0
- package/cjs/chart/word-cloud/index.d.ts +1 -0
- package/cjs/chart/word-cloud/index.js +2 -1
- package/cjs/chart/word-cloud/index.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud-3d.d.ts +9 -0
- package/cjs/chart/word-cloud/word-cloud-3d.js +46 -0
- package/cjs/chart/word-cloud/word-cloud-3d.js.map +1 -0
- package/cjs/chart/word-cloud/word-cloud.d.ts +2 -15
- package/cjs/chart/word-cloud/word-cloud.js +4 -53
- package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
- package/cjs/compile/grammar-item.js +1 -2
- package/cjs/component/index.d.ts +39 -1
- package/cjs/component/index.js +202 -16
- package/cjs/component/index.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +1 -1
- package/cjs/component/legend/util.d.ts +3 -3
- package/cjs/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
- package/cjs/constant/marker.js +1 -2
- package/cjs/constant/word-cloud.js +2 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/{export/core.d.ts → core/index.d.ts} +4 -4
- package/cjs/{export/core.js → core/index.js} +5 -5
- package/cjs/core/index.js.map +1 -0
- package/cjs/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/vchart.js +1 -1
- package/cjs/data/initialize.js +2 -1
- package/cjs/index.d.ts +6 -6
- package/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/cjs/interaction/interface.js +1 -1
- package/cjs/interaction/trigger.js +1 -1
- package/cjs/layout/base-layout.d.ts +24 -0
- package/cjs/layout/base-layout.js +124 -0
- package/cjs/layout/base-layout.js.map +1 -0
- package/cjs/layout/index.d.ts +7 -24
- package/cjs/layout/index.js +25 -115
- package/cjs/layout/index.js.map +1 -1
- package/cjs/layout/layout3d/index.d.ts +1 -1
- package/cjs/layout/layout3d/index.js +2 -2
- package/cjs/layout/layout3d/index.js.map +1 -1
- package/cjs/mark/arc-3d.d.ts +9 -0
- package/cjs/mark/arc-3d.js +16 -0
- package/cjs/mark/arc-3d.js.map +1 -0
- package/cjs/mark/arc.d.ts +1 -6
- package/cjs/mark/arc.js +1 -9
- package/cjs/mark/arc.js.map +1 -1
- package/cjs/mark/index.d.ts +21 -0
- package/cjs/{export/mark.js → mark/index.js} +49 -37
- package/cjs/mark/index.js.map +1 -0
- package/cjs/mark/{linkPath.js → link-path.js} +1 -1
- package/cjs/mark/link-path.js.map +1 -0
- package/cjs/mark/polygon/base-polygon.d.ts +6 -0
- package/cjs/mark/polygon/base-polygon.js +18 -0
- package/cjs/mark/polygon/base-polygon.js.map +1 -0
- package/cjs/mark/polygon/polygon.d.ts +9 -0
- package/cjs/mark/polygon/polygon.js +16 -0
- package/cjs/mark/polygon/polygon.js.map +1 -0
- package/cjs/mark/polygon/pyramid-3d.d.ts +9 -0
- package/cjs/mark/polygon/pyramid-3d.js +16 -0
- package/cjs/mark/polygon/pyramid-3d.js.map +1 -0
- package/cjs/mark/rect-3d.d.ts +10 -0
- package/cjs/mark/rect-3d.js +23 -0
- package/cjs/mark/rect-3d.js.map +1 -0
- package/cjs/mark/rect.d.ts +1 -7
- package/cjs/mark/rect.js +1 -16
- package/cjs/mark/rect.js.map +1 -1
- package/cjs/model/layout-item.js +1 -2
- package/cjs/plugin/interface.js +1 -1
- package/cjs/region/region.js +1 -1
- package/cjs/series/area/area.js +3 -1
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/bar/bar-3d.d.ts +11 -0
- package/cjs/series/bar/bar-3d.js +25 -0
- package/cjs/series/bar/bar-3d.js.map +1 -0
- package/cjs/series/bar/bar.d.ts +0 -7
- package/cjs/series/bar/bar.js +3 -18
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/box-plot/box-plot.js +5 -1
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +3 -1
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/dot/dot.js +3 -1
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/funnel-3d.d.ts +18 -0
- package/cjs/series/funnel/funnel-3d.js +104 -0
- package/cjs/series/funnel/funnel-3d.js.map +1 -0
- package/cjs/series/funnel/funnel.d.ts +2 -14
- package/cjs/series/funnel/funnel.js +4 -96
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/gauge/gauge-pointer.js +3 -1
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge.js +3 -1
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/heatmap/heatmap.js +2 -2
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/index.d.ts +66 -0
- package/cjs/{export/series.js → series/index.js} +70 -50
- package/cjs/series/index.js.map +1 -0
- package/cjs/series/line/line.js +3 -1
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/link.js +3 -1
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/map/map.js +2 -2
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/pie/pie-3d.d.ts +16 -0
- package/cjs/series/pie/pie-3d.js +97 -0
- package/cjs/series/pie/pie-3d.js.map +1 -0
- package/cjs/series/pie/pie.d.ts +1 -11
- package/cjs/series/pie/pie.js +4 -89
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/polar/animation.d.ts +1 -1
- package/cjs/series/polar/animation.js.map +1 -1
- package/cjs/series/progress/circular/circular.js +3 -1
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/linear/linear.js +3 -1
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/animation.d.ts +1 -1
- package/cjs/series/radar/animation.js.map +1 -1
- package/cjs/series/radar/radar.js +3 -1
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-column/rangeColumn-3d.d.ts +10 -0
- package/cjs/series/range-column/rangeColumn-3d.js +19 -0
- package/cjs/series/range-column/rangeColumn-3d.js.map +1 -0
- package/cjs/series/range-column/rangeColumn.d.ts +0 -6
- package/cjs/series/range-column/rangeColumn.js +1 -10
- package/cjs/series/range-column/rangeColumn.js.map +1 -1
- package/cjs/series/rose/rose.js +2 -2
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/sankey.js +2 -1
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/scatter.js +3 -1
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/sunburst.js +3 -1
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/treemap.js +3 -1
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/waterfall/waterfall.js +2 -2
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/series/word-cloud/base.d.ts +60 -0
- package/cjs/series/word-cloud/base.js +254 -0
- package/cjs/series/word-cloud/base.js.map +1 -0
- package/cjs/series/word-cloud/word-cloud-3d.d.ts +11 -0
- package/cjs/series/word-cloud/word-cloud-3d.js +199 -0
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -0
- package/cjs/series/word-cloud/word-cloud.d.ts +2 -69
- package/cjs/series/word-cloud/word-cloud.js +5 -441
- package/cjs/series/word-cloud/word-cloud.js.map +1 -1
- package/cjs/vchart-all.d.ts +1 -1
- package/cjs/vchart-all.js +3 -5
- package/cjs/vchart-all.js.map +1 -1
- package/cjs/vchart-simple.d.ts +1 -1
- package/cjs/vchart-simple.js +2 -4
- package/cjs/vchart-simple.js.map +1 -1
- package/component.d.ts +1 -1
- package/component.js +1 -1
- package/core.d.ts +1 -1
- package/core.js +1 -1
- package/esm/chart/area/area.js +6 -0
- package/esm/chart/area/area.js.map +1 -1
- package/esm/chart/bar/bar-3d.d.ts +7 -0
- package/esm/chart/bar/bar-3d.js +20 -0
- package/esm/chart/bar/bar-3d.js.map +1 -0
- package/esm/chart/bar/bar.d.ts +0 -6
- package/esm/chart/bar/bar.js +6 -8
- package/esm/chart/bar/bar.js.map +1 -1
- package/esm/chart/bar/index.d.ts +1 -0
- package/esm/chart/bar/index.js +2 -0
- package/esm/chart/bar/index.js.map +1 -1
- package/esm/chart/base-chart.d.ts +1 -1
- package/esm/chart/box-plot/box-plot.js +6 -0
- package/esm/chart/box-plot/box-plot.js.map +1 -1
- package/esm/chart/circle-packing/circle-packing.js +6 -0
- package/esm/chart/circle-packing/circle-packing.js.map +1 -1
- package/esm/chart/funnel/base.d.ts +9 -0
- package/esm/chart/funnel/base.js +39 -0
- package/esm/chart/funnel/base.js.map +1 -0
- package/esm/chart/funnel/funnel-3d.d.ts +7 -0
- package/esm/chart/funnel/funnel-3d.js +20 -0
- package/esm/chart/funnel/funnel-3d.js.map +1 -0
- package/esm/chart/funnel/funnel.d.ts +1 -16
- package/esm/chart/funnel/funnel.js +7 -46
- package/esm/chart/funnel/funnel.js.map +1 -1
- package/esm/chart/funnel/index.d.ts +1 -0
- package/esm/chart/funnel/index.js +2 -0
- package/esm/chart/funnel/index.js.map +1 -1
- package/esm/chart/gauge/gauge.js +6 -0
- package/esm/chart/gauge/gauge.js.map +1 -1
- package/esm/chart/heatmap/heatmap.js +6 -0
- package/esm/chart/heatmap/heatmap.js.map +1 -1
- package/esm/chart/histogram/base.d.ts +5 -0
- package/esm/chart/histogram/base.js +14 -0
- package/esm/chart/histogram/base.js.map +1 -0
- package/esm/chart/histogram/histogram-3d.d.ts +7 -0
- package/esm/chart/histogram/histogram-3d.js +20 -0
- package/esm/chart/histogram/histogram-3d.js.map +1 -0
- package/esm/chart/histogram/histogram.d.ts +1 -12
- package/esm/chart/histogram/histogram.js +7 -21
- package/esm/chart/histogram/histogram.js.map +1 -1
- package/esm/chart/histogram/index.d.ts +1 -0
- package/esm/chart/histogram/index.js +2 -0
- package/esm/chart/histogram/index.js.map +1 -1
- package/esm/chart/index.d.ts +57 -22
- package/esm/chart/index.js +36 -22
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/line/line.js +6 -0
- package/esm/chart/line/line.js.map +1 -1
- package/esm/chart/map/map.js +6 -0
- package/esm/chart/map/map.js.map +1 -1
- package/esm/chart/pie/base.d.ts +5 -0
- package/esm/chart/pie/base.js +18 -0
- package/esm/chart/pie/base.js.map +1 -0
- package/esm/chart/pie/index.d.ts +1 -0
- package/esm/chart/pie/index.js +2 -0
- package/esm/chart/pie/index.js.map +1 -1
- package/esm/chart/pie/pie-3d.d.ts +8 -0
- package/esm/chart/pie/pie-3d.js +25 -0
- package/esm/chart/pie/pie-3d.js.map +1 -0
- package/esm/chart/pie/pie.d.ts +1 -13
- package/esm/chart/pie/pie.js +6 -29
- package/esm/chart/pie/pie.js.map +1 -1
- package/esm/chart/progress/circular/circular.js +6 -0
- package/esm/chart/progress/circular/circular.js.map +1 -1
- package/esm/chart/progress/linear/linear.js +6 -0
- package/esm/chart/progress/linear/linear.js.map +1 -1
- package/esm/chart/radar/radar.js +6 -0
- package/esm/chart/radar/radar.js.map +1 -1
- package/esm/chart/range-area/range-area.js +6 -0
- package/esm/chart/range-area/range-area.js.map +1 -1
- package/esm/chart/range-column/index.d.ts +2 -1
- package/esm/chart/range-column/index.js +3 -1
- package/esm/chart/range-column/index.js.map +1 -1
- package/esm/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
- package/esm/chart/range-column/{rangeColumn.js → range-column-3d.js} +5 -13
- package/esm/chart/range-column/range-column-3d.js.map +1 -0
- package/esm/chart/range-column/range-column.d.ts +8 -0
- package/esm/chart/range-column/range-column.js +28 -0
- package/esm/chart/range-column/range-column.js.map +1 -0
- package/esm/chart/rose/rose.js +6 -0
- package/esm/chart/rose/rose.js.map +1 -1
- package/esm/chart/sankey/sankey.js +6 -0
- package/esm/chart/sankey/sankey.js.map +1 -1
- package/esm/chart/scatter/scatter.js +6 -0
- package/esm/chart/scatter/scatter.js.map +1 -1
- package/esm/chart/sequence/sequence.js +6 -0
- package/esm/chart/sequence/sequence.js.map +1 -1
- package/esm/chart/sunburst/sunburst.js +6 -0
- package/esm/chart/sunburst/sunburst.js.map +1 -1
- package/esm/chart/treemap/treemap.js +6 -0
- package/esm/chart/treemap/treemap.js.map +1 -1
- package/esm/chart/waterfall/waterfall.js +6 -0
- package/esm/chart/waterfall/waterfall.js.map +1 -1
- package/esm/chart/word-cloud/base.d.ts +6 -0
- package/esm/chart/word-cloud/base.js +21 -0
- package/esm/chart/word-cloud/base.js.map +1 -0
- package/esm/chart/word-cloud/index.d.ts +1 -0
- package/esm/chart/word-cloud/index.js +2 -0
- package/esm/chart/word-cloud/index.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud-3d.d.ts +9 -0
- package/esm/chart/word-cloud/word-cloud-3d.js +47 -0
- package/esm/chart/word-cloud/word-cloud-3d.js.map +1 -0
- package/esm/chart/word-cloud/word-cloud.d.ts +2 -15
- package/esm/chart/word-cloud/word-cloud.js +6 -50
- package/esm/chart/word-cloud/word-cloud.js.map +1 -1
- package/esm/compile/grammar-item.js +1 -2
- package/esm/component/index.d.ts +39 -1
- package/esm/component/index.js +39 -1
- package/esm/component/index.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +1 -1
- package/esm/component/legend/util.d.ts +3 -3
- package/esm/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
- package/esm/constant/marker.js +1 -2
- package/esm/constant/word-cloud.js +2 -1
- package/esm/core/factory.js +1 -1
- package/esm/{export/core.d.ts → core/index.d.ts} +4 -4
- package/esm/{export/core.js → core/index.js} +5 -5
- package/esm/core/index.js.map +1 -0
- package/esm/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/vchart.js +1 -1
- package/esm/data/initialize.js +2 -1
- package/esm/index.d.ts +6 -6
- package/esm/index.js +6 -6
- package/esm/index.js.map +1 -1
- package/esm/interaction/interface.js +1 -1
- package/esm/interaction/trigger.js +1 -1
- package/esm/layout/base-layout.d.ts +24 -0
- package/esm/layout/base-layout.js +116 -0
- package/esm/layout/base-layout.js.map +1 -0
- package/esm/layout/index.d.ts +7 -24
- package/esm/layout/index.js +8 -115
- package/esm/layout/index.js.map +1 -1
- package/esm/layout/layout3d/index.d.ts +1 -1
- package/esm/layout/layout3d/index.js +1 -1
- package/esm/layout/layout3d/index.js.map +1 -1
- package/esm/mark/arc-3d.d.ts +9 -0
- package/esm/mark/arc-3d.js +12 -0
- package/esm/mark/arc-3d.js.map +1 -0
- package/esm/mark/arc.d.ts +1 -6
- package/esm/mark/arc.js +0 -8
- package/esm/mark/arc.js.map +1 -1
- package/esm/mark/index.d.ts +21 -0
- package/esm/mark/index.js +40 -0
- package/esm/mark/index.js.map +1 -0
- package/esm/mark/{linkPath.js → link-path.js} +1 -1
- package/esm/mark/link-path.js.map +1 -0
- package/esm/mark/polygon/base-polygon.d.ts +6 -0
- package/esm/mark/polygon/base-polygon.js +10 -0
- package/esm/mark/polygon/base-polygon.js.map +1 -0
- package/esm/mark/polygon/polygon.d.ts +9 -0
- package/esm/mark/polygon/polygon.js +12 -0
- package/esm/mark/polygon/polygon.js.map +1 -0
- package/esm/mark/polygon/pyramid-3d.d.ts +9 -0
- package/esm/mark/polygon/pyramid-3d.js +12 -0
- package/esm/mark/polygon/pyramid-3d.js.map +1 -0
- package/esm/mark/rect-3d.d.ts +10 -0
- package/esm/mark/rect-3d.js +19 -0
- package/esm/mark/rect-3d.js.map +1 -0
- package/esm/mark/rect.d.ts +1 -7
- package/esm/mark/rect.js +0 -15
- package/esm/mark/rect.js.map +1 -1
- package/esm/model/layout-item.js +1 -2
- package/esm/plugin/interface.js +1 -1
- package/esm/region/region.js +1 -1
- package/esm/series/area/area.js +12 -0
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/bar/bar-3d.d.ts +11 -0
- package/esm/series/bar/bar-3d.js +30 -0
- package/esm/series/bar/bar-3d.js.map +1 -0
- package/esm/series/bar/bar.d.ts +0 -7
- package/esm/series/bar/bar.js +8 -14
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/box-plot/box-plot.js +8 -0
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +8 -0
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/dot/dot.js +14 -0
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/funnel-3d.d.ts +18 -0
- package/esm/series/funnel/funnel-3d.js +113 -0
- package/esm/series/funnel/funnel-3d.js.map +1 -0
- package/esm/series/funnel/funnel.d.ts +2 -14
- package/esm/series/funnel/funnel.js +10 -93
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/gauge/gauge-pointer.js +8 -0
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge.js +6 -0
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/heatmap/heatmap.js +8 -0
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/index.d.ts +66 -0
- package/esm/series/index.js +70 -0
- package/esm/series/index.js.map +1 -0
- package/esm/series/line/line.js +10 -0
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/link.js +10 -0
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/map/map.js +7 -1
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/pie/pie-3d.d.ts +16 -0
- package/esm/series/pie/pie-3d.js +107 -0
- package/esm/series/pie/pie-3d.js.map +1 -0
- package/esm/series/pie/pie.d.ts +1 -11
- package/esm/series/pie/pie.js +10 -83
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/polar/animation.d.ts +1 -1
- package/esm/series/polar/animation.js.map +1 -1
- package/esm/series/progress/circular/circular.js +8 -0
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/linear/linear.js +6 -0
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/animation.d.ts +1 -1
- package/esm/series/radar/animation.js.map +1 -1
- package/esm/series/radar/radar.js +12 -0
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-column/rangeColumn-3d.d.ts +10 -0
- package/esm/series/range-column/rangeColumn-3d.js +23 -0
- package/esm/series/range-column/rangeColumn-3d.js.map +1 -0
- package/esm/series/range-column/rangeColumn.d.ts +0 -6
- package/esm/series/range-column/rangeColumn.js +0 -9
- package/esm/series/range-column/rangeColumn.js.map +1 -1
- package/esm/series/rose/rose.js +8 -0
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/sankey.js +9 -1
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/scatter.js +8 -0
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/sunburst.js +8 -0
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/treemap.js +8 -0
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/waterfall/waterfall.js +6 -0
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/series/word-cloud/base.d.ts +60 -0
- package/esm/series/word-cloud/base.js +278 -0
- package/esm/series/word-cloud/base.js.map +1 -0
- package/esm/series/word-cloud/word-cloud-3d.d.ts +11 -0
- package/esm/series/word-cloud/word-cloud-3d.js +207 -0
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -0
- package/esm/series/word-cloud/word-cloud.d.ts +2 -69
- package/esm/series/word-cloud/word-cloud.js +2 -461
- package/esm/series/word-cloud/word-cloud.js.map +1 -1
- package/esm/vchart-all.d.ts +1 -1
- package/esm/vchart-all.js +4 -12
- package/esm/vchart-all.js.map +1 -1
- package/esm/vchart-simple.d.ts +1 -1
- package/esm/vchart-simple.js +4 -10
- package/esm/vchart-simple.js.map +1 -1
- package/layout.d.ts +1 -1
- package/layout.js +1 -1
- package/mark.d.ts +1 -1
- package/mark.js +1 -1
- package/package.json +1 -1
- package/series.d.ts +1 -1
- package/series.js +1 -1
- package/cjs/chart/range-column/rangeColumn.js.map +0 -1
- package/cjs/export/chart.d.ts +0 -57
- package/cjs/export/chart.js +0 -298
- package/cjs/export/chart.js.map +0 -1
- package/cjs/export/component.d.ts +0 -39
- package/cjs/export/component.js +0 -207
- package/cjs/export/component.js.map +0 -1
- package/cjs/export/core.js.map +0 -1
- package/cjs/export/layout.d.ts +0 -7
- package/cjs/export/layout.js +0 -33
- package/cjs/export/layout.js.map +0 -1
- package/cjs/export/mark.d.ts +0 -18
- package/cjs/export/mark.js.map +0 -1
- package/cjs/export/series.d.ts +0 -61
- package/cjs/export/series.js.map +0 -1
- package/cjs/mark/linkPath.js.map +0 -1
- package/cjs/mark/polygon.d.ts +0 -18
- package/cjs/mark/polygon.js +0 -32
- package/cjs/mark/polygon.js.map +0 -1
- package/esm/chart/range-column/rangeColumn.js.map +0 -1
- package/esm/export/chart.d.ts +0 -57
- package/esm/export/chart.js +0 -58
- package/esm/export/chart.js.map +0 -1
- package/esm/export/component.d.ts +0 -39
- package/esm/export/component.js +0 -40
- package/esm/export/component.js.map +0 -1
- package/esm/export/core.js.map +0 -1
- package/esm/export/layout.d.ts +0 -7
- package/esm/export/layout.js +0 -8
- package/esm/export/layout.js.map +0 -1
- package/esm/export/mark.d.ts +0 -18
- package/esm/export/mark.js +0 -34
- package/esm/export/mark.js.map +0 -1
- package/esm/export/series.d.ts +0 -61
- package/esm/export/series.js +0 -60
- package/esm/export/series.js.map +0 -1
- package/esm/mark/linkPath.js.map +0 -1
- package/esm/mark/polygon.d.ts +0 -18
- package/esm/mark/polygon.js +0 -28
- package/esm/mark/polygon.js.map +0 -1
- /package/cjs/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
- /package/esm/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CartesianChart } from "../cartesian/cartesian";
|
|
2
|
+
|
|
3
|
+
export class BaseHistogramChart extends CartesianChart {
|
|
4
|
+
transformSpec(spec) {
|
|
5
|
+
super.transformSpec(spec), spec.axes.forEach((axis => axis.type = "linear"));
|
|
6
|
+
}
|
|
7
|
+
_getDefaultSeriesSpec(spec) {
|
|
8
|
+
return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
9
|
+
x2Field: null == spec ? void 0 : spec.x2Field,
|
|
10
|
+
y2Field: null == spec ? void 0 : spec.y2Field
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/histogram/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAA8B,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC;IAChF,CAAC;IAES,qBAAqB,CAAC,IAAS;QACvC,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,OAAO,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EACtB,OAAO,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,IACtB;IACJ,CAAC;CACF","file":"base.js","sourcesContent":["import type { ICartesianAxisCommonSpec } from '../../component/axis/cartesian/interface';\nimport { CartesianChart } from '../cartesian/cartesian';\n\nexport class BaseHistogramChart extends CartesianChart {\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n spec.axes.forEach((axis: ICartesianAxisCommonSpec) => (axis.type = 'linear'));\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n x2Field: spec?.x2Field,\n y2Field: spec?.y2Field\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SeriesTypeEnum } from "../../series/interface";
|
|
2
|
+
|
|
3
|
+
import { ChartTypeEnum } from "../interface";
|
|
4
|
+
|
|
5
|
+
import { BaseHistogramChart } from "./base";
|
|
6
|
+
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { Bar3dSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ Bar3dSeries ]);
|
|
12
|
+
|
|
13
|
+
export class Histogram3dChart extends BaseHistogramChart {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = ChartTypeEnum.histogram3d, this.seriesType = SeriesTypeEnum.bar3d;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Histogram3dChart.type = ChartTypeEnum.histogram3d, Histogram3dChart.view = "singleDefault";
|
|
20
|
+
//# sourceMappingURL=histogram-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/histogram/histogram-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,MAAM,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AAEhC,MAAM,OAAO,gBAAiB,SAAQ,kBAAkB;IAAxD;;QAGW,SAAI,GAAW,aAAa,CAAC,WAAW,CAAC;QACzC,eAAU,GAAW,cAAc,CAAC,KAAK,CAAC;IACrD,CAAC;;AAJiB,qBAAI,GAAW,aAAa,CAAC,WAAW,CAAC;AACzC,qBAAI,GAAW,eAAe,CAAC","file":"histogram-3d.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { BaseHistogramChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { Bar3dSeries } from '../../series';\nVChart.useSeries([Bar3dSeries]);\n\nexport class Histogram3dChart extends BaseHistogramChart {\n static readonly type: string = ChartTypeEnum.histogram3d;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.histogram3d;\n readonly seriesType: string = SeriesTypeEnum.bar3d;\n}\n"]}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare class BaseHistogramChart extends CartesianChart {
|
|
3
|
-
transformSpec(spec: any): void;
|
|
4
|
-
protected _getDefaultSeriesSpec(spec: any): any;
|
|
5
|
-
}
|
|
1
|
+
import { BaseHistogramChart } from './base';
|
|
6
2
|
export declare class HistogramChart extends BaseHistogramChart {
|
|
7
3
|
static readonly type: string;
|
|
8
4
|
static readonly view: string;
|
|
9
5
|
readonly type: string;
|
|
10
6
|
readonly seriesType: string;
|
|
11
7
|
}
|
|
12
|
-
export declare class Histogram3dChart extends BaseHistogramChart {
|
|
13
|
-
static readonly type: string;
|
|
14
|
-
static readonly view: string;
|
|
15
|
-
readonly type: string;
|
|
16
|
-
readonly seriesType: string;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { SeriesTypeEnum } from "../../series/interface";
|
|
2
2
|
|
|
3
|
-
import { CartesianChart } from "../cartesian/cartesian";
|
|
4
|
-
|
|
5
3
|
import { ChartTypeEnum } from "../interface";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
y2Field: null == spec ? void 0 : spec.y2Field
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
5
|
+
import { BaseHistogramChart } from "./base";
|
|
6
|
+
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { BarSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ BarSeries ]);
|
|
18
12
|
|
|
19
13
|
export class HistogramChart extends BaseHistogramChart {
|
|
20
14
|
constructor() {
|
|
@@ -23,12 +17,4 @@ export class HistogramChart extends BaseHistogramChart {
|
|
|
23
17
|
}
|
|
24
18
|
|
|
25
19
|
HistogramChart.type = ChartTypeEnum.histogram, HistogramChart.view = "singleDefault";
|
|
26
|
-
|
|
27
|
-
export class Histogram3dChart extends BaseHistogramChart {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments), this.type = ChartTypeEnum.histogram3d, this.seriesType = SeriesTypeEnum.bar3d;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
Histogram3dChart.type = ChartTypeEnum.histogram3d, Histogram3dChart.view = "singleDefault";
|
|
34
20
|
//# sourceMappingURL=histogram.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/histogram/histogram.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/chart/histogram/histogram.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE9B,MAAM,OAAO,cAAe,SAAQ,kBAAkB;IAAtD;;QAGW,SAAI,GAAW,aAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,cAAc,CAAC,GAAG,CAAC;IACnD,CAAC;;AAJiB,mBAAI,GAAW,aAAa,CAAC,SAAS,CAAC;AACvC,mBAAI,GAAW,eAAe,CAAC","file":"histogram.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { BaseHistogramChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { BarSeries } from '../../series';\nVChart.useSeries([BarSeries]);\n\nexport class HistogramChart extends BaseHistogramChart {\n static readonly type: string = ChartTypeEnum.histogram;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.histogram;\n readonly seriesType: string = SeriesTypeEnum.bar;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './interface';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './histogram-3d';\nexport * from './interface';\n"]}
|
package/esm/chart/index.d.ts
CHANGED
|
@@ -1,22 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import type { IAreaChartSpec } from './area';
|
|
2
|
+
import { AreaChart } from './area';
|
|
3
|
+
import type { IBarChartSpec, IBar3dChartSpec } from './bar';
|
|
4
|
+
import { BarChart, Bar3dChart } from './bar';
|
|
5
|
+
import type { IBoxPlotChartSpec } from './box-plot';
|
|
6
|
+
import { BoxPlotChart } from './box-plot';
|
|
7
|
+
import type { ICirclePackingChartSpec } from './circle-packing';
|
|
8
|
+
import { CirclePackingChart } from './circle-packing';
|
|
9
|
+
import type { ICommonChartSpec } from './common';
|
|
10
|
+
import { CommonChart } from './common';
|
|
11
|
+
import type { IFunnelChartSpec, IFunnel3dChartSpec } from './funnel';
|
|
12
|
+
import { FunnelChart, Funnel3dChart } from './funnel';
|
|
13
|
+
import type { IGaugeChartSpec } from './gauge';
|
|
14
|
+
import { GaugeChart } from './gauge';
|
|
15
|
+
import type { IHeatmapChartSpec } from './heatmap';
|
|
16
|
+
import { HeatmapChart } from './heatmap';
|
|
17
|
+
import type { IHistogramChartSpec, IHistogram3dChartSpec } from './histogram';
|
|
18
|
+
import { HistogramChart, Histogram3dChart } from './histogram';
|
|
19
|
+
import type { ILineChartSpec } from './line';
|
|
20
|
+
import { LineChart } from './line';
|
|
21
|
+
import type { IMapChartSpec } from './map';
|
|
22
|
+
import { MapChart } from './map';
|
|
23
|
+
import type { IPieChartSpec, IPie3dChartSpec } from './pie';
|
|
24
|
+
import { PieChart, Pie3dChart } from './pie';
|
|
25
|
+
import type { ICircularProgressChartSpec } from './progress/circular';
|
|
26
|
+
import { CircularProgressChart } from './progress/circular';
|
|
27
|
+
import type { ILinearProgressChartSpec } from './progress/linear';
|
|
28
|
+
import { LinearProgressChart } from './progress/linear';
|
|
29
|
+
import type { IRadarChartSpec } from './radar';
|
|
30
|
+
import { RadarChart } from './radar';
|
|
31
|
+
import type { IRangeAreaChartSpec } from './range-area';
|
|
32
|
+
import { RangeAreaChart } from './range-area';
|
|
33
|
+
import type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from './range-column';
|
|
34
|
+
import { RangeColumnChart, RangeColumn3dChart } from './range-column';
|
|
35
|
+
import type { IRoseChartSpec } from './rose';
|
|
36
|
+
import { RoseChart } from './rose';
|
|
37
|
+
import type { ISankeyChartSpec } from './sankey';
|
|
38
|
+
import { SankeyChart } from './sankey';
|
|
39
|
+
import type { IScatterChartSpec } from './scatter';
|
|
40
|
+
import { ScatterChart } from './scatter';
|
|
41
|
+
import type { ISequenceChartSpec } from './sequence';
|
|
42
|
+
import { SequenceChart } from './sequence';
|
|
43
|
+
import type { ISunburstChartSpec } from './sunburst';
|
|
44
|
+
import { SunburstChart } from './sunburst';
|
|
45
|
+
import type { ITreemapChartSpec } from './treemap';
|
|
46
|
+
import { TreeMapChart } from './treemap';
|
|
47
|
+
import type { IWaterfallChartSpec } from './waterfall';
|
|
48
|
+
import { WaterfallChart } from './waterfall';
|
|
49
|
+
import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';
|
|
50
|
+
import { WordCloudChart, WordCloud3dChart } from './word-cloud';
|
|
51
|
+
import { BaseChart } from './base-chart';
|
|
52
|
+
import type { ICartesianChartSpec } from './cartesian';
|
|
53
|
+
import { CartesianChart } from './cartesian';
|
|
54
|
+
import type { IPolarChartSpec } from './polar';
|
|
55
|
+
import { PolarChart, RoseLikeChart, ProgressLikeChart } from './polar';
|
|
56
|
+
export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, WordCloudChart, WordCloud3dChart, TreeMapChart, BaseChart, PolarChart, ProgressLikeChart, RoseLikeChart, CartesianChart };
|
|
57
|
+
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, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec };
|
package/esm/chart/index.js
CHANGED
|
@@ -1,44 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import { AreaChart } from "./area";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import { BarChart, Bar3dChart } from "./bar";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { BoxPlotChart } from "./box-plot";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { CirclePackingChart } from "./circle-packing";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import { CommonChart } from "./common";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
import { FunnelChart, Funnel3dChart } from "./funnel";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
import { GaugeChart } from "./gauge";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
import { HeatmapChart } from "./heatmap";
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
import { HistogramChart, Histogram3dChart } from "./histogram";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
import { LineChart } from "./line";
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
import { MapChart } from "./map";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
import { PieChart, Pie3dChart } from "./pie";
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
import { CircularProgressChart } from "./progress/circular";
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
import { LinearProgressChart } from "./progress/linear";
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
import { RadarChart } from "./radar";
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
import { RangeAreaChart } from "./range-area";
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
import { RangeColumnChart, RangeColumn3dChart } from "./range-column";
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
import { RoseChart } from "./rose";
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
import { SankeyChart } from "./sankey";
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
import { ScatterChart } from "./scatter";
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import { SequenceChart } from "./sequence";
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
import { SunburstChart } from "./sunburst";
|
|
44
|
+
|
|
45
|
+
import { TreeMapChart } from "./treemap";
|
|
46
|
+
|
|
47
|
+
import { WaterfallChart } from "./waterfall";
|
|
48
|
+
|
|
49
|
+
import { WordCloudChart, WordCloud3dChart } from "./word-cloud";
|
|
50
|
+
|
|
51
|
+
import { BaseChart } from "./base-chart";
|
|
52
|
+
|
|
53
|
+
import { CartesianChart } from "./cartesian";
|
|
54
|
+
|
|
55
|
+
import { PolarChart, RoseLikeChart, ProgressLikeChart } from "./polar";
|
|
56
|
+
|
|
57
|
+
export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, WordCloudChart, WordCloud3dChart, TreeMapChart, BaseChart, PolarChart, ProgressLikeChart, RoseLikeChart, CartesianChart };
|
|
44
58
|
//# sourceMappingURL=index.js.map
|
package/esm/chart/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/chart/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,cAAc,EACf,CAAC","file":"index.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\n/**\n * @description export all chart modules\n */\nimport type { IAreaChartSpec } from './area';\nimport { AreaChart } from './area';\nimport type { IBarChartSpec, IBar3dChartSpec } from './bar';\nimport { BarChart, Bar3dChart } from './bar';\nimport type { IBoxPlotChartSpec } from './box-plot';\nimport { BoxPlotChart } from './box-plot';\nimport type { ICirclePackingChartSpec } from './circle-packing';\nimport { CirclePackingChart } from './circle-packing';\nimport type { ICommonChartSpec } from './common';\nimport { CommonChart } from './common';\nimport type { IFunnelChartSpec, IFunnel3dChartSpec } from './funnel';\nimport { FunnelChart, Funnel3dChart } from './funnel';\nimport type { IGaugeChartSpec } from './gauge';\nimport { GaugeChart } from './gauge';\nimport type { IHeatmapChartSpec } from './heatmap';\nimport { HeatmapChart } from './heatmap';\nimport type { IHistogramChartSpec, IHistogram3dChartSpec } from './histogram';\nimport { HistogramChart, Histogram3dChart } from './histogram';\nimport type { ILineChartSpec } from './line';\nimport { LineChart } from './line';\nimport type { IMapChartSpec } from './map';\nimport { MapChart } from './map';\nimport type { IPieChartSpec, IPie3dChartSpec } from './pie';\nimport { PieChart, Pie3dChart } from './pie';\nimport type { ICircularProgressChartSpec } from './progress/circular';\nimport { CircularProgressChart } from './progress/circular';\nimport type { ILinearProgressChartSpec } from './progress/linear';\nimport { LinearProgressChart } from './progress/linear';\nimport type { IRadarChartSpec } from './radar';\nimport { RadarChart } from './radar';\nimport type { IRangeAreaChartSpec } from './range-area';\nimport { RangeAreaChart } from './range-area';\nimport type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from './range-column';\nimport { RangeColumnChart, RangeColumn3dChart } from './range-column';\nimport type { IRoseChartSpec } from './rose';\nimport { RoseChart } from './rose';\nimport type { ISankeyChartSpec } from './sankey';\nimport { SankeyChart } from './sankey';\nimport type { IScatterChartSpec } from './scatter';\nimport { ScatterChart } from './scatter';\nimport type { ISequenceChartSpec } from './sequence';\nimport { SequenceChart } from './sequence';\nimport type { ISunburstChartSpec } from './sunburst';\nimport { SunburstChart } from './sunburst';\nimport type { ITreemapChartSpec } from './treemap';\nimport { TreeMapChart } from './treemap';\nimport type { IWaterfallChartSpec } from './waterfall';\nimport { WaterfallChart } from './waterfall';\nimport type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';\nimport { WordCloudChart, WordCloud3dChart } from './word-cloud';\nimport { BaseChart } from './base-chart';\nimport type { ICartesianChartSpec } from './cartesian';\nimport { CartesianChart } from './cartesian';\nimport type { IPolarChartSpec } from './polar';\nimport { PolarChart, RoseLikeChart, ProgressLikeChart } from './polar';\n\nexport {\n AreaChart,\n BarChart,\n Bar3dChart,\n BoxPlotChart,\n CirclePackingChart,\n CommonChart,\n FunnelChart,\n Funnel3dChart,\n GaugeChart,\n HeatmapChart,\n HistogramChart,\n Histogram3dChart,\n LineChart,\n MapChart,\n PieChart,\n Pie3dChart,\n CircularProgressChart,\n LinearProgressChart,\n RadarChart,\n RangeColumnChart,\n RangeColumn3dChart,\n RangeAreaChart,\n RoseChart,\n SankeyChart,\n ScatterChart,\n SunburstChart,\n SequenceChart,\n WaterfallChart,\n WordCloudChart,\n WordCloud3dChart,\n TreeMapChart,\n BaseChart,\n PolarChart,\n ProgressLikeChart,\n RoseLikeChart,\n CartesianChart\n};\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 IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec\n};\n"]}
|
package/esm/chart/line/line.js
CHANGED
|
@@ -4,6 +4,12 @@ import { CartesianChart } from "../cartesian/cartesian";
|
|
|
4
4
|
|
|
5
5
|
import { ChartTypeEnum } from "../interface";
|
|
6
6
|
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { LineSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ LineSeries ]);
|
|
12
|
+
|
|
7
13
|
export class LineChart extends CartesianChart {
|
|
8
14
|
constructor() {
|
|
9
15
|
super(...arguments), this.type = ChartTypeEnum.line, this.seriesType = SeriesTypeEnum.line;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAE/B,MAAM,OAAO,SAAU,SAAQ,cAAc;IAA7C;;QAGW,SAAI,GAAW,aAAa,CAAC,IAAI,CAAC;QAClC,eAAU,GAAW,cAAc,CAAC,IAAI,CAAC;IAUpD,CAAC;IARW,qBAAqB,CAAC,IAAoB;QAClD,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,OAAO,EACxC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,IACf;IACJ,CAAC;;AAZe,cAAI,GAAW,aAAa,CAAC,IAAI,CAAC;AAClC,cAAI,GAAW,eAAe,CAAC","file":"line.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { CartesianChart } from '../cartesian/cartesian';\nimport { ChartTypeEnum } from '../interface';\nimport type { ILineChartSpec } from './interface';\nimport { VChart } from '../../core/vchart';\nimport { LineSeries } from '../../series';\nVChart.useSeries([LineSeries]);\n\nexport class LineChart extends CartesianChart {\n static readonly type: string = ChartTypeEnum.line;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.line;\n readonly seriesType: string = SeriesTypeEnum.line;\n\n protected _getDefaultSeriesSpec(spec: ILineChartSpec): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n invalidType: spec.invalidType || 'break',\n point: spec.point,\n line: spec.line\n };\n }\n}\n"]}
|
package/esm/chart/map/map.js
CHANGED
|
@@ -4,6 +4,12 @@ import { SeriesTypeEnum } from "../../series/interface/type";
|
|
|
4
4
|
|
|
5
5
|
import { ChartTypeEnum } from "../interface/type";
|
|
6
6
|
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { MapSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ MapSeries ]);
|
|
12
|
+
|
|
7
13
|
export class MapChart extends BaseChart {
|
|
8
14
|
constructor() {
|
|
9
15
|
super(...arguments), this.type = ChartTypeEnum.map, this.seriesType = SeriesTypeEnum.map;
|
package/esm/chart/map/map.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE9B,MAAM,OAAO,QAAS,SAAQ,SAAS;IAAvC;;QAGW,SAAI,GAAW,aAAa,CAAC,GAAG,CAAC;QACjC,eAAU,GAAW,cAAc,CAAC,GAAG,CAAC;IAiDnD,CAAC;IA/CW,qBAAqB,CAAC,IAAmB;QACjD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAEpC,IAAI,EAAE,IAAI,CAAC,IAAI,EAEf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAE7B,GAAG,EAAE,IAAI,CAAC,GAAG,EAEb,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAE,IAAI,CAAC,IAAI,GAChB,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;IAES,aAAa,CAAC,IAAY;QAClC,OAAO,IAAI,KAAK,cAAc,CAAC,GAAG,CAAC;IACrC,CAAC;IAED,aAAa,CAAC,IAAmB;QAC/B,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;YACrC,CAAC,CAAC,UAAU,GAAG,KAAK,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAqB,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5C,IAAI,CAAC,MAAM,GAAG,CAAC,iBAAiB,CAAC,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAc,EAAE,EAAE;gBACrC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;oBAC/B,OAAO;iBACR;gBACD,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBACzC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;wBACb,CAAC,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;qBAC7B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;;AAnDe,aAAI,GAAW,aAAa,CAAC,GAAG,CAAC;AACjC,aAAI,GAAW,eAAe,CAAC","file":"map.js","sourcesContent":["import { BaseChart } from '../base-chart';\nimport type { IRegionSpec } from '../../region/interface';\nimport { SeriesTypeEnum } from '../../series/interface/type';\nimport { ChartTypeEnum } from '../interface/type';\nimport type { IMapChartSpec } from './interface';\nimport type { IMapSeriesSpec } from '../../series/map/interface';\nimport type { ISeriesSpec } from '../../typings/spec';\nimport { VChart } from '../../core/vchart';\nimport { MapSeries } from '../../series';\nVChart.useSeries([MapSeries]);\n\nexport class MapChart extends BaseChart {\n static readonly type: string = ChartTypeEnum.map;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.map;\n readonly seriesType: string = SeriesTypeEnum.map;\n\n protected _getDefaultSeriesSpec(spec: IMapChartSpec): IMapSeriesSpec {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n\n type: spec.type,\n\n nameField: spec.nameField,\n valueField: spec.valueField,\n seriesField: spec.seriesField,\n\n map: spec.map,\n\n nameProperty: spec.nameProperty,\n nameMap: spec.nameMap,\n area: spec.area\n };\n\n return series;\n }\n\n protected isValidSeries(type: string) {\n return type === SeriesTypeEnum.map;\n }\n\n transformSpec(spec: IMapChartSpec): void {\n super.transformSpec(spec);\n\n spec.region.forEach((r: IRegionSpec) => {\n r.coordinate = 'geo';\n });\n\n const defaultSeriesSpec = this._getDefaultSeriesSpec(spec as IMapChartSpec);\n if (!spec.series || spec.series.length === 0) {\n spec.series = [defaultSeriesSpec];\n } else {\n spec.series.forEach((s: ISeriesSpec) => {\n if (!this.isValidSeries(s.type)) {\n return;\n }\n Object.keys(defaultSeriesSpec).forEach(k => {\n if (!(k in s)) {\n s[k] = defaultSeriesSpec[k];\n }\n });\n });\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PolarChart } from "../polar/polar";
|
|
2
|
+
|
|
3
|
+
export class BasePieChart extends PolarChart {
|
|
4
|
+
needAxes() {
|
|
5
|
+
return !1;
|
|
6
|
+
}
|
|
7
|
+
_getDefaultSeriesSpec(spec) {
|
|
8
|
+
return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
9
|
+
categoryField: spec.categoryField || spec.seriesField,
|
|
10
|
+
valueField: spec.valueField || spec.angleField,
|
|
11
|
+
center: spec.center,
|
|
12
|
+
centerOffset: spec.centerOffset,
|
|
13
|
+
cornerRadius: spec.cornerRadius,
|
|
14
|
+
padAngle: spec.padAngle
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,UAAU;IAChC,QAAQ;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IAES,qBAAqB,CAAC,IAAS;QACvC,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAGpC,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,WAAW,EACrD,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,EAE9C,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,YAAY,EAAE,IAAI,CAAC,YAAY,EAE/B,YAAY,EAAE,IAAI,CAAC,YAAY,EAE/B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB;IACJ,CAAC;CACF","file":"base.js","sourcesContent":["import { PolarChart } from '../polar/polar';\n\nexport class BasePieChart extends PolarChart {\n protected needAxes(): boolean {\n return false;\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n\n // 兼容旧版写法\n categoryField: spec.categoryField || spec.seriesField,\n valueField: spec.valueField || spec.angleField,\n\n center: spec.center,\n centerOffset: spec.centerOffset,\n\n cornerRadius: spec.cornerRadius,\n\n padAngle: spec.padAngle\n };\n }\n}\n"]}
|
package/esm/chart/pie/index.d.ts
CHANGED
package/esm/chart/pie/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './interface';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './pie-3d';\nexport * from './interface';\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SeriesTypeEnum } from "../../series/interface";
|
|
2
|
+
|
|
3
|
+
import { ChartTypeEnum } from "../interface";
|
|
4
|
+
|
|
5
|
+
import { BasePieChart } from "./base";
|
|
6
|
+
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { Pie3dSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ Pie3dSeries ]);
|
|
12
|
+
|
|
13
|
+
export class Pie3dChart extends BasePieChart {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = ChartTypeEnum.pie3d, this.seriesType = SeriesTypeEnum.pie3d;
|
|
16
|
+
}
|
|
17
|
+
transformSpec(spec) {
|
|
18
|
+
super.transformSpec(spec), spec.series.forEach((s => {
|
|
19
|
+
"pie3d" === s.type && (s.angle3d = spec.angle3d);
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
Pie3dChart.type = ChartTypeEnum.pie3d, Pie3dChart.view = "singleDefault";
|
|
25
|
+
//# sourceMappingURL=pie-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/pie-3d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,MAAM,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AAEhC,MAAM,OAAO,UAAW,SAAQ,YAAY;IAA5C;;QAGW,SAAI,GAAW,aAAa,CAAC,KAAK,CAAC;QACnC,eAAU,GAAW,cAAc,CAAC,KAAK,CAAC;IAUrD,CAAC;IARC,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAU,EAAE,EAAE;YACjC,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE;gBACrB,CAAS,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;aACnC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAZe,eAAI,GAAW,aAAa,CAAC,KAAK,CAAC;AACnC,eAAI,GAAW,eAAe,CAAC","file":"pie-3d.js","sourcesContent":["import type { ISeries } from '../../series/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { BasePieChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { Pie3dSeries } from '../../series';\nVChart.useSeries([Pie3dSeries]);\n\nexport class Pie3dChart extends BasePieChart {\n static readonly type: string = ChartTypeEnum.pie3d;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.pie3d;\n readonly seriesType: string = SeriesTypeEnum.pie3d;\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n spec.series.forEach((s: ISeries) => {\n if (s.type === 'pie3d') {\n (s as any).angle3d = spec.angle3d;\n }\n });\n }\n}\n"]}
|
package/esm/chart/pie/pie.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare class BasePieChart extends PolarChart {
|
|
3
|
-
protected needAxes(): boolean;
|
|
4
|
-
protected _getDefaultSeriesSpec(spec: any): any;
|
|
5
|
-
}
|
|
1
|
+
import { BasePieChart } from './base';
|
|
6
2
|
export declare class PieChart extends BasePieChart {
|
|
7
3
|
static readonly type: string;
|
|
8
4
|
static readonly view: string;
|
|
9
5
|
readonly type: string;
|
|
10
6
|
readonly seriesType: string;
|
|
11
7
|
}
|
|
12
|
-
export declare class Pie3dChart extends BasePieChart {
|
|
13
|
-
static readonly type: string;
|
|
14
|
-
static readonly view: string;
|
|
15
|
-
readonly type: string;
|
|
16
|
-
readonly seriesType: string;
|
|
17
|
-
transformSpec(spec: any): void;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
package/esm/chart/pie/pie.js
CHANGED
|
@@ -2,23 +2,13 @@ import { SeriesTypeEnum } from "../../series/interface";
|
|
|
2
2
|
|
|
3
3
|
import { ChartTypeEnum } from "../interface";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { BasePieChart } from "./base";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
13
|
-
categoryField: spec.categoryField || spec.seriesField,
|
|
14
|
-
valueField: spec.valueField || spec.angleField,
|
|
15
|
-
center: spec.center,
|
|
16
|
-
centerOffset: spec.centerOffset,
|
|
17
|
-
cornerRadius: spec.cornerRadius,
|
|
18
|
-
padAngle: spec.padAngle
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { PieSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ PieSeries ]);
|
|
22
12
|
|
|
23
13
|
export class PieChart extends BasePieChart {
|
|
24
14
|
constructor() {
|
|
@@ -27,17 +17,4 @@ export class PieChart extends BasePieChart {
|
|
|
27
17
|
}
|
|
28
18
|
|
|
29
19
|
PieChart.type = ChartTypeEnum.pie, PieChart.view = "singleDefault";
|
|
30
|
-
|
|
31
|
-
export class Pie3dChart extends BasePieChart {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(...arguments), this.type = ChartTypeEnum.pie3d, this.seriesType = SeriesTypeEnum.pie3d;
|
|
34
|
-
}
|
|
35
|
-
transformSpec(spec) {
|
|
36
|
-
super.transformSpec(spec), spec.series.forEach((s => {
|
|
37
|
-
"pie3d" === s.type && (s.angle3d = spec.angle3d);
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
Pie3dChart.type = ChartTypeEnum.pie3d, Pie3dChart.view = "singleDefault";
|
|
43
20
|
//# sourceMappingURL=pie.js.map
|
package/esm/chart/pie/pie.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/pie/pie.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/pie.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE9B,MAAM,OAAO,QAAS,SAAQ,YAAY;IAA1C;;QAGW,SAAI,GAAW,aAAa,CAAC,GAAG,CAAC;QACjC,eAAU,GAAW,cAAc,CAAC,GAAG,CAAC;IACnD,CAAC;;AAJiB,aAAI,GAAW,aAAa,CAAC,GAAG,CAAC;AACjC,aAAI,GAAW,eAAe,CAAC","file":"pie.js","sourcesContent":["// eslint-disable-next-line no-duplicate-imports\nimport { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { BasePieChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { PieSeries } from '../../series';\nVChart.useSeries([PieSeries]);\n\nexport class PieChart extends BasePieChart {\n static readonly type: string = ChartTypeEnum.pie;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.pie;\n readonly seriesType: string = SeriesTypeEnum.pie;\n}\n"]}
|
|
@@ -4,6 +4,12 @@ import { ChartTypeEnum } from "../../interface";
|
|
|
4
4
|
|
|
5
5
|
import { ProgressLikeChart } from "../../polar/progress-like";
|
|
6
6
|
|
|
7
|
+
import { VChart } from "../../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { CircularProgressSeries } from "../../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ CircularProgressSeries ]);
|
|
12
|
+
|
|
7
13
|
export class CircularProgressChart extends ProgressLikeChart {
|
|
8
14
|
constructor() {
|
|
9
15
|
super(...arguments), this.type = ChartTypeEnum.circularProgress, this.seriesType = SeriesTypeEnum.circularProgress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/progress/circular/circular.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/chart/progress/circular/circular.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,MAAM,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAE3C,MAAM,OAAO,qBAAsB,SAAQ,iBAAiB;IAA5D;;QAGW,SAAI,GAAW,aAAa,CAAC,gBAAgB,CAAC;QAC9C,eAAU,GAAW,cAAc,CAAC,gBAAgB,CAAC;IA6BhE,CAAC;IA3BW,qBAAqB,CAAC,IAAS;;QACvC,MAAM,MAAM,GAAG,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACjD,uCACK,MAAM,KAET,YAAY,EAAE,MAAA,IAAI,CAAC,YAAY,mCAAI,CAAC,EACpC,QAAQ,EAAE,MAAA,IAAI,CAAC,QAAQ,mCAAI,KAAK,EAEhC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,UAAU,EAAE,IAAI,CAAC,UAAU,IAC3B;IACJ,CAAC;IAED,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,0BAA0B,CAC7B,IAAI,EACJ;YACE,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,KAAK;SACf,EACD;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,KAAK;SACf,CACF,CAAC;IACJ,CAAC;;AA/Be,0BAAI,GAAW,aAAa,CAAC,gBAAgB,CAAC;AAC9C,0BAAI,GAAW,eAAe,CAAC","file":"circular.js","sourcesContent":["import { SeriesTypeEnum } from '../../../series/interface/type';\nimport { ChartTypeEnum } from '../../interface';\nimport { ProgressLikeChart } from '../../polar/progress-like';\nimport { VChart } from '../../../core/vchart';\nimport { CircularProgressSeries } from '../../../series';\nVChart.useSeries([CircularProgressSeries]);\n\nexport class CircularProgressChart extends ProgressLikeChart {\n static readonly type: string = ChartTypeEnum.circularProgress;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.circularProgress;\n readonly seriesType: string = SeriesTypeEnum.circularProgress;\n\n protected _getDefaultSeriesSpec(spec: any): any {\n const series = super._getDefaultSeriesSpec(spec);\n return {\n ...series,\n\n cornerRadius: spec.cornerRadius ?? 0,\n roundCap: spec.roundCap ?? false,\n\n progress: spec.progress,\n background: spec.background\n };\n }\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n this._transformProgressAxisSpec(\n spec,\n {\n orient: 'angle',\n visible: false\n },\n {\n orient: 'radius',\n visible: false\n }\n );\n }\n}\n"]}
|