@antv/g2 5.0.0-beta.4 → 5.0.0-beta.6
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/dist/g2-lite.min.js +5 -2
- package/dist/g2.min.js +5 -2
- package/esm/api/chart.d.ts +4 -0
- package/esm/api/chart.js +26 -4
- package/esm/api/chart.js.map +1 -1
- package/esm/api/mark/mark.js +1 -2
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +1 -2
- package/esm/component/axis.js +23 -9
- package/esm/component/axis.js.map +1 -1
- package/esm/component/index.d.ts +2 -0
- package/esm/component/index.js +2 -0
- package/esm/component/index.js.map +1 -1
- package/esm/component/scrollbar.d.ts +9 -0
- package/esm/component/scrollbar.js +36 -0
- package/esm/component/scrollbar.js.map +1 -0
- package/esm/component/scrollbarX.d.ts +7 -0
- package/esm/component/scrollbarX.js +9 -0
- package/esm/component/scrollbarX.js.map +1 -0
- package/esm/component/scrollbarY.d.ts +7 -0
- package/esm/component/scrollbarY.js +9 -0
- package/esm/component/scrollbarY.js.map +1 -0
- package/esm/component/slider.js +2 -4
- package/esm/component/slider.js.map +1 -1
- package/esm/component/title.js +46 -22
- package/esm/component/title.js.map +1 -1
- package/esm/composition/mark.js +2 -1
- package/esm/composition/mark.js.map +1 -1
- package/esm/data/fold.js +4 -10
- package/esm/data/fold.js.map +1 -1
- package/esm/data/index.d.ts +2 -2
- package/esm/data/index.js +1 -1
- package/esm/data/index.js.map +1 -1
- package/esm/data/pick.js +10 -2
- package/esm/data/pick.js.map +1 -1
- package/esm/data/slice.d.ts +8 -0
- package/esm/data/slice.js +10 -0
- package/esm/data/slice.js.map +1 -0
- package/esm/interaction/builtin/brushHighlight.d.ts +1 -1
- package/esm/interaction/index.d.ts +8 -0
- package/esm/interaction/index.js +7 -30
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/native/brushAxisHighlight.d.ts +26 -0
- package/esm/interaction/native/brushAxisHighlight.js +159 -0
- package/esm/interaction/native/brushAxisHighlight.js.map +1 -0
- package/esm/interaction/native/brushFilter.d.ts +12 -0
- package/esm/interaction/native/brushFilter.js +147 -0
- package/esm/interaction/native/brushFilter.js.map +1 -0
- package/esm/interaction/native/brushHighlight.d.ts +40 -0
- package/esm/interaction/native/brushHighlight.js +341 -0
- package/esm/interaction/native/brushHighlight.js.map +1 -0
- package/esm/interaction/native/brushXFilter.d.ts +1 -0
- package/esm/interaction/native/brushXFilter.js +6 -0
- package/esm/interaction/native/brushXFilter.js.map +1 -0
- package/esm/interaction/native/brushXHighlight.d.ts +6 -0
- package/esm/interaction/native/brushXHighlight.js +9 -0
- package/esm/interaction/native/brushXHighlight.js.map +1 -0
- package/esm/interaction/native/brushYFilter.d.ts +1 -0
- package/esm/interaction/native/brushYFilter.js +6 -0
- package/esm/interaction/native/brushYFilter.js.map +1 -0
- package/esm/interaction/native/brushYHighlight.d.ts +6 -0
- package/esm/interaction/native/brushYHighlight.js +9 -0
- package/esm/interaction/native/brushYHighlight.js.map +1 -0
- package/esm/interaction/native/legendFilter.js +3 -12
- package/esm/interaction/native/legendFilter.js.map +1 -1
- package/esm/interaction/native/tooltip.js +101 -32
- package/esm/interaction/native/tooltip.js.map +1 -1
- package/esm/interaction/native/utils.d.ts +8 -0
- package/esm/interaction/native/utils.js +31 -0
- package/esm/interaction/native/utils.js.map +1 -1
- package/esm/label-transform/contrastReverse.d.ts +9 -0
- package/esm/label-transform/contrastReverse.js +48 -0
- package/esm/label-transform/contrastReverse.js.map +1 -0
- package/esm/label-transform/index.d.ts +8 -8
- package/esm/label-transform/index.js +4 -4
- package/esm/label-transform/index.js.map +1 -1
- package/esm/label-transform/overflowHide.d.ts +7 -0
- package/esm/label-transform/overflowHide.js +18 -0
- package/esm/label-transform/overflowHide.js.map +1 -0
- package/esm/label-transform/overlapDodgeY.d.ts +7 -0
- package/esm/label-transform/{dodgeY.js → overlapDodgeY.js} +4 -4
- package/esm/label-transform/overlapDodgeY.js.map +1 -0
- package/esm/label-transform/overlapHide.d.ts +7 -0
- package/esm/label-transform/overlapHide.js +24 -0
- package/esm/label-transform/overlapHide.js.map +1 -0
- package/esm/mark/area.js +1 -1
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/boxplot.js +5 -18
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/runtime/component.js +33 -38
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/layout.js +7 -7
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/plot.js +28 -6
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.d.ts +0 -1
- package/esm/runtime/render.js +4 -34
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.js +17 -5
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.js +16 -6
- package/esm/runtime/transform.js.map +1 -1
- package/esm/runtime/types/common.d.ts +27 -9
- package/esm/runtime/types/options.d.ts +3 -5
- package/esm/runtime/types/theme.d.ts +2 -5
- package/esm/shape/area/curve.js +15 -8
- package/esm/shape/area/curve.js.map +1 -1
- package/esm/shape/box/box.js +1 -1
- package/esm/shape/box/box.js.map +1 -1
- package/esm/shape/connector/connector.js +2 -2
- package/esm/shape/connector/connector.js.map +1 -1
- package/esm/shape/image/image.js +2 -2
- package/esm/shape/image/image.js.map +1 -1
- package/esm/shape/interval/color.js +3 -1
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/shape/label/label.js +3 -3
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/label/position/area.d.ts +13 -0
- package/esm/shape/label/position/area.js +28 -0
- package/esm/shape/label/position/area.js.map +1 -0
- package/esm/shape/label/position/bottom.d.ts +1 -0
- package/esm/shape/label/position/bottom.js +2 -0
- package/esm/shape/label/position/bottom.js.map +1 -0
- package/esm/shape/label/position/bottomLeft.d.ts +1 -0
- package/esm/shape/label/position/bottomLeft.js +2 -0
- package/esm/shape/label/position/bottomLeft.js.map +1 -0
- package/esm/shape/label/position/bottomRight.d.ts +1 -0
- package/esm/shape/label/position/bottomRight.js +2 -0
- package/esm/shape/label/position/bottomRight.js.map +1 -0
- package/esm/shape/label/position/default.d.ts +18 -0
- package/esm/shape/label/position/default.js +107 -0
- package/esm/shape/label/position/default.js.map +1 -0
- package/esm/shape/label/position/index.d.ts +13 -0
- package/esm/shape/label/position/index.js +14 -0
- package/esm/shape/label/position/index.js.map +1 -0
- package/esm/shape/label/position/inside.d.ts +1 -0
- package/esm/shape/label/position/inside.js +2 -0
- package/esm/shape/label/position/inside.js.map +1 -0
- package/esm/shape/label/position/left.d.ts +1 -0
- package/esm/shape/label/position/left.js +2 -0
- package/esm/shape/label/position/left.js.map +1 -0
- package/esm/shape/label/position/outside.d.ts +18 -0
- package/esm/shape/label/position/outside.js +67 -0
- package/esm/shape/label/position/outside.js.map +1 -0
- package/esm/shape/label/position/right.d.ts +1 -0
- package/esm/shape/label/position/right.js +2 -0
- package/esm/shape/label/position/right.js.map +1 -0
- package/esm/shape/label/position/spider.d.ts +7 -0
- package/esm/shape/label/position/spider.js +34 -0
- package/esm/shape/label/position/spider.js.map +1 -0
- package/esm/shape/label/position/surround.d.ts +7 -0
- package/esm/shape/label/position/surround.js +35 -0
- package/esm/shape/label/position/surround.js.map +1 -0
- package/esm/shape/label/position/top.d.ts +1 -0
- package/esm/shape/label/position/top.js +2 -0
- package/esm/shape/label/position/top.js.map +1 -0
- package/esm/shape/label/position/topLeft.d.ts +1 -0
- package/esm/shape/label/position/topLeft.js +2 -0
- package/esm/shape/label/position/topLeft.js.map +1 -0
- package/esm/shape/label/position/topRight.d.ts +1 -0
- package/esm/shape/label/position/topRight.js +2 -0
- package/esm/shape/label/position/topRight.js.map +1 -0
- package/esm/shape/line/curve.js +1 -1
- package/esm/shape/line/curve.js.map +1 -1
- package/esm/shape/lineXY/line.js +2 -2
- package/esm/shape/lineXY/line.js.map +1 -1
- package/esm/shape/link/arc.js +2 -2
- package/esm/shape/link/arc.js.map +1 -1
- package/esm/shape/link/link.js +2 -2
- package/esm/shape/link/link.js.map +1 -1
- package/esm/shape/link/smooth.js +2 -2
- package/esm/shape/link/smooth.js.map +1 -1
- package/esm/shape/link/vhv.js +2 -2
- package/esm/shape/link/vhv.js.map +1 -1
- package/esm/shape/point/color.js +1 -1
- package/esm/shape/point/color.js.map +1 -1
- package/esm/shape/polygon/polygon.js +3 -3
- package/esm/shape/polygon/polygon.js.map +1 -1
- package/esm/shape/polygon/ribbon.js +3 -3
- package/esm/shape/polygon/ribbon.js.map +1 -1
- package/esm/shape/text/advance.js +1 -1
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/shape/text/badge.js +3 -3
- package/esm/shape/text/badge.js.map +1 -1
- package/esm/shape/text/text.js +1 -1
- package/esm/shape/text/text.js.map +1 -1
- package/esm/shape/utils.d.ts +4 -0
- package/esm/shape/utils.js +6 -1
- package/esm/shape/utils.js.map +1 -1
- package/esm/shape/vector/vector.js +3 -3
- package/esm/shape/vector/vector.js.map +1 -1
- package/esm/spec/composition.d.ts +2 -0
- package/esm/spec/data.d.ts +24 -9
- package/esm/spec/geometry.d.ts +2 -1
- package/esm/spec/interaction.d.ts +41 -6
- package/esm/spec/labelTransform.d.ts +24 -11
- package/esm/spec/theme.d.ts +5 -2
- package/esm/stdlib/index.js +8 -9
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/academy.d.ts +3 -0
- package/esm/theme/academy.js +398 -0
- package/esm/theme/academy.js.map +1 -0
- package/esm/theme/dark.js +14 -20
- package/esm/theme/dark.js.map +1 -1
- package/esm/theme/index.d.ts +1 -0
- package/esm/theme/index.js +1 -0
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/light.js +29 -22
- package/esm/theme/light.js.map +1 -1
- package/esm/transform/maybeTooltip.js +3 -1
- package/esm/transform/maybeTooltip.js.map +1 -1
- package/esm/utils/bounds.d.ts +26 -0
- package/esm/utils/bounds.js +41 -0
- package/esm/utils/bounds.js.map +1 -0
- package/esm/utils/color.d.ts +6 -0
- package/esm/utils/color.js +7 -0
- package/esm/utils/color.js.map +1 -0
- package/esm/utils/coordinate.d.ts +1 -0
- package/esm/utils/coordinate.js +12 -0
- package/esm/utils/coordinate.js.map +1 -1
- package/esm/utils/helper.d.ts +1 -0
- package/esm/utils/helper.js +3 -0
- package/esm/utils/helper.js.map +1 -1
- package/lib/api/chart.d.ts +4 -0
- package/lib/api/chart.js +26 -4
- package/lib/api/chart.js.map +1 -1
- package/lib/api/mark/mark.js +1 -2
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +1 -2
- package/lib/component/axis.js +23 -9
- package/lib/component/axis.js.map +1 -1
- package/lib/component/index.d.ts +2 -0
- package/lib/component/index.js +5 -1
- package/lib/component/index.js.map +1 -1
- package/lib/component/scrollbar.d.ts +9 -0
- package/lib/component/scrollbar.js +40 -0
- package/lib/component/scrollbar.js.map +1 -0
- package/lib/component/scrollbarX.d.ts +7 -0
- package/lib/component/scrollbarX.js +13 -0
- package/lib/component/scrollbarX.js.map +1 -0
- package/lib/component/scrollbarY.d.ts +7 -0
- package/lib/component/scrollbarY.js +13 -0
- package/lib/component/scrollbarY.js.map +1 -0
- package/lib/component/slider.js +2 -4
- package/lib/component/slider.js.map +1 -1
- package/lib/component/title.js +46 -22
- package/lib/component/title.js.map +1 -1
- package/lib/composition/mark.js +2 -1
- package/lib/composition/mark.js.map +1 -1
- package/lib/data/fold.js +4 -10
- package/lib/data/fold.js.map +1 -1
- package/lib/data/index.d.ts +2 -2
- package/lib/data/index.js +3 -3
- package/lib/data/index.js.map +1 -1
- package/lib/data/pick.js +10 -2
- package/lib/data/pick.js.map +1 -1
- package/lib/data/slice.d.ts +8 -0
- package/lib/data/slice.js +14 -0
- package/lib/data/slice.js.map +1 -0
- package/lib/interaction/builtin/brushHighlight.d.ts +1 -1
- package/lib/interaction/index.d.ts +8 -0
- package/lib/interaction/index.js +15 -31
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/native/brushAxisHighlight.d.ts +26 -0
- package/lib/interaction/native/brushAxisHighlight.js +164 -0
- package/lib/interaction/native/brushAxisHighlight.js.map +1 -0
- package/lib/interaction/native/brushFilter.d.ts +12 -0
- package/lib/interaction/native/brushFilter.js +152 -0
- package/lib/interaction/native/brushFilter.js.map +1 -0
- package/lib/interaction/native/brushHighlight.d.ts +40 -0
- package/lib/interaction/native/brushHighlight.js +347 -0
- package/lib/interaction/native/brushHighlight.js.map +1 -0
- package/lib/interaction/native/brushXFilter.d.ts +1 -0
- package/lib/interaction/native/brushXFilter.js +10 -0
- package/lib/interaction/native/brushXFilter.js.map +1 -0
- package/lib/interaction/native/brushXHighlight.d.ts +6 -0
- package/lib/interaction/native/brushXHighlight.js +14 -0
- package/lib/interaction/native/brushXHighlight.js.map +1 -0
- package/lib/interaction/native/brushYFilter.d.ts +1 -0
- package/lib/interaction/native/brushYFilter.js +10 -0
- package/lib/interaction/native/brushYFilter.js.map +1 -0
- package/lib/interaction/native/brushYHighlight.d.ts +6 -0
- package/lib/interaction/native/brushYHighlight.js +14 -0
- package/lib/interaction/native/brushYHighlight.js.map +1 -0
- package/lib/interaction/native/legendFilter.js +4 -13
- package/lib/interaction/native/legendFilter.js.map +1 -1
- package/lib/interaction/native/tooltip.js +98 -29
- package/lib/interaction/native/tooltip.js.map +1 -1
- package/lib/interaction/native/utils.d.ts +8 -0
- package/lib/interaction/native/utils.js +37 -1
- package/lib/interaction/native/utils.js.map +1 -1
- package/lib/label-transform/contrastReverse.d.ts +9 -0
- package/lib/label-transform/contrastReverse.js +52 -0
- package/lib/label-transform/contrastReverse.js.map +1 -0
- package/lib/label-transform/index.d.ts +8 -8
- package/lib/label-transform/index.js +9 -9
- package/lib/label-transform/index.js.map +1 -1
- package/lib/label-transform/overflowHide.d.ts +7 -0
- package/lib/label-transform/overflowHide.js +22 -0
- package/lib/label-transform/overflowHide.js.map +1 -0
- package/lib/label-transform/overlapDodgeY.d.ts +7 -0
- package/lib/label-transform/{dodgeY.js → overlapDodgeY.js} +6 -6
- package/lib/label-transform/overlapDodgeY.js.map +1 -0
- package/lib/label-transform/overlapHide.d.ts +7 -0
- package/lib/label-transform/overlapHide.js +28 -0
- package/lib/label-transform/overlapHide.js.map +1 -0
- package/lib/mark/area.js +1 -1
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/boxplot.js +5 -18
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/runtime/component.js +33 -38
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/layout.js +7 -7
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/plot.js +28 -6
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.d.ts +0 -1
- package/lib/runtime/render.js +4 -35
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.js +16 -4
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.js +16 -6
- package/lib/runtime/transform.js.map +1 -1
- package/lib/runtime/types/common.d.ts +27 -9
- package/lib/runtime/types/options.d.ts +3 -5
- package/lib/runtime/types/theme.d.ts +2 -5
- package/lib/shape/area/curve.js +14 -7
- package/lib/shape/area/curve.js.map +1 -1
- package/lib/shape/box/box.js +1 -1
- package/lib/shape/box/box.js.map +1 -1
- package/lib/shape/connector/connector.js +2 -2
- package/lib/shape/connector/connector.js.map +1 -1
- package/lib/shape/image/image.js +2 -2
- package/lib/shape/image/image.js.map +1 -1
- package/lib/shape/interval/color.js +3 -1
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/shape/label/label.js +3 -3
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/label/position/area.d.ts +13 -0
- package/lib/shape/label/position/area.js +32 -0
- package/lib/shape/label/position/area.js.map +1 -0
- package/lib/shape/label/position/bottom.d.ts +1 -0
- package/lib/shape/label/position/bottom.js +6 -0
- package/lib/shape/label/position/bottom.js.map +1 -0
- package/lib/shape/label/position/bottomLeft.d.ts +1 -0
- package/lib/shape/label/position/bottomLeft.js +6 -0
- package/lib/shape/label/position/bottomLeft.js.map +1 -0
- package/lib/shape/label/position/bottomRight.d.ts +1 -0
- package/lib/shape/label/position/bottomRight.js +6 -0
- package/lib/shape/label/position/bottomRight.js.map +1 -0
- package/lib/shape/label/position/default.d.ts +18 -0
- package/lib/shape/label/{position.js → position/default.js} +24 -81
- package/lib/shape/label/position/default.js.map +1 -0
- package/lib/shape/label/position/index.d.ts +13 -0
- package/lib/shape/label/position/index.js +30 -0
- package/lib/shape/label/position/index.js.map +1 -0
- package/lib/shape/label/position/inside.d.ts +1 -0
- package/lib/shape/label/position/inside.js +6 -0
- package/lib/shape/label/position/inside.js.map +1 -0
- package/lib/shape/label/position/left.d.ts +1 -0
- package/lib/shape/label/position/left.js +6 -0
- package/lib/shape/label/position/left.js.map +1 -0
- package/lib/shape/label/position/outside.d.ts +18 -0
- package/lib/shape/label/position/outside.js +75 -0
- package/lib/shape/label/position/outside.js.map +1 -0
- package/lib/shape/label/position/right.d.ts +1 -0
- package/lib/shape/label/position/right.js +6 -0
- package/lib/shape/label/position/right.js.map +1 -0
- package/lib/shape/label/position/spider.d.ts +7 -0
- package/lib/shape/label/position/spider.js +38 -0
- package/lib/shape/label/position/spider.js.map +1 -0
- package/lib/shape/label/position/surround.d.ts +7 -0
- package/lib/shape/label/position/surround.js +39 -0
- package/lib/shape/label/position/surround.js.map +1 -0
- package/lib/shape/label/position/top.d.ts +1 -0
- package/lib/shape/label/position/top.js +6 -0
- package/lib/shape/label/position/top.js.map +1 -0
- package/lib/shape/label/position/topLeft.d.ts +1 -0
- package/lib/shape/label/position/topLeft.js +6 -0
- package/lib/shape/label/position/topLeft.js.map +1 -0
- package/lib/shape/label/position/topRight.d.ts +1 -0
- package/lib/shape/label/position/topRight.js +6 -0
- package/lib/shape/label/position/topRight.js.map +1 -0
- package/lib/shape/line/curve.js +1 -1
- package/lib/shape/line/curve.js.map +1 -1
- package/lib/shape/lineXY/line.js +2 -2
- package/lib/shape/lineXY/line.js.map +1 -1
- package/lib/shape/link/arc.js +2 -2
- package/lib/shape/link/arc.js.map +1 -1
- package/lib/shape/link/link.js +2 -2
- package/lib/shape/link/link.js.map +1 -1
- package/lib/shape/link/smooth.js +2 -2
- package/lib/shape/link/smooth.js.map +1 -1
- package/lib/shape/link/vhv.js +2 -2
- package/lib/shape/link/vhv.js.map +1 -1
- package/lib/shape/point/color.js +1 -1
- package/lib/shape/point/color.js.map +1 -1
- package/lib/shape/polygon/polygon.js +3 -3
- package/lib/shape/polygon/polygon.js.map +1 -1
- package/lib/shape/polygon/ribbon.js +3 -3
- package/lib/shape/polygon/ribbon.js.map +1 -1
- package/lib/shape/text/advance.js +1 -1
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/shape/text/badge.js +3 -3
- package/lib/shape/text/badge.js.map +1 -1
- package/lib/shape/text/text.js +1 -1
- package/lib/shape/text/text.js.map +1 -1
- package/lib/shape/utils.d.ts +4 -0
- package/lib/shape/utils.js +6 -1
- package/lib/shape/utils.js.map +1 -1
- package/lib/shape/vector/vector.js +3 -3
- package/lib/shape/vector/vector.js.map +1 -1
- package/lib/spec/composition.d.ts +2 -0
- package/lib/spec/data.d.ts +24 -9
- package/lib/spec/geometry.d.ts +2 -1
- package/lib/spec/interaction.d.ts +41 -6
- package/lib/spec/labelTransform.d.ts +24 -11
- package/lib/spec/theme.d.ts +5 -2
- package/lib/stdlib/index.js +3 -4
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/academy.d.ts +3 -0
- package/lib/theme/academy.js +402 -0
- package/lib/theme/academy.js.map +1 -0
- package/lib/theme/dark.js +14 -20
- package/lib/theme/dark.js.map +1 -1
- package/lib/theme/index.d.ts +1 -0
- package/lib/theme/index.js +3 -1
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/light.js +29 -22
- package/lib/theme/light.js.map +1 -1
- package/lib/transform/maybeTooltip.js +3 -1
- package/lib/transform/maybeTooltip.js.map +1 -1
- package/lib/utils/bounds.d.ts +26 -0
- package/lib/utils/bounds.js +48 -0
- package/lib/utils/bounds.js.map +1 -0
- package/lib/utils/color.d.ts +6 -0
- package/lib/utils/color.js +11 -0
- package/lib/utils/color.js.map +1 -0
- package/lib/utils/coordinate.d.ts +1 -0
- package/lib/utils/coordinate.js +14 -1
- package/lib/utils/coordinate.js.map +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/helper.js +5 -1
- package/lib/utils/helper.js.map +1 -1
- package/package.json +2 -2
- package/src/api/chart.ts +29 -8
- package/src/api/mark/mark.ts +1 -2
- package/src/api/mark/types.ts +1 -2
- package/src/component/axis.ts +38 -16
- package/src/component/index.ts +2 -0
- package/src/component/scrollbar.ts +41 -0
- package/src/component/scrollbarX.ts +16 -0
- package/src/component/scrollbarY.ts +16 -0
- package/src/component/slider.ts +1 -3
- package/src/component/title.ts +69 -30
- package/src/composition/mark.ts +2 -0
- package/src/data/fold.ts +6 -10
- package/src/data/index.ts +2 -2
- package/src/data/pick.ts +11 -2
- package/src/data/slice.ts +15 -0
- package/src/interaction/index.ts +23 -16
- package/src/interaction/native/brushAxisHighlight.ts +194 -0
- package/src/interaction/native/brushFilter.ts +163 -0
- package/src/interaction/native/brushHighlight.ts +419 -0
- package/src/interaction/native/brushXFilter.ts +9 -0
- package/src/interaction/native/brushXHighlight.ts +13 -0
- package/src/interaction/native/brushYFilter.ts +9 -0
- package/src/interaction/native/brushYHighlight.ts +13 -0
- package/src/interaction/native/legendFilter.ts +3 -14
- package/src/interaction/native/tooltip.ts +128 -38
- package/src/interaction/native/utils.ts +40 -0
- package/src/label-transform/contrastReverse.ts +56 -0
- package/src/label-transform/index.ts +8 -8
- package/src/label-transform/overflowHide.ts +23 -0
- package/src/label-transform/{dodgeY.ts → overlapDodgeY.ts} +6 -6
- package/src/label-transform/overlapHide.ts +32 -0
- package/src/mark/area.ts +1 -1
- package/src/mark/boxplot.ts +3 -1
- package/src/runtime/component.ts +46 -47
- package/src/runtime/layout.ts +6 -6
- package/src/runtime/plot.ts +40 -6
- package/src/runtime/render.ts +6 -58
- package/src/runtime/scale.ts +15 -7
- package/src/runtime/transform.ts +19 -6
- package/src/runtime/types/common.ts +27 -10
- package/src/runtime/types/options.ts +3 -5
- package/src/runtime/types/theme.ts +2 -5
- package/src/shape/area/curve.ts +15 -8
- package/src/shape/box/box.ts +6 -6
- package/src/shape/connector/connector.ts +2 -3
- package/src/shape/image/image.ts +2 -2
- package/src/shape/interval/color.ts +2 -1
- package/src/shape/label/label.ts +4 -3
- package/src/shape/label/position/area.ts +39 -0
- package/src/shape/label/position/bottom.ts +1 -0
- package/src/shape/label/position/bottomLeft.ts +1 -0
- package/src/shape/label/position/bottomRight.ts +1 -0
- package/src/shape/label/{position.ts → position/default.ts} +26 -110
- package/src/shape/label/position/index.ts +13 -0
- package/src/shape/label/position/inside.ts +1 -0
- package/src/shape/label/position/left.ts +1 -0
- package/src/shape/label/position/outside.ts +121 -0
- package/src/shape/label/position/right.ts +1 -0
- package/src/shape/label/position/spider.ts +39 -0
- package/src/shape/label/position/surround.ts +40 -0
- package/src/shape/label/position/top.ts +1 -0
- package/src/shape/label/position/topLeft.ts +1 -0
- package/src/shape/label/position/topRight.ts +1 -0
- package/src/shape/line/curve.ts +1 -1
- package/src/shape/lineXY/line.ts +2 -2
- package/src/shape/link/arc.ts +2 -2
- package/src/shape/link/link.ts +2 -2
- package/src/shape/link/smooth.ts +2 -2
- package/src/shape/link/vhv.ts +2 -2
- package/src/shape/point/color.ts +6 -5
- package/src/shape/polygon/polygon.ts +3 -3
- package/src/shape/polygon/ribbon.ts +3 -3
- package/src/shape/text/advance.ts +4 -1
- package/src/shape/text/badge.ts +8 -3
- package/src/shape/text/text.ts +1 -1
- package/src/shape/utils.ts +6 -5
- package/src/shape/vector/vector.ts +3 -3
- package/src/spec/action.ts +0 -1
- package/src/spec/composition.ts +2 -0
- package/src/spec/data.ts +25 -10
- package/src/spec/geometry.ts +3 -1
- package/src/spec/interaction.ts +59 -5
- package/src/spec/labelTransform.ts +29 -11
- package/src/spec/theme.ts +6 -2
- package/src/stdlib/index.ts +33 -9
- package/src/theme/academy.ts +404 -0
- package/src/theme/dark.ts +14 -20
- package/src/theme/index.ts +1 -0
- package/src/theme/light.ts +29 -22
- package/src/transform/maybeTooltip.ts +3 -1
- package/src/utils/bounds.ts +52 -0
- package/src/utils/color.ts +12 -0
- package/src/utils/coordinate.ts +12 -0
- package/src/utils/helper.ts +4 -0
- package/esm/data/subset.d.ts +0 -7
- package/esm/data/subset.js +0 -26
- package/esm/data/subset.js.map +0 -1
- package/esm/label-transform/dodgeY.d.ts +0 -7
- package/esm/label-transform/dodgeY.js.map +0 -1
- package/esm/label-transform/hideOverlap.d.ts +0 -4
- package/esm/label-transform/hideOverlap.js +0 -48
- package/esm/label-transform/hideOverlap.js.map +0 -1
- package/esm/label-transform/spider.d.ts +0 -7
- package/esm/label-transform/spider.js +0 -30
- package/esm/label-transform/spider.js.map +0 -1
- package/esm/label-transform/surround.d.ts +0 -7
- package/esm/label-transform/surround.js +0 -30
- package/esm/label-transform/surround.js.map +0 -1
- package/esm/shape/label/position.d.ts +0 -25
- package/esm/shape/label/position.js +0 -169
- package/esm/shape/label/position.js.map +0 -1
- package/lib/data/subset.d.ts +0 -7
- package/lib/data/subset.js +0 -30
- package/lib/data/subset.js.map +0 -1
- package/lib/label-transform/dodgeY.d.ts +0 -7
- package/lib/label-transform/dodgeY.js.map +0 -1
- package/lib/label-transform/hideOverlap.d.ts +0 -4
- package/lib/label-transform/hideOverlap.js +0 -52
- package/lib/label-transform/hideOverlap.js.map +0 -1
- package/lib/label-transform/spider.d.ts +0 -7
- package/lib/label-transform/spider.js +0 -34
- package/lib/label-transform/spider.js.map +0 -1
- package/lib/label-transform/surround.d.ts +0 -7
- package/lib/label-transform/surround.js +0 -34
- package/lib/label-transform/surround.js.map +0 -1
- package/lib/shape/label/position.d.ts +0 -25
- package/lib/shape/label/position.js.map +0 -1
- package/src/data/subset.ts +0 -35
- package/src/label-transform/hideOverlap.ts +0 -62
- package/src/label-transform/spider.ts +0 -37
- package/src/label-transform/surround.ts +0 -37
|
@@ -1 +1 @@
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AO,EAAtB,EAAY,CAAU,CAAC;IAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAC5C,MAAM,KAAkC,IAAA,qBAAa,EACnD,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,CACb,EALK,EAAE,YAAY,OAKnB,EALwB,UAAU,cAA7B,gBAA+B,CAKpC,CAAC;QACF,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;QAEnC,MAAM,SAAS,GAAG;YAChB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;YAClB,MAAM,EAAE,KAAK,IAAI,YAAY;YAC7B,IAAI,EAAE,KAAK,IAAI,YAAY;SAC5B,CAAC;QAEF,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAA,kBAAM,EAAC,IAAI,UAAU,EAAE,CAAC;aAC5B,IAAI,CAAC,kBAAU,EAAE,UAAU,CAAC;aAC5B,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC;aACd,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC;aACd,IAAI,CAAC,kBAAU,EAAE,SAAS,CAAC;aAC3B,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,KAAK,SA2BhB;AAEF,aAAK,CAAC,KAAK,GAAG;IACZ,qBAAqB,EAAE,QAAQ;IAC/B,sBAAsB,EAAE,UAAU;IAClC,oBAAoB,EAAE,SAAS;CAChC,CAAC"}
|
package/lib/shape/text/text.js
CHANGED
|
@@ -22,7 +22,7 @@ const Text = (options) => {
|
|
|
22
22
|
const style = __rest(options, []);
|
|
23
23
|
return (points, value, coordinate, theme) => {
|
|
24
24
|
const { mark, shape, defaultShape } = value;
|
|
25
|
-
const shapeTheme = (0, utils_1.getShapeTheme)(theme, mark, shape, defaultShape);
|
|
25
|
+
const shapeTheme = __rest((0, utils_1.getShapeTheme)(theme, mark, shape, defaultShape), []);
|
|
26
26
|
const { color, text = '', fontSize, rotate = 0, transform = '' } = value;
|
|
27
27
|
const textStyle = {
|
|
28
28
|
text: String(text),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"src/","sources":["shape/text/text.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,6CAA8D;AAC9D,qDAA+C;AAC/C,uCAAoC;AAIpC;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,EAAE;IAC/C,MAAW,KAAK,UAAK,OAAO,EAAtB,EAAY,CAAU,CAAC;IAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAC5C,
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"src/","sources":["shape/text/text.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,6CAA8D;AAC9D,qDAA+C;AAC/C,uCAAoC;AAIpC;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,EAAE;IAC/C,MAAW,KAAK,UAAK,OAAO,EAAtB,EAAY,CAAU,CAAC;IAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAC5C,MAAW,UAAU,UAAK,IAAA,qBAAa,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,EAAnE,EAAiB,CAAkD,CAAC;QAC1E,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;QAEzE,MAAM,SAAS,GAAG;YAChB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,KAAK;YACX,QAAQ;SACT,CAAC;QAEF,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC;QAE1B,OAAO,IAAA,kBAAM,EAAC,IAAI,iBAAO,EAAE,CAAC;aACzB,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC;aACd,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC;aACd,IAAI,CAAC,kBAAU,EAAE,UAAU,CAAC;aAC5B,KAAK,CAAC,WAAW,EAAE,GAAG,SAAS,UAAU,CAAC,MAAM,MAAM,CAAC;aACvD,KAAK,CAAC,aAAa,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;aAC5C,IAAI,CAAC,kBAAU,EAAE,SAAS,CAAC;aAC3B,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,IAAI,QA0Bf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,qBAAqB,EAAE,QAAQ;IAC/B,sBAAsB,EAAE,UAAU;IAClC,oBAAoB,EAAE,SAAS;CAChC,CAAC"}
|
package/lib/shape/utils.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export declare function getArcObject(coordinate: Coordinate, points: Vector2[],
|
|
|
56
56
|
innerRadius: number;
|
|
57
57
|
outerRadius: number;
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Get the mark.shape's style object.
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
59
63
|
export declare function getShapeTheme(theme: G2Theme, mark: string, shape: string, defaultShape: string): any;
|
|
60
64
|
/**
|
|
61
65
|
* Pick connectStyle from style.
|
package/lib/shape/utils.js
CHANGED
|
@@ -123,10 +123,15 @@ function getArcObject(coordinate, points, Y) {
|
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
exports.getArcObject = getArcObject;
|
|
126
|
+
/**
|
|
127
|
+
* Get the mark.shape's style object.
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
126
130
|
function getShapeTheme(theme, mark, shape, defaultShape) {
|
|
127
131
|
const { defaultColor } = theme;
|
|
128
132
|
const markTheme = theme[mark] || {};
|
|
129
|
-
|
|
133
|
+
const shapeTheme = markTheme[shape] || markTheme[defaultShape];
|
|
134
|
+
return Object.assign({ defaultColor }, shapeTheme);
|
|
130
135
|
}
|
|
131
136
|
exports.getShapeTheme = getShapeTheme;
|
|
132
137
|
/**
|
package/lib/shape/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"src/","sources":["shape/utils.ts"],"names":[],"mappings":";;;AACA,uCAAkC;AAElC,uCAAqC;AACrC,qCAAwC;AAExC,oDAA2D;AAC3D,4CAAsE;AAEtE,0CAAyC;AAkBzC,SAAgB,UAAU,CACxB,SAAoB,EACpB,KAAgC;IAEhC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAChD,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KAC7B;AACH,CAAC;AAPD,gCAOC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAY,EAAE,MAAiB;IAC3D,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CACxB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,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;AAbD,0CAaC;AAED,SAAgB,YAAY,CAAC,OAAO;IAClC,MAAM,EAAE,gBAAgB,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;IAC9C,OAAO,GAAG,gBAAgB,SAAS,CAAC;AACtC,CAAC;AAHD,oCAGC;AAED,SAAgB,YAAY,CAAC,UAAU,EAAE,KAAK;IAC5C,IAAI,CAAC,IAAA,oBAAO,EAAC,UAAU,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAa,CAAC;IACjD,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACpC,OAAO,aAAa,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,EAAE,EAAE,CAAC;AACjE,CAAC;AALD,oCAKC"}
|
|
@@ -23,7 +23,7 @@ const Vector = (options) => {
|
|
|
23
23
|
const { arrowSize = '40%' } = options, style = __rest(options, ["arrowSize"]);
|
|
24
24
|
return (points, value, coordinate, theme) => {
|
|
25
25
|
const { mark, shape, defaultShape, color, transform } = value;
|
|
26
|
-
const _a = (0, utils_1.getShapeTheme)(theme, mark, shape, defaultShape), {
|
|
26
|
+
const _a = (0, utils_1.getShapeTheme)(theme, mark, shape, defaultShape), { defaultColor } = _a, shapeTheme = __rest(_a, ["defaultColor"]);
|
|
27
27
|
const [from, to] = points;
|
|
28
28
|
// Calculate arrow end point.
|
|
29
29
|
const [arrow1, arrow2] = (0, utils_1.arrowPoints)(from, to, { arrowSize });
|
|
@@ -39,8 +39,8 @@ const Vector = (options) => {
|
|
|
39
39
|
return (0, selection_1.select)(new g_1.Path())
|
|
40
40
|
.call(utils_1.applyStyle, shapeTheme)
|
|
41
41
|
.style('d', path.toString())
|
|
42
|
-
.style('stroke', color ||
|
|
43
|
-
.style('fill', color ||
|
|
42
|
+
.style('stroke', color || defaultColor)
|
|
43
|
+
.style('fill', color || defaultColor)
|
|
44
44
|
.style('transform', transform)
|
|
45
45
|
.call(utils_1.applyStyle, style)
|
|
46
46
|
.node();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector.js","sourceRoot":"src/","sources":["shape/vector/vector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+BAA+B;AAC/B,oCAAgF;AAChF,qDAA+C;AAK/C;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,EAAE,SAAS,GAAG,KAAK,KAAe,OAAO,EAAjB,KAAK,UAAK,OAAO,EAAzC,aAA+B,CAAU,CAAC;IAChD,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAC9D,MAAM,KAAkC,IAAA,qBAAa,EACnD,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,CACb,EALK,EAAE,
|
|
1
|
+
{"version":3,"file":"vector.js","sourceRoot":"src/","sources":["shape/vector/vector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+BAA+B;AAC/B,oCAAgF;AAChF,qDAA+C;AAK/C;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,EAAE,SAAS,GAAG,KAAK,KAAe,OAAO,EAAjB,KAAK,UAAK,OAAO,EAAzC,aAA+B,CAAU,CAAC;IAChD,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAC9D,MAAM,KAAkC,IAAA,qBAAa,EACnD,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,CAC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AAC"}
|
|
@@ -12,6 +12,7 @@ type EventType = (...args: any[]) => void;
|
|
|
12
12
|
export type Node = MarkComposition | ViewComposition | SpaceLayerComposition | SpaceFlexComposition | RepeatMatrixComposition | FacetRectComposition | FacetCircleComposition | GeoViewComposition | TimingKeyframeComposition;
|
|
13
13
|
export type MarkComposition = Geometry & {
|
|
14
14
|
title?: Title;
|
|
15
|
+
clip?: boolean;
|
|
15
16
|
};
|
|
16
17
|
export type ViewComposition = {
|
|
17
18
|
type?: 'view';
|
|
@@ -47,6 +48,7 @@ export type ViewComposition = {
|
|
|
47
48
|
legend?: Record<string, any>;
|
|
48
49
|
on?: Record<string, EventType | EventType[]>;
|
|
49
50
|
style?: Record<string, any>;
|
|
51
|
+
clip?: boolean;
|
|
50
52
|
};
|
|
51
53
|
export type SpaceLayerComposition = {
|
|
52
54
|
type?: 'spaceLayer';
|
package/lib/spec/data.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export type InlineConnector = {
|
|
|
14
14
|
value?: any;
|
|
15
15
|
transform?: DataTransform[];
|
|
16
16
|
};
|
|
17
|
-
export type DataTransform = SortByTransform | SortTransform | PickTransform | RenameTransform |
|
|
18
|
-
export type DataTransformTypes = 'sortBy' | 'sort' | 'pick' | 'rename' | '
|
|
17
|
+
export type DataTransform = SortByTransform | SortTransform | PickTransform | RenameTransform | FoldTransform | JoinTransform | FilterDataTransform | MapTransform | SliceTransform | CustomTransform;
|
|
18
|
+
export type DataTransformTypes = 'sortBy' | 'sort' | 'pick' | 'rename' | 'fold' | 'join' | 'filter' | 'map' | 'slice' | 'custom' | DataComponent;
|
|
19
19
|
export type SortByTransform = {
|
|
20
20
|
type?: 'sortBy';
|
|
21
21
|
/** type: [field, order]; order: true => ascend, false => descend */
|
|
@@ -29,12 +29,6 @@ export type RenameTransform = {
|
|
|
29
29
|
type?: 'rename';
|
|
30
30
|
[key: string]: string;
|
|
31
31
|
};
|
|
32
|
-
export type SubsetTransform = {
|
|
33
|
-
type?: 'subset';
|
|
34
|
-
start?: number;
|
|
35
|
-
end?: number;
|
|
36
|
-
fields?: string[];
|
|
37
|
-
};
|
|
38
32
|
export type FilterDataTransform = {
|
|
39
33
|
type?: 'filter';
|
|
40
34
|
/**
|
|
@@ -42,6 +36,17 @@ export type FilterDataTransform = {
|
|
|
42
36
|
*/
|
|
43
37
|
callback?: (v: any, idx: number, arr: any[]) => boolean;
|
|
44
38
|
};
|
|
39
|
+
export type SliceTransform = {
|
|
40
|
+
type?: 'slice';
|
|
41
|
+
/**
|
|
42
|
+
* The start index for slice. Default is 0.
|
|
43
|
+
*/
|
|
44
|
+
start?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The end index for slice. Default is arr.length - 1
|
|
47
|
+
*/
|
|
48
|
+
end?: number;
|
|
49
|
+
};
|
|
45
50
|
export type SortTransform = {
|
|
46
51
|
type?: 'sort';
|
|
47
52
|
/**
|
|
@@ -51,8 +56,18 @@ export type SortTransform = {
|
|
|
51
56
|
};
|
|
52
57
|
export type FoldTransform = {
|
|
53
58
|
type?: 'fold';
|
|
59
|
+
/**
|
|
60
|
+
* Set fields will be folded.
|
|
61
|
+
*/
|
|
54
62
|
fields?: string[];
|
|
55
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Fold key field, default is `key`.
|
|
65
|
+
*/
|
|
66
|
+
key?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Fold value field, default is `value`.
|
|
69
|
+
*/
|
|
70
|
+
value?: string;
|
|
56
71
|
};
|
|
57
72
|
export type CustomDataTransform = {
|
|
58
73
|
type?: 'custom';
|
package/lib/spec/geometry.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Theme } from './theme';
|
|
|
9
9
|
import { ClusterTransform, Data } from './data';
|
|
10
10
|
export type Geometry = IntervalGeometry | RectGeometry | LineGeometry | PointGeometry | TextGeometry | CellGeometry | AreaGeometry | NodeGeometry | EdgeGeometry | ImageGeometry | PolygonGeometry | BoxGeometry | VectorGeometry | LineXMark | LineYMark | RangeMark | RangeXMark | RangeYMark | ConnectorMark | SankeyMark | PathMark | TreemapMark | PackMark | BoxPlotMark | ShapeMark | ForceGraphMark | TreeMark | WordCloudMark | CustomComponent;
|
|
11
11
|
export type GeometryTypes = 'interval' | 'rect' | 'line' | 'point' | 'text' | 'cell' | 'area' | 'node' | 'edge' | 'link' | 'image' | 'polygon' | 'box' | 'vector' | 'lineX' | 'lineY' | 'connector' | 'range' | 'rangeX' | 'rangeY' | 'sankey' | 'path' | 'treemap' | 'pack' | 'boxplot' | 'shape' | 'forceGraph' | 'tree' | 'wordCloud' | MarkComponent;
|
|
12
|
-
export type ChannelTypes = 'x' | 'y' | 'x1' | 'y1' | 'series' | 'color' | 'opacity' | 'shape' | 'enterType' | 'enterEasing' | 'enterDuration' | 'enterDelay' | 'enter' | 'size' | 'tooltip' | 'title' | 'key' | 'groupKey' | 'label' | 'position' | 'series'
|
|
12
|
+
export type ChannelTypes = 'x' | 'y' | 'x1' | 'y1' | 'series' | 'color' | 'opacity' | 'shape' | 'enterType' | 'enterEasing' | 'enterDuration' | 'enterDelay' | 'enter' | 'size' | 'tooltip' | 'title' | 'key' | 'groupKey' | 'label' | 'position' | 'series' | `tooltip${number}`;
|
|
13
13
|
export type BaseGeometry<T extends GeometryTypes, C extends string = ChannelTypes> = {
|
|
14
14
|
type?: T | string;
|
|
15
15
|
class?: string;
|
|
@@ -36,6 +36,7 @@ export type BaseGeometry<T extends GeometryTypes, C extends string = ChannelType
|
|
|
36
36
|
axis?: Partial<Record<'x' | 'y' | 'position' | `position${number}`, Axis | boolean>> | boolean;
|
|
37
37
|
legend?: Partial<Record<'size' | 'color', Legend | boolean>> | boolean;
|
|
38
38
|
slider?: Partial<Record<'x' | 'y', any>>;
|
|
39
|
+
scrollbar?: Partial<Record<'x' | 'y', any>>;
|
|
39
40
|
coordinates?: Coordinate[];
|
|
40
41
|
style?: Record<string, any>;
|
|
41
42
|
interactions?: Interaction[];
|
|
@@ -1,18 +1,53 @@
|
|
|
1
|
-
import { ChannelTypes } from 'spec';
|
|
2
1
|
import { InteractionComponent } from '../runtime';
|
|
2
|
+
import { ChannelTypes } from './geometry';
|
|
3
3
|
import { ActiveRegionAction, PoptipAction, TooltipAction } from './action';
|
|
4
4
|
import { FisheyeCoordinate } from './coordinate';
|
|
5
|
-
export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndex | CustomInteraction | LegendFilterInteraction;
|
|
6
|
-
export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | 'legendFilter' | InteractionComponent;
|
|
5
|
+
export type Interaction = ElementHighlightInteraction | ElementHighlightByColorInteraction | ElementHighlightByXInteraction | ElementSelectByColorInteraction | ElementSelectByXInteraction | ElementSelectInteraction | TooltipInteraction | FisheyeInteraction | ChartIndex | CustomInteraction | LegendFilterInteraction | BrushHighlightInteraction | BrushXHighlightInteraction | BrushYHighlightInteraction | BrushAxisHighlightInteraction | BrushFilter | BrushYFilter | BrushXFilter;
|
|
6
|
+
export type InteractionTypes = 'elementHighlight' | 'elementHighlightByX' | 'elementHighlightByColor' | 'fisheye' | 'chartIndex' | 'elementSelect' | 'elementSelectByX' | 'elementSelectByColor' | 'fisheye' | 'tooltip' | 'legendFilter' | 'brushXHighlight' | 'brushYHighlight' | 'brushHighlight' | 'brushFilter' | 'brushXFilter' | 'brushYFilter' | InteractionComponent;
|
|
7
7
|
export type BrushInteraction = {
|
|
8
8
|
type?: 'brush';
|
|
9
9
|
brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
|
|
10
10
|
};
|
|
11
11
|
export type BrushHighlightInteraction = {
|
|
12
12
|
type?: 'brushHighlight';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
brushKey?: string;
|
|
14
|
+
reverse?: boolean;
|
|
15
|
+
shared?: boolean;
|
|
16
|
+
series?: boolean;
|
|
17
|
+
facet?: boolean;
|
|
18
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
19
|
+
export type BrushXHighlightInteraction = {
|
|
20
|
+
type?: 'brushXHighlight';
|
|
21
|
+
brushKey?: string;
|
|
22
|
+
reverse?: boolean;
|
|
23
|
+
shared?: boolean;
|
|
24
|
+
series?: boolean;
|
|
25
|
+
facet?: boolean;
|
|
26
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
27
|
+
export type BrushYHighlightInteraction = {
|
|
28
|
+
type?: 'brushYHighlight';
|
|
29
|
+
brushKey?: string;
|
|
30
|
+
reverse?: boolean;
|
|
31
|
+
shared?: boolean;
|
|
32
|
+
series?: boolean;
|
|
33
|
+
facet?: boolean;
|
|
34
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
35
|
+
export type BrushAxisHighlightInteraction = {
|
|
36
|
+
type?: 'brushAxisHighlight';
|
|
37
|
+
reverse?: boolean;
|
|
38
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
39
|
+
export type BrushFilter = {
|
|
40
|
+
type?: 'brushFilter';
|
|
41
|
+
reverse?: boolean;
|
|
42
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
43
|
+
export type BrushXFilter = {
|
|
44
|
+
type?: 'brushXFilter';
|
|
45
|
+
reverse?: boolean;
|
|
46
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
47
|
+
export type BrushYFilter = {
|
|
48
|
+
type?: 'brushYFilter';
|
|
49
|
+
reverse?: boolean;
|
|
50
|
+
} & Record<`${'mask' | 'highlighted' | 'unhighlighted'}${any}`, any>;
|
|
16
51
|
export type BrushVisibleInteraction = {
|
|
17
52
|
type?: 'brushVisible';
|
|
18
53
|
brushType?: 'rect' | 'rectX' | 'rectY' | 'polygon';
|
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
|
|
1
|
+
import { DisplayObject } from '@antv/g';
|
|
2
|
+
export type LabelTransform = OverlapHideTransform | OverlapDodgeYTransform | ContrastReverseTransform | OverflowHideTransform;
|
|
3
|
+
export type OverlapHideTransform = {
|
|
4
|
+
type?: 'overlapHide';
|
|
5
|
+
/**
|
|
6
|
+
* The hide priority, is the comparator for label.sort().
|
|
7
|
+
*/
|
|
8
|
+
priority?: (a: DisplayObject, b: DisplayObject) => number;
|
|
4
9
|
};
|
|
5
|
-
export type
|
|
6
|
-
type?: '
|
|
7
|
-
|
|
10
|
+
export type OverlapDodgeYTransform = {
|
|
11
|
+
type?: 'overlapDodgeY';
|
|
12
|
+
maxIterations?: number;
|
|
8
13
|
maxError?: number;
|
|
9
14
|
padding?: number;
|
|
10
15
|
};
|
|
11
|
-
export type
|
|
12
|
-
type
|
|
13
|
-
|
|
16
|
+
export type ContrastReverseTransform = {
|
|
17
|
+
type: 'contrastReverse';
|
|
18
|
+
/**
|
|
19
|
+
* Transform when the contrast ratio < threshold.
|
|
20
|
+
* Default is `4.5`.
|
|
21
|
+
*/
|
|
22
|
+
threshold?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The optional color palette, default is [#000, #fff].
|
|
25
|
+
*/
|
|
26
|
+
palette?: string[];
|
|
14
27
|
};
|
|
15
|
-
export type
|
|
16
|
-
type
|
|
28
|
+
export type OverflowHideTransform = {
|
|
29
|
+
type: 'overflowHide';
|
|
17
30
|
};
|
package/lib/spec/theme.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Theme as ThemeOptions, ThemeComponent } from '../runtime/types/component';
|
|
2
|
-
export type Theme = LightTheme | DarkTheme | CustomTheme;
|
|
3
|
-
export type ThemeTypes = 'light' | 'dark' | ThemeComponent;
|
|
2
|
+
export type Theme = LightTheme | DarkTheme | AcademyTheme | CustomTheme;
|
|
3
|
+
export type ThemeTypes = 'light' | 'dark' | 'academy' | ThemeComponent;
|
|
4
4
|
export type LightTheme = {
|
|
5
5
|
type?: 'light';
|
|
6
6
|
} & ThemeOptions;
|
|
7
7
|
export type DarkTheme = {
|
|
8
8
|
type?: 'dark';
|
|
9
9
|
} & ThemeOptions;
|
|
10
|
+
export type AcademyTheme = {
|
|
11
|
+
type?: 'academy';
|
|
12
|
+
} & ThemeOptions;
|
|
10
13
|
export type CustomTheme = {
|
|
11
14
|
type?: ThemeComponent;
|
|
12
15
|
} & ThemeOptions;
|
package/lib/stdlib/index.js
CHANGED
|
@@ -17,9 +17,9 @@ const data_1 = require("../data");
|
|
|
17
17
|
const label_transform_1 = require("../label-transform");
|
|
18
18
|
const geo_1 = require("../geo");
|
|
19
19
|
function createLibrary() {
|
|
20
|
-
return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.
|
|
20
|
+
return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.fold': data_1.Fold, 'data.slice': data_1.Slice, 'data.custom': data_1.Custom, 'data.map': data_1.Map, 'data.cluster': data_1.Cluster, 'data.tree': data_1.Tree, 'data.sankey': data_1.Sankey, 'data.arc': data_1.Arc, 'data.wordCloud': data_1.WordCloud, 'data.join': data_1.Join,
|
|
21
21
|
// 'transform.voronoi': Voronoi,
|
|
22
|
-
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.reflect': coordinate_1.Reflect, 'coordinate.reflectX': coordinate_1.ReflectX, 'coordinate.reflectY': coordinate_1.ReflectY, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.fisheyeX': coordinate_1.FisheyeX, 'coordinate.fisheyeY': coordinate_1.FisheyeY, 'coordinate.radial': coordinate_1.Radial, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'palette.sequentialBlue': palette_1.SequentialBlue, 'palette.sequentialDarkBlue': palette_1.SequentialDarkBlue, 'palette.sequentialGreen': palette_1.SequentialGreen, 'palette.sequentialDarkGreen': palette_1.SequentialDarkGreen, 'palette.sequentialGrey': palette_1.SequentialGrey, 'palette.sequentialOrange': palette_1.SequentialOrange, 'palette.sequentialPink': palette_1.SequentialPink, 'palette.sequentialRed': palette_1.SequentialRed, 'palette.sequentialYellow': palette_1.SequentialYellow, 'palette.sequentialPurple': palette_1.SequentialPurple, 'palette.sequentialYellowOrange': palette_1.SequentialYellowOrange, 'palette.sequentialYellowGreen': palette_1.SequentialYellowGreen, 'palette.sequentialPinkPurple': palette_1.SequentialPinkPurple, 'palette.sequentialGreenBlue': palette_1.SequentialGreenBlue, 'palette.divergingGreenYellow': palette_1.DivergingGreenYellow, 'palette.divergingRedBlue': palette_1.DivergingRedBlue, 'palette.divergingGreenRed': palette_1.DivergingGreenRed, 'palette.divergingRedPurple': palette_1.DivergingRedPurple, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.step': shape_1.Step, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter,
|
|
22
|
+
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.reflect': coordinate_1.Reflect, 'coordinate.reflectX': coordinate_1.ReflectX, 'coordinate.reflectY': coordinate_1.ReflectY, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.fisheyeX': coordinate_1.FisheyeX, 'coordinate.fisheyeY': coordinate_1.FisheyeY, 'coordinate.radial': coordinate_1.Radial, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'palette.sequentialBlue': palette_1.SequentialBlue, 'palette.sequentialDarkBlue': palette_1.SequentialDarkBlue, 'palette.sequentialGreen': palette_1.SequentialGreen, 'palette.sequentialDarkGreen': palette_1.SequentialDarkGreen, 'palette.sequentialGrey': palette_1.SequentialGrey, 'palette.sequentialOrange': palette_1.SequentialOrange, 'palette.sequentialPink': palette_1.SequentialPink, 'palette.sequentialRed': palette_1.SequentialRed, 'palette.sequentialYellow': palette_1.SequentialYellow, 'palette.sequentialPurple': palette_1.SequentialPurple, 'palette.sequentialYellowOrange': palette_1.SequentialYellowOrange, 'palette.sequentialYellowGreen': palette_1.SequentialYellowGreen, 'palette.sequentialPinkPurple': palette_1.SequentialPinkPurple, 'palette.sequentialGreenBlue': palette_1.SequentialGreenBlue, 'palette.divergingGreenYellow': palette_1.DivergingGreenYellow, 'palette.divergingRedBlue': palette_1.DivergingRedBlue, 'palette.divergingGreenRed': palette_1.DivergingGreenRed, 'palette.divergingRedPurple': palette_1.DivergingRedPurple, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.step': shape_1.Step, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter,
|
|
23
23
|
// 'interaction.elementSelected': ElementSelected,
|
|
24
24
|
// 'interaction.elementHighlight': ElementHighlight,
|
|
25
25
|
// 'interaction.elementHighlightByX': ElementHighlightByX,
|
|
@@ -30,11 +30,10 @@ function createLibrary() {
|
|
|
30
30
|
// 'interaction.tooltip': Tooltip,
|
|
31
31
|
// 'interaction.fisheye': FisheyeInteraction,
|
|
32
32
|
// 'interaction.brush': Brush,
|
|
33
|
-
// 'interaction.brushHighlight': BrushHighlight,
|
|
34
33
|
// 'interaction.brushVisible': BrushVisible,
|
|
35
34
|
// 'interaction.activeRegion': ActiveRegion,
|
|
36
35
|
// 'interaction.ellipsisText': EllipsisText,
|
|
37
|
-
'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.
|
|
36
|
+
'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
|
|
38
37
|
}
|
|
39
38
|
exports.createLibrary = createLibrary;
|
|
40
39
|
//# sourceMappingURL=index.js.map
|
package/lib/stdlib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAcuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,wCAqBoB;AACpB,oCAckB;AAClB,oCAiDkB;AAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources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