@visactor/vchart 1.6.3 → 1.7.0-alpha.0
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 +2175 -1387
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/utils.d.ts +2 -2
- package/cjs/chart/base-chart.d.ts +4 -4
- package/cjs/chart/base-chart.js +33 -22
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +2 -2
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/stack.js +1 -2
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/component/axis/base-axis.d.ts +1 -0
- package/cjs/component/axis/base-axis.js +2 -2
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +12 -9
- package/cjs/component/axis/cartesian/axis.js +46 -55
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/theme.d.ts +1 -1
- package/cjs/component/axis/cartesian/interface/theme.js.map +1 -1
- package/cjs/component/axis/mixin/band-axis-mixin.js +1 -1
- package/cjs/component/axis/mixin/band-axis-mixin.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +3 -4
- package/cjs/component/axis/polar/axis.js +7 -12
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/base/base-component.d.ts +12 -4
- package/cjs/component/base/base-component.js +20 -10
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/brush/brush.d.ts +3 -4
- package/cjs/component/brush/brush.js +3 -5
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/crosshair/base.d.ts +4 -5
- package/cjs/component/crosshair/base.js +1 -1
- package/cjs/component/crosshair/base.js.map +1 -1
- package/cjs/component/crosshair/cartesian.d.ts +2 -0
- package/cjs/component/crosshair/cartesian.js +6 -8
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/interface/spec.d.ts +1 -1
- package/cjs/component/crosshair/interface/spec.js.map +1 -1
- package/cjs/component/crosshair/polar.d.ts +2 -0
- package/cjs/component/crosshair/polar.js +5 -8
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.d.ts +3 -4
- package/cjs/component/custom-mark/custom-mark.js +1 -2
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.d.ts +6 -8
- package/cjs/component/data-zoom/data-filter-base-component.js +26 -25
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +12 -15
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/interface.d.ts +1 -0
- package/cjs/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/interface.d.ts +1 -1
- package/cjs/component/data-zoom/scroll-bar/interface.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +6 -9
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/geo/geo-coordinate.d.ts +4 -3
- package/cjs/component/geo/geo-coordinate.js +4 -4
- package/cjs/component/geo/geo-coordinate.js.map +1 -1
- package/cjs/component/indicator/indicator.d.ts +2 -4
- package/cjs/component/indicator/indicator.js +3 -4
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/indicator/interface.d.ts +1 -1
- package/cjs/component/indicator/interface.js.map +1 -1
- package/cjs/component/interface/common.d.ts +3 -3
- package/cjs/component/interface/common.js.map +1 -1
- package/cjs/component/label/base-label.d.ts +3 -4
- package/cjs/component/label/base-label.js +1 -2
- package/cjs/component/label/base-label.js.map +1 -1
- package/cjs/component/label/label.d.ts +3 -3
- package/cjs/component/label/label.js +2 -3
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/label/totalLabel.d.ts +3 -3
- package/cjs/component/label/totalLabel.js +2 -3
- package/cjs/component/label/totalLabel.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +6 -9
- package/cjs/component/legend/base-legend.js +3 -9
- package/cjs/component/legend/base-legend.js.map +1 -1
- package/cjs/component/legend/continuous/legend.d.ts +4 -1
- package/cjs/component/legend/continuous/legend.js +7 -7
- package/cjs/component/legend/continuous/legend.js.map +1 -1
- package/cjs/component/legend/discrete/legend.d.ts +4 -1
- package/cjs/component/legend/discrete/legend.js +6 -7
- package/cjs/component/legend/discrete/legend.js.map +1 -1
- package/cjs/component/legend/discrete/util.d.ts +1 -1
- package/cjs/component/legend/discrete/util.js.map +1 -1
- package/cjs/component/legend/util.d.ts +1 -1
- package/cjs/component/map-label/component.d.ts +2 -4
- package/cjs/component/map-label/component.js +1 -2
- package/cjs/component/map-label/component.js.map +1 -1
- package/cjs/component/marker/base-marker.d.ts +2 -3
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/interface.d.ts +1 -1
- package/cjs/component/marker/interface.js.map +1 -1
- package/cjs/component/marker/mark-area/mark-area.d.ts +1 -3
- package/cjs/component/marker/mark-area/mark-area.js +6 -10
- package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/mark-line.d.ts +1 -3
- package/cjs/component/marker/mark-line/mark-line.js +8 -12
- package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/mark-point.d.ts +1 -3
- package/cjs/component/marker/mark-point/mark-point.js +6 -10
- package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
- package/cjs/component/player/interface/theme.d.ts +1 -1
- package/cjs/component/player/interface/theme.js.map +1 -1
- package/cjs/component/player/player.d.ts +6 -7
- package/cjs/component/player/player.js +4 -7
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/title/interface/theme.d.ts +1 -1
- package/cjs/component/title/interface/theme.js.map +1 -1
- package/cjs/component/title/title.d.ts +6 -9
- package/cjs/component/title/title.js +13 -24
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/handler/base.js.map +1 -1
- package/cjs/component/tooltip/tooltip.d.ts +4 -3
- package/cjs/component/tooltip/tooltip.js +5 -8
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/constant/layout.d.ts +1 -0
- package/cjs/constant/layout.js +2 -2
- package/cjs/constant/layout.js.map +1 -1
- package/cjs/core/factory.d.ts +5 -2
- package/cjs/core/factory.js +6 -3
- package/cjs/core/factory.js.map +1 -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/core/vchart.js +2 -2
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/event/events/base.d.ts +16 -0
- package/cjs/event/events/base.js +23 -0
- package/cjs/event/events/base.js.map +1 -0
- package/cjs/event/events/dimension/util/cartesian.d.ts +1 -1
- package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
- package/cjs/event/events/dimension/util/common.d.ts +1 -2
- package/cjs/event/events/dimension/util/common.js +1 -1
- package/cjs/event/events/dimension/util/common.js.map +1 -1
- package/cjs/event/events/dimension/util/polar.d.ts +1 -1
- package/cjs/event/events/dimension/util/polar.js.map +1 -1
- package/cjs/event/interface.d.ts +1 -1
- package/cjs/event/interface.js.map +1 -1
- package/cjs/interaction/zoom/zoomable.d.ts +1 -0
- package/cjs/interaction/zoom/zoomable.js +6 -5
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/layout/base-layout.d.ts +3 -5
- package/cjs/layout/base-layout.js +8 -8
- package/cjs/layout/base-layout.js.map +1 -1
- package/cjs/layout/grid-layout/grid-layout.d.ts +1 -2
- package/cjs/layout/grid-layout/grid-layout.js +6 -4
- package/cjs/layout/grid-layout/grid-layout.js.map +1 -1
- package/cjs/layout/interface.d.ts +74 -6
- package/cjs/layout/interface.js.map +1 -1
- package/cjs/{model → layout}/layout-item.d.ts +35 -23
- package/cjs/{model → layout}/layout-item.js +100 -64
- package/cjs/layout/layout-item.js.map +1 -0
- package/cjs/layout/layout3d/index.d.ts +2 -4
- package/cjs/layout/layout3d/index.js +6 -6
- package/cjs/layout/layout3d/index.js.map +1 -1
- package/cjs/layout/util.d.ts +1 -1
- package/cjs/layout/util.js.map +1 -1
- package/cjs/model/base-model.d.ts +10 -6
- package/cjs/model/base-model.js +23 -21
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +20 -82
- package/cjs/model/interface.js.map +1 -1
- package/cjs/model/layout-model.d.ts +39 -0
- package/cjs/model/layout-model.js +75 -0
- package/cjs/model/layout-model.js.map +1 -0
- package/cjs/region/interface.d.ts +3 -2
- package/cjs/region/interface.js.map +1 -1
- package/cjs/region/region.d.ts +12 -7
- package/cjs/region/region.js +18 -10
- package/cjs/region/region.js.map +1 -1
- package/cjs/series/base/base-series.d.ts +10 -4
- package/cjs/series/base/base-series.js +27 -10
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/funnel/interface.d.ts +1 -2
- package/cjs/series/funnel/interface.js.map +1 -1
- package/cjs/series/interface/series.d.ts +3 -2
- package/cjs/series/interface/series.js.map +1 -1
- package/cjs/series/mixin/line-mixin.d.ts +2 -1
- package/cjs/series/mixin/line-mixin.js.map +1 -1
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js +22 -0
- package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +3 -0
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js +36 -0
- package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js +42 -0
- package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js +22 -0
- package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +3 -0
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js +25 -0
- package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/crosshair.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/crosshair.js +39 -0
- package/cjs/theme/builtin/common-mobile/component/crosshair.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/data-zoom.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/data-zoom.js +40 -0
- package/cjs/theme/builtin/common-mobile/component/data-zoom.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/index.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/index.js +33 -0
- package/cjs/theme/builtin/common-mobile/component/index.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/indicator.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/indicator.js +23 -0
- package/cjs/theme/builtin/common-mobile/component/indicator.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js +23 -0
- package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.js +44 -0
- package/cjs/theme/builtin/common-mobile/component/legend/continuous.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js +39 -0
- package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js +23 -0
- package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/map-label.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/map-label.js +39 -0
- package/cjs/theme/builtin/common-mobile/component/map-label.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/mark-area.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/mark-area.js +24 -0
- package/cjs/theme/builtin/common-mobile/component/mark-area.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/mark-line.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/mark-line.js +33 -0
- package/cjs/theme/builtin/common-mobile/component/mark-line.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/mark-point.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/mark-point.js +19 -0
- package/cjs/theme/builtin/common-mobile/component/mark-point.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/player.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/player.js +51 -0
- package/cjs/theme/builtin/common-mobile/component/player.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/poptip.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/poptip.js +25 -0
- package/cjs/theme/builtin/common-mobile/component/poptip.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/title.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/title.js +23 -0
- package/cjs/theme/builtin/common-mobile/component/title.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/tooltip.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/tooltip.js +43 -0
- package/cjs/theme/builtin/common-mobile/component/tooltip.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/component/total-label.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/component/total-label.js +16 -0
- package/cjs/theme/builtin/common-mobile/component/total-label.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/constants.d.ts +2 -0
- package/cjs/theme/builtin/common-mobile/constants.js +23 -0
- package/cjs/theme/builtin/common-mobile/constants.js.map +1 -0
- package/cjs/theme/builtin/common-mobile/mark.d.ts +3 -0
- package/cjs/theme/builtin/common-mobile/mark.js +35 -0
- package/cjs/theme/builtin/common-mobile/mark.js.map +1 -0
- package/cjs/theme/builtin/dark-mobile/index.d.ts +2 -0
- package/cjs/theme/builtin/dark-mobile/index.js +18 -0
- package/cjs/theme/builtin/dark-mobile/index.js.map +1 -0
- package/cjs/theme/builtin/index.js +4 -2
- package/cjs/theme/builtin/index.js.map +1 -1
- package/cjs/theme/builtin/light-mobile/index.d.ts +2 -0
- package/cjs/theme/builtin/light-mobile/index.js +18 -0
- package/cjs/theme/builtin/light-mobile/index.js.map +1 -0
- package/cjs/theme/interface.d.ts +1 -2
- package/cjs/theme/interface.js.map +1 -1
- package/cjs/typings/index.d.ts +1 -0
- package/cjs/typings/index.js +2 -1
- package/cjs/typings/index.js.map +1 -1
- package/cjs/typings/layout.d.ts +23 -0
- package/cjs/typings/layout.js +6 -0
- package/cjs/typings/layout.js.map +1 -0
- package/cjs/typings/spec/common.d.ts +1 -2
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/util/space.d.ts +1 -1
- package/cjs/util/space.js.map +1 -1
- package/esm/animation/utils.d.ts +2 -2
- package/esm/chart/base-chart.d.ts +4 -4
- package/esm/chart/base-chart.js +33 -22
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +2 -2
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/stack.js +1 -2
- package/esm/compile/grammar-item.js +2 -1
- package/esm/component/axis/base-axis.d.ts +1 -0
- package/esm/component/axis/base-axis.js +2 -2
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +12 -9
- package/esm/component/axis/cartesian/axis.js +44 -52
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/interface/theme.d.ts +1 -1
- package/esm/component/axis/cartesian/interface/theme.js.map +1 -1
- package/esm/component/axis/mixin/band-axis-mixin.js +1 -1
- package/esm/component/axis/mixin/band-axis-mixin.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +3 -4
- package/esm/component/axis/polar/axis.js +7 -12
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/base/base-component.d.ts +12 -4
- package/esm/component/base/base-component.js +21 -11
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/brush/brush.d.ts +3 -4
- package/esm/component/brush/brush.js +3 -5
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/crosshair/base.d.ts +4 -5
- package/esm/component/crosshair/base.js +1 -1
- package/esm/component/crosshair/base.js.map +1 -1
- package/esm/component/crosshair/cartesian.d.ts +2 -0
- package/esm/component/crosshair/cartesian.js +5 -8
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/interface/spec.d.ts +1 -1
- package/esm/component/crosshair/interface/spec.js.map +1 -1
- package/esm/component/crosshair/polar.d.ts +2 -0
- package/esm/component/crosshair/polar.js +5 -8
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.d.ts +3 -4
- package/esm/component/custom-mark/custom-mark.js +1 -2
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.d.ts +6 -8
- package/esm/component/data-zoom/data-filter-base-component.js +26 -24
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js +12 -15
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/interface.d.ts +1 -0
- package/esm/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/interface.d.ts +1 -1
- package/esm/component/data-zoom/scroll-bar/interface.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +6 -9
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/geo/geo-coordinate.d.ts +4 -3
- package/esm/component/geo/geo-coordinate.js +3 -1
- package/esm/component/geo/geo-coordinate.js.map +1 -1
- package/esm/component/indicator/indicator.d.ts +2 -4
- package/esm/component/indicator/indicator.js +3 -4
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/indicator/interface.d.ts +1 -1
- package/esm/component/indicator/interface.js.map +1 -1
- package/esm/component/interface/common.d.ts +3 -3
- package/esm/component/interface/common.js.map +1 -1
- package/esm/component/label/base-label.d.ts +3 -4
- package/esm/component/label/base-label.js +1 -3
- package/esm/component/label/base-label.js.map +1 -1
- package/esm/component/label/label.d.ts +3 -3
- package/esm/component/label/label.js +2 -3
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/label/totalLabel.d.ts +3 -3
- package/esm/component/label/totalLabel.js +2 -3
- package/esm/component/label/totalLabel.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +6 -9
- package/esm/component/legend/base-legend.js +3 -9
- package/esm/component/legend/base-legend.js.map +1 -1
- package/esm/component/legend/continuous/legend.d.ts +4 -1
- package/esm/component/legend/continuous/legend.js +6 -7
- package/esm/component/legend/continuous/legend.js.map +1 -1
- package/esm/component/legend/discrete/legend.d.ts +4 -1
- package/esm/component/legend/discrete/legend.js +6 -7
- package/esm/component/legend/discrete/legend.js.map +1 -1
- package/esm/component/legend/discrete/util.d.ts +1 -1
- package/esm/component/legend/discrete/util.js.map +1 -1
- package/esm/component/legend/util.d.ts +1 -1
- package/esm/component/map-label/component.d.ts +2 -4
- package/esm/component/map-label/component.js +1 -1
- package/esm/component/map-label/component.js.map +1 -1
- package/esm/component/marker/base-marker.d.ts +2 -3
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/interface.d.ts +1 -1
- package/esm/component/marker/interface.js.map +1 -1
- package/esm/component/marker/mark-area/mark-area.d.ts +1 -3
- package/esm/component/marker/mark-area/mark-area.js +6 -9
- package/esm/component/marker/mark-area/mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/mark-line.d.ts +1 -3
- package/esm/component/marker/mark-line/mark-line.js +8 -11
- package/esm/component/marker/mark-line/mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/mark-point.d.ts +1 -3
- package/esm/component/marker/mark-point/mark-point.js +6 -9
- package/esm/component/marker/mark-point/mark-point.js.map +1 -1
- package/esm/component/player/interface/theme.d.ts +1 -1
- package/esm/component/player/interface/theme.js.map +1 -1
- package/esm/component/player/player.d.ts +6 -7
- package/esm/component/player/player.js +4 -7
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/title/interface/theme.d.ts +1 -1
- package/esm/component/title/interface/theme.js.map +1 -1
- package/esm/component/title/title.d.ts +6 -9
- package/esm/component/title/title.js +12 -22
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/handler/base.js.map +1 -1
- package/esm/component/tooltip/tooltip.d.ts +4 -3
- package/esm/component/tooltip/tooltip.js +5 -8
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/constant/layout.d.ts +1 -0
- package/esm/constant/layout.js +2 -0
- package/esm/constant/layout.js.map +1 -1
- package/esm/core/factory.d.ts +5 -2
- package/esm/core/factory.js +6 -3
- package/esm/core/factory.js.map +1 -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/core/vchart.js +2 -2
- package/esm/core/vchart.js.map +1 -1
- package/esm/event/events/base.d.ts +16 -0
- package/esm/event/events/base.js +15 -0
- package/esm/event/events/base.js.map +1 -0
- package/esm/event/events/dimension/util/cartesian.d.ts +1 -1
- package/esm/event/events/dimension/util/cartesian.js.map +1 -1
- package/esm/event/events/dimension/util/common.d.ts +1 -2
- package/esm/event/events/dimension/util/common.js +1 -1
- package/esm/event/events/dimension/util/common.js.map +1 -1
- package/esm/event/events/dimension/util/polar.d.ts +1 -1
- package/esm/event/events/dimension/util/polar.js.map +1 -1
- package/esm/event/interface.d.ts +1 -1
- package/esm/event/interface.js.map +1 -1
- package/esm/interaction/zoom/zoomable.d.ts +1 -0
- package/esm/interaction/zoom/zoomable.js +6 -5
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/layout/base-layout.d.ts +3 -5
- package/esm/layout/base-layout.js +8 -8
- package/esm/layout/base-layout.js.map +1 -1
- package/esm/layout/grid-layout/grid-layout.d.ts +1 -2
- package/esm/layout/grid-layout/grid-layout.js +6 -4
- package/esm/layout/grid-layout/grid-layout.js.map +1 -1
- package/esm/layout/interface.d.ts +74 -6
- package/esm/layout/interface.js.map +1 -1
- package/esm/{model → layout}/layout-item.d.ts +35 -23
- package/esm/{model → layout}/layout-item.js +95 -63
- package/esm/layout/layout-item.js.map +1 -0
- package/esm/layout/layout3d/index.d.ts +2 -4
- package/esm/layout/layout3d/index.js +5 -5
- package/esm/layout/layout3d/index.js.map +1 -1
- package/esm/layout/util.d.ts +1 -1
- package/esm/layout/util.js.map +1 -1
- package/esm/model/base-model.d.ts +10 -6
- package/esm/model/base-model.js +24 -22
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +20 -82
- package/esm/model/interface.js.map +1 -1
- package/esm/model/layout-model.d.ts +39 -0
- package/esm/model/layout-model.js +71 -0
- package/esm/model/layout-model.js.map +1 -0
- package/esm/region/interface.d.ts +3 -2
- package/esm/region/interface.js.map +1 -1
- package/esm/region/region.d.ts +12 -7
- package/esm/region/region.js +19 -11
- package/esm/region/region.js.map +1 -1
- package/esm/series/base/base-series.d.ts +10 -4
- package/esm/series/base/base-series.js +26 -10
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/funnel/interface.d.ts +1 -2
- package/esm/series/funnel/interface.js.map +1 -1
- package/esm/series/interface/series.d.ts +3 -2
- package/esm/series/interface/series.js.map +1 -1
- package/esm/series/mixin/line-mixin.d.ts +2 -1
- package/esm/series/mixin/line-mixin.js.map +1 -1
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.js +18 -0
- package/esm/theme/builtin/common-mobile/component/axis/band-axis.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +3 -0
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js +32 -0
- package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.js +36 -0
- package/esm/theme/builtin/common-mobile/component/axis/common-axis.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js +18 -0
- package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +3 -0
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js +23 -0
- package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/crosshair.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/crosshair.js +35 -0
- package/esm/theme/builtin/common-mobile/component/crosshair.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/data-zoom.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/data-zoom.js +34 -0
- package/esm/theme/builtin/common-mobile/component/data-zoom.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/index.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/index.js +65 -0
- package/esm/theme/builtin/common-mobile/component/index.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/indicator.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/indicator.js +17 -0
- package/esm/theme/builtin/common-mobile/component/indicator.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.js +17 -0
- package/esm/theme/builtin/common-mobile/component/legend/color-legend.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/legend/continuous.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/legend/continuous.js +38 -0
- package/esm/theme/builtin/common-mobile/component/legend/continuous.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js +33 -0
- package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.js +17 -0
- package/esm/theme/builtin/common-mobile/component/legend/size-legend.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/map-label.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/map-label.js +33 -0
- package/esm/theme/builtin/common-mobile/component/map-label.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/mark-area.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/mark-area.js +18 -0
- package/esm/theme/builtin/common-mobile/component/mark-area.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/mark-line.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/mark-line.js +27 -0
- package/esm/theme/builtin/common-mobile/component/mark-line.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/mark-point.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/mark-point.js +15 -0
- package/esm/theme/builtin/common-mobile/component/mark-point.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/player.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/player.js +47 -0
- package/esm/theme/builtin/common-mobile/component/player.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/poptip.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/poptip.js +19 -0
- package/esm/theme/builtin/common-mobile/component/poptip.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/title.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/title.js +17 -0
- package/esm/theme/builtin/common-mobile/component/title.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/tooltip.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/tooltip.js +37 -0
- package/esm/theme/builtin/common-mobile/component/tooltip.js.map +1 -0
- package/esm/theme/builtin/common-mobile/component/total-label.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/component/total-label.js +10 -0
- package/esm/theme/builtin/common-mobile/component/total-label.js.map +1 -0
- package/esm/theme/builtin/common-mobile/constants.d.ts +2 -0
- package/esm/theme/builtin/common-mobile/constants.js +19 -0
- package/esm/theme/builtin/common-mobile/constants.js.map +1 -0
- package/esm/theme/builtin/common-mobile/mark.d.ts +3 -0
- package/esm/theme/builtin/common-mobile/mark.js +31 -0
- package/esm/theme/builtin/common-mobile/mark.js.map +1 -0
- package/esm/theme/builtin/dark-mobile/index.d.ts +2 -0
- package/esm/theme/builtin/dark-mobile/index.js +16 -0
- package/esm/theme/builtin/dark-mobile/index.js.map +1 -0
- package/esm/theme/builtin/index.js +7 -1
- package/esm/theme/builtin/index.js.map +1 -1
- package/esm/theme/builtin/light-mobile/index.d.ts +2 -0
- package/esm/theme/builtin/light-mobile/index.js +16 -0
- package/esm/theme/builtin/light-mobile/index.js.map +1 -0
- package/esm/theme/interface.d.ts +1 -2
- package/esm/theme/interface.js.map +1 -1
- package/esm/typings/index.d.ts +1 -0
- package/esm/typings/index.js +2 -0
- package/esm/typings/index.js.map +1 -1
- package/esm/typings/layout.d.ts +23 -0
- package/esm/typings/layout.js +2 -0
- package/esm/typings/layout.js.map +1 -0
- package/esm/typings/spec/common.d.ts +1 -2
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/util/space.d.ts +1 -1
- package/esm/util/space.js.map +1 -1
- package/package.json +11 -11
- package/cjs/model/layout-item.js.map +0 -1
- package/esm/model/layout-item.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.sizeLegend = void 0;
|
|
6
|
+
|
|
7
|
+
const continuous_1 = require("./continuous");
|
|
8
|
+
|
|
9
|
+
exports.sizeLegend = {
|
|
10
|
+
horizontal: Object.assign(Object.assign({}, continuous_1.DEFAULT_CONTINUOUS_LEGEND_THEME), {
|
|
11
|
+
rail: {
|
|
12
|
+
width: 200,
|
|
13
|
+
height: 4
|
|
14
|
+
}
|
|
15
|
+
}),
|
|
16
|
+
vertical: Object.assign(Object.assign({}, continuous_1.DEFAULT_CONTINUOUS_LEGEND_THEME), {
|
|
17
|
+
rail: {
|
|
18
|
+
width: 4,
|
|
19
|
+
height: 200
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=size-legend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/legend/size-legend.ts"],"names":[],"mappings":";;;AACA,6CAA+D;AAElD,QAAA,UAAU,GAAqB;IAC1C,UAAU,kCACL,4CAA+B,KAClC,IAAI,EAAE;YACJ,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,CAAC;SACV,GACF;IACD,QAAQ,kCACH,4CAA+B,KAClC,IAAI,EAAE;YACJ,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,GAAG;SACZ,GACF;CACF,CAAC","file":"size-legend.js","sourcesContent":["import type { ISizeLegendTheme } from '../../../../../component/legend';\nimport { DEFAULT_CONTINUOUS_LEGEND_THEME } from './continuous';\n\nexport const sizeLegend: ISizeLegendTheme = {\n horizontal: {\n ...DEFAULT_CONTINUOUS_LEGEND_THEME,\n rail: {\n width: 200,\n height: 4\n }\n },\n vertical: {\n ...DEFAULT_CONTINUOUS_LEGEND_THEME,\n rail: {\n width: 4,\n height: 200\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.mapLabel = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.mapLabel = {
|
|
10
|
+
visible: !0,
|
|
11
|
+
offset: 12,
|
|
12
|
+
position: "top",
|
|
13
|
+
space: 10,
|
|
14
|
+
nameLabel: {
|
|
15
|
+
visible: !0,
|
|
16
|
+
style: {
|
|
17
|
+
fontSize: constants_1.THEME_CONSTANTS.l6FontSize
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
valueLabel: {
|
|
21
|
+
visible: !0,
|
|
22
|
+
style: {
|
|
23
|
+
fontSize: constants_1.THEME_CONSTANTS.l6FontSize
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
background: {
|
|
27
|
+
visible: !0,
|
|
28
|
+
padding: {
|
|
29
|
+
top: 4,
|
|
30
|
+
bottom: 4,
|
|
31
|
+
left: 6,
|
|
32
|
+
right: 6
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
leader: {
|
|
36
|
+
visible: !1
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=map-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/map-label.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,QAAQ,GAAmB;IACtC,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,EAAE;IACT,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;SAErC;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;SAErC;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;KAClD;IACD,MAAM,EAAE;QACN,OAAO,EAAE,KAAK;KACf;CACF,CAAC","file":"map-label.js","sourcesContent":["import type { IMapLabelTheme } from '../../../../component/map-label';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const mapLabel: IMapLabelTheme = {\n visible: true,\n offset: 12,\n position: 'top',\n space: 10,\n nameLabel: {\n visible: true,\n style: {\n fontSize: THEME_CONSTANTS.l6FontSize\n // lineHeight: THEME_CONSTANTS.l6LineHeight,\n }\n },\n valueLabel: {\n visible: true,\n style: {\n fontSize: THEME_CONSTANTS.l6FontSize\n // lineHeight: THEME_CONSTANTS.l6LineHeight,\n }\n },\n background: {\n visible: true,\n padding: { top: 4, bottom: 4, left: 6, right: 6 }\n },\n leader: {\n visible: false\n }\n};\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.markArea = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.markArea = {
|
|
10
|
+
label: {
|
|
11
|
+
style: {
|
|
12
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize
|
|
13
|
+
},
|
|
14
|
+
labelBackground: {
|
|
15
|
+
padding: {
|
|
16
|
+
top: 2,
|
|
17
|
+
bottom: 2,
|
|
18
|
+
right: 4,
|
|
19
|
+
left: 4
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=mark-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/mark-area.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,QAAQ,GAAmB;IACtC,KAAK,EAAE;QACL,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;SAErC;QACD,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,CAAC;aACR;SACF;KACF;CACF,CAAC","file":"mark-area.js","sourcesContent":["import type { IMarkAreaTheme } from '../../../../component/marker/mark-area/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const markArea: IMarkAreaTheme = {\n label: {\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize\n // lineHeight: THEME_CONSTANTS.l4LineHeight,\n },\n labelBackground: {\n padding: {\n top: 2,\n bottom: 2,\n right: 4,\n left: 4\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.markLine = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.markLine = {
|
|
10
|
+
startSymbol: {
|
|
11
|
+
visible: !1,
|
|
12
|
+
size: 10
|
|
13
|
+
},
|
|
14
|
+
endSymbol: {
|
|
15
|
+
visible: !0,
|
|
16
|
+
size: 10
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
refY: 5,
|
|
20
|
+
style: {
|
|
21
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize
|
|
22
|
+
},
|
|
23
|
+
labelBackground: {
|
|
24
|
+
padding: {
|
|
25
|
+
top: 2,
|
|
26
|
+
bottom: 2,
|
|
27
|
+
right: 4,
|
|
28
|
+
left: 4
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=mark-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/mark-line.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,QAAQ,GAAmB;IACtC,WAAW,EAAE;QACX,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,EAAE;KACT;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;QACP,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;SAErC;QACD,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,CAAC;aACR;SACF;KACF;CACF,CAAC","file":"mark-line.js","sourcesContent":["import type { IMarkLineTheme } from '../../../../component/marker/mark-line/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const markLine: IMarkLineTheme = {\n startSymbol: {\n visible: false,\n size: 10\n },\n endSymbol: {\n visible: true,\n size: 10\n },\n label: {\n refY: 5,\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize\n // lineHeight: THEME_CONSTANTS.l4LineHeight,\n },\n labelBackground: {\n padding: {\n top: 2,\n bottom: 2,\n right: 4,\n left: 4\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.markPoint = void 0, exports.markPoint = {
|
|
6
|
+
itemLine: {
|
|
7
|
+
decorativeLine: {
|
|
8
|
+
visible: !1
|
|
9
|
+
},
|
|
10
|
+
startSymbol: {
|
|
11
|
+
size: 5,
|
|
12
|
+
visible: !0
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
itemContent: {
|
|
16
|
+
offsetY: -50
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=mark-point.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/mark-point.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAoB;IACxC,QAAQ,EAAE;QACR,cAAc,EAAE;YACd,OAAO,EAAE,KAAK;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,IAAI;SACd;KACF;IACD,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,EAAE;KACb;CACF,CAAC","file":"mark-point.js","sourcesContent":["import type { IMarkPointTheme } from '../../../../component/marker/mark-point/interface';\n\nexport const markPoint: IMarkPointTheme = {\n itemLine: {\n decorativeLine: {\n visible: false\n },\n startSymbol: {\n size: 5,\n visible: true\n }\n },\n itemContent: {\n offsetY: -50\n }\n};\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.player = void 0, exports.player = {
|
|
6
|
+
visible: !0,
|
|
7
|
+
position: "start",
|
|
8
|
+
padding: {
|
|
9
|
+
top: 12,
|
|
10
|
+
bottom: 12
|
|
11
|
+
},
|
|
12
|
+
slider: {
|
|
13
|
+
space: 10,
|
|
14
|
+
handlerStyle: {
|
|
15
|
+
size: 15
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
controller: {
|
|
19
|
+
start: {
|
|
20
|
+
order: 0,
|
|
21
|
+
space: 0,
|
|
22
|
+
style: {
|
|
23
|
+
size: 25
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
pause: {
|
|
27
|
+
order: 0,
|
|
28
|
+
space: 0,
|
|
29
|
+
style: {
|
|
30
|
+
size: 25
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
backward: {
|
|
34
|
+
order: 0,
|
|
35
|
+
space: 10,
|
|
36
|
+
position: "start",
|
|
37
|
+
style: {
|
|
38
|
+
size: 12
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
forward: {
|
|
42
|
+
order: 0,
|
|
43
|
+
space: 10,
|
|
44
|
+
position: "end",
|
|
45
|
+
style: {
|
|
46
|
+
size: 12
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=player.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/player.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAAiB;IAClC,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,OAAO;IACjB,OAAO,EAAE;QACP,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;KACX;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,YAAY,EAAE;YACZ,IAAI,EAAE,EAAE;SACT;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;YACR,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE;aACT;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;YACR,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE;aACT;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,EAAE;YACT,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE;aACT;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE;aACT;SACF;KACF;CACF,CAAC","file":"player.js","sourcesContent":["import type { IPlayerTheme } from '../../../../component/player';\n\nexport const player: IPlayerTheme = {\n visible: true,\n position: 'start',\n padding: {\n top: 12,\n bottom: 12\n },\n slider: {\n space: 10,\n handlerStyle: {\n size: 15\n }\n },\n controller: {\n start: {\n order: 0,\n space: 0,\n style: {\n size: 25\n }\n },\n pause: {\n order: 0,\n space: 0,\n style: {\n size: 25\n }\n },\n backward: {\n order: 0,\n space: 10,\n position: 'start',\n style: {\n size: 12\n }\n },\n forward: {\n order: 0,\n space: 10,\n position: 'end',\n style: {\n size: 12\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.poptip = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.poptip = {
|
|
10
|
+
visible: !0,
|
|
11
|
+
position: "auto",
|
|
12
|
+
padding: 8,
|
|
13
|
+
titleStyle: {
|
|
14
|
+
fontSize: constants_1.THEME_CONSTANTS.l5FontSize
|
|
15
|
+
},
|
|
16
|
+
contentStyle: {
|
|
17
|
+
fontSize: constants_1.THEME_CONSTANTS.l5FontSize
|
|
18
|
+
},
|
|
19
|
+
panel: {
|
|
20
|
+
visible: !0,
|
|
21
|
+
size: 0,
|
|
22
|
+
space: 12
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=poptip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/poptip.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,MAAM,GAAiB;IAClC,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE;QACV,QAAQ,EAAE,2BAAe,CAAC,UAAU;KAErC;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,2BAAe,CAAC,UAAU;KAErC;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,EAAE;KACV;CACF,CAAC","file":"poptip.js","sourcesContent":["import type { IPoptipTheme } from '../../../../component/poptip/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const poptip: IPoptipTheme = {\n visible: true,\n position: 'auto',\n padding: 8,\n titleStyle: {\n fontSize: THEME_CONSTANTS.l5FontSize\n // lineHeight: THEME_CONSTANTS.l5LineHeight, // FIXME: vrender 支持行高字符串后取消注释\n },\n contentStyle: {\n fontSize: THEME_CONSTANTS.l5FontSize\n // lineHeight: THEME_CONSTANTS.l5LineHeight, // FIXME: vrender 支持行高字符串后取消注释\n },\n panel: {\n visible: true,\n size: 0,\n space: 12\n }\n};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.title = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.title = {
|
|
10
|
+
padding: {
|
|
11
|
+
top: 4,
|
|
12
|
+
bottom: 20
|
|
13
|
+
},
|
|
14
|
+
textStyle: {
|
|
15
|
+
fontSize: constants_1.THEME_CONSTANTS.l3FontSize,
|
|
16
|
+
lineHeight: constants_1.THEME_CONSTANTS.l3LineHeight
|
|
17
|
+
},
|
|
18
|
+
subtextStyle: {
|
|
19
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
20
|
+
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/title.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,KAAK,GAAgB;IAChC,OAAO,EAAE;QACP,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,EAAE;KACX;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,2BAAe,CAAC,UAAU;QACpC,UAAU,EAAE,2BAAe,CAAC,YAAmB;KAChD;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,2BAAe,CAAC,UAAU;QACpC,UAAU,EAAE,2BAAe,CAAC,YAAmB;KAChD;CACF,CAAC","file":"title.js","sourcesContent":["import type { ITitleTheme } from '../../../../component/title/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const title: ITitleTheme = {\n padding: {\n top: 4,\n bottom: 20\n },\n textStyle: {\n fontSize: THEME_CONSTANTS.l3FontSize,\n lineHeight: THEME_CONSTANTS.l3LineHeight as any // FIXME: vrender 支持行高字符串后删除 any\n },\n subtextStyle: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight as any // FIXME: vrender 支持行高字符串后删除 any\n }\n};\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.tooltip = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.tooltip = {
|
|
10
|
+
offset: {
|
|
11
|
+
x: 10,
|
|
12
|
+
y: 10
|
|
13
|
+
},
|
|
14
|
+
panel: {
|
|
15
|
+
padding: {
|
|
16
|
+
top: 10,
|
|
17
|
+
left: 10,
|
|
18
|
+
right: 10,
|
|
19
|
+
bottom: 10
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
spaceRow: 6,
|
|
23
|
+
titleLabel: {
|
|
24
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
25
|
+
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
26
|
+
spacing: 0
|
|
27
|
+
},
|
|
28
|
+
shape: {
|
|
29
|
+
size: 8,
|
|
30
|
+
spacing: 6
|
|
31
|
+
},
|
|
32
|
+
keyLabel: {
|
|
33
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
34
|
+
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
35
|
+
spacing: 26
|
|
36
|
+
},
|
|
37
|
+
valueLabel: {
|
|
38
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
39
|
+
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
40
|
+
spacing: 0
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/tooltip.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,OAAO,GAAkB;IACpC,MAAM,EAAE;QACN,CAAC,EAAE,EAAE;QACL,CAAC,EAAE,EAAE;KACN;IACD,KAAK,EAAE;QACL,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACX;KACF;IACD,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE;QACV,QAAQ,EAAE,2BAAe,CAAC,UAAU;QACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;QACxC,OAAO,EAAE,CAAC;KACX;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;KACX;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,2BAAe,CAAC,UAAU;QACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;QACxC,OAAO,EAAE,EAAE;KACZ;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,2BAAe,CAAC,UAAU;QACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;QACxC,OAAO,EAAE,CAAC;KACX;CACF,CAAC","file":"tooltip.js","sourcesContent":["import type { ITooltipTheme } from '../../../../component/tooltip/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const tooltip: ITooltipTheme = {\n offset: {\n x: 10,\n y: 10\n },\n panel: {\n padding: {\n top: 10,\n left: 10,\n right: 10,\n bottom: 10\n }\n },\n spaceRow: 6,\n titleLabel: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n spacing: 0\n },\n shape: {\n size: 8,\n spacing: 6\n },\n keyLabel: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n spacing: 26\n },\n valueLabel: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n spacing: 0\n }\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.totalLabel = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
|
|
9
|
+
exports.totalLabel = {
|
|
10
|
+
visible: !1,
|
|
11
|
+
offset: 5,
|
|
12
|
+
style: {
|
|
13
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=total-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/component/total-label.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,UAAU,GAAqB;IAC1C,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,CAAC;IACT,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;KAErC;CACF,CAAC","file":"total-label.js","sourcesContent":["import type { ITotalLabelTheme } from '../../../../component/label';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const totalLabel: ITotalLabelTheme = {\n visible: false,\n offset: 5,\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize\n // lineHeight: THEME_CONSTANTS.l4LineHeight,\n }\n};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.THEME_CONSTANTS = void 0, exports.THEME_CONSTANTS = {
|
|
6
|
+
defaultFontFamily: "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",
|
|
7
|
+
defaultFontSize: 12,
|
|
8
|
+
l1FontSize: 30,
|
|
9
|
+
l1LineHeight: "150%",
|
|
10
|
+
l2FontSize: 18,
|
|
11
|
+
l2LineHeight: "140%",
|
|
12
|
+
l3FontSize: 14,
|
|
13
|
+
l3LineHeight: "150%",
|
|
14
|
+
l4FontSize: 12,
|
|
15
|
+
l4LineHeight: "150%",
|
|
16
|
+
l5FontSize: 10,
|
|
17
|
+
l5LineHeight: "130%",
|
|
18
|
+
l6FontSize: 8,
|
|
19
|
+
l6LineHeight: "120%",
|
|
20
|
+
axisTickSize: 0,
|
|
21
|
+
areaOpacity: .2
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC9C,iBAAiB,EAEf,gKAAgK;IAClK,eAAe,EAAE,EAAE;IAEnB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,CAAC;IACb,YAAY,EAAE,MAAM;IAEpB,YAAY,EAAE,CAAC;IAEf,WAAW,EAAE,GAAG;CACjB,CAAC","file":"constants.js","sourcesContent":["import type { IThemeConstants } from '../../interface';\n\nexport const THEME_CONSTANTS: IThemeConstants = {\n defaultFontFamily:\n // eslint-disable-next-line max-len\n 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol',\n defaultFontSize: 12,\n\n l1FontSize: 30,\n l1LineHeight: '150%',\n\n l2FontSize: 18,\n l2LineHeight: '140%',\n\n l3FontSize: 14,\n l3LineHeight: '150%',\n\n l4FontSize: 12,\n l4LineHeight: '150%',\n\n l5FontSize: 10,\n l5LineHeight: '130%',\n\n l6FontSize: 8,\n l6LineHeight: '120%',\n\n axisTickSize: 0,\n\n areaOpacity: 0.2\n};\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.markByName = exports.markByType = void 0;
|
|
6
|
+
|
|
7
|
+
const constants_1 = require("./constants");
|
|
8
|
+
|
|
9
|
+
exports.markByType = {
|
|
10
|
+
text: {
|
|
11
|
+
style: {
|
|
12
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize,
|
|
13
|
+
lineHeight: constants_1.THEME_CONSTANTS.l4LineHeight,
|
|
14
|
+
fontWeight: "normal",
|
|
15
|
+
fillOpacity: 1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, exports.markByName = {
|
|
19
|
+
label: {
|
|
20
|
+
style: {
|
|
21
|
+
fontSize: constants_1.THEME_CONSTANTS.l4FontSize
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
line: {
|
|
25
|
+
style: {
|
|
26
|
+
lineWidth: 2
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
point: {
|
|
30
|
+
style: {
|
|
31
|
+
size: 8
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=mark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common-mobile/mark.ts"],"names":[],"mappings":";;;AACA,2CAA8C;AAEjC,QAAA,UAAU,GAA2B;IAChD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YAExC,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAC;AAEW,QAAA,UAAU,GAA2B;IAChD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;SAErC;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,CAAC;SACR;KACF;CACF,CAAC","file":"mark.js","sourcesContent":["import type { IGlobalMarkThemeByName, IGlobalMarkThemeByType } from '../../interface';\nimport { THEME_CONSTANTS } from './constants';\n\nexport const markByType: IGlobalMarkThemeByType = {\n text: {\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize,\n lineHeight: THEME_CONSTANTS.l4LineHeight,\n\n fontWeight: 'normal',\n fillOpacity: 1\n }\n }\n};\n\nexport const markByName: IGlobalMarkThemeByName = {\n label: {\n style: {\n fontSize: THEME_CONSTANTS.l4FontSize\n // lineHeight: THEME_CONSTANTS.l4LineHeight,\n }\n },\n line: {\n style: {\n lineWidth: 2\n }\n },\n point: {\n style: {\n size: 8\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.darkMobileTheme = void 0;
|
|
6
|
+
|
|
7
|
+
const component_1 = require("../common-mobile/component"), mark_1 = require("../common-mobile/mark"), color_scheme_1 = require("../dark/color-scheme");
|
|
8
|
+
|
|
9
|
+
exports.darkMobileTheme = {
|
|
10
|
+
name: "dark-mobile",
|
|
11
|
+
type: "dark",
|
|
12
|
+
padding: 12,
|
|
13
|
+
colorScheme: color_scheme_1.colorScheme,
|
|
14
|
+
component: component_1.component,
|
|
15
|
+
mark: mark_1.markByType,
|
|
16
|
+
markByName: mark_1.markByName
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/dark-mobile/index.ts"],"names":[],"mappings":";;;AAQA,0DAAuD;AACvD,gDAA+D;AAC/D,uDAAmD;AAEtC,QAAA,eAAe,GAAW;IACrC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,WAAW,EAAX,0BAAW;IACX,SAAS,EAAT,qBAAS;IACT,IAAI,EAAE,iBAAU;IAChB,UAAU,EAAV,iBAAU;CACX,CAAC","file":"index.js","sourcesContent":["/**\n * 主题的命名,不要使用类似 arco,default 等字段,应该要以主题的特征来,颜色/场景特征(light, dark)\n *\n * 1. 对除了 color 外的一些主题设置,应该要有专门的设计,**不要直接复制**\n * 2. 原则上来讲,默认值尽量都放主题中,但是也可根据情况自行判断\n * 3. 目前主题只到系列,不到系列的 mark,对于这个分界没有太清楚,后续根据需求再做开放\n */\nimport type { ITheme } from '../../interface';\nimport { component } from '../common-mobile/component';\nimport { markByName, markByType } from '../common-mobile/mark';\nimport { colorScheme } from '../dark/color-scheme';\n\nexport const darkMobileTheme: ITheme = {\n name: 'dark-mobile',\n type: 'dark',\n padding: 12,\n colorScheme,\n component,\n mark: markByType,\n markByName\n};\n"]}
|
|
@@ -20,11 +20,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
20
|
}), exports.defaultChartLevelTheme = exports.getMergedTheme = exports.themeExist = exports.removeTheme = exports.getTheme = exports.registerTheme = exports.hasThemeMerged = exports.themes = exports.defaultThemeName = exports.getDefaultThemeName = exports.builtinThemes = void 0,
|
|
21
21
|
__exportStar(require("./light"), exports), __exportStar(require("./common/legacy"), exports);
|
|
22
22
|
|
|
23
|
-
const vutils_1 = require("@visactor/vutils"), merge_theme_1 = require("../../util/spec/merge-theme"), util_1 = require("../color-scheme/util"), dark_1 = require("./dark"), light_1 = require("./light");
|
|
23
|
+
const vutils_1 = require("@visactor/vutils"), merge_theme_1 = require("../../util/spec/merge-theme"), util_1 = require("../color-scheme/util"), dark_1 = require("./dark"), light_1 = require("./light"), light_mobile_1 = require("./light-mobile"), dark_mobile_1 = require("./dark-mobile");
|
|
24
24
|
|
|
25
25
|
exports.builtinThemes = {
|
|
26
26
|
[light_1.lightTheme.name]: light_1.lightTheme,
|
|
27
|
-
[dark_1.darkTheme.name]: dark_1.darkTheme
|
|
27
|
+
[dark_1.darkTheme.name]: dark_1.darkTheme,
|
|
28
|
+
[light_mobile_1.lightMobileTheme.name]: light_mobile_1.lightMobileTheme,
|
|
29
|
+
[dark_mobile_1.darkMobileTheme.name]: dark_mobile_1.darkMobileTheme
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
const getDefaultThemeName = type => "dark" === type ? dark_1.darkTheme.name : light_1.lightTheme.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AAExB,kDAAgC;AAEhC,6CAA4C;AAE5C,6DAAyD;AACzD,+CAAsD;AAEtD,iCAAmC;AACnC,mCAAqC;
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AAExB,kDAAgC;AAEhC,6CAA4C;AAE5C,6DAAyD;AACzD,+CAAsD;AAEtD,iCAAmC;AACnC,mCAAqC;AACrC,iDAAkD;AAClD,+CAAgD;AAGnC,QAAA,aAAa,GAA2B;IACnD,CAAC,kBAAU,CAAC,IAAI,CAAC,EAAE,kBAAU;IAC7B,CAAC,gBAAS,CAAC,IAAI,CAAC,EAAE,gBAAS;IAC3B,CAAC,+BAAgB,CAAC,IAAI,CAAC,EAAE,+BAAgB;IACzC,CAAC,6BAAe,CAAC,IAAI,CAAC,EAAE,6BAAe;CACxC,CAAC;AAGK,MAAM,mBAAmB,GAAG,CAAC,IAAqB,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAU,CAAC,IAAI,CAAC,CAAC;AAAtG,QAAA,mBAAmB,uBAAmF;AACtG,QAAA,gBAAgB,GAAG,IAAA,2BAAmB,GAAE,CAAC;AAGzC,QAAA,MAAM,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,qBAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAExG,QAAA,cAAc,GAAyB,IAAI,GAAG,CACzD,MAAM,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,wBAAgB,CAAC,CAAC,CACvE,CAAC;AAGK,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,KAAsB,EAAE,EAAE;IACpE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IAED,cAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC,CAAC;IACxC,sBAAc,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC,CAAC;AAPW,QAAA,aAAa,iBAOxB;AAGK,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,IAAI,sBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QAEzD,IAAA,qBAAa,EAAC,IAAI,EAAE,cAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;KACvC;IACD,OAAO,cAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,cAAM,CAAC,GAAG,CAAC,wBAAgB,CAAC,CAAC;AAC1D,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB;AAGK,MAAM,WAAW,GAAG,CAAC,IAAY,EAAW,EAAE;IACnD,OAAO,cAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,sBAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC,CAAC;AAFW,QAAA,WAAW,eAEtB;AAGK,MAAM,UAAU,GAAG,CAAC,IAAS,EAAE,EAAE;IACtC,IAAI,CAAC,IAAA,iBAAQ,EAAC,IAAI,CAAC,EAAE;QACnB,OAAO,KAAK,CAAC;KACd;IACD,OAAO,cAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB;AAGK,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAU,EAAE;IAC/D,MAAM,aAAa,GAAG,IAAA,2BAAmB,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,IAAA,wBAAU,EAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,cAAc,kBAIzB;AAEW,QAAA,sBAAsB,GAAqB;IACtD,UAAU,EAAE,IAAA,qBAAc,EAAC,qBAAa,CAAC,wBAAgB,CAAC,CAAC,UAAU,EAAE,qBAAa,CAAC,wBAAgB,CAAC,CAAC,WAAW,CAAC;IACnH,UAAU,EAAE,qBAAa,CAAC,wBAAgB,CAAC,CAAC,UAAU;IACtD,WAAW,EAAE,qBAAa,CAAC,wBAAgB,CAAC,CAAC,WAAW;CACzD,CAAC","file":"index.js","sourcesContent":["export * from './light';\n/** 历史弃用主题 */\nexport * from './common/legacy';\n\nimport { isString } from '@visactor/vutils';\nimport type { IChartLevelTheme } from '../../core/interface';\nimport { mergeTheme } from '../../util/spec/merge-theme';\nimport { getActualColor } from '../color-scheme/util';\nimport type { ITheme } from '../interface';\nimport { darkTheme } from './dark';\nimport { lightTheme } from './light';\nimport { lightMobileTheme } from './light-mobile';\nimport { darkMobileTheme } from './dark-mobile';\n\n/** 声明内置主题 */\nexport const builtinThemes: Record<string, ITheme> = {\n [lightTheme.name]: lightTheme,\n [darkTheme.name]: darkTheme,\n [lightMobileTheme.name]: lightMobileTheme,\n [darkMobileTheme.name]: darkMobileTheme\n};\n\n/** 获取默认主题 */\nexport const getDefaultThemeName = (type?: ITheme['type']) => (type === 'dark' ? darkTheme.name : lightTheme.name);\nexport const defaultThemeName = getDefaultThemeName();\n\n/** 全局主题 map (包含用户新注册的主题) */\nexport const themes: Map<string, ITheme> = new Map(Object.keys(builtinThemes).map(key => [key, builtinThemes[key]]));\n/** 主题 map 中的元素是否 merge 过默认主题 (非默认主题的其他内置主题没有 merge 过默认主题) */\nexport const hasThemeMerged: Map<string, boolean> = new Map(\n Object.keys(builtinThemes).map(key => [key, key === defaultThemeName])\n);\n\n/** 注册主题 */\nexport const registerTheme = (name: string, theme: Partial<ITheme>) => {\n if (!name) {\n return;\n }\n // 所有主题基于默认主题扩展,保证基础值\n themes.set(name, getMergedTheme(theme));\n hasThemeMerged.set(name, true);\n};\n\n/** 获取注册过的主题 */\nexport const getTheme = (name: string) => {\n if (hasThemeMerged.has(name) && !hasThemeMerged.get(name)) {\n // 重新 merge 默认主题\n registerTheme(name, themes.get(name));\n }\n return themes.get(name) || themes.get(defaultThemeName);\n};\n\n/** 删除主题 */\nexport const removeTheme = (name: string): boolean => {\n return themes.delete(name) && hasThemeMerged.delete(name);\n};\n\n/** 主题是否存在 */\nexport const themeExist = (name: any) => {\n if (!isString(name)) {\n return false;\n }\n return themes.has(name);\n};\n\n/** 使新主题基于默认主题扩展,保证基础值 */\nexport const getMergedTheme = (theme: Partial<ITheme>): ITheme => {\n const baseThemeName = getDefaultThemeName(theme.type);\n const baseTheme = getTheme(baseThemeName);\n return mergeTheme({}, baseTheme, theme);\n};\n\nexport const defaultChartLevelTheme: IChartLevelTheme = {\n background: getActualColor(builtinThemes[defaultThemeName].background, builtinThemes[defaultThemeName].colorScheme),\n fontFamily: builtinThemes[defaultThemeName].fontFamily,\n colorScheme: builtinThemes[defaultThemeName].colorScheme\n};\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.lightMobileTheme = void 0;
|
|
6
|
+
|
|
7
|
+
const component_1 = require("../common-mobile/component"), mark_1 = require("../common-mobile/mark"), color_scheme_1 = require("../light/color-scheme");
|
|
8
|
+
|
|
9
|
+
exports.lightMobileTheme = {
|
|
10
|
+
name: "light-mobile",
|
|
11
|
+
type: "light",
|
|
12
|
+
padding: 12,
|
|
13
|
+
colorScheme: color_scheme_1.colorScheme,
|
|
14
|
+
component: component_1.component,
|
|
15
|
+
mark: mark_1.markByType,
|
|
16
|
+
markByName: mark_1.markByName
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/light-mobile/index.ts"],"names":[],"mappings":";;;AAQA,0DAAuD;AACvD,gDAA+D;AAC/D,wDAAoD;AAEvC,QAAA,gBAAgB,GAAW;IACtC,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,WAAW,EAAX,0BAAW;IACX,SAAS,EAAT,qBAAS;IACT,IAAI,EAAE,iBAAU;IAChB,UAAU,EAAV,iBAAU;CACX,CAAC","file":"index.js","sourcesContent":["/**\n * 主题的命名,不要使用类似 arco,default 等字段,应该要以主题的特征来,颜色/场景特征(light, dark)\n *\n * 1. 对除了 color 外的一些主题设置,应该要有专门的设计,**不要直接复制**\n * 2. 原则上来讲,默认值尽量都放主题中,但是也可根据情况自行判断\n * 3. 目前主题只到系列,不到系列的 mark,对于这个分界没有太清楚,后续根据需求再做开放\n */\nimport type { ITheme } from '../../interface';\nimport { component } from '../common-mobile/component';\nimport { markByName, markByType } from '../common-mobile/mark';\nimport { colorScheme } from '../light/color-scheme';\n\nexport const lightMobileTheme: ITheme = {\n name: 'light-mobile',\n type: 'light',\n padding: 12,\n colorScheme,\n component,\n mark: markByType,\n markByName\n};\n"]}
|
package/cjs/theme/interface.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { ILayoutPaddingSpec } from '../model/interface';
|
|
2
1
|
import type { ISeriesTheme } from '../series/interface';
|
|
3
2
|
import type { IMarkTheme } from '../typings/spec';
|
|
4
|
-
import type { IArcMarkSpec, IAreaMarkSpec, ILineMarkSpec, IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec, IPathMarkSpec } from '../typings';
|
|
3
|
+
import type { IArcMarkSpec, IAreaMarkSpec, ILineMarkSpec, IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec, IPathMarkSpec, ILayoutPaddingSpec } from '../typings';
|
|
5
4
|
import type { MarkTypeEnum } from '../mark/interface';
|
|
6
5
|
import type { IColorKey, IThemeColorScheme } from './color-scheme/interface';
|
|
7
6
|
import type { IGradientColor } from '@visactor/vrender-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../src/theme/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { ISeriesTheme } from '../series/interface';\nimport type { IMarkTheme } from '../typings/spec';\nimport type {\n IArcMarkSpec,\n IAreaMarkSpec,\n ILineMarkSpec,\n IRectMarkSpec,\n ISymbolMarkSpec,\n ITextMarkSpec,\n IPathMarkSpec,\n ILayoutPaddingSpec\n} from '../typings';\nimport type { MarkTypeEnum } from '../mark/interface';\nimport type { IColorKey, IThemeColorScheme } from './color-scheme/interface';\nimport type { IGradientColor } from '@visactor/vrender-core';\nimport type { IComponentTheme } from '../component/interface';\n\nexport interface ITheme {\n /**\n * 第 1 种配置:主题信息\n */\n /** 主题命名 */\n name?: string;\n /** 主题描述 */\n description?: string;\n /**\n * 主题类别:亮色或者暗色\n * 该配置用于指定该主题需要 merge 的是内置的亮色主题还是暗色主题\n */\n type?: 'light' | 'dark';\n\n /**\n * 第 2 种配置:图表层级的样式属性\n */\n /** 图表背景色 */\n background?: string | IGradientColor | IColorKey;\n /** 图表内边距 */\n padding?: ILayoutPaddingSpec;\n /** 图表字体配置 */\n fontFamily?: string;\n\n /**\n * 第 3 种配置:色板\n */\n /** 全局色板 */\n colorScheme?: IThemeColorScheme;\n\n /**\n * 第 4 种配置:全局 mark 属性配置\n */\n /** 全局 mark 样式属性,按 mark 类别索引 */\n mark?: IGlobalMarkThemeByType;\n /** 全局 mark 样式属性,按 mark 名称索引,优先级更高 */\n markByName?: IGlobalMarkThemeByName;\n\n /**\n * 第 5 种配置:系列属性配置\n */\n /** 系列样式属性 */\n series?: ISeriesTheme;\n /**\n * 自动关闭动画的阀值,对应的是单系列data的长度\n */\n animationThreshold?: number;\n\n /**\n * 第 6 种配置:组件属性配置\n */\n /** 组件样式属性 */\n component?: IComponentTheme;\n}\n\nexport interface IGlobalMarkThemeByType {\n [MarkTypeEnum.line]?: Partial<IMarkTheme<ILineMarkSpec>>;\n [MarkTypeEnum.symbol]?: Partial<IMarkTheme<ISymbolMarkSpec>>;\n [MarkTypeEnum.area]?: Partial<IMarkTheme<IAreaMarkSpec>>;\n [MarkTypeEnum.rect]?: Partial<IMarkTheme<IRectMarkSpec>>;\n [MarkTypeEnum.arc]?: Partial<IMarkTheme<IArcMarkSpec>>;\n [MarkTypeEnum.text]?: Partial<IMarkTheme<ITextMarkSpec>>;\n [MarkTypeEnum.path]?: Partial<IMarkTheme<IPathMarkSpec>>;\n}\n\nexport interface IGlobalMarkThemeByName {\n /** used in lineSeries, areaSeries, radarSeries, etc. */\n line?: Partial<IMarkTheme<ILineMarkSpec>>;\n /** used in lineSeries, areaSeries, radarSeries, scatterSeries etc. */\n point?: Partial<IMarkTheme<ISymbolMarkSpec>>;\n /** used in lineSeries, areaSeries, radarSeries, etc. */\n area?: Partial<IMarkTheme<IAreaMarkSpec>>;\n /** used in barSeries, rangeColumnSeries etc. */\n bar?: Partial<IMarkTheme<IRectMarkSpec>>;\n /** used in many series */\n label?: Partial<IMarkTheme<ITextMarkSpec>>;\n\n [markName: string]: Partial<IMarkTheme<any>>;\n}\n\nexport interface IThemeConstants {\n /** 默认字体 */\n defaultFontFamily: string;\n /** 默认字号 */\n defaultFontSize: number;\n\n /** 1级字阶字号,用于:环形图中间数值 / 展示型数值 */\n l1FontSize: number;\n /** 1级字阶行高 */\n l1LineHeight: number | string;\n\n /** 2级字阶字号,用于:展示型文字 / 指标卡数值 */\n l2FontSize: number;\n /** 2级字阶行高 */\n l2LineHeight: number | string;\n\n /** 3级字阶字号,用于:图表标题 */\n l3FontSize: number;\n /** 3级字阶行高 */\n l3LineHeight: number | string;\n\n /** 4级字阶字号,用于:数据标签、tooltip */\n l4FontSize: number;\n /** 4级字阶行高 */\n l4LineHeight: number | string;\n\n /** 5级字阶字号,用于:坐标轴标题、轴标签、图例文字 */\n l5FontSize: number;\n /** 5级字阶行高 */\n l5LineHeight: number | string;\n\n /** 6级字阶字号,用于:地图标签 */\n l6FontSize: number;\n /** 6级字阶行高 */\n l6LineHeight: number | string;\n\n /** 轴 tick 长度 */\n axisTickSize: number;\n\n /** 面积图元透明度 */\n areaOpacity: number;\n}\n"]}
|
package/cjs/typings/index.d.ts
CHANGED