@antv/g2 5.0.0-rc.1 → 5.0.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/README.en-US.md +8 -5
- package/README.md +5 -6
- package/dist/g2-lite.min.js +4 -4
- package/dist/g2.min.js +4 -4
- package/esm/animation/fadeIn.js +1 -1
- package/esm/animation/fadeIn.js.map +1 -1
- package/esm/animation/fadeOut.js +1 -1
- package/esm/animation/fadeOut.js.map +1 -1
- package/esm/animation/morphing.js +1 -1
- package/esm/animation/morphing.js.map +1 -1
- package/esm/animation/scaleInX.js +1 -1
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +1 -1
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/scaleOutX.js +1 -1
- package/esm/animation/scaleOutX.js.map +1 -1
- package/esm/animation/scaleOutY.js +1 -1
- package/esm/animation/scaleOutY.js.map +1 -1
- package/esm/animation/waveIn.js +2 -2
- package/esm/animation/waveIn.js.map +1 -1
- package/esm/animation/zoomIn.js +1 -1
- package/esm/animation/zoomIn.js.map +1 -1
- package/esm/animation/zoomOut.js +1 -1
- package/esm/animation/zoomOut.js.map +1 -1
- package/esm/api/chart.d.ts +5 -2
- package/esm/api/chart.js +28 -20
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/base.d.ts +8 -2
- package/esm/api/composition/base.js +29 -2
- package/esm/api/composition/base.js.map +1 -1
- package/esm/component/axis.js +46 -30
- package/esm/component/axis.js.map +1 -1
- package/esm/component/axisRadar.js +4 -3
- package/esm/component/axisRadar.js.map +1 -1
- package/esm/component/axisX.js.map +1 -1
- package/esm/component/legendCategory.js +63 -23
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +10 -8
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/component/legendContinuousBlockSize.js +1 -1
- package/esm/component/legendContinuousBlockSize.js.map +1 -1
- package/esm/component/legendContinuousSize.js +1 -1
- package/esm/component/legendContinuousSize.js.map +1 -1
- package/esm/component/scrollbar.d.ts +1 -1
- package/esm/component/scrollbar.js +4 -4
- package/esm/component/scrollbar.js.map +1 -1
- package/esm/component/scrollbarX.js +1 -1
- package/esm/component/scrollbarX.js.map +1 -1
- package/esm/component/scrollbarY.js +1 -1
- package/esm/component/scrollbarY.js.map +1 -1
- package/esm/component/slider.d.ts +1 -1
- package/esm/component/slider.js +4 -4
- package/esm/component/slider.js.map +1 -1
- package/esm/component/sliderX.js +1 -1
- package/esm/component/sliderX.js.map +1 -1
- package/esm/component/sliderY.js +1 -1
- package/esm/component/sliderY.js.map +1 -1
- package/esm/component/title.js +13 -2
- package/esm/component/title.js.map +1 -1
- package/esm/component/utils.d.ts +2 -1
- package/esm/component/utils.js +27 -3
- package/esm/component/utils.js.map +1 -1
- package/esm/coordinate/fisheye.js +1 -1
- package/esm/coordinate/fisheye.js.map +1 -1
- package/esm/geo/geoView.js +1 -1
- package/esm/geo/geoView.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/interaction/brushFilter.js +1 -1
- package/esm/interaction/brushFilter.js.map +1 -1
- package/esm/interaction/brushHighlight.js +6 -3
- package/esm/interaction/brushHighlight.js.map +1 -1
- package/esm/interaction/elementHighlight.js +1 -1
- package/esm/interaction/elementHighlight.js.map +1 -1
- package/esm/interaction/event.js +20 -20
- package/esm/interaction/event.js.map +1 -1
- package/esm/interaction/fisheye.js +1 -1
- package/esm/interaction/fisheye.js.map +1 -1
- package/esm/interaction/legendFilter.d.ts +1 -4
- package/esm/interaction/legendFilter.js +52 -74
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/interaction/sliderFilter.js +6 -6
- package/esm/interaction/sliderFilter.js.map +1 -1
- package/esm/interaction/tooltip.d.ts +2 -2
- package/esm/interaction/tooltip.js +40 -18
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/interaction/utils.js +7 -5
- package/esm/interaction/utils.js.map +1 -1
- package/esm/label-transform/overflowHide.js +3 -2
- package/esm/label-transform/overflowHide.js.map +1 -1
- package/esm/label-transform/overlapHide.js +3 -2
- package/esm/label-transform/overlapHide.js.map +1 -1
- package/esm/mark/boxplot.js +2 -2
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/mark/gauge.js +2 -2
- package/esm/mark/gauge.js.map +1 -1
- package/esm/mark/sankey.js +2 -2
- package/esm/mark/sankey.js.map +1 -1
- package/esm/mark/utils.d.ts +2 -2
- package/esm/mark/utils.js +2 -2
- package/esm/mark/utils.js.map +1 -1
- package/esm/runtime/component.d.ts +3 -3
- package/esm/runtime/component.js +22 -7
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/plot.js +58 -24
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.d.ts +2 -2
- package/esm/runtime/render.js +33 -10
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/types/common.d.ts +12 -9
- package/esm/runtime/types/component.d.ts +13 -4
- package/esm/shape/area/area.js +1 -1
- package/esm/shape/area/area.js.map +1 -1
- package/esm/shape/area/curve.js +2 -1
- package/esm/shape/area/curve.js.map +1 -1
- package/esm/shape/area/hv.js +1 -1
- package/esm/shape/area/hv.js.map +1 -1
- package/esm/shape/area/hvh.js +1 -1
- package/esm/shape/area/hvh.js.map +1 -1
- package/esm/shape/area/smooth.js +1 -1
- package/esm/shape/area/smooth.js.map +1 -1
- package/esm/shape/area/vh.js +1 -1
- package/esm/shape/area/vh.js.map +1 -1
- package/esm/shape/box/box.js +1 -0
- package/esm/shape/box/box.js.map +1 -1
- package/esm/shape/connector/connector.d.ts +2 -2
- package/esm/shape/connector/connector.js +3 -2
- package/esm/shape/connector/connector.js.map +1 -1
- package/esm/shape/interval/color.js +18 -9
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/shape/interval/funnel.js +1 -1
- package/esm/shape/interval/funnel.js.map +1 -1
- package/esm/shape/interval/hollow.js +1 -1
- package/esm/shape/interval/hollow.js.map +1 -1
- package/esm/shape/interval/pyramid.js +1 -1
- package/esm/shape/interval/pyramid.js.map +1 -1
- package/esm/shape/interval/rect.js +1 -1
- package/esm/shape/interval/rect.js.map +1 -1
- package/esm/shape/label/label.js +4 -2
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/label/position/area.js +1 -1
- package/esm/shape/label/position/area.js.map +1 -1
- package/esm/shape/line/curve.js +3 -2
- package/esm/shape/line/curve.js.map +1 -1
- package/esm/shape/line/hv.js +1 -1
- package/esm/shape/line/hv.js.map +1 -1
- package/esm/shape/line/hvh.js +1 -1
- package/esm/shape/line/hvh.js.map +1 -1
- package/esm/shape/line/line.js +1 -1
- package/esm/shape/line/line.js.map +1 -1
- package/esm/shape/line/smooth.js +1 -1
- package/esm/shape/line/smooth.js.map +1 -1
- package/esm/shape/line/vh.js +1 -1
- package/esm/shape/line/vh.js.map +1 -1
- package/esm/shape/lineXY/line.js +1 -0
- package/esm/shape/lineXY/line.js.map +1 -1
- package/esm/shape/link/arc.js +1 -0
- package/esm/shape/link/arc.js.map +1 -1
- package/esm/shape/link/link.js +1 -0
- package/esm/shape/link/link.js.map +1 -1
- package/esm/shape/link/smooth.js +1 -0
- package/esm/shape/link/smooth.js.map +1 -1
- package/esm/shape/link/vhv.js +1 -0
- package/esm/shape/link/vhv.js.map +1 -1
- package/esm/shape/path/hollow.js +1 -0
- package/esm/shape/path/hollow.js.map +1 -1
- package/esm/shape/path/path.js +1 -0
- package/esm/shape/path/path.js.map +1 -1
- package/esm/shape/point/bowtie.js +1 -1
- package/esm/shape/point/bowtie.js.map +1 -1
- package/esm/shape/point/color.js +2 -2
- package/esm/shape/point/color.js.map +1 -1
- package/esm/shape/point/cross.js +1 -1
- package/esm/shape/point/cross.js.map +1 -1
- package/esm/shape/point/diamond.js +1 -1
- package/esm/shape/point/diamond.js.map +1 -1
- package/esm/shape/point/hexagon.js +1 -1
- package/esm/shape/point/hexagon.js.map +1 -1
- package/esm/shape/point/hollow.js +1 -1
- package/esm/shape/point/hollow.js.map +1 -1
- package/esm/shape/point/hollowBowtie.js +1 -1
- package/esm/shape/point/hollowBowtie.js.map +1 -1
- package/esm/shape/point/hollowDiamond.js +1 -1
- package/esm/shape/point/hollowDiamond.js.map +1 -1
- package/esm/shape/point/hollowHexagon.js +1 -1
- package/esm/shape/point/hollowHexagon.js.map +1 -1
- package/esm/shape/point/hollowSquare.js +1 -1
- package/esm/shape/point/hollowSquare.js.map +1 -1
- package/esm/shape/point/hollowTriangle.js +1 -1
- package/esm/shape/point/hollowTriangle.js.map +1 -1
- package/esm/shape/point/hollowTriangleDown.js +1 -1
- package/esm/shape/point/hollowTriangleDown.js.map +1 -1
- package/esm/shape/point/hyphen.js +1 -1
- package/esm/shape/point/hyphen.js.map +1 -1
- package/esm/shape/point/line.js +1 -1
- package/esm/shape/point/line.js.map +1 -1
- package/esm/shape/point/plus.js +1 -1
- package/esm/shape/point/plus.js.map +1 -1
- package/esm/shape/point/point.js +1 -1
- package/esm/shape/point/point.js.map +1 -1
- package/esm/shape/point/square.js +1 -1
- package/esm/shape/point/square.js.map +1 -1
- package/esm/shape/point/tick.js +1 -1
- package/esm/shape/point/tick.js.map +1 -1
- package/esm/shape/point/triangle.js +1 -1
- package/esm/shape/point/triangle.js.map +1 -1
- package/esm/shape/point/triangleDown.js +1 -1
- package/esm/shape/point/triangleDown.js.map +1 -1
- package/esm/shape/polygon/polygon.js +1 -0
- package/esm/shape/polygon/polygon.js.map +1 -1
- package/esm/shape/polygon/ribbon.js +1 -0
- package/esm/shape/polygon/ribbon.js.map +1 -1
- package/esm/shape/shape/shape.js +1 -0
- package/esm/shape/shape/shape.js.map +1 -1
- package/esm/shape/text/advance.js +3 -1
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/shape/text/badge.js +1 -0
- package/esm/shape/text/badge.js.map +1 -1
- package/esm/shape/text/text.js +2 -1
- package/esm/shape/text/text.js.map +1 -1
- package/esm/shape/utils.d.ts +1 -16
- package/esm/shape/utils.js +2 -2
- package/esm/shape/utils.js.map +1 -1
- package/esm/shape/vector/vector.js +1 -0
- package/esm/shape/vector/vector.js.map +1 -1
- package/esm/spec/component.d.ts +10 -9
- package/esm/spec/coordinateTransform.d.ts +1 -1
- package/esm/spec/interaction.d.ts +2 -0
- package/esm/spec/scale.d.ts +3 -2
- package/esm/spec/theme.d.ts +8 -2
- package/esm/stdlib/index.js +2 -2
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/academy.js +77 -78
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/classic.d.ts +6 -0
- package/esm/theme/{light.js → classic.js} +80 -90
- package/esm/theme/classic.js.map +1 -0
- package/esm/theme/classicDark.d.ts +6 -0
- package/esm/theme/{dark.js → classicDark.js} +78 -87
- package/esm/theme/classicDark.js.map +1 -0
- package/esm/theme/index.d.ts +2 -2
- package/esm/theme/index.js +2 -2
- package/esm/theme/index.js.map +1 -1
- package/esm/transform/filter.js +4 -1
- package/esm/transform/filter.js.map +1 -1
- package/esm/utils/event.d.ts +33 -14
- package/esm/utils/event.js +43 -16
- package/esm/utils/event.js.map +1 -1
- package/esm/utils/helper.js +2 -1
- package/esm/utils/helper.js.map +1 -1
- package/esm/utils/marker.d.ts +10 -0
- package/esm/utils/marker.js +250 -0
- package/esm/utils/marker.js.map +1 -0
- package/esm/utils/style.d.ts +5 -0
- package/esm/utils/style.js +23 -0
- package/esm/utils/style.js.map +1 -0
- package/lib/animation/fadeIn.js +1 -1
- package/lib/animation/fadeIn.js.map +1 -1
- package/lib/animation/fadeOut.js +1 -1
- package/lib/animation/fadeOut.js.map +1 -1
- package/lib/animation/morphing.js +1 -1
- package/lib/animation/morphing.js.map +1 -1
- package/lib/animation/scaleInX.js +1 -1
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +1 -1
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/scaleOutX.js +1 -1
- package/lib/animation/scaleOutX.js.map +1 -1
- package/lib/animation/scaleOutY.js +1 -1
- package/lib/animation/scaleOutY.js.map +1 -1
- package/lib/animation/waveIn.js +2 -2
- package/lib/animation/waveIn.js.map +1 -1
- package/lib/animation/zoomIn.js +1 -1
- package/lib/animation/zoomIn.js.map +1 -1
- package/lib/animation/zoomOut.js +1 -1
- package/lib/animation/zoomOut.js.map +1 -1
- package/lib/api/chart.d.ts +5 -2
- package/lib/api/chart.js +28 -20
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/base.d.ts +8 -2
- package/lib/api/composition/base.js +29 -2
- package/lib/api/composition/base.js.map +1 -1
- package/lib/component/axis.js +45 -29
- package/lib/component/axis.js.map +1 -1
- package/lib/component/axisRadar.js +4 -3
- package/lib/component/axisRadar.js.map +1 -1
- package/lib/component/axisX.js.map +1 -1
- package/lib/component/legendCategory.js +62 -22
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +9 -7
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/component/legendContinuousBlockSize.js +1 -1
- package/lib/component/legendContinuousBlockSize.js.map +1 -1
- package/lib/component/legendContinuousSize.js +1 -1
- package/lib/component/legendContinuousSize.js.map +1 -1
- package/lib/component/scrollbar.d.ts +1 -1
- package/lib/component/scrollbar.js +4 -4
- package/lib/component/scrollbar.js.map +1 -1
- package/lib/component/scrollbarX.js +1 -1
- package/lib/component/scrollbarX.js.map +1 -1
- package/lib/component/scrollbarY.js +1 -1
- package/lib/component/scrollbarY.js.map +1 -1
- package/lib/component/slider.d.ts +1 -1
- package/lib/component/slider.js +4 -4
- package/lib/component/slider.js.map +1 -1
- package/lib/component/sliderX.js +1 -1
- package/lib/component/sliderX.js.map +1 -1
- package/lib/component/sliderY.js +1 -1
- package/lib/component/sliderY.js.map +1 -1
- package/lib/component/title.js +13 -2
- package/lib/component/title.js.map +1 -1
- package/lib/component/utils.d.ts +2 -1
- package/lib/component/utils.js +28 -3
- package/lib/component/utils.js.map +1 -1
- package/lib/coordinate/fisheye.js +1 -1
- package/lib/coordinate/fisheye.js.map +1 -1
- package/lib/geo/geoView.js +1 -1
- package/lib/geo/geoView.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/interaction/brushFilter.js +1 -1
- package/lib/interaction/brushFilter.js.map +1 -1
- package/lib/interaction/brushHighlight.js +6 -3
- package/lib/interaction/brushHighlight.js.map +1 -1
- package/lib/interaction/event.js +20 -20
- package/lib/interaction/event.js.map +1 -1
- package/lib/interaction/fisheye.js +1 -1
- package/lib/interaction/fisheye.js.map +1 -1
- package/lib/interaction/legendFilter.d.ts +1 -4
- package/lib/interaction/legendFilter.js +52 -74
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/interaction/sliderFilter.js +6 -6
- package/lib/interaction/sliderFilter.js.map +1 -1
- package/lib/interaction/tooltip.d.ts +2 -2
- package/lib/interaction/tooltip.js +40 -18
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/interaction/utils.js +7 -5
- package/lib/interaction/utils.js.map +1 -1
- package/lib/label-transform/overflowHide.js +3 -2
- package/lib/label-transform/overflowHide.js.map +1 -1
- package/lib/label-transform/overlapHide.js +3 -2
- package/lib/label-transform/overlapHide.js.map +1 -1
- package/lib/mark/boxplot.js +2 -2
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/mark/gauge.js +2 -2
- package/lib/mark/gauge.js.map +1 -1
- package/lib/mark/sankey.js +2 -2
- package/lib/mark/sankey.js.map +1 -1
- package/lib/mark/utils.d.ts +2 -2
- package/lib/mark/utils.js +2 -2
- package/lib/mark/utils.js.map +1 -1
- package/lib/runtime/component.d.ts +3 -3
- package/lib/runtime/component.js +22 -7
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/plot.js +57 -23
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.d.ts +2 -2
- package/lib/runtime/render.js +32 -9
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/types/common.d.ts +12 -9
- package/lib/runtime/types/component.d.ts +13 -4
- package/lib/shape/area/area.js +1 -1
- package/lib/shape/area/area.js.map +1 -1
- package/lib/shape/area/curve.js +2 -1
- package/lib/shape/area/curve.js.map +1 -1
- package/lib/shape/area/hv.js +1 -1
- package/lib/shape/area/hv.js.map +1 -1
- package/lib/shape/area/hvh.js +1 -1
- package/lib/shape/area/hvh.js.map +1 -1
- package/lib/shape/area/smooth.js +1 -1
- package/lib/shape/area/smooth.js.map +1 -1
- package/lib/shape/area/vh.js +1 -1
- package/lib/shape/area/vh.js.map +1 -1
- package/lib/shape/box/box.js +1 -0
- package/lib/shape/box/box.js.map +1 -1
- package/lib/shape/connector/connector.d.ts +2 -2
- package/lib/shape/connector/connector.js +3 -2
- package/lib/shape/connector/connector.js.map +1 -1
- package/lib/shape/interval/color.js +18 -9
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/shape/interval/funnel.js +1 -1
- package/lib/shape/interval/funnel.js.map +1 -1
- package/lib/shape/interval/hollow.js +1 -1
- package/lib/shape/interval/hollow.js.map +1 -1
- package/lib/shape/interval/pyramid.js +1 -1
- package/lib/shape/interval/pyramid.js.map +1 -1
- package/lib/shape/interval/rect.js +1 -1
- package/lib/shape/interval/rect.js.map +1 -1
- package/lib/shape/label/label.js +4 -2
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/label/position/area.js +1 -1
- package/lib/shape/label/position/area.js.map +1 -1
- package/lib/shape/line/curve.js +3 -2
- package/lib/shape/line/curve.js.map +1 -1
- package/lib/shape/line/hv.js +1 -1
- package/lib/shape/line/hv.js.map +1 -1
- package/lib/shape/line/hvh.js +1 -1
- package/lib/shape/line/hvh.js.map +1 -1
- package/lib/shape/line/line.js +1 -1
- package/lib/shape/line/line.js.map +1 -1
- package/lib/shape/line/smooth.js +1 -1
- package/lib/shape/line/smooth.js.map +1 -1
- package/lib/shape/line/vh.js +1 -1
- package/lib/shape/line/vh.js.map +1 -1
- package/lib/shape/lineXY/line.js +1 -0
- package/lib/shape/lineXY/line.js.map +1 -1
- package/lib/shape/link/arc.js +1 -0
- package/lib/shape/link/arc.js.map +1 -1
- package/lib/shape/link/link.js +1 -0
- package/lib/shape/link/link.js.map +1 -1
- package/lib/shape/link/smooth.js +1 -0
- package/lib/shape/link/smooth.js.map +1 -1
- package/lib/shape/link/vhv.js +1 -0
- package/lib/shape/link/vhv.js.map +1 -1
- package/lib/shape/path/hollow.js +1 -0
- package/lib/shape/path/hollow.js.map +1 -1
- package/lib/shape/path/path.js +1 -0
- package/lib/shape/path/path.js.map +1 -1
- package/lib/shape/point/bowtie.js +1 -1
- package/lib/shape/point/bowtie.js.map +1 -1
- package/lib/shape/point/color.js +2 -25
- package/lib/shape/point/color.js.map +1 -1
- package/lib/shape/point/cross.js +1 -1
- package/lib/shape/point/cross.js.map +1 -1
- package/lib/shape/point/diamond.js +1 -1
- package/lib/shape/point/diamond.js.map +1 -1
- package/lib/shape/point/hexagon.js +1 -1
- package/lib/shape/point/hexagon.js.map +1 -1
- package/lib/shape/point/hollow.js +1 -1
- package/lib/shape/point/hollow.js.map +1 -1
- package/lib/shape/point/hollowBowtie.js +1 -1
- package/lib/shape/point/hollowBowtie.js.map +1 -1
- package/lib/shape/point/hollowDiamond.js +1 -1
- package/lib/shape/point/hollowDiamond.js.map +1 -1
- package/lib/shape/point/hollowHexagon.js +1 -1
- package/lib/shape/point/hollowHexagon.js.map +1 -1
- package/lib/shape/point/hollowSquare.js +1 -1
- package/lib/shape/point/hollowSquare.js.map +1 -1
- package/lib/shape/point/hollowTriangle.js +1 -1
- package/lib/shape/point/hollowTriangle.js.map +1 -1
- package/lib/shape/point/hollowTriangleDown.js +1 -1
- package/lib/shape/point/hollowTriangleDown.js.map +1 -1
- package/lib/shape/point/hyphen.js +1 -1
- package/lib/shape/point/hyphen.js.map +1 -1
- package/lib/shape/point/line.js +1 -1
- package/lib/shape/point/line.js.map +1 -1
- package/lib/shape/point/plus.js +1 -1
- package/lib/shape/point/plus.js.map +1 -1
- package/lib/shape/point/point.js +1 -1
- package/lib/shape/point/point.js.map +1 -1
- package/lib/shape/point/square.js +1 -1
- package/lib/shape/point/square.js.map +1 -1
- package/lib/shape/point/tick.js +1 -1
- package/lib/shape/point/tick.js.map +1 -1
- package/lib/shape/point/triangle.js +1 -1
- package/lib/shape/point/triangle.js.map +1 -1
- package/lib/shape/point/triangleDown.js +1 -1
- package/lib/shape/point/triangleDown.js.map +1 -1
- package/lib/shape/polygon/polygon.js +1 -0
- package/lib/shape/polygon/polygon.js.map +1 -1
- package/lib/shape/polygon/ribbon.js +1 -0
- package/lib/shape/polygon/ribbon.js.map +1 -1
- package/lib/shape/shape/shape.js +1 -0
- package/lib/shape/shape/shape.js.map +1 -1
- package/lib/shape/text/advance.js +3 -1
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/shape/text/badge.js +1 -0
- package/lib/shape/text/badge.js.map +1 -1
- package/lib/shape/text/text.js +2 -1
- package/lib/shape/text/text.js.map +1 -1
- package/lib/shape/utils.d.ts +1 -16
- package/lib/shape/utils.js +2 -2
- package/lib/shape/utils.js.map +1 -1
- package/lib/shape/vector/vector.js +1 -0
- package/lib/shape/vector/vector.js.map +1 -1
- package/lib/spec/component.d.ts +10 -9
- package/lib/spec/coordinateTransform.d.ts +1 -1
- package/lib/spec/interaction.d.ts +2 -0
- package/lib/spec/scale.d.ts +3 -2
- package/lib/spec/theme.d.ts +8 -2
- package/lib/stdlib/index.js +1 -1
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/academy.js +77 -78
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/classic.d.ts +6 -0
- package/lib/theme/{light.js → classic.js} +82 -92
- package/lib/theme/classic.js.map +1 -0
- package/lib/theme/classicDark.d.ts +6 -0
- package/lib/theme/{dark.js → classicDark.js} +80 -89
- package/lib/theme/classicDark.js.map +1 -0
- package/lib/theme/index.d.ts +2 -2
- package/lib/theme/index.js +5 -5
- package/lib/theme/index.js.map +1 -1
- package/lib/transform/filter.js +4 -1
- package/lib/transform/filter.js.map +1 -1
- package/lib/utils/event.d.ts +33 -14
- package/lib/utils/event.js +44 -17
- package/lib/utils/event.js.map +1 -1
- package/lib/utils/helper.js +2 -1
- package/lib/utils/helper.js.map +1 -1
- package/lib/utils/marker.d.ts +10 -0
- package/lib/utils/marker.js +256 -0
- package/lib/utils/marker.js.map +1 -0
- package/lib/utils/style.d.ts +5 -0
- package/lib/utils/style.js +30 -0
- package/lib/utils/style.js.map +1 -0
- package/package.json +3 -3
- package/src/.DS_Store +0 -0
- package/src/animation/fadeIn.ts +1 -1
- package/src/animation/fadeOut.ts +1 -1
- package/src/animation/morphing.ts +1 -1
- package/src/animation/scaleInX.ts +4 -4
- package/src/animation/scaleInY.ts +4 -4
- package/src/animation/scaleOutX.ts +4 -4
- package/src/animation/scaleOutY.ts +4 -4
- package/src/animation/waveIn.ts +4 -4
- package/src/animation/zoomIn.ts +4 -4
- package/src/animation/zoomOut.ts +4 -4
- package/src/api/chart.ts +30 -23
- package/src/api/composition/base.ts +30 -4
- package/src/component/axis.ts +83 -66
- package/src/component/axisRadar.ts +4 -3
- package/src/component/axisX.ts +0 -1
- package/src/component/legendCategory.ts +69 -56
- package/src/component/legendContinuous.ts +31 -23
- package/src/component/legendContinuousBlockSize.ts +1 -5
- package/src/component/legendContinuousSize.ts +1 -1
- package/src/component/scrollbar.ts +6 -6
- package/src/component/scrollbarX.ts +1 -1
- package/src/component/scrollbarY.ts +1 -1
- package/src/component/slider.ts +7 -8
- package/src/component/sliderX.ts +1 -1
- package/src/component/sliderY.ts +1 -1
- package/src/component/title.ts +3 -5
- package/src/component/utils.ts +27 -3
- package/src/coordinate/fisheye.ts +2 -2
- package/src/data/.DS_Store +0 -0
- package/src/geo/geoView.ts +1 -1
- package/src/index.ts +1 -0
- package/src/interaction/brushFilter.ts +2 -2
- package/src/interaction/brushHighlight.ts +8 -3
- package/src/interaction/elementHighlight.ts +6 -6
- package/src/interaction/event.ts +30 -20
- package/src/interaction/fisheye.ts +1 -1
- package/src/interaction/legendFilter.ts +54 -70
- package/src/interaction/sliderFilter.ts +6 -6
- package/src/interaction/tooltip.ts +51 -21
- package/src/interaction/utils.ts +6 -3
- package/src/label-transform/overflowHide.ts +3 -3
- package/src/label-transform/overlapHide.ts +3 -2
- package/src/mark/boxplot.ts +2 -2
- package/src/mark/gauge.ts +2 -1
- package/src/mark/sankey.ts +2 -1
- package/src/mark/utils.ts +2 -4
- package/src/runtime/component.ts +34 -14
- package/src/runtime/plot.ts +72 -20
- package/src/runtime/render.ts +37 -9
- package/src/runtime/types/common.ts +13 -10
- package/src/runtime/types/component.ts +16 -8
- package/src/shape/.DS_Store +0 -0
- package/src/shape/area/area.ts +1 -0
- package/src/shape/area/curve.ts +2 -1
- package/src/shape/area/hv.ts +1 -0
- package/src/shape/area/hvh.ts +1 -0
- package/src/shape/area/smooth.ts +1 -0
- package/src/shape/area/vh.ts +1 -0
- package/src/shape/box/box.ts +1 -0
- package/src/shape/connector/connector.ts +6 -4
- package/src/shape/interval/color.ts +19 -4
- package/src/shape/interval/funnel.ts +1 -0
- package/src/shape/interval/hollow.ts +1 -0
- package/src/shape/interval/pyramid.ts +1 -0
- package/src/shape/interval/rect.ts +1 -0
- package/src/shape/label/label.ts +4 -2
- package/src/shape/label/position/area.ts +1 -1
- package/src/shape/line/curve.ts +3 -2
- package/src/shape/line/hv.ts +1 -0
- package/src/shape/line/hvh.ts +1 -0
- package/src/shape/line/line.ts +1 -0
- package/src/shape/line/smooth.ts +1 -0
- package/src/shape/line/vh.ts +1 -0
- package/src/shape/lineXY/line.ts +1 -0
- package/src/shape/link/arc.ts +1 -0
- package/src/shape/link/link.ts +1 -0
- package/src/shape/link/smooth.ts +1 -0
- package/src/shape/link/vhv.ts +1 -0
- package/src/shape/path/hollow.ts +1 -0
- package/src/shape/path/path.ts +1 -0
- package/src/shape/point/bowtie.ts +1 -0
- package/src/shape/point/color.ts +4 -4
- package/src/shape/point/cross.ts +1 -0
- package/src/shape/point/diamond.ts +1 -0
- package/src/shape/point/hexagon.ts +1 -0
- package/src/shape/point/hollow.ts +1 -0
- package/src/shape/point/hollowBowtie.ts +1 -0
- package/src/shape/point/hollowDiamond.ts +1 -0
- package/src/shape/point/hollowHexagon.ts +1 -0
- package/src/shape/point/hollowSquare.ts +1 -0
- package/src/shape/point/hollowTriangle.ts +1 -0
- package/src/shape/point/hollowTriangleDown.ts +1 -0
- package/src/shape/point/hyphen.ts +1 -0
- package/src/shape/point/line.ts +1 -0
- package/src/shape/point/plus.ts +1 -0
- package/src/shape/point/point.ts +1 -0
- package/src/shape/point/square.ts +1 -0
- package/src/shape/point/tick.ts +1 -0
- package/src/shape/point/triangle.ts +1 -0
- package/src/shape/point/triangleDown.ts +1 -0
- package/src/shape/polygon/polygon.ts +1 -0
- package/src/shape/polygon/ribbon.ts +1 -0
- package/src/shape/shape/shape.ts +1 -0
- package/src/shape/text/advance.ts +3 -2
- package/src/shape/text/badge.ts +1 -0
- package/src/shape/text/text.ts +2 -1
- package/src/shape/utils.ts +4 -22
- package/src/shape/vector/vector.ts +1 -0
- package/src/spec/component.ts +10 -9
- package/src/spec/coordinateTransform.ts +1 -1
- package/src/spec/interaction.ts +3 -0
- package/src/spec/scale.ts +3 -2
- package/src/spec/theme.ts +22 -2
- package/src/stdlib/index.ts +3 -3
- package/src/theme/academy.ts +77 -78
- package/src/theme/{light.ts → classic.ts} +80 -90
- package/src/theme/{dark.ts → classicDark.ts} +78 -88
- package/src/theme/index.ts +2 -2
- package/src/transform/filter.ts +4 -1
- package/src/utils/event.ts +47 -15
- package/src/utils/helper.ts +2 -1
- package/src/utils/marker.ts +293 -0
- package/src/utils/style.ts +34 -0
- package/esm/shape/point/symbol.d.ts +0 -49
- package/esm/shape/point/symbol.js +0 -143
- package/esm/shape/point/symbol.js.map +0 -1
- package/esm/theme/dark.d.ts +0 -6
- package/esm/theme/dark.js.map +0 -1
- package/esm/theme/light.d.ts +0 -6
- package/esm/theme/light.js.map +0 -1
- package/lib/shape/point/symbol.d.ts +0 -49
- package/lib/shape/point/symbol.js +0 -158
- package/lib/shape/point/symbol.js.map +0 -1
- package/lib/theme/dark.d.ts +0 -6
- package/lib/theme/dark.js.map +0 -1
- package/lib/theme/light.d.ts +0 -6
- package/lib/theme/light.js.map +0 -1
- package/src/shape/point/symbol.ts +0 -154
package/src/theme/academy.ts
CHANGED
|
@@ -219,110 +219,104 @@ export const Academy: TC<AcademyOptions> = (options) => {
|
|
|
219
219
|
disabled: {},
|
|
220
220
|
},
|
|
221
221
|
axis: {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
lineStrokeOpacity: 1,
|
|
230
|
-
lineLineWidth: 1,
|
|
231
|
-
lineArrow: null,
|
|
232
|
-
tickStroke: COLORS.STROKE,
|
|
233
|
-
tickStrokeOpacity: 1,
|
|
234
|
-
tickLineWidth: 1,
|
|
235
|
-
tickLength: 5,
|
|
222
|
+
arrow: false,
|
|
223
|
+
gridLineDash: [0, 0],
|
|
224
|
+
gridLineWidth: 1,
|
|
225
|
+
gridStroke: '#ddd',
|
|
226
|
+
gridStrokeOpacity: 1,
|
|
227
|
+
labelAlign: 'horizontal',
|
|
228
|
+
labelAutoRotate: false,
|
|
236
229
|
labelFill: COLORS.BLACK,
|
|
237
230
|
labelFillOpacity: 1,
|
|
238
231
|
labelFontSize: 10,
|
|
239
|
-
labelAutoRotate: false,
|
|
240
232
|
labelFontWeight: 'normal',
|
|
241
233
|
labelSpacing: 4,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
234
|
+
line: true,
|
|
235
|
+
lineLineWidth: 1,
|
|
236
|
+
lineStroke: '#888',
|
|
237
|
+
lineStrokeOpacity: 1,
|
|
238
|
+
tickLength: 5,
|
|
239
|
+
tickLineWidth: 1,
|
|
240
|
+
tickStroke: COLORS.STROKE,
|
|
241
|
+
tickStrokeOpacity: 1,
|
|
242
|
+
titleFill: COLORS.BLACK,
|
|
243
|
+
titleFillOpacity: 1,
|
|
244
|
+
titleFontSize: 11,
|
|
245
|
+
titleFontWeight: 'bold',
|
|
246
|
+
titleSpacing: 12,
|
|
247
247
|
titleTransformOrigin: 'center',
|
|
248
248
|
},
|
|
249
249
|
axisTop: {
|
|
250
|
+
gridDirection: 'positive',
|
|
251
|
+
labelDirection: 'negative',
|
|
252
|
+
tickDirection: 'negative',
|
|
250
253
|
titlePosition: 'top',
|
|
251
254
|
titleSpacing: 0,
|
|
252
255
|
titleTextBaseline: 'middle',
|
|
253
|
-
labelDirection: 'negative',
|
|
254
|
-
tickDirection: 'negative',
|
|
255
|
-
gridDirection: 'positive',
|
|
256
256
|
},
|
|
257
257
|
axisBottom: {
|
|
258
|
+
gridDirection: 'negative',
|
|
259
|
+
labelDirection: 'positive',
|
|
260
|
+
labelSpacing: 8,
|
|
261
|
+
tickDirection: 'positive',
|
|
258
262
|
titlePosition: 'bottom',
|
|
259
263
|
titleSpacing: 4,
|
|
260
264
|
titleTextBaseline: 'bottom',
|
|
261
|
-
labelSpacing: 8,
|
|
262
|
-
labelDirection: 'positive',
|
|
263
|
-
tickDirection: 'positive',
|
|
264
|
-
gridDirection: 'negative',
|
|
265
265
|
},
|
|
266
266
|
axisLeft: {
|
|
267
|
-
|
|
268
|
-
titleSpacing: 4,
|
|
269
|
-
titlePosition: 'left',
|
|
270
|
-
titleTransformOrigin: 'center',
|
|
271
|
-
titleTransform: `translate(50%, 0) rotate(-90) translate(0, -50%)`,
|
|
272
|
-
labelSpacing: 4,
|
|
267
|
+
gridDirection: 'negative',
|
|
273
268
|
labelDirection: 'positive',
|
|
269
|
+
labelSpacing: 4,
|
|
274
270
|
tickDirection: 'positive',
|
|
275
|
-
|
|
271
|
+
titlePosition: 'left',
|
|
272
|
+
titleSpacing: 4,
|
|
273
|
+
titleTextBaseline: 'middle',
|
|
274
|
+
titleTransform: `translate(50%, 0) rotate(-90) translate(0, -50%)`,
|
|
275
|
+
titleTransformOrigin: 'center',
|
|
276
276
|
},
|
|
277
277
|
axisRight: {
|
|
278
|
-
|
|
279
|
-
titleSpacing: 0,
|
|
280
|
-
titlePosition: 'right',
|
|
281
|
-
titleTransformOrigin: 'center',
|
|
282
|
-
titleTransform: `translate(-50%, 0) rotate(-90)`,
|
|
283
|
-
labelSpacing: 4,
|
|
278
|
+
gridDirection: 'positive',
|
|
284
279
|
labelDirection: 'negative',
|
|
280
|
+
labelSpacing: 4,
|
|
285
281
|
tickDirection: 'negative',
|
|
286
|
-
|
|
282
|
+
titlePosition: 'right',
|
|
283
|
+
titleSpacing: 0,
|
|
284
|
+
titleTextBaseline: 'top',
|
|
285
|
+
titleTransform: `translate(-50%, 0) rotate(-90)`,
|
|
286
|
+
titleTransformOrigin: 'center',
|
|
287
287
|
},
|
|
288
288
|
axisLinear: {
|
|
289
|
-
|
|
290
|
-
titleTextBaseline: 'bottom',
|
|
291
|
-
gridDirection: 'negative',
|
|
289
|
+
girdClosed: true,
|
|
292
290
|
gridConnect: 'arc',
|
|
291
|
+
gridDirection: 'negative',
|
|
293
292
|
gridType: 'surround',
|
|
294
|
-
|
|
293
|
+
titlePosition: 'top',
|
|
294
|
+
titleTextBaseline: 'bottom',
|
|
295
295
|
},
|
|
296
296
|
axisRadar: {
|
|
297
|
-
titlePosition: 'start',
|
|
298
|
-
showTick: false,
|
|
299
|
-
showLabel: false,
|
|
300
|
-
gridType: 'surround',
|
|
301
297
|
girdClosed: true,
|
|
302
298
|
gridStrokeOpacity: 0.3,
|
|
299
|
+
gridType: 'surround',
|
|
300
|
+
label: false,
|
|
301
|
+
tick: false,
|
|
302
|
+
titlePosition: 'start',
|
|
303
303
|
},
|
|
304
304
|
legend: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
titleSpacing: 4,
|
|
305
|
+
backgroundFill: 'transparent',
|
|
306
|
+
itemBackgroundFill: 'transparent',
|
|
307
|
+
itemLabelFill: COLORS.BLACK,
|
|
308
|
+
itemLabelFillOpacity: 1,
|
|
309
|
+
itemLabelFontSize: 10,
|
|
310
|
+
itemLabelFontWeight: 'normal',
|
|
312
311
|
// legend marker
|
|
313
312
|
// itemMarkerFill: DEFAULT_COLOR,
|
|
314
313
|
itemMarkerFillOpacity: 1,
|
|
315
314
|
itemMarkerSize: 8,
|
|
316
315
|
itemSpacing: [5, 4],
|
|
317
|
-
itemLabelFill: COLORS.BLACK,
|
|
318
|
-
itemLabelFillOpacity: 1,
|
|
319
|
-
itemLabelFontSize: 10,
|
|
320
|
-
itemLabelFontWeight: 'normal',
|
|
321
316
|
itemValueFill: COLORS.BLACK,
|
|
322
317
|
itemValueFillOpacity: 1,
|
|
323
318
|
itemValueFontSize: 10,
|
|
324
319
|
itemValueFontWeight: 'normal',
|
|
325
|
-
itemBackgroundFill: 'transparent',
|
|
326
320
|
// [todo] rename legend navigator
|
|
327
321
|
navButtonFill: COLORS.BLACK,
|
|
328
322
|
navButtonFillOpacity: 0.45,
|
|
@@ -330,33 +324,38 @@ export const Academy: TC<AcademyOptions> = (options) => {
|
|
|
330
324
|
navPageNumFill: COLORS.BLACK,
|
|
331
325
|
navPageNumFillOpacity: 0.45,
|
|
332
326
|
navPageNumFontSize: 10,
|
|
333
|
-
|
|
334
|
-
|
|
327
|
+
padding: 8,
|
|
328
|
+
title: false,
|
|
329
|
+
titleFill: COLORS.BLACK,
|
|
330
|
+
titleFillOpacity: 1,
|
|
331
|
+
titleFontSize: 11,
|
|
332
|
+
titleFontWeight: 'bold',
|
|
333
|
+
titleSpacing: 4,
|
|
335
334
|
},
|
|
336
335
|
continuousLegend: {
|
|
337
|
-
showTitle: false,
|
|
338
|
-
labelFill: COLORS.BLACK,
|
|
339
|
-
labelFillOpacity: 0.45,
|
|
340
|
-
labelFontSize: 10,
|
|
341
|
-
labelFontWeight: 'normal',
|
|
342
|
-
handleWidth: 10,
|
|
343
336
|
handleHeight: 12,
|
|
344
|
-
handleMarkerFill: COLORS.BLACK,
|
|
345
|
-
handleMarkerFillOpacity: 0.6,
|
|
346
|
-
handleMarkerStroke: COLORS.BLACK,
|
|
347
|
-
handleMarkerStrokeOpacity: 0.25,
|
|
348
|
-
handleMarkerLineWidth: 1,
|
|
349
337
|
handleLabelFill: COLORS.BLACK,
|
|
350
338
|
handleLabelFillOpacity: 0.45,
|
|
351
339
|
handleLabelFontSize: 10,
|
|
352
340
|
handleLabelFontWeight: 'normal',
|
|
341
|
+
handleMarkerFill: COLORS.BLACK,
|
|
342
|
+
handleMarkerFillOpacity: 0.6,
|
|
343
|
+
handleMarkerLineWidth: 1,
|
|
344
|
+
handleMarkerStroke: COLORS.BLACK,
|
|
345
|
+
handleMarkerStrokeOpacity: 0.25,
|
|
346
|
+
handleWidth: 10,
|
|
347
|
+
labelFill: COLORS.BLACK,
|
|
348
|
+
labelFillOpacity: 0.45,
|
|
349
|
+
labelFontSize: 10,
|
|
350
|
+
labelFontWeight: 'normal',
|
|
351
|
+
title: false,
|
|
353
352
|
},
|
|
354
353
|
label: {
|
|
355
354
|
fill: COLORS.BLACK,
|
|
356
355
|
fillOpacity: 0.65,
|
|
357
356
|
fontSize: 10,
|
|
358
357
|
fontWeight: 'normal',
|
|
359
|
-
stroke:
|
|
358
|
+
stroke: undefined,
|
|
360
359
|
offset: 12,
|
|
361
360
|
connectorStroke: COLORS.BLACK,
|
|
362
361
|
connectorStrokeOpacity: 0.45,
|
|
@@ -370,13 +369,13 @@ export const Academy: TC<AcademyOptions> = (options) => {
|
|
|
370
369
|
fontSize: 10,
|
|
371
370
|
fillOpacity: 0.85,
|
|
372
371
|
fontWeight: 'normal',
|
|
373
|
-
stroke:
|
|
372
|
+
stroke: undefined,
|
|
374
373
|
offset: 0,
|
|
375
374
|
},
|
|
376
375
|
slider: {
|
|
377
376
|
trackSize: 16,
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
trackFill: COLORS.STROKE,
|
|
378
|
+
trackFillOpacity: 0.05,
|
|
380
379
|
selectionFill: DEFAULT_COLOR,
|
|
381
380
|
selectionFillOpacity: 0.15,
|
|
382
381
|
handleIconSize: 10,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeComponent as TC, Theme } from '../runtime';
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type ClassicOptions = Theme;
|
|
4
4
|
|
|
5
5
|
const COLORS = {
|
|
6
6
|
BLACK: '#000',
|
|
@@ -13,7 +13,7 @@ const BACKGROUND_COLOR = 'transparent';
|
|
|
13
13
|
/**
|
|
14
14
|
* Default theme.
|
|
15
15
|
*/
|
|
16
|
-
export const
|
|
16
|
+
export const Classic: TC<ClassicOptions> = (options) => {
|
|
17
17
|
const DEFAULT_COLOR = '#5B8FF9';
|
|
18
18
|
const defaultOptions: Theme = {
|
|
19
19
|
defaultColor: DEFAULT_COLOR,
|
|
@@ -220,142 +220,134 @@ export const Light: TC<LightOptions> = (options) => {
|
|
|
220
220
|
disabled: {},
|
|
221
221
|
},
|
|
222
222
|
axis: {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
// axis line
|
|
230
|
-
lineStroke: COLORS.BLACK,
|
|
231
|
-
lineStrokeOpacity: 0.45,
|
|
232
|
-
lineLineWidth: 0.5,
|
|
233
|
-
lineArrow: null,
|
|
234
|
-
// axis tick line
|
|
235
|
-
tickStroke: COLORS.BLACK,
|
|
236
|
-
tickStrokeOpacity: 0.25,
|
|
237
|
-
tickLineWidth: 1,
|
|
238
|
-
tickLength: 4,
|
|
239
|
-
// axis label
|
|
223
|
+
arrow: false,
|
|
224
|
+
gridLineDash: [0, 0],
|
|
225
|
+
gridLineWidth: 0.5,
|
|
226
|
+
gridStroke: COLORS.BLACK,
|
|
227
|
+
gridStrokeOpacity: 0.05,
|
|
228
|
+
labelAlign: 'horizontal',
|
|
240
229
|
labelFill: COLORS.BLACK,
|
|
241
230
|
labelFillOpacity: 0.65,
|
|
242
231
|
labelFontSize: 12,
|
|
243
232
|
labelFontWeight: 'lighter',
|
|
244
233
|
labelSpacing: 8, // spacing between label and it's tick
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
234
|
+
line: false,
|
|
235
|
+
lineLineWidth: 0.5,
|
|
236
|
+
lineStroke: COLORS.BLACK,
|
|
237
|
+
lineStrokeOpacity: 0.45,
|
|
238
|
+
tickLength: 4,
|
|
239
|
+
tickLineWidth: 1,
|
|
240
|
+
tickStroke: COLORS.BLACK,
|
|
241
|
+
tickStrokeOpacity: 0.25,
|
|
242
|
+
titleFill: COLORS.BLACK,
|
|
243
|
+
titleFillOpacity: 0.65,
|
|
244
|
+
titleFontSize: 12,
|
|
245
|
+
titleFontWeight: 'normal',
|
|
246
|
+
titleSpacing: 12,
|
|
251
247
|
titleTransformOrigin: 'center',
|
|
252
248
|
},
|
|
253
249
|
axisTop: {
|
|
250
|
+
gridDirection: 'positive',
|
|
251
|
+
labelDirection: 'negative',
|
|
252
|
+
labelSpacing: 8,
|
|
253
|
+
tickDirection: 'negative',
|
|
254
254
|
titlePosition: 'top',
|
|
255
255
|
titleSpacing: 0,
|
|
256
256
|
titleTextBaseline: 'middle',
|
|
257
|
-
labelSpacing: 8,
|
|
258
|
-
labelDirection: 'negative',
|
|
259
|
-
tickDirection: 'negative',
|
|
260
|
-
gridDirection: 'positive',
|
|
261
257
|
},
|
|
262
258
|
axisBottom: {
|
|
259
|
+
gridDirection: 'negative',
|
|
260
|
+
labelDirection: 'positive',
|
|
261
|
+
labelSpacing: 12,
|
|
262
|
+
tickDirection: 'positive',
|
|
263
263
|
titlePosition: 'bottom',
|
|
264
264
|
titleSpacing: 10,
|
|
265
265
|
titleTextBaseline: 'bottom',
|
|
266
|
-
labelSpacing: 12,
|
|
267
|
-
labelDirection: 'positive',
|
|
268
|
-
tickDirection: 'positive',
|
|
269
|
-
gridDirection: 'negative',
|
|
270
266
|
},
|
|
271
267
|
axisLeft: {
|
|
272
|
-
|
|
273
|
-
titleSpacing: 10,
|
|
274
|
-
titlePosition: 'left',
|
|
275
|
-
titleTransformOrigin: 'center',
|
|
276
|
-
titleTransform: `translate(50%, 0) rotate(-90)`,
|
|
277
|
-
labelSpacing: 4,
|
|
278
|
-
labelDirection: 'positive',
|
|
268
|
+
gridDirection: 'negative',
|
|
279
269
|
labelAutoRotate: false,
|
|
270
|
+
labelDirection: 'positive',
|
|
271
|
+
labelSpacing: 4,
|
|
280
272
|
tickDirection: 'positive',
|
|
281
|
-
|
|
273
|
+
titlePosition: 'left',
|
|
274
|
+
titleSpacing: 10,
|
|
275
|
+
titleTextBaseline: 'middle',
|
|
276
|
+
titleTransform: `translate(50%, 0) rotate(-90)`,
|
|
277
|
+
titleTransformOrigin: 'center',
|
|
282
278
|
},
|
|
283
279
|
axisRight: {
|
|
284
|
-
|
|
285
|
-
titleSpacing: 0,
|
|
286
|
-
titlePosition: 'right',
|
|
287
|
-
titleTransformOrigin: 'center',
|
|
288
|
-
titleTransform: `translate(-50%, 0) rotate(-90)`,
|
|
289
|
-
labelSpacing: 4,
|
|
280
|
+
gridDirection: 'positive',
|
|
290
281
|
labelDirection: 'negative',
|
|
282
|
+
labelSpacing: 4,
|
|
291
283
|
tickDirection: 'negative',
|
|
292
|
-
|
|
284
|
+
titlePosition: 'right',
|
|
285
|
+
titleSpacing: 0,
|
|
286
|
+
titleTextBaseline: 'top',
|
|
287
|
+
titleTransform: `translate(-50%, 0) rotate(-90)`,
|
|
288
|
+
titleTransformOrigin: 'center',
|
|
293
289
|
},
|
|
294
290
|
axisLinear: {
|
|
295
|
-
|
|
296
|
-
titleSpacing: 0,
|
|
297
|
-
gridDirection: 'negative',
|
|
291
|
+
girdClosed: true,
|
|
298
292
|
gridConnect: 'arc',
|
|
293
|
+
gridDirection: 'negative',
|
|
299
294
|
gridType: 'surround',
|
|
300
|
-
|
|
295
|
+
titlePosition: 'top',
|
|
296
|
+
titleSpacing: 0,
|
|
301
297
|
},
|
|
302
298
|
axisRadar: {
|
|
303
|
-
titlePosition: 'start',
|
|
304
|
-
showTick: false,
|
|
305
|
-
showLabel: false,
|
|
306
|
-
gridType: 'surround',
|
|
307
299
|
girdClosed: true,
|
|
308
300
|
gridStrokeOpacity: 0.3,
|
|
301
|
+
gridType: 'surround',
|
|
302
|
+
label: false,
|
|
303
|
+
tick: false,
|
|
304
|
+
titlePosition: 'start',
|
|
309
305
|
},
|
|
310
306
|
legend: {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
titleFill: COLORS.BLACK,
|
|
314
|
-
titleFillOpacity: 0.45,
|
|
315
|
-
titleFontSize: 12,
|
|
316
|
-
titleFontWeight: 'normal',
|
|
317
|
-
titleSpacing: 4,
|
|
318
|
-
// legend marker
|
|
319
|
-
// itemMarkerFill: DEFAULT_COLOR,
|
|
320
|
-
itemMarkerFillOpacity: 1,
|
|
321
|
-
itemMarkerSize: 8,
|
|
322
|
-
itemSpacing: [5, 8],
|
|
307
|
+
backgroundFill: 'transparent',
|
|
308
|
+
itemBackgroundFill: 'transparent',
|
|
323
309
|
itemLabelFill: COLORS.BLACK,
|
|
324
310
|
itemLabelFillOpacity: 0.65,
|
|
325
311
|
itemLabelFontSize: 12,
|
|
326
312
|
itemLabelFontWeight: 'normal',
|
|
313
|
+
itemMarkerFillOpacity: 1,
|
|
314
|
+
itemMarkerSize: 8,
|
|
315
|
+
itemSpacing: [5, 8],
|
|
327
316
|
itemValueFill: COLORS.BLACK,
|
|
328
317
|
itemValueFillOpacity: 0.65,
|
|
329
318
|
itemValueFontSize: 12,
|
|
330
319
|
itemValueFontWeight: 'normal',
|
|
331
|
-
itemBackgroundFill: 'transparent',
|
|
332
|
-
// [todo] rename legend navigator
|
|
333
320
|
navButtonFill: COLORS.BLACK,
|
|
334
321
|
navButtonFillOpacity: 0.65,
|
|
335
322
|
navPageNumFill: COLORS.BLACK,
|
|
336
323
|
navPageNumFillOpacity: 0.45,
|
|
337
324
|
navPageNumFontSize: 12,
|
|
338
|
-
|
|
339
|
-
|
|
325
|
+
padding: 8,
|
|
326
|
+
title: false,
|
|
327
|
+
titleFill: COLORS.BLACK,
|
|
328
|
+
titleFillOpacity: 0.45,
|
|
329
|
+
titleFontSize: 12,
|
|
330
|
+
titleFontWeight: 'normal',
|
|
331
|
+
titleSpacing: 4,
|
|
340
332
|
},
|
|
341
333
|
continuousLegend: {
|
|
342
|
-
labelFill: COLORS.BLACK,
|
|
343
|
-
labelFillOpacity: 0.45,
|
|
344
|
-
labelFontSize: 12,
|
|
345
|
-
labelFontWeight: 'normal',
|
|
346
|
-
handleWidth: 10,
|
|
347
334
|
handleHeight: 12,
|
|
348
|
-
handleMarkerFill: COLORS.BLACK,
|
|
349
|
-
handleMarkerFillOpacity: 0.6,
|
|
350
|
-
handleMarkerStroke: COLORS.BLACK,
|
|
351
|
-
handleMarkerStrokeOpacity: 0.25,
|
|
352
|
-
handleMarkerLineWidth: 1,
|
|
353
335
|
handleLabelFill: COLORS.BLACK,
|
|
354
336
|
handleLabelFillOpacity: 0.45,
|
|
355
337
|
handleLabelFontSize: 12,
|
|
356
338
|
handleLabelFontWeight: 'normal',
|
|
357
|
-
|
|
339
|
+
handleMarkerFill: COLORS.BLACK,
|
|
340
|
+
handleMarkerFillOpacity: 0.6,
|
|
341
|
+
handleMarkerLineWidth: 1,
|
|
342
|
+
handleMarkerStroke: COLORS.BLACK,
|
|
343
|
+
handleMarkerStrokeOpacity: 0.25,
|
|
344
|
+
handleWidth: 10,
|
|
345
|
+
labelFill: COLORS.BLACK,
|
|
346
|
+
labelFillOpacity: 0.45,
|
|
347
|
+
labelFontSize: 12,
|
|
348
|
+
labelFontWeight: 'normal',
|
|
358
349
|
labelSpacing: 8,
|
|
350
|
+
tick: true,
|
|
359
351
|
// [todo] legend rail
|
|
360
352
|
},
|
|
361
353
|
label: {
|
|
@@ -363,7 +355,7 @@ export const Light: TC<LightOptions> = (options) => {
|
|
|
363
355
|
fillOpacity: 0.65,
|
|
364
356
|
fontSize: 12,
|
|
365
357
|
fontWeight: 'normal',
|
|
366
|
-
stroke:
|
|
358
|
+
stroke: undefined,
|
|
367
359
|
offset: 12,
|
|
368
360
|
connectorStroke: COLORS.BLACK,
|
|
369
361
|
connectorStrokeOpacity: 0.45,
|
|
@@ -377,13 +369,13 @@ export const Light: TC<LightOptions> = (options) => {
|
|
|
377
369
|
fontSize: 12,
|
|
378
370
|
fillOpacity: 0.85,
|
|
379
371
|
fontWeight: 'normal',
|
|
380
|
-
stroke:
|
|
372
|
+
stroke: undefined,
|
|
381
373
|
offset: 0,
|
|
382
374
|
},
|
|
383
375
|
slider: {
|
|
384
376
|
trackSize: 16,
|
|
385
|
-
|
|
386
|
-
|
|
377
|
+
trackFill: COLORS.STROKE,
|
|
378
|
+
trackFillOpacity: 1,
|
|
387
379
|
selectionFill: DEFAULT_COLOR,
|
|
388
380
|
selectionFillOpacity: 0.15,
|
|
389
381
|
handleIconSize: 10,
|
|
@@ -406,10 +398,8 @@ export const Light: TC<LightOptions> = (options) => {
|
|
|
406
398
|
scrollable: true,
|
|
407
399
|
trackFill: '#e5e5e5',
|
|
408
400
|
trackFillOpacity: 0,
|
|
409
|
-
trackStroke: 'none',
|
|
410
401
|
thumbFill: '#000',
|
|
411
402
|
thumbFillOpacity: 0.15,
|
|
412
|
-
thumbStroke: 'none',
|
|
413
403
|
thumbHighlightedFillOpacity: 0.2,
|
|
414
404
|
},
|
|
415
405
|
title: {
|
|
@@ -428,4 +418,4 @@ export const Light: TC<LightOptions> = (options) => {
|
|
|
428
418
|
return Object.assign({}, defaultOptions, options);
|
|
429
419
|
};
|
|
430
420
|
|
|
431
|
-
|
|
421
|
+
Classic.props = {};
|