@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
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.TreeMapChart = void 0;
|
|
6
6
|
|
|
7
|
-
const interface_1 = require("../../series/interface"), base_chart_1 = require("../base-chart"), interface_2 = require("../interface");
|
|
7
|
+
const interface_1 = require("../../series/interface"), base_chart_1 = require("../base-chart"), interface_2 = require("../interface"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
|
|
8
|
+
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.TreeMapSeries ]);
|
|
8
10
|
|
|
9
11
|
class TreeMapChart extends base_chart_1.BaseChart {
|
|
10
12
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/treemap/treemap.ts"],"names":[],"mappings":";;;AAEA,sDAAwD;AACxD,8CAA0C;AAC1C,4CAA6C;
|
|
1
|
+
{"version":3,"sources":["../src/chart/treemap/treemap.ts"],"names":[],"mappings":";;;AAEA,sDAAwD;AACxD,8CAA0C;AAC1C,4CAA6C;AAE7C,8CAA2C;AAC3C,yCAA6C;AAC7C,eAAM,CAAC,SAAS,CAAC,CAAC,sBAAa,CAAC,CAAC,CAAC;AAElC,MAAa,YAAa,SAAQ,sBAAS;IAA3C;;QAGW,SAAI,GAAW,yBAAa,CAAC,OAAO,CAAC;QACrC,eAAU,GAAW,0BAAc,CAAC,OAAO,CAAC;IAwDvD,CAAC;IAtDW,oBAAoB,CAAC,IAAuB;QACpD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,UAAU,EAAE,IAAI,CAAC,UAAU,EAE3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAE7B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EAEnD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,UAAU,EAAE,IAAI,CAAC,UAAU,EAE3B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,GAChC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,UAAU,EAAE;YACd,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;YACzB,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;SACvC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAG1B,MAAM,iBAAiB,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC1D,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,CAAU,EAAE,EAAE;gBACjC,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;;AA3DH,oCA4DC;AA3DiB,iBAAI,GAAW,yBAAa,CAAC,OAAO,CAAC;AACrC,iBAAI,GAAW,eAAe,CAAC","file":"treemap.js","sourcesContent":["import type { ISeries } from '../../series/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport { SeriesTypeEnum } from '../../series/interface';\nimport { BaseChart } from '../base-chart';\nimport { ChartTypeEnum } from '../interface';\nimport type { ITreemapChartSpec } from './interface';\nimport { VChart } from '../../core/vchart';\nimport { TreeMapSeries } from '../../series';\nVChart.useSeries([TreeMapSeries]);\n\nexport class TreeMapChart extends BaseChart {\n static readonly type: string = ChartTypeEnum.treemap;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.treemap;\n readonly seriesType: string = SeriesTypeEnum.treemap;\n\n protected getDefaultSeriesSpec(spec: ITreemapChartSpec): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n categoryField: spec.categoryField,\n valueField: spec.valueField,\n\n seriesField: spec.seriesField,\n\n aspectRatio: spec.aspectRatio,\n splitType: spec.splitType,\n maxDepth: spec.maxDepth,\n gapWidth: spec.gapWidth,\n nodePadding: spec.nodePadding,\n minVisibleArea: spec.minVisibleArea,\n minChildrenVisibleArea: spec.minChildrenVisibleArea,\n minChildrenVisibleSize: spec.minChildrenVisibleSize,\n\n roam: spec.roam,\n drill: spec.drill,\n drillField: spec.drillField,\n\n leaf: spec.leaf,\n nonLeaf: spec.nonLeaf,\n nonLeafLabel: spec.nonLeafLabel\n };\n const seriesType = this.seriesType;\n if (seriesType) {\n series.type = seriesType;\n series[seriesType] = spec[seriesType];\n }\n\n return series;\n }\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n\n /* 处理 series 配置 */\n const defaultSeriesSpec = this.getDefaultSeriesSpec(spec);\n if (!spec.series || spec.series.length === 0) {\n spec.series = [defaultSeriesSpec];\n } else {\n spec.series.forEach((s: ISeries) => {\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"]}
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.WaterfallChart = void 0;
|
|
6
6
|
|
|
7
|
-
const vutils_1 = require("@visactor/vutils"), interface_1 = require("../../series/interface"), bar_1 = require("../bar"), interface_2 = require("../interface");
|
|
7
|
+
const vutils_1 = require("@visactor/vutils"), interface_1 = require("../../series/interface"), bar_1 = require("../bar"), interface_2 = require("../interface"), vchart_1 = require("../../core/vchart"), series_1 = require("../../series");
|
|
8
|
+
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.WaterfallSeries ]);
|
|
8
10
|
|
|
9
11
|
class WaterfallChart extends bar_1.BarChart {
|
|
10
12
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/waterfall/waterfall.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,sDAAwD;AACxD,gCAAkC;AAClC,4CAA6C;
|
|
1
|
+
{"version":3,"sources":["../src/chart/waterfall/waterfall.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,sDAAwD;AACxD,gCAAkC;AAClC,4CAA6C;AAE7C,8CAA2C;AAC3C,yCAA+C;AAC/C,eAAM,CAAC,SAAS,CAAC,CAAC,wBAAe,CAAC,CAAC,CAAC;AAEpC,MAAa,cAAe,SAAQ,cAAQ;IAA5C;;QAGW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,SAAS,CAAC;IAqBzD,CAAC;IAnBC,aAAa,CAAC,IAAyB;QACrC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAA,cAAK,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBAC9B,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC;gBACjB,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;gBAChB,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC;YACnB,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAES,qBAAqB,CAAC,IAAyB;QACvD,uCACK,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,IACjB;IACJ,CAAC;;AAxBH,wCAyBC;AAxBiB,mBAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;AACvC,mBAAI,GAAW,eAAe,CAAC","file":"waterfall.js","sourcesContent":["import { array } from '@visactor/vutils';\nimport { SeriesTypeEnum } from '../../series/interface';\nimport { BarChart } from '../bar';\nimport { ChartTypeEnum } from '../interface';\nimport type { IWaterfallChartSpec } from './interface';\nimport { VChart } from '../../core/vchart';\nimport { WaterfallSeries } from '../../series';\nVChart.useSeries([WaterfallSeries]);\n\nexport class WaterfallChart extends BarChart {\n static readonly type: string = ChartTypeEnum.waterfall;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.waterfall;\n readonly seriesType: string = SeriesTypeEnum.waterfall;\n\n transformSpec(spec: IWaterfallChartSpec): void {\n super.transformSpec(spec);\n if (spec.legends) {\n array(spec.legends).forEach(l => {\n l.select = false;\n l.hover = false;\n l.filter = false;\n });\n }\n }\n\n protected _getDefaultSeriesSpec(spec: IWaterfallChartSpec): any {\n return {\n ...super._getDefaultSeriesSpec(spec),\n stackLabel: spec.stackLabel,\n leaderLine: spec.leaderLine,\n total: spec.total\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.BaseWordCloudChart = void 0;
|
|
6
|
+
|
|
7
|
+
const interface_1 = require("../../series/interface"), interface_2 = require("../interface"), base_chart_1 = require("../base-chart");
|
|
8
|
+
|
|
9
|
+
class BaseWordCloudChart extends base_chart_1.BaseChart {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.type = interface_2.ChartTypeEnum.wordCloud, this.seriesType = interface_1.SeriesTypeEnum.wordCloud;
|
|
12
|
+
}
|
|
13
|
+
transformSpec(spec) {
|
|
14
|
+
super.transformSpec(spec);
|
|
15
|
+
const defaultSeriesSpec = this._getDefaultSeriesSpec(spec);
|
|
16
|
+
spec.series && 0 !== spec.series.length ? spec.series.forEach((s => {
|
|
17
|
+
this.isValidSeries(s.type) && Object.keys(defaultSeriesSpec).forEach((k => {
|
|
18
|
+
k in s || (s[k] = defaultSeriesSpec[k]);
|
|
19
|
+
}));
|
|
20
|
+
})) : spec.series = [ defaultSeriesSpec ];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.BaseWordCloudChart = BaseWordCloudChart;
|
|
25
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/base.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,4CAA6C;AAG7C,8CAA0C;AAE1C,MAAa,kBAAmB,SAAQ,sBAAS;IAAjD;;QACW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,SAAS,CAAC;IAsBzD,CAAC;IApBC,aAAa,CAAC,IAAS;QACrB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAG1B,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC3D,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,CAAU,EAAE,EAAE;gBACjC,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;CACF;AAxBD,gDAwBC","file":"base.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type { ISeries } from '../../series/interface';\nimport { BaseChart } from '../base-chart';\n\nexport class BaseWordCloudChart extends BaseChart {\n readonly type: string = ChartTypeEnum.wordCloud;\n readonly seriesType: string = SeriesTypeEnum.wordCloud;\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n\n /* 处理 series 配置 */\n const defaultSeriesSpec = this._getDefaultSeriesSpec(spec);\n if (!spec.series || spec.series.length === 0) {\n spec.series = [defaultSeriesSpec];\n } else {\n spec.series.forEach((s: ISeries) => {\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"]}
|
|
@@ -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("./word-cloud"), exports), __exportStar(require("./
|
|
20
|
+
}), __exportStar(require("./word-cloud"), exports), __exportStar(require("./word-cloud-3d"), exports),
|
|
21
|
+
__exportStar(require("./interface"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/word-cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B","file":"index.js","sourcesContent":["export * from './word-cloud';\nexport * from './interface';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,8CAA4B","file":"index.js","sourcesContent":["export * from './word-cloud';\nexport * from './word-cloud-3d';\nexport * from './interface';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IWordCloud3dChartSpec } from './interface';
|
|
2
|
+
import { BaseWordCloudChart } from './base';
|
|
3
|
+
export declare class WordCloud3dChart extends BaseWordCloudChart {
|
|
4
|
+
static readonly type: string;
|
|
5
|
+
static readonly view: string;
|
|
6
|
+
readonly type: string;
|
|
7
|
+
readonly seriesType: string;
|
|
8
|
+
protected _getDefaultSeriesSpec(spec: IWordCloud3dChartSpec): any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.WordCloud3dChart = void 0;
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.WordCloud3dSeries ]);
|
|
10
|
+
|
|
11
|
+
class WordCloud3dChart extends base_1.BaseWordCloudChart {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.type = interface_2.ChartTypeEnum.wordCloud3d, this.seriesType = interface_1.SeriesTypeEnum.wordCloud3d;
|
|
14
|
+
}
|
|
15
|
+
_getDefaultSeriesSpec(spec) {
|
|
16
|
+
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
17
|
+
nameField: spec.nameField,
|
|
18
|
+
valueField: spec.valueField,
|
|
19
|
+
seriesField: spec.seriesField,
|
|
20
|
+
fontFamilyField: spec.fontFamilyField,
|
|
21
|
+
fontWeightField: spec.fontWeightField,
|
|
22
|
+
fontStyleField: spec.fontStyleField,
|
|
23
|
+
colorHexField: spec.colorHexField,
|
|
24
|
+
colorMode: spec.colorMode,
|
|
25
|
+
colorList: spec.colorList,
|
|
26
|
+
rotateAngles: spec.rotateAngles,
|
|
27
|
+
fontWeightRange: spec.fontWeightRange,
|
|
28
|
+
fontSizeRange: spec.fontSizeRange,
|
|
29
|
+
depth_3d: spec.depth_3d,
|
|
30
|
+
maskShape: spec.maskShape,
|
|
31
|
+
keepAspect: spec.keepAspect,
|
|
32
|
+
random: spec.random,
|
|
33
|
+
wordCloudConfig: spec.wordCloudConfig,
|
|
34
|
+
wordCloudShapeConfig: spec.wordCloudShapeConfig,
|
|
35
|
+
word: spec.word,
|
|
36
|
+
fillingWord: spec.fillingWord,
|
|
37
|
+
chartPadding: spec.padding
|
|
38
|
+
}), seriesType = this.seriesType;
|
|
39
|
+
return seriesType && (series.type = seriesType, series[seriesType] = spec[seriesType]),
|
|
40
|
+
series;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.WordCloud3dChart = WordCloud3dChart, WordCloud3dChart.type = interface_2.ChartTypeEnum.wordCloud3d,
|
|
45
|
+
WordCloud3dChart.view = "singleDefault";
|
|
46
|
+
//# sourceMappingURL=word-cloud-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/word-cloud-3d.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,4CAA6C;AAE7C,iCAA4C;AAC5C,8CAA2C;AAC3C,yCAAiD;AACjD,eAAM,CAAC,SAAS,CAAC,CAAC,0BAAiB,CAAC,CAAC,CAAC;AAEtC,MAAa,gBAAiB,SAAQ,yBAAkB;IAAxD;;QAGW,SAAI,GAAW,yBAAa,CAAC,WAAW,CAAC;QACzC,eAAU,GAAW,0BAAc,CAAC,WAAW,CAAC;IAmC3D,CAAC;IAjCW,qBAAqB,CAAC,IAA2B;QACzD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,YAAY,EAAE,IAAI,CAAC,OAAO,GAC3B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,UAAU,EAAE;YACd,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;YACzB,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;SACvC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;;AAtCH,4CAuCC;AAtCiB,qBAAI,GAAW,yBAAa,CAAC,WAAW,CAAC;AACzC,qBAAI,GAAW,eAAe,CAAC","file":"word-cloud-3d.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\nimport type { IWordCloud3dChartSpec } from './interface';\nimport { BaseWordCloudChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { WordCloud3dSeries } from '../../series';\nVChart.useSeries([WordCloud3dSeries]);\n\nexport class WordCloud3dChart extends BaseWordCloudChart {\n static readonly type: string = ChartTypeEnum.wordCloud3d;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.wordCloud3d;\n readonly seriesType: string = SeriesTypeEnum.wordCloud3d;\n\n protected _getDefaultSeriesSpec(spec: IWordCloud3dChartSpec): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n nameField: spec.nameField,\n valueField: spec.valueField,\n seriesField: spec.seriesField,\n fontFamilyField: spec.fontFamilyField,\n fontWeightField: spec.fontWeightField,\n fontStyleField: spec.fontStyleField,\n colorHexField: spec.colorHexField,\n colorMode: spec.colorMode,\n colorList: spec.colorList,\n rotateAngles: spec.rotateAngles,\n fontWeightRange: spec.fontWeightRange,\n fontSizeRange: spec.fontSizeRange,\n depth_3d: spec.depth_3d,\n maskShape: spec.maskShape,\n keepAspect: spec.keepAspect,\n random: spec.random,\n wordCloudConfig: spec.wordCloudConfig,\n wordCloudShapeConfig: spec.wordCloudShapeConfig,\n word: spec.word,\n fillingWord: spec.fillingWord,\n chartPadding: spec.padding\n };\n const seriesType = this.seriesType;\n if (seriesType) {\n series.type = seriesType;\n series[seriesType] = spec[seriesType];\n }\n\n return series;\n }\n}\n"]}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
declare class BaseWordCloudChart extends BaseChart {
|
|
4
|
-
readonly type: string;
|
|
5
|
-
readonly seriesType: string;
|
|
6
|
-
transformSpec(spec: any): void;
|
|
7
|
-
}
|
|
1
|
+
import type { IWordCloudChartSpec } from './interface';
|
|
2
|
+
import { BaseWordCloudChart } from './base';
|
|
8
3
|
export declare class WordCloudChart extends BaseWordCloudChart {
|
|
9
4
|
static readonly type: string;
|
|
10
5
|
static readonly view: string;
|
|
@@ -12,11 +7,3 @@ export declare class WordCloudChart extends BaseWordCloudChart {
|
|
|
12
7
|
readonly seriesType: string;
|
|
13
8
|
protected _getDefaultSeriesSpec(spec: IWordCloudChartSpec): any;
|
|
14
9
|
}
|
|
15
|
-
export declare class WordCloud3dChart extends BaseWordCloudChart {
|
|
16
|
-
static readonly type: string;
|
|
17
|
-
static readonly view: string;
|
|
18
|
-
readonly type: string;
|
|
19
|
-
readonly seriesType: string;
|
|
20
|
-
protected _getDefaultSeriesSpec(spec: IWordCloud3dChartSpec): any;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -2,26 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.
|
|
5
|
+
}), exports.WordCloudChart = void 0;
|
|
6
6
|
|
|
7
|
-
const interface_1 = require("../../series/interface"), interface_2 = require("../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
|
-
constructor() {
|
|
11
|
-
super(...arguments), this.type = interface_2.ChartTypeEnum.wordCloud, this.seriesType = interface_1.SeriesTypeEnum.wordCloud;
|
|
12
|
-
}
|
|
13
|
-
transformSpec(spec) {
|
|
14
|
-
super.transformSpec(spec);
|
|
15
|
-
const defaultSeriesSpec = this._getDefaultSeriesSpec(spec);
|
|
16
|
-
spec.series && 0 !== spec.series.length ? spec.series.forEach((s => {
|
|
17
|
-
this.isValidSeries(s.type) && Object.keys(defaultSeriesSpec).forEach((k => {
|
|
18
|
-
k in s || (s[k] = defaultSeriesSpec[k]);
|
|
19
|
-
}));
|
|
20
|
-
})) : spec.series = [ defaultSeriesSpec ];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
9
|
+
vchart_1.VChart.useSeries([ series_1.WordCloudSeries ]);
|
|
23
10
|
|
|
24
|
-
class WordCloudChart extends BaseWordCloudChart {
|
|
11
|
+
class WordCloudChart extends base_1.BaseWordCloudChart {
|
|
25
12
|
constructor() {
|
|
26
13
|
super(...arguments), this.type = interface_2.ChartTypeEnum.wordCloud, this.seriesType = interface_1.SeriesTypeEnum.wordCloud;
|
|
27
14
|
}
|
|
@@ -55,40 +42,4 @@ class WordCloudChart extends BaseWordCloudChart {
|
|
|
55
42
|
|
|
56
43
|
exports.WordCloudChart = WordCloudChart, WordCloudChart.type = interface_2.ChartTypeEnum.wordCloud,
|
|
57
44
|
WordCloudChart.view = "singleDefault";
|
|
58
|
-
|
|
59
|
-
class WordCloud3dChart extends BaseWordCloudChart {
|
|
60
|
-
constructor() {
|
|
61
|
-
super(...arguments), this.type = interface_2.ChartTypeEnum.wordCloud3d, this.seriesType = interface_1.SeriesTypeEnum.wordCloud3d;
|
|
62
|
-
}
|
|
63
|
-
_getDefaultSeriesSpec(spec) {
|
|
64
|
-
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
65
|
-
nameField: spec.nameField,
|
|
66
|
-
valueField: spec.valueField,
|
|
67
|
-
seriesField: spec.seriesField,
|
|
68
|
-
fontFamilyField: spec.fontFamilyField,
|
|
69
|
-
fontWeightField: spec.fontWeightField,
|
|
70
|
-
fontStyleField: spec.fontStyleField,
|
|
71
|
-
colorHexField: spec.colorHexField,
|
|
72
|
-
colorMode: spec.colorMode,
|
|
73
|
-
colorList: spec.colorList,
|
|
74
|
-
rotateAngles: spec.rotateAngles,
|
|
75
|
-
fontWeightRange: spec.fontWeightRange,
|
|
76
|
-
fontSizeRange: spec.fontSizeRange,
|
|
77
|
-
depth_3d: spec.depth_3d,
|
|
78
|
-
maskShape: spec.maskShape,
|
|
79
|
-
keepAspect: spec.keepAspect,
|
|
80
|
-
random: spec.random,
|
|
81
|
-
wordCloudConfig: spec.wordCloudConfig,
|
|
82
|
-
wordCloudShapeConfig: spec.wordCloudShapeConfig,
|
|
83
|
-
word: spec.word,
|
|
84
|
-
fillingWord: spec.fillingWord,
|
|
85
|
-
chartPadding: spec.padding
|
|
86
|
-
}), seriesType = this.seriesType;
|
|
87
|
-
return seriesType && (series.type = seriesType, series[seriesType] = spec[seriesType]),
|
|
88
|
-
series;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
exports.WordCloud3dChart = WordCloud3dChart, WordCloud3dChart.type = interface_2.ChartTypeEnum.wordCloud3d,
|
|
93
|
-
WordCloud3dChart.view = "singleDefault";
|
|
94
45
|
//# sourceMappingURL=word-cloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/word-cloud/word-cloud.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,4CAA6C;AAG7C,
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/word-cloud.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,4CAA6C;AAG7C,iCAA4C;AAC5C,8CAA2C;AAC3C,yCAA+C;AAC/C,eAAM,CAAC,SAAS,CAAC,CAAC,wBAAe,CAAC,CAAC,CAAC;AAEpC,MAAa,cAAe,SAAQ,yBAAkB;IAAtD;;QAGW,SAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,0BAAc,CAAC,SAAS,CAAC;IAkCzD,CAAC;IAhCW,qBAAqB,CAAC,IAAyB;QACvD,MAAM,MAAM,mCACP,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,KACpC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,YAAY,EAAE,IAAI,CAAC,OAAO,GAC3B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,UAAU,EAAE;YACd,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;YACzB,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;SACvC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;;AArCH,wCAsCC;AArCiB,mBAAI,GAAW,yBAAa,CAAC,SAAS,CAAC;AACvC,mBAAI,GAAW,eAAe,CAAC","file":"word-cloud.js","sourcesContent":["import { SeriesTypeEnum } from '../../series/interface';\nimport { ChartTypeEnum } from '../interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type { IWordCloudChartSpec } from './interface';\nimport { BaseWordCloudChart } from './base';\nimport { VChart } from '../../core/vchart';\nimport { WordCloudSeries } from '../../series';\nVChart.useSeries([WordCloudSeries]);\n\nexport class WordCloudChart extends BaseWordCloudChart {\n static readonly type: string = ChartTypeEnum.wordCloud;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.wordCloud;\n readonly seriesType: string = SeriesTypeEnum.wordCloud;\n\n protected _getDefaultSeriesSpec(spec: IWordCloudChartSpec): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n nameField: spec.nameField,\n valueField: spec.valueField,\n seriesField: spec.seriesField,\n fontFamilyField: spec.fontFamilyField,\n fontWeightField: spec.fontWeightField,\n fontStyleField: spec.fontStyleField,\n colorHexField: spec.colorHexField,\n colorMode: spec.colorMode,\n colorList: spec.colorList,\n rotateAngles: spec.rotateAngles,\n fontWeightRange: spec.fontWeightRange,\n fontSizeRange: spec.fontSizeRange,\n maskShape: spec.maskShape,\n keepAspect: spec.keepAspect,\n random: spec.random,\n wordCloudConfig: spec.wordCloudConfig,\n wordCloudShapeConfig: spec.wordCloudShapeConfig,\n word: spec.word,\n fillingWord: spec.fillingWord,\n chartPadding: spec.padding\n };\n const seriesType = this.seriesType;\n if (seriesType) {\n series.type = seriesType;\n series[seriesType] = spec[seriesType];\n }\n\n return series;\n }\n}\n"]}
|
package/cjs/component/index.d.ts
CHANGED
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IScrollBarSpec } from './data-zoom/scroll-bar';
|
|
2
|
+
import { ScrollBar } from './data-zoom/scroll-bar';
|
|
3
|
+
import type { IDataZoomSpec } from './data-zoom/data-zoom';
|
|
4
|
+
import { DataZoom } from './data-zoom/data-zoom';
|
|
5
|
+
import { CustomMark } from './custom-mark';
|
|
6
|
+
import type { IBrushSpec } from './brush';
|
|
7
|
+
import { Brush } from './brush';
|
|
8
|
+
import type { IMapLabelSpec } from './map-label';
|
|
9
|
+
import { MapLabelComponent } from './map-label';
|
|
10
|
+
import type { ICartesianLinearAxisSpec, ICartesianBandAxisSpec, ICartesianTimeAxisSpec, ICartesianAxisSpec } from './axis/cartesian/index';
|
|
11
|
+
import { CartesianAxis, CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis } from './axis/cartesian/index';
|
|
12
|
+
import type { IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from './axis/polar';
|
|
13
|
+
import { PolarAxis, PolarBandAxis, PolarLinearAxis } from './axis/polar';
|
|
14
|
+
import type { IDiscreteLegendSpec } from './legend/discrete';
|
|
15
|
+
import { DiscreteLegend } from './legend/discrete';
|
|
16
|
+
import type { IContinuousLegendSpec } from './legend/continuous';
|
|
17
|
+
import { ContinuousLegend } from './legend/continuous';
|
|
18
|
+
import type { IIndicatorSpec } from './indicator';
|
|
19
|
+
import { Indicator } from './indicator';
|
|
20
|
+
import type { ITitleSpec } from './title';
|
|
21
|
+
import { Title } from './title';
|
|
22
|
+
import type { IGeoCoordinateSpec } from './geo';
|
|
23
|
+
import { GeoCoordinate } from './geo';
|
|
24
|
+
import type { ICartesianCrosshairSpec, IPolarCrosshairSpec } from './crosshair';
|
|
25
|
+
import { CartesianCrossHair, PolarCrossHair } from './crosshair';
|
|
26
|
+
import type { IPlayerSpec } from './player';
|
|
27
|
+
import { Player } from './player';
|
|
28
|
+
import type { IMarkLineSpec } from './marker/mark-line';
|
|
29
|
+
import { MarkLine } from './marker/mark-line';
|
|
30
|
+
import type { IMarkAreaSpec } from './marker/mark-area';
|
|
31
|
+
import { MarkArea } from './marker/mark-area';
|
|
32
|
+
import type { IMarkPointSpec } from './marker/mark-point';
|
|
33
|
+
import { MarkPoint } from './marker/mark-point';
|
|
34
|
+
import type { ITooltipSpec } from './tooltip';
|
|
35
|
+
import { Tooltip } from './tooltip';
|
|
36
|
+
import type { ILabelSpec } from './label';
|
|
37
|
+
import { Label } from './label';
|
|
38
|
+
export { ScrollBar, DataZoom, CustomMark, Brush, MapLabelComponent, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player, MarkArea, MarkLine, MarkPoint, Tooltip, Label };
|
|
39
|
+
export type { IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, IMapLabelSpec, IMarkAreaSpec, IMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
|
package/cjs/component/index.js
CHANGED
|
@@ -1,21 +1,207 @@
|
|
|
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
|
-
}),
|
|
5
|
+
}), exports.Label = exports.Tooltip = exports.MarkPoint = exports.MarkLine = exports.MarkArea = exports.Player = exports.PolarCrossHair = exports.CartesianCrossHair = exports.GeoCoordinate = exports.Title = exports.Indicator = exports.ContinuousLegend = exports.DiscreteLegend = exports.PolarLinearAxis = exports.PolarBandAxis = exports.PolarAxis = exports.CartesianTimeAxis = exports.CartesianLinearAxis = exports.CartesianBandAxis = exports.CartesianAxis = exports.MapLabelComponent = exports.Brush = exports.CustomMark = exports.DataZoom = exports.ScrollBar = void 0;
|
|
6
|
+
|
|
7
|
+
const scroll_bar_1 = require("./data-zoom/scroll-bar");
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return scroll_bar_1.ScrollBar;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const data_zoom_1 = require("./data-zoom/data-zoom");
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "DataZoom", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
get: function() {
|
|
21
|
+
return data_zoom_1.DataZoom;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const custom_mark_1 = require("./custom-mark");
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "CustomMark", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
get: function() {
|
|
30
|
+
return custom_mark_1.CustomMark;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const brush_1 = require("./brush");
|
|
35
|
+
|
|
36
|
+
Object.defineProperty(exports, "Brush", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
get: function() {
|
|
39
|
+
return brush_1.Brush;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const map_label_1 = require("./map-label");
|
|
44
|
+
|
|
45
|
+
Object.defineProperty(exports, "MapLabelComponent", {
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
get: function() {
|
|
48
|
+
return map_label_1.MapLabelComponent;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const index_1 = require("./axis/cartesian/index");
|
|
53
|
+
|
|
54
|
+
Object.defineProperty(exports, "CartesianAxis", {
|
|
55
|
+
enumerable: !0,
|
|
56
|
+
get: function() {
|
|
57
|
+
return index_1.CartesianAxis;
|
|
58
|
+
}
|
|
59
|
+
}), Object.defineProperty(exports, "CartesianLinearAxis", {
|
|
60
|
+
enumerable: !0,
|
|
61
|
+
get: function() {
|
|
62
|
+
return index_1.CartesianLinearAxis;
|
|
63
|
+
}
|
|
64
|
+
}), Object.defineProperty(exports, "CartesianBandAxis", {
|
|
65
|
+
enumerable: !0,
|
|
66
|
+
get: function() {
|
|
67
|
+
return index_1.CartesianBandAxis;
|
|
68
|
+
}
|
|
69
|
+
}), Object.defineProperty(exports, "CartesianTimeAxis", {
|
|
70
|
+
enumerable: !0,
|
|
71
|
+
get: function() {
|
|
72
|
+
return index_1.CartesianTimeAxis;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const polar_1 = require("./axis/polar");
|
|
77
|
+
|
|
78
|
+
Object.defineProperty(exports, "PolarAxis", {
|
|
79
|
+
enumerable: !0,
|
|
80
|
+
get: function() {
|
|
81
|
+
return polar_1.PolarAxis;
|
|
82
|
+
}
|
|
83
|
+
}), Object.defineProperty(exports, "PolarBandAxis", {
|
|
84
|
+
enumerable: !0,
|
|
85
|
+
get: function() {
|
|
86
|
+
return polar_1.PolarBandAxis;
|
|
87
|
+
}
|
|
88
|
+
}), Object.defineProperty(exports, "PolarLinearAxis", {
|
|
89
|
+
enumerable: !0,
|
|
90
|
+
get: function() {
|
|
91
|
+
return polar_1.PolarLinearAxis;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const discrete_1 = require("./legend/discrete");
|
|
96
|
+
|
|
97
|
+
Object.defineProperty(exports, "DiscreteLegend", {
|
|
98
|
+
enumerable: !0,
|
|
99
|
+
get: function() {
|
|
100
|
+
return discrete_1.DiscreteLegend;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const continuous_1 = require("./legend/continuous");
|
|
105
|
+
|
|
106
|
+
Object.defineProperty(exports, "ContinuousLegend", {
|
|
107
|
+
enumerable: !0,
|
|
108
|
+
get: function() {
|
|
109
|
+
return continuous_1.ContinuousLegend;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
const indicator_1 = require("./indicator");
|
|
114
|
+
|
|
115
|
+
Object.defineProperty(exports, "Indicator", {
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
get: function() {
|
|
118
|
+
return indicator_1.Indicator;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
const title_1 = require("./title");
|
|
123
|
+
|
|
124
|
+
Object.defineProperty(exports, "Title", {
|
|
125
|
+
enumerable: !0,
|
|
126
|
+
get: function() {
|
|
127
|
+
return title_1.Title;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
const geo_1 = require("./geo");
|
|
132
|
+
|
|
133
|
+
Object.defineProperty(exports, "GeoCoordinate", {
|
|
134
|
+
enumerable: !0,
|
|
135
|
+
get: function() {
|
|
136
|
+
return geo_1.GeoCoordinate;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
const crosshair_1 = require("./crosshair");
|
|
141
|
+
|
|
142
|
+
Object.defineProperty(exports, "CartesianCrossHair", {
|
|
143
|
+
enumerable: !0,
|
|
144
|
+
get: function() {
|
|
145
|
+
return crosshair_1.CartesianCrossHair;
|
|
146
|
+
}
|
|
147
|
+
}), Object.defineProperty(exports, "PolarCrossHair", {
|
|
148
|
+
enumerable: !0,
|
|
149
|
+
get: function() {
|
|
150
|
+
return crosshair_1.PolarCrossHair;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
const player_1 = require("./player");
|
|
155
|
+
|
|
156
|
+
Object.defineProperty(exports, "Player", {
|
|
157
|
+
enumerable: !0,
|
|
158
|
+
get: function() {
|
|
159
|
+
return player_1.Player;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
const mark_line_1 = require("./marker/mark-line");
|
|
164
|
+
|
|
165
|
+
Object.defineProperty(exports, "MarkLine", {
|
|
166
|
+
enumerable: !0,
|
|
167
|
+
get: function() {
|
|
168
|
+
return mark_line_1.MarkLine;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
const mark_area_1 = require("./marker/mark-area");
|
|
173
|
+
|
|
174
|
+
Object.defineProperty(exports, "MarkArea", {
|
|
175
|
+
enumerable: !0,
|
|
176
|
+
get: function() {
|
|
177
|
+
return mark_area_1.MarkArea;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
const mark_point_1 = require("./marker/mark-point");
|
|
182
|
+
|
|
183
|
+
Object.defineProperty(exports, "MarkPoint", {
|
|
184
|
+
enumerable: !0,
|
|
185
|
+
get: function() {
|
|
186
|
+
return mark_point_1.MarkPoint;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
const tooltip_1 = require("./tooltip");
|
|
191
|
+
|
|
192
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
193
|
+
enumerable: !0,
|
|
194
|
+
get: function() {
|
|
195
|
+
return tooltip_1.Tooltip;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
const label_1 = require("./label");
|
|
200
|
+
|
|
201
|
+
Object.defineProperty(exports, "Label", {
|
|
202
|
+
enumerable: !0,
|
|
203
|
+
get: function() {
|
|
204
|
+
return label_1.Label;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
21
207
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/component/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/component/index.ts"],"names":[],"mappings":";;;AAKA,uDAAmD;AA2CjD,0FA3CO,sBAAS,OA2CP;AAzCX,qDAAiD;AA0C/C,yFA1CO,oBAAQ,OA0CP;AAzCV,+CAA2C;AA0CzC,2FA1CO,wBAAU,OA0CP;AAxCZ,mCAAgC;AAyC9B,sFAzCO,aAAK,OAyCP;AAvCP,2CAAgD;AAwC9C,kGAxCO,6BAAiB,OAwCP;AAjCnB,kDAAkH;AAkChH,8FAlCO,qBAAa,OAkCP;AAEb,oGApCsB,2BAAmB,OAoCtB;AADnB,kGAnC2C,yBAAiB,OAmC3C;AAEjB,kGArC8D,yBAAiB,OAqC9D;AAnCnB,wCAAyE;AAoCvE,0FApCO,iBAAS,OAoCP;AACT,8FArCkB,qBAAa,OAqClB;AACb,gGAtCiC,uBAAe,OAsCjC;AApCjB,gDAAmD;AAqCjD,+FArCO,yBAAc,OAqCP;AAnChB,oDAAuD;AAoCrD,iGApCO,6BAAgB,OAoCP;AAlClB,2CAAwC;AAmCtC,0FAnCO,qBAAS,OAmCP;AAjCX,mCAAgC;AAkC9B,sFAlCO,aAAK,OAkCP;AAhCP,+BAAsC;AAiCpC,8FAjCO,mBAAa,OAiCP;AA/Bf,2CAAiE;AAgC/D,mGAhCO,8BAAkB,OAgCP;AAClB,+FAjC2B,0BAAc,OAiC3B;AA/BhB,qCAAkC;AAgChC,uFAhCO,eAAM,OAgCP;AA9BR,kDAA8C;AAgC5C,yFAhCO,oBAAQ,OAgCP;AA9BV,kDAA8C;AA6B5C,yFA7BO,oBAAQ,OA6BP;AA3BV,oDAAgD;AA6B9C,0FA7BO,sBAAS,OA6BP;AA3BX,uCAAoC;AA4BlC,wFA5BO,iBAAO,OA4BP;AA1BT,mCAAgC;AA2B9B,sFA3BO,aAAK,OA2BP","file":"index.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\n/**\n * @description export all component modules\n */\nimport type { IScrollBarSpec } from './data-zoom/scroll-bar';\nimport { ScrollBar } from './data-zoom/scroll-bar';\nimport type { IDataZoomSpec } from './data-zoom/data-zoom';\nimport { DataZoom } from './data-zoom/data-zoom';\nimport { CustomMark } from './custom-mark';\nimport type { IBrushSpec } from './brush';\nimport { Brush } from './brush';\nimport type { IMapLabelSpec } from './map-label';\nimport { MapLabelComponent } from './map-label';\nimport type {\n ICartesianLinearAxisSpec,\n ICartesianBandAxisSpec,\n ICartesianTimeAxisSpec,\n ICartesianAxisSpec\n} from './axis/cartesian/index';\nimport { CartesianAxis, CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis } from './axis/cartesian/index';\nimport type { IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from './axis/polar';\nimport { PolarAxis, PolarBandAxis, PolarLinearAxis } from './axis/polar';\nimport type { IDiscreteLegendSpec } from './legend/discrete';\nimport { DiscreteLegend } from './legend/discrete';\nimport type { IContinuousLegendSpec } from './legend/continuous';\nimport { ContinuousLegend } from './legend/continuous';\nimport type { IIndicatorSpec } from './indicator';\nimport { Indicator } from './indicator';\nimport type { ITitleSpec } from './title';\nimport { Title } from './title';\nimport type { IGeoCoordinateSpec } from './geo';\nimport { GeoCoordinate } from './geo';\nimport type { ICartesianCrosshairSpec, IPolarCrosshairSpec } from './crosshair';\nimport { CartesianCrossHair, PolarCrossHair } from './crosshair';\nimport type { IPlayerSpec } from './player';\nimport { Player } from './player';\nimport type { IMarkLineSpec } from './marker/mark-line';\nimport { MarkLine } from './marker/mark-line';\nimport type { IMarkAreaSpec } from './marker/mark-area';\nimport { MarkArea } from './marker/mark-area';\nimport type { IMarkPointSpec } from './marker/mark-point';\nimport { MarkPoint } from './marker/mark-point';\nimport type { ITooltipSpec } from './tooltip';\nimport { Tooltip } from './tooltip';\nimport type { ILabelSpec } from './label';\nimport { Label } from './label';\n\nexport {\n ScrollBar,\n DataZoom,\n CustomMark,\n Brush,\n MapLabelComponent,\n CartesianAxis,\n CartesianBandAxis,\n CartesianLinearAxis,\n CartesianTimeAxis,\n PolarAxis,\n PolarBandAxis,\n PolarLinearAxis,\n DiscreteLegend,\n ContinuousLegend,\n Indicator,\n Title,\n GeoCoordinate,\n CartesianCrossHair,\n PolarCrossHair,\n Player,\n MarkArea,\n MarkLine,\n MarkPoint,\n Tooltip,\n Label\n};\n\nexport type {\n IScrollBarSpec,\n IBrushSpec,\n ICartesianAxisSpec,\n ICartesianBandAxisSpec,\n ICartesianCrosshairSpec,\n ICartesianLinearAxisSpec,\n ICartesianTimeAxisSpec,\n IContinuousLegendSpec,\n IDataZoomSpec,\n IDiscreteLegendSpec,\n IGeoCoordinateSpec,\n IIndicatorSpec,\n ILabelSpec,\n IMapLabelSpec,\n IMarkAreaSpec,\n IMarkLineSpec,\n IMarkPointSpec,\n IPlayerSpec,\n IPolarAxisSpec,\n IPolarBandAxisSpec,\n IPolarCrosshairSpec,\n IPolarLinearAxisSpec,\n ITitleSpec,\n ITooltipSpec\n};\n"]}
|
|
@@ -16,7 +16,7 @@ export declare abstract class BaseLegend extends BaseComponent implements ILegen
|
|
|
16
16
|
protected _visible: boolean;
|
|
17
17
|
get visible(): boolean;
|
|
18
18
|
protected _position: 'start' | 'middle' | 'end';
|
|
19
|
-
get position(): "middle" | "
|
|
19
|
+
get position(): "middle" | "end" | "start";
|
|
20
20
|
get layoutOrient(): IOrientType;
|
|
21
21
|
set layoutOrient(v: IOrientType);
|
|
22
22
|
protected _legendData: CompilableData;
|
|
@@ -13,14 +13,14 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
13
13
|
};
|
|
14
14
|
background?: {
|
|
15
15
|
visible?: boolean;
|
|
16
|
-
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "
|
|
16
|
+
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "visible" | "width" | "height">;
|
|
17
17
|
};
|
|
18
18
|
text?: string | number | string[] | number[];
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
align?: "center" | "end" | "start";
|
|
19
21
|
padding?: import("@visactor/vrender-components/es/core/type").Padding;
|
|
20
22
|
maxWidth?: number;
|
|
21
23
|
minWidth?: number;
|
|
22
|
-
visible?: boolean;
|
|
23
|
-
align?: "center" | "start" | "end";
|
|
24
24
|
space?: number;
|
|
25
25
|
};
|
|
26
26
|
export declare function getLayout(spec: ILegendCommonSpec): "horizontal" | "vertical";
|
|
@@ -27,6 +27,6 @@ export declare class BaseTooltipModel {
|
|
|
27
27
|
setVisibility(visibility: boolean): void;
|
|
28
28
|
getVisibility(): boolean;
|
|
29
29
|
release(): void;
|
|
30
|
-
protected createElement(tag: keyof HTMLElementTagNameMap, classList?: string[], style?: Partial<CSSStyleDeclaration>, id?: string): HTMLImageElement | HTMLElement | HTMLCanvasElement | HTMLSlotElement | HTMLObjectElement | HTMLProgressElement | HTMLLinkElement | HTMLAreaElement |
|
|
30
|
+
protected createElement(tag: keyof HTMLElementTagNameMap, classList?: string[], style?: Partial<CSSStyleDeclaration>, id?: string): HTMLImageElement | HTMLElement | HTMLCanvasElement | HTMLSlotElement | HTMLObjectElement | HTMLProgressElement | HTMLLinkElement | HTMLAreaElement | HTMLMapElement | HTMLStyleElement | HTMLTitleElement | HTMLLabelElement | HTMLAnchorElement | HTMLDataElement | HTMLSelectElement | HTMLTrackElement | HTMLTimeElement | HTMLSourceElement | HTMLLegendElement | HTMLInputElement | HTMLOutputElement | HTMLHtmlElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLButtonElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLIFrameElement | HTMLLIElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLParagraphElement | HTMLPictureElement | HTMLPreElement | HTMLScriptElement | HTMLSpanElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLUListElement | HTMLVideoElement;
|
|
31
31
|
protected getRenderContent(): IToolTipLineActual[];
|
|
32
32
|
}
|