@antv/g2 5.0.0-rc.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.en-US.md +5 -5
- package/README.md +5 -7
- package/dist/g2-lite.min.js +3 -3
- package/dist/g2.min.js +3 -3
- package/esm/api/chart.d.ts +5 -3
- package/esm/api/chart.js +14 -11
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/base.d.ts +7 -1
- package/esm/api/composition/base.js +26 -0
- package/esm/api/composition/base.js.map +1 -1
- package/esm/component/axis.js +41 -27
- 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 +61 -36
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +8 -6
- 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.js +1 -1
- package/esm/component/scrollbar.js.map +1 -1
- package/esm/component/slider.js +1 -1
- package/esm/component/slider.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 +1 -0
- package/esm/component/utils.js +25 -1
- 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/interaction/brushFilter.js +1 -1
- package/esm/interaction/brushFilter.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 -1
- package/esm/interaction/legendFilter.js +33 -27
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/interaction/sliderFilter.js +2 -2
- package/esm/interaction/sliderFilter.js.map +1 -1
- package/esm/interaction/tooltip.d.ts +1 -1
- package/esm/interaction/tooltip.js +5 -3
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/mark/boxplot.js +2 -2
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/runtime/component.d.ts +3 -3
- package/esm/runtime/component.js +4 -4
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/plot.js +2 -2
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.d.ts +1 -1
- package/esm/runtime/render.js +19 -3
- 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/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 +3 -1
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/line/curve.js +2 -1
- 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/badge.js +1 -0
- package/esm/shape/text/badge.js.map +1 -1
- package/esm/shape/text/text.js +1 -0
- 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 +19 -33
- 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 +73 -74
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/classic.d.ts +6 -0
- package/esm/theme/{light.js → classic.js} +76 -84
- package/esm/theme/classic.js.map +1 -0
- package/esm/theme/classicDark.d.ts +6 -0
- package/esm/theme/{dark.js → classicDark.js} +74 -83
- 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/maybeTitle.js +5 -1
- package/esm/transform/maybeTitle.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/lib/api/chart.d.ts +5 -3
- package/lib/api/chart.js +15 -12
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/base.d.ts +7 -1
- package/lib/api/composition/base.js +26 -0
- package/lib/api/composition/base.js.map +1 -1
- package/lib/component/axis.js +40 -26
- 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 +60 -35
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +7 -5
- 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.js +1 -1
- package/lib/component/scrollbar.js.map +1 -1
- package/lib/component/slider.js +1 -1
- package/lib/component/slider.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 +1 -0
- package/lib/component/utils.js +26 -1
- 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/interaction/brushFilter.js +1 -1
- package/lib/interaction/brushFilter.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 -1
- package/lib/interaction/legendFilter.js +33 -27
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/interaction/sliderFilter.js +2 -2
- package/lib/interaction/sliderFilter.js.map +1 -1
- package/lib/interaction/tooltip.d.ts +1 -1
- package/lib/interaction/tooltip.js +4 -2
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/mark/boxplot.js +2 -2
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/runtime/component.d.ts +3 -3
- package/lib/runtime/component.js +4 -4
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/plot.js +2 -2
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.d.ts +1 -1
- package/lib/runtime/render.js +19 -3
- 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/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 +3 -1
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/line/curve.js +2 -1
- 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/badge.js +1 -0
- package/lib/shape/text/badge.js.map +1 -1
- package/lib/shape/text/text.js +1 -0
- 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 +19 -33
- 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 +73 -74
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/classic.d.ts +6 -0
- package/lib/theme/{light.js → classic.js} +78 -86
- package/lib/theme/classic.js.map +1 -0
- package/lib/theme/classicDark.d.ts +6 -0
- package/lib/theme/{dark.js → classicDark.js} +76 -85
- 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/maybeTitle.js +5 -1
- package/lib/transform/maybeTitle.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/package.json +25 -22
- package/src/.DS_Store +0 -0
- package/src/api/chart.ts +17 -14
- package/src/api/composition/base.ts +26 -1
- package/src/component/axis.ts +77 -62
- package/src/component/axisRadar.ts +4 -3
- package/src/component/axisX.ts +0 -1
- package/src/component/legendCategory.ts +68 -63
- package/src/component/legendContinuous.ts +29 -21
- package/src/component/legendContinuousBlockSize.ts +1 -1
- package/src/component/legendContinuousSize.ts +1 -1
- package/src/component/scrollbar.ts +1 -1
- package/src/component/slider.ts +1 -1
- package/src/component/title.ts +3 -5
- package/src/component/utils.ts +25 -1
- package/src/coordinate/fisheye.ts +2 -2
- package/src/data/.DS_Store +0 -0
- package/src/interaction/brushFilter.ts +2 -2
- package/src/interaction/fisheye.ts +1 -1
- package/src/interaction/legendFilter.ts +39 -30
- package/src/interaction/sliderFilter.ts +2 -2
- package/src/interaction/tooltip.ts +5 -3
- package/src/mark/boxplot.ts +2 -2
- package/src/runtime/component.ts +7 -4
- package/src/runtime/plot.ts +2 -0
- package/src/runtime/render.ts +22 -2
- 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/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 +3 -1
- package/src/shape/line/curve.ts +2 -1
- 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/badge.ts +1 -0
- package/src/shape/text/text.ts +1 -0
- 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 +19 -43
- package/src/spec/theme.ts +22 -2
- package/src/stdlib/index.ts +3 -3
- package/src/theme/academy.ts +73 -74
- package/src/theme/{light.ts → classic.ts} +76 -84
- package/src/theme/{dark.ts → classicDark.ts} +74 -84
- package/src/theme/index.ts +2 -2
- package/src/transform/maybeTitle.ts +5 -1
- package/src/utils/marker.ts +293 -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/shape/utils.ts
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import { Path } from '@antv/g';
|
|
2
|
-
import { Path as D3Path } from 'd3-path';
|
|
3
|
-
import { extent } from 'd3-array';
|
|
4
1
|
import { Coordinate } from '@antv/coord';
|
|
5
2
|
import { Linear } from '@antv/scale';
|
|
6
3
|
import { lowerFirst } from '@antv/util';
|
|
4
|
+
import { extent } from 'd3-array';
|
|
5
|
+
import { Path as D3Path } from 'd3-path';
|
|
7
6
|
import { G2Theme, Primitive, Vector2 } from '../runtime';
|
|
7
|
+
import { indexOf } from '../utils/array';
|
|
8
8
|
import { isPolar, isTranspose } from '../utils/coordinate';
|
|
9
|
-
import { angle, angleWithQuadrant, dist, sub } from '../utils/vector';
|
|
10
9
|
import { Selection } from '../utils/selection';
|
|
11
|
-
import {
|
|
12
|
-
import * as Symbols from './point/symbol';
|
|
13
|
-
|
|
14
|
-
type A = ['a' | 'A', number, number, number, number, number, number, number];
|
|
15
|
-
type C = ['c' | 'C', number, number, number, number, number, number];
|
|
16
|
-
type O = ['o' | 'O', number, number];
|
|
17
|
-
type H = ['h' | 'H', number];
|
|
18
|
-
type L = ['l' | 'L', number, number];
|
|
19
|
-
type M = ['m' | 'M', number, number];
|
|
20
|
-
type R = ['r' | 'R', number, number, number, number];
|
|
21
|
-
type Q = ['q' | 'Q', number, number, number, number];
|
|
22
|
-
type S = ['s' | 'S', number, number, number, number, number, number, number];
|
|
23
|
-
type T = ['t' | 'T', number, number];
|
|
24
|
-
type V = ['v' | 'V', number];
|
|
25
|
-
type U = ['u' | 'U', number, number, number];
|
|
26
|
-
type Z = ['z' | 'Z'];
|
|
27
|
-
|
|
28
|
-
export type PathCommand = A | C | O | H | L | M | R | Q | S | T | V | U | Z;
|
|
10
|
+
import { angle, angleWithQuadrant, dist, sub } from '../utils/vector';
|
|
29
11
|
|
|
30
12
|
export function applyStyle(
|
|
31
13
|
selection: Selection,
|
package/src/spec/component.ts
CHANGED
|
@@ -22,18 +22,19 @@ export type TitleComponent = {
|
|
|
22
22
|
* Text of subtitle.
|
|
23
23
|
*/
|
|
24
24
|
subtitle?: string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Align method for title.
|
|
27
|
-
*/
|
|
28
|
-
align?: 'left' | 'center' | 'right';
|
|
29
|
-
/**
|
|
30
|
-
* The vertical spacing between title and subtitle, default is 2.
|
|
31
|
-
*/
|
|
32
|
-
spacing?: number;
|
|
33
25
|
/**
|
|
34
26
|
* Styles.
|
|
35
27
|
*/
|
|
36
|
-
style?: UsePrefix<'title' | 'subtitle', Record<string, any
|
|
28
|
+
style?: UsePrefix<'title' | 'subtitle', Record<string, any>> & {
|
|
29
|
+
/**
|
|
30
|
+
* Align method for title.
|
|
31
|
+
*/
|
|
32
|
+
align?: 'left' | 'center' | 'right';
|
|
33
|
+
/**
|
|
34
|
+
* The vertical spacing between title and subtitle, default is 2.
|
|
35
|
+
*/
|
|
36
|
+
spacing?: number;
|
|
37
|
+
};
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
export type AxisComponent = {
|
package/src/spec/interaction.ts
CHANGED
|
@@ -50,62 +50,50 @@ export type InteractionTypes =
|
|
|
50
50
|
| 'poptip'
|
|
51
51
|
| InteractionComponent;
|
|
52
52
|
|
|
53
|
-
export type BrushInteraction = {
|
|
54
|
-
type?: 'brush';
|
|
55
|
-
brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
|
|
56
|
-
};
|
|
57
|
-
|
|
58
53
|
export type BrushHighlightInteraction = {
|
|
59
54
|
type?: 'brushHighlight';
|
|
60
55
|
brushKey?: string;
|
|
61
56
|
reverse?: boolean;
|
|
62
|
-
shared?: boolean;
|
|
63
57
|
series?: boolean;
|
|
64
58
|
facet?: boolean;
|
|
65
|
-
} & Record<`${'mask'
|
|
59
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
66
60
|
|
|
67
61
|
export type BrushXHighlightInteraction = {
|
|
68
62
|
type?: 'brushXHighlight';
|
|
69
63
|
brushKey?: string;
|
|
70
64
|
reverse?: boolean;
|
|
71
|
-
shared?: boolean;
|
|
72
65
|
series?: boolean;
|
|
73
66
|
facet?: boolean;
|
|
74
|
-
} & Record<`${'mask'
|
|
67
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
75
68
|
|
|
76
69
|
export type BrushYHighlightInteraction = {
|
|
77
70
|
type?: 'brushYHighlight';
|
|
78
71
|
brushKey?: string;
|
|
79
72
|
reverse?: boolean;
|
|
80
|
-
shared?: boolean;
|
|
81
73
|
series?: boolean;
|
|
82
74
|
facet?: boolean;
|
|
83
|
-
} & Record<`${'mask'
|
|
75
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
84
76
|
|
|
85
77
|
export type BrushAxisHighlightInteraction = {
|
|
86
78
|
type?: 'brushAxisHighlight';
|
|
87
79
|
reverse?: boolean;
|
|
88
|
-
|
|
80
|
+
brushKey?: string;
|
|
81
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
89
82
|
|
|
90
83
|
export type BrushFilterInteraction = {
|
|
91
84
|
type?: 'brushFilter';
|
|
92
85
|
reverse?: boolean;
|
|
93
|
-
} & Record<`${'mask'
|
|
86
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
94
87
|
|
|
95
88
|
export type BrushXFilterInteraction = {
|
|
96
89
|
type?: 'brushXFilter';
|
|
97
90
|
reverse?: boolean;
|
|
98
|
-
} & Record<`${'mask'
|
|
91
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
99
92
|
|
|
100
93
|
export type BrushYFilterInteraction = {
|
|
101
94
|
type?: 'brushYFilter';
|
|
102
95
|
reverse?: boolean;
|
|
103
|
-
} & Record<`${'mask'
|
|
104
|
-
|
|
105
|
-
export type BrushVisibleInteraction = {
|
|
106
|
-
type?: 'brushVisible';
|
|
107
|
-
brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
|
|
108
|
-
};
|
|
96
|
+
} & Record<`${'mask'}${any}`, any>;
|
|
109
97
|
|
|
110
98
|
export type ElementHighlightInteraction = {
|
|
111
99
|
type?: 'elementHighlight';
|
|
@@ -113,41 +101,35 @@ export type ElementHighlightInteraction = {
|
|
|
113
101
|
link?: boolean;
|
|
114
102
|
background?: boolean;
|
|
115
103
|
offset?: number;
|
|
116
|
-
} & Record
|
|
117
|
-
`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`,
|
|
118
|
-
any
|
|
119
|
-
>;
|
|
104
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
120
105
|
|
|
121
106
|
export type ElementSelectInteraction = {
|
|
122
107
|
type?: 'elementSelect';
|
|
123
108
|
single?: boolean;
|
|
124
|
-
background?:
|
|
109
|
+
background?: boolean;
|
|
125
110
|
offset?: number;
|
|
126
|
-
} & Record<`${'
|
|
111
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
127
112
|
|
|
128
113
|
export type ElementSelectByColorInteraction = {
|
|
129
114
|
type?: 'elementSelectByColor';
|
|
130
115
|
single?: boolean;
|
|
131
116
|
offset?: number;
|
|
132
|
-
|
|
117
|
+
background?: boolean;
|
|
118
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
133
119
|
|
|
134
120
|
export type ElementSelectByXInteraction = {
|
|
135
121
|
type?: 'elementSelectByX';
|
|
136
122
|
single?: boolean;
|
|
137
|
-
background?:
|
|
123
|
+
background?: boolean;
|
|
138
124
|
offset?: number;
|
|
139
|
-
} & Record<`${'
|
|
125
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
140
126
|
|
|
141
127
|
export type ElementHighlightByXInteraction = {
|
|
142
128
|
type?: 'elementHighlightByX';
|
|
143
|
-
x?: string;
|
|
144
129
|
link?: boolean;
|
|
145
130
|
background?: boolean;
|
|
146
131
|
offset?: number;
|
|
147
|
-
} & Record
|
|
148
|
-
`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`,
|
|
149
|
-
any
|
|
150
|
-
>;
|
|
132
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
151
133
|
|
|
152
134
|
export type ElementHighlightByColorInteraction = {
|
|
153
135
|
type?: 'elementHighlightByColor';
|
|
@@ -155,10 +137,7 @@ export type ElementHighlightByColorInteraction = {
|
|
|
155
137
|
background?: boolean;
|
|
156
138
|
link?: boolean;
|
|
157
139
|
offset?: number;
|
|
158
|
-
} & Record
|
|
159
|
-
`${'link' | 'highlighted' | 'unhighlighted' | 'background'}${any}`,
|
|
160
|
-
any
|
|
161
|
-
>;
|
|
140
|
+
} & Record<`${'link' | 'background'}${any}`, any>;
|
|
162
141
|
|
|
163
142
|
export type PoptipInteraction = {
|
|
164
143
|
type?: 'poptip';
|
|
@@ -168,14 +147,11 @@ export type PoptipInteraction = {
|
|
|
168
147
|
|
|
169
148
|
export type LegendFilterInteraction = {
|
|
170
149
|
type?: 'legendFilter';
|
|
171
|
-
|
|
172
|
-
[key: string]: any; // @todo
|
|
173
|
-
} & Record<`${'marker' | 'label'}Unselected${any}`, any>;
|
|
150
|
+
};
|
|
174
151
|
|
|
175
152
|
export type LegendHighlightInteraction = {
|
|
176
153
|
type?: 'legendHighlight';
|
|
177
|
-
|
|
178
|
-
} & Record<`${'marker' | 'label'}Unhighlighted${any}`, any>;
|
|
154
|
+
};
|
|
179
155
|
|
|
180
156
|
export type ChartIndexInteraction = {
|
|
181
157
|
type?: 'chartIndex';
|
package/src/spec/theme.ts
CHANGED
|
@@ -3,9 +3,29 @@ import {
|
|
|
3
3
|
ThemeComponent,
|
|
4
4
|
} from '../runtime/types/component';
|
|
5
5
|
|
|
6
|
-
export type Theme =
|
|
6
|
+
export type Theme =
|
|
7
|
+
| ClassicTheme
|
|
8
|
+
| ClassicDarkTheme
|
|
9
|
+
| LightTheme
|
|
10
|
+
| DarkTheme
|
|
11
|
+
| AcademyTheme
|
|
12
|
+
| CustomTheme;
|
|
7
13
|
|
|
8
|
-
export type ThemeTypes =
|
|
14
|
+
export type ThemeTypes =
|
|
15
|
+
| 'classic'
|
|
16
|
+
| 'classicDark'
|
|
17
|
+
| 'light'
|
|
18
|
+
| 'dark'
|
|
19
|
+
| 'academy'
|
|
20
|
+
| ThemeComponent;
|
|
21
|
+
|
|
22
|
+
export type ClassicTheme = {
|
|
23
|
+
type?: 'classic';
|
|
24
|
+
} & ThemeOptions;
|
|
25
|
+
|
|
26
|
+
export type ClassicDarkTheme = {
|
|
27
|
+
type?: 'classicDark';
|
|
28
|
+
} & ThemeOptions;
|
|
9
29
|
|
|
10
30
|
export type LightTheme = {
|
|
11
31
|
type?: 'light';
|
package/src/stdlib/index.ts
CHANGED
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
HollowPath,
|
|
111
111
|
Shape as CustomShape,
|
|
112
112
|
} from '../shape';
|
|
113
|
-
import {
|
|
113
|
+
import { Classic, ClassicDark, Academy } from '../theme';
|
|
114
114
|
import {
|
|
115
115
|
AxisLinear,
|
|
116
116
|
AxisArc,
|
|
@@ -424,8 +424,8 @@ export function createLibrary(): G2Library {
|
|
|
424
424
|
'shape.rangeY.range': RectShape,
|
|
425
425
|
'shape.path.path': PathShape,
|
|
426
426
|
'shape.path.hollow': HollowPath,
|
|
427
|
-
'theme.classic':
|
|
428
|
-
'theme.classicDark':
|
|
427
|
+
'theme.classic': Classic,
|
|
428
|
+
'theme.classicDark': ClassicDark,
|
|
429
429
|
'theme.academy': Academy,
|
|
430
430
|
'component.axisX': AxisX,
|
|
431
431
|
'component.axisY': AxisY,
|
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
|
-
showArrow: false,
|
|
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,26 +324,31 @@ 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,
|