@antv/g2 5.3.0 → 5.3.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/package.json +12 -13
- package/src/interaction/tooltip.ts +15 -79
- package/src/mark/treemap.ts +1 -0
- package/src/transform/utils/helper.ts +0 -1
- package/dist/g2.lite.min.js +0 -59
- package/dist/g2.min.js +0 -59
- package/esm/animation/fadeIn.d.ts +0 -7
- package/esm/animation/fadeIn.js +0 -20
- package/esm/animation/fadeIn.js.map +0 -1
- package/esm/animation/fadeOut.d.ts +0 -7
- package/esm/animation/fadeOut.js +0 -20
- package/esm/animation/fadeOut.js.map +0 -1
- package/esm/animation/growInX.d.ts +0 -7
- package/esm/animation/growInX.js +0 -24
- package/esm/animation/growInX.js.map +0 -1
- package/esm/animation/growInY.d.ts +0 -7
- package/esm/animation/growInY.js +0 -24
- package/esm/animation/growInY.js.map +0 -1
- package/esm/animation/index.d.ts +0 -24
- package/esm/animation/index.js +0 -14
- package/esm/animation/index.js.map +0 -1
- package/esm/animation/morphing.d.ts +0 -13
- package/esm/animation/morphing.js +0 -235
- package/esm/animation/morphing.js.map +0 -1
- package/esm/animation/pathIn.d.ts +0 -7
- package/esm/animation/pathIn.js +0 -17
- package/esm/animation/pathIn.js.map +0 -1
- package/esm/animation/scaleInX.d.ts +0 -7
- package/esm/animation/scaleInX.js +0 -46
- package/esm/animation/scaleInX.js.map +0 -1
- package/esm/animation/scaleInY.d.ts +0 -7
- package/esm/animation/scaleInY.js +0 -95
- package/esm/animation/scaleInY.js.map +0 -1
- package/esm/animation/scaleOutX.d.ts +0 -7
- package/esm/animation/scaleOutX.js +0 -43
- package/esm/animation/scaleOutX.js.map +0 -1
- package/esm/animation/scaleOutY.d.ts +0 -7
- package/esm/animation/scaleOutY.js +0 -43
- package/esm/animation/scaleOutY.js.map +0 -1
- package/esm/animation/types.d.ts +0 -6
- package/esm/animation/types.js +0 -2
- package/esm/animation/types.js.map +0 -1
- package/esm/animation/utils.d.ts +0 -12
- package/esm/animation/utils.js +0 -47
- package/esm/animation/utils.js.map +0 -1
- package/esm/animation/waveIn.d.ts +0 -7
- package/esm/animation/waveIn.js +0 -66
- package/esm/animation/waveIn.js.map +0 -1
- package/esm/animation/zoomIn.d.ts +0 -4
- package/esm/animation/zoomIn.js +0 -37
- package/esm/animation/zoomIn.js.map +0 -1
- package/esm/animation/zoomOut.d.ts +0 -4
- package/esm/animation/zoomOut.js +0 -31
- package/esm/animation/zoomOut.js.map +0 -1
- package/esm/api/chart.d.ts +0 -13
- package/esm/api/chart.js +0 -5
- package/esm/api/chart.js.map +0 -1
- package/esm/api/composition.d.ts +0 -37
- package/esm/api/composition.js +0 -87
- package/esm/api/composition.js.map +0 -1
- package/esm/api/define.d.ts +0 -14
- package/esm/api/define.js +0 -92
- package/esm/api/define.js.map +0 -1
- package/esm/api/extend.d.ts +0 -15
- package/esm/api/extend.js +0 -9
- package/esm/api/extend.js.map +0 -1
- package/esm/api/index.d.ts +0 -4
- package/esm/api/index.js +0 -5
- package/esm/api/index.js.map +0 -1
- package/esm/api/library.d.ts +0 -4
- package/esm/api/library.js +0 -10
- package/esm/api/library.js.map +0 -1
- package/esm/api/mark.d.ts +0 -29
- package/esm/api/mark.js +0 -66
- package/esm/api/mark.js.map +0 -1
- package/esm/api/node.d.ts +0 -40
- package/esm/api/node.js +0 -121
- package/esm/api/node.js.map +0 -1
- package/esm/api/props.d.ts +0 -171
- package/esm/api/props.js +0 -22
- package/esm/api/props.js.map +0 -1
- package/esm/api/runtime.d.ts +0 -67
- package/esm/api/runtime.js +0 -306
- package/esm/api/runtime.js.map +0 -1
- package/esm/api/types.d.ts +0 -65
- package/esm/api/types.js +0 -2
- package/esm/api/types.js.map +0 -1
- package/esm/api/utils.d.ts +0 -25
- package/esm/api/utils.js +0 -252
- package/esm/api/utils.js.map +0 -1
- package/esm/component/axis.d.ts +0 -29
- package/esm/component/axis.js +0 -404
- package/esm/component/axis.js.map +0 -1
- package/esm/component/axisArc.d.ts +0 -7
- package/esm/component/axisArc.js +0 -9
- package/esm/component/axisArc.js.map +0 -1
- package/esm/component/axisRadar.d.ts +0 -9
- package/esm/component/axisRadar.js +0 -47
- package/esm/component/axisRadar.js.map +0 -1
- package/esm/component/axisX.d.ts +0 -8
- package/esm/component/axisX.js +0 -15
- package/esm/component/axisX.js.map +0 -1
- package/esm/component/axisY.d.ts +0 -7
- package/esm/component/axisY.js +0 -13
- package/esm/component/axisY.js.map +0 -1
- package/esm/component/constant.d.ts +0 -14
- package/esm/component/constant.js +0 -241
- package/esm/component/constant.js.map +0 -1
- package/esm/component/index.d.ts +0 -26
- package/esm/component/index.js +0 -16
- package/esm/component/index.js.map +0 -1
- package/esm/component/legendCategory.d.ts +0 -15
- package/esm/component/legendCategory.js +0 -175
- package/esm/component/legendCategory.js.map +0 -1
- package/esm/component/legendContinuous.d.ts +0 -12
- package/esm/component/legendContinuous.js +0 -147
- package/esm/component/legendContinuous.js.map +0 -1
- package/esm/component/legendContinuousBlock.d.ts +0 -4
- package/esm/component/legendContinuousBlock.js +0 -6
- package/esm/component/legendContinuousBlock.js.map +0 -1
- package/esm/component/legendContinuousBlockSize.d.ts +0 -4
- package/esm/component/legendContinuousBlockSize.js +0 -7
- package/esm/component/legendContinuousBlockSize.js.map +0 -1
- package/esm/component/legendContinuousSize.d.ts +0 -4
- package/esm/component/legendContinuousSize.js +0 -17
- package/esm/component/legendContinuousSize.js.map +0 -1
- package/esm/component/legends.d.ts +0 -3
- package/esm/component/legends.js +0 -9
- package/esm/component/legends.js.map +0 -1
- package/esm/component/scrollbar.d.ts +0 -10
- package/esm/component/scrollbar.js +0 -41
- package/esm/component/scrollbar.js.map +0 -1
- package/esm/component/scrollbarX.d.ts +0 -7
- package/esm/component/scrollbarX.js +0 -9
- package/esm/component/scrollbarX.js.map +0 -1
- package/esm/component/scrollbarY.d.ts +0 -7
- package/esm/component/scrollbarY.js +0 -9
- package/esm/component/scrollbarY.js.map +0 -1
- package/esm/component/slider.d.ts +0 -13
- package/esm/component/slider.js +0 -95
- package/esm/component/slider.js.map +0 -1
- package/esm/component/sliderX.d.ts +0 -7
- package/esm/component/sliderX.js +0 -9
- package/esm/component/sliderX.js.map +0 -1
- package/esm/component/sliderY.d.ts +0 -7
- package/esm/component/sliderY.js +0 -9
- package/esm/component/sliderY.js.map +0 -1
- package/esm/component/title.d.ts +0 -6
- package/esm/component/title.js +0 -79
- package/esm/component/title.js.map +0 -1
- package/esm/component/utils.d.ts +0 -36
- package/esm/component/utils.js +0 -147
- package/esm/component/utils.js.map +0 -1
- package/esm/composition/d3Projection.d.ts +0 -1
- package/esm/composition/d3Projection.js +0 -2
- package/esm/composition/d3Projection.js.map +0 -1
- package/esm/composition/facetCircle.d.ts +0 -7
- package/esm/composition/facetCircle.js +0 -85
- package/esm/composition/facetCircle.js.map +0 -1
- package/esm/composition/facetRect.d.ts +0 -31
- package/esm/composition/facetRect.js +0 -296
- package/esm/composition/facetRect.js.map +0 -1
- package/esm/composition/geoPath.d.ts +0 -7
- package/esm/composition/geoPath.js +0 -37
- package/esm/composition/geoPath.js.map +0 -1
- package/esm/composition/geoView.d.ts +0 -7
- package/esm/composition/geoView.js +0 -219
- package/esm/composition/geoView.js.map +0 -1
- package/esm/composition/index.d.ts +0 -18
- package/esm/composition/index.js +0 -11
- package/esm/composition/index.js.map +0 -1
- package/esm/composition/mark.d.ts +0 -4
- package/esm/composition/mark.js +0 -51
- package/esm/composition/mark.js.map +0 -1
- package/esm/composition/repeatMatrix.d.ts +0 -8
- package/esm/composition/repeatMatrix.js +0 -152
- package/esm/composition/repeatMatrix.js.map +0 -1
- package/esm/composition/spaceFlex.d.ts +0 -7
- package/esm/composition/spaceFlex.js +0 -40
- package/esm/composition/spaceFlex.js.map +0 -1
- package/esm/composition/spaceLayer.d.ts +0 -7
- package/esm/composition/spaceLayer.js +0 -29
- package/esm/composition/spaceLayer.js.map +0 -1
- package/esm/composition/timingKeyframe.d.ts +0 -7
- package/esm/composition/timingKeyframe.js +0 -80
- package/esm/composition/timingKeyframe.js.map +0 -1
- package/esm/composition/utils.d.ts +0 -18
- package/esm/composition/utils.js +0 -41
- package/esm/composition/utils.js.map +0 -1
- package/esm/composition/view.d.ts +0 -9
- package/esm/composition/view.js +0 -33
- package/esm/composition/view.js.map +0 -1
- package/esm/coordinate/cartesian.d.ts +0 -7
- package/esm/coordinate/cartesian.js +0 -6
- package/esm/coordinate/cartesian.js.map +0 -1
- package/esm/coordinate/fisheye.d.ts +0 -7
- package/esm/coordinate/fisheye.js +0 -6
- package/esm/coordinate/fisheye.js.map +0 -1
- package/esm/coordinate/helix.d.ts +0 -7
- package/esm/coordinate/helix.js +0 -11
- package/esm/coordinate/helix.js.map +0 -1
- package/esm/coordinate/index.d.ts +0 -18
- package/esm/coordinate/index.js +0 -10
- package/esm/coordinate/index.js.map +0 -1
- package/esm/coordinate/parallel.d.ts +0 -7
- package/esm/coordinate/parallel.js +0 -6
- package/esm/coordinate/parallel.js.map +0 -1
- package/esm/coordinate/polar.d.ts +0 -15
- package/esm/coordinate/polar.js +0 -26
- package/esm/coordinate/polar.js.map +0 -1
- package/esm/coordinate/radar.d.ts +0 -7
- package/esm/coordinate/radar.js +0 -14
- package/esm/coordinate/radar.js.map +0 -1
- package/esm/coordinate/radial.d.ts +0 -14
- package/esm/coordinate/radial.js +0 -25
- package/esm/coordinate/radial.js.map +0 -1
- package/esm/coordinate/theta.d.ts +0 -15
- package/esm/coordinate/theta.js +0 -23
- package/esm/coordinate/theta.js.map +0 -1
- package/esm/coordinate/transpose.d.ts +0 -7
- package/esm/coordinate/transpose.js +0 -11
- package/esm/coordinate/transpose.js.map +0 -1
- package/esm/data/arc.d.ts +0 -6
- package/esm/data/arc.js +0 -11
- package/esm/data/arc.js.map +0 -1
- package/esm/data/cluster.d.ts +0 -7
- package/esm/data/cluster.js +0 -37
- package/esm/data/cluster.js.map +0 -1
- package/esm/data/custom.d.ts +0 -7
- package/esm/data/custom.js +0 -10
- package/esm/data/custom.js.map +0 -1
- package/esm/data/ema.d.ts +0 -10
- package/esm/data/ema.js +0 -44
- package/esm/data/ema.js.map +0 -1
- package/esm/data/fetch.d.ts +0 -4
- package/esm/data/fetch.js +0 -28
- package/esm/data/fetch.js.map +0 -1
- package/esm/data/filter.d.ts +0 -9
- package/esm/data/filter.js +0 -13
- package/esm/data/filter.js.map +0 -1
- package/esm/data/fold.d.ts +0 -10
- package/esm/data/fold.js +0 -18
- package/esm/data/fold.js.map +0 -1
- package/esm/data/index.d.ts +0 -42
- package/esm/data/index.js +0 -22
- package/esm/data/index.js.map +0 -1
- package/esm/data/inline.d.ts +0 -4
- package/esm/data/inline.js +0 -6
- package/esm/data/inline.js.map +0 -1
- package/esm/data/join.d.ts +0 -7
- package/esm/data/join.js +0 -22
- package/esm/data/join.js.map +0 -1
- package/esm/data/kde.d.ts +0 -10
- package/esm/data/kde.js +0 -30
- package/esm/data/kde.js.map +0 -1
- package/esm/data/log.d.ts +0 -7
- package/esm/data/log.js +0 -11
- package/esm/data/log.js.map +0 -1
- package/esm/data/map.d.ts +0 -7
- package/esm/data/map.js +0 -10
- package/esm/data/map.js.map +0 -1
- package/esm/data/pick.d.ts +0 -7
- package/esm/data/pick.js +0 -18
- package/esm/data/pick.js.map +0 -1
- package/esm/data/rename.d.ts +0 -8
- package/esm/data/rename.js +0 -16
- package/esm/data/rename.js.map +0 -1
- package/esm/data/sankey.d.ts +0 -7
- package/esm/data/sankey.js +0 -77
- package/esm/data/sankey.js.map +0 -1
- package/esm/data/slice.d.ts +0 -8
- package/esm/data/slice.js +0 -10
- package/esm/data/slice.js.map +0 -1
- package/esm/data/sort.d.ts +0 -8
- package/esm/data/sort.js +0 -12
- package/esm/data/sort.js.map +0 -1
- package/esm/data/sortBy.d.ts +0 -7
- package/esm/data/sortBy.js +0 -24
- package/esm/data/sortBy.js.map +0 -1
- package/esm/data/tree.d.ts +0 -3
- package/esm/data/tree.js +0 -7
- package/esm/data/tree.js.map +0 -1
- package/esm/data/utils/arc/arc.d.ts +0 -31
- package/esm/data/utils/arc/arc.js +0 -161
- package/esm/data/utils/arc/arc.js.map +0 -1
- package/esm/data/utils/arc/index.d.ts +0 -2
- package/esm/data/utils/arc/index.js +0 -2
- package/esm/data/utils/arc/index.js.map +0 -1
- package/esm/data/utils/arc/sort.d.ts +0 -4
- package/esm/data/utils/arc/sort.js +0 -13
- package/esm/data/utils/arc/sort.js.map +0 -1
- package/esm/data/utils/arc/types.d.ts +0 -51
- package/esm/data/utils/arc/types.js +0 -2
- package/esm/data/utils/arc/types.js.map +0 -1
- package/esm/data/utils/d3-cloud/index.d.ts +0 -1
- package/esm/data/utils/d3-cloud/index.js +0 -398
- package/esm/data/utils/d3-cloud/index.js.map +0 -1
- package/esm/data/utils/d3-sankey/align.d.ts +0 -4
- package/esm/data/utils/d3-sankey/align.js +0 -21
- package/esm/data/utils/d3-sankey/align.js.map +0 -1
- package/esm/data/utils/d3-sankey/constant.d.ts +0 -1
- package/esm/data/utils/d3-sankey/constant.js +0 -6
- package/esm/data/utils/d3-sankey/constant.js.map +0 -1
- package/esm/data/utils/d3-sankey/index.d.ts +0 -12
- package/esm/data/utils/d3-sankey/index.js +0 -13
- package/esm/data/utils/d3-sankey/index.js.map +0 -1
- package/esm/data/utils/d3-sankey/sankey.d.ts +0 -24
- package/esm/data/utils/d3-sankey/sankey.js +0 -388
- package/esm/data/utils/d3-sankey/sankey.js.map +0 -1
- package/esm/data/utils/fields.d.ts +0 -6
- package/esm/data/utils/fields.js +0 -15
- package/esm/data/utils/fields.js.map +0 -1
- package/esm/data/utils/flow.d.ts +0 -9
- package/esm/data/utils/flow.js +0 -45
- package/esm/data/utils/flow.js.map +0 -1
- package/esm/data/utils/memo.d.ts +0 -17
- package/esm/data/utils/memo.js +0 -79
- package/esm/data/utils/memo.js.map +0 -1
- package/esm/data/utils/venn/circleintersection.d.ts +0 -33
- package/esm/data/utils/venn/circleintersection.js +0 -192
- package/esm/data/utils/venn/circleintersection.js.map +0 -1
- package/esm/data/utils/venn/diagram.d.ts +0 -2
- package/esm/data/utils/venn/diagram.js +0 -44
- package/esm/data/utils/venn/diagram.js.map +0 -1
- package/esm/data/utils/venn/index.d.ts +0 -5
- package/esm/data/utils/venn/index.js +0 -6
- package/esm/data/utils/venn/index.js.map +0 -1
- package/esm/data/utils/venn/layout.d.ts +0 -27
- package/esm/data/utils/venn/layout.js +0 -607
- package/esm/data/utils/venn/layout.js.map +0 -1
- package/esm/data/venn.d.ts +0 -7
- package/esm/data/venn.js +0 -34
- package/esm/data/venn.js.map +0 -1
- package/esm/data/wordCloud.d.ts +0 -110
- package/esm/data/wordCloud.js +0 -121
- package/esm/data/wordCloud.js.map +0 -1
- package/esm/encode/column.d.ts +0 -7
- package/esm/encode/column.js +0 -8
- package/esm/encode/column.js.map +0 -1
- package/esm/encode/constant.d.ts +0 -7
- package/esm/encode/constant.js +0 -8
- package/esm/encode/constant.js.map +0 -1
- package/esm/encode/field.d.ts +0 -7
- package/esm/encode/field.js +0 -8
- package/esm/encode/field.js.map +0 -1
- package/esm/encode/index.d.ts +0 -8
- package/esm/encode/index.js +0 -5
- package/esm/encode/index.js.map +0 -1
- package/esm/encode/transform.d.ts +0 -9
- package/esm/encode/transform.js +0 -10
- package/esm/encode/transform.js.map +0 -1
- package/esm/exports.d.ts +0 -12
- package/esm/exports.js +0 -11
- package/esm/exports.js.map +0 -1
- package/esm/index.d.ts +0 -356
- package/esm/index.js +0 -10
- package/esm/index.js.map +0 -1
- package/esm/interaction/brushAxisHighlight.d.ts +0 -29
- package/esm/interaction/brushAxisHighlight.js +0 -281
- package/esm/interaction/brushAxisHighlight.js.map +0 -1
- package/esm/interaction/brushFilter.d.ts +0 -18
- package/esm/interaction/brushFilter.js +0 -142
- package/esm/interaction/brushFilter.js.map +0 -1
- package/esm/interaction/brushHighlight.d.ts +0 -48
- package/esm/interaction/brushHighlight.js +0 -586
- package/esm/interaction/brushHighlight.js.map +0 -1
- package/esm/interaction/brushXFilter.d.ts +0 -1
- package/esm/interaction/brushXFilter.js +0 -6
- package/esm/interaction/brushXFilter.js.map +0 -1
- package/esm/interaction/brushXHighlight.d.ts +0 -7
- package/esm/interaction/brushXHighlight.js +0 -9
- package/esm/interaction/brushXHighlight.js.map +0 -1
- package/esm/interaction/brushYFilter.d.ts +0 -1
- package/esm/interaction/brushYFilter.js +0 -6
- package/esm/interaction/brushYFilter.js.map +0 -1
- package/esm/interaction/brushYHighlight.d.ts +0 -7
- package/esm/interaction/brushYHighlight.js +0 -9
- package/esm/interaction/brushYHighlight.js.map +0 -1
- package/esm/interaction/chartIndex.d.ts +0 -9
- package/esm/interaction/chartIndex.js +0 -178
- package/esm/interaction/chartIndex.js.map +0 -1
- package/esm/interaction/elementHighlight.d.ts +0 -23
- package/esm/interaction/elementHighlight.js +0 -169
- package/esm/interaction/elementHighlight.js.map +0 -1
- package/esm/interaction/elementHighlightByColor.d.ts +0 -6
- package/esm/interaction/elementHighlightByColor.js +0 -9
- package/esm/interaction/elementHighlightByColor.js.map +0 -1
- package/esm/interaction/elementHighlightByX.d.ts +0 -6
- package/esm/interaction/elementHighlightByX.js +0 -9
- package/esm/interaction/elementHighlightByX.js.map +0 -1
- package/esm/interaction/elementPointMove.d.ts +0 -9
- package/esm/interaction/elementPointMove.js +0 -506
- package/esm/interaction/elementPointMove.js.map +0 -1
- package/esm/interaction/elementSelect.d.ts +0 -24
- package/esm/interaction/elementSelect.js +0 -234
- package/esm/interaction/elementSelect.js.map +0 -1
- package/esm/interaction/elementSelectByColor.d.ts +0 -6
- package/esm/interaction/elementSelectByColor.js +0 -9
- package/esm/interaction/elementSelectByColor.js.map +0 -1
- package/esm/interaction/elementSelectByX.d.ts +0 -6
- package/esm/interaction/elementSelectByX.js +0 -9
- package/esm/interaction/elementSelectByX.js.map +0 -1
- package/esm/interaction/event.d.ts +0 -6
- package/esm/interaction/event.js +0 -129
- package/esm/interaction/event.js.map +0 -1
- package/esm/interaction/fisheye.d.ts +0 -4
- package/esm/interaction/fisheye.js +0 -57
- package/esm/interaction/fisheye.js.map +0 -1
- package/esm/interaction/index.d.ts +0 -24
- package/esm/interaction/index.js +0 -25
- package/esm/interaction/index.js.map +0 -1
- package/esm/interaction/legendFilter.d.ts +0 -14
- package/esm/interaction/legendFilter.js +0 -292
- package/esm/interaction/legendFilter.js.map +0 -1
- package/esm/interaction/legendHighlight.d.ts +0 -1
- package/esm/interaction/legendHighlight.js +0 -125
- package/esm/interaction/legendHighlight.js.map +0 -1
- package/esm/interaction/poptip.d.ts +0 -10
- package/esm/interaction/poptip.js +0 -94
- package/esm/interaction/poptip.js.map +0 -1
- package/esm/interaction/scrollbarFilter.d.ts +0 -2
- package/esm/interaction/scrollbarFilter.js +0 -27
- package/esm/interaction/scrollbarFilter.js.map +0 -1
- package/esm/interaction/sliderFilter.d.ts +0 -5
- package/esm/interaction/sliderFilter.js +0 -173
- package/esm/interaction/sliderFilter.js.map +0 -1
- package/esm/interaction/tooltip.d.ts +0 -16
- package/esm/interaction/tooltip.js +0 -909
- package/esm/interaction/tooltip.js.map +0 -1
- package/esm/interaction/treemapDrillDown.d.ts +0 -10
- package/esm/interaction/treemapDrillDown.js +0 -226
- package/esm/interaction/treemapDrillDown.js.map +0 -1
- package/esm/interaction/utils.d.ts +0 -68
- package/esm/interaction/utils.js +0 -478
- package/esm/interaction/utils.js.map +0 -1
- package/esm/label-transform/contrastReverse.d.ts +0 -9
- package/esm/label-transform/contrastReverse.js +0 -50
- package/esm/label-transform/contrastReverse.js.map +0 -1
- package/esm/label-transform/exceedAdjust.d.ts +0 -7
- package/esm/label-transform/exceedAdjust.js +0 -51
- package/esm/label-transform/exceedAdjust.js.map +0 -1
- package/esm/label-transform/index.d.ts +0 -10
- package/esm/label-transform/index.js +0 -6
- package/esm/label-transform/index.js.map +0 -1
- package/esm/label-transform/overflowHide.d.ts +0 -7
- package/esm/label-transform/overflowHide.js +0 -19
- package/esm/label-transform/overflowHide.js.map +0 -1
- package/esm/label-transform/overlapDodgeY.d.ts +0 -7
- package/esm/label-transform/overlapDodgeY.js +0 -75
- package/esm/label-transform/overlapDodgeY.js.map +0 -1
- package/esm/label-transform/overlapHide.d.ts +0 -7
- package/esm/label-transform/overlapHide.js +0 -25
- package/esm/label-transform/overlapHide.js.map +0 -1
- package/esm/lib/builtinlib.d.ts +0 -13
- package/esm/lib/builtinlib.js +0 -21
- package/esm/lib/builtinlib.js.map +0 -1
- package/esm/lib/core.d.ts +0 -158
- package/esm/lib/core.js +0 -173
- package/esm/lib/core.js.map +0 -1
- package/esm/lib/geo.d.ts +0 -4
- package/esm/lib/geo.js +0 -9
- package/esm/lib/geo.js.map +0 -1
- package/esm/lib/graph.d.ts +0 -10
- package/esm/lib/graph.js +0 -15
- package/esm/lib/graph.js.map +0 -1
- package/esm/lib/index.d.ts +0 -6
- package/esm/lib/index.js +0 -7
- package/esm/lib/index.js.map +0 -1
- package/esm/lib/lite.d.ts +0 -64
- package/esm/lib/lite.js +0 -78
- package/esm/lib/lite.js.map +0 -1
- package/esm/lib/plot.d.ts +0 -7
- package/esm/lib/plot.js +0 -12
- package/esm/lib/plot.js.map +0 -1
- package/esm/lib/std.d.ts +0 -171
- package/esm/lib/std.js +0 -8
- package/esm/lib/std.js.map +0 -1
- package/esm/mark/area.d.ts +0 -4
- package/esm/mark/area.js +0 -86
- package/esm/mark/area.js.map +0 -1
- package/esm/mark/box.d.ts +0 -34
- package/esm/mark/box.js +0 -96
- package/esm/mark/box.js.map +0 -1
- package/esm/mark/boxplot.d.ts +0 -4
- package/esm/mark/boxplot.js +0 -102
- package/esm/mark/boxplot.js.map +0 -1
- package/esm/mark/cell.d.ts +0 -9
- package/esm/mark/cell.js +0 -50
- package/esm/mark/cell.js.map +0 -1
- package/esm/mark/chord.d.ts +0 -4
- package/esm/mark/chord.js +0 -120
- package/esm/mark/chord.js.map +0 -1
- package/esm/mark/connector.d.ts +0 -4
- package/esm/mark/connector.js +0 -23
- package/esm/mark/connector.js.map +0 -1
- package/esm/mark/density.d.ts +0 -4
- package/esm/mark/density.js +0 -64
- package/esm/mark/density.js.map +0 -1
- package/esm/mark/forceGraph.d.ts +0 -4
- package/esm/mark/forceGraph.js +0 -115
- package/esm/mark/forceGraph.js.map +0 -1
- package/esm/mark/gauge.d.ts +0 -11
- package/esm/mark/gauge.js +0 -178
- package/esm/mark/gauge.js.map +0 -1
- package/esm/mark/heatmap.d.ts +0 -7
- package/esm/mark/heatmap.js +0 -41
- package/esm/mark/heatmap.js.map +0 -1
- package/esm/mark/image.d.ts +0 -4
- package/esm/mark/image.js +0 -40
- package/esm/mark/image.js.map +0 -1
- package/esm/mark/index.d.ts +0 -62
- package/esm/mark/index.js +0 -33
- package/esm/mark/index.js.map +0 -1
- package/esm/mark/interval.d.ts +0 -12
- package/esm/mark/interval.js +0 -77
- package/esm/mark/interval.js.map +0 -1
- package/esm/mark/line.d.ts +0 -7
- package/esm/mark/line.js +0 -96
- package/esm/mark/line.js.map +0 -1
- package/esm/mark/lineX.d.ts +0 -4
- package/esm/mark/lineX.js +0 -32
- package/esm/mark/lineX.js.map +0 -1
- package/esm/mark/lineY.d.ts +0 -4
- package/esm/mark/lineY.js +0 -32
- package/esm/mark/lineY.js.map +0 -1
- package/esm/mark/link.d.ts +0 -7
- package/esm/mark/link.js +0 -41
- package/esm/mark/link.js.map +0 -1
- package/esm/mark/liquid.d.ts +0 -7
- package/esm/mark/liquid.js +0 -84
- package/esm/mark/liquid.js.map +0 -1
- package/esm/mark/pack.d.ts +0 -4
- package/esm/mark/pack.js +0 -78
- package/esm/mark/pack.js.map +0 -1
- package/esm/mark/path.d.ts +0 -7
- package/esm/mark/path.js +0 -30
- package/esm/mark/path.js.map +0 -1
- package/esm/mark/point.d.ts +0 -9
- package/esm/mark/point.js +0 -84
- package/esm/mark/point.js.map +0 -1
- package/esm/mark/polygon.d.ts +0 -7
- package/esm/mark/polygon.js +0 -45
- package/esm/mark/polygon.js.map +0 -1
- package/esm/mark/range.d.ts +0 -8
- package/esm/mark/range.js +0 -47
- package/esm/mark/range.js.map +0 -1
- package/esm/mark/rangeX.d.ts +0 -4
- package/esm/mark/rangeX.js +0 -23
- package/esm/mark/rangeX.js.map +0 -1
- package/esm/mark/rangeY.d.ts +0 -4
- package/esm/mark/rangeY.js +0 -23
- package/esm/mark/rangeY.js.map +0 -1
- package/esm/mark/rect.d.ts +0 -4
- package/esm/mark/rect.js +0 -37
- package/esm/mark/rect.js.map +0 -1
- package/esm/mark/sankey.d.ts +0 -8
- package/esm/mark/sankey.js +0 -113
- package/esm/mark/sankey.js.map +0 -1
- package/esm/mark/shape.d.ts +0 -7
- package/esm/mark/shape.js +0 -40
- package/esm/mark/shape.js.map +0 -1
- package/esm/mark/text.d.ts +0 -4
- package/esm/mark/text.js +0 -43
- package/esm/mark/text.js.map +0 -1
- package/esm/mark/tree.d.ts +0 -4
- package/esm/mark/tree.js +0 -71
- package/esm/mark/tree.js.map +0 -1
- package/esm/mark/treemap.d.ts +0 -4
- package/esm/mark/treemap.js +0 -105
- package/esm/mark/treemap.js.map +0 -1
- package/esm/mark/utils.d.ts +0 -67
- package/esm/mark/utils.js +0 -110
- package/esm/mark/utils.js.map +0 -1
- package/esm/mark/vector.d.ts +0 -8
- package/esm/mark/vector.js +0 -44
- package/esm/mark/vector.js.map +0 -1
- package/esm/mark/wordCloud.d.ts +0 -4
- package/esm/mark/wordCloud.js +0 -59
- package/esm/mark/wordCloud.js.map +0 -1
- package/esm/palette/category10.d.ts +0 -7
- package/esm/palette/category10.js +0 -19
- package/esm/palette/category10.js.map +0 -1
- package/esm/palette/category20.d.ts +0 -7
- package/esm/palette/category20.js +0 -29
- package/esm/palette/category20.js.map +0 -1
- package/esm/palette/index.d.ts +0 -4
- package/esm/palette/index.js +0 -3
- package/esm/palette/index.js.map +0 -1
- package/esm/runtime/component.d.ts +0 -18
- package/esm/runtime/component.js +0 -771
- package/esm/runtime/component.js.map +0 -1
- package/esm/runtime/constant.d.ts +0 -9
- package/esm/runtime/constant.js +0 -10
- package/esm/runtime/constant.js.map +0 -1
- package/esm/runtime/coordinate.d.ts +0 -24
- package/esm/runtime/coordinate.js +0 -88
- package/esm/runtime/coordinate.js.map +0 -1
- package/esm/runtime/index.d.ts +0 -9
- package/esm/runtime/index.js +0 -10
- package/esm/runtime/index.js.map +0 -1
- package/esm/runtime/layout.d.ts +0 -10
- package/esm/runtime/layout.js +0 -582
- package/esm/runtime/layout.js.map +0 -1
- package/esm/runtime/library.d.ts +0 -5
- package/esm/runtime/library.js +0 -37
- package/esm/runtime/library.js.map +0 -1
- package/esm/runtime/mark.d.ts +0 -6
- package/esm/runtime/mark.js +0 -130
- package/esm/runtime/mark.js.map +0 -1
- package/esm/runtime/option-preprocess/index.d.ts +0 -2
- package/esm/runtime/option-preprocess/index.js +0 -16
- package/esm/runtime/option-preprocess/index.js.map +0 -1
- package/esm/runtime/option-preprocess/style.d.ts +0 -2
- package/esm/runtime/option-preprocess/style.js +0 -12
- package/esm/runtime/option-preprocess/style.js.map +0 -1
- package/esm/runtime/plot.d.ts +0 -5
- package/esm/runtime/plot.js +0 -1212
- package/esm/runtime/plot.js.map +0 -1
- package/esm/runtime/render.d.ts +0 -5
- package/esm/runtime/render.js +0 -166
- package/esm/runtime/render.js.map +0 -1
- package/esm/runtime/scale.d.ts +0 -14
- package/esm/runtime/scale.js +0 -558
- package/esm/runtime/scale.js.map +0 -1
- package/esm/runtime/transform.d.ts +0 -16
- package/esm/runtime/transform.js +0 -286
- package/esm/runtime/transform.js.map +0 -1
- package/esm/runtime/types/common.d.ts +0 -159
- package/esm/runtime/types/common.js +0 -2
- package/esm/runtime/types/common.js.map +0 -1
- package/esm/runtime/types/component.d.ts +0 -103
- package/esm/runtime/types/component.js +0 -2
- package/esm/runtime/types/component.js.map +0 -1
- package/esm/runtime/types/data.d.ts +0 -8
- package/esm/runtime/types/data.js +0 -2
- package/esm/runtime/types/data.js.map +0 -1
- package/esm/runtime/types/encode.d.ts +0 -23
- package/esm/runtime/types/encode.js +0 -2
- package/esm/runtime/types/encode.js.map +0 -1
- package/esm/runtime/types/mark.d.ts +0 -36
- package/esm/runtime/types/mark.js +0 -2
- package/esm/runtime/types/mark.js.map +0 -1
- package/esm/runtime/types/options.d.ts +0 -145
- package/esm/runtime/types/options.js +0 -2
- package/esm/runtime/types/options.js.map +0 -1
- package/esm/runtime/types/scale.d.ts +0 -21
- package/esm/runtime/types/scale.js +0 -22
- package/esm/runtime/types/scale.js.map +0 -1
- package/esm/runtime/types/theme.d.ts +0 -91
- package/esm/runtime/types/theme.js +0 -2
- package/esm/runtime/types/theme.js.map +0 -1
- package/esm/runtime/types/transform.d.ts +0 -14
- package/esm/runtime/types/transform.js +0 -2
- package/esm/runtime/types/transform.js.map +0 -1
- package/esm/scale/band.d.ts +0 -4
- package/esm/scale/band.js +0 -6
- package/esm/scale/band.js.map +0 -1
- package/esm/scale/constant.d.ts +0 -4
- package/esm/scale/constant.js +0 -6
- package/esm/scale/constant.js.map +0 -1
- package/esm/scale/identity.d.ts +0 -4
- package/esm/scale/identity.js +0 -6
- package/esm/scale/identity.js.map +0 -1
- package/esm/scale/index.d.ts +0 -28
- package/esm/scale/index.js +0 -15
- package/esm/scale/index.js.map +0 -1
- package/esm/scale/linear.d.ts +0 -4
- package/esm/scale/linear.js +0 -6
- package/esm/scale/linear.js.map +0 -1
- package/esm/scale/log.d.ts +0 -4
- package/esm/scale/log.js +0 -6
- package/esm/scale/log.js.map +0 -1
- package/esm/scale/ordinal.d.ts +0 -4
- package/esm/scale/ordinal.js +0 -6
- package/esm/scale/ordinal.js.map +0 -1
- package/esm/scale/point.d.ts +0 -4
- package/esm/scale/point.js +0 -6
- package/esm/scale/point.js.map +0 -1
- package/esm/scale/pow.d.ts +0 -4
- package/esm/scale/pow.js +0 -6
- package/esm/scale/pow.js.map +0 -1
- package/esm/scale/quantile.d.ts +0 -4
- package/esm/scale/quantile.js +0 -6
- package/esm/scale/quantile.js.map +0 -1
- package/esm/scale/quantize.d.ts +0 -4
- package/esm/scale/quantize.js +0 -6
- package/esm/scale/quantize.js.map +0 -1
- package/esm/scale/sequential.d.ts +0 -4
- package/esm/scale/sequential.js +0 -6
- package/esm/scale/sequential.js.map +0 -1
- package/esm/scale/sqrt.d.ts +0 -4
- package/esm/scale/sqrt.js +0 -6
- package/esm/scale/sqrt.js.map +0 -1
- package/esm/scale/threshold.d.ts +0 -4
- package/esm/scale/threshold.js +0 -6
- package/esm/scale/threshold.js.map +0 -1
- package/esm/scale/time.d.ts +0 -4
- package/esm/scale/time.js +0 -6
- package/esm/scale/time.js.map +0 -1
- package/esm/shape/area/area.d.ts +0 -3
- package/esm/shape/area/area.js +0 -12
- package/esm/shape/area/area.js.map +0 -1
- package/esm/shape/area/curve.d.ts +0 -8
- package/esm/shape/area/curve.js +0 -171
- package/esm/shape/area/curve.js.map +0 -1
- package/esm/shape/area/hv.d.ts +0 -3
- package/esm/shape/area/hv.js +0 -9
- package/esm/shape/area/hv.js.map +0 -1
- package/esm/shape/area/hvh.d.ts +0 -3
- package/esm/shape/area/hvh.js +0 -9
- package/esm/shape/area/hvh.js.map +0 -1
- package/esm/shape/area/smooth.d.ts +0 -3
- package/esm/shape/area/smooth.js +0 -28
- package/esm/shape/area/smooth.js.map +0 -1
- package/esm/shape/area/vh.d.ts +0 -3
- package/esm/shape/area/vh.js +0 -9
- package/esm/shape/area/vh.js.map +0 -1
- package/esm/shape/box/box.d.ts +0 -3
- package/esm/shape/box/box.js +0 -90
- package/esm/shape/box/box.js.map +0 -1
- package/esm/shape/box/violin.d.ts +0 -3
- package/esm/shape/box/violin.js +0 -84
- package/esm/shape/box/violin.js.map +0 -1
- package/esm/shape/connector/connector.d.ts +0 -11
- package/esm/shape/connector/connector.js +0 -82
- package/esm/shape/connector/connector.js.map +0 -1
- package/esm/shape/density/density.d.ts +0 -8
- package/esm/shape/density/density.js +0 -49
- package/esm/shape/density/density.js.map +0 -1
- package/esm/shape/gauge/round.d.ts +0 -3
- package/esm/shape/gauge/round.js +0 -40
- package/esm/shape/gauge/round.js.map +0 -1
- package/esm/shape/heatmap/heatmap.d.ts +0 -4
- package/esm/shape/heatmap/heatmap.js +0 -67
- package/esm/shape/heatmap/heatmap.js.map +0 -1
- package/esm/shape/heatmap/renderer/gradient.d.ts +0 -5
- package/esm/shape/heatmap/renderer/gradient.js +0 -13
- package/esm/shape/heatmap/renderer/gradient.js.map +0 -1
- package/esm/shape/heatmap/renderer/index.d.ts +0 -6
- package/esm/shape/heatmap/renderer/index.js +0 -122
- package/esm/shape/heatmap/renderer/index.js.map +0 -1
- package/esm/shape/heatmap/renderer/types.d.ts +0 -36
- package/esm/shape/heatmap/renderer/types.js +0 -2
- package/esm/shape/heatmap/renderer/types.js.map +0 -1
- package/esm/shape/image/image.d.ts +0 -3
- package/esm/shape/image/image.js +0 -46
- package/esm/shape/image/image.js.map +0 -1
- package/esm/shape/index.d.ts +0 -114
- package/esm/shape/index.js +0 -65
- package/esm/shape/index.js.map +0 -1
- package/esm/shape/interval/color.d.ts +0 -25
- package/esm/shape/interval/color.js +0 -133
- package/esm/shape/interval/color.js.map +0 -1
- package/esm/shape/interval/funnel.d.ts +0 -10
- package/esm/shape/interval/funnel.js +0 -57
- package/esm/shape/interval/funnel.js.map +0 -1
- package/esm/shape/interval/hollow.d.ts +0 -6
- package/esm/shape/interval/hollow.js +0 -9
- package/esm/shape/interval/hollow.js.map +0 -1
- package/esm/shape/interval/pyramid.d.ts +0 -6
- package/esm/shape/interval/pyramid.js +0 -38
- package/esm/shape/interval/pyramid.js.map +0 -1
- package/esm/shape/interval/rect.d.ts +0 -20
- package/esm/shape/interval/rect.js +0 -10
- package/esm/shape/interval/rect.js.map +0 -1
- package/esm/shape/label/label.d.ts +0 -13
- package/esm/shape/label/label.js +0 -71
- package/esm/shape/label/label.js.map +0 -1
- package/esm/shape/label/position/area.d.ts +0 -13
- package/esm/shape/label/position/area.js +0 -28
- package/esm/shape/label/position/area.js.map +0 -1
- package/esm/shape/label/position/bottom.d.ts +0 -1
- package/esm/shape/label/position/bottom.js +0 -2
- package/esm/shape/label/position/bottom.js.map +0 -1
- package/esm/shape/label/position/bottomLeft.d.ts +0 -1
- package/esm/shape/label/position/bottomLeft.js +0 -2
- package/esm/shape/label/position/bottomLeft.js.map +0 -1
- package/esm/shape/label/position/bottomRight.d.ts +0 -1
- package/esm/shape/label/position/bottomRight.js +0 -2
- package/esm/shape/label/position/bottomRight.js.map +0 -1
- package/esm/shape/label/position/default.d.ts +0 -18
- package/esm/shape/label/position/default.js +0 -112
- package/esm/shape/label/position/default.js.map +0 -1
- package/esm/shape/label/position/index.d.ts +0 -13
- package/esm/shape/label/position/index.js +0 -14
- package/esm/shape/label/position/index.js.map +0 -1
- package/esm/shape/label/position/inside.d.ts +0 -1
- package/esm/shape/label/position/inside.js +0 -2
- package/esm/shape/label/position/inside.js.map +0 -1
- package/esm/shape/label/position/left.d.ts +0 -1
- package/esm/shape/label/position/left.js +0 -2
- package/esm/shape/label/position/left.js.map +0 -1
- package/esm/shape/label/position/outside.d.ts +0 -18
- package/esm/shape/label/position/outside.js +0 -67
- package/esm/shape/label/position/outside.js.map +0 -1
- package/esm/shape/label/position/right.d.ts +0 -1
- package/esm/shape/label/position/right.js +0 -2
- package/esm/shape/label/position/right.js.map +0 -1
- package/esm/shape/label/position/spider.d.ts +0 -8
- package/esm/shape/label/position/spider.js +0 -50
- package/esm/shape/label/position/spider.js.map +0 -1
- package/esm/shape/label/position/surround.d.ts +0 -7
- package/esm/shape/label/position/surround.js +0 -35
- package/esm/shape/label/position/surround.js.map +0 -1
- package/esm/shape/label/position/top.d.ts +0 -1
- package/esm/shape/label/position/top.js +0 -2
- package/esm/shape/label/position/top.js.map +0 -1
- package/esm/shape/label/position/topLeft.d.ts +0 -1
- package/esm/shape/label/position/topLeft.js +0 -2
- package/esm/shape/label/position/topLeft.js.map +0 -1
- package/esm/shape/label/position/topRight.d.ts +0 -1
- package/esm/shape/label/position/topRight.js +0 -2
- package/esm/shape/label/position/topRight.js.map +0 -1
- package/esm/shape/label/position/utils.d.ts +0 -2
- package/esm/shape/label/position/utils.js +0 -68
- package/esm/shape/label/position/utils.js.map +0 -1
- package/esm/shape/line/curve.d.ts +0 -8
- package/esm/shape/line/curve.js +0 -136
- package/esm/shape/line/curve.js.map +0 -1
- package/esm/shape/line/hv.d.ts +0 -3
- package/esm/shape/line/hv.js +0 -7
- package/esm/shape/line/hv.js.map +0 -1
- package/esm/shape/line/hvh.d.ts +0 -3
- package/esm/shape/line/hvh.js +0 -7
- package/esm/shape/line/hvh.js.map +0 -1
- package/esm/shape/line/line.d.ts +0 -3
- package/esm/shape/line/line.js +0 -12
- package/esm/shape/line/line.js.map +0 -1
- package/esm/shape/line/smooth.d.ts +0 -3
- package/esm/shape/line/smooth.js +0 -28
- package/esm/shape/line/smooth.js.map +0 -1
- package/esm/shape/line/trail.d.ts +0 -3
- package/esm/shape/line/trail.js +0 -77
- package/esm/shape/line/trail.js.map +0 -1
- package/esm/shape/line/vh.d.ts +0 -3
- package/esm/shape/line/vh.js +0 -7
- package/esm/shape/line/vh.js.map +0 -1
- package/esm/shape/lineXY/line.d.ts +0 -24
- package/esm/shape/lineXY/line.js +0 -71
- package/esm/shape/lineXY/line.js.map +0 -1
- package/esm/shape/link/arc.d.ts +0 -8
- package/esm/shape/link/arc.js +0 -55
- package/esm/shape/link/arc.js.map +0 -1
- package/esm/shape/link/link.d.ts +0 -8
- package/esm/shape/link/link.js +0 -18
- package/esm/shape/link/link.js.map +0 -1
- package/esm/shape/link/smooth.d.ts +0 -6
- package/esm/shape/link/smooth.js +0 -43
- package/esm/shape/link/smooth.js.map +0 -1
- package/esm/shape/link/vhv.d.ts +0 -12
- package/esm/shape/link/vhv.js +0 -73
- package/esm/shape/link/vhv.js.map +0 -1
- package/esm/shape/liquid/liquid.d.ts +0 -3
- package/esm/shape/liquid/liquid.js +0 -79
- package/esm/shape/liquid/liquid.js.map +0 -1
- package/esm/shape/liquid/shapes.d.ts +0 -38
- package/esm/shape/liquid/shapes.js +0 -93
- package/esm/shape/liquid/shapes.js.map +0 -1
- package/esm/shape/liquid/wave.d.ts +0 -16
- package/esm/shape/liquid/wave.js +0 -192
- package/esm/shape/liquid/wave.js.map +0 -1
- package/esm/shape/path/color.d.ts +0 -9
- package/esm/shape/path/color.js +0 -38
- package/esm/shape/path/color.js.map +0 -1
- package/esm/shape/path/hollow.d.ts +0 -8
- package/esm/shape/path/hollow.js +0 -14
- package/esm/shape/path/hollow.js.map +0 -1
- package/esm/shape/path/path.d.ts +0 -8
- package/esm/shape/path/path.js +0 -14
- package/esm/shape/path/path.js.map +0 -1
- package/esm/shape/point/bowtie.d.ts +0 -6
- package/esm/shape/point/bowtie.js +0 -9
- package/esm/shape/point/bowtie.js.map +0 -1
- package/esm/shape/point/circle.d.ts +0 -16
- package/esm/shape/point/circle.js +0 -56
- package/esm/shape/point/circle.js.map +0 -1
- package/esm/shape/point/color.d.ts +0 -13
- package/esm/shape/point/color.js +0 -65
- package/esm/shape/point/color.js.map +0 -1
- package/esm/shape/point/cross.d.ts +0 -6
- package/esm/shape/point/cross.js +0 -9
- package/esm/shape/point/cross.js.map +0 -1
- package/esm/shape/point/diamond.d.ts +0 -6
- package/esm/shape/point/diamond.js +0 -9
- package/esm/shape/point/diamond.js.map +0 -1
- package/esm/shape/point/hexagon.d.ts +0 -6
- package/esm/shape/point/hexagon.js +0 -9
- package/esm/shape/point/hexagon.js.map +0 -1
- package/esm/shape/point/hollow.d.ts +0 -6
- package/esm/shape/point/hollow.js +0 -9
- package/esm/shape/point/hollow.js.map +0 -1
- package/esm/shape/point/hollowBowtie.d.ts +0 -6
- package/esm/shape/point/hollowBowtie.js +0 -9
- package/esm/shape/point/hollowBowtie.js.map +0 -1
- package/esm/shape/point/hollowCircle.d.ts +0 -6
- package/esm/shape/point/hollowCircle.js +0 -9
- package/esm/shape/point/hollowCircle.js.map +0 -1
- package/esm/shape/point/hollowDiamond.d.ts +0 -6
- package/esm/shape/point/hollowDiamond.js +0 -9
- package/esm/shape/point/hollowDiamond.js.map +0 -1
- package/esm/shape/point/hollowHexagon.d.ts +0 -6
- package/esm/shape/point/hollowHexagon.js +0 -9
- package/esm/shape/point/hollowHexagon.js.map +0 -1
- package/esm/shape/point/hollowSquare.d.ts +0 -6
- package/esm/shape/point/hollowSquare.js +0 -9
- package/esm/shape/point/hollowSquare.js.map +0 -1
- package/esm/shape/point/hollowTriangle.d.ts +0 -6
- package/esm/shape/point/hollowTriangle.js +0 -9
- package/esm/shape/point/hollowTriangle.js.map +0 -1
- package/esm/shape/point/hollowTriangleDown.d.ts +0 -6
- package/esm/shape/point/hollowTriangleDown.js +0 -9
- package/esm/shape/point/hollowTriangleDown.js.map +0 -1
- package/esm/shape/point/hyphen.d.ts +0 -6
- package/esm/shape/point/hyphen.js +0 -9
- package/esm/shape/point/hyphen.js.map +0 -1
- package/esm/shape/point/line.d.ts +0 -6
- package/esm/shape/point/line.js +0 -9
- package/esm/shape/point/line.js.map +0 -1
- package/esm/shape/point/plus.d.ts +0 -6
- package/esm/shape/point/plus.js +0 -9
- package/esm/shape/point/plus.js.map +0 -1
- package/esm/shape/point/point.d.ts +0 -6
- package/esm/shape/point/point.js +0 -9
- package/esm/shape/point/point.js.map +0 -1
- package/esm/shape/point/square.d.ts +0 -6
- package/esm/shape/point/square.js +0 -9
- package/esm/shape/point/square.js.map +0 -1
- package/esm/shape/point/tick.d.ts +0 -6
- package/esm/shape/point/tick.js +0 -9
- package/esm/shape/point/tick.js.map +0 -1
- package/esm/shape/point/triangle.d.ts +0 -6
- package/esm/shape/point/triangle.js +0 -9
- package/esm/shape/point/triangle.js.map +0 -1
- package/esm/shape/point/triangleDown.d.ts +0 -6
- package/esm/shape/point/triangleDown.js +0 -9
- package/esm/shape/point/triangleDown.js.map +0 -1
- package/esm/shape/polygon/polygon.d.ts +0 -3
- package/esm/shape/polygon/polygon.js +0 -70
- package/esm/shape/polygon/polygon.js.map +0 -1
- package/esm/shape/polygon/ribbon.d.ts +0 -15
- package/esm/shape/polygon/ribbon.js +0 -73
- package/esm/shape/polygon/ribbon.js.map +0 -1
- package/esm/shape/shape/shape.d.ts +0 -6
- package/esm/shape/shape/shape.js +0 -28
- package/esm/shape/shape/shape.js.map +0 -1
- package/esm/shape/text/advance.d.ts +0 -2
- package/esm/shape/text/advance.js +0 -176
- package/esm/shape/text/advance.js.map +0 -1
- package/esm/shape/text/badge.d.ts +0 -7
- package/esm/shape/text/badge.js +0 -78
- package/esm/shape/text/badge.js.map +0 -1
- package/esm/shape/text/tag.d.ts +0 -7
- package/esm/shape/text/tag.js +0 -40
- package/esm/shape/text/tag.js.map +0 -1
- package/esm/shape/text/text.d.ts +0 -6
- package/esm/shape/text/text.js +0 -35
- package/esm/shape/text/text.js.map +0 -1
- package/esm/shape/utils.d.ts +0 -56
- package/esm/shape/utils.js +0 -166
- package/esm/shape/utils.js.map +0 -1
- package/esm/shape/vector/vector.d.ts +0 -8
- package/esm/shape/vector/vector.js +0 -53
- package/esm/shape/vector/vector.js.map +0 -1
- package/esm/spec/animate.d.ts +0 -23
- package/esm/spec/animate.js +0 -2
- package/esm/spec/animate.js.map +0 -1
- package/esm/spec/component.d.ts +0 -72
- package/esm/spec/component.js +0 -2
- package/esm/spec/component.js.map +0 -1
- package/esm/spec/composition.d.ts +0 -196
- package/esm/spec/composition.js +0 -2
- package/esm/spec/composition.js.map +0 -1
- package/esm/spec/coordinate.d.ts +0 -56
- package/esm/spec/coordinate.js +0 -2
- package/esm/spec/coordinate.js.map +0 -1
- package/esm/spec/coordinateTransform.d.ts +0 -13
- package/esm/spec/coordinateTransform.js +0 -2
- package/esm/spec/coordinateTransform.js.map +0 -1
- package/esm/spec/data.d.ts +0 -17
- package/esm/spec/data.js +0 -2
- package/esm/spec/data.js.map +0 -1
- package/esm/spec/dataTransform.d.ts +0 -152
- package/esm/spec/dataTransform.js +0 -2
- package/esm/spec/dataTransform.js.map +0 -1
- package/esm/spec/encode.d.ts +0 -23
- package/esm/spec/encode.js +0 -2
- package/esm/spec/encode.js.map +0 -1
- package/esm/spec/index.d.ts +0 -24
- package/esm/spec/index.js +0 -16
- package/esm/spec/index.js.map +0 -1
- package/esm/spec/interaction.d.ts +0 -143
- package/esm/spec/interaction.js +0 -2
- package/esm/spec/interaction.js.map +0 -1
- package/esm/spec/labelTransform.d.ts +0 -33
- package/esm/spec/labelTransform.js +0 -2
- package/esm/spec/labelTransform.js.map +0 -1
- package/esm/spec/mark.d.ts +0 -209
- package/esm/spec/mark.js +0 -2
- package/esm/spec/mark.js.map +0 -1
- package/esm/spec/palette.d.ts +0 -13
- package/esm/spec/palette.js +0 -2
- package/esm/spec/palette.js.map +0 -1
- package/esm/spec/scale.d.ts +0 -39
- package/esm/spec/scale.js +0 -2
- package/esm/spec/scale.js.map +0 -1
- package/esm/spec/theme.d.ts +0 -21
- package/esm/spec/theme.js +0 -2
- package/esm/spec/theme.js.map +0 -1
- package/esm/spec/transform.d.ts +0 -166
- package/esm/spec/transform.js +0 -2
- package/esm/spec/transform.js.map +0 -1
- package/esm/spec/utils.d.ts +0 -12
- package/esm/spec/utils.js +0 -2
- package/esm/spec/utils.js.map +0 -1
- package/esm/theme/academy.d.ts +0 -20
- package/esm/theme/academy.js +0 -102
- package/esm/theme/academy.js.map +0 -1
- package/esm/theme/classic.d.ts +0 -6
- package/esm/theme/classic.js +0 -13
- package/esm/theme/classic.js.map +0 -1
- package/esm/theme/classicDark.d.ts +0 -6
- package/esm/theme/classicDark.js +0 -12
- package/esm/theme/classicDark.js.map +0 -1
- package/esm/theme/create.d.ts +0 -443
- package/esm/theme/create.js +0 -427
- package/esm/theme/create.js.map +0 -1
- package/esm/theme/dark.d.ts +0 -20
- package/esm/theme/dark.js +0 -77
- package/esm/theme/dark.js.map +0 -1
- package/esm/theme/index.d.ts +0 -5
- package/esm/theme/index.js +0 -6
- package/esm/theme/index.js.map +0 -1
- package/esm/theme/light.d.ts +0 -23
- package/esm/theme/light.js +0 -60
- package/esm/theme/light.js.map +0 -1
- package/esm/transform/bin.d.ts +0 -12
- package/esm/transform/bin.js +0 -82
- package/esm/transform/bin.js.map +0 -1
- package/esm/transform/binX.d.ts +0 -4
- package/esm/transform/binX.js +0 -7
- package/esm/transform/binX.js.map +0 -1
- package/esm/transform/diffY.d.ts +0 -8
- package/esm/transform/diffY.js +0 -40
- package/esm/transform/diffY.js.map +0 -1
- package/esm/transform/dodgeX.d.ts +0 -9
- package/esm/transform/dodgeX.js +0 -65
- package/esm/transform/dodgeX.js.map +0 -1
- package/esm/transform/filter.d.ts +0 -7
- package/esm/transform/filter.js +0 -86
- package/esm/transform/filter.js.map +0 -1
- package/esm/transform/flexX.d.ts +0 -7
- package/esm/transform/flexX.js +0 -31
- package/esm/transform/flexX.js.map +0 -1
- package/esm/transform/group.d.ts +0 -10
- package/esm/transform/group.js +0 -23
- package/esm/transform/group.js.map +0 -1
- package/esm/transform/groupColor.d.ts +0 -7
- package/esm/transform/groupColor.js +0 -9
- package/esm/transform/groupColor.js.map +0 -1
- package/esm/transform/groupN.d.ts +0 -9
- package/esm/transform/groupN.js +0 -116
- package/esm/transform/groupN.js.map +0 -1
- package/esm/transform/groupX.d.ts +0 -7
- package/esm/transform/groupX.js +0 -9
- package/esm/transform/groupX.js.map +0 -1
- package/esm/transform/groupY.d.ts +0 -7
- package/esm/transform/groupY.js +0 -9
- package/esm/transform/groupY.js.map +0 -1
- package/esm/transform/index.d.ts +0 -89
- package/esm/transform/index.js +0 -47
- package/esm/transform/index.js.map +0 -1
- package/esm/transform/jitter.d.ts +0 -10
- package/esm/transform/jitter.js +0 -45
- package/esm/transform/jitter.js.map +0 -1
- package/esm/transform/jitterX.d.ts +0 -8
- package/esm/transform/jitterX.js +0 -25
- package/esm/transform/jitterX.js.map +0 -1
- package/esm/transform/jitterY.d.ts +0 -8
- package/esm/transform/jitterY.js +0 -25
- package/esm/transform/jitterY.js.map +0 -1
- package/esm/transform/maybeDefaultX.d.ts +0 -7
- package/esm/transform/maybeDefaultX.js +0 -29
- package/esm/transform/maybeDefaultX.js.map +0 -1
- package/esm/transform/maybeDefaultY.d.ts +0 -7
- package/esm/transform/maybeDefaultY.js +0 -29
- package/esm/transform/maybeDefaultY.js.map +0 -1
- package/esm/transform/maybeFunctionAttribute.d.ts +0 -6
- package/esm/transform/maybeFunctionAttribute.js +0 -19
- package/esm/transform/maybeFunctionAttribute.js.map +0 -1
- package/esm/transform/maybeGradient.d.ts +0 -7
- package/esm/transform/maybeGradient.js +0 -25
- package/esm/transform/maybeGradient.js.map +0 -1
- package/esm/transform/maybeIdentityX.d.ts +0 -7
- package/esm/transform/maybeIdentityX.js +0 -18
- package/esm/transform/maybeIdentityX.js.map +0 -1
- package/esm/transform/maybeIdentityY.d.ts +0 -7
- package/esm/transform/maybeIdentityY.js +0 -18
- package/esm/transform/maybeIdentityY.js.map +0 -1
- package/esm/transform/maybeKey.d.ts +0 -6
- package/esm/transform/maybeKey.js +0 -32
- package/esm/transform/maybeKey.js.map +0 -1
- package/esm/transform/maybeSeries.d.ts +0 -6
- package/esm/transform/maybeSeries.js +0 -17
- package/esm/transform/maybeSeries.js.map +0 -1
- package/esm/transform/maybeSize.d.ts +0 -7
- package/esm/transform/maybeSize.js +0 -20
- package/esm/transform/maybeSize.js.map +0 -1
- package/esm/transform/maybeStackY.d.ts +0 -9
- package/esm/transform/maybeStackY.js +0 -30
- package/esm/transform/maybeStackY.js.map +0 -1
- package/esm/transform/maybeTitle.d.ts +0 -8
- package/esm/transform/maybeTitle.js +0 -45
- package/esm/transform/maybeTitle.js.map +0 -1
- package/esm/transform/maybeTooltip.d.ts +0 -8
- package/esm/transform/maybeTooltip.js +0 -36
- package/esm/transform/maybeTooltip.js.map +0 -1
- package/esm/transform/maybeTuple.d.ts +0 -7
- package/esm/transform/maybeTuple.js +0 -19
- package/esm/transform/maybeTuple.js.map +0 -1
- package/esm/transform/maybeTupleX.d.ts +0 -7
- package/esm/transform/maybeTupleX.js +0 -16
- package/esm/transform/maybeTupleX.js.map +0 -1
- package/esm/transform/maybeTupleY.d.ts +0 -7
- package/esm/transform/maybeTupleY.js +0 -16
- package/esm/transform/maybeTupleY.js.map +0 -1
- package/esm/transform/maybeVisualPosition.d.ts +0 -7
- package/esm/transform/maybeVisualPosition.js +0 -45
- package/esm/transform/maybeVisualPosition.js.map +0 -1
- package/esm/transform/maybeZeroPadding.d.ts +0 -6
- package/esm/transform/maybeZeroPadding.js +0 -14
- package/esm/transform/maybeZeroPadding.js.map +0 -1
- package/esm/transform/maybeZeroX.d.ts +0 -7
- package/esm/transform/maybeZeroX.js +0 -23
- package/esm/transform/maybeZeroX.js.map +0 -1
- package/esm/transform/maybeZeroY.d.ts +0 -6
- package/esm/transform/maybeZeroY.js +0 -22
- package/esm/transform/maybeZeroY.js.map +0 -1
- package/esm/transform/maybeZeroY1.d.ts +0 -6
- package/esm/transform/maybeZeroY1.js +0 -21
- package/esm/transform/maybeZeroY1.js.map +0 -1
- package/esm/transform/maybeZeroZ.d.ts +0 -6
- package/esm/transform/maybeZeroZ.js +0 -22
- package/esm/transform/maybeZeroZ.js.map +0 -1
- package/esm/transform/normalizeY.d.ts +0 -9
- package/esm/transform/normalizeY.js +0 -74
- package/esm/transform/normalizeY.js.map +0 -1
- package/esm/transform/pack.d.ts +0 -9
- package/esm/transform/pack.js +0 -62
- package/esm/transform/pack.js.map +0 -1
- package/esm/transform/sample.d.ts +0 -8
- package/esm/transform/sample.js +0 -64
- package/esm/transform/sample.js.map +0 -1
- package/esm/transform/select.d.ts +0 -9
- package/esm/transform/select.js +0 -41
- package/esm/transform/select.js.map +0 -1
- package/esm/transform/selectX.d.ts +0 -7
- package/esm/transform/selectX.js +0 -21
- package/esm/transform/selectX.js.map +0 -1
- package/esm/transform/selectY.d.ts +0 -7
- package/esm/transform/selectY.js +0 -21
- package/esm/transform/selectY.js.map +0 -1
- package/esm/transform/sort.d.ts +0 -14
- package/esm/transform/sort.js +0 -60
- package/esm/transform/sort.js.map +0 -1
- package/esm/transform/sortColor.d.ts +0 -7
- package/esm/transform/sortColor.js +0 -9
- package/esm/transform/sortColor.js.map +0 -1
- package/esm/transform/sortX.d.ts +0 -7
- package/esm/transform/sortX.js +0 -9
- package/esm/transform/sortX.js.map +0 -1
- package/esm/transform/sortY.d.ts +0 -7
- package/esm/transform/sortY.js +0 -9
- package/esm/transform/sortY.js.map +0 -1
- package/esm/transform/stackEnter.d.ts +0 -14
- package/esm/transform/stackEnter.js +0 -72
- package/esm/transform/stackEnter.js.map +0 -1
- package/esm/transform/stackY.d.ts +0 -9
- package/esm/transform/stackY.js +0 -107
- package/esm/transform/stackY.js.map +0 -1
- package/esm/transform/symmetryY.d.ts +0 -8
- package/esm/transform/symmetryY.js +0 -60
- package/esm/transform/symmetryY.js.map +0 -1
- package/esm/transform/utils/helper.d.ts +0 -28
- package/esm/transform/utils/helper.js +0 -51
- package/esm/transform/utils/helper.js.map +0 -1
- package/esm/transform/utils/lttb.d.ts +0 -5
- package/esm/transform/utils/lttb.js +0 -56
- package/esm/transform/utils/lttb.js.map +0 -1
- package/esm/transform/utils/order.d.ts +0 -9
- package/esm/transform/utils/order.js +0 -74
- package/esm/transform/utils/order.js.map +0 -1
- package/esm/utils/angle.d.ts +0 -6
- package/esm/utils/angle.js +0 -25
- package/esm/utils/angle.js.map +0 -1
- package/esm/utils/array.d.ts +0 -22
- package/esm/utils/array.js +0 -77
- package/esm/utils/array.js.map +0 -1
- package/esm/utils/bounds.d.ts +0 -28
- package/esm/utils/bounds.js +0 -48
- package/esm/utils/bounds.js.map +0 -1
- package/esm/utils/color.d.ts +0 -6
- package/esm/utils/color.js +0 -7
- package/esm/utils/color.js.map +0 -1
- package/esm/utils/container.d.ts +0 -8
- package/esm/utils/container.js +0 -16
- package/esm/utils/container.js.map +0 -1
- package/esm/utils/coordinate.d.ts +0 -16
- package/esm/utils/coordinate.js +0 -75
- package/esm/utils/coordinate.js.map +0 -1
- package/esm/utils/createElement.d.ts +0 -5
- package/esm/utils/createElement.js +0 -16
- package/esm/utils/createElement.js.map +0 -1
- package/esm/utils/dateFormat.d.ts +0 -1
- package/esm/utils/dateFormat.js +0 -18
- package/esm/utils/dateFormat.js.map +0 -1
- package/esm/utils/event.d.ts +0 -32
- package/esm/utils/event.js +0 -34
- package/esm/utils/event.js.map +0 -1
- package/esm/utils/expr.d.ts +0 -8
- package/esm/utils/expr.js +0 -51
- package/esm/utils/expr.js.map +0 -1
- package/esm/utils/flow.d.ts +0 -7
- package/esm/utils/flow.js +0 -12
- package/esm/utils/flow.js.map +0 -1
- package/esm/utils/helper.d.ts +0 -55
- package/esm/utils/helper.js +0 -195
- package/esm/utils/helper.js.map +0 -1
- package/esm/utils/lru.d.ts +0 -4
- package/esm/utils/lru.js +0 -18
- package/esm/utils/lru.js.map +0 -1
- package/esm/utils/mark.d.ts +0 -4
- package/esm/utils/mark.js +0 -29
- package/esm/utils/mark.js.map +0 -1
- package/esm/utils/marker.d.ts +0 -10
- package/esm/utils/marker.js +0 -250
- package/esm/utils/marker.js.map +0 -1
- package/esm/utils/number.d.ts +0 -8
- package/esm/utils/number.js +0 -15
- package/esm/utils/number.js.map +0 -1
- package/esm/utils/scale.d.ts +0 -6
- package/esm/utils/scale.js +0 -74
- package/esm/utils/scale.js.map +0 -1
- package/esm/utils/selection.d.ts +0 -67
- package/esm/utils/selection.js +0 -303
- package/esm/utils/selection.js.map +0 -1
- package/esm/utils/size.d.ts +0 -17
- package/esm/utils/size.js +0 -43
- package/esm/utils/size.js.map +0 -1
- package/esm/utils/string.d.ts +0 -12
- package/esm/utils/string.js +0 -19
- package/esm/utils/string.js.map +0 -1
- package/esm/utils/style.d.ts +0 -5
- package/esm/utils/style.js +0 -23
- package/esm/utils/style.js.map +0 -1
- package/esm/utils/treeDataTransform.d.ts +0 -28
- package/esm/utils/treeDataTransform.js +0 -94
- package/esm/utils/treeDataTransform.js.map +0 -1
- package/esm/utils/vector.d.ts +0 -20
- package/esm/utils/vector.js +0 -52
- package/esm/utils/vector.js.map +0 -1
- package/lib/animation/fadeIn.d.ts +0 -7
- package/lib/animation/fadeIn.js +0 -24
- package/lib/animation/fadeIn.js.map +0 -1
- package/lib/animation/fadeOut.d.ts +0 -7
- package/lib/animation/fadeOut.js +0 -24
- package/lib/animation/fadeOut.js.map +0 -1
- package/lib/animation/growInX.d.ts +0 -7
- package/lib/animation/growInX.js +0 -28
- package/lib/animation/growInX.js.map +0 -1
- package/lib/animation/growInY.d.ts +0 -7
- package/lib/animation/growInY.js +0 -28
- package/lib/animation/growInY.js.map +0 -1
- package/lib/animation/index.d.ts +0 -24
- package/lib/animation/index.js +0 -30
- package/lib/animation/index.js.map +0 -1
- package/lib/animation/morphing.d.ts +0 -13
- package/lib/animation/morphing.js +0 -239
- package/lib/animation/morphing.js.map +0 -1
- package/lib/animation/pathIn.d.ts +0 -7
- package/lib/animation/pathIn.js +0 -21
- package/lib/animation/pathIn.js.map +0 -1
- package/lib/animation/scaleInX.d.ts +0 -7
- package/lib/animation/scaleInX.js +0 -50
- package/lib/animation/scaleInX.js.map +0 -1
- package/lib/animation/scaleInY.d.ts +0 -7
- package/lib/animation/scaleInY.js +0 -99
- package/lib/animation/scaleInY.js.map +0 -1
- package/lib/animation/scaleOutX.d.ts +0 -7
- package/lib/animation/scaleOutX.js +0 -47
- package/lib/animation/scaleOutX.js.map +0 -1
- package/lib/animation/scaleOutY.d.ts +0 -7
- package/lib/animation/scaleOutY.js +0 -47
- package/lib/animation/scaleOutY.js.map +0 -1
- package/lib/animation/types.d.ts +0 -6
- package/lib/animation/types.js +0 -3
- package/lib/animation/types.js.map +0 -1
- package/lib/animation/utils.d.ts +0 -12
- package/lib/animation/utils.js +0 -51
- package/lib/animation/utils.js.map +0 -1
- package/lib/animation/waveIn.d.ts +0 -7
- package/lib/animation/waveIn.js +0 -70
- package/lib/animation/waveIn.js.map +0 -1
- package/lib/animation/zoomIn.d.ts +0 -4
- package/lib/animation/zoomIn.js +0 -41
- package/lib/animation/zoomIn.js.map +0 -1
- package/lib/animation/zoomOut.d.ts +0 -4
- package/lib/animation/zoomOut.js +0 -35
- package/lib/animation/zoomOut.js.map +0 -1
- package/lib/api/chart.d.ts +0 -13
- package/lib/api/chart.js +0 -8
- package/lib/api/chart.js.map +0 -1
- package/lib/api/composition.d.ts +0 -37
- package/lib/api/composition.js +0 -90
- package/lib/api/composition.js.map +0 -1
- package/lib/api/define.d.ts +0 -14
- package/lib/api/define.js +0 -97
- package/lib/api/define.js.map +0 -1
- package/lib/api/extend.d.ts +0 -15
- package/lib/api/extend.js +0 -13
- package/lib/api/extend.js.map +0 -1
- package/lib/api/index.d.ts +0 -4
- package/lib/api/index.js +0 -12
- package/lib/api/index.js.map +0 -1
- package/lib/api/library.d.ts +0 -4
- package/lib/api/library.js +0 -14
- package/lib/api/library.js.map +0 -1
- package/lib/api/mark.d.ts +0 -29
- package/lib/api/mark.js +0 -69
- package/lib/api/mark.js.map +0 -1
- package/lib/api/node.d.ts +0 -40
- package/lib/api/node.js +0 -125
- package/lib/api/node.js.map +0 -1
- package/lib/api/props.d.ts +0 -171
- package/lib/api/props.js +0 -25
- package/lib/api/props.js.map +0 -1
- package/lib/api/runtime.d.ts +0 -67
- package/lib/api/runtime.js +0 -313
- package/lib/api/runtime.js.map +0 -1
- package/lib/api/types.d.ts +0 -65
- package/lib/api/types.js +0 -3
- package/lib/api/types.js.map +0 -1
- package/lib/api/utils.d.ts +0 -25
- package/lib/api/utils.js +0 -263
- package/lib/api/utils.js.map +0 -1
- package/lib/component/axis.d.ts +0 -29
- package/lib/component/axis.js +0 -408
- package/lib/component/axis.js.map +0 -1
- package/lib/component/axisArc.d.ts +0 -7
- package/lib/component/axisArc.js +0 -13
- package/lib/component/axisArc.js.map +0 -1
- package/lib/component/axisRadar.d.ts +0 -9
- package/lib/component/axisRadar.js +0 -51
- package/lib/component/axisRadar.js.map +0 -1
- package/lib/component/axisX.d.ts +0 -8
- package/lib/component/axisX.js +0 -20
- package/lib/component/axisX.js.map +0 -1
- package/lib/component/axisY.d.ts +0 -7
- package/lib/component/axisY.js +0 -17
- package/lib/component/axisY.js.map +0 -1
- package/lib/component/constant.d.ts +0 -14
- package/lib/component/constant.js +0 -244
- package/lib/component/constant.js.map +0 -1
- package/lib/component/index.d.ts +0 -26
- package/lib/component/index.js +0 -35
- package/lib/component/index.js.map +0 -1
- package/lib/component/legendCategory.d.ts +0 -15
- package/lib/component/legendCategory.js +0 -179
- package/lib/component/legendCategory.js.map +0 -1
- package/lib/component/legendContinuous.d.ts +0 -12
- package/lib/component/legendContinuous.js +0 -151
- package/lib/component/legendContinuous.js.map +0 -1
- package/lib/component/legendContinuousBlock.d.ts +0 -4
- package/lib/component/legendContinuousBlock.js +0 -10
- package/lib/component/legendContinuousBlock.js.map +0 -1
- package/lib/component/legendContinuousBlockSize.d.ts +0 -4
- package/lib/component/legendContinuousBlockSize.js +0 -11
- package/lib/component/legendContinuousBlockSize.js.map +0 -1
- package/lib/component/legendContinuousSize.d.ts +0 -4
- package/lib/component/legendContinuousSize.js +0 -21
- package/lib/component/legendContinuousSize.js.map +0 -1
- package/lib/component/legends.d.ts +0 -3
- package/lib/component/legends.js +0 -13
- package/lib/component/legends.js.map +0 -1
- package/lib/component/scrollbar.d.ts +0 -10
- package/lib/component/scrollbar.js +0 -45
- package/lib/component/scrollbar.js.map +0 -1
- package/lib/component/scrollbarX.d.ts +0 -7
- package/lib/component/scrollbarX.js +0 -13
- package/lib/component/scrollbarX.js.map +0 -1
- package/lib/component/scrollbarY.d.ts +0 -7
- package/lib/component/scrollbarY.js +0 -13
- package/lib/component/scrollbarY.js.map +0 -1
- package/lib/component/slider.d.ts +0 -13
- package/lib/component/slider.js +0 -99
- package/lib/component/slider.js.map +0 -1
- package/lib/component/sliderX.d.ts +0 -7
- package/lib/component/sliderX.js +0 -13
- package/lib/component/sliderX.js.map +0 -1
- package/lib/component/sliderY.d.ts +0 -7
- package/lib/component/sliderY.js +0 -13
- package/lib/component/sliderY.js.map +0 -1
- package/lib/component/title.d.ts +0 -6
- package/lib/component/title.js +0 -83
- package/lib/component/title.js.map +0 -1
- package/lib/component/utils.d.ts +0 -36
- package/lib/component/utils.js +0 -162
- package/lib/component/utils.js.map +0 -1
- package/lib/composition/d3Projection.d.ts +0 -1
- package/lib/composition/d3Projection.js +0 -36
- package/lib/composition/d3Projection.js.map +0 -1
- package/lib/composition/facetCircle.d.ts +0 -7
- package/lib/composition/facetCircle.js +0 -89
- package/lib/composition/facetCircle.js.map +0 -1
- package/lib/composition/facetRect.d.ts +0 -31
- package/lib/composition/facetRect.js +0 -301
- package/lib/composition/facetRect.js.map +0 -1
- package/lib/composition/geoPath.d.ts +0 -7
- package/lib/composition/geoPath.js +0 -41
- package/lib/composition/geoPath.js.map +0 -1
- package/lib/composition/geoView.d.ts +0 -7
- package/lib/composition/geoView.js +0 -246
- package/lib/composition/geoView.js.map +0 -1
- package/lib/composition/index.d.ts +0 -18
- package/lib/composition/index.js +0 -24
- package/lib/composition/index.js.map +0 -1
- package/lib/composition/mark.d.ts +0 -4
- package/lib/composition/mark.js +0 -55
- package/lib/composition/mark.js.map +0 -1
- package/lib/composition/repeatMatrix.d.ts +0 -8
- package/lib/composition/repeatMatrix.js +0 -156
- package/lib/composition/repeatMatrix.js.map +0 -1
- package/lib/composition/spaceFlex.d.ts +0 -7
- package/lib/composition/spaceFlex.js +0 -44
- package/lib/composition/spaceFlex.js.map +0 -1
- package/lib/composition/spaceLayer.d.ts +0 -7
- package/lib/composition/spaceLayer.js +0 -33
- package/lib/composition/spaceLayer.js.map +0 -1
- package/lib/composition/timingKeyframe.d.ts +0 -7
- package/lib/composition/timingKeyframe.js +0 -84
- package/lib/composition/timingKeyframe.js.map +0 -1
- package/lib/composition/utils.d.ts +0 -18
- package/lib/composition/utils.js +0 -48
- package/lib/composition/utils.js.map +0 -1
- package/lib/composition/view.d.ts +0 -9
- package/lib/composition/view.js +0 -37
- package/lib/composition/view.js.map +0 -1
- package/lib/coordinate/cartesian.d.ts +0 -7
- package/lib/coordinate/cartesian.js +0 -10
- package/lib/coordinate/cartesian.js.map +0 -1
- package/lib/coordinate/fisheye.d.ts +0 -7
- package/lib/coordinate/fisheye.js +0 -10
- package/lib/coordinate/fisheye.js.map +0 -1
- package/lib/coordinate/helix.d.ts +0 -7
- package/lib/coordinate/helix.js +0 -15
- package/lib/coordinate/helix.js.map +0 -1
- package/lib/coordinate/index.d.ts +0 -18
- package/lib/coordinate/index.js +0 -25
- package/lib/coordinate/index.js.map +0 -1
- package/lib/coordinate/parallel.d.ts +0 -7
- package/lib/coordinate/parallel.js +0 -10
- package/lib/coordinate/parallel.js.map +0 -1
- package/lib/coordinate/polar.d.ts +0 -15
- package/lib/coordinate/polar.js +0 -31
- package/lib/coordinate/polar.js.map +0 -1
- package/lib/coordinate/radar.d.ts +0 -7
- package/lib/coordinate/radar.js +0 -18
- package/lib/coordinate/radar.js.map +0 -1
- package/lib/coordinate/radial.d.ts +0 -14
- package/lib/coordinate/radial.js +0 -30
- package/lib/coordinate/radial.js.map +0 -1
- package/lib/coordinate/theta.d.ts +0 -15
- package/lib/coordinate/theta.js +0 -28
- package/lib/coordinate/theta.js.map +0 -1
- package/lib/coordinate/transpose.d.ts +0 -7
- package/lib/coordinate/transpose.js +0 -15
- package/lib/coordinate/transpose.js.map +0 -1
- package/lib/data/arc.d.ts +0 -6
- package/lib/data/arc.js +0 -15
- package/lib/data/arc.js.map +0 -1
- package/lib/data/cluster.d.ts +0 -7
- package/lib/data/cluster.js +0 -42
- package/lib/data/cluster.js.map +0 -1
- package/lib/data/custom.d.ts +0 -7
- package/lib/data/custom.js +0 -14
- package/lib/data/custom.js.map +0 -1
- package/lib/data/ema.d.ts +0 -10
- package/lib/data/ema.js +0 -49
- package/lib/data/ema.js.map +0 -1
- package/lib/data/fetch.d.ts +0 -4
- package/lib/data/fetch.js +0 -32
- package/lib/data/fetch.js.map +0 -1
- package/lib/data/filter.d.ts +0 -9
- package/lib/data/filter.js +0 -18
- package/lib/data/filter.js.map +0 -1
- package/lib/data/fold.d.ts +0 -10
- package/lib/data/fold.js +0 -23
- package/lib/data/fold.js.map +0 -1
- package/lib/data/index.d.ts +0 -42
- package/lib/data/index.js +0 -46
- package/lib/data/index.js.map +0 -1
- package/lib/data/inline.d.ts +0 -4
- package/lib/data/inline.js +0 -10
- package/lib/data/inline.js.map +0 -1
- package/lib/data/join.d.ts +0 -7
- package/lib/data/join.js +0 -26
- package/lib/data/join.js.map +0 -1
- package/lib/data/kde.d.ts +0 -10
- package/lib/data/kde.js +0 -38
- package/lib/data/kde.js.map +0 -1
- package/lib/data/log.d.ts +0 -7
- package/lib/data/log.js +0 -15
- package/lib/data/log.js.map +0 -1
- package/lib/data/map.d.ts +0 -7
- package/lib/data/map.js +0 -14
- package/lib/data/map.js.map +0 -1
- package/lib/data/pick.d.ts +0 -7
- package/lib/data/pick.js +0 -22
- package/lib/data/pick.js.map +0 -1
- package/lib/data/rename.d.ts +0 -8
- package/lib/data/rename.js +0 -21
- package/lib/data/rename.js.map +0 -1
- package/lib/data/sankey.d.ts +0 -7
- package/lib/data/sankey.js +0 -81
- package/lib/data/sankey.js.map +0 -1
- package/lib/data/slice.d.ts +0 -8
- package/lib/data/slice.js +0 -14
- package/lib/data/slice.js.map +0 -1
- package/lib/data/sort.d.ts +0 -8
- package/lib/data/sort.js +0 -17
- package/lib/data/sort.js.map +0 -1
- package/lib/data/sortBy.d.ts +0 -7
- package/lib/data/sortBy.js +0 -28
- package/lib/data/sortBy.js.map +0 -1
- package/lib/data/tree.d.ts +0 -3
- package/lib/data/tree.js +0 -11
- package/lib/data/tree.js.map +0 -1
- package/lib/data/utils/arc/arc.d.ts +0 -31
- package/lib/data/utils/arc/arc.js +0 -188
- package/lib/data/utils/arc/arc.js.map +0 -1
- package/lib/data/utils/arc/index.d.ts +0 -2
- package/lib/data/utils/arc/index.js +0 -6
- package/lib/data/utils/arc/index.js.map +0 -1
- package/lib/data/utils/arc/sort.d.ts +0 -4
- package/lib/data/utils/arc/sort.js +0 -20
- package/lib/data/utils/arc/sort.js.map +0 -1
- package/lib/data/utils/arc/types.d.ts +0 -51
- package/lib/data/utils/arc/types.js +0 -3
- package/lib/data/utils/arc/types.js.map +0 -1
- package/lib/data/utils/d3-cloud/index.d.ts +0 -1
- package/lib/data/utils/d3-cloud/index.js +0 -402
- package/lib/data/utils/d3-cloud/index.js.map +0 -1
- package/lib/data/utils/d3-sankey/align.d.ts +0 -4
- package/lib/data/utils/d3-sankey/align.js +0 -28
- package/lib/data/utils/d3-sankey/align.js.map +0 -1
- package/lib/data/utils/d3-sankey/constant.d.ts +0 -1
- package/lib/data/utils/d3-sankey/constant.js +0 -10
- package/lib/data/utils/d3-sankey/constant.js.map +0 -1
- package/lib/data/utils/d3-sankey/index.d.ts +0 -12
- package/lib/data/utils/d3-sankey/index.js +0 -20
- package/lib/data/utils/d3-sankey/index.js.map +0 -1
- package/lib/data/utils/d3-sankey/sankey.d.ts +0 -24
- package/lib/data/utils/d3-sankey/sankey.js +0 -392
- package/lib/data/utils/d3-sankey/sankey.js.map +0 -1
- package/lib/data/utils/fields.d.ts +0 -6
- package/lib/data/utils/fields.js +0 -19
- package/lib/data/utils/fields.js.map +0 -1
- package/lib/data/utils/flow.d.ts +0 -9
- package/lib/data/utils/flow.js +0 -49
- package/lib/data/utils/flow.js.map +0 -1
- package/lib/data/utils/memo.d.ts +0 -17
- package/lib/data/utils/memo.js +0 -85
- package/lib/data/utils/memo.js.map +0 -1
- package/lib/data/utils/venn/circleintersection.d.ts +0 -33
- package/lib/data/utils/venn/circleintersection.js +0 -202
- package/lib/data/utils/venn/circleintersection.js.map +0 -1
- package/lib/data/utils/venn/diagram.d.ts +0 -2
- package/lib/data/utils/venn/diagram.js +0 -48
- package/lib/data/utils/venn/diagram.js.map +0 -1
- package/lib/data/utils/venn/index.d.ts +0 -5
- package/lib/data/utils/venn/index.js +0 -12
- package/lib/data/utils/venn/index.js.map +0 -1
- package/lib/data/utils/venn/layout.d.ts +0 -27
- package/lib/data/utils/venn/layout.js +0 -620
- package/lib/data/utils/venn/layout.js.map +0 -1
- package/lib/data/venn.d.ts +0 -7
- package/lib/data/venn.js +0 -38
- package/lib/data/venn.js.map +0 -1
- package/lib/data/wordCloud.d.ts +0 -110
- package/lib/data/wordCloud.js +0 -127
- package/lib/data/wordCloud.js.map +0 -1
- package/lib/encode/column.d.ts +0 -7
- package/lib/encode/column.js +0 -12
- package/lib/encode/column.js.map +0 -1
- package/lib/encode/constant.d.ts +0 -7
- package/lib/encode/constant.js +0 -12
- package/lib/encode/constant.js.map +0 -1
- package/lib/encode/field.d.ts +0 -7
- package/lib/encode/field.js +0 -12
- package/lib/encode/field.js.map +0 -1
- package/lib/encode/index.d.ts +0 -8
- package/lib/encode/index.js +0 -12
- package/lib/encode/index.js.map +0 -1
- package/lib/encode/transform.d.ts +0 -9
- package/lib/encode/transform.js +0 -14
- package/lib/encode/transform.js.map +0 -1
- package/lib/exports.d.ts +0 -12
- package/lib/exports.js +0 -55
- package/lib/exports.js.map +0 -1
- package/lib/index.d.ts +0 -356
- package/lib/index.js +0 -31
- package/lib/index.js.map +0 -1
- package/lib/interaction/brushAxisHighlight.d.ts +0 -29
- package/lib/interaction/brushAxisHighlight.js +0 -286
- package/lib/interaction/brushAxisHighlight.js.map +0 -1
- package/lib/interaction/brushFilter.d.ts +0 -18
- package/lib/interaction/brushFilter.js +0 -147
- package/lib/interaction/brushFilter.js.map +0 -1
- package/lib/interaction/brushHighlight.d.ts +0 -48
- package/lib/interaction/brushHighlight.js +0 -592
- package/lib/interaction/brushHighlight.js.map +0 -1
- package/lib/interaction/brushXFilter.d.ts +0 -1
- package/lib/interaction/brushXFilter.js +0 -10
- package/lib/interaction/brushXFilter.js.map +0 -1
- package/lib/interaction/brushXHighlight.d.ts +0 -7
- package/lib/interaction/brushXHighlight.js +0 -14
- package/lib/interaction/brushXHighlight.js.map +0 -1
- package/lib/interaction/brushYFilter.d.ts +0 -1
- package/lib/interaction/brushYFilter.js +0 -10
- package/lib/interaction/brushYFilter.js.map +0 -1
- package/lib/interaction/brushYHighlight.d.ts +0 -7
- package/lib/interaction/brushYHighlight.js +0 -14
- package/lib/interaction/brushYHighlight.js.map +0 -1
- package/lib/interaction/chartIndex.d.ts +0 -9
- package/lib/interaction/chartIndex.js +0 -182
- package/lib/interaction/chartIndex.js.map +0 -1
- package/lib/interaction/elementHighlight.d.ts +0 -23
- package/lib/interaction/elementHighlight.js +0 -174
- package/lib/interaction/elementHighlight.js.map +0 -1
- package/lib/interaction/elementHighlightByColor.d.ts +0 -6
- package/lib/interaction/elementHighlightByColor.js +0 -13
- package/lib/interaction/elementHighlightByColor.js.map +0 -1
- package/lib/interaction/elementHighlightByX.d.ts +0 -6
- package/lib/interaction/elementHighlightByX.js +0 -13
- package/lib/interaction/elementHighlightByX.js.map +0 -1
- package/lib/interaction/elementPointMove.d.ts +0 -9
- package/lib/interaction/elementPointMove.js +0 -510
- package/lib/interaction/elementPointMove.js.map +0 -1
- package/lib/interaction/elementSelect.d.ts +0 -24
- package/lib/interaction/elementSelect.js +0 -239
- package/lib/interaction/elementSelect.js.map +0 -1
- package/lib/interaction/elementSelectByColor.d.ts +0 -6
- package/lib/interaction/elementSelectByColor.js +0 -13
- package/lib/interaction/elementSelectByColor.js.map +0 -1
- package/lib/interaction/elementSelectByX.d.ts +0 -6
- package/lib/interaction/elementSelectByX.js +0 -13
- package/lib/interaction/elementSelectByX.js.map +0 -1
- package/lib/interaction/event.d.ts +0 -6
- package/lib/interaction/event.js +0 -133
- package/lib/interaction/event.js.map +0 -1
- package/lib/interaction/fisheye.d.ts +0 -4
- package/lib/interaction/fisheye.js +0 -61
- package/lib/interaction/fisheye.js.map +0 -1
- package/lib/interaction/index.d.ts +0 -24
- package/lib/interaction/index.js +0 -52
- package/lib/interaction/index.js.map +0 -1
- package/lib/interaction/legendFilter.d.ts +0 -14
- package/lib/interaction/legendFilter.js +0 -304
- package/lib/interaction/legendFilter.js.map +0 -1
- package/lib/interaction/legendHighlight.d.ts +0 -1
- package/lib/interaction/legendHighlight.js +0 -129
- package/lib/interaction/legendHighlight.js.map +0 -1
- package/lib/interaction/poptip.d.ts +0 -10
- package/lib/interaction/poptip.js +0 -98
- package/lib/interaction/poptip.js.map +0 -1
- package/lib/interaction/scrollbarFilter.d.ts +0 -2
- package/lib/interaction/scrollbarFilter.js +0 -31
- package/lib/interaction/scrollbarFilter.js.map +0 -1
- package/lib/interaction/sliderFilter.d.ts +0 -5
- package/lib/interaction/sliderFilter.js +0 -177
- package/lib/interaction/sliderFilter.js.map +0 -1
- package/lib/interaction/tooltip.d.ts +0 -16
- package/lib/interaction/tooltip.js +0 -915
- package/lib/interaction/tooltip.js.map +0 -1
- package/lib/interaction/treemapDrillDown.d.ts +0 -10
- package/lib/interaction/treemapDrillDown.js +0 -230
- package/lib/interaction/treemapDrillDown.js.map +0 -1
- package/lib/interaction/utils.d.ts +0 -68
- package/lib/interaction/utils.js +0 -507
- package/lib/interaction/utils.js.map +0 -1
- package/lib/label-transform/contrastReverse.d.ts +0 -9
- package/lib/label-transform/contrastReverse.js +0 -54
- package/lib/label-transform/contrastReverse.js.map +0 -1
- package/lib/label-transform/exceedAdjust.d.ts +0 -7
- package/lib/label-transform/exceedAdjust.js +0 -55
- package/lib/label-transform/exceedAdjust.js.map +0 -1
- package/lib/label-transform/index.d.ts +0 -10
- package/lib/label-transform/index.js +0 -14
- package/lib/label-transform/index.js.map +0 -1
- package/lib/label-transform/overflowHide.d.ts +0 -7
- package/lib/label-transform/overflowHide.js +0 -23
- package/lib/label-transform/overflowHide.js.map +0 -1
- package/lib/label-transform/overlapDodgeY.d.ts +0 -7
- package/lib/label-transform/overlapDodgeY.js +0 -79
- package/lib/label-transform/overlapDodgeY.js.map +0 -1
- package/lib/label-transform/overlapHide.d.ts +0 -7
- package/lib/label-transform/overlapHide.js +0 -29
- package/lib/label-transform/overlapHide.js.map +0 -1
- package/lib/lib/builtinlib.d.ts +0 -13
- package/lib/lib/builtinlib.js +0 -25
- package/lib/lib/builtinlib.js.map +0 -1
- package/lib/lib/core.d.ts +0 -158
- package/lib/lib/core.js +0 -177
- package/lib/lib/core.js.map +0 -1
- package/lib/lib/geo.d.ts +0 -4
- package/lib/lib/geo.js +0 -13
- package/lib/lib/geo.js.map +0 -1
- package/lib/lib/graph.d.ts +0 -10
- package/lib/lib/graph.js +0 -19
- package/lib/lib/graph.js.map +0 -1
- package/lib/lib/index.d.ts +0 -6
- package/lib/lib/index.js +0 -16
- package/lib/lib/index.js.map +0 -1
- package/lib/lib/lite.d.ts +0 -64
- package/lib/lib/lite.js +0 -82
- package/lib/lib/lite.js.map +0 -1
- package/lib/lib/plot.d.ts +0 -7
- package/lib/lib/plot.js +0 -16
- package/lib/lib/plot.js.map +0 -1
- package/lib/lib/std.d.ts +0 -171
- package/lib/lib/std.js +0 -12
- package/lib/lib/std.js.map +0 -1
- package/lib/mark/area.d.ts +0 -4
- package/lib/mark/area.js +0 -90
- package/lib/mark/area.js.map +0 -1
- package/lib/mark/box.d.ts +0 -34
- package/lib/mark/box.js +0 -100
- package/lib/mark/box.js.map +0 -1
- package/lib/mark/boxplot.d.ts +0 -4
- package/lib/mark/boxplot.js +0 -106
- package/lib/mark/boxplot.js.map +0 -1
- package/lib/mark/cell.d.ts +0 -9
- package/lib/mark/cell.js +0 -54
- package/lib/mark/cell.js.map +0 -1
- package/lib/mark/chord.d.ts +0 -4
- package/lib/mark/chord.js +0 -124
- package/lib/mark/chord.js.map +0 -1
- package/lib/mark/connector.d.ts +0 -4
- package/lib/mark/connector.js +0 -27
- package/lib/mark/connector.js.map +0 -1
- package/lib/mark/density.d.ts +0 -4
- package/lib/mark/density.js +0 -68
- package/lib/mark/density.js.map +0 -1
- package/lib/mark/forceGraph.d.ts +0 -4
- package/lib/mark/forceGraph.js +0 -119
- package/lib/mark/forceGraph.js.map +0 -1
- package/lib/mark/gauge.d.ts +0 -11
- package/lib/mark/gauge.js +0 -182
- package/lib/mark/gauge.js.map +0 -1
- package/lib/mark/heatmap.d.ts +0 -7
- package/lib/mark/heatmap.js +0 -45
- package/lib/mark/heatmap.js.map +0 -1
- package/lib/mark/image.d.ts +0 -4
- package/lib/mark/image.js +0 -44
- package/lib/mark/image.js.map +0 -1
- package/lib/mark/index.d.ts +0 -62
- package/lib/mark/index.js +0 -68
- package/lib/mark/index.js.map +0 -1
- package/lib/mark/interval.d.ts +0 -12
- package/lib/mark/interval.js +0 -81
- package/lib/mark/interval.js.map +0 -1
- package/lib/mark/line.d.ts +0 -7
- package/lib/mark/line.js +0 -100
- package/lib/mark/line.js.map +0 -1
- package/lib/mark/lineX.d.ts +0 -4
- package/lib/mark/lineX.js +0 -36
- package/lib/mark/lineX.js.map +0 -1
- package/lib/mark/lineY.d.ts +0 -4
- package/lib/mark/lineY.js +0 -36
- package/lib/mark/lineY.js.map +0 -1
- package/lib/mark/link.d.ts +0 -7
- package/lib/mark/link.js +0 -45
- package/lib/mark/link.js.map +0 -1
- package/lib/mark/liquid.d.ts +0 -7
- package/lib/mark/liquid.js +0 -88
- package/lib/mark/liquid.js.map +0 -1
- package/lib/mark/pack.d.ts +0 -4
- package/lib/mark/pack.js +0 -82
- package/lib/mark/pack.js.map +0 -1
- package/lib/mark/path.d.ts +0 -7
- package/lib/mark/path.js +0 -34
- package/lib/mark/path.js.map +0 -1
- package/lib/mark/point.d.ts +0 -9
- package/lib/mark/point.js +0 -88
- package/lib/mark/point.js.map +0 -1
- package/lib/mark/polygon.d.ts +0 -7
- package/lib/mark/polygon.js +0 -49
- package/lib/mark/polygon.js.map +0 -1
- package/lib/mark/range.d.ts +0 -8
- package/lib/mark/range.js +0 -52
- package/lib/mark/range.js.map +0 -1
- package/lib/mark/rangeX.d.ts +0 -4
- package/lib/mark/rangeX.js +0 -27
- package/lib/mark/rangeX.js.map +0 -1
- package/lib/mark/rangeY.d.ts +0 -4
- package/lib/mark/rangeY.js +0 -27
- package/lib/mark/rangeY.js.map +0 -1
- package/lib/mark/rect.d.ts +0 -4
- package/lib/mark/rect.js +0 -41
- package/lib/mark/rect.js.map +0 -1
- package/lib/mark/sankey.d.ts +0 -8
- package/lib/mark/sankey.js +0 -117
- package/lib/mark/sankey.js.map +0 -1
- package/lib/mark/shape.d.ts +0 -7
- package/lib/mark/shape.js +0 -44
- package/lib/mark/shape.js.map +0 -1
- package/lib/mark/text.d.ts +0 -4
- package/lib/mark/text.js +0 -47
- package/lib/mark/text.js.map +0 -1
- package/lib/mark/tree.d.ts +0 -4
- package/lib/mark/tree.js +0 -75
- package/lib/mark/tree.js.map +0 -1
- package/lib/mark/treemap.d.ts +0 -4
- package/lib/mark/treemap.js +0 -109
- package/lib/mark/treemap.js.map +0 -1
- package/lib/mark/utils.d.ts +0 -67
- package/lib/mark/utils.js +0 -129
- package/lib/mark/utils.js.map +0 -1
- package/lib/mark/vector.d.ts +0 -8
- package/lib/mark/vector.js +0 -48
- package/lib/mark/vector.js.map +0 -1
- package/lib/mark/wordCloud.d.ts +0 -4
- package/lib/mark/wordCloud.js +0 -63
- package/lib/mark/wordCloud.js.map +0 -1
- package/lib/palette/category10.d.ts +0 -7
- package/lib/palette/category10.js +0 -23
- package/lib/palette/category10.js.map +0 -1
- package/lib/palette/category20.d.ts +0 -7
- package/lib/palette/category20.js +0 -33
- package/lib/palette/category20.js.map +0 -1
- package/lib/palette/index.d.ts +0 -4
- package/lib/palette/index.js +0 -8
- package/lib/palette/index.js.map +0 -1
- package/lib/runtime/component.d.ts +0 -18
- package/lib/runtime/component.js +0 -784
- package/lib/runtime/component.js.map +0 -1
- package/lib/runtime/constant.d.ts +0 -9
- package/lib/runtime/constant.js +0 -13
- package/lib/runtime/constant.js.map +0 -1
- package/lib/runtime/coordinate.d.ts +0 -24
- package/lib/runtime/coordinate.js +0 -103
- package/lib/runtime/coordinate.js.map +0 -1
- package/lib/runtime/index.d.ts +0 -9
- package/lib/runtime/index.js +0 -30
- package/lib/runtime/index.js.map +0 -1
- package/lib/runtime/layout.d.ts +0 -10
- package/lib/runtime/layout.js +0 -589
- package/lib/runtime/layout.js.map +0 -1
- package/lib/runtime/library.d.ts +0 -5
- package/lib/runtime/library.js +0 -42
- package/lib/runtime/library.js.map +0 -1
- package/lib/runtime/mark.d.ts +0 -6
- package/lib/runtime/mark.js +0 -135
- package/lib/runtime/mark.js.map +0 -1
- package/lib/runtime/option-preprocess/index.d.ts +0 -2
- package/lib/runtime/option-preprocess/index.js +0 -20
- package/lib/runtime/option-preprocess/index.js.map +0 -1
- package/lib/runtime/option-preprocess/style.d.ts +0 -2
- package/lib/runtime/option-preprocess/style.js +0 -16
- package/lib/runtime/option-preprocess/style.js.map +0 -1
- package/lib/runtime/plot.d.ts +0 -5
- package/lib/runtime/plot.js +0 -1217
- package/lib/runtime/plot.js.map +0 -1
- package/lib/runtime/render.d.ts +0 -5
- package/lib/runtime/render.js +0 -175
- package/lib/runtime/render.js.map +0 -1
- package/lib/runtime/scale.d.ts +0 -14
- package/lib/runtime/scale.js +0 -594
- package/lib/runtime/scale.js.map +0 -1
- package/lib/runtime/transform.d.ts +0 -16
- package/lib/runtime/transform.js +0 -300
- package/lib/runtime/transform.js.map +0 -1
- package/lib/runtime/types/common.d.ts +0 -159
- package/lib/runtime/types/common.js +0 -3
- package/lib/runtime/types/common.js.map +0 -1
- package/lib/runtime/types/component.d.ts +0 -103
- package/lib/runtime/types/component.js +0 -3
- package/lib/runtime/types/component.js.map +0 -1
- package/lib/runtime/types/data.d.ts +0 -8
- package/lib/runtime/types/data.js +0 -3
- package/lib/runtime/types/data.js.map +0 -1
- package/lib/runtime/types/encode.d.ts +0 -23
- package/lib/runtime/types/encode.js +0 -3
- package/lib/runtime/types/encode.js.map +0 -1
- package/lib/runtime/types/mark.d.ts +0 -36
- package/lib/runtime/types/mark.js +0 -3
- package/lib/runtime/types/mark.js.map +0 -1
- package/lib/runtime/types/options.d.ts +0 -145
- package/lib/runtime/types/options.js +0 -3
- package/lib/runtime/types/options.js.map +0 -1
- package/lib/runtime/types/scale.d.ts +0 -21
- package/lib/runtime/types/scale.js +0 -25
- package/lib/runtime/types/scale.js.map +0 -1
- package/lib/runtime/types/theme.d.ts +0 -91
- package/lib/runtime/types/theme.js +0 -3
- package/lib/runtime/types/theme.js.map +0 -1
- package/lib/runtime/types/transform.d.ts +0 -14
- package/lib/runtime/types/transform.js +0 -3
- package/lib/runtime/types/transform.js.map +0 -1
- package/lib/scale/band.d.ts +0 -4
- package/lib/scale/band.js +0 -10
- package/lib/scale/band.js.map +0 -1
- package/lib/scale/constant.d.ts +0 -4
- package/lib/scale/constant.js +0 -10
- package/lib/scale/constant.js.map +0 -1
- package/lib/scale/identity.d.ts +0 -4
- package/lib/scale/identity.js +0 -10
- package/lib/scale/identity.js.map +0 -1
- package/lib/scale/index.d.ts +0 -28
- package/lib/scale/index.js +0 -32
- package/lib/scale/index.js.map +0 -1
- package/lib/scale/linear.d.ts +0 -4
- package/lib/scale/linear.js +0 -10
- package/lib/scale/linear.js.map +0 -1
- package/lib/scale/log.d.ts +0 -4
- package/lib/scale/log.js +0 -10
- package/lib/scale/log.js.map +0 -1
- package/lib/scale/ordinal.d.ts +0 -4
- package/lib/scale/ordinal.js +0 -10
- package/lib/scale/ordinal.js.map +0 -1
- package/lib/scale/point.d.ts +0 -4
- package/lib/scale/point.js +0 -10
- package/lib/scale/point.js.map +0 -1
- package/lib/scale/pow.d.ts +0 -4
- package/lib/scale/pow.js +0 -10
- package/lib/scale/pow.js.map +0 -1
- package/lib/scale/quantile.d.ts +0 -4
- package/lib/scale/quantile.js +0 -10
- package/lib/scale/quantile.js.map +0 -1
- package/lib/scale/quantize.d.ts +0 -4
- package/lib/scale/quantize.js +0 -10
- package/lib/scale/quantize.js.map +0 -1
- package/lib/scale/sequential.d.ts +0 -4
- package/lib/scale/sequential.js +0 -10
- package/lib/scale/sequential.js.map +0 -1
- package/lib/scale/sqrt.d.ts +0 -4
- package/lib/scale/sqrt.js +0 -10
- package/lib/scale/sqrt.js.map +0 -1
- package/lib/scale/threshold.d.ts +0 -4
- package/lib/scale/threshold.js +0 -10
- package/lib/scale/threshold.js.map +0 -1
- package/lib/scale/time.d.ts +0 -4
- package/lib/scale/time.js +0 -10
- package/lib/scale/time.js.map +0 -1
- package/lib/shape/area/area.d.ts +0 -3
- package/lib/shape/area/area.js +0 -16
- package/lib/shape/area/area.js.map +0 -1
- package/lib/shape/area/curve.d.ts +0 -8
- package/lib/shape/area/curve.js +0 -175
- package/lib/shape/area/curve.js.map +0 -1
- package/lib/shape/area/hv.d.ts +0 -3
- package/lib/shape/area/hv.js +0 -13
- package/lib/shape/area/hv.js.map +0 -1
- package/lib/shape/area/hvh.d.ts +0 -3
- package/lib/shape/area/hvh.js +0 -13
- package/lib/shape/area/hvh.js.map +0 -1
- package/lib/shape/area/smooth.d.ts +0 -3
- package/lib/shape/area/smooth.js +0 -32
- package/lib/shape/area/smooth.js.map +0 -1
- package/lib/shape/area/vh.d.ts +0 -3
- package/lib/shape/area/vh.js +0 -13
- package/lib/shape/area/vh.js.map +0 -1
- package/lib/shape/box/box.d.ts +0 -3
- package/lib/shape/box/box.js +0 -94
- package/lib/shape/box/box.js.map +0 -1
- package/lib/shape/box/violin.d.ts +0 -3
- package/lib/shape/box/violin.js +0 -88
- package/lib/shape/box/violin.js.map +0 -1
- package/lib/shape/connector/connector.d.ts +0 -11
- package/lib/shape/connector/connector.js +0 -86
- package/lib/shape/connector/connector.js.map +0 -1
- package/lib/shape/density/density.d.ts +0 -8
- package/lib/shape/density/density.js +0 -53
- package/lib/shape/density/density.js.map +0 -1
- package/lib/shape/gauge/round.d.ts +0 -3
- package/lib/shape/gauge/round.js +0 -44
- package/lib/shape/gauge/round.js.map +0 -1
- package/lib/shape/heatmap/heatmap.d.ts +0 -4
- package/lib/shape/heatmap/heatmap.js +0 -71
- package/lib/shape/heatmap/heatmap.js.map +0 -1
- package/lib/shape/heatmap/renderer/gradient.d.ts +0 -5
- package/lib/shape/heatmap/renderer/gradient.js +0 -17
- package/lib/shape/heatmap/renderer/gradient.js.map +0 -1
- package/lib/shape/heatmap/renderer/index.d.ts +0 -6
- package/lib/shape/heatmap/renderer/index.js +0 -126
- package/lib/shape/heatmap/renderer/index.js.map +0 -1
- package/lib/shape/heatmap/renderer/types.d.ts +0 -36
- package/lib/shape/heatmap/renderer/types.js +0 -3
- package/lib/shape/heatmap/renderer/types.js.map +0 -1
- package/lib/shape/image/image.d.ts +0 -3
- package/lib/shape/image/image.js +0 -50
- package/lib/shape/image/image.js.map +0 -1
- package/lib/shape/index.d.ts +0 -114
- package/lib/shape/index.js +0 -133
- package/lib/shape/index.js.map +0 -1
- package/lib/shape/interval/color.d.ts +0 -25
- package/lib/shape/interval/color.js +0 -138
- package/lib/shape/interval/color.js.map +0 -1
- package/lib/shape/interval/funnel.d.ts +0 -10
- package/lib/shape/interval/funnel.js +0 -61
- package/lib/shape/interval/funnel.js.map +0 -1
- package/lib/shape/interval/hollow.d.ts +0 -6
- package/lib/shape/interval/hollow.js +0 -13
- package/lib/shape/interval/hollow.js.map +0 -1
- package/lib/shape/interval/pyramid.d.ts +0 -6
- package/lib/shape/interval/pyramid.js +0 -42
- package/lib/shape/interval/pyramid.js.map +0 -1
- package/lib/shape/interval/rect.d.ts +0 -20
- package/lib/shape/interval/rect.js +0 -14
- package/lib/shape/interval/rect.js.map +0 -1
- package/lib/shape/label/label.d.ts +0 -13
- package/lib/shape/label/label.js +0 -98
- package/lib/shape/label/label.js.map +0 -1
- package/lib/shape/label/position/area.d.ts +0 -13
- package/lib/shape/label/position/area.js +0 -32
- package/lib/shape/label/position/area.js.map +0 -1
- package/lib/shape/label/position/bottom.d.ts +0 -1
- package/lib/shape/label/position/bottom.js +0 -6
- package/lib/shape/label/position/bottom.js.map +0 -1
- package/lib/shape/label/position/bottomLeft.d.ts +0 -1
- package/lib/shape/label/position/bottomLeft.js +0 -6
- package/lib/shape/label/position/bottomLeft.js.map +0 -1
- package/lib/shape/label/position/bottomRight.d.ts +0 -1
- package/lib/shape/label/position/bottomRight.js +0 -6
- package/lib/shape/label/position/bottomRight.js.map +0 -1
- package/lib/shape/label/position/default.d.ts +0 -18
- package/lib/shape/label/position/default.js +0 -121
- package/lib/shape/label/position/default.js.map +0 -1
- package/lib/shape/label/position/index.d.ts +0 -13
- package/lib/shape/label/position/index.js +0 -30
- package/lib/shape/label/position/index.js.map +0 -1
- package/lib/shape/label/position/inside.d.ts +0 -1
- package/lib/shape/label/position/inside.js +0 -6
- package/lib/shape/label/position/inside.js.map +0 -1
- package/lib/shape/label/position/left.d.ts +0 -1
- package/lib/shape/label/position/left.js +0 -6
- package/lib/shape/label/position/left.js.map +0 -1
- package/lib/shape/label/position/outside.d.ts +0 -18
- package/lib/shape/label/position/outside.js +0 -75
- package/lib/shape/label/position/outside.js.map +0 -1
- package/lib/shape/label/position/right.d.ts +0 -1
- package/lib/shape/label/position/right.js +0 -6
- package/lib/shape/label/position/right.js.map +0 -1
- package/lib/shape/label/position/spider.d.ts +0 -8
- package/lib/shape/label/position/spider.js +0 -54
- package/lib/shape/label/position/spider.js.map +0 -1
- package/lib/shape/label/position/surround.d.ts +0 -7
- package/lib/shape/label/position/surround.js +0 -39
- package/lib/shape/label/position/surround.js.map +0 -1
- package/lib/shape/label/position/top.d.ts +0 -1
- package/lib/shape/label/position/top.js +0 -6
- package/lib/shape/label/position/top.js.map +0 -1
- package/lib/shape/label/position/topLeft.d.ts +0 -1
- package/lib/shape/label/position/topLeft.js +0 -6
- package/lib/shape/label/position/topLeft.js.map +0 -1
- package/lib/shape/label/position/topRight.d.ts +0 -1
- package/lib/shape/label/position/topRight.js +0 -6
- package/lib/shape/label/position/topRight.js.map +0 -1
- package/lib/shape/label/position/utils.d.ts +0 -2
- package/lib/shape/label/position/utils.js +0 -73
- package/lib/shape/label/position/utils.js.map +0 -1
- package/lib/shape/line/curve.d.ts +0 -8
- package/lib/shape/line/curve.js +0 -140
- package/lib/shape/line/curve.js.map +0 -1
- package/lib/shape/line/hv.d.ts +0 -3
- package/lib/shape/line/hv.js +0 -11
- package/lib/shape/line/hv.js.map +0 -1
- package/lib/shape/line/hvh.d.ts +0 -3
- package/lib/shape/line/hvh.js +0 -11
- package/lib/shape/line/hvh.js.map +0 -1
- package/lib/shape/line/line.d.ts +0 -3
- package/lib/shape/line/line.js +0 -16
- package/lib/shape/line/line.js.map +0 -1
- package/lib/shape/line/smooth.d.ts +0 -3
- package/lib/shape/line/smooth.js +0 -32
- package/lib/shape/line/smooth.js.map +0 -1
- package/lib/shape/line/trail.d.ts +0 -3
- package/lib/shape/line/trail.js +0 -81
- package/lib/shape/line/trail.js.map +0 -1
- package/lib/shape/line/vh.d.ts +0 -3
- package/lib/shape/line/vh.js +0 -11
- package/lib/shape/line/vh.js.map +0 -1
- package/lib/shape/lineXY/line.d.ts +0 -24
- package/lib/shape/lineXY/line.js +0 -75
- package/lib/shape/lineXY/line.js.map +0 -1
- package/lib/shape/link/arc.d.ts +0 -8
- package/lib/shape/link/arc.js +0 -59
- package/lib/shape/link/arc.js.map +0 -1
- package/lib/shape/link/link.d.ts +0 -8
- package/lib/shape/link/link.js +0 -22
- package/lib/shape/link/link.js.map +0 -1
- package/lib/shape/link/smooth.d.ts +0 -6
- package/lib/shape/link/smooth.js +0 -47
- package/lib/shape/link/smooth.js.map +0 -1
- package/lib/shape/link/vhv.d.ts +0 -12
- package/lib/shape/link/vhv.js +0 -77
- package/lib/shape/link/vhv.js.map +0 -1
- package/lib/shape/liquid/liquid.d.ts +0 -3
- package/lib/shape/liquid/liquid.js +0 -83
- package/lib/shape/liquid/liquid.js.map +0 -1
- package/lib/shape/liquid/shapes.d.ts +0 -38
- package/lib/shape/liquid/shapes.js +0 -96
- package/lib/shape/liquid/shapes.js.map +0 -1
- package/lib/shape/liquid/wave.d.ts +0 -16
- package/lib/shape/liquid/wave.js +0 -196
- package/lib/shape/liquid/wave.js.map +0 -1
- package/lib/shape/path/color.d.ts +0 -9
- package/lib/shape/path/color.js +0 -42
- package/lib/shape/path/color.js.map +0 -1
- package/lib/shape/path/hollow.d.ts +0 -8
- package/lib/shape/path/hollow.js +0 -18
- package/lib/shape/path/hollow.js.map +0 -1
- package/lib/shape/path/path.d.ts +0 -8
- package/lib/shape/path/path.js +0 -18
- package/lib/shape/path/path.js.map +0 -1
- package/lib/shape/point/bowtie.d.ts +0 -6
- package/lib/shape/point/bowtie.js +0 -13
- package/lib/shape/point/bowtie.js.map +0 -1
- package/lib/shape/point/circle.d.ts +0 -16
- package/lib/shape/point/circle.js +0 -61
- package/lib/shape/point/circle.js.map +0 -1
- package/lib/shape/point/color.d.ts +0 -13
- package/lib/shape/point/color.js +0 -70
- package/lib/shape/point/color.js.map +0 -1
- package/lib/shape/point/cross.d.ts +0 -6
- package/lib/shape/point/cross.js +0 -13
- package/lib/shape/point/cross.js.map +0 -1
- package/lib/shape/point/diamond.d.ts +0 -6
- package/lib/shape/point/diamond.js +0 -13
- package/lib/shape/point/diamond.js.map +0 -1
- package/lib/shape/point/hexagon.d.ts +0 -6
- package/lib/shape/point/hexagon.js +0 -13
- package/lib/shape/point/hexagon.js.map +0 -1
- package/lib/shape/point/hollow.d.ts +0 -6
- package/lib/shape/point/hollow.js +0 -13
- package/lib/shape/point/hollow.js.map +0 -1
- package/lib/shape/point/hollowBowtie.d.ts +0 -6
- package/lib/shape/point/hollowBowtie.js +0 -13
- package/lib/shape/point/hollowBowtie.js.map +0 -1
- package/lib/shape/point/hollowCircle.d.ts +0 -6
- package/lib/shape/point/hollowCircle.js +0 -13
- package/lib/shape/point/hollowCircle.js.map +0 -1
- package/lib/shape/point/hollowDiamond.d.ts +0 -6
- package/lib/shape/point/hollowDiamond.js +0 -13
- package/lib/shape/point/hollowDiamond.js.map +0 -1
- package/lib/shape/point/hollowHexagon.d.ts +0 -6
- package/lib/shape/point/hollowHexagon.js +0 -13
- package/lib/shape/point/hollowHexagon.js.map +0 -1
- package/lib/shape/point/hollowSquare.d.ts +0 -6
- package/lib/shape/point/hollowSquare.js +0 -13
- package/lib/shape/point/hollowSquare.js.map +0 -1
- package/lib/shape/point/hollowTriangle.d.ts +0 -6
- package/lib/shape/point/hollowTriangle.js +0 -13
- package/lib/shape/point/hollowTriangle.js.map +0 -1
- package/lib/shape/point/hollowTriangleDown.d.ts +0 -6
- package/lib/shape/point/hollowTriangleDown.js +0 -13
- package/lib/shape/point/hollowTriangleDown.js.map +0 -1
- package/lib/shape/point/hyphen.d.ts +0 -6
- package/lib/shape/point/hyphen.js +0 -13
- package/lib/shape/point/hyphen.js.map +0 -1
- package/lib/shape/point/line.d.ts +0 -6
- package/lib/shape/point/line.js +0 -13
- package/lib/shape/point/line.js.map +0 -1
- package/lib/shape/point/plus.d.ts +0 -6
- package/lib/shape/point/plus.js +0 -13
- package/lib/shape/point/plus.js.map +0 -1
- package/lib/shape/point/point.d.ts +0 -6
- package/lib/shape/point/point.js +0 -13
- package/lib/shape/point/point.js.map +0 -1
- package/lib/shape/point/square.d.ts +0 -6
- package/lib/shape/point/square.js +0 -13
- package/lib/shape/point/square.js.map +0 -1
- package/lib/shape/point/tick.d.ts +0 -6
- package/lib/shape/point/tick.js +0 -13
- package/lib/shape/point/tick.js.map +0 -1
- package/lib/shape/point/triangle.d.ts +0 -6
- package/lib/shape/point/triangle.js +0 -13
- package/lib/shape/point/triangle.js.map +0 -1
- package/lib/shape/point/triangleDown.d.ts +0 -6
- package/lib/shape/point/triangleDown.js +0 -13
- package/lib/shape/point/triangleDown.js.map +0 -1
- package/lib/shape/polygon/polygon.d.ts +0 -3
- package/lib/shape/polygon/polygon.js +0 -74
- package/lib/shape/polygon/polygon.js.map +0 -1
- package/lib/shape/polygon/ribbon.d.ts +0 -15
- package/lib/shape/polygon/ribbon.js +0 -77
- package/lib/shape/polygon/ribbon.js.map +0 -1
- package/lib/shape/shape/shape.d.ts +0 -6
- package/lib/shape/shape/shape.js +0 -32
- package/lib/shape/shape/shape.js.map +0 -1
- package/lib/shape/text/advance.d.ts +0 -2
- package/lib/shape/text/advance.js +0 -179
- package/lib/shape/text/advance.js.map +0 -1
- package/lib/shape/text/badge.d.ts +0 -7
- package/lib/shape/text/badge.js +0 -82
- package/lib/shape/text/badge.js.map +0 -1
- package/lib/shape/text/tag.d.ts +0 -7
- package/lib/shape/text/tag.js +0 -44
- package/lib/shape/text/tag.js.map +0 -1
- package/lib/shape/text/text.d.ts +0 -6
- package/lib/shape/text/text.js +0 -39
- package/lib/shape/text/text.js.map +0 -1
- package/lib/shape/utils.d.ts +0 -56
- package/lib/shape/utils.js +0 -180
- package/lib/shape/utils.js.map +0 -1
- package/lib/shape/vector/vector.d.ts +0 -8
- package/lib/shape/vector/vector.js +0 -57
- package/lib/shape/vector/vector.js.map +0 -1
- package/lib/spec/animate.d.ts +0 -23
- package/lib/spec/animate.js +0 -3
- package/lib/spec/animate.js.map +0 -1
- package/lib/spec/component.d.ts +0 -72
- package/lib/spec/component.js +0 -3
- package/lib/spec/component.js.map +0 -1
- package/lib/spec/composition.d.ts +0 -196
- package/lib/spec/composition.js +0 -3
- package/lib/spec/composition.js.map +0 -1
- package/lib/spec/coordinate.d.ts +0 -56
- package/lib/spec/coordinate.js +0 -3
- package/lib/spec/coordinate.js.map +0 -1
- package/lib/spec/coordinateTransform.d.ts +0 -13
- package/lib/spec/coordinateTransform.js +0 -3
- package/lib/spec/coordinateTransform.js.map +0 -1
- package/lib/spec/data.d.ts +0 -17
- package/lib/spec/data.js +0 -3
- package/lib/spec/data.js.map +0 -1
- package/lib/spec/dataTransform.d.ts +0 -152
- package/lib/spec/dataTransform.js +0 -3
- package/lib/spec/dataTransform.js.map +0 -1
- package/lib/spec/encode.d.ts +0 -23
- package/lib/spec/encode.js +0 -3
- package/lib/spec/encode.js.map +0 -1
- package/lib/spec/index.d.ts +0 -24
- package/lib/spec/index.js +0 -32
- package/lib/spec/index.js.map +0 -1
- package/lib/spec/interaction.d.ts +0 -143
- package/lib/spec/interaction.js +0 -3
- package/lib/spec/interaction.js.map +0 -1
- package/lib/spec/labelTransform.d.ts +0 -33
- package/lib/spec/labelTransform.js +0 -3
- package/lib/spec/labelTransform.js.map +0 -1
- package/lib/spec/mark.d.ts +0 -209
- package/lib/spec/mark.js +0 -3
- package/lib/spec/mark.js.map +0 -1
- package/lib/spec/palette.d.ts +0 -13
- package/lib/spec/palette.js +0 -3
- package/lib/spec/palette.js.map +0 -1
- package/lib/spec/scale.d.ts +0 -39
- package/lib/spec/scale.js +0 -3
- package/lib/spec/scale.js.map +0 -1
- package/lib/spec/theme.d.ts +0 -21
- package/lib/spec/theme.js +0 -3
- package/lib/spec/theme.js.map +0 -1
- package/lib/spec/transform.d.ts +0 -166
- package/lib/spec/transform.js +0 -3
- package/lib/spec/transform.js.map +0 -1
- package/lib/spec/utils.d.ts +0 -12
- package/lib/spec/utils.js +0 -3
- package/lib/spec/utils.js.map +0 -1
- package/lib/theme/academy.d.ts +0 -20
- package/lib/theme/academy.js +0 -106
- package/lib/theme/academy.js.map +0 -1
- package/lib/theme/classic.d.ts +0 -6
- package/lib/theme/classic.js +0 -17
- package/lib/theme/classic.js.map +0 -1
- package/lib/theme/classicDark.d.ts +0 -6
- package/lib/theme/classicDark.js +0 -16
- package/lib/theme/classicDark.js.map +0 -1
- package/lib/theme/create.d.ts +0 -443
- package/lib/theme/create.js +0 -431
- package/lib/theme/create.js.map +0 -1
- package/lib/theme/dark.d.ts +0 -20
- package/lib/theme/dark.js +0 -81
- package/lib/theme/dark.js.map +0 -1
- package/lib/theme/index.d.ts +0 -5
- package/lib/theme/index.js +0 -14
- package/lib/theme/index.js.map +0 -1
- package/lib/theme/light.d.ts +0 -23
- package/lib/theme/light.js +0 -64
- package/lib/theme/light.js.map +0 -1
- package/lib/transform/bin.d.ts +0 -12
- package/lib/transform/bin.js +0 -86
- package/lib/transform/bin.js.map +0 -1
- package/lib/transform/binX.d.ts +0 -4
- package/lib/transform/binX.js +0 -11
- package/lib/transform/binX.js.map +0 -1
- package/lib/transform/diffY.d.ts +0 -8
- package/lib/transform/diffY.js +0 -44
- package/lib/transform/diffY.js.map +0 -1
- package/lib/transform/dodgeX.d.ts +0 -9
- package/lib/transform/dodgeX.js +0 -69
- package/lib/transform/dodgeX.js.map +0 -1
- package/lib/transform/filter.d.ts +0 -7
- package/lib/transform/filter.js +0 -90
- package/lib/transform/filter.js.map +0 -1
- package/lib/transform/flexX.d.ts +0 -7
- package/lib/transform/flexX.js +0 -35
- package/lib/transform/flexX.js.map +0 -1
- package/lib/transform/group.d.ts +0 -10
- package/lib/transform/group.js +0 -27
- package/lib/transform/group.js.map +0 -1
- package/lib/transform/groupColor.d.ts +0 -7
- package/lib/transform/groupColor.js +0 -13
- package/lib/transform/groupColor.js.map +0 -1
- package/lib/transform/groupN.d.ts +0 -9
- package/lib/transform/groupN.js +0 -120
- package/lib/transform/groupN.js.map +0 -1
- package/lib/transform/groupX.d.ts +0 -7
- package/lib/transform/groupX.js +0 -13
- package/lib/transform/groupX.js.map +0 -1
- package/lib/transform/groupY.d.ts +0 -7
- package/lib/transform/groupY.js +0 -13
- package/lib/transform/groupY.js.map +0 -1
- package/lib/transform/index.d.ts +0 -89
- package/lib/transform/index.js +0 -96
- package/lib/transform/index.js.map +0 -1
- package/lib/transform/jitter.d.ts +0 -10
- package/lib/transform/jitter.js +0 -51
- package/lib/transform/jitter.js.map +0 -1
- package/lib/transform/jitterX.d.ts +0 -8
- package/lib/transform/jitterX.js +0 -29
- package/lib/transform/jitterX.js.map +0 -1
- package/lib/transform/jitterY.d.ts +0 -8
- package/lib/transform/jitterY.js +0 -29
- package/lib/transform/jitterY.js.map +0 -1
- package/lib/transform/maybeDefaultX.d.ts +0 -7
- package/lib/transform/maybeDefaultX.js +0 -33
- package/lib/transform/maybeDefaultX.js.map +0 -1
- package/lib/transform/maybeDefaultY.d.ts +0 -7
- package/lib/transform/maybeDefaultY.js +0 -33
- package/lib/transform/maybeDefaultY.js.map +0 -1
- package/lib/transform/maybeFunctionAttribute.d.ts +0 -6
- package/lib/transform/maybeFunctionAttribute.js +0 -23
- package/lib/transform/maybeFunctionAttribute.js.map +0 -1
- package/lib/transform/maybeGradient.d.ts +0 -7
- package/lib/transform/maybeGradient.js +0 -29
- package/lib/transform/maybeGradient.js.map +0 -1
- package/lib/transform/maybeIdentityX.d.ts +0 -7
- package/lib/transform/maybeIdentityX.js +0 -22
- package/lib/transform/maybeIdentityX.js.map +0 -1
- package/lib/transform/maybeIdentityY.d.ts +0 -7
- package/lib/transform/maybeIdentityY.js +0 -22
- package/lib/transform/maybeIdentityY.js.map +0 -1
- package/lib/transform/maybeKey.d.ts +0 -6
- package/lib/transform/maybeKey.js +0 -36
- package/lib/transform/maybeKey.js.map +0 -1
- package/lib/transform/maybeSeries.d.ts +0 -6
- package/lib/transform/maybeSeries.js +0 -21
- package/lib/transform/maybeSeries.js.map +0 -1
- package/lib/transform/maybeSize.d.ts +0 -7
- package/lib/transform/maybeSize.js +0 -24
- package/lib/transform/maybeSize.js.map +0 -1
- package/lib/transform/maybeStackY.d.ts +0 -9
- package/lib/transform/maybeStackY.js +0 -34
- package/lib/transform/maybeStackY.js.map +0 -1
- package/lib/transform/maybeTitle.d.ts +0 -8
- package/lib/transform/maybeTitle.js +0 -49
- package/lib/transform/maybeTitle.js.map +0 -1
- package/lib/transform/maybeTooltip.d.ts +0 -8
- package/lib/transform/maybeTooltip.js +0 -40
- package/lib/transform/maybeTooltip.js.map +0 -1
- package/lib/transform/maybeTuple.d.ts +0 -7
- package/lib/transform/maybeTuple.js +0 -23
- package/lib/transform/maybeTuple.js.map +0 -1
- package/lib/transform/maybeTupleX.d.ts +0 -7
- package/lib/transform/maybeTupleX.js +0 -20
- package/lib/transform/maybeTupleX.js.map +0 -1
- package/lib/transform/maybeTupleY.d.ts +0 -7
- package/lib/transform/maybeTupleY.js +0 -20
- package/lib/transform/maybeTupleY.js.map +0 -1
- package/lib/transform/maybeVisualPosition.d.ts +0 -7
- package/lib/transform/maybeVisualPosition.js +0 -49
- package/lib/transform/maybeVisualPosition.js.map +0 -1
- package/lib/transform/maybeZeroPadding.d.ts +0 -6
- package/lib/transform/maybeZeroPadding.js +0 -18
- package/lib/transform/maybeZeroPadding.js.map +0 -1
- package/lib/transform/maybeZeroX.d.ts +0 -7
- package/lib/transform/maybeZeroX.js +0 -27
- package/lib/transform/maybeZeroX.js.map +0 -1
- package/lib/transform/maybeZeroY.d.ts +0 -6
- package/lib/transform/maybeZeroY.js +0 -26
- package/lib/transform/maybeZeroY.js.map +0 -1
- package/lib/transform/maybeZeroY1.d.ts +0 -6
- package/lib/transform/maybeZeroY1.js +0 -25
- package/lib/transform/maybeZeroY1.js.map +0 -1
- package/lib/transform/maybeZeroZ.d.ts +0 -6
- package/lib/transform/maybeZeroZ.js +0 -26
- package/lib/transform/maybeZeroZ.js.map +0 -1
- package/lib/transform/normalizeY.d.ts +0 -9
- package/lib/transform/normalizeY.js +0 -78
- package/lib/transform/normalizeY.js.map +0 -1
- package/lib/transform/pack.d.ts +0 -9
- package/lib/transform/pack.js +0 -66
- package/lib/transform/pack.js.map +0 -1
- package/lib/transform/sample.d.ts +0 -8
- package/lib/transform/sample.js +0 -68
- package/lib/transform/sample.js.map +0 -1
- package/lib/transform/select.d.ts +0 -9
- package/lib/transform/select.js +0 -45
- package/lib/transform/select.js.map +0 -1
- package/lib/transform/selectX.d.ts +0 -7
- package/lib/transform/selectX.js +0 -25
- package/lib/transform/selectX.js.map +0 -1
- package/lib/transform/selectY.d.ts +0 -7
- package/lib/transform/selectY.js +0 -25
- package/lib/transform/selectY.js.map +0 -1
- package/lib/transform/sort.d.ts +0 -14
- package/lib/transform/sort.js +0 -64
- package/lib/transform/sort.js.map +0 -1
- package/lib/transform/sortColor.d.ts +0 -7
- package/lib/transform/sortColor.js +0 -13
- package/lib/transform/sortColor.js.map +0 -1
- package/lib/transform/sortX.d.ts +0 -7
- package/lib/transform/sortX.js +0 -13
- package/lib/transform/sortX.js.map +0 -1
- package/lib/transform/sortY.d.ts +0 -7
- package/lib/transform/sortY.js +0 -13
- package/lib/transform/sortY.js.map +0 -1
- package/lib/transform/stackEnter.d.ts +0 -14
- package/lib/transform/stackEnter.js +0 -76
- package/lib/transform/stackEnter.js.map +0 -1
- package/lib/transform/stackY.d.ts +0 -9
- package/lib/transform/stackY.js +0 -111
- package/lib/transform/stackY.js.map +0 -1
- package/lib/transform/symmetryY.d.ts +0 -8
- package/lib/transform/symmetryY.js +0 -64
- package/lib/transform/symmetryY.js.map +0 -1
- package/lib/transform/utils/helper.d.ts +0 -28
- package/lib/transform/utils/helper.js +0 -62
- package/lib/transform/utils/helper.js.map +0 -1
- package/lib/transform/utils/lttb.d.ts +0 -5
- package/lib/transform/utils/lttb.js +0 -60
- package/lib/transform/utils/lttb.js.map +0 -1
- package/lib/transform/utils/order.d.ts +0 -9
- package/lib/transform/utils/order.js +0 -81
- package/lib/transform/utils/order.js.map +0 -1
- package/lib/utils/angle.d.ts +0 -6
- package/lib/utils/angle.js +0 -31
- package/lib/utils/angle.js.map +0 -1
- package/lib/utils/array.d.ts +0 -22
- package/lib/utils/array.js +0 -89
- package/lib/utils/array.js.map +0 -1
- package/lib/utils/bounds.d.ts +0 -28
- package/lib/utils/bounds.js +0 -55
- package/lib/utils/bounds.js.map +0 -1
- package/lib/utils/color.d.ts +0 -6
- package/lib/utils/color.js +0 -11
- package/lib/utils/color.js.map +0 -1
- package/lib/utils/container.d.ts +0 -8
- package/lib/utils/container.js +0 -19
- package/lib/utils/container.js.map +0 -1
- package/lib/utils/coordinate.d.ts +0 -16
- package/lib/utils/coordinate.js +0 -92
- package/lib/utils/coordinate.js.map +0 -1
- package/lib/utils/createElement.d.ts +0 -5
- package/lib/utils/createElement.js +0 -20
- package/lib/utils/createElement.js.map +0 -1
- package/lib/utils/dateFormat.d.ts +0 -1
- package/lib/utils/dateFormat.js +0 -22
- package/lib/utils/dateFormat.js.map +0 -1
- package/lib/utils/event.d.ts +0 -32
- package/lib/utils/event.js +0 -37
- package/lib/utils/event.js.map +0 -1
- package/lib/utils/expr.d.ts +0 -8
- package/lib/utils/expr.js +0 -55
- package/lib/utils/expr.js.map +0 -1
- package/lib/utils/flow.d.ts +0 -7
- package/lib/utils/flow.js +0 -16
- package/lib/utils/flow.js.map +0 -1
- package/lib/utils/helper.d.ts +0 -55
- package/lib/utils/helper.js +0 -221
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/lru.d.ts +0 -4
- package/lib/utils/lru.js +0 -25
- package/lib/utils/lru.js.map +0 -1
- package/lib/utils/mark.d.ts +0 -4
- package/lib/utils/mark.js +0 -36
- package/lib/utils/mark.js.map +0 -1
- package/lib/utils/marker.d.ts +0 -10
- package/lib/utils/marker.js +0 -256
- package/lib/utils/marker.js.map +0 -1
- package/lib/utils/number.d.ts +0 -8
- package/lib/utils/number.js +0 -20
- package/lib/utils/number.js.map +0 -1
- package/lib/utils/scale.d.ts +0 -6
- package/lib/utils/scale.js +0 -83
- package/lib/utils/scale.js.map +0 -1
- package/lib/utils/selection.d.ts +0 -67
- package/lib/utils/selection.js +0 -308
- package/lib/utils/selection.js.map +0 -1
- package/lib/utils/size.d.ts +0 -17
- package/lib/utils/size.js +0 -48
- package/lib/utils/size.js.map +0 -1
- package/lib/utils/string.d.ts +0 -12
- package/lib/utils/string.js +0 -24
- package/lib/utils/string.js.map +0 -1
- package/lib/utils/style.d.ts +0 -5
- package/lib/utils/style.js +0 -30
- package/lib/utils/style.js.map +0 -1
- package/lib/utils/treeDataTransform.d.ts +0 -28
- package/lib/utils/treeDataTransform.js +0 -98
- package/lib/utils/treeDataTransform.js.map +0 -1
- package/lib/utils/vector.d.ts +0 -20
- package/lib/utils/vector.js +0 -63
- package/lib/utils/vector.js.map +0 -1
|
@@ -1,915 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Tooltip = exports.tooltip = exports.seriesTooltip = void 0;
|
|
15
|
-
const g_1 = require("@antv/g");
|
|
16
|
-
const d3_array_1 = require("@antv/vendor/d3-array");
|
|
17
|
-
const util_1 = require("@antv/util");
|
|
18
|
-
const component_1 = require("@antv/component");
|
|
19
|
-
const helper_1 = require("../utils/helper");
|
|
20
|
-
const coordinate_1 = require("../utils/coordinate");
|
|
21
|
-
const vector_1 = require("../utils/vector");
|
|
22
|
-
const scale_1 = require("../utils/scale");
|
|
23
|
-
const transform_1 = require("../runtime/transform");
|
|
24
|
-
const utils_1 = require("./utils");
|
|
25
|
-
function getContainer(group, mount) {
|
|
26
|
-
if (mount) {
|
|
27
|
-
return typeof mount === 'string' ? document.querySelector(mount) : mount;
|
|
28
|
-
}
|
|
29
|
-
const canvas = group.ownerDocument.defaultView
|
|
30
|
-
.getContextService()
|
|
31
|
-
.getDomElement();
|
|
32
|
-
return canvas.parentElement;
|
|
33
|
-
}
|
|
34
|
-
function getBounding(root) {
|
|
35
|
-
const bbox = root.getRenderBounds();
|
|
36
|
-
const { min: [x1, y1], max: [x2, y2], } = bbox;
|
|
37
|
-
return {
|
|
38
|
-
x: x1,
|
|
39
|
-
y: y1,
|
|
40
|
-
width: x2 - x1,
|
|
41
|
-
height: y2 - y1,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function getContainerOffset(container1, container2) {
|
|
45
|
-
const r1 = container1.getBoundingClientRect();
|
|
46
|
-
const r2 = container2.getBoundingClientRect();
|
|
47
|
-
return {
|
|
48
|
-
x: r1.x - r2.x,
|
|
49
|
-
y: r1.y - r2.y,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function createTooltip(container, x0, y0, position, enterable, bounding, containerOffset, css = {}, offset = [10, 10]) {
|
|
53
|
-
const defaults = {
|
|
54
|
-
'.g2-tooltip': {},
|
|
55
|
-
'.g2-tooltip-title': {
|
|
56
|
-
overflow: 'hidden',
|
|
57
|
-
'white-space': 'nowrap',
|
|
58
|
-
'text-overflow': 'ellipsis',
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
const tooltipElement = new component_1.Tooltip({
|
|
62
|
-
className: 'tooltip',
|
|
63
|
-
style: {
|
|
64
|
-
x: x0,
|
|
65
|
-
y: y0,
|
|
66
|
-
container: containerOffset,
|
|
67
|
-
data: [],
|
|
68
|
-
bounding,
|
|
69
|
-
position,
|
|
70
|
-
enterable,
|
|
71
|
-
title: '',
|
|
72
|
-
offset,
|
|
73
|
-
template: {
|
|
74
|
-
prefixCls: 'g2-',
|
|
75
|
-
},
|
|
76
|
-
style: (0, util_1.deepMix)(defaults, css),
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
container.appendChild(tooltipElement.HTMLTooltipElement);
|
|
80
|
-
return tooltipElement;
|
|
81
|
-
}
|
|
82
|
-
function showTooltip({ root, data, x, y, render, event, single, position = 'right-bottom', enterable = false, css, mount, bounding, offset, }) {
|
|
83
|
-
const container = getContainer(root, mount);
|
|
84
|
-
const canvasContainer = getContainer(root);
|
|
85
|
-
// All the views share the same tooltip.
|
|
86
|
-
const parent = single ? canvasContainer : root;
|
|
87
|
-
const b = bounding || getBounding(root);
|
|
88
|
-
const containerOffset = getContainerOffset(canvasContainer, container);
|
|
89
|
-
const { tooltipElement = createTooltip(container, x, y, position, enterable, b, containerOffset, css, offset), } = parent;
|
|
90
|
-
const { items, title = '' } = data;
|
|
91
|
-
tooltipElement.update(Object.assign({ x,
|
|
92
|
-
y, data: items, title,
|
|
93
|
-
position,
|
|
94
|
-
enterable, container: containerOffset }, (render !== undefined && {
|
|
95
|
-
content: render(event, { items, title }),
|
|
96
|
-
})));
|
|
97
|
-
parent.tooltipElement = tooltipElement;
|
|
98
|
-
}
|
|
99
|
-
function hideTooltip({ root, single, emitter, nativeEvent = true, event = null, }) {
|
|
100
|
-
if (nativeEvent) {
|
|
101
|
-
emitter.emit('tooltip:hide', { nativeEvent });
|
|
102
|
-
}
|
|
103
|
-
const container = getContainer(root);
|
|
104
|
-
const parent = single ? container : root;
|
|
105
|
-
const { tooltipElement } = parent;
|
|
106
|
-
if (tooltipElement) {
|
|
107
|
-
// Must be clientX, clientY.
|
|
108
|
-
tooltipElement.hide(event === null || event === void 0 ? void 0 : event.clientX, event === null || event === void 0 ? void 0 : event.clientY);
|
|
109
|
-
}
|
|
110
|
-
hideRuleY(root);
|
|
111
|
-
hideRuleX(root);
|
|
112
|
-
hideMarker(root);
|
|
113
|
-
}
|
|
114
|
-
function destroyTooltip({ root, single }) {
|
|
115
|
-
const container = getContainer(root);
|
|
116
|
-
const parent = single ? container : root;
|
|
117
|
-
if (!parent)
|
|
118
|
-
return;
|
|
119
|
-
const { tooltipElement } = parent;
|
|
120
|
-
if (tooltipElement) {
|
|
121
|
-
tooltipElement.destroy();
|
|
122
|
-
parent.tooltipElement = undefined;
|
|
123
|
-
}
|
|
124
|
-
hideRuleY(root);
|
|
125
|
-
hideRuleX(root);
|
|
126
|
-
hideMarker(root);
|
|
127
|
-
}
|
|
128
|
-
function showUndefined(item) {
|
|
129
|
-
const { value } = item;
|
|
130
|
-
return Object.assign(Object.assign({}, item), { value: value === undefined ? 'undefined' : value });
|
|
131
|
-
}
|
|
132
|
-
function singleItem(element) {
|
|
133
|
-
const { __data__: datum } = element;
|
|
134
|
-
const { title, items = [] } = datum;
|
|
135
|
-
const newItems = items
|
|
136
|
-
.filter(helper_1.defined)
|
|
137
|
-
.map((_a) => {
|
|
138
|
-
var { color = itemColorOf(element) } = _a, item = __rest(_a, ["color"]);
|
|
139
|
-
return (Object.assign(Object.assign({}, item), { color }));
|
|
140
|
-
})
|
|
141
|
-
.map(showUndefined);
|
|
142
|
-
return Object.assign(Object.assign({}, (title && { title })), { items: newItems });
|
|
143
|
-
}
|
|
144
|
-
function itemColorOf(element) {
|
|
145
|
-
const fill = element.getAttribute('fill');
|
|
146
|
-
const stroke = element.getAttribute('stroke');
|
|
147
|
-
const { __data__: datum } = element;
|
|
148
|
-
const { color = fill && fill !== 'transparent' ? fill : stroke } = datum;
|
|
149
|
-
return color;
|
|
150
|
-
}
|
|
151
|
-
function unique(items, key = (d) => d) {
|
|
152
|
-
const valueName = new Map(items.map((d) => [key(d), d]));
|
|
153
|
-
return Array.from(valueName.values());
|
|
154
|
-
}
|
|
155
|
-
function groupItems(elements, scale, groupName, data = elements.map((d) => d['__data__']), theme = {}) {
|
|
156
|
-
const key = (d) => (d instanceof Date ? +d : d);
|
|
157
|
-
const T = unique(data.map((d) => d.title), key).filter(helper_1.defined);
|
|
158
|
-
const newItems = data
|
|
159
|
-
.flatMap((datum, i) => {
|
|
160
|
-
const element = elements.find((element) => {
|
|
161
|
-
var _a;
|
|
162
|
-
return ((_a = element.__data__.seriesKey) === null || _a === void 0 ? void 0 : _a.includes(datum.key)) ||
|
|
163
|
-
element.__data__.key === datum.key;
|
|
164
|
-
});
|
|
165
|
-
const { items = [], title } = datum;
|
|
166
|
-
const definedItems = items.filter(helper_1.defined);
|
|
167
|
-
// If there is only one item, use groupName as title by default.
|
|
168
|
-
const useGroupName = groupName !== undefined ? groupName : items.length <= 1 ? true : false;
|
|
169
|
-
return definedItems.map((_a) => {
|
|
170
|
-
var { color = itemColorOf(element) || theme.color, name } = _a, item = __rest(_a, ["color", "name"]);
|
|
171
|
-
const groupName = (0, helper_1.groupNameOf)(scale, datum);
|
|
172
|
-
// callback's priority is higher than groupName.
|
|
173
|
-
const name1 = useGroupName && !(transform_1.CALLBACK_ITEM_SYMBOL in item)
|
|
174
|
-
? groupName || name
|
|
175
|
-
: name || groupName;
|
|
176
|
-
return Object.assign(Object.assign({}, item), { color, name: name1 || title });
|
|
177
|
-
});
|
|
178
|
-
})
|
|
179
|
-
.map(showUndefined);
|
|
180
|
-
return Object.assign(Object.assign({}, (T.length > 0 && { title: T.join(',') })), { items: unique(newItems, (d) => `(${key(d.name)}, ${key(d.value)}, ${key(d.color)})`) });
|
|
181
|
-
}
|
|
182
|
-
function updateRuleX(root, points, mouse, _a) {
|
|
183
|
-
var { plotWidth, plotHeight, mainWidth, mainHeight, startX, startY, transposed, polar, insetLeft, insetTop } = _a, rest = __rest(_a, ["plotWidth", "plotHeight", "mainWidth", "mainHeight", "startX", "startY", "transposed", "polar", "insetLeft", "insetTop"]);
|
|
184
|
-
const defaults = Object.assign({ lineWidth: 1, stroke: '#1b1e23', strokeOpacity: 0.5 }, rest);
|
|
185
|
-
const createCircle = (cx, cy, r) => {
|
|
186
|
-
const circle = new g_1.Circle({
|
|
187
|
-
style: Object.assign({ cx,
|
|
188
|
-
cy,
|
|
189
|
-
r }, defaults),
|
|
190
|
-
});
|
|
191
|
-
root.appendChild(circle);
|
|
192
|
-
return circle;
|
|
193
|
-
};
|
|
194
|
-
const createLine = (x1, x2, y1, y2) => {
|
|
195
|
-
const line = new g_1.Line({
|
|
196
|
-
style: Object.assign({ x1,
|
|
197
|
-
x2,
|
|
198
|
-
y1,
|
|
199
|
-
y2 }, defaults),
|
|
200
|
-
});
|
|
201
|
-
root.appendChild(line);
|
|
202
|
-
return line;
|
|
203
|
-
};
|
|
204
|
-
const minDistPoint = (mouse, points) => {
|
|
205
|
-
// only one point do not need compute
|
|
206
|
-
if (points.length === 1) {
|
|
207
|
-
return points[0];
|
|
208
|
-
}
|
|
209
|
-
const dists = points.map((p) => (0, vector_1.dist)(p, mouse));
|
|
210
|
-
const minDistIndex = (0, d3_array_1.minIndex)(dists, (d) => d);
|
|
211
|
-
return points[minDistIndex];
|
|
212
|
-
};
|
|
213
|
-
const target = minDistPoint(mouse, points);
|
|
214
|
-
const pointsOf = () => {
|
|
215
|
-
if (transposed)
|
|
216
|
-
return [
|
|
217
|
-
startX + target[0],
|
|
218
|
-
startX + target[0],
|
|
219
|
-
startY,
|
|
220
|
-
startY + plotHeight,
|
|
221
|
-
];
|
|
222
|
-
return [startX, startX + plotWidth, target[1] + startY, target[1] + startY];
|
|
223
|
-
};
|
|
224
|
-
const pointsOfPolar = () => {
|
|
225
|
-
const cx = startX + insetLeft + mainWidth / 2;
|
|
226
|
-
const cy = startY + insetTop + mainHeight / 2;
|
|
227
|
-
const cdist = (0, vector_1.dist)([cx, cy], target);
|
|
228
|
-
return [cx, cy, cdist];
|
|
229
|
-
};
|
|
230
|
-
if (polar) {
|
|
231
|
-
const [cx, cy, r] = pointsOfPolar();
|
|
232
|
-
const ruleX = root.ruleX || createCircle(cx, cy, r);
|
|
233
|
-
ruleX.style.cx = cx;
|
|
234
|
-
ruleX.style.cy = cy;
|
|
235
|
-
ruleX.style.r = r;
|
|
236
|
-
root.ruleX = ruleX;
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
const [x1, x2, y1, y2] = pointsOf();
|
|
240
|
-
const ruleX = root.ruleX || createLine(x1, x2, y1, y2);
|
|
241
|
-
ruleX.style.x1 = x1;
|
|
242
|
-
ruleX.style.x2 = x2;
|
|
243
|
-
ruleX.style.y1 = y1;
|
|
244
|
-
ruleX.style.y2 = y2;
|
|
245
|
-
root.ruleX = ruleX;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
function updateRuleY(root, points, _a) {
|
|
249
|
-
var { plotWidth, plotHeight, mainWidth, mainHeight, startX, startY, transposed, polar, insetLeft, insetTop } = _a, rest = __rest(_a, ["plotWidth", "plotHeight", "mainWidth", "mainHeight", "startX", "startY", "transposed", "polar", "insetLeft", "insetTop"]);
|
|
250
|
-
const defaults = Object.assign({ lineWidth: 1, stroke: '#1b1e23', strokeOpacity: 0.5 }, rest);
|
|
251
|
-
const Y = points.map((p) => p[1]);
|
|
252
|
-
const X = points.map((p) => p[0]);
|
|
253
|
-
const y = (0, d3_array_1.mean)(Y);
|
|
254
|
-
const x = (0, d3_array_1.mean)(X);
|
|
255
|
-
const pointsOf = () => {
|
|
256
|
-
if (polar) {
|
|
257
|
-
const r = Math.min(mainWidth, mainHeight) / 2;
|
|
258
|
-
const cx = startX + insetLeft + mainWidth / 2;
|
|
259
|
-
const cy = startY + insetTop + mainHeight / 2;
|
|
260
|
-
const a = (0, vector_1.angle)((0, vector_1.sub)([x, y], [cx, cy]));
|
|
261
|
-
const x0 = cx + r * Math.cos(a);
|
|
262
|
-
const y0 = cy + r * Math.sin(a);
|
|
263
|
-
return [cx, x0, cy, y0];
|
|
264
|
-
}
|
|
265
|
-
if (transposed)
|
|
266
|
-
return [startX, startX + plotWidth, y + startY, y + startY];
|
|
267
|
-
return [x + startX, x + startX, startY, startY + plotHeight];
|
|
268
|
-
};
|
|
269
|
-
const [x1, x2, y1, y2] = pointsOf();
|
|
270
|
-
const createLine = () => {
|
|
271
|
-
const line = new g_1.Line({
|
|
272
|
-
style: Object.assign({ x1,
|
|
273
|
-
x2,
|
|
274
|
-
y1,
|
|
275
|
-
y2 }, defaults),
|
|
276
|
-
});
|
|
277
|
-
root.appendChild(line);
|
|
278
|
-
return line;
|
|
279
|
-
};
|
|
280
|
-
// Only update rule with defined series elements.
|
|
281
|
-
if (X.length > 0) {
|
|
282
|
-
const ruleY = root.ruleY || createLine();
|
|
283
|
-
ruleY.style.x1 = x1;
|
|
284
|
-
ruleY.style.x2 = x2;
|
|
285
|
-
ruleY.style.y1 = y1;
|
|
286
|
-
ruleY.style.y2 = y2;
|
|
287
|
-
root.ruleY = ruleY;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
function hideRuleY(root) {
|
|
291
|
-
if (root.ruleY) {
|
|
292
|
-
root.ruleY.remove();
|
|
293
|
-
root.ruleY = undefined;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
function hideRuleX(root) {
|
|
297
|
-
if (root.ruleX) {
|
|
298
|
-
root.ruleX.remove();
|
|
299
|
-
root.ruleX = undefined;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
function updateMarker(root, { data, style, theme }) {
|
|
303
|
-
if (root.markers)
|
|
304
|
-
root.markers.forEach((d) => d.remove());
|
|
305
|
-
const { type = '' } = style;
|
|
306
|
-
const markers = data
|
|
307
|
-
.filter((d) => {
|
|
308
|
-
const [{ x, y }] = d;
|
|
309
|
-
return (0, helper_1.defined)(x) && (0, helper_1.defined)(y);
|
|
310
|
-
})
|
|
311
|
-
.map((d) => {
|
|
312
|
-
const [{ color, element }, point] = d;
|
|
313
|
-
const originColor = color || // encode value
|
|
314
|
-
element.style.fill ||
|
|
315
|
-
element.style.stroke ||
|
|
316
|
-
theme.color;
|
|
317
|
-
const fill = type === 'hollow' ? 'transparent' : originColor;
|
|
318
|
-
const stroke = type === 'hollow' ? originColor : '#fff';
|
|
319
|
-
const shape = new g_1.Circle({
|
|
320
|
-
className: 'g2-tooltip-marker',
|
|
321
|
-
style: Object.assign({ cx: point[0], cy: point[1], fill, r: 4, stroke, lineWidth: 2,
|
|
322
|
-
// Prevents blocking clicks on elements behind.
|
|
323
|
-
pointerEvents: 'none' }, style),
|
|
324
|
-
});
|
|
325
|
-
return shape;
|
|
326
|
-
});
|
|
327
|
-
for (const marker of markers)
|
|
328
|
-
root.appendChild(marker);
|
|
329
|
-
root.markers = markers;
|
|
330
|
-
}
|
|
331
|
-
function hideMarker(root) {
|
|
332
|
-
if (root.markers) {
|
|
333
|
-
root.markers.forEach((d) => d.remove());
|
|
334
|
-
root.markers = [];
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
function interactionKeyof(markState, key) {
|
|
338
|
-
return Array.from(markState.values()).some(
|
|
339
|
-
// @ts-ignore
|
|
340
|
-
(d) => { var _a; return (_a = d.interaction) === null || _a === void 0 ? void 0 : _a[key]; });
|
|
341
|
-
}
|
|
342
|
-
function maybeValue(specified, defaults) {
|
|
343
|
-
return specified === undefined ? defaults : specified;
|
|
344
|
-
}
|
|
345
|
-
function isEmptyTooltipData(data) {
|
|
346
|
-
const { title, items } = data;
|
|
347
|
-
if (items.length === 0 && title === undefined)
|
|
348
|
-
return true;
|
|
349
|
-
return false;
|
|
350
|
-
}
|
|
351
|
-
function hasSeries(markState) {
|
|
352
|
-
return Array.from(markState.values()).some(
|
|
353
|
-
// @ts-ignore
|
|
354
|
-
(d) => { var _a; return ((_a = d.interaction) === null || _a === void 0 ? void 0 : _a.seriesTooltip) && d.tooltip; });
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Show tooltip for series item.
|
|
358
|
-
*/
|
|
359
|
-
function seriesTooltip(root, _a) {
|
|
360
|
-
var _b, _c;
|
|
361
|
-
var { elements: elementsof, sort: sortFunction, filter: filterFunction, scale, coordinate, crosshairs, crosshairsX, crosshairsY, render, groupName, emitter, wait = 50, leading = true, trailing = false, startX = 0, startY = 0, body = true, single = true, position, enterable, mount, bounding, theme, offset, disableNative = false, marker = true, preserve = false, style: _style = {}, css = {} } = _a, rest = __rest(_a, ["elements", "sort", "filter", "scale", "coordinate", "crosshairs", "crosshairsX", "crosshairsY", "render", "groupName", "emitter", "wait", "leading", "trailing", "startX", "startY", "body", "single", "position", "enterable", "mount", "bounding", "theme", "offset", "disableNative", "marker", "preserve", "style", "css"]);
|
|
362
|
-
const elements = elementsof(root);
|
|
363
|
-
const transposed = (0, coordinate_1.isTranspose)(coordinate);
|
|
364
|
-
const polar = (0, coordinate_1.isPolar)(coordinate);
|
|
365
|
-
const style = (0, util_1.deepMix)(_style, rest);
|
|
366
|
-
const { innerWidth: plotWidth, innerHeight: plotHeight, width: mainWidth, height: mainHeight, insetLeft, insetTop, } = coordinate.getOptions();
|
|
367
|
-
// Split elements into series elements and item elements.
|
|
368
|
-
const seriesElements = [];
|
|
369
|
-
const itemElements = [];
|
|
370
|
-
for (const element of elements) {
|
|
371
|
-
const { __data__: data } = element;
|
|
372
|
-
const { seriesX, title, items } = data;
|
|
373
|
-
if (seriesX)
|
|
374
|
-
seriesElements.push(element);
|
|
375
|
-
else if (title || items)
|
|
376
|
-
itemElements.push(element);
|
|
377
|
-
}
|
|
378
|
-
const inInterval = (d) => d.markType === 'interval';
|
|
379
|
-
const isBar = itemElements.length &&
|
|
380
|
-
itemElements.every(inInterval) &&
|
|
381
|
-
!(0, coordinate_1.isPolar)(coordinate);
|
|
382
|
-
const xof = (d) => d.__data__.x;
|
|
383
|
-
// For band scale x, find the closest series element to focus,
|
|
384
|
-
// useful for interval + line mark.
|
|
385
|
-
const isBandScale = !!scale.x.getBandWidth;
|
|
386
|
-
const closest = isBandScale && itemElements.length > 0;
|
|
387
|
-
// Sorted elements from top to bottom visually,
|
|
388
|
-
// or from right to left in transpose coordinate.
|
|
389
|
-
seriesElements.sort((a, b) => {
|
|
390
|
-
const index = transposed ? 0 : 1;
|
|
391
|
-
const minY = (d) => d.getBounds().min[index];
|
|
392
|
-
return transposed ? minY(b) - minY(a) : minY(a) - minY(b);
|
|
393
|
-
});
|
|
394
|
-
const extent = (d) => {
|
|
395
|
-
const index = transposed ? 1 : 0;
|
|
396
|
-
const { min, max } = d.getLocalBounds();
|
|
397
|
-
return (0, d3_array_1.sort)([min[index], max[index]]);
|
|
398
|
-
};
|
|
399
|
-
// Sort itemElements for bisector search.
|
|
400
|
-
if (isBar)
|
|
401
|
-
elements.sort((a, b) => xof(a) - xof(b));
|
|
402
|
-
else {
|
|
403
|
-
itemElements.sort((a, b) => {
|
|
404
|
-
const [minA, maxA] = extent(a);
|
|
405
|
-
const [minB, maxB] = extent(b);
|
|
406
|
-
const midA = (minA + maxA) / 2;
|
|
407
|
-
const midB = (minB + maxB) / 2;
|
|
408
|
-
return transposed ? midB - midA : midA - midB;
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
// Get sortedIndex and X for each series elements
|
|
412
|
-
const elementSortedX = new Map(seriesElements.map((element) => {
|
|
413
|
-
const { __data__: data } = element;
|
|
414
|
-
const { seriesX } = data;
|
|
415
|
-
const seriesIndex = seriesX.map((_, i) => i);
|
|
416
|
-
const sortedIndex = (0, d3_array_1.sort)(seriesIndex, (i) => seriesX[+i]);
|
|
417
|
-
return [element, [sortedIndex, seriesX]];
|
|
418
|
-
}));
|
|
419
|
-
const { x: scaleX } = scale;
|
|
420
|
-
const stepWidth = (_c = (_b = scaleX === null || scaleX === void 0 ? void 0 : scaleX.getStep) === null || _b === void 0 ? void 0 : _b.call(scaleX)) !== null && _c !== void 0 ? _c : 0;
|
|
421
|
-
// Apply offset for band scale x.
|
|
422
|
-
const offsetX = (scaleX === null || scaleX === void 0 ? void 0 : scaleX.getBandWidth) ? scaleX.getBandWidth() / 2 : 0;
|
|
423
|
-
const abstractX = (focus) => {
|
|
424
|
-
const [normalizedX] = coordinate.invert(focus);
|
|
425
|
-
return normalizedX - offsetX;
|
|
426
|
-
};
|
|
427
|
-
const indexByFocus = (event, focus, I, X) => {
|
|
428
|
-
const isOutRange = (x, min, max) => x < min || x > max;
|
|
429
|
-
const shouldSkip = (closest, isRangeViolation, isInvalid) => !closest && isRangeViolation && isInvalid;
|
|
430
|
-
// _x is from emit event, to find the right element.
|
|
431
|
-
const { _x } = event;
|
|
432
|
-
const finalX = _x !== undefined ? scaleX.map(_x) : abstractX(focus);
|
|
433
|
-
const DX = X.filter(helper_1.defined);
|
|
434
|
-
const [minX, maxX] = (0, d3_array_1.sort)([DX[0], DX[DX.length - 1]]);
|
|
435
|
-
// If only has one element(minX == maxX), show tooltip when hover whole chart
|
|
436
|
-
const isOnlyOneElement = minX === maxX;
|
|
437
|
-
// If closest is true, always find at least one element.
|
|
438
|
-
// Otherwise, skip element out of plot area.
|
|
439
|
-
if (shouldSkip(closest, isOutRange(finalX, minX, maxX), !isOnlyOneElement))
|
|
440
|
-
return null;
|
|
441
|
-
const search = (0, d3_array_1.bisector)((i) => X[+i]).center;
|
|
442
|
-
const i = search(I, finalX);
|
|
443
|
-
if (isOnlyOneElement) {
|
|
444
|
-
// if is only one element, find the closest x to focusX
|
|
445
|
-
const sortedDomain = scaleX.adjustedRange;
|
|
446
|
-
if (
|
|
447
|
-
// consider oneElementLine, if only one element of one XDomain, must return one element, related test case: tooltip/one-element-line
|
|
448
|
-
// else if multi elements, determine whether it is between the minimum scope and the maximum scope
|
|
449
|
-
shouldSkip(closest, isOutRange(finalX, sortedDomain[0], sortedDomain[sortedDomain.length - 1]), !(sortedDomain.length === 1)))
|
|
450
|
-
return null;
|
|
451
|
-
return I[i];
|
|
452
|
-
}
|
|
453
|
-
return I[i];
|
|
454
|
-
};
|
|
455
|
-
// get x domain by point
|
|
456
|
-
const getDomainXByPoint = (point) => {
|
|
457
|
-
const [pointX] = coordinate.invert(point);
|
|
458
|
-
const rangeIndexMap = scaleX.rangeIndexMap;
|
|
459
|
-
const domainXs = Array.from(rangeIndexMap.keys()).map((d) => d - (stepWidth - scaleX.getBandWidth()) / 2);
|
|
460
|
-
const index = (0, d3_array_1.bisect)(domainXs, pointX);
|
|
461
|
-
return scaleX.sortedDomain[index - 1];
|
|
462
|
-
};
|
|
463
|
-
const elementsByFocus = isBar
|
|
464
|
-
? (focus, elements) => {
|
|
465
|
-
const search = (0, d3_array_1.bisector)(xof).center;
|
|
466
|
-
const pointX = abstractX(focus);
|
|
467
|
-
const parentOf = (d) => d.parentNode;
|
|
468
|
-
const elementGroups = (0, d3_array_1.group)(elements, parentOf);
|
|
469
|
-
const selected = [];
|
|
470
|
-
const domainX = getDomainXByPoint(focus);
|
|
471
|
-
elementGroups.forEach((elements) => {
|
|
472
|
-
const i = search(elements, pointX);
|
|
473
|
-
const find = elements[i];
|
|
474
|
-
if (domainX === find.__data__.title) {
|
|
475
|
-
selected.push(find);
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
return selected;
|
|
479
|
-
}
|
|
480
|
-
: (focus, elements) => {
|
|
481
|
-
const index = transposed ? 1 : 0;
|
|
482
|
-
const x = focus[index];
|
|
483
|
-
const filtered = elements.filter((element) => {
|
|
484
|
-
const [min, max] = extent(element);
|
|
485
|
-
return x >= min && x <= max;
|
|
486
|
-
});
|
|
487
|
-
// If closet is true, always find at least one element.
|
|
488
|
-
if (!closest || filtered.length > 0)
|
|
489
|
-
return filtered;
|
|
490
|
-
// Search the closet element to the focus.
|
|
491
|
-
const search = (0, d3_array_1.bisector)((element) => {
|
|
492
|
-
const [min, max] = extent(element);
|
|
493
|
-
return (min + max) / 2;
|
|
494
|
-
}).center;
|
|
495
|
-
const i = search(elements, x);
|
|
496
|
-
return [elements[i]].filter(helper_1.defined);
|
|
497
|
-
};
|
|
498
|
-
const seriesData = (element, index) => {
|
|
499
|
-
const { __data__: data } = element;
|
|
500
|
-
return Object.fromEntries(Object.entries(data)
|
|
501
|
-
.filter(([key]) => key.startsWith('series') && key !== 'series')
|
|
502
|
-
.map(([key, V]) => {
|
|
503
|
-
const d = V[index];
|
|
504
|
-
return [(0, util_1.lowerFirst)(key.replace('series', '')), d];
|
|
505
|
-
}));
|
|
506
|
-
};
|
|
507
|
-
const update = (0, util_1.throttle)((event) => {
|
|
508
|
-
var _a;
|
|
509
|
-
const mouse = (0, utils_1.mousePosition)(root, event);
|
|
510
|
-
if (!mouse)
|
|
511
|
-
return;
|
|
512
|
-
const bbox = (0, utils_1.bboxOf)(root);
|
|
513
|
-
const x = bbox.min[0];
|
|
514
|
-
const y = bbox.min[1];
|
|
515
|
-
const focus = [mouse[0] - startX, mouse[1] - startY];
|
|
516
|
-
if (!focus)
|
|
517
|
-
return;
|
|
518
|
-
// Get selected item element.
|
|
519
|
-
const selectedItems = elementsByFocus(focus, itemElements);
|
|
520
|
-
// Get selected data item from both series element and item element.
|
|
521
|
-
const selectedSeriesElements = [];
|
|
522
|
-
const selectedSeriesData = [];
|
|
523
|
-
for (const element of seriesElements) {
|
|
524
|
-
const [sortedIndex, X] = elementSortedX.get(element);
|
|
525
|
-
const index = indexByFocus(event, focus, sortedIndex, X);
|
|
526
|
-
if (index !== null) {
|
|
527
|
-
selectedSeriesElements.push(element);
|
|
528
|
-
const d = seriesData(element, index);
|
|
529
|
-
const { x, y } = d;
|
|
530
|
-
const p = coordinate.map([(x || 0) + offsetX, y || 0]);
|
|
531
|
-
selectedSeriesData.push([Object.assign(Object.assign({}, d), { element }), p]);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
// Filter selectedSeriesData with different x,
|
|
535
|
-
// make sure there is only one x closest to focusX.
|
|
536
|
-
const SX = Array.from(new Set(selectedSeriesData.map((d) => d[0].x)));
|
|
537
|
-
const closestX = SX[(0, d3_array_1.minIndex)(SX, (x) => Math.abs(x - abstractX(focus)))];
|
|
538
|
-
const filteredSeriesData = selectedSeriesData.filter((d) => d[0].x === closestX);
|
|
539
|
-
const selectedData = [
|
|
540
|
-
...filteredSeriesData.map((d) => d[0]),
|
|
541
|
-
...selectedItems.map((d) => d.__data__),
|
|
542
|
-
];
|
|
543
|
-
// Get the displayed tooltip data.
|
|
544
|
-
const selectedElements = [...selectedSeriesElements, ...selectedItems];
|
|
545
|
-
const tooltipData = groupItems(selectedElements, scale, groupName, selectedData, theme);
|
|
546
|
-
// Sort items and filter items.
|
|
547
|
-
if (sortFunction) {
|
|
548
|
-
tooltipData.items.sort((a, b) => sortFunction(a) - sortFunction(b));
|
|
549
|
-
}
|
|
550
|
-
if (filterFunction) {
|
|
551
|
-
tooltipData.items = tooltipData.items.filter(filterFunction);
|
|
552
|
-
}
|
|
553
|
-
// Hide tooltip with no selected tooltip.
|
|
554
|
-
if (selectedElements.length === 0 || isEmptyTooltipData(tooltipData)) {
|
|
555
|
-
hide(event);
|
|
556
|
-
return;
|
|
557
|
-
}
|
|
558
|
-
if (body) {
|
|
559
|
-
showTooltip({
|
|
560
|
-
root,
|
|
561
|
-
data: tooltipData,
|
|
562
|
-
x: mouse[0] + x,
|
|
563
|
-
y: mouse[1] + y,
|
|
564
|
-
render,
|
|
565
|
-
event,
|
|
566
|
-
single,
|
|
567
|
-
position,
|
|
568
|
-
enterable,
|
|
569
|
-
mount,
|
|
570
|
-
bounding,
|
|
571
|
-
css,
|
|
572
|
-
offset,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
if (crosshairs || crosshairsX || crosshairsY) {
|
|
576
|
-
const ruleStyle = (0, helper_1.subObject)(style, 'crosshairs');
|
|
577
|
-
const ruleStyleX = Object.assign(Object.assign({}, ruleStyle), (0, helper_1.subObject)(style, 'crosshairsX'));
|
|
578
|
-
const ruleStyleY = Object.assign(Object.assign({}, ruleStyle), (0, helper_1.subObject)(style, 'crosshairsY'));
|
|
579
|
-
const points = filteredSeriesData.map((d) => d[1]);
|
|
580
|
-
if (crosshairsX) {
|
|
581
|
-
updateRuleX(root, points, mouse, Object.assign(Object.assign({}, ruleStyleX), { plotWidth,
|
|
582
|
-
plotHeight,
|
|
583
|
-
mainWidth,
|
|
584
|
-
mainHeight,
|
|
585
|
-
insetLeft,
|
|
586
|
-
insetTop,
|
|
587
|
-
startX,
|
|
588
|
-
startY,
|
|
589
|
-
transposed,
|
|
590
|
-
polar }));
|
|
591
|
-
}
|
|
592
|
-
if (crosshairsY) {
|
|
593
|
-
updateRuleY(root, points, Object.assign(Object.assign({}, ruleStyleY), { plotWidth,
|
|
594
|
-
plotHeight,
|
|
595
|
-
mainWidth,
|
|
596
|
-
mainHeight,
|
|
597
|
-
insetLeft,
|
|
598
|
-
insetTop,
|
|
599
|
-
startX,
|
|
600
|
-
startY,
|
|
601
|
-
transposed,
|
|
602
|
-
polar }));
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
if (marker) {
|
|
606
|
-
const markerStyles = (0, helper_1.subObject)(style, 'marker');
|
|
607
|
-
updateMarker(root, {
|
|
608
|
-
data: filteredSeriesData,
|
|
609
|
-
style: markerStyles,
|
|
610
|
-
theme,
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
// X in focus may related multiple points when dataset is large,
|
|
614
|
-
// so we need to find the first x to show tooltip.
|
|
615
|
-
const firstX = (_a = filteredSeriesData[0]) === null || _a === void 0 ? void 0 : _a[0].x;
|
|
616
|
-
const transformedX = firstX !== null && firstX !== void 0 ? firstX : abstractX(focus);
|
|
617
|
-
emitter.emit('tooltip:show', Object.assign(Object.assign({}, event), { nativeEvent: true, data: Object.assign(Object.assign({}, tooltipData), { data: { x: (0, scale_1.invert)(scale.x, transformedX, true) } }) }));
|
|
618
|
-
}, wait, { leading, trailing });
|
|
619
|
-
const hide = (event) => {
|
|
620
|
-
hideTooltip({ root, single, emitter, event });
|
|
621
|
-
};
|
|
622
|
-
const destroy = () => {
|
|
623
|
-
destroyTooltip({ root, single });
|
|
624
|
-
};
|
|
625
|
-
const onTooltipShow = (_a) => {
|
|
626
|
-
var _b;
|
|
627
|
-
var { nativeEvent, data, offsetX, offsetY } = _a, rest = __rest(_a, ["nativeEvent", "data", "offsetX", "offsetY"]);
|
|
628
|
-
if (nativeEvent)
|
|
629
|
-
return;
|
|
630
|
-
const x = (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.x;
|
|
631
|
-
const scaleX = scale.x;
|
|
632
|
-
const x1 = scaleX.map(x);
|
|
633
|
-
const [x2, y2] = coordinate.map([x1, 0.5]);
|
|
634
|
-
const rootBounds = root.getRenderBounds();
|
|
635
|
-
const minX = rootBounds.min[0];
|
|
636
|
-
const minY = rootBounds.min[1];
|
|
637
|
-
update(Object.assign(Object.assign({}, rest), { offsetX: offsetX !== undefined ? offsetX : minX + x2, offsetY: offsetY !== undefined ? offsetY : minY + y2, _x: x }));
|
|
638
|
-
};
|
|
639
|
-
const onTooltipHide = () => {
|
|
640
|
-
hideTooltip({ root, single, emitter, nativeEvent: false });
|
|
641
|
-
};
|
|
642
|
-
const onTooltipDisable = () => {
|
|
643
|
-
removeEventListeners();
|
|
644
|
-
destroy();
|
|
645
|
-
};
|
|
646
|
-
const onTooltipEnable = () => {
|
|
647
|
-
addEventListeners();
|
|
648
|
-
};
|
|
649
|
-
const addEventListeners = () => {
|
|
650
|
-
if (!disableNative) {
|
|
651
|
-
root.addEventListener('pointerenter', update);
|
|
652
|
-
root.addEventListener('pointermove', update);
|
|
653
|
-
// Only emit pointerleave event when the pointer is not in the root area.
|
|
654
|
-
root.addEventListener('pointerleave', (e) => {
|
|
655
|
-
if ((0, utils_1.mousePosition)(root, e))
|
|
656
|
-
return;
|
|
657
|
-
hide(e);
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
const removeEventListeners = () => {
|
|
662
|
-
if (!disableNative) {
|
|
663
|
-
root.removeEventListener('pointerenter', update);
|
|
664
|
-
root.removeEventListener('pointermove', update);
|
|
665
|
-
root.removeEventListener('pointerleave', hide);
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
addEventListeners();
|
|
669
|
-
emitter.on('tooltip:show', onTooltipShow);
|
|
670
|
-
emitter.on('tooltip:hide', onTooltipHide);
|
|
671
|
-
emitter.on('tooltip:disable', onTooltipDisable);
|
|
672
|
-
emitter.on('tooltip:enable', onTooltipEnable);
|
|
673
|
-
return () => {
|
|
674
|
-
removeEventListeners();
|
|
675
|
-
emitter.off('tooltip:show', onTooltipShow);
|
|
676
|
-
emitter.off('tooltip:hide', onTooltipHide);
|
|
677
|
-
emitter.off('tooltip:disable', onTooltipDisable);
|
|
678
|
-
emitter.off('tooltip:enable', onTooltipEnable);
|
|
679
|
-
if (preserve) {
|
|
680
|
-
hideTooltip({ root, single, emitter, nativeEvent: false });
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
destroy();
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
}
|
|
687
|
-
exports.seriesTooltip = seriesTooltip;
|
|
688
|
-
/**
|
|
689
|
-
* Show tooltip for non-series item.
|
|
690
|
-
*/
|
|
691
|
-
function tooltip(root, { elements: elementsof, coordinate, scale, render, groupName, sort: sortFunction, filter: filterFunction, emitter, wait = 50, leading = true, trailing = false, groupKey = (d) => d, // group elements by specified key
|
|
692
|
-
single = true, position, enterable, datum, view, mount, bounding, theme, offset, shared = false, body = true, disableNative = false, preserve = false, css = {}, }) {
|
|
693
|
-
var _a, _b, _c, _d;
|
|
694
|
-
const elements = elementsof(root);
|
|
695
|
-
const keyGroup = (0, d3_array_1.group)(elements, groupKey);
|
|
696
|
-
const inInterval = (d) => d.markType === 'interval';
|
|
697
|
-
const isBar = elements.every(inInterval) && !(0, coordinate_1.isPolar)(coordinate);
|
|
698
|
-
const scaleX = scale.x;
|
|
699
|
-
const scaleSeries = scale.series;
|
|
700
|
-
const bandWidth = (_b = (_a = scaleX === null || scaleX === void 0 ? void 0 : scaleX.getBandWidth) === null || _a === void 0 ? void 0 : _a.call(scaleX)) !== null && _b !== void 0 ? _b : 0;
|
|
701
|
-
const stepWidth = (_d = (_c = scaleX === null || scaleX === void 0 ? void 0 : scaleX.getStep) === null || _c === void 0 ? void 0 : _c.call(scaleX)) !== null && _d !== void 0 ? _d : 0;
|
|
702
|
-
const xof = scaleSeries
|
|
703
|
-
? (d) => {
|
|
704
|
-
const seriesCount = Math.round(1 / scaleSeries.valueBandWidth);
|
|
705
|
-
return (d.__data__.x +
|
|
706
|
-
d.__data__.series * bandWidth +
|
|
707
|
-
bandWidth / (seriesCount * 2));
|
|
708
|
-
}
|
|
709
|
-
: (d) => d.__data__.x + bandWidth / 2;
|
|
710
|
-
// Sort for bisector search.
|
|
711
|
-
if (isBar)
|
|
712
|
-
elements.sort((a, b) => xof(a) - xof(b));
|
|
713
|
-
const findElementByTarget = (event) => {
|
|
714
|
-
const { target } = event;
|
|
715
|
-
return (0, utils_1.maybeRoot)(target, (node) => {
|
|
716
|
-
if (!node.classList)
|
|
717
|
-
return false;
|
|
718
|
-
return node.classList.includes('element');
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
const findElement = isBar
|
|
722
|
-
? (event) => {
|
|
723
|
-
const mouse = (0, utils_1.mousePosition)(root, event);
|
|
724
|
-
if (!mouse)
|
|
725
|
-
return;
|
|
726
|
-
const [abstractX] = coordinate.invert(mouse);
|
|
727
|
-
const search = (0, d3_array_1.bisector)(xof).center;
|
|
728
|
-
const i = search(elements, abstractX);
|
|
729
|
-
const target = elements[i];
|
|
730
|
-
// Handle the case where stepWidth is negative.
|
|
731
|
-
const isStepWidthPositive = stepWidth > 0;
|
|
732
|
-
const targetLeftBoundary = isStepWidthPositive
|
|
733
|
-
? xof(target) - stepWidth / 2
|
|
734
|
-
: xof(target) + stepWidth / 2;
|
|
735
|
-
const targetRightBoundary = isStepWidthPositive
|
|
736
|
-
? xof(target) + stepWidth / 2
|
|
737
|
-
: xof(target) - stepWidth / 2;
|
|
738
|
-
if (abstractX < targetLeftBoundary || abstractX > targetRightBoundary) {
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
if (!shared) {
|
|
742
|
-
// For grouped bar chart without shared options.
|
|
743
|
-
const isGrouped = elements.find((d) => d !== target && xof(d) === xof(target));
|
|
744
|
-
if (isGrouped)
|
|
745
|
-
return findElementByTarget(event);
|
|
746
|
-
}
|
|
747
|
-
return target;
|
|
748
|
-
}
|
|
749
|
-
: findElementByTarget;
|
|
750
|
-
const pointermove = (0, util_1.throttle)((event) => {
|
|
751
|
-
const element = findElement(event);
|
|
752
|
-
if (!element) {
|
|
753
|
-
hideTooltip({ root, single, emitter, event });
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
const k = groupKey(element);
|
|
757
|
-
const group = keyGroup.get(k);
|
|
758
|
-
if (!group) {
|
|
759
|
-
return;
|
|
760
|
-
}
|
|
761
|
-
const data = group.length === 1 && !shared
|
|
762
|
-
? singleItem(group[0])
|
|
763
|
-
: groupItems(group, scale, groupName, undefined, theme);
|
|
764
|
-
// Sort items and sort.
|
|
765
|
-
if (sortFunction) {
|
|
766
|
-
data.items.sort((a, b) => sortFunction(a) - sortFunction(b));
|
|
767
|
-
}
|
|
768
|
-
if (filterFunction) {
|
|
769
|
-
data.items = data.items.filter(filterFunction);
|
|
770
|
-
}
|
|
771
|
-
if (isEmptyTooltipData(data)) {
|
|
772
|
-
hideTooltip({ root, single, emitter, event });
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
const { offsetX, offsetY } = event;
|
|
776
|
-
if (body) {
|
|
777
|
-
showTooltip({
|
|
778
|
-
root,
|
|
779
|
-
data,
|
|
780
|
-
x: offsetX,
|
|
781
|
-
y: offsetY,
|
|
782
|
-
render,
|
|
783
|
-
event,
|
|
784
|
-
single,
|
|
785
|
-
position,
|
|
786
|
-
enterable,
|
|
787
|
-
mount,
|
|
788
|
-
bounding,
|
|
789
|
-
css,
|
|
790
|
-
offset,
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
emitter.emit('tooltip:show', Object.assign(Object.assign({}, event), { nativeEvent: true, data: Object.assign(Object.assign({}, data), { data: (0, helper_1.dataOf)(element, view) }) }));
|
|
794
|
-
}, wait, { leading, trailing });
|
|
795
|
-
const pointerleave = (event) => {
|
|
796
|
-
hideTooltip({ root, single, emitter, event });
|
|
797
|
-
};
|
|
798
|
-
const addEventListeners = () => {
|
|
799
|
-
if (!disableNative) {
|
|
800
|
-
root.addEventListener('pointermove', pointermove);
|
|
801
|
-
// Only emit pointerleave event when the pointer is not in the root area.
|
|
802
|
-
// !!!DO NOT USE pointerout event, it will emit when the pointer is in the child area.
|
|
803
|
-
root.addEventListener('pointerleave', pointerleave);
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
const removeEventListeners = () => {
|
|
807
|
-
if (!disableNative) {
|
|
808
|
-
root.removeEventListener('pointermove', pointermove);
|
|
809
|
-
root.removeEventListener('pointerleave', pointerleave);
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
|
-
const onTooltipShow = ({ nativeEvent, offsetX, offsetY, data: raw }) => {
|
|
813
|
-
if (nativeEvent)
|
|
814
|
-
return;
|
|
815
|
-
const { data } = raw;
|
|
816
|
-
const element = (0, utils_1.selectElementByData)(elements, data, datum);
|
|
817
|
-
if (!element)
|
|
818
|
-
return;
|
|
819
|
-
const bbox = element.getBBox();
|
|
820
|
-
const { x, y, width, height } = bbox;
|
|
821
|
-
const rootBBox = root.getBBox();
|
|
822
|
-
pointermove({
|
|
823
|
-
target: element,
|
|
824
|
-
offsetX: offsetX !== undefined ? offsetX + rootBBox.x : x + width / 2,
|
|
825
|
-
offsetY: offsetY !== undefined ? offsetY + rootBBox.y : y + height / 2,
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
const onTooltipHide = ({ nativeEvent } = {}) => {
|
|
829
|
-
if (nativeEvent)
|
|
830
|
-
return;
|
|
831
|
-
hideTooltip({ root, single, emitter, nativeEvent: false });
|
|
832
|
-
};
|
|
833
|
-
const onTooltipDisable = () => {
|
|
834
|
-
removeEventListeners();
|
|
835
|
-
destroyTooltip({ root, single });
|
|
836
|
-
};
|
|
837
|
-
const onTooltipEnable = () => {
|
|
838
|
-
addEventListeners();
|
|
839
|
-
};
|
|
840
|
-
emitter.on('tooltip:show', onTooltipShow);
|
|
841
|
-
emitter.on('tooltip:hide', onTooltipHide);
|
|
842
|
-
emitter.on('tooltip:enable', onTooltipEnable);
|
|
843
|
-
emitter.on('tooltip:disable', onTooltipDisable);
|
|
844
|
-
addEventListeners();
|
|
845
|
-
return () => {
|
|
846
|
-
removeEventListeners();
|
|
847
|
-
emitter.off('tooltip:show', onTooltipShow);
|
|
848
|
-
emitter.off('tooltip:hide', onTooltipHide);
|
|
849
|
-
if (preserve) {
|
|
850
|
-
hideTooltip({ root, single, emitter, nativeEvent: false });
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
destroyTooltip({ root, single });
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
exports.tooltip = tooltip;
|
|
858
|
-
function Tooltip(options) {
|
|
859
|
-
const { shared, crosshairs, crosshairsX, crosshairsY, series, name, item = () => ({}), facet = false } = options, rest = __rest(options, ["shared", "crosshairs", "crosshairsX", "crosshairsY", "series", "name", "item", "facet"]);
|
|
860
|
-
return (target, viewInstances, emitter) => {
|
|
861
|
-
const { container, view } = target;
|
|
862
|
-
const { scale, markState, coordinate, theme } = view;
|
|
863
|
-
// Get default value from mark states.
|
|
864
|
-
const defaultSeries = interactionKeyof(markState, 'seriesTooltip');
|
|
865
|
-
const defaultShowCrosshairs = interactionKeyof(markState, 'crosshairs');
|
|
866
|
-
const plotArea = (0, utils_1.selectPlotArea)(container);
|
|
867
|
-
const isSeries = maybeValue(series, defaultSeries);
|
|
868
|
-
const crosshairsSetting = maybeValue(crosshairs, defaultShowCrosshairs);
|
|
869
|
-
// For non-facet and series tooltip.
|
|
870
|
-
if (isSeries && hasSeries(markState) && !facet) {
|
|
871
|
-
return seriesTooltip(plotArea, Object.assign(Object.assign({}, rest), { theme, elements: utils_1.selectG2Elements, scale,
|
|
872
|
-
coordinate, crosshairs: crosshairsSetting,
|
|
873
|
-
// the crosshairsX settings level: crosshairsX > crosshairs > false
|
|
874
|
-
// it means crosshairsX default is false
|
|
875
|
-
crosshairsX: maybeValue(maybeValue(crosshairsX, crosshairs), false),
|
|
876
|
-
// crosshairsY default depend on the crossharisSettings
|
|
877
|
-
crosshairsY: maybeValue(crosshairsY, crosshairsSetting), item,
|
|
878
|
-
emitter }));
|
|
879
|
-
}
|
|
880
|
-
// For facet and series tooltip.
|
|
881
|
-
if (isSeries && facet) {
|
|
882
|
-
// Get sub view instances for this view.
|
|
883
|
-
const facetInstances = viewInstances.filter((d) => d !== target && d.options.parentKey === target.options.key);
|
|
884
|
-
const elements = (0, utils_1.selectFacetG2Elements)(target, viewInstances);
|
|
885
|
-
// Use the scale of the first view.
|
|
886
|
-
const scale = facetInstances[0].view.scale;
|
|
887
|
-
const bbox = plotArea.getBounds();
|
|
888
|
-
const startX = bbox.min[0];
|
|
889
|
-
const startY = bbox.min[1];
|
|
890
|
-
Object.assign(scale, { facet: true });
|
|
891
|
-
// @todo Nested structure rather than flat structure for facet?
|
|
892
|
-
// Add listener to the root area.
|
|
893
|
-
// @ts-ignore
|
|
894
|
-
return seriesTooltip(plotArea.parentNode.parentNode, Object.assign(Object.assign({}, rest), { theme, elements: () => elements, scale,
|
|
895
|
-
coordinate, crosshairs: maybeValue(crosshairs, defaultShowCrosshairs),
|
|
896
|
-
// the crosshairsX settings level: crosshairsX > crosshairs > false
|
|
897
|
-
// it means crosshairsX default is false
|
|
898
|
-
crosshairsX: maybeValue(maybeValue(crosshairsX, crosshairs), false), crosshairsY: maybeValue(crosshairsY, crosshairsSetting), item,
|
|
899
|
-
startX,
|
|
900
|
-
startY,
|
|
901
|
-
emitter }));
|
|
902
|
-
}
|
|
903
|
-
return tooltip(plotArea, Object.assign(Object.assign({}, rest), { datum: (0, utils_1.createDatumof)(view), elements: utils_1.selectG2Elements, scale,
|
|
904
|
-
coordinate, groupKey: shared ? (0, utils_1.createXKey)(view) : undefined, item,
|
|
905
|
-
emitter,
|
|
906
|
-
view,
|
|
907
|
-
theme,
|
|
908
|
-
shared }));
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
exports.Tooltip = Tooltip;
|
|
912
|
-
Tooltip.props = {
|
|
913
|
-
reapplyWhenUpdate: true,
|
|
914
|
-
};
|
|
915
|
-
//# sourceMappingURL=tooltip.js.map
|