@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
|
@@ -2,23 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.
|
|
5
|
+
}), exports.HistogramChart = void 0;
|
|
6
6
|
|
|
7
|
-
const interface_1 = require("../../series/interface"),
|
|
7
|
+
const interface_1 = require("../../series/interface"), interface_2 = require("../interface"), base_1 = require("./base"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
transformSpec(spec) {
|
|
11
|
-
super.transformSpec(spec), spec.axes.forEach((axis => axis.type = "linear"));
|
|
12
|
-
}
|
|
13
|
-
_getDefaultSeriesSpec(spec) {
|
|
14
|
-
return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
15
|
-
x2Field: null == spec ? void 0 : spec.x2Field,
|
|
16
|
-
y2Field: null == spec ? void 0 : spec.y2Field
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.BarSeries ]);
|
|
20
10
|
|
|
21
|
-
class HistogramChart extends BaseHistogramChart {
|
|
11
|
+
class HistogramChart extends base_1.BaseHistogramChart {
|
|
22
12
|
constructor() {
|
|
23
13
|
super(...arguments), this.type = interface_2.ChartTypeEnum.histogram, this.seriesType = interface_1.SeriesTypeEnum.bar;
|
|
24
14
|
}
|
|
@@ -26,13 +16,4 @@ class HistogramChart extends BaseHistogramChart {
|
|
|
26
16
|
|
|
27
17
|
exports.HistogramChart = HistogramChart, HistogramChart.type = interface_2.ChartTypeEnum.histogram,
|
|
28
18
|
HistogramChart.view = "singleDefault";
|
|
29
|
-
|
|
30
|
-
class Histogram3dChart extends BaseHistogramChart {
|
|
31
|
-
constructor() {
|
|
32
|
-
super(...arguments), this.type = interface_2.ChartTypeEnum.histogram3d, this.seriesType = interface_1.SeriesTypeEnum.bar3d;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
exports.Histogram3dChart = Histogram3dChart, Histogram3dChart.type = interface_2.ChartTypeEnum.histogram3d,
|
|
37
|
-
Histogram3dChart.view = "singleDefault";
|
|
38
19
|
//# 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,sDAAwD;AACxD,4CAA6C;AAC7C,iCAA4C;AAC5C,8CAA2C;AAC3C,yCAAyC;AACzC,eAAM,CAAC,SAAS,CAAC,CAAC,kBAAS,CAAC,CAAC,CAAC;AAE9B,MAAa,cAAe,SAAQ,yBAAkB;IAAtD;;QAGW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,GAAG,CAAC;IACnD,CAAC;;AALD,wCAKC;AAJiB,mBAAI,GAAW,yBAAa,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"]}
|
|
@@ -17,5 +17,6 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
|
-
}), __exportStar(require("./histogram"), exports), __exportStar(require("./
|
|
20
|
+
}), __exportStar(require("./histogram"), exports), __exportStar(require("./histogram-3d"), exports),
|
|
21
|
+
__exportStar(require("./interface"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './interface';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/chart/histogram/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,8CAA4B","file":"index.js","sourcesContent":["export * from './histogram';\nexport * from './histogram-3d';\nexport * from './interface';\n"]}
|
package/cjs/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/cjs/chart/index.js
CHANGED
|
@@ -1,31 +1,298 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
19
4
|
value: !0
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
}), exports.CartesianChart = exports.RoseLikeChart = exports.ProgressLikeChart = exports.PolarChart = exports.BaseChart = exports.TreeMapChart = exports.WordCloud3dChart = exports.WordCloudChart = exports.WaterfallChart = exports.SequenceChart = exports.SunburstChart = exports.ScatterChart = exports.SankeyChart = exports.RoseChart = exports.RangeAreaChart = exports.RangeColumn3dChart = exports.RangeColumnChart = exports.RadarChart = exports.LinearProgressChart = exports.CircularProgressChart = exports.Pie3dChart = exports.PieChart = exports.MapChart = exports.LineChart = exports.Histogram3dChart = exports.HistogramChart = exports.HeatmapChart = exports.GaugeChart = exports.Funnel3dChart = exports.FunnelChart = exports.CommonChart = exports.CirclePackingChart = exports.BoxPlotChart = exports.Bar3dChart = exports.BarChart = exports.AreaChart = void 0;
|
|
6
|
+
|
|
7
|
+
const area_1 = require("./area");
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "AreaChart", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return area_1.AreaChart;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const bar_1 = require("./bar");
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "BarChart", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
get: function() {
|
|
21
|
+
return bar_1.BarChart;
|
|
22
|
+
}
|
|
23
|
+
}), Object.defineProperty(exports, "Bar3dChart", {
|
|
24
|
+
enumerable: !0,
|
|
25
|
+
get: function() {
|
|
26
|
+
return bar_1.Bar3dChart;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const box_plot_1 = require("./box-plot");
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(exports, "BoxPlotChart", {
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
get: function() {
|
|
35
|
+
return box_plot_1.BoxPlotChart;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const circle_packing_1 = require("./circle-packing");
|
|
40
|
+
|
|
41
|
+
Object.defineProperty(exports, "CirclePackingChart", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
get: function() {
|
|
44
|
+
return circle_packing_1.CirclePackingChart;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const common_1 = require("./common");
|
|
49
|
+
|
|
50
|
+
Object.defineProperty(exports, "CommonChart", {
|
|
51
|
+
enumerable: !0,
|
|
52
|
+
get: function() {
|
|
53
|
+
return common_1.CommonChart;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const funnel_1 = require("./funnel");
|
|
58
|
+
|
|
59
|
+
Object.defineProperty(exports, "FunnelChart", {
|
|
60
|
+
enumerable: !0,
|
|
61
|
+
get: function() {
|
|
62
|
+
return funnel_1.FunnelChart;
|
|
63
|
+
}
|
|
64
|
+
}), Object.defineProperty(exports, "Funnel3dChart", {
|
|
65
|
+
enumerable: !0,
|
|
66
|
+
get: function() {
|
|
67
|
+
return funnel_1.Funnel3dChart;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const gauge_1 = require("./gauge");
|
|
72
|
+
|
|
73
|
+
Object.defineProperty(exports, "GaugeChart", {
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
get: function() {
|
|
76
|
+
return gauge_1.GaugeChart;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const heatmap_1 = require("./heatmap");
|
|
81
|
+
|
|
82
|
+
Object.defineProperty(exports, "HeatmapChart", {
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
get: function() {
|
|
85
|
+
return heatmap_1.HeatmapChart;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const histogram_1 = require("./histogram");
|
|
90
|
+
|
|
91
|
+
Object.defineProperty(exports, "HistogramChart", {
|
|
92
|
+
enumerable: !0,
|
|
93
|
+
get: function() {
|
|
94
|
+
return histogram_1.HistogramChart;
|
|
95
|
+
}
|
|
96
|
+
}), Object.defineProperty(exports, "Histogram3dChart", {
|
|
97
|
+
enumerable: !0,
|
|
98
|
+
get: function() {
|
|
99
|
+
return histogram_1.Histogram3dChart;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const line_1 = require("./line");
|
|
104
|
+
|
|
105
|
+
Object.defineProperty(exports, "LineChart", {
|
|
106
|
+
enumerable: !0,
|
|
107
|
+
get: function() {
|
|
108
|
+
return line_1.LineChart;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const map_1 = require("./map");
|
|
113
|
+
|
|
114
|
+
Object.defineProperty(exports, "MapChart", {
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
get: function() {
|
|
117
|
+
return map_1.MapChart;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const pie_1 = require("./pie");
|
|
122
|
+
|
|
123
|
+
Object.defineProperty(exports, "PieChart", {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: function() {
|
|
126
|
+
return pie_1.PieChart;
|
|
127
|
+
}
|
|
128
|
+
}), Object.defineProperty(exports, "Pie3dChart", {
|
|
129
|
+
enumerable: !0,
|
|
130
|
+
get: function() {
|
|
131
|
+
return pie_1.Pie3dChart;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const circular_1 = require("./progress/circular");
|
|
136
|
+
|
|
137
|
+
Object.defineProperty(exports, "CircularProgressChart", {
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
get: function() {
|
|
140
|
+
return circular_1.CircularProgressChart;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const linear_1 = require("./progress/linear");
|
|
145
|
+
|
|
146
|
+
Object.defineProperty(exports, "LinearProgressChart", {
|
|
147
|
+
enumerable: !0,
|
|
148
|
+
get: function() {
|
|
149
|
+
return linear_1.LinearProgressChart;
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
const radar_1 = require("./radar");
|
|
154
|
+
|
|
155
|
+
Object.defineProperty(exports, "RadarChart", {
|
|
156
|
+
enumerable: !0,
|
|
157
|
+
get: function() {
|
|
158
|
+
return radar_1.RadarChart;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
const range_area_1 = require("./range-area");
|
|
163
|
+
|
|
164
|
+
Object.defineProperty(exports, "RangeAreaChart", {
|
|
165
|
+
enumerable: !0,
|
|
166
|
+
get: function() {
|
|
167
|
+
return range_area_1.RangeAreaChart;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
const range_column_1 = require("./range-column");
|
|
172
|
+
|
|
173
|
+
Object.defineProperty(exports, "RangeColumnChart", {
|
|
174
|
+
enumerable: !0,
|
|
175
|
+
get: function() {
|
|
176
|
+
return range_column_1.RangeColumnChart;
|
|
177
|
+
}
|
|
178
|
+
}), Object.defineProperty(exports, "RangeColumn3dChart", {
|
|
179
|
+
enumerable: !0,
|
|
180
|
+
get: function() {
|
|
181
|
+
return range_column_1.RangeColumn3dChart;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
const rose_1 = require("./rose");
|
|
186
|
+
|
|
187
|
+
Object.defineProperty(exports, "RoseChart", {
|
|
188
|
+
enumerable: !0,
|
|
189
|
+
get: function() {
|
|
190
|
+
return rose_1.RoseChart;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const sankey_1 = require("./sankey");
|
|
195
|
+
|
|
196
|
+
Object.defineProperty(exports, "SankeyChart", {
|
|
197
|
+
enumerable: !0,
|
|
198
|
+
get: function() {
|
|
199
|
+
return sankey_1.SankeyChart;
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
const scatter_1 = require("./scatter");
|
|
204
|
+
|
|
205
|
+
Object.defineProperty(exports, "ScatterChart", {
|
|
206
|
+
enumerable: !0,
|
|
207
|
+
get: function() {
|
|
208
|
+
return scatter_1.ScatterChart;
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
const sequence_1 = require("./sequence");
|
|
213
|
+
|
|
214
|
+
Object.defineProperty(exports, "SequenceChart", {
|
|
215
|
+
enumerable: !0,
|
|
216
|
+
get: function() {
|
|
217
|
+
return sequence_1.SequenceChart;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
const sunburst_1 = require("./sunburst");
|
|
222
|
+
|
|
223
|
+
Object.defineProperty(exports, "SunburstChart", {
|
|
224
|
+
enumerable: !0,
|
|
225
|
+
get: function() {
|
|
226
|
+
return sunburst_1.SunburstChart;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
const treemap_1 = require("./treemap");
|
|
231
|
+
|
|
232
|
+
Object.defineProperty(exports, "TreeMapChart", {
|
|
233
|
+
enumerable: !0,
|
|
234
|
+
get: function() {
|
|
235
|
+
return treemap_1.TreeMapChart;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
const waterfall_1 = require("./waterfall");
|
|
240
|
+
|
|
241
|
+
Object.defineProperty(exports, "WaterfallChart", {
|
|
242
|
+
enumerable: !0,
|
|
243
|
+
get: function() {
|
|
244
|
+
return waterfall_1.WaterfallChart;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
const word_cloud_1 = require("./word-cloud");
|
|
249
|
+
|
|
250
|
+
Object.defineProperty(exports, "WordCloudChart", {
|
|
251
|
+
enumerable: !0,
|
|
252
|
+
get: function() {
|
|
253
|
+
return word_cloud_1.WordCloudChart;
|
|
254
|
+
}
|
|
255
|
+
}), Object.defineProperty(exports, "WordCloud3dChart", {
|
|
256
|
+
enumerable: !0,
|
|
257
|
+
get: function() {
|
|
258
|
+
return word_cloud_1.WordCloud3dChart;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
const base_chart_1 = require("./base-chart");
|
|
263
|
+
|
|
264
|
+
Object.defineProperty(exports, "BaseChart", {
|
|
265
|
+
enumerable: !0,
|
|
266
|
+
get: function() {
|
|
267
|
+
return base_chart_1.BaseChart;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
const cartesian_1 = require("./cartesian");
|
|
272
|
+
|
|
273
|
+
Object.defineProperty(exports, "CartesianChart", {
|
|
274
|
+
enumerable: !0,
|
|
275
|
+
get: function() {
|
|
276
|
+
return cartesian_1.CartesianChart;
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
const polar_1 = require("./polar");
|
|
281
|
+
|
|
282
|
+
Object.defineProperty(exports, "PolarChart", {
|
|
283
|
+
enumerable: !0,
|
|
284
|
+
get: function() {
|
|
285
|
+
return polar_1.PolarChart;
|
|
286
|
+
}
|
|
287
|
+
}), Object.defineProperty(exports, "RoseLikeChart", {
|
|
288
|
+
enumerable: !0,
|
|
289
|
+
get: function() {
|
|
290
|
+
return polar_1.RoseLikeChart;
|
|
291
|
+
}
|
|
292
|
+
}), Object.defineProperty(exports, "ProgressLikeChart", {
|
|
293
|
+
enumerable: !0,
|
|
294
|
+
get: function() {
|
|
295
|
+
return polar_1.ProgressLikeChart;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
31
298
|
//# sourceMappingURL=index.js.map
|
package/cjs/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,iCAAmC;AAwDjC,0FAxDO,gBAAS,OAwDP;AAtDX,+BAA6C;AAuD3C,yFAvDO,cAAQ,OAuDP;AACR,2FAxDiB,gBAAU,OAwDjB;AAtDZ,yCAA0C;AAuDxC,6FAvDO,uBAAY,OAuDP;AArDd,qDAAsD;AAsDpD,mGAtDO,mCAAkB,OAsDP;AApDpB,qCAAuC;AAqDrC,4FArDO,oBAAW,OAqDP;AAnDb,qCAAsD;AAoDpD,4FApDO,oBAAW,OAoDP;AACX,8FArDoB,sBAAa,OAqDpB;AAnDf,mCAAqC;AAoDnC,2FApDO,kBAAU,OAoDP;AAlDZ,uCAAyC;AAmDvC,6FAnDO,sBAAY,OAmDP;AAjDd,2CAA+D;AAkD7D,+FAlDO,0BAAc,OAkDP;AACd,iGAnDuB,4BAAgB,OAmDvB;AAjDlB,iCAAmC;AAkDjC,0FAlDO,gBAAS,OAkDP;AAhDX,+BAAiC;AAiD/B,yFAjDO,cAAQ,OAiDP;AA/CV,+BAA6C;AAgD3C,yFAhDO,cAAQ,OAgDP;AACR,2FAjDiB,gBAAU,OAiDjB;AA/CZ,kDAA4D;AAgD1D,sGAhDO,gCAAqB,OAgDP;AA9CvB,8CAAwD;AA+CtD,oGA/CO,4BAAmB,OA+CP;AA7CrB,mCAAqC;AA8CnC,2FA9CO,kBAAU,OA8CP;AA5CZ,6CAA8C;AA+C5C,+FA/CO,2BAAc,OA+CP;AA7ChB,iDAAsE;AA2CpE,iGA3CO,+BAAgB,OA2CP;AAChB,mGA5CyB,iCAAkB,OA4CzB;AA1CpB,iCAAmC;AA4CjC,0FA5CO,gBAAS,OA4CP;AA1CX,qCAAuC;AA2CrC,4FA3CO,oBAAW,OA2CP;AAzCb,uCAAyC;AA0CvC,6FA1CO,sBAAY,OA0CP;AAxCd,yCAA2C;AA0CzC,8FA1CO,wBAAa,OA0CP;AAxCf,yCAA2C;AAuCzC,8FAvCO,wBAAa,OAuCP;AArCf,uCAAyC;AA0CvC,6FA1CO,sBAAY,OA0CP;AAxCd,2CAA6C;AAqC3C,+FArCO,0BAAc,OAqCP;AAnChB,6CAAgE;AAoC9D,+FApCO,2BAAc,OAoCP;AACd,iGArCuB,6BAAgB,OAqCvB;AApClB,6CAAyC;AAsCvC,0FAtCO,sBAAS,OAsCP;AApCX,2CAA6C;AAwC3C,+FAxCO,0BAAc,OAwCP;AAtChB,mCAAuE;AAmCrE,2FAnCO,kBAAU,OAmCP;AAEV,8FArCmB,qBAAa,OAqCnB;AADb,kGApCkC,yBAAiB,OAoClC","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/cjs/chart/line/line.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.LineChart = void 0;
|
|
6
6
|
|
|
7
|
-
const interface_1 = require("../../series/interface"), cartesian_1 = require("../cartesian/cartesian"), interface_2 = require("../interface");
|
|
7
|
+
const interface_1 = require("../../series/interface"), cartesian_1 = require("../cartesian/cartesian"), interface_2 = require("../interface"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
|
|
8
|
+
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.LineSeries ]);
|
|
8
10
|
|
|
9
11
|
class LineChart extends cartesian_1.CartesianChart {
|
|
10
12
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,sDAAwD;AACxD,4CAA6C;
|
|
1
|
+
{"version":3,"sources":["../src/chart/line/line.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,sDAAwD;AACxD,4CAA6C;AAE7C,8CAA2C;AAC3C,yCAA0C;AAC1C,eAAM,CAAC,SAAS,CAAC,CAAC,mBAAU,CAAC,CAAC,CAAC;AAE/B,MAAa,SAAU,SAAQ,0BAAc;IAA7C;;QAGW,SAAI,GAAW,yBAAa,CAAC,IAAI,CAAC;QAClC,eAAU,GAAW,0BAAc,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;;AAbH,8BAcC;AAbiB,cAAI,GAAW,yBAAa,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/cjs/chart/map/map.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.MapChart = void 0;
|
|
6
6
|
|
|
7
|
-
const base_chart_1 = require("../base-chart"), type_1 = require("../../series/interface/type"), type_2 = require("../interface/type");
|
|
7
|
+
const base_chart_1 = require("../base-chart"), type_1 = require("../../series/interface/type"), type_2 = require("../interface/type"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
|
|
8
|
+
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.MapSeries ]);
|
|
8
10
|
|
|
9
11
|
class MapChart extends base_chart_1.BaseChart {
|
|
10
12
|
constructor() {
|
package/cjs/chart/map/map.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAE1C,sDAA6D;AAC7D,4CAAkD;
|
|
1
|
+
{"version":3,"sources":["../src/chart/map/map.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAE1C,sDAA6D;AAC7D,4CAAkD;AAIlD,8CAA2C;AAC3C,yCAAyC;AACzC,eAAM,CAAC,SAAS,CAAC,CAAC,kBAAS,CAAC,CAAC,CAAC;AAE9B,MAAa,QAAS,SAAQ,sBAAS;IAAvC;;QAGW,SAAI,GAAW,oBAAa,CAAC,GAAG,CAAC;QACjC,eAAU,GAAW,qBAAc,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,qBAAc,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;;AApDH,4BAqDC;AApDiB,aAAI,GAAW,oBAAa,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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.BasePieChart = void 0;
|
|
6
|
+
|
|
7
|
+
const polar_1 = require("../polar/polar");
|
|
8
|
+
|
|
9
|
+
class BasePieChart extends polar_1.PolarChart {
|
|
10
|
+
needAxes() {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
_getDefaultSeriesSpec(spec) {
|
|
14
|
+
return Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
15
|
+
categoryField: spec.categoryField || spec.seriesField,
|
|
16
|
+
valueField: spec.valueField || spec.angleField,
|
|
17
|
+
center: spec.center,
|
|
18
|
+
centerOffset: spec.centerOffset,
|
|
19
|
+
cornerRadius: spec.cornerRadius,
|
|
20
|
+
padAngle: spec.padAngle
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.BasePieChart = BasePieChart;
|
|
26
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/base.ts"],"names":[],"mappings":";;;AAAA,0CAA4C;AAE5C,MAAa,YAAa,SAAQ,kBAAU;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;AArBD,oCAqBC","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/cjs/chart/pie/index.d.ts
CHANGED
package/cjs/chart/pie/index.js
CHANGED
|
@@ -17,5 +17,6 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
|
-
}), __exportStar(require("./pie"), exports), __exportStar(require("./
|
|
20
|
+
}), __exportStar(require("./pie"), exports), __exportStar(require("./pie-3d"), exports),
|
|
21
|
+
__exportStar(require("./interface"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,8CAA4B","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './interface';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/chart/pie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B","file":"index.js","sourcesContent":["export * from './pie';\nexport * from './pie-3d';\nexport * from './interface';\n"]}
|