@visactor/vchart 1.0.1-alpha.1 → 1.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +5027 -5002
- package/build/index.min.js +2 -2
- package/chart.d.ts +1 -1
- package/chart.js +1 -1
- package/cjs/chart/area/area.js +3 -1
- package/cjs/chart/area/area.js.map +1 -1
- package/cjs/chart/bar/bar-3d.d.ts +7 -0
- package/cjs/chart/bar/bar-3d.js +19 -0
- package/cjs/chart/bar/bar-3d.js.map +1 -0
- package/cjs/chart/bar/bar.d.ts +0 -6
- package/cjs/chart/bar/bar.js +4 -11
- package/cjs/chart/bar/bar.js.map +1 -1
- package/cjs/chart/bar/index.d.ts +1 -0
- package/cjs/chart/bar/index.js +2 -1
- package/cjs/chart/bar/index.js.map +1 -1
- package/cjs/chart/base-chart.d.ts +1 -1
- package/cjs/chart/box-plot/box-plot.js +3 -1
- package/cjs/chart/box-plot/box-plot.js.map +1 -1
- package/cjs/chart/circle-packing/circle-packing.js +3 -1
- package/cjs/chart/circle-packing/circle-packing.js.map +1 -1
- package/cjs/chart/funnel/base.d.ts +9 -0
- package/cjs/chart/funnel/base.js +47 -0
- package/cjs/chart/funnel/base.js.map +1 -0
- package/cjs/chart/funnel/funnel-3d.d.ts +7 -0
- package/cjs/chart/funnel/funnel-3d.js +19 -0
- package/cjs/chart/funnel/funnel-3d.js.map +1 -0
- package/cjs/chart/funnel/funnel.d.ts +1 -16
- package/cjs/chart/funnel/funnel.js +4 -48
- package/cjs/chart/funnel/funnel.js.map +1 -1
- package/cjs/chart/funnel/index.d.ts +1 -0
- package/cjs/chart/funnel/index.js +2 -1
- package/cjs/chart/funnel/index.js.map +1 -1
- package/cjs/chart/gauge/gauge.js +3 -1
- package/cjs/chart/gauge/gauge.js.map +1 -1
- package/cjs/chart/heatmap/heatmap.js +3 -1
- package/cjs/chart/heatmap/heatmap.js.map +1 -1
- package/cjs/chart/histogram/base.d.ts +5 -0
- package/cjs/chart/histogram/base.js +22 -0
- package/cjs/chart/histogram/base.js.map +1 -0
- package/cjs/chart/histogram/histogram-3d.d.ts +7 -0
- package/cjs/chart/histogram/histogram-3d.js +19 -0
- package/cjs/chart/histogram/histogram-3d.js.map +1 -0
- package/cjs/chart/histogram/histogram.d.ts +1 -12
- package/cjs/chart/histogram/histogram.js +4 -23
- package/cjs/chart/histogram/histogram.js.map +1 -1
- package/cjs/chart/histogram/index.d.ts +1 -0
- package/cjs/chart/histogram/index.js +2 -1
- package/cjs/chart/histogram/index.js.map +1 -1
- package/cjs/chart/index.d.ts +57 -22
- package/cjs/chart/index.js +293 -26
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/line/line.js +3 -1
- package/cjs/chart/line/line.js.map +1 -1
- package/cjs/chart/map/map.js +3 -1
- package/cjs/chart/map/map.js.map +1 -1
- package/cjs/chart/pie/base.d.ts +5 -0
- package/cjs/chart/pie/base.js +26 -0
- package/cjs/chart/pie/base.js.map +1 -0
- package/cjs/chart/pie/index.d.ts +1 -0
- package/cjs/chart/pie/index.js +2 -1
- package/cjs/chart/pie/index.js.map +1 -1
- package/cjs/chart/pie/pie-3d.d.ts +8 -0
- package/cjs/chart/pie/pie-3d.js +24 -0
- package/cjs/chart/pie/pie-3d.js.map +1 -0
- package/cjs/chart/pie/pie.d.ts +1 -13
- package/cjs/chart/pie/pie.js +4 -32
- package/cjs/chart/pie/pie.js.map +1 -1
- package/cjs/chart/progress/circular/circular.js +3 -1
- package/cjs/chart/progress/circular/circular.js.map +1 -1
- package/cjs/chart/progress/linear/linear.js +3 -1
- package/cjs/chart/progress/linear/linear.js.map +1 -1
- package/cjs/chart/radar/radar.js +3 -1
- package/cjs/chart/radar/radar.js.map +1 -1
- package/cjs/chart/range-area/range-area.js +3 -1
- package/cjs/chart/range-area/range-area.js.map +1 -1
- package/cjs/chart/range-column/index.d.ts +2 -1
- package/cjs/chart/range-column/index.js +2 -1
- package/cjs/chart/range-column/index.js.map +1 -1
- package/cjs/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
- package/cjs/chart/range-column/{rangeColumn.js → range-column-3d.js} +4 -17
- package/cjs/chart/range-column/range-column-3d.js.map +1 -0
- package/cjs/chart/range-column/range-column.d.ts +8 -0
- package/cjs/chart/range-column/range-column.js +25 -0
- package/cjs/chart/range-column/range-column.js.map +1 -0
- package/cjs/chart/rose/rose.js +3 -1
- package/cjs/chart/rose/rose.js.map +1 -1
- package/cjs/chart/sankey/sankey.js +3 -1
- package/cjs/chart/sankey/sankey.js.map +1 -1
- package/cjs/chart/scatter/scatter.js +3 -1
- package/cjs/chart/scatter/scatter.js.map +1 -1
- package/cjs/chart/sequence/sequence.js +3 -1
- package/cjs/chart/sequence/sequence.js.map +1 -1
- package/cjs/chart/sunburst/sunburst.js +3 -1
- package/cjs/chart/sunburst/sunburst.js.map +1 -1
- package/cjs/chart/treemap/treemap.js +3 -1
- package/cjs/chart/treemap/treemap.js.map +1 -1
- package/cjs/chart/waterfall/waterfall.js +3 -1
- package/cjs/chart/waterfall/waterfall.js.map +1 -1
- package/cjs/chart/word-cloud/base.d.ts +6 -0
- package/cjs/chart/word-cloud/base.js +25 -0
- package/cjs/chart/word-cloud/base.js.map +1 -0
- package/cjs/chart/word-cloud/index.d.ts +1 -0
- package/cjs/chart/word-cloud/index.js +2 -1
- package/cjs/chart/word-cloud/index.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud-3d.d.ts +9 -0
- package/cjs/chart/word-cloud/word-cloud-3d.js +46 -0
- package/cjs/chart/word-cloud/word-cloud-3d.js.map +1 -0
- package/cjs/chart/word-cloud/word-cloud.d.ts +2 -15
- package/cjs/chart/word-cloud/word-cloud.js +4 -53
- package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
- package/cjs/compile/grammar-item.js +1 -2
- package/cjs/component/index.d.ts +39 -1
- package/cjs/component/index.js +202 -16
- package/cjs/component/index.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +1 -1
- package/cjs/component/legend/util.d.ts +3 -3
- package/cjs/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
- package/cjs/constant/marker.js +1 -2
- package/cjs/constant/word-cloud.js +2 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/{export/core.d.ts → core/index.d.ts} +4 -4
- package/cjs/{export/core.js → core/index.js} +5 -5
- package/cjs/core/index.js.map +1 -0
- package/cjs/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/vchart.js +1 -1
- package/cjs/data/initialize.js +2 -1
- package/cjs/index.d.ts +6 -6
- package/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/cjs/interaction/interface.js +1 -1
- package/cjs/interaction/trigger.js +1 -1
- package/cjs/layout/base-layout.d.ts +24 -0
- package/cjs/layout/base-layout.js +124 -0
- package/cjs/layout/base-layout.js.map +1 -0
- package/cjs/layout/index.d.ts +7 -24
- package/cjs/layout/index.js +25 -115
- package/cjs/layout/index.js.map +1 -1
- package/cjs/layout/layout3d/index.d.ts +1 -1
- package/cjs/layout/layout3d/index.js +2 -2
- package/cjs/layout/layout3d/index.js.map +1 -1
- package/cjs/mark/arc-3d.d.ts +9 -0
- package/cjs/mark/arc-3d.js +16 -0
- package/cjs/mark/arc-3d.js.map +1 -0
- package/cjs/mark/arc.d.ts +1 -6
- package/cjs/mark/arc.js +1 -9
- package/cjs/mark/arc.js.map +1 -1
- package/cjs/mark/index.d.ts +21 -0
- package/cjs/{export/mark.js → mark/index.js} +49 -37
- package/cjs/mark/index.js.map +1 -0
- package/cjs/mark/{linkPath.js → link-path.js} +1 -1
- package/cjs/mark/link-path.js.map +1 -0
- package/cjs/mark/polygon/base-polygon.d.ts +6 -0
- package/cjs/mark/polygon/base-polygon.js +18 -0
- package/cjs/mark/polygon/base-polygon.js.map +1 -0
- package/cjs/mark/polygon/polygon.d.ts +9 -0
- package/cjs/mark/polygon/polygon.js +16 -0
- package/cjs/mark/polygon/polygon.js.map +1 -0
- package/cjs/mark/polygon/pyramid-3d.d.ts +9 -0
- package/cjs/mark/polygon/pyramid-3d.js +16 -0
- package/cjs/mark/polygon/pyramid-3d.js.map +1 -0
- package/cjs/mark/rect-3d.d.ts +10 -0
- package/cjs/mark/rect-3d.js +23 -0
- package/cjs/mark/rect-3d.js.map +1 -0
- package/cjs/mark/rect.d.ts +1 -7
- package/cjs/mark/rect.js +1 -16
- package/cjs/mark/rect.js.map +1 -1
- package/cjs/model/layout-item.js +1 -2
- package/cjs/plugin/interface.js +1 -1
- package/cjs/region/region.js +1 -1
- package/cjs/series/area/area.js +3 -1
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/bar/bar-3d.d.ts +11 -0
- package/cjs/series/bar/bar-3d.js +25 -0
- package/cjs/series/bar/bar-3d.js.map +1 -0
- package/cjs/series/bar/bar.d.ts +0 -7
- package/cjs/series/bar/bar.js +3 -18
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/box-plot/box-plot.js +5 -1
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +3 -1
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/dot/dot.js +3 -1
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/funnel-3d.d.ts +18 -0
- package/cjs/series/funnel/funnel-3d.js +104 -0
- package/cjs/series/funnel/funnel-3d.js.map +1 -0
- package/cjs/series/funnel/funnel.d.ts +2 -14
- package/cjs/series/funnel/funnel.js +4 -96
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/gauge/gauge-pointer.js +3 -1
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge.js +3 -1
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/heatmap/heatmap.js +2 -2
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/index.d.ts +66 -0
- package/cjs/{export/series.js → series/index.js} +70 -50
- package/cjs/series/index.js.map +1 -0
- package/cjs/series/line/line.js +3 -1
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/link.js +3 -1
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/map/map.js +2 -2
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/pie/pie-3d.d.ts +16 -0
- package/cjs/series/pie/pie-3d.js +97 -0
- package/cjs/series/pie/pie-3d.js.map +1 -0
- package/cjs/series/pie/pie.d.ts +1 -11
- package/cjs/series/pie/pie.js +4 -89
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/polar/animation.d.ts +1 -1
- package/cjs/series/polar/animation.js.map +1 -1
- package/cjs/series/progress/circular/circular.js +3 -1
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/linear/linear.js +3 -1
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/animation.d.ts +1 -1
- package/cjs/series/radar/animation.js.map +1 -1
- package/cjs/series/radar/radar.js +3 -1
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-column/rangeColumn-3d.d.ts +10 -0
- package/cjs/series/range-column/rangeColumn-3d.js +19 -0
- package/cjs/series/range-column/rangeColumn-3d.js.map +1 -0
- package/cjs/series/range-column/rangeColumn.d.ts +0 -6
- package/cjs/series/range-column/rangeColumn.js +1 -10
- package/cjs/series/range-column/rangeColumn.js.map +1 -1
- package/cjs/series/rose/rose.js +2 -2
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/sankey.js +2 -1
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/scatter.js +3 -1
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/sunburst.js +3 -1
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/treemap.js +3 -1
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/waterfall/waterfall.js +2 -2
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/series/word-cloud/base.d.ts +60 -0
- package/cjs/series/word-cloud/base.js +254 -0
- package/cjs/series/word-cloud/base.js.map +1 -0
- package/cjs/series/word-cloud/word-cloud-3d.d.ts +11 -0
- package/cjs/series/word-cloud/word-cloud-3d.js +199 -0
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -0
- package/cjs/series/word-cloud/word-cloud.d.ts +2 -69
- package/cjs/series/word-cloud/word-cloud.js +5 -441
- package/cjs/series/word-cloud/word-cloud.js.map +1 -1
- package/cjs/vchart-all.d.ts +1 -1
- package/cjs/vchart-all.js +3 -5
- package/cjs/vchart-all.js.map +1 -1
- package/cjs/vchart-simple.d.ts +1 -1
- package/cjs/vchart-simple.js +2 -4
- package/cjs/vchart-simple.js.map +1 -1
- package/component.d.ts +1 -1
- package/component.js +1 -1
- package/core.d.ts +1 -1
- package/core.js +1 -1
- package/esm/chart/area/area.js +6 -0
- package/esm/chart/area/area.js.map +1 -1
- package/esm/chart/bar/bar-3d.d.ts +7 -0
- package/esm/chart/bar/bar-3d.js +20 -0
- package/esm/chart/bar/bar-3d.js.map +1 -0
- package/esm/chart/bar/bar.d.ts +0 -6
- package/esm/chart/bar/bar.js +6 -8
- package/esm/chart/bar/bar.js.map +1 -1
- package/esm/chart/bar/index.d.ts +1 -0
- package/esm/chart/bar/index.js +2 -0
- package/esm/chart/bar/index.js.map +1 -1
- package/esm/chart/base-chart.d.ts +1 -1
- package/esm/chart/box-plot/box-plot.js +6 -0
- package/esm/chart/box-plot/box-plot.js.map +1 -1
- package/esm/chart/circle-packing/circle-packing.js +6 -0
- package/esm/chart/circle-packing/circle-packing.js.map +1 -1
- package/esm/chart/funnel/base.d.ts +9 -0
- package/esm/chart/funnel/base.js +39 -0
- package/esm/chart/funnel/base.js.map +1 -0
- package/esm/chart/funnel/funnel-3d.d.ts +7 -0
- package/esm/chart/funnel/funnel-3d.js +20 -0
- package/esm/chart/funnel/funnel-3d.js.map +1 -0
- package/esm/chart/funnel/funnel.d.ts +1 -16
- package/esm/chart/funnel/funnel.js +7 -46
- package/esm/chart/funnel/funnel.js.map +1 -1
- package/esm/chart/funnel/index.d.ts +1 -0
- package/esm/chart/funnel/index.js +2 -0
- package/esm/chart/funnel/index.js.map +1 -1
- package/esm/chart/gauge/gauge.js +6 -0
- package/esm/chart/gauge/gauge.js.map +1 -1
- package/esm/chart/heatmap/heatmap.js +6 -0
- package/esm/chart/heatmap/heatmap.js.map +1 -1
- package/esm/chart/histogram/base.d.ts +5 -0
- package/esm/chart/histogram/base.js +14 -0
- package/esm/chart/histogram/base.js.map +1 -0
- package/esm/chart/histogram/histogram-3d.d.ts +7 -0
- package/esm/chart/histogram/histogram-3d.js +20 -0
- package/esm/chart/histogram/histogram-3d.js.map +1 -0
- package/esm/chart/histogram/histogram.d.ts +1 -12
- package/esm/chart/histogram/histogram.js +7 -21
- package/esm/chart/histogram/histogram.js.map +1 -1
- package/esm/chart/histogram/index.d.ts +1 -0
- package/esm/chart/histogram/index.js +2 -0
- package/esm/chart/histogram/index.js.map +1 -1
- package/esm/chart/index.d.ts +57 -22
- package/esm/chart/index.js +36 -22
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/line/line.js +6 -0
- package/esm/chart/line/line.js.map +1 -1
- package/esm/chart/map/map.js +6 -0
- package/esm/chart/map/map.js.map +1 -1
- package/esm/chart/pie/base.d.ts +5 -0
- package/esm/chart/pie/base.js +18 -0
- package/esm/chart/pie/base.js.map +1 -0
- package/esm/chart/pie/index.d.ts +1 -0
- package/esm/chart/pie/index.js +2 -0
- package/esm/chart/pie/index.js.map +1 -1
- package/esm/chart/pie/pie-3d.d.ts +8 -0
- package/esm/chart/pie/pie-3d.js +25 -0
- package/esm/chart/pie/pie-3d.js.map +1 -0
- package/esm/chart/pie/pie.d.ts +1 -13
- package/esm/chart/pie/pie.js +6 -29
- package/esm/chart/pie/pie.js.map +1 -1
- package/esm/chart/progress/circular/circular.js +6 -0
- package/esm/chart/progress/circular/circular.js.map +1 -1
- package/esm/chart/progress/linear/linear.js +6 -0
- package/esm/chart/progress/linear/linear.js.map +1 -1
- package/esm/chart/radar/radar.js +6 -0
- package/esm/chart/radar/radar.js.map +1 -1
- package/esm/chart/range-area/range-area.js +6 -0
- package/esm/chart/range-area/range-area.js.map +1 -1
- package/esm/chart/range-column/index.d.ts +2 -1
- package/esm/chart/range-column/index.js +3 -1
- package/esm/chart/range-column/index.js.map +1 -1
- package/esm/chart/range-column/{rangeColumn.d.ts → range-column-3d.d.ts} +0 -7
- package/esm/chart/range-column/{rangeColumn.js → range-column-3d.js} +5 -13
- package/esm/chart/range-column/range-column-3d.js.map +1 -0
- package/esm/chart/range-column/range-column.d.ts +8 -0
- package/esm/chart/range-column/range-column.js +28 -0
- package/esm/chart/range-column/range-column.js.map +1 -0
- package/esm/chart/rose/rose.js +6 -0
- package/esm/chart/rose/rose.js.map +1 -1
- package/esm/chart/sankey/sankey.js +6 -0
- package/esm/chart/sankey/sankey.js.map +1 -1
- package/esm/chart/scatter/scatter.js +6 -0
- package/esm/chart/scatter/scatter.js.map +1 -1
- package/esm/chart/sequence/sequence.js +6 -0
- package/esm/chart/sequence/sequence.js.map +1 -1
- package/esm/chart/sunburst/sunburst.js +6 -0
- package/esm/chart/sunburst/sunburst.js.map +1 -1
- package/esm/chart/treemap/treemap.js +6 -0
- package/esm/chart/treemap/treemap.js.map +1 -1
- package/esm/chart/waterfall/waterfall.js +6 -0
- package/esm/chart/waterfall/waterfall.js.map +1 -1
- package/esm/chart/word-cloud/base.d.ts +6 -0
- package/esm/chart/word-cloud/base.js +21 -0
- package/esm/chart/word-cloud/base.js.map +1 -0
- package/esm/chart/word-cloud/index.d.ts +1 -0
- package/esm/chart/word-cloud/index.js +2 -0
- package/esm/chart/word-cloud/index.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud-3d.d.ts +9 -0
- package/esm/chart/word-cloud/word-cloud-3d.js +47 -0
- package/esm/chart/word-cloud/word-cloud-3d.js.map +1 -0
- package/esm/chart/word-cloud/word-cloud.d.ts +2 -15
- package/esm/chart/word-cloud/word-cloud.js +6 -50
- package/esm/chart/word-cloud/word-cloud.js.map +1 -1
- package/esm/compile/grammar-item.js +1 -2
- package/esm/component/index.d.ts +39 -1
- package/esm/component/index.js +39 -1
- package/esm/component/index.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +1 -1
- package/esm/component/legend/util.d.ts +3 -3
- package/esm/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +1 -1
- package/esm/constant/marker.js +1 -2
- package/esm/constant/word-cloud.js +2 -1
- package/esm/core/factory.js +1 -1
- package/esm/{export/core.d.ts → core/index.d.ts} +4 -4
- package/esm/{export/core.js → core/index.js} +5 -5
- package/esm/core/index.js.map +1 -0
- package/esm/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/vchart.js +1 -1
- package/esm/data/initialize.js +2 -1
- package/esm/index.d.ts +6 -6
- package/esm/index.js +6 -6
- package/esm/index.js.map +1 -1
- package/esm/interaction/interface.js +1 -1
- package/esm/interaction/trigger.js +1 -1
- package/esm/layout/base-layout.d.ts +24 -0
- package/esm/layout/base-layout.js +116 -0
- package/esm/layout/base-layout.js.map +1 -0
- package/esm/layout/index.d.ts +7 -24
- package/esm/layout/index.js +8 -115
- package/esm/layout/index.js.map +1 -1
- package/esm/layout/layout3d/index.d.ts +1 -1
- package/esm/layout/layout3d/index.js +1 -1
- package/esm/layout/layout3d/index.js.map +1 -1
- package/esm/mark/arc-3d.d.ts +9 -0
- package/esm/mark/arc-3d.js +12 -0
- package/esm/mark/arc-3d.js.map +1 -0
- package/esm/mark/arc.d.ts +1 -6
- package/esm/mark/arc.js +0 -8
- package/esm/mark/arc.js.map +1 -1
- package/esm/mark/index.d.ts +21 -0
- package/esm/mark/index.js +40 -0
- package/esm/mark/index.js.map +1 -0
- package/esm/mark/{linkPath.js → link-path.js} +1 -1
- package/esm/mark/link-path.js.map +1 -0
- package/esm/mark/polygon/base-polygon.d.ts +6 -0
- package/esm/mark/polygon/base-polygon.js +10 -0
- package/esm/mark/polygon/base-polygon.js.map +1 -0
- package/esm/mark/polygon/polygon.d.ts +9 -0
- package/esm/mark/polygon/polygon.js +12 -0
- package/esm/mark/polygon/polygon.js.map +1 -0
- package/esm/mark/polygon/pyramid-3d.d.ts +9 -0
- package/esm/mark/polygon/pyramid-3d.js +12 -0
- package/esm/mark/polygon/pyramid-3d.js.map +1 -0
- package/esm/mark/rect-3d.d.ts +10 -0
- package/esm/mark/rect-3d.js +19 -0
- package/esm/mark/rect-3d.js.map +1 -0
- package/esm/mark/rect.d.ts +1 -7
- package/esm/mark/rect.js +0 -15
- package/esm/mark/rect.js.map +1 -1
- package/esm/model/layout-item.js +1 -2
- package/esm/plugin/interface.js +1 -1
- package/esm/region/region.js +1 -1
- package/esm/series/area/area.js +12 -0
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/bar/bar-3d.d.ts +11 -0
- package/esm/series/bar/bar-3d.js +30 -0
- package/esm/series/bar/bar-3d.js.map +1 -0
- package/esm/series/bar/bar.d.ts +0 -7
- package/esm/series/bar/bar.js +8 -14
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/box-plot/box-plot.js +8 -0
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +8 -0
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/dot/dot.js +14 -0
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/funnel-3d.d.ts +18 -0
- package/esm/series/funnel/funnel-3d.js +113 -0
- package/esm/series/funnel/funnel-3d.js.map +1 -0
- package/esm/series/funnel/funnel.d.ts +2 -14
- package/esm/series/funnel/funnel.js +10 -93
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/gauge/gauge-pointer.js +8 -0
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge.js +6 -0
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/heatmap/heatmap.js +8 -0
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/index.d.ts +66 -0
- package/esm/series/index.js +70 -0
- package/esm/series/index.js.map +1 -0
- package/esm/series/line/line.js +10 -0
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/link.js +10 -0
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/map/map.js +7 -1
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/pie/pie-3d.d.ts +16 -0
- package/esm/series/pie/pie-3d.js +107 -0
- package/esm/series/pie/pie-3d.js.map +1 -0
- package/esm/series/pie/pie.d.ts +1 -11
- package/esm/series/pie/pie.js +10 -83
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/polar/animation.d.ts +1 -1
- package/esm/series/polar/animation.js.map +1 -1
- package/esm/series/progress/circular/circular.js +8 -0
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/linear/linear.js +6 -0
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/animation.d.ts +1 -1
- package/esm/series/radar/animation.js.map +1 -1
- package/esm/series/radar/radar.js +12 -0
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-column/rangeColumn-3d.d.ts +10 -0
- package/esm/series/range-column/rangeColumn-3d.js +23 -0
- package/esm/series/range-column/rangeColumn-3d.js.map +1 -0
- package/esm/series/range-column/rangeColumn.d.ts +0 -6
- package/esm/series/range-column/rangeColumn.js +0 -9
- package/esm/series/range-column/rangeColumn.js.map +1 -1
- package/esm/series/rose/rose.js +8 -0
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/sankey.js +9 -1
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/scatter.js +8 -0
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/sunburst.js +8 -0
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/treemap.js +8 -0
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/waterfall/waterfall.js +6 -0
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/series/word-cloud/base.d.ts +60 -0
- package/esm/series/word-cloud/base.js +278 -0
- package/esm/series/word-cloud/base.js.map +1 -0
- package/esm/series/word-cloud/word-cloud-3d.d.ts +11 -0
- package/esm/series/word-cloud/word-cloud-3d.js +207 -0
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -0
- package/esm/series/word-cloud/word-cloud.d.ts +2 -69
- package/esm/series/word-cloud/word-cloud.js +2 -461
- package/esm/series/word-cloud/word-cloud.js.map +1 -1
- package/esm/vchart-all.d.ts +1 -1
- package/esm/vchart-all.js +4 -12
- package/esm/vchart-all.js.map +1 -1
- package/esm/vchart-simple.d.ts +1 -1
- package/esm/vchart-simple.js +4 -10
- package/esm/vchart-simple.js.map +1 -1
- package/layout.d.ts +1 -1
- package/layout.js +1 -1
- package/mark.d.ts +1 -1
- package/mark.js +1 -1
- package/package.json +1 -1
- package/series.d.ts +1 -1
- package/series.js +1 -1
- package/cjs/chart/range-column/rangeColumn.js.map +0 -1
- package/cjs/export/chart.d.ts +0 -57
- package/cjs/export/chart.js +0 -298
- package/cjs/export/chart.js.map +0 -1
- package/cjs/export/component.d.ts +0 -39
- package/cjs/export/component.js +0 -207
- package/cjs/export/component.js.map +0 -1
- package/cjs/export/core.js.map +0 -1
- package/cjs/export/layout.d.ts +0 -7
- package/cjs/export/layout.js +0 -33
- package/cjs/export/layout.js.map +0 -1
- package/cjs/export/mark.d.ts +0 -18
- package/cjs/export/mark.js.map +0 -1
- package/cjs/export/series.d.ts +0 -61
- package/cjs/export/series.js.map +0 -1
- package/cjs/mark/linkPath.js.map +0 -1
- package/cjs/mark/polygon.d.ts +0 -18
- package/cjs/mark/polygon.js +0 -32
- package/cjs/mark/polygon.js.map +0 -1
- package/esm/chart/range-column/rangeColumn.js.map +0 -1
- package/esm/export/chart.d.ts +0 -57
- package/esm/export/chart.js +0 -58
- package/esm/export/chart.js.map +0 -1
- package/esm/export/component.d.ts +0 -39
- package/esm/export/component.js +0 -40
- package/esm/export/component.js.map +0 -1
- package/esm/export/core.js.map +0 -1
- package/esm/export/layout.d.ts +0 -7
- package/esm/export/layout.js +0 -8
- package/esm/export/layout.js.map +0 -1
- package/esm/export/mark.d.ts +0 -18
- package/esm/export/mark.js +0 -34
- package/esm/export/mark.js.map +0 -1
- package/esm/export/series.d.ts +0 -61
- package/esm/export/series.js +0 -60
- package/esm/export/series.js.map +0 -1
- package/esm/mark/linkPath.js.map +0 -1
- package/esm/mark/polygon.d.ts +0 -18
- package/esm/mark/polygon.js +0 -28
- package/esm/mark/polygon.js.map +0 -1
- /package/cjs/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
- /package/esm/mark/{linkPath.d.ts → link-path.d.ts} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SeriesTypeEnum } from "../../series/interface";
|
|
2
|
+
|
|
3
|
+
import { ChartTypeEnum } from "../interface";
|
|
4
|
+
|
|
5
|
+
import { BaseWordCloudChart } from "./base";
|
|
6
|
+
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { WordCloud3dSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ WordCloud3dSeries ]);
|
|
12
|
+
|
|
13
|
+
export class WordCloud3dChart extends BaseWordCloudChart {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = ChartTypeEnum.wordCloud3d, this.seriesType = SeriesTypeEnum.wordCloud3d;
|
|
16
|
+
}
|
|
17
|
+
_getDefaultSeriesSpec(spec) {
|
|
18
|
+
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
19
|
+
nameField: spec.nameField,
|
|
20
|
+
valueField: spec.valueField,
|
|
21
|
+
seriesField: spec.seriesField,
|
|
22
|
+
fontFamilyField: spec.fontFamilyField,
|
|
23
|
+
fontWeightField: spec.fontWeightField,
|
|
24
|
+
fontStyleField: spec.fontStyleField,
|
|
25
|
+
colorHexField: spec.colorHexField,
|
|
26
|
+
colorMode: spec.colorMode,
|
|
27
|
+
colorList: spec.colorList,
|
|
28
|
+
rotateAngles: spec.rotateAngles,
|
|
29
|
+
fontWeightRange: spec.fontWeightRange,
|
|
30
|
+
fontSizeRange: spec.fontSizeRange,
|
|
31
|
+
depth_3d: spec.depth_3d,
|
|
32
|
+
maskShape: spec.maskShape,
|
|
33
|
+
keepAspect: spec.keepAspect,
|
|
34
|
+
random: spec.random,
|
|
35
|
+
wordCloudConfig: spec.wordCloudConfig,
|
|
36
|
+
wordCloudShapeConfig: spec.wordCloudShapeConfig,
|
|
37
|
+
word: spec.word,
|
|
38
|
+
fillingWord: spec.fillingWord,
|
|
39
|
+
chartPadding: spec.padding
|
|
40
|
+
}), seriesType = this.seriesType;
|
|
41
|
+
return seriesType && (series.type = seriesType, series[seriesType] = spec[seriesType]),
|
|
42
|
+
series;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
WordCloud3dChart.type = ChartTypeEnum.wordCloud3d, WordCloud3dChart.view = "singleDefault";
|
|
47
|
+
//# sourceMappingURL=word-cloud-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/word-cloud-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,MAAM,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEtC,MAAM,OAAO,gBAAiB,SAAQ,kBAAkB;IAAxD;;QAGW,SAAI,GAAW,aAAa,CAAC,WAAW,CAAC;QACzC,eAAU,GAAW,cAAc,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;;AArCe,qBAAI,GAAW,aAAa,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,22 +2,13 @@ import { SeriesTypeEnum } from "../../series/interface";
|
|
|
2
2
|
|
|
3
3
|
import { ChartTypeEnum } from "../interface";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { BaseWordCloudChart } from "./base";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
super.transformSpec(spec);
|
|
13
|
-
const defaultSeriesSpec = this._getDefaultSeriesSpec(spec);
|
|
14
|
-
spec.series && 0 !== spec.series.length ? spec.series.forEach((s => {
|
|
15
|
-
this.isValidSeries(s.type) && Object.keys(defaultSeriesSpec).forEach((k => {
|
|
16
|
-
k in s || (s[k] = defaultSeriesSpec[k]);
|
|
17
|
-
}));
|
|
18
|
-
})) : spec.series = [ defaultSeriesSpec ];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
7
|
+
import { VChart } from "../../core/vchart";
|
|
8
|
+
|
|
9
|
+
import { WordCloudSeries } from "../../series";
|
|
10
|
+
|
|
11
|
+
VChart.useSeries([ WordCloudSeries ]);
|
|
21
12
|
|
|
22
13
|
export class WordCloudChart extends BaseWordCloudChart {
|
|
23
14
|
constructor() {
|
|
@@ -52,39 +43,4 @@ export class WordCloudChart extends BaseWordCloudChart {
|
|
|
52
43
|
}
|
|
53
44
|
|
|
54
45
|
WordCloudChart.type = ChartTypeEnum.wordCloud, WordCloudChart.view = "singleDefault";
|
|
55
|
-
|
|
56
|
-
export class WordCloud3dChart extends BaseWordCloudChart {
|
|
57
|
-
constructor() {
|
|
58
|
-
super(...arguments), this.type = ChartTypeEnum.wordCloud3d, this.seriesType = SeriesTypeEnum.wordCloud3d;
|
|
59
|
-
}
|
|
60
|
-
_getDefaultSeriesSpec(spec) {
|
|
61
|
-
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), {
|
|
62
|
-
nameField: spec.nameField,
|
|
63
|
-
valueField: spec.valueField,
|
|
64
|
-
seriesField: spec.seriesField,
|
|
65
|
-
fontFamilyField: spec.fontFamilyField,
|
|
66
|
-
fontWeightField: spec.fontWeightField,
|
|
67
|
-
fontStyleField: spec.fontStyleField,
|
|
68
|
-
colorHexField: spec.colorHexField,
|
|
69
|
-
colorMode: spec.colorMode,
|
|
70
|
-
colorList: spec.colorList,
|
|
71
|
-
rotateAngles: spec.rotateAngles,
|
|
72
|
-
fontWeightRange: spec.fontWeightRange,
|
|
73
|
-
fontSizeRange: spec.fontSizeRange,
|
|
74
|
-
depth_3d: spec.depth_3d,
|
|
75
|
-
maskShape: spec.maskShape,
|
|
76
|
-
keepAspect: spec.keepAspect,
|
|
77
|
-
random: spec.random,
|
|
78
|
-
wordCloudConfig: spec.wordCloudConfig,
|
|
79
|
-
wordCloudShapeConfig: spec.wordCloudShapeConfig,
|
|
80
|
-
word: spec.word,
|
|
81
|
-
fillingWord: spec.fillingWord,
|
|
82
|
-
chartPadding: spec.padding
|
|
83
|
-
}), seriesType = this.seriesType;
|
|
84
|
-
return seriesType && (series.type = seriesType, series[seriesType] = spec[seriesType]),
|
|
85
|
-
series;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
WordCloud3dChart.type = ChartTypeEnum.wordCloud3d, WordCloud3dChart.view = "singleDefault";
|
|
90
46
|
//# sourceMappingURL=word-cloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/word-cloud/word-cloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/chart/word-cloud/word-cloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AAEpC,MAAM,OAAO,cAAe,SAAQ,kBAAkB;IAAtD;;QAGW,SAAI,GAAW,aAAa,CAAC,SAAS,CAAC;QACvC,eAAU,GAAW,cAAc,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;;AApCe,mBAAI,GAAW,aAAa,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/esm/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/esm/component/index.js
CHANGED
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
import { ScrollBar } from "./data-zoom/scroll-bar";
|
|
2
|
+
|
|
3
|
+
import { DataZoom } from "./data-zoom/data-zoom";
|
|
4
|
+
|
|
5
|
+
import { CustomMark } from "./custom-mark";
|
|
6
|
+
|
|
7
|
+
import { Brush } from "./brush";
|
|
8
|
+
|
|
9
|
+
import { MapLabelComponent } from "./map-label";
|
|
10
|
+
|
|
11
|
+
import { CartesianAxis, CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis } from "./axis/cartesian/index";
|
|
12
|
+
|
|
13
|
+
import { PolarAxis, PolarBandAxis, PolarLinearAxis } from "./axis/polar";
|
|
14
|
+
|
|
15
|
+
import { DiscreteLegend } from "./legend/discrete";
|
|
16
|
+
|
|
17
|
+
import { ContinuousLegend } from "./legend/continuous";
|
|
18
|
+
|
|
19
|
+
import { Indicator } from "./indicator";
|
|
20
|
+
|
|
21
|
+
import { Title } from "./title";
|
|
22
|
+
|
|
23
|
+
import { GeoCoordinate } from "./geo";
|
|
24
|
+
|
|
25
|
+
import { CartesianCrossHair, PolarCrossHair } from "./crosshair";
|
|
26
|
+
|
|
27
|
+
import { Player } from "./player";
|
|
28
|
+
|
|
29
|
+
import { MarkLine } from "./marker/mark-line";
|
|
30
|
+
|
|
31
|
+
import { MarkArea } from "./marker/mark-area";
|
|
32
|
+
|
|
33
|
+
import { MarkPoint } from "./marker/mark-point";
|
|
34
|
+
|
|
35
|
+
import { Tooltip } from "./tooltip";
|
|
36
|
+
|
|
37
|
+
import { Label } from "./label";
|
|
38
|
+
|
|
39
|
+
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 };
|
|
2
40
|
//# 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,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAElH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACN,CAAC","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
|
}
|
package/esm/constant/marker.js
CHANGED
|
@@ -12,4 +12,5 @@ export const WORDCLOUD_DATA_TOTAL = `${PREFIX}_WORDCLOUD_DATA_TOTAL`;
|
|
|
12
12
|
|
|
13
13
|
export const WORD_CLOUD_TEXT = `${PREFIX}_WORD_CLOUD_TEXT`;
|
|
14
14
|
|
|
15
|
-
export const WORDCLOUD_SHAPE_DATA_TOTAL = `${PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
|
|
15
|
+
export const WORDCLOUD_SHAPE_DATA_TOTAL = `${PREFIX}_WORDCLOUD_SHAPE_DATA_TOTAL`;
|
|
16
|
+
//# sourceMappingURL=word-cloud.js.map
|
package/esm/core/factory.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VChart } from '
|
|
2
|
-
import { Factory } from '
|
|
1
|
+
import { VChart } from './vchart';
|
|
2
|
+
import { Factory } from './factory';
|
|
3
3
|
export { VChart, Factory };
|
|
4
|
-
export declare const version = "1.0.1-alpha.
|
|
5
|
-
export type { IVChart } from '
|
|
4
|
+
export declare const version = "1.0.1-alpha.2";
|
|
5
|
+
export type { IVChart } from './interface';
|
|
6
6
|
export * from '../event/interface';
|
|
7
7
|
export * from '../typings/spec/common';
|
|
8
8
|
export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { VChart } from "
|
|
1
|
+
import { VChart } from "./vchart";
|
|
2
2
|
|
|
3
|
-
import { Factory } from "
|
|
3
|
+
import { Factory } from "./factory";
|
|
4
4
|
|
|
5
5
|
import { Region } from "../region/region";
|
|
6
6
|
|
|
7
|
-
import { Layout } from "../layout/
|
|
7
|
+
import { Layout } from "../layout/base-layout";
|
|
8
8
|
|
|
9
9
|
import { GroupMark } from "../mark/group";
|
|
10
10
|
|
|
@@ -15,11 +15,11 @@ Factory.registerLayout("base", Layout);
|
|
|
15
15
|
|
|
16
16
|
export { VChart, Factory };
|
|
17
17
|
|
|
18
|
-
export const version = "1.0.1-alpha.
|
|
18
|
+
export const version = "1.0.1-alpha.2";
|
|
19
19
|
|
|
20
20
|
export * from "../event/interface";
|
|
21
21
|
|
|
22
22
|
export * from "../typings/spec/common";
|
|
23
23
|
|
|
24
24
|
export * from "../theme/interface";
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;AAG3C,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAa,CAAC,CAAC;AAGhD,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,MAAa,CAAC,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAKvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,oBAAoB,CAAC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\nimport { Region } from '../region/region';\nimport { Layout } from '../layout/base-layout';\nimport { GroupMark } from '../mark/group';\nimport { ComponentMark } from '../mark/component';\n\n// register groupMark and componentMark\nVChart.useMark([ComponentMark, GroupMark]);\n\n// install region module\nFactory.registerRegion('region', Region as any);\n\n// install layout module\nFactory.registerLayout('base', Layout as any);\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"1.0.1-alpha.2\";\n\n// export necessary types\nexport type { IVChart } from './interface';\n// the event types\nexport * from '../event/interface';\nexport * from '../typings/spec/common';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport * from '../theme/interface';\n"]}
|
package/esm/core/interface.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { };
|
|
2
|
-
//# sourceMappingURL=interface.js.map
|
|
2
|
+
//# sourceMappingURL=interface.js.map
|
package/esm/core/vchart.js
CHANGED
package/esm/data/initialize.js
CHANGED
package/esm/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VChart } from './vchart-all';
|
|
2
2
|
export default VChart;
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './chart';
|
|
5
|
+
export * from './series';
|
|
6
|
+
export * from './mark';
|
|
7
|
+
export * from './component';
|
|
8
|
+
export * from './layout';
|
|
9
9
|
export * from './typings/spec/index';
|
|
10
10
|
export { ThemeManager } from './theme/index';
|
package/esm/index.js
CHANGED
|
@@ -2,17 +2,17 @@ import { VChart } from "./vchart-all";
|
|
|
2
2
|
|
|
3
3
|
export default VChart;
|
|
4
4
|
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./core";
|
|
6
6
|
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./chart";
|
|
8
8
|
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./series";
|
|
10
10
|
|
|
11
|
-
export * from "./
|
|
11
|
+
export * from "./mark";
|
|
12
12
|
|
|
13
|
-
export * from "./
|
|
13
|
+
export * from "./component";
|
|
14
14
|
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./layout";
|
|
16
16
|
|
|
17
17
|
export * from "./typings/spec/index";
|
|
18
18
|
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,eAAe,MAAM,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,eAAe,MAAM,CAAC;AAEtB,cAAc,QAAQ,CAAC;AAGvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AAIzB,cAAc,sBAAsB,CAAC;AAGrC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC","file":"index.js","sourcesContent":["import { VChart } from './vchart-all';\nexport default VChart;\n\nexport * from './core';\n\n// chart\nexport * from './chart';\nexport * from './series';\nexport * from './mark';\nexport * from './component';\nexport * from './layout';\n/**\n * spec\n */\nexport * from './typings/spec/index';\n\n// theme\nexport { ThemeManager } from './theme/index';\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { };
|
|
2
|
-
//# sourceMappingURL=interface.js.map
|
|
2
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IChart } from '../chart/interface/chart';
|
|
2
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
3
|
+
import type { ILayoutItem } from '../model/interface';
|
|
4
|
+
import type { IBaseLayout } from './interface';
|
|
5
|
+
import type { IPadding, IRect } from '../typings/space';
|
|
6
|
+
import type { IRegion } from '../region/interface';
|
|
7
|
+
export declare class Layout implements IBaseLayout {
|
|
8
|
+
protected _leftCurrent: number;
|
|
9
|
+
protected _topCurrent: number;
|
|
10
|
+
protected _rightCurrent: number;
|
|
11
|
+
protected _bottomCurrent: number;
|
|
12
|
+
_chartLayoutRect: IRect;
|
|
13
|
+
_chartViewBox: IBoundsLike;
|
|
14
|
+
layoutItems(_chart: IChart, items: ILayoutItem[], chartLayoutRect: IRect, chartViewBox: IBoundsLike): void;
|
|
15
|
+
protected layoutNormalItems(normalItems: ILayoutItem[]): void;
|
|
16
|
+
protected layoutRegionItems(regionItems: IRegion[], regionRelativeItems: ILayoutItem[]): void;
|
|
17
|
+
protected layoutAbsoluteItems(absoluteItems: ILayoutItem[]): void;
|
|
18
|
+
filterRegionsWithID(regions: IRegion[], id: number): ILayoutItem;
|
|
19
|
+
protected getItemComputeLayoutRect(item: ILayoutItem): {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
protected _checkAutoIndent(items: ILayoutItem[]): IPadding;
|
|
24
|
+
}
|