@visactor/vchart 1.5.1-alpha.6 → 1.5.1
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/es5/index.js +1 -1
- package/build/index.js +1349 -417
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base-chart.js +4 -1
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/chart/common/interface.d.ts +2 -1
- package/cjs/chart/common/interface.js.map +1 -1
- package/cjs/chart/correlation/correlation.d.ts +11 -0
- package/cjs/chart/correlation/correlation.js +53 -0
- package/cjs/chart/correlation/correlation.js.map +1 -0
- package/cjs/chart/correlation/index.d.ts +2 -0
- package/cjs/chart/correlation/index.js +21 -0
- package/cjs/chart/correlation/index.js.map +1 -0
- package/cjs/chart/correlation/interface.d.ts +6 -0
- package/cjs/chart/correlation/interface.js +6 -0
- package/cjs/chart/correlation/interface.js.map +1 -0
- package/cjs/chart/index.d.ts +5 -3
- package/cjs/chart/index.js +16 -2
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/interface/type.d.ts +2 -1
- package/cjs/chart/interface/type.js +2 -1
- package/cjs/chart/interface/type.js.map +1 -1
- package/cjs/chart/sequence/sequence.js +0 -1
- package/cjs/chart/sequence/sequence.js.map +1 -1
- package/cjs/chart/waterfall/waterfall.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +2 -2
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +4 -0
- package/cjs/component/axis/cartesian/axis.js +51 -9
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/common.d.ts +6 -1
- package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/spec.d.ts +2 -1
- package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/theme.d.ts +2 -1
- package/cjs/component/axis/cartesian/interface/theme.js.map +1 -1
- package/cjs/component/base/base-component.d.ts +1 -1
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/brush/brush.d.ts +2 -2
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/brush/interface.d.ts +1 -1
- package/cjs/component/brush/interface.js.map +1 -1
- package/cjs/component/common/trigger/desktop.d.ts +1 -0
- package/cjs/component/common/trigger/desktop.js +1 -0
- package/cjs/component/common/trigger/desktop.js.map +1 -1
- package/cjs/component/common/trigger/mobile.d.ts +1 -0
- package/cjs/component/common/trigger/mobile.js +1 -0
- package/cjs/component/common/trigger/mobile.js.map +1 -1
- package/cjs/component/crosshair/cartesian.d.ts +2 -2
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/polar.d.ts +2 -2
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.d.ts +2 -2
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.d.ts +26 -9
- package/cjs/component/data-zoom/data-filter-base-component.js +92 -20
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +2 -3
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +16 -8
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/interface.d.ts +36 -2
- package/cjs/component/data-zoom/interface.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -3
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +17 -9
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/geo/geo-coordinate.d.ts +2 -2
- package/cjs/component/geo/geo-coordinate.js.map +1 -1
- package/cjs/component/indicator/indicator.d.ts +2 -2
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/interface/common.d.ts +2 -2
- package/cjs/component/interface/common.js.map +1 -1
- package/cjs/component/label/base-label.d.ts +2 -2
- package/cjs/component/label/base-label.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +2 -2
- package/cjs/component/legend/base-legend.js.map +1 -1
- package/cjs/component/legend/continuous/legend.d.ts +1 -1
- package/cjs/component/legend/discrete/legend.d.ts +1 -1
- package/cjs/component/legend/interface.d.ts +3 -0
- package/cjs/component/legend/interface.js.map +1 -1
- package/cjs/component/map-label/component.d.ts +3 -3
- package/cjs/component/map-label/component.js.map +1 -1
- package/cjs/component/marker/base-marker.d.ts +2 -2
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
- package/cjs/component/player/player.d.ts +2 -2
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/title/title.d.ts +2 -2
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/handler/base.d.ts +1 -1
- package/cjs/component/tooltip/handler/dom/util.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/common.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/compose.js +2 -1
- package/cjs/component/tooltip/handler/utils/compose.js.map +1 -1
- package/cjs/component/tooltip/tooltip.d.ts +2 -2
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/constant/correlation.d.ts +3 -0
- package/cjs/constant/correlation.js +11 -0
- package/cjs/constant/correlation.js.map +1 -0
- package/cjs/constant/index.d.ts +1 -0
- package/cjs/constant/index.js +2 -1
- package/cjs/constant/index.js.map +1 -1
- package/cjs/constant/word-cloud.js +1 -2
- package/cjs/core/factory.js +2 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/data/transforms/correlation-center.d.ts +4 -0
- package/cjs/data/transforms/correlation-center.js +18 -0
- package/cjs/data/transforms/correlation-center.js.map +1 -0
- package/cjs/data/transforms/correlation.d.ts +17 -0
- package/cjs/data/transforms/correlation.js +58 -0
- package/cjs/data/transforms/correlation.js.map +1 -0
- package/cjs/interaction/dimension-trigger.js +1 -2
- package/cjs/interaction/interaction.js +2 -1
- package/cjs/interaction/zoom/zoomable.d.ts +20 -12
- package/cjs/interaction/zoom/zoomable.js +94 -74
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/layout/base-layout.d.ts +7 -1
- package/cjs/layout/base-layout.js +24 -10
- package/cjs/layout/base-layout.js.map +1 -1
- package/cjs/layout/layout3d/index.d.ts +6 -0
- package/cjs/layout/layout3d/index.js +14 -0
- package/cjs/layout/layout3d/index.js.map +1 -1
- package/cjs/mark/arc-3d.js +1 -1
- package/cjs/mark/index.d.ts +3 -2
- package/cjs/mark/index.js +10 -1
- package/cjs/mark/index.js.map +1 -1
- package/cjs/mark/interface/type.d.ts +1 -0
- package/cjs/mark/interface/type.js +1 -1
- package/cjs/mark/interface/type.js.map +1 -1
- package/cjs/mark/ripple.d.ts +12 -0
- package/cjs/mark/ripple.js +29 -0
- package/cjs/mark/ripple.js.map +1 -0
- package/cjs/model/base-model.d.ts +0 -3
- package/cjs/model/base-model.js +0 -3
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +0 -2
- package/cjs/model/interface.js.map +1 -1
- package/cjs/series/area/area.js +4 -2
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/bar/bar.d.ts +1 -0
- package/cjs/series/bar/bar.js +4 -3
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/base/base-series.js +6 -9
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/box-plot/box-plot.js +9 -9
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +7 -6
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/correlation/animation.d.ts +8 -0
- package/cjs/series/correlation/animation.js +22 -0
- package/cjs/series/correlation/animation.js.map +1 -0
- package/cjs/series/correlation/constant.d.ts +2 -0
- package/cjs/series/correlation/constant.js +27 -0
- package/cjs/series/correlation/constant.js.map +1 -0
- package/cjs/series/correlation/correlation.d.ts +57 -0
- package/cjs/series/correlation/correlation.js +215 -0
- package/cjs/series/correlation/correlation.js.map +1 -0
- package/cjs/series/correlation/interface.d.ts +37 -0
- package/cjs/series/correlation/interface.js +6 -0
- package/cjs/series/correlation/interface.js.map +1 -0
- package/cjs/series/dot/dot.js +2 -4
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/funnel.js +4 -6
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/gauge/gauge-pointer.d.ts +1 -0
- package/cjs/series/gauge/gauge-pointer.js +4 -2
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge.d.ts +1 -0
- package/cjs/series/gauge/gauge.js +5 -3
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/heatmap/heatmap.js +2 -4
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/index.d.ts +4 -2
- package/cjs/series/index.js +11 -2
- package/cjs/series/index.js.map +1 -1
- package/cjs/series/interface/series.d.ts +1 -1
- package/cjs/series/interface/series.js.map +1 -1
- package/cjs/series/interface/theme.d.ts +2 -0
- package/cjs/series/interface/theme.js +3 -2
- package/cjs/series/interface/theme.js.map +1 -1
- package/cjs/series/interface/type.d.ts +7 -2
- package/cjs/series/interface/type.js +4 -2
- package/cjs/series/interface/type.js.map +1 -1
- package/cjs/series/line/line.d.ts +1 -0
- package/cjs/series/line/line.js +4 -0
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/link.js +6 -7
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/map/map.js +2 -4
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/mixin/line-mixin.js +2 -5
- package/cjs/series/mixin/line-mixin.js.map +1 -1
- package/cjs/series/pie/interface.d.ts +2 -0
- package/cjs/series/pie/interface.js.map +1 -1
- package/cjs/series/pie/pie-3d.js +6 -6
- package/cjs/series/pie/pie-3d.js.map +1 -1
- package/cjs/series/pie/pie.d.ts +2 -0
- package/cjs/series/pie/pie.js +18 -3
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/progress/circular/circular.d.ts +1 -0
- package/cjs/series/progress/circular/circular.js +5 -3
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/linear/linear.js +6 -6
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/animation.js.map +1 -1
- package/cjs/series/radar/radar.d.ts +1 -0
- package/cjs/series/radar/radar.js +6 -2
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-area/range-area.js +2 -3
- package/cjs/series/range-area/range-area.js.map +1 -1
- package/cjs/series/range-column/range-column.d.ts +1 -0
- package/cjs/series/range-column/range-column.js +11 -11
- package/cjs/series/range-column/range-column.js.map +1 -1
- package/cjs/series/rose/rose.d.ts +1 -0
- package/cjs/series/rose/rose.js +4 -2
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/sankey.js +7 -9
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/scatter.d.ts +1 -0
- package/cjs/series/scatter/scatter.js +4 -3
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/sunburst.js +4 -6
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/treemap.js +10 -9
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/word-cloud/base.d.ts +1 -0
- package/cjs/series/word-cloud/base.js +6 -3
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js +2 -3
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +31 -3
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
- package/cjs/theme/builtin/common/component/indicator.js +1 -1
- package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
- package/cjs/theme/builtin/common/component/legend/continuous.js +1 -1
- package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js +1 -1
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-area.js +12 -10
- package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-line.js +19 -12
- package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-point.js +8 -2
- package/cjs/theme/builtin/common/component/mark-point.js.map +1 -1
- package/cjs/theme/builtin/common/component/poptip.js +1 -1
- package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
- package/cjs/theme/builtin/common/component/title.js +1 -1
- package/cjs/theme/builtin/common/component/title.js.map +1 -1
- package/cjs/theme/builtin/common/component/tooltip.js +2 -2
- package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
- package/cjs/theme/builtin/common/component/total-label.js +1 -1
- package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
- package/cjs/theme/builtin/common/series/area.js +4 -1
- package/cjs/theme/builtin/common/series/area.js.map +1 -1
- package/cjs/theme/builtin/common/series/bar.js +4 -1
- package/cjs/theme/builtin/common/series/bar.js.map +1 -1
- package/cjs/theme/builtin/common/series/circle-packing.js +4 -1
- package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
- package/cjs/theme/builtin/common/series/correlation.d.ts +2 -0
- package/cjs/theme/builtin/common/series/correlation.js +22 -0
- package/cjs/theme/builtin/common/series/correlation.js.map +1 -0
- package/cjs/theme/builtin/common/series/funnel.js +12 -3
- package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
- package/cjs/theme/builtin/common/series/index.js +3 -2
- package/cjs/theme/builtin/common/series/index.js.map +1 -1
- package/cjs/theme/builtin/common/series/line.js +4 -1
- package/cjs/theme/builtin/common/series/line.js.map +1 -1
- package/cjs/theme/builtin/common/series/map.js +4 -1
- package/cjs/theme/builtin/common/series/map.js.map +1 -1
- package/cjs/theme/builtin/common/series/pie.js +9 -1
- package/cjs/theme/builtin/common/series/pie.js.map +1 -1
- package/cjs/theme/builtin/common/series/radar.js +4 -1
- package/cjs/theme/builtin/common/series/radar.js.map +1 -1
- package/cjs/theme/builtin/common/series/rose.js +5 -1
- package/cjs/theme/builtin/common/series/rose.js.map +1 -1
- package/cjs/theme/builtin/common/series/scatter.js +4 -1
- package/cjs/theme/builtin/common/series/scatter.js.map +1 -1
- package/cjs/theme/builtin/common/series/treemap.js +4 -1
- package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
- package/cjs/theme/builtin/dark/color-scheme.js +1 -1
- package/cjs/theme/builtin/dark/color-scheme.js.map +1 -1
- package/cjs/theme/builtin/light/color-scheme.js +3 -3
- package/cjs/theme/builtin/light/color-scheme.js.map +1 -1
- package/cjs/theme/color-scheme/builtin/interface.d.ts +1 -1
- package/cjs/theme/color-scheme/builtin/interface.js.map +1 -1
- package/cjs/theme/color-scheme/interface.d.ts +1 -1
- package/cjs/theme/color-scheme/interface.js.map +1 -1
- package/cjs/theme/color-scheme/util.js +3 -7
- package/cjs/theme/color-scheme/util.js.map +1 -1
- package/cjs/typings/event.d.ts +1 -0
- package/cjs/typings/event.js +6 -0
- package/cjs/typings/event.js.map +1 -0
- package/cjs/typings/spec/chart.d.ts +2 -0
- package/cjs/typings/spec/chart.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +8 -6
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/typings/tooltip/line.d.ts +1 -0
- package/cjs/typings/tooltip/line.js.map +1 -1
- package/cjs/typings/visual.d.ts +4 -0
- package/cjs/typings/visual.js.map +1 -1
- package/cjs/vchart-all.js +2 -2
- package/cjs/vchart-all.js.map +1 -1
- package/esm/chart/base-chart.js +4 -1
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/chart/common/interface.d.ts +2 -1
- package/esm/chart/common/interface.js.map +1 -1
- package/esm/chart/correlation/correlation.d.ts +11 -0
- package/esm/chart/correlation/correlation.js +52 -0
- package/esm/chart/correlation/correlation.js.map +1 -0
- package/esm/chart/correlation/index.d.ts +2 -0
- package/esm/chart/correlation/index.js +4 -0
- package/esm/chart/correlation/index.js.map +1 -0
- package/esm/chart/correlation/interface.d.ts +6 -0
- package/esm/chart/correlation/interface.js +2 -0
- package/esm/chart/correlation/interface.js.map +1 -0
- package/esm/chart/index.d.ts +5 -3
- package/esm/chart/index.js +4 -2
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/interface/type.d.ts +2 -1
- package/esm/chart/interface/type.js +2 -1
- package/esm/chart/interface/type.js.map +1 -1
- package/esm/chart/sequence/sequence.js +0 -1
- package/esm/chart/sequence/sequence.js.map +1 -1
- package/esm/chart/waterfall/waterfall.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +2 -2
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +4 -0
- package/esm/component/axis/cartesian/axis.js +52 -8
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/interface/common.d.ts +6 -1
- package/esm/component/axis/cartesian/interface/common.js.map +1 -1
- package/esm/component/axis/cartesian/interface/spec.d.ts +2 -1
- package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
- package/esm/component/axis/cartesian/interface/theme.d.ts +2 -1
- package/esm/component/axis/cartesian/interface/theme.js.map +1 -1
- package/esm/component/base/base-component.d.ts +1 -1
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/brush/brush.d.ts +2 -2
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/brush/interface.d.ts +1 -1
- package/esm/component/brush/interface.js.map +1 -1
- package/esm/component/common/trigger/desktop.d.ts +1 -0
- package/esm/component/common/trigger/desktop.js +1 -0
- package/esm/component/common/trigger/desktop.js.map +1 -1
- package/esm/component/common/trigger/mobile.d.ts +1 -0
- package/esm/component/common/trigger/mobile.js +1 -0
- package/esm/component/common/trigger/mobile.js.map +1 -1
- package/esm/component/crosshair/cartesian.d.ts +2 -2
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/polar.d.ts +2 -2
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.d.ts +2 -2
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.d.ts +26 -9
- package/esm/component/data-zoom/data-filter-base-component.js +91 -20
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +2 -3
- package/esm/component/data-zoom/data-zoom/data-zoom.js +17 -9
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/interface.d.ts +36 -2
- package/esm/component/data-zoom/interface.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -3
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +18 -10
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/geo/geo-coordinate.d.ts +2 -2
- package/esm/component/geo/geo-coordinate.js.map +1 -1
- package/esm/component/indicator/indicator.d.ts +2 -2
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/interface/common.d.ts +2 -2
- package/esm/component/interface/common.js.map +1 -1
- package/esm/component/label/base-label.d.ts +2 -2
- package/esm/component/label/base-label.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +2 -2
- package/esm/component/legend/base-legend.js.map +1 -1
- package/esm/component/legend/continuous/legend.d.ts +1 -1
- package/esm/component/legend/discrete/legend.d.ts +1 -1
- package/esm/component/legend/interface.d.ts +3 -0
- package/esm/component/legend/interface.js.map +1 -1
- package/esm/component/map-label/component.d.ts +3 -3
- package/esm/component/map-label/component.js.map +1 -1
- package/esm/component/marker/base-marker.d.ts +2 -2
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/mark-line/mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/mark-point.js.map +1 -1
- package/esm/component/player/player.d.ts +2 -2
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/title/title.d.ts +2 -2
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/handler/base.d.ts +1 -1
- package/esm/component/tooltip/handler/dom/util.js.map +1 -1
- package/esm/component/tooltip/handler/utils/common.js.map +1 -1
- package/esm/component/tooltip/handler/utils/compose.js +2 -1
- package/esm/component/tooltip/handler/utils/compose.js.map +1 -1
- package/esm/component/tooltip/tooltip.d.ts +2 -2
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/constant/correlation.d.ts +3 -0
- package/esm/constant/correlation.js +8 -0
- package/esm/constant/correlation.js.map +1 -0
- package/esm/constant/index.d.ts +1 -0
- package/esm/constant/index.js +2 -0
- package/esm/constant/index.js.map +1 -1
- package/esm/constant/word-cloud.js +1 -2
- package/esm/core/factory.js +2 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/data/transforms/correlation-center.d.ts +4 -0
- package/esm/data/transforms/correlation-center.js +14 -0
- package/esm/data/transforms/correlation-center.js.map +1 -0
- package/esm/data/transforms/correlation.d.ts +17 -0
- package/esm/data/transforms/correlation.js +49 -0
- package/esm/data/transforms/correlation.js.map +1 -0
- package/esm/interaction/dimension-trigger.js +1 -2
- package/esm/interaction/interaction.js +2 -1
- package/esm/interaction/zoom/zoomable.d.ts +20 -12
- package/esm/interaction/zoom/zoomable.js +96 -74
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/layout/base-layout.d.ts +7 -1
- package/esm/layout/base-layout.js +24 -10
- package/esm/layout/base-layout.js.map +1 -1
- package/esm/layout/layout3d/index.d.ts +6 -0
- package/esm/layout/layout3d/index.js +14 -0
- package/esm/layout/layout3d/index.js.map +1 -1
- package/esm/mark/arc-3d.js +1 -1
- package/esm/mark/index.d.ts +3 -2
- package/esm/mark/index.js +3 -1
- package/esm/mark/index.js.map +1 -1
- package/esm/mark/interface/type.d.ts +1 -0
- package/esm/mark/interface/type.js +1 -1
- package/esm/mark/interface/type.js.map +1 -1
- package/esm/mark/ripple.d.ts +12 -0
- package/esm/mark/ripple.js +27 -0
- package/esm/mark/ripple.js.map +1 -0
- package/esm/model/base-model.d.ts +0 -3
- package/esm/model/base-model.js +0 -3
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +0 -2
- package/esm/model/interface.js.map +1 -1
- package/esm/series/area/area.js +4 -3
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/bar/bar.d.ts +1 -0
- package/esm/series/bar/bar.js +4 -2
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/base/base-series.js +5 -7
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/box-plot/box-plot.js +10 -8
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +7 -6
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/correlation/animation.d.ts +8 -0
- package/esm/series/correlation/animation.js +16 -0
- package/esm/series/correlation/animation.js.map +1 -0
- package/esm/series/correlation/constant.d.ts +2 -0
- package/esm/series/correlation/constant.js +25 -0
- package/esm/series/correlation/constant.js.map +1 -0
- package/esm/series/correlation/correlation.d.ts +57 -0
- package/esm/series/correlation/correlation.js +237 -0
- package/esm/series/correlation/correlation.js.map +1 -0
- package/esm/series/correlation/interface.d.ts +37 -0
- package/esm/series/correlation/interface.js +2 -0
- package/esm/series/correlation/interface.js.map +1 -0
- package/esm/series/dot/dot.js +2 -3
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/funnel.js +4 -5
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/gauge/gauge-pointer.d.ts +1 -0
- package/esm/series/gauge/gauge-pointer.js +4 -2
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge.d.ts +1 -0
- package/esm/series/gauge/gauge.js +5 -3
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/heatmap/heatmap.js +2 -4
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/index.d.ts +4 -2
- package/esm/series/index.js +3 -1
- package/esm/series/index.js.map +1 -1
- package/esm/series/interface/series.d.ts +1 -1
- package/esm/series/interface/series.js.map +1 -1
- package/esm/series/interface/theme.d.ts +2 -0
- package/esm/series/interface/theme.js +4 -1
- package/esm/series/interface/theme.js.map +1 -1
- package/esm/series/interface/type.d.ts +7 -2
- package/esm/series/interface/type.js +4 -2
- package/esm/series/interface/type.js.map +1 -1
- package/esm/series/line/line.d.ts +1 -0
- package/esm/series/line/line.js +4 -0
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/link.js +6 -5
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/map/map.js +2 -3
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/mixin/line-mixin.js +3 -5
- package/esm/series/mixin/line-mixin.js.map +1 -1
- package/esm/series/pie/interface.d.ts +2 -0
- package/esm/series/pie/interface.js.map +1 -1
- package/esm/series/pie/pie-3d.js +6 -6
- package/esm/series/pie/pie-3d.js.map +1 -1
- package/esm/series/pie/pie.d.ts +2 -0
- package/esm/series/pie/pie.js +16 -2
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/progress/circular/circular.d.ts +1 -0
- package/esm/series/progress/circular/circular.js +5 -2
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/linear/linear.js +5 -5
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/animation.js.map +1 -1
- package/esm/series/radar/radar.d.ts +1 -0
- package/esm/series/radar/radar.js +6 -2
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-area/range-area.js +2 -2
- package/esm/series/range-area/range-area.js.map +1 -1
- package/esm/series/range-column/range-column.d.ts +1 -0
- package/esm/series/range-column/range-column.js +10 -11
- package/esm/series/range-column/range-column.js.map +1 -1
- package/esm/series/rose/rose.d.ts +1 -0
- package/esm/series/rose/rose.js +4 -2
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/sankey.js +7 -9
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/scatter.d.ts +1 -0
- package/esm/series/scatter/scatter.js +4 -3
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/sunburst.js +4 -6
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/treemap.js +10 -9
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/word-cloud/base.d.ts +1 -0
- package/esm/series/word-cloud/base.js +6 -3
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js +2 -3
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js +28 -2
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
- package/esm/theme/builtin/common/component/indicator.js +1 -1
- package/esm/theme/builtin/common/component/indicator.js.map +1 -1
- package/esm/theme/builtin/common/component/legend/continuous.js +1 -1
- package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
- package/esm/theme/builtin/common/component/legend/discrete-legend.js +1 -1
- package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-area.js +12 -10
- package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-line.js +19 -12
- package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-point.js +8 -2
- package/esm/theme/builtin/common/component/mark-point.js.map +1 -1
- package/esm/theme/builtin/common/component/poptip.js +1 -1
- package/esm/theme/builtin/common/component/poptip.js.map +1 -1
- package/esm/theme/builtin/common/component/title.js +1 -1
- package/esm/theme/builtin/common/component/title.js.map +1 -1
- package/esm/theme/builtin/common/component/tooltip.js +2 -2
- package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
- package/esm/theme/builtin/common/component/total-label.js +1 -1
- package/esm/theme/builtin/common/component/total-label.js.map +1 -1
- package/esm/theme/builtin/common/series/area.js +4 -1
- package/esm/theme/builtin/common/series/area.js.map +1 -1
- package/esm/theme/builtin/common/series/bar.js +4 -1
- package/esm/theme/builtin/common/series/bar.js.map +1 -1
- package/esm/theme/builtin/common/series/circle-packing.js +4 -1
- package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
- package/esm/theme/builtin/common/series/correlation.d.ts +2 -0
- package/esm/theme/builtin/common/series/correlation.js +18 -0
- package/esm/theme/builtin/common/series/correlation.js.map +1 -0
- package/esm/theme/builtin/common/series/funnel.js +12 -3
- package/esm/theme/builtin/common/series/funnel.js.map +1 -1
- package/esm/theme/builtin/common/series/index.js +4 -1
- package/esm/theme/builtin/common/series/index.js.map +1 -1
- package/esm/theme/builtin/common/series/line.js +4 -1
- package/esm/theme/builtin/common/series/line.js.map +1 -1
- package/esm/theme/builtin/common/series/map.js +4 -1
- package/esm/theme/builtin/common/series/map.js.map +1 -1
- package/esm/theme/builtin/common/series/pie.js +9 -1
- package/esm/theme/builtin/common/series/pie.js.map +1 -1
- package/esm/theme/builtin/common/series/radar.js +4 -1
- package/esm/theme/builtin/common/series/radar.js.map +1 -1
- package/esm/theme/builtin/common/series/rose.js +5 -1
- package/esm/theme/builtin/common/series/rose.js.map +1 -1
- package/esm/theme/builtin/common/series/scatter.js +4 -1
- package/esm/theme/builtin/common/series/scatter.js.map +1 -1
- package/esm/theme/builtin/common/series/treemap.js +4 -1
- package/esm/theme/builtin/common/series/treemap.js.map +1 -1
- package/esm/theme/builtin/dark/color-scheme.js +1 -1
- package/esm/theme/builtin/dark/color-scheme.js.map +1 -1
- package/esm/theme/builtin/light/color-scheme.js +3 -3
- package/esm/theme/builtin/light/color-scheme.js.map +1 -1
- package/esm/theme/color-scheme/builtin/interface.d.ts +1 -1
- package/esm/theme/color-scheme/builtin/interface.js.map +1 -1
- package/esm/theme/color-scheme/interface.d.ts +1 -1
- package/esm/theme/color-scheme/interface.js.map +1 -1
- package/esm/theme/color-scheme/util.js +4 -7
- package/esm/theme/color-scheme/util.js.map +1 -1
- package/esm/typings/event.d.ts +1 -0
- package/esm/typings/event.js +2 -0
- package/esm/typings/event.js.map +1 -0
- package/esm/typings/spec/chart.d.ts +2 -0
- package/esm/typings/spec/chart.js.map +1 -1
- package/esm/typings/spec/common.d.ts +8 -6
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/typings/tooltip/line.d.ts +1 -0
- package/esm/typings/tooltip/line.js.map +1 -1
- package/esm/typings/visual.d.ts +4 -0
- package/esm/typings/visual.js.map +1 -1
- package/esm/vchart-all.js +4 -2
- package/esm/vchart-all.js.map +1 -1
- package/package.json +11 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/correlation.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAA4B;IAClD,WAAW,EAAE;QACX,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,EAAE;SACT;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;SACb;KACF;CACF,CAAC","file":"correlation.js","sourcesContent":["import type { ICorrelationSeriesTheme } from '../../../../series/correlation/interface';\n\nexport const correlation: ICorrelationSeriesTheme = {\n centerLabel: {\n visible: true,\n position: 'center',\n style: {\n fill: '#fff',\n text: ''\n }\n },\n label: {\n visible: true,\n position: 'bottom',\n style: {\n fill: '#000'\n }\n }\n};\n"]}
|
|
@@ -9,7 +9,10 @@ const constants_1 = require("../constants");
|
|
|
9
9
|
exports.funnel = {
|
|
10
10
|
transform: {
|
|
11
11
|
style: {
|
|
12
|
-
fill:
|
|
12
|
+
fill: {
|
|
13
|
+
type: "palette",
|
|
14
|
+
key: "axisGridColor"
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
18
|
label: {
|
|
@@ -23,7 +26,10 @@ exports.funnel = {
|
|
|
23
26
|
style: {
|
|
24
27
|
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
25
28
|
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
26
|
-
fill:
|
|
29
|
+
fill: {
|
|
30
|
+
type: "palette",
|
|
31
|
+
key: "secondaryFontColor"
|
|
32
|
+
}
|
|
27
33
|
},
|
|
28
34
|
line: {
|
|
29
35
|
style: {
|
|
@@ -38,7 +44,10 @@ exports.funnel = {
|
|
|
38
44
|
style: {
|
|
39
45
|
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
40
46
|
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
41
|
-
fill:
|
|
47
|
+
fill: {
|
|
48
|
+
type: "palette",
|
|
49
|
+
key: "secondaryFontColor"
|
|
50
|
+
},
|
|
42
51
|
textBaseline: "middle"
|
|
43
52
|
}
|
|
44
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/funnel.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,MAAM,GAAuB;IACxC,SAAS,EAAE;QACT,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/funnel.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,MAAM,GAAuB;IACxC,SAAS,EAAE;QACT,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;SAChD;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,CAAC;SACb;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YAExC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;SACrD;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;aACpD;SACF;KACF;IACD,cAAc,EAAE;QACd,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YAExC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACpD,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC","file":"funnel.js","sourcesContent":["import type { IFunnelSeriesTheme } from '../../../../series/funnel/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const funnel: IFunnelSeriesTheme = {\n transform: {\n style: {\n fill: { type: 'palette', key: 'axisGridColor' }\n }\n },\n label: {\n style: {\n fill: 'white',\n textBaseline: 'middle',\n lineWidth: 2\n }\n },\n outerLabel: {\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor' }\n },\n line: {\n style: {\n stroke: { type: 'palette', key: 'axisDomainColor' }\n }\n }\n },\n transformLabel: {\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor' },\n textBaseline: 'middle'\n }\n }\n};\n"]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.series = void 0;
|
|
6
6
|
|
|
7
|
-
const area_1 = require("./area"), bar_1 = require("./bar"), bar3d_1 = require("./bar3d"), circular_progress_1 = require("./circular-progress"), dot_1 = require("./dot"), funnel_1 = require("./funnel"), funnel3d_1 = require("./funnel3d"), gauge_1 = require("./gauge"), gauge_pointer_1 = require("./gauge-pointer"), line_1 = require("./line"), linear_progress_1 = require("./linear-progress"), link_1 = require("./link"), map_1 = require("./map"), pie_1 = require("./pie"), pie3d_1 = require("./pie3d"), radar_1 = require("./radar"), scatter_1 = require("./scatter"), waterfall_1 = require("./waterfall"), word_cloud_1 = require("./word-cloud"), word_cloud3d_1 = require("./word-cloud3d"), treemap_1 = require("./treemap"), sunburst_1 = require("./sunburst"), rangeColumn_1 = require("./rangeColumn"), circle_packing_1 = require("./circle-packing"), heatmap_1 = require("./heatmap"), sankey_1 = require("./sankey"), rose_1 = require("./rose"), box_plot_1 = require("./box-plot");
|
|
7
|
+
const area_1 = require("./area"), bar_1 = require("./bar"), bar3d_1 = require("./bar3d"), circular_progress_1 = require("./circular-progress"), dot_1 = require("./dot"), funnel_1 = require("./funnel"), funnel3d_1 = require("./funnel3d"), gauge_1 = require("./gauge"), gauge_pointer_1 = require("./gauge-pointer"), line_1 = require("./line"), linear_progress_1 = require("./linear-progress"), link_1 = require("./link"), map_1 = require("./map"), pie_1 = require("./pie"), pie3d_1 = require("./pie3d"), radar_1 = require("./radar"), scatter_1 = require("./scatter"), waterfall_1 = require("./waterfall"), word_cloud_1 = require("./word-cloud"), word_cloud3d_1 = require("./word-cloud3d"), treemap_1 = require("./treemap"), sunburst_1 = require("./sunburst"), rangeColumn_1 = require("./rangeColumn"), circle_packing_1 = require("./circle-packing"), heatmap_1 = require("./heatmap"), sankey_1 = require("./sankey"), rose_1 = require("./rose"), box_plot_1 = require("./box-plot"), correlation_1 = require("./correlation");
|
|
8
8
|
|
|
9
9
|
exports.series = {
|
|
10
10
|
scatter: scatter_1.scatter,
|
|
@@ -34,6 +34,7 @@ exports.series = {
|
|
|
34
34
|
heatmap: heatmap_1.heatmap,
|
|
35
35
|
sankey: sankey_1.sankey,
|
|
36
36
|
rose: rose_1.rose,
|
|
37
|
-
boxPlot: box_plot_1.boxPlot
|
|
37
|
+
boxPlot: box_plot_1.boxPlot,
|
|
38
|
+
correlation: correlation_1.correlation
|
|
38
39
|
};
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/index.ts"],"names":[],"mappings":";;;AACA,iCAA8B;AAC9B,+BAA4B;AAC5B,mCAAgC;AAChC,2DAAuD;AACvD,+BAA4B;AAC5B,qCAAkC;AAClC,yCAAsC;AACtC,mCAAgC;AAChC,mDAA+C;AAC/C,iCAA8B;AAC9B,uDAAmD;AACnD,iCAA8B;AAC9B,+BAA4B;AAC5B,+BAA4B;AAC5B,mCAAgC;AAChC,mCAAgC;AAChC,uCAAoC;AACpC,2CAAwC;AACxC,6CAAyC;AACzC,iDAA6C;AAC7C,uCAAoC;AACpC,yCAAsC;AACtC,+CAA4C;AAC5C,qDAAiD;AACjD,uCAAoC;AACpC,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAqC;
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/index.ts"],"names":[],"mappings":";;;AACA,iCAA8B;AAC9B,+BAA4B;AAC5B,mCAAgC;AAChC,2DAAuD;AACvD,+BAA4B;AAC5B,qCAAkC;AAClC,yCAAsC;AACtC,mCAAgC;AAChC,mDAA+C;AAC/C,iCAA8B;AAC9B,uDAAmD;AACnD,iCAA8B;AAC9B,+BAA4B;AAC5B,+BAA4B;AAC5B,mCAAgC;AAChC,mCAAgC;AAChC,uCAAoC;AACpC,2CAAwC;AACxC,6CAAyC;AACzC,iDAA6C;AAC7C,uCAAoC;AACpC,yCAAsC;AACtC,+CAA4C;AAC5C,qDAAiD;AACjD,uCAAoC;AACpC,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAqC;AACrC,+CAA4C;AAE/B,QAAA,MAAM,GAAiB;IAClC,OAAO,EAAP,iBAAO;IACP,IAAI,EAAJ,WAAI;IACJ,IAAI,EAAJ,WAAI;IACJ,GAAG,EAAH,SAAG;IACH,KAAK,EAAL,aAAK;IACL,GAAG,EAAH,SAAG;IACH,KAAK,EAAL,aAAK;IACL,GAAG,EAAH,SAAG;IACH,KAAK,EAAL,aAAK;IACL,GAAG,EAAH,SAAG;IACH,IAAI,EAAJ,WAAI;IACJ,SAAS,EAAT,sBAAS;IACT,WAAW,EAAX,0BAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,cAAc,EAAd,gCAAc;IACd,gBAAgB,EAAhB,oCAAgB;IAChB,SAAS,EAAT,qBAAS;IACT,KAAK,EAAL,aAAK;IACL,YAAY,EAAZ,4BAAY;IACZ,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,8BAAa;IACb,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,IAAI,EAAJ,WAAI;IACJ,OAAO,EAAP,kBAAO;IACP,WAAW,EAAX,yBAAW;CACZ,CAAC","file":"index.js","sourcesContent":["import type { ISeriesTheme } from '../../../../series/interface';\nimport { area } from './area';\nimport { bar } from './bar';\nimport { bar3d } from './bar3d';\nimport { circularProgress } from './circular-progress';\nimport { dot } from './dot';\nimport { funnel } from './funnel';\nimport { funnel3d } from './funnel3d';\nimport { gauge } from './gauge';\nimport { gaugePointer } from './gauge-pointer';\nimport { line } from './line';\nimport { linearProgress } from './linear-progress';\nimport { link } from './link';\nimport { map } from './map';\nimport { pie } from './pie';\nimport { pie3d } from './pie3d';\nimport { radar } from './radar';\nimport { scatter } from './scatter';\nimport { waterfall } from './waterfall';\nimport { wordCloud } from './word-cloud';\nimport { wordCloud3d } from './word-cloud3d';\nimport { treemap } from './treemap';\nimport { sunburst } from './sunburst';\nimport { rangeColumn } from './rangeColumn';\nimport { circlePacking } from './circle-packing';\nimport { heatmap } from './heatmap';\nimport { sankey } from './sankey';\nimport { rose } from './rose';\nimport { boxPlot } from './box-plot';\nimport { correlation } from './correlation';\n\nexport const series: ISeriesTheme = {\n scatter,\n line,\n area,\n bar,\n bar3d,\n pie,\n pie3d,\n map,\n radar,\n dot,\n link,\n wordCloud,\n wordCloud3d,\n funnel,\n funnel3d,\n linearProgress,\n circularProgress,\n waterfall,\n gauge,\n gaugePointer,\n treemap,\n sunburst,\n rangeColumn,\n circlePacking,\n heatmap,\n sankey,\n rose,\n boxPlot,\n correlation\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/line.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAqB;IACpC,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;QACT,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/line.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAqB;IACpC,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;QACT,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;SACpD;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;SACrB;KACF;CACF,CAAC","file":"line.js","sourcesContent":["import type { ILineSeriesTheme } from '../../../../series/line/interface';\n\nexport const line: ILineSeriesTheme = {\n label: {\n visible: false,\n position: 'top',\n offset: 5,\n style: {\n lineWidth: 2,\n stroke: { type: 'palette', key: 'backgroundColor' }\n }\n },\n point: {\n style: {\n symbolType: 'circle'\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/map.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,GAAG,GAAoB;IAClC,gBAAgB,EAAE,SAAS;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,GAAG;YACd,aAAa,EAAE,CAAC;YAChB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YACxC,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,SAAS,EAAE;YACxE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/map.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,GAAG,GAAoB;IAClC,gBAAgB,EAAE,SAAS;IAC3B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,GAAG;YACd,aAAa,EAAE,CAAC;YAChB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YACxC,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,SAAS,EAAE;YACxE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;SACpD;KACF;CACF,CAAC","file":"map.js","sourcesContent":["import type { IMapSeriesTheme } from '../../../../series/map/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const map: IMapSeriesTheme = {\n defaultFillColor: '#f3f3f3',\n area: {\n style: {\n lineWidth: 0.5,\n strokeOpacity: 1,\n stroke: 'black',\n fillOpacity: 1\n }\n },\n label: {\n interactive: false,\n style: {\n fontSize: THEME_CONSTANTS.l6FontSize,\n lineHeight: THEME_CONSTANTS.l6LineHeight,\n textBaseline: 'middle',\n fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' },\n stroke: { type: 'palette', key: 'backgroundColor' }\n }\n }\n};\n"]}
|
|
@@ -14,9 +14,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
14
14
|
position: "outside",
|
|
15
15
|
style: {
|
|
16
16
|
fontWeight: "normal",
|
|
17
|
-
stroke:
|
|
17
|
+
stroke: {
|
|
18
|
+
type: "palette",
|
|
19
|
+
key: "backgroundColor"
|
|
20
|
+
},
|
|
18
21
|
fillOpacity: 1
|
|
19
22
|
}
|
|
23
|
+
},
|
|
24
|
+
innerLabel: {
|
|
25
|
+
style: {
|
|
26
|
+
lineWidth: 2
|
|
27
|
+
}
|
|
20
28
|
}
|
|
21
29
|
};
|
|
22
30
|
//# sourceMappingURL=pie.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAoB;IAClC,WAAW,EAAE,GAAG;IAChB,GAAG,EAAE;QACH,KAAK,EAAE;YACL,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAoB;IAClC,WAAW,EAAE,GAAG;IAChB,GAAG,EAAE;QACH,KAAK,EAAE;YACL,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,WAAW,EAAE,CAAC;SACf;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC","file":"pie.js","sourcesContent":["import type { IPieSeriesTheme } from '../../../../series/pie/interface';\n\nexport const pie: IPieSeriesTheme = {\n outerRadius: 0.6,\n pie: {\n style: {\n fillOpacity: 1\n }\n },\n label: {\n visible: false,\n position: 'outside',\n style: {\n fontWeight: 'normal',\n stroke: { type: 'palette', key: 'backgroundColor' },\n fillOpacity: 1\n }\n },\n innerLabel: {\n style: {\n lineWidth: 2\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAAsB;IACtC,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC;QACT,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAAsB;IACtC,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC;QACT,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;SACpD;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;SACrB;KACF;CACF,CAAC","file":"radar.js","sourcesContent":["import type { IRadarSeriesTheme } from '../../../../series/radar/interface';\n\nexport const radar: IRadarSeriesTheme = {\n label: {\n visible: false,\n offset: 5,\n style: {\n lineWidth: 2,\n stroke: { type: 'palette', key: 'backgroundColor' }\n }\n },\n point: {\n style: {\n symbolType: 'circle'\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/rose.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAqB;IACpC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/rose.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAqB;IACpC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC","file":"rose.js","sourcesContent":["import type { IRoseSeriesTheme } from '../../../../series/rose/interface';\n\nexport const rose: IRoseSeriesTheme = {\n rose: {\n style: {\n fillOpacity: 1\n }\n },\n label: {\n style: {\n lineWidth: 2,\n stroke: { type: 'palette', key: 'backgroundColor' },\n textAlign: 'center',\n textBaseline: 'middle'\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/scatter.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAwB;IAC1C,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,CAAC;YACP,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,GAAG;SACjB;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC;QACT,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/scatter.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAwB;IAC1C,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,CAAC;YACP,UAAU,EAAE,QAAQ;YACpB,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,GAAG;SACjB;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC;QACT,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;SACpD;KACF;CACF,CAAC","file":"scatter.js","sourcesContent":["import type { IScatterSeriesTheme } from '../../../../series/scatter/interface';\n\nexport const scatter: IScatterSeriesTheme = {\n point: {\n style: {\n size: 8,\n symbolType: 'circle',\n lineWidth: 0,\n fillOpacity: 0.8\n }\n },\n label: {\n visible: false,\n offset: 5,\n position: 'top',\n style: {\n lineWidth: 2,\n stroke: { type: 'palette', key: 'backgroundColor' }\n }\n }\n};\n"]}
|
|
@@ -28,7 +28,10 @@ exports.treemap = {
|
|
|
28
28
|
padding: 2 * constants_1.THEME_CONSTANTS.l5FontSize,
|
|
29
29
|
style: {
|
|
30
30
|
fill: "black",
|
|
31
|
-
stroke:
|
|
31
|
+
stroke: {
|
|
32
|
+
type: "palette",
|
|
33
|
+
key: "backgroundColor"
|
|
34
|
+
},
|
|
32
35
|
lineWidth: 2,
|
|
33
36
|
fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
|
|
34
37
|
lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/series/treemap.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,OAAO,GAAwB;IAC1C,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,CAAC;IAChB,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,WAAW,EAAE,GAAG;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;SACzC;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,2BAAe,CAAC,UAAU,GAAG,CAAC;QACvC,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/series/treemap.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,OAAO,GAAwB;IAC1C,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,CAAC;IAChB,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,WAAW,EAAE,GAAG;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;SACzC;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,2BAAe,CAAC,UAAU,GAAG,CAAC;QACvC,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YACxC,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;SACpB;KACF;CACF,CAAC","file":"treemap.js","sourcesContent":["import type { ITreemapSeriesTheme } from '../../../../series/treemap/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const treemap: ITreemapSeriesTheme = {\n gapWidth: 1,\n nodePadding: [5],\n nonLeaf: {\n visible: false,\n style: {\n fillOpacity: 0.5\n }\n },\n label: {\n style: {\n fill: 'white',\n textBaseline: 'middle',\n textAlign: 'center',\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight\n }\n },\n nonLeafLabel: {\n padding: THEME_CONSTANTS.l5FontSize * 2,\n style: {\n fill: 'black',\n stroke: { type: 'palette', key: 'backgroundColor' },\n lineWidth: 2,\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n textBaseline: 'middle',\n textAlign: 'center'\n }\n }\n};\n"]}
|
|
@@ -20,7 +20,6 @@ exports.colorScheme = {
|
|
|
20
20
|
labelReverseFontColor: "#202226",
|
|
21
21
|
axisGridColor: "#404349",
|
|
22
22
|
axisDomainColor: "#4b4f54",
|
|
23
|
-
axisLabelFontColor: "#bbbdc3",
|
|
24
23
|
dataZoomHandlerStrokeColor: "#888c93",
|
|
25
24
|
dataZoomHandlerFillColor: "#202226",
|
|
26
25
|
dataZoomBackgroundColor: "#404349",
|
|
@@ -28,6 +27,7 @@ exports.colorScheme = {
|
|
|
28
27
|
dataZoomSelectedColor: "#4284FF",
|
|
29
28
|
scrollBarSliderColor: "#ffffff",
|
|
30
29
|
tooltipBackgroundColor: "#404349",
|
|
30
|
+
markLabelBackgroundColor: "#f0bd30",
|
|
31
31
|
titleFontColor: "#fdfdfd",
|
|
32
32
|
labelFontColor: "#bbbdc3"
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/dark/color-scheme.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAGnD,QAAA,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,OAAO,EAAE;YAEP,eAAe,EAAE,SAAS;YAE1B,WAAW,EAAE,SAAS;YAEtB,WAAW,EAAE,SAAS;YAGtB,gBAAgB,EAAE,SAAS;YAE3B,kBAAkB,EAAE,SAAS;YAE7B,aAAa,EAAE,SAAS;YAExB,gBAAgB,EAAE,SAAS;YAE3B,qBAAqB,EAAE,SAAS;YAGhC,aAAa,EAAE,SAAS;YAExB,eAAe,EAAE,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/dark/color-scheme.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAGnD,QAAA,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,OAAO,EAAE;YAEP,eAAe,EAAE,SAAS;YAE1B,WAAW,EAAE,SAAS;YAEtB,WAAW,EAAE,SAAS;YAGtB,gBAAgB,EAAE,SAAS;YAE3B,kBAAkB,EAAE,SAAS;YAE7B,aAAa,EAAE,SAAS;YAExB,gBAAgB,EAAE,SAAS;YAE3B,qBAAqB,EAAE,SAAS;YAGhC,aAAa,EAAE,SAAS;YAExB,eAAe,EAAE,SAAS;YAG1B,0BAA0B,EAAE,SAAS;YAErC,wBAAwB,EAAE,SAAS;YAEnC,uBAAuB,EAAE,SAAS;YAElC,kBAAkB,EAAE,SAAS;YAE7B,qBAAqB,EAAE,SAAS;YAGhC,oBAAoB,EAAE,SAAS;YAG/B,sBAAsB,EAAE,SAAS;YAGjC,wBAAwB,EAAE,SAAS;YAInC,cAAc,EAAE,SAAS;YAEzB,cAAc,EAAE,SAAS;SACH;KACzB;CACF,CAAC","file":"color-scheme.js","sourcesContent":["import type { IThemeColorScheme } from '../../color-scheme/interface';\nimport { dataScheme } from '../../color-scheme/builtin/default';\nimport type { BuiltinColorPalette } from '../../color-scheme/builtin/interface';\n\nexport const colorScheme: IThemeColorScheme = {\n default: {\n dataScheme,\n palette: {\n /** 背景色 */\n backgroundColor: '#202226',\n /** 图表边框色 */\n borderColor: '#404349',\n /** 默认阴影颜色 */\n shadowColor: '#000000',\n\n /** 主要字色 */\n primaryFontColor: '#fdfdfd',\n /** 次要字色 */\n secondaryFontColor: '#888c93',\n /** 轴字色 */\n axisFontColor: '#bbbdc3',\n /** 禁用字色 */\n disableFontColor: '#55595f',\n /** 标签反转字色 */\n labelReverseFontColor: '#202226',\n\n /** 轴网格线颜色 */\n axisGridColor: '#404349',\n /** 轴线颜色 */\n axisDomainColor: '#4b4f54',\n\n /** 缩略轴滑块描边颜色 */\n dataZoomHandlerStrokeColor: '#888c93',\n /** 缩略轴滑块填充颜色 */\n dataZoomHandlerFillColor: '#202226',\n /** 缩略轴背景区域颜色 */\n dataZoomBackgroundColor: '#404349',\n /** 缩略轴图表区域颜色 */\n dataZoomChartColor: '#55595F',\n /** 缩略轴选择区域颜色 */\n dataZoomSelectedColor: '#4284FF',\n\n /** 滚动条滑块颜色 */\n scrollBarSliderColor: '#ffffff',\n\n /** 提示信息背景区域颜色 */\n tooltipBackgroundColor: '#404349',\n\n /** 标注标签背景颜色 */\n markLabelBackgroundColor: '#f0bd30',\n\n // 已弃用的语义色值\n /** @deprecated 图表标题颜色 */\n titleFontColor: '#fdfdfd',\n /** @deprecated 标签字色 */\n labelFontColor: '#bbbdc3'\n } as BuiltinColorPalette\n }\n};\n"]}
|
|
@@ -19,15 +19,15 @@ exports.colorScheme = {
|
|
|
19
19
|
disableFontColor: "#bcc1cb",
|
|
20
20
|
labelReverseFontColor: "#ffffff",
|
|
21
21
|
axisGridColor: "#f1f2f5",
|
|
22
|
-
axisDomainColor: "#
|
|
23
|
-
|
|
24
|
-
dataZoomHandlerStrokeColor: "#AEB5BE",
|
|
22
|
+
axisDomainColor: "#d9dde4",
|
|
23
|
+
dataZoomHandlerStrokeColor: "#aeb5be",
|
|
25
24
|
dataZoomHandlerFillColor: "#ffffff",
|
|
26
25
|
dataZoomBackgroundColor: "#f1f3f4",
|
|
27
26
|
dataZoomChartColor: "#c9ced8",
|
|
28
27
|
dataZoomSelectedColor: "#0040ff",
|
|
29
28
|
scrollBarSliderColor: "#000000",
|
|
30
29
|
tooltipBackgroundColor: "#ffffff",
|
|
30
|
+
markLabelBackgroundColor: "#ffc528",
|
|
31
31
|
titleFontColor: "#21252c",
|
|
32
32
|
labelFontColor: "#89909d"
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/light/color-scheme.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAGnD,QAAA,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,OAAO,EAAE;YAEP,eAAe,EAAE,SAAS;YAE1B,WAAW,EAAE,SAAS;YAEtB,WAAW,EAAE,SAAS;YAGtB,gBAAgB,EAAE,SAAS;YAE3B,kBAAkB,EAAE,SAAS;YAE7B,aAAa,EAAE,SAAS;YAExB,gBAAgB,EAAE,SAAS;YAE3B,qBAAqB,EAAE,SAAS;YAGhC,aAAa,EAAE,SAAS;YAExB,eAAe,EAAE,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/light/color-scheme.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAGnD,QAAA,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,OAAO,EAAE;YAEP,eAAe,EAAE,SAAS;YAE1B,WAAW,EAAE,SAAS;YAEtB,WAAW,EAAE,SAAS;YAGtB,gBAAgB,EAAE,SAAS;YAE3B,kBAAkB,EAAE,SAAS;YAE7B,aAAa,EAAE,SAAS;YAExB,gBAAgB,EAAE,SAAS;YAE3B,qBAAqB,EAAE,SAAS;YAGhC,aAAa,EAAE,SAAS;YAExB,eAAe,EAAE,SAAS;YAG1B,0BAA0B,EAAE,SAAS;YAErC,wBAAwB,EAAE,SAAS;YAEnC,uBAAuB,EAAE,SAAS;YAElC,kBAAkB,EAAE,SAAS;YAE7B,qBAAqB,EAAE,SAAS;YAGhC,oBAAoB,EAAE,SAAS;YAG/B,sBAAsB,EAAE,SAAS;YAGjC,wBAAwB,EAAE,SAAS;YAInC,cAAc,EAAE,SAAS;YAEzB,cAAc,EAAE,SAAS;SACH;KACzB;CACF,CAAC","file":"color-scheme.js","sourcesContent":["import type { IThemeColorScheme } from '../../color-scheme/interface';\nimport { dataScheme } from '../../color-scheme/builtin/default';\nimport type { BuiltinColorPalette } from '../../color-scheme/builtin/interface';\n\nexport const colorScheme: IThemeColorScheme = {\n default: {\n dataScheme,\n palette: {\n /** 背景色 */\n backgroundColor: '#ffffff',\n /** 图表边框色 */\n borderColor: '#e3e5e8',\n /** 默认阴影颜色 */\n shadowColor: '#21252c',\n\n /** 主要字色 */\n primaryFontColor: '#21252c',\n /** 次要字色 */\n secondaryFontColor: '#606773',\n /** 轴字色 */\n axisFontColor: '#89909d',\n /** 禁用字色 */\n disableFontColor: '#bcc1cb',\n /** 标签反转字色 */\n labelReverseFontColor: '#ffffff',\n\n /** 轴网格线颜色 */\n axisGridColor: '#f1f2f5',\n /** 轴线颜色 */\n axisDomainColor: '#d9dde4',\n\n /** 缩略轴滑块描边颜色 */\n dataZoomHandlerStrokeColor: '#aeb5be',\n /** 缩略轴滑块填充颜色 */\n dataZoomHandlerFillColor: '#ffffff',\n /** 缩略轴背景区域颜色 */\n dataZoomBackgroundColor: '#f1f3f4',\n /** 缩略轴图表区域颜色 */\n dataZoomChartColor: '#c9ced8',\n /** 缩略轴选择区域颜色 */\n dataZoomSelectedColor: '#0040ff',\n\n /** 滚动条滑块颜色 */\n scrollBarSliderColor: '#000000',\n\n /** 提示信息背景区域颜色 */\n tooltipBackgroundColor: '#ffffff',\n\n /** 标注标签背景颜色 */\n markLabelBackgroundColor: '#ffc528',\n\n // 已弃用的语义色值\n /** @deprecated 图表标题颜色 */\n titleFontColor: '#21252c',\n /** @deprecated 标签字色 */\n labelFontColor: '#89909d'\n } as BuiltinColorPalette\n }\n};\n"]}
|
|
@@ -10,7 +10,6 @@ export type BuiltinColorPalette = IColorSchemeStruct['palette'] & {
|
|
|
10
10
|
labelReverseFontColor: string;
|
|
11
11
|
axisGridColor: string;
|
|
12
12
|
axisDomainColor: string;
|
|
13
|
-
axisLabelFontColor: string;
|
|
14
13
|
dataZoomHandlerStrokeColor: string;
|
|
15
14
|
dataZoomHandlerFillColor: string;
|
|
16
15
|
dataZoomBackgroundColor: string;
|
|
@@ -18,6 +17,7 @@ export type BuiltinColorPalette = IColorSchemeStruct['palette'] & {
|
|
|
18
17
|
dataZoomSelectedColor: string;
|
|
19
18
|
scrollBarSliderColor: string;
|
|
20
19
|
tooltipBackgroundColor: string;
|
|
20
|
+
markLabelBackgroundColor: string;
|
|
21
21
|
titleFontColor: string;
|
|
22
22
|
labelFontColor: string;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/color-scheme/builtin/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IColorSchemeStruct } from '../interface';\n\nexport type BuiltinColorPalette = IColorSchemeStruct['palette'] & {\n /** 背景色 */\n backgroundColor: string;\n /** 图表边框色 */\n borderColor: string;\n /** 默认阴影颜色 */\n shadowColor: string;\n\n /** 主要字色(图表标题、大数字) */\n primaryFontColor: string;\n /** 次要字色(图例、tooltip、数据标签) */\n secondaryFontColor: string;\n /** 轴字色 */\n axisFontColor: string;\n /** 禁用字色(非激活态字色) */\n disableFontColor: string;\n /** 标签反转字色 */\n labelReverseFontColor: string;\n\n /** 轴网格线颜色 */\n axisGridColor: string;\n /** 轴线颜色 */\n axisDomainColor: string;\n
|
|
1
|
+
{"version":3,"sources":["../src/theme/color-scheme/builtin/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IColorSchemeStruct } from '../interface';\n\nexport type BuiltinColorPalette = IColorSchemeStruct['palette'] & {\n /** 背景色 */\n backgroundColor: string;\n /** 图表边框色 */\n borderColor: string;\n /** 默认阴影颜色 */\n shadowColor: string;\n\n /** 主要字色(图表标题、大数字) */\n primaryFontColor: string;\n /** 次要字色(图例、tooltip、数据标签) */\n secondaryFontColor: string;\n /** 轴字色 */\n axisFontColor: string;\n /** 禁用字色(非激活态字色) */\n disableFontColor: string;\n /** 标签反转字色 */\n labelReverseFontColor: string;\n\n /** 轴网格线颜色 */\n axisGridColor: string;\n /** 轴线颜色 */\n axisDomainColor: string;\n\n /** 缩略轴滑块描边颜色 */\n dataZoomHandlerStrokeColor: string;\n /** 缩略轴滑块填充颜色 */\n dataZoomHandlerFillColor: string;\n /** 缩略轴背景区域颜色 */\n dataZoomBackgroundColor: string;\n /** 缩略轴图表区域颜色 */\n dataZoomChartColor: string;\n /** 缩略轴选择区域颜色 */\n dataZoomSelectedColor: string;\n\n /** 滚动条滑块颜色 */\n scrollBarSliderColor: string;\n\n /** 提示信息背景区域颜色 */\n tooltipBackgroundColor: string;\n\n /** 标注标签背景颜色 */\n markLabelBackgroundColor: string;\n\n // 已弃用的语义色值\n /** @deprecated 图表标题颜色 */\n titleFontColor: string;\n /** @deprecated 标签字色 */\n labelFontColor: string;\n};\n"]}
|
|
@@ -17,7 +17,7 @@ export interface IProgressiveDataSchemeCase<T> {
|
|
|
17
17
|
export type IsProgressiveDataSchemeAvailableCallback = (domain: any[]) => boolean;
|
|
18
18
|
export interface IColorKey {
|
|
19
19
|
type: 'palette';
|
|
20
|
-
key: string
|
|
20
|
+
key: string;
|
|
21
21
|
l?: number;
|
|
22
22
|
a?: number;
|
|
23
23
|
default?: ColorSchemeItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/color-scheme/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { SeriesTypeEnum } from '../../series/interface';\nimport type { IGradient } from '../../typings';\n\n/** 色板总结构,包含数据色板和语义色板 */\nexport type IColorSchemeStruct = {\n /** 数据色板 */\n dataScheme: Array<DataSchemeItem> | ProgressiveDataScheme<DataSchemeItem>;\n\n /** 语义色板 */\n palette?: {\n /** 主色调(可选) */\n bandColor?: ColorSchemeItem;\n /** 背景颜色(可选) */\n backgroundColor?: ColorSchemeItem;\n /** 其他的语义化色值 */\n [key: string]: ColorSchemeItem;\n };\n};\n\n/** 渐进式数据色板:由多个色板组成,应用时会依次调用色板的 `isAvailable` 回调,如果当前回调返回 true 则立即应用对应色板 */\nexport type ProgressiveDataScheme<T> = Array<IProgressiveDataSchemeCase<T>>;\n\nexport interface IProgressiveDataSchemeCase<T> {\n /** 可选,适合此色板的 domain 数量 */\n maxDomainLength?: number;\n /** 可选,自定义回调,返回是否应用此色板,将覆盖 maxDomainLength 等配置 */\n isAvailable?: boolean | IsProgressiveDataSchemeAvailableCallback;\n /** 色板 */\n scheme: T[];\n}\n\nexport type IsProgressiveDataSchemeAvailableCallback = (domain: any[]) => boolean;\n\n/** 语义化色值的色值索引 */\nexport interface IColorKey {\n /** 颜色type声明 */\n type: 'palette';\n\n /**
|
|
1
|
+
{"version":3,"sources":["../src/theme/color-scheme/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { SeriesTypeEnum } from '../../series/interface';\nimport type { IGradient } from '../../typings';\n\n/** 色板总结构,包含数据色板和语义色板 */\nexport type IColorSchemeStruct = {\n /** 数据色板 */\n dataScheme: Array<DataSchemeItem> | ProgressiveDataScheme<DataSchemeItem>;\n\n /** 语义色板 */\n palette?: {\n /** 主色调(可选) */\n bandColor?: ColorSchemeItem;\n /** 背景颜色(可选) */\n backgroundColor?: ColorSchemeItem;\n /** 其他的语义化色值 */\n [key: string]: ColorSchemeItem;\n };\n};\n\n/** 渐进式数据色板:由多个色板组成,应用时会依次调用色板的 `isAvailable` 回调,如果当前回调返回 true 则立即应用对应色板 */\nexport type ProgressiveDataScheme<T> = Array<IProgressiveDataSchemeCase<T>>;\n\nexport interface IProgressiveDataSchemeCase<T> {\n /** 可选,适合此色板的 domain 数量 */\n maxDomainLength?: number;\n /** 可选,自定义回调,返回是否应用此色板,将覆盖 maxDomainLength 等配置 */\n isAvailable?: boolean | IsProgressiveDataSchemeAvailableCallback;\n /** 色板 */\n scheme: T[];\n}\n\nexport type IsProgressiveDataSchemeAvailableCallback = (domain: any[]) => boolean;\n\n/** 语义化色值的色值索引 */\nexport interface IColorKey {\n /** 颜色type声明 */\n type: 'palette';\n\n /** 颜色 token */\n key: string;\n\n /** 明度系数(可选,0~1) */\n l?: number;\n\n /** 透明度系数(可选,0~1) */\n a?: number;\n\n /**\n * 默认色值,在没有取到 key 对应的色值时返回\n * @since 1.3.0\n */\n default?: ColorSchemeItem;\n}\n\nexport type DataSchemeItem = string | IColorKey;\n\nexport type ColorSchemeItem = string | IGradient; // 纯色或渐变色\n\nexport type ColorScheme = Array<string> | ProgressiveDataScheme<string> | IColorSchemeStruct;\n\nexport type IThemeColorScheme = {\n /** 必选 */\n default: ColorScheme;\n} & Partial<Record<SeriesTypeEnum, ColorScheme>>;\n"]}
|
|
@@ -27,17 +27,13 @@ function computeActualDataScheme(dataScheme, colorDomain) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function queryColorFromColorScheme(colorScheme, colorKey, seriesType) {
|
|
30
|
-
var _a;
|
|
30
|
+
var _a, _b;
|
|
31
31
|
const scheme = (0, vutils_1.isValid)(seriesType) && null !== (_a = colorScheme[seriesType]) && void 0 !== _a ? _a : colorScheme.default;
|
|
32
32
|
if (!scheme) return;
|
|
33
33
|
let color;
|
|
34
34
|
const {palette: palette} = scheme;
|
|
35
|
-
if ((0, vutils_1.isObject)(palette))
|
|
36
|
-
|
|
37
|
-
vutils_1.isValid)(color)) break;
|
|
38
|
-
color || (color = colorKey.default);
|
|
39
|
-
}
|
|
40
|
-
if (!color) return;
|
|
35
|
+
if ((0, vutils_1.isObject)(palette) && (color = null !== (_b = palette[colorKey.key]) && void 0 !== _b ? _b : colorKey.default),
|
|
36
|
+
!color) return;
|
|
41
37
|
if (!(0, vutils_1.isValid)(colorKey.a) && !(0, vutils_1.isValid)(colorKey.l) || !(0,
|
|
42
38
|
vutils_1.isString)(color)) return color;
|
|
43
39
|
let c = new color_1.Color(color);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/color-scheme/util.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"sources":["../src/theme/color-scheme/util.ts"],"names":[],"mappings":";;;AAAA,6CAA2F;AAE3F,6CAA6C;AAE7C,4CAAyC;AAiBzC,SAAgB,aAAa,CAC3B,WAA8B,EAC9B,UAA2B;;IAE3B,MAAM,MAAM,GAAG,CAAC,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAC,CAAC,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,UAAU,CAAC,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAC;IAC/G,IAAI,CAAC,MAAM,IAAI,IAAA,gBAAO,EAAC,MAAM,CAAC,EAAE;QAE9B,OAAO,MAAyE,CAAC;KAClF;SAAM,IAAI,IAAA,iBAAQ,EAAC,MAAM,CAAC,EAAE;QAE3B,MAAM,EAAE,UAAU,EAAE,GAAG,MAA4B,CAAC;QACpD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,EAAE,CAAC;SACX;QAED,IAAI,4BAA4B,CAAC,UAAU,CAAC,EAAE;YAC5C,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,iCACzB,IAAI,KACP,MAAM,EAAE,IAAI,CAAC,MAAM;qBAChB,GAAG,CAAC,KAAK,CAAC,EAAE;oBACX,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE;wBACrB,OAAO,yBAAyB,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;qBAClE;oBACD,OAAO,KAAK,CAAC;gBACf,CAAC,CAAC;qBACD,MAAM,CAAC,gBAAO,CAAC,IAClB,CAAC,CAAC;SACL;QAED,OAAO,UAAU;aACd,GAAG,CAAC,KAAK,CAAC,EAAE;YACX,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE;gBACrB,OAAO,yBAAyB,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;aAClE;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC;aACD,MAAM,CAAC,gBAAO,CAAC,CAAC;KACpB;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAvCD,sCAuCC;AAQD,SAAgB,uBAAuB,CACrC,UAA2E,EAC3E,WAAkB;;IAElB,IAAI,4BAA4B,CAAC,UAAU,CAAC,EAAE;QAC5C,OAAO,CACL,MAAA,MAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACrB,IAAI,IAAA,gBAAO,EAAC,IAAI,CAAC,WAAW,CAAC,EAAE;gBAC7B,IAAI,IAAA,mBAAU,EAAC,IAAI,CAAC,WAAW,CAAC,EAAE;oBAChC,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;iBACtC;gBACD,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;aAC3B;iBAAM,IAAI,IAAA,gBAAO,EAAC,IAAI,CAAC,eAAe,CAAC,EAAE;gBACxC,OAAO,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,KAAI,IAAI,CAAC,eAAe,CAAC;aACpD;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,0CAAE,MAAM,mCAAI,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CACvD,CAAC;KACH;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AApBD,0DAoBC;AASD,SAAgB,yBAAyB,CACvC,WAA8B,EAC9B,QAAmB,EACnB,UAA2B;;IAE3B,MAAM,MAAM,GAAG,CAAC,IAAA,gBAAO,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,WAAW,CAAC,UAAU,CAAC,mCAAI,WAAW,CAAC,OAAO,CAAC;IAC3G,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,KAAK,CAAC;IACV,MAAM,EAAE,OAAO,EAAE,GAAG,MAA4B,CAAC;IACjD,IAAI,IAAA,iBAAQ,EAAC,OAAO,CAAC,EAAE;QACrB,KAAK,GAAG,MAAA,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,mCAAI,QAAQ,CAAC,OAAO,CAAC;KACnD;IACD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,CAAC,CAAC,IAAA,gBAAO,EAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAA,gBAAO,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE;QACtE,OAAO,KAAK,CAAC;KACd;IACD,IAAI,CAAC,GAAG,IAAI,aAAK,CAAC,KAAK,CAAC,CAAC;IACzB,IAAI,IAAA,gBAAO,EAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QACvB,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC;QAC5B,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,kBAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7C,MAAM,GAAG,GAAG,kBAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjD,MAAM,QAAQ,GAAG,IAAI,aAAK,CAAC,OAAO,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QAChE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC,GAAG,QAAQ,CAAC;KACd;IACD,IAAI,IAAA,gBAAO,EAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QACvB,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;KAC1B;IACD,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AACpB,CAAC;AAjCD,8DAiCC;AAGM,MAAM,cAAc,GAAG,CAAC,KAAU,EAAE,WAA+B,EAAE,UAA2B,EAAE,EAAE;IACzG,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE;QACrB,IAAI,WAAW,EAAE;YACf,MAAM,KAAK,GAAG,yBAAyB,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;YACxE,IAAI,KAAK,EAAE;gBACT,OAAO,KAAK,CAAC;aACd;SACF;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB;AAEF,SAAgB,UAAU,CAAC,GAAQ;IACjC,OAAO,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAK,GAAiB,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAE,GAAiB,CAAC,GAAG,CAAC;AAC5F,CAAC;AAFD,gCAEC;AAED,SAAgB,4BAA4B,CAAI,GAAQ;IACtD,IAAI,CAAC,IAAA,gBAAO,EAAC,GAAG,CAAC,EAAE;QACjB,OAAO,KAAK,CAAC;KACd;IACD,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACtB,OAAO,IAAA,gBAAO,EAAE,IAAsC,CAAC,MAAM,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,oEAOC;AAGD,SAAgB,oCAAoC,CAAC,WAAwB;IAC3E,IAAI,IAAA,gBAAO,EAAC,WAAW,CAAC,EAAE;QACxB,OAAO;YACL,UAAU,EAAE,WAAW;SACxB,CAAC;KACH;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAPD,oFAOC","file":"util.js","sourcesContent":["import { array, isArray, isFunction, isObject, isString, isValid } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { ColorUtil } from '@visactor/vutils';\nimport type { SeriesTypeEnum } from '../../series/interface';\nimport { Color } from '../../util/color';\nimport type {\n ColorScheme,\n ColorSchemeItem,\n IColorKey,\n IColorSchemeStruct,\n IProgressiveDataSchemeCase,\n IThemeColorScheme,\n ProgressiveDataScheme\n} from './interface';\n\n/**\n * 从色板中获取数据色板(在此步骤中替换语义色值)\n * @param colorScheme\n * @param seriesType\n * @returns\n */\nexport function getDataScheme(\n colorScheme: IThemeColorScheme,\n seriesType?: SeriesTypeEnum\n): Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem> {\n const scheme = !isValid(seriesType) ? colorScheme?.default : colorScheme?.[seriesType] ?? colorScheme?.default;\n if (!scheme || isArray(scheme)) {\n // 不带语义色板,直接输出\n return scheme as Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>;\n } else if (isObject(scheme)) {\n // 带语义色板,转换颜色后输出\n const { dataScheme } = scheme as IColorSchemeStruct;\n if (!dataScheme) {\n return [];\n }\n // 渐进式色板的情况\n if (isProgressiveDataColorScheme(dataScheme)) {\n return dataScheme.map(item => ({\n ...item,\n scheme: item.scheme\n .map(color => {\n if (isColorKey(color)) {\n return queryColorFromColorScheme(colorScheme, color, seriesType);\n }\n return color;\n })\n .filter(isValid)\n }));\n }\n // 普通色板的情况\n return dataScheme\n .map(color => {\n if (isColorKey(color)) {\n return queryColorFromColorScheme(colorScheme, color, seriesType);\n }\n return color;\n })\n .filter(isValid);\n }\n return [];\n}\n\n/**\n * 计算最终数据色板(在此步骤中获得渐进式色板的最终色板)\n * @param colorScheme\n * @param seriesType\n * @returns\n */\nexport function computeActualDataScheme(\n dataScheme: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>,\n colorDomain: any[]\n): Array<ColorSchemeItem> {\n if (isProgressiveDataColorScheme(dataScheme)) {\n return (\n dataScheme.find(item => {\n if (isValid(item.isAvailable)) {\n if (isFunction(item.isAvailable)) {\n return item.isAvailable(colorDomain);\n }\n return !!item.isAvailable;\n } else if (isValid(item.maxDomainLength)) {\n return colorDomain?.length <= item.maxDomainLength;\n }\n return true;\n })?.scheme ?? dataScheme[dataScheme.length - 1].scheme\n );\n }\n return dataScheme;\n}\n\n/**\n * 根据色板和色值索引生成颜色\n * @param colorScheme\n * @param colorKey\n * @param seriesType\n * @returns\n */\nexport function queryColorFromColorScheme(\n colorScheme: IThemeColorScheme,\n colorKey: IColorKey,\n seriesType?: SeriesTypeEnum\n): ColorSchemeItem | undefined {\n const scheme = !isValid(seriesType) ? colorScheme.default : colorScheme[seriesType] ?? colorScheme.default;\n if (!scheme) {\n return undefined;\n }\n let color;\n const { palette } = scheme as IColorSchemeStruct;\n if (isObject(palette)) {\n color = palette[colorKey.key] ?? colorKey.default;\n }\n if (!color) {\n return undefined;\n }\n if ((!isValid(colorKey.a) && !isValid(colorKey.l)) || !isString(color)) {\n return color;\n }\n let c = new Color(color);\n if (isValid(colorKey.l)) {\n const { r, g, b } = c.color;\n const { h, s } = ColorUtil.rgbToHsl(r, g, b);\n const rgb = ColorUtil.hslToRgb(h, s, colorKey.l);\n const newColor = new Color(`rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`);\n newColor.setOpacity(c.color.opacity);\n c = newColor;\n }\n if (isValid(colorKey.a)) {\n c.setOpacity(colorKey.a);\n }\n return c.toRGBA();\n}\n\n/** 查询语义化颜色 */\nexport const getActualColor = (value: any, colorScheme?: IThemeColorScheme, seriesType?: SeriesTypeEnum) => {\n if (isColorKey(value)) {\n if (colorScheme) {\n const color = queryColorFromColorScheme(colorScheme, value, seriesType);\n if (color) {\n return color;\n }\n }\n }\n return value;\n};\n\nexport function isColorKey(obj: any): obj is IColorKey {\n return isObject(obj) && (obj as IColorKey).type === 'palette' && !!(obj as IColorKey).key;\n}\n\nexport function isProgressiveDataColorScheme<T>(obj: any): obj is ProgressiveDataScheme<T> {\n if (!isArray(obj)) {\n return false;\n }\n return obj.every(item => {\n return isValid((item as IProgressiveDataSchemeCase<T>).scheme);\n });\n}\n\n/** 将色板转化为标准形式 */\nexport function transformColorSchemeToStandardStruct(colorScheme: ColorScheme): IColorSchemeStruct {\n if (isArray(colorScheme)) {\n return {\n dataScheme: colorScheme\n };\n }\n return colorScheme;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IDelayType = 'debounce' | 'throttle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/typings/event.ts"],"names":[],"mappings":"","file":"event.js","sourcesContent":["export type IDelayType = 'debounce' | 'throttle';\n"]}
|
|
@@ -22,6 +22,7 @@ import type { ISequenceChartSpec } from '../../chart/sequence';
|
|
|
22
22
|
import type { ISunburstChartSpec } from '../../chart/sunburst';
|
|
23
23
|
import type { ITreemapChartSpec } from '../../chart/treemap';
|
|
24
24
|
import type { IWaterfallChartSpec } from '../../chart/waterfall';
|
|
25
|
+
import type { ICorrelationChartSpec } from '../../chart/correlation';
|
|
25
26
|
import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud';
|
|
26
27
|
export interface ChartSpecMap {
|
|
27
28
|
readonly common: ICommonChartSpec;
|
|
@@ -55,5 +56,6 @@ export interface ChartSpecMap {
|
|
|
55
56
|
readonly sunburst: ISunburstChartSpec;
|
|
56
57
|
readonly circlePacking: ICirclePackingChartSpec;
|
|
57
58
|
readonly heatmap: IHeatmapChartSpec;
|
|
59
|
+
readonly correlation: ICorrelationChartSpec;
|
|
58
60
|
}
|
|
59
61
|
export type ISpec = ChartSpecMap[keyof ChartSpecMap];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/typings/spec/chart.ts"],"names":[],"mappings":"","file":"chart.js","sourcesContent":["import type { IAreaChartSpec } from '../../chart/area';\nimport type { IBarChartSpec, IBar3dChartSpec } from '../../chart/bar';\nimport type { IBoxPlotChartSpec } from '../../chart/box-plot';\nimport type { ICirclePackingChartSpec } from '../../chart/circle-packing';\nimport type { ICommonChartSpec } from '../../chart/common';\nimport type { IFunnelChartSpec, IFunnel3dChartSpec } from '../../chart/funnel';\nimport type { IGaugeChartSpec } from '../../chart/gauge';\nimport type { IHeatmapChartSpec } from '../../chart/heatmap';\nimport type { IHistogramChartSpec, IHistogram3dChartSpec } from '../../chart/histogram';\nimport type { ILineChartSpec } from '../../chart/line';\nimport type { IMapChartSpec } from '../../chart/map';\nimport type { IPieChartSpec, IPie3dChartSpec } from '../../chart/pie';\nimport type { ICircularProgressChartSpec } from '../../chart/progress/circular';\nimport type { ILinearProgressChartSpec } from '../../chart/progress/linear';\nimport type { IRadarChartSpec } from '../../chart/radar';\nimport type { IRangeAreaChartSpec } from '../../chart/range-area';\nimport type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from '../../chart/range-column';\nimport type { IRoseChartSpec } from '../../chart/rose';\nimport type { ISankeyChartSpec } from '../../chart/sankey';\nimport type { IScatterChartSpec } from '../../chart/scatter';\nimport type { ISequenceChartSpec } from '../../chart/sequence';\nimport type { ISunburstChartSpec } from '../../chart/sunburst';\nimport type { ITreemapChartSpec } from '../../chart/treemap';\nimport type { IWaterfallChartSpec } from '../../chart/waterfall';\nimport type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud';\n\nexport interface ChartSpecMap {\n readonly common: ICommonChartSpec;\n readonly area: IAreaChartSpec;\n readonly line: ILineChartSpec;\n readonly bar: IBarChartSpec;\n readonly bar3d: IBar3dChartSpec;\n readonly histogram: IHistogramChartSpec;\n readonly histogram3d: IHistogram3dChartSpec;\n readonly rangeColumn: IRangeColumnChartSpec;\n readonly rangeColumn3d: IRangeColumn3dChartSpec;\n readonly rangeArea: IRangeAreaChartSpec;\n readonly map: IMapChartSpec;\n readonly pie: IPieChartSpec;\n readonly pie3d: IPie3dChartSpec;\n readonly radar: IRadarChartSpec;\n readonly rose: IRoseChartSpec;\n readonly scatter: IScatterChartSpec;\n readonly sequence: ISequenceChartSpec;\n readonly circleProgress: ICircularProgressChartSpec;\n readonly linearProgress: ILinearProgressChartSpec;\n readonly wordCloud: IWordCloudChartSpec;\n readonly wordCloud3d: IWordCloud3dChartSpec;\n readonly funnel: IFunnelChartSpec;\n readonly funnel3d: IFunnel3dChartSpec;\n readonly waterfall: IWaterfallChartSpec;\n readonly boxplot: IBoxPlotChartSpec;\n readonly gauge: IGaugeChartSpec;\n readonly sankey: ISankeyChartSpec;\n readonly treemap: ITreemapChartSpec;\n readonly sunburst: ISunburstChartSpec;\n readonly circlePacking: ICirclePackingChartSpec;\n readonly heatmap: IHeatmapChartSpec;\n}\n\nexport type ISpec = ChartSpecMap[keyof ChartSpecMap];\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/typings/spec/chart.ts"],"names":[],"mappings":"","file":"chart.js","sourcesContent":["import type { IAreaChartSpec } from '../../chart/area';\nimport type { IBarChartSpec, IBar3dChartSpec } from '../../chart/bar';\nimport type { IBoxPlotChartSpec } from '../../chart/box-plot';\nimport type { ICirclePackingChartSpec } from '../../chart/circle-packing';\nimport type { ICommonChartSpec } from '../../chart/common';\nimport type { IFunnelChartSpec, IFunnel3dChartSpec } from '../../chart/funnel';\nimport type { IGaugeChartSpec } from '../../chart/gauge';\nimport type { IHeatmapChartSpec } from '../../chart/heatmap';\nimport type { IHistogramChartSpec, IHistogram3dChartSpec } from '../../chart/histogram';\nimport type { ILineChartSpec } from '../../chart/line';\nimport type { IMapChartSpec } from '../../chart/map';\nimport type { IPieChartSpec, IPie3dChartSpec } from '../../chart/pie';\nimport type { ICircularProgressChartSpec } from '../../chart/progress/circular';\nimport type { ILinearProgressChartSpec } from '../../chart/progress/linear';\nimport type { IRadarChartSpec } from '../../chart/radar';\nimport type { IRangeAreaChartSpec } from '../../chart/range-area';\nimport type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from '../../chart/range-column';\nimport type { IRoseChartSpec } from '../../chart/rose';\nimport type { ISankeyChartSpec } from '../../chart/sankey';\nimport type { IScatterChartSpec } from '../../chart/scatter';\nimport type { ISequenceChartSpec } from '../../chart/sequence';\nimport type { ISunburstChartSpec } from '../../chart/sunburst';\nimport type { ITreemapChartSpec } from '../../chart/treemap';\nimport type { IWaterfallChartSpec } from '../../chart/waterfall';\nimport type { ICorrelationChartSpec } from '../../chart/correlation';\nimport type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud';\n\nexport interface ChartSpecMap {\n readonly common: ICommonChartSpec;\n readonly area: IAreaChartSpec;\n readonly line: ILineChartSpec;\n readonly bar: IBarChartSpec;\n readonly bar3d: IBar3dChartSpec;\n readonly histogram: IHistogramChartSpec;\n readonly histogram3d: IHistogram3dChartSpec;\n readonly rangeColumn: IRangeColumnChartSpec;\n readonly rangeColumn3d: IRangeColumn3dChartSpec;\n readonly rangeArea: IRangeAreaChartSpec;\n readonly map: IMapChartSpec;\n readonly pie: IPieChartSpec;\n readonly pie3d: IPie3dChartSpec;\n readonly radar: IRadarChartSpec;\n readonly rose: IRoseChartSpec;\n readonly scatter: IScatterChartSpec;\n readonly sequence: ISequenceChartSpec;\n readonly circleProgress: ICircularProgressChartSpec;\n readonly linearProgress: ILinearProgressChartSpec;\n readonly wordCloud: IWordCloudChartSpec;\n readonly wordCloud3d: IWordCloud3dChartSpec;\n readonly funnel: IFunnelChartSpec;\n readonly funnel3d: IFunnel3dChartSpec;\n readonly waterfall: IWaterfallChartSpec;\n readonly boxplot: IBoxPlotChartSpec;\n readonly gauge: IGaugeChartSpec;\n readonly sankey: ISankeyChartSpec;\n readonly treemap: ITreemapChartSpec;\n readonly sunburst: ISunburstChartSpec;\n readonly circlePacking: ICirclePackingChartSpec;\n readonly heatmap: IHeatmapChartSpec;\n readonly correlation: ICorrelationChartSpec;\n}\n\nexport type ISpec = ChartSpecMap[keyof ChartSpecMap];\n"]}
|
|
@@ -4,12 +4,11 @@ import type { LayoutCallBack } from '../../layout/interface';
|
|
|
4
4
|
import type { IElement, srIOption3DType } from '@visactor/vgrammar-core';
|
|
5
5
|
import type { DataSet, DataView, ISimplifyOptions, IFieldsOptions, IFilterOptions, IFoldOptions, IDsvParserOptions } from '@visactor/vdataset';
|
|
6
6
|
import type { IRegionSpec } from '../../region/interface';
|
|
7
|
-
import type { IDiscreteLegendSpec } from '../../component/legend/discrete/interface';
|
|
8
7
|
import type { IHoverSpec, ISelectSpec, ITriggerSpec } from '../../interaction/interface';
|
|
9
8
|
import type { IRenderOption } from '../../compile/interface';
|
|
10
9
|
import type { ITooltipSpec } from '../../component/tooltip/interface';
|
|
11
10
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
12
|
-
import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IProgressArcMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
11
|
+
import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IProgressArcMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
13
12
|
import type { StateValue } from '../../compile/mark';
|
|
14
13
|
import type { ISeriesStyle, SeriesType } from '../../series/interface';
|
|
15
14
|
import type { ILayoutOrientPadding } from '../../model/interface';
|
|
@@ -24,6 +23,8 @@ import type { ITheme } from '../../theme';
|
|
|
24
23
|
import type { ITitleSpec } from '../../component/title/interface';
|
|
25
24
|
import type { IBrushSpec } from '../../component/brush';
|
|
26
25
|
import type { ITotalLabelSpec } from '../../component/label';
|
|
26
|
+
import type { ILegendSpec } from '../../component/legend';
|
|
27
|
+
import type { IColorKey } from '../../theme/color-scheme/interface';
|
|
27
28
|
export type IChartPadding = ILayoutOrientPadding | number;
|
|
28
29
|
export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
29
30
|
dom?: string | HTMLElement;
|
|
@@ -56,7 +57,7 @@ export interface IChartSpec {
|
|
|
56
57
|
height?: number;
|
|
57
58
|
autoFit?: boolean;
|
|
58
59
|
padding?: ILayoutPaddingSpec;
|
|
59
|
-
color?: string[] | Omit<IVisualSpecScale<unknown, string>, 'id'>;
|
|
60
|
+
color?: string[] | Omit<IVisualSpecScale<unknown, string | IColorKey>, 'id'>;
|
|
60
61
|
series?: ISeriesSpec[];
|
|
61
62
|
seriesStyle?: ISeriesStyle;
|
|
62
63
|
animationThreshold?: number;
|
|
@@ -65,12 +66,12 @@ export interface IChartSpec {
|
|
|
65
66
|
region?: IRegionSpec[];
|
|
66
67
|
title?: ITitleSpec;
|
|
67
68
|
layout?: ILayoutSpec;
|
|
68
|
-
legends?:
|
|
69
|
+
legends?: ILegendSpec | ILegendSpec[];
|
|
69
70
|
crosshair?: ICrosshairSpec | ICrosshairSpec[];
|
|
70
71
|
tooltip?: ITooltipSpec;
|
|
71
72
|
player?: IPlayer;
|
|
72
|
-
dataZoom?: IDataZoomSpec[];
|
|
73
|
-
scrollBar?: IScrollBarSpec[];
|
|
73
|
+
dataZoom?: IDataZoomSpec | IDataZoomSpec[];
|
|
74
|
+
scrollBar?: IScrollBarSpec | IScrollBarSpec[];
|
|
74
75
|
brush?: IBrushSpec;
|
|
75
76
|
scales?: IVisualSpecScale<unknown, unknown>[];
|
|
76
77
|
customMark?: ICustomMarkSpec<EnableMarkType>[];
|
|
@@ -246,6 +247,7 @@ export type IBuildinMarkSpec = {
|
|
|
246
247
|
[MarkTypeEnum.boxPlot]: IBoxPlotMarkSpec;
|
|
247
248
|
[MarkTypeEnum.linkPath]: ILinkPathMarkSpec;
|
|
248
249
|
[MarkTypeEnum.progressArc]: IProgressArcMarkSpec;
|
|
250
|
+
[MarkTypeEnum.ripple]: IRippleMarkSpec;
|
|
249
251
|
};
|
|
250
252
|
export type EnableMarkType = keyof IBuildinMarkSpec;
|
|
251
253
|
export interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBuildinMarkSpec[T]> {
|