@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
package/lib/runtime/plot.js
DELETED
|
@@ -1,1217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.applyStyle = exports.plot = void 0;
|
|
24
|
-
const g_1 = require("@antv/g");
|
|
25
|
-
const util_1 = require("@antv/util");
|
|
26
|
-
const d3_array_1 = require("@antv/vendor/d3-array");
|
|
27
|
-
const d3_format_1 = require("@antv/vendor/d3-format");
|
|
28
|
-
const array_1 = require("../utils/array");
|
|
29
|
-
const event_1 = require("../utils/event");
|
|
30
|
-
const helper_1 = require("../utils/helper");
|
|
31
|
-
const selection_1 = require("../utils/selection");
|
|
32
|
-
const component_1 = require("./component");
|
|
33
|
-
const constant_1 = require("./constant");
|
|
34
|
-
const coordinate_1 = require("./coordinate");
|
|
35
|
-
const layout_1 = require("./layout");
|
|
36
|
-
const library_1 = require("./library");
|
|
37
|
-
const mark_1 = require("./mark");
|
|
38
|
-
const scale_1 = require("./scale");
|
|
39
|
-
const transform_1 = require("./transform");
|
|
40
|
-
function plot(options, selection, context) {
|
|
41
|
-
var _a;
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
const { library } = context;
|
|
44
|
-
const [useComposition] = (0, library_1.useLibrary)('composition', library);
|
|
45
|
-
const [useInteraction] = (0, library_1.useLibrary)('interaction', library);
|
|
46
|
-
// Some helper functions.
|
|
47
|
-
const marks = new Set(Object.keys(library)
|
|
48
|
-
.map((d) => { var _a; return (_a = /mark\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
|
|
49
|
-
.filter(helper_1.defined));
|
|
50
|
-
const staticMarks = new Set(Object.keys(library)
|
|
51
|
-
.map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
|
|
52
|
-
.filter(helper_1.defined));
|
|
53
|
-
const typeOf = (node) => {
|
|
54
|
-
const { type } = node;
|
|
55
|
-
if (typeof type === 'function') {
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
const { props = {} } = type;
|
|
58
|
-
const { composite = true } = props;
|
|
59
|
-
if (composite)
|
|
60
|
-
return 'mark';
|
|
61
|
-
}
|
|
62
|
-
if (typeof type !== 'string')
|
|
63
|
-
return type;
|
|
64
|
-
if (marks.has(type) || staticMarks.has(type))
|
|
65
|
-
return 'mark';
|
|
66
|
-
return type;
|
|
67
|
-
};
|
|
68
|
-
const isMark = (node) => typeOf(node) === 'mark';
|
|
69
|
-
const isStandardView = (node) => typeOf(node) === 'standardView';
|
|
70
|
-
const isStaticMark = (node) => {
|
|
71
|
-
const { type } = node;
|
|
72
|
-
if (typeof type !== 'string')
|
|
73
|
-
return false;
|
|
74
|
-
if (staticMarks.has(type))
|
|
75
|
-
return true;
|
|
76
|
-
return false;
|
|
77
|
-
};
|
|
78
|
-
const transform = (node) => {
|
|
79
|
-
if (isStandardView(node))
|
|
80
|
-
return [node];
|
|
81
|
-
const type = typeOf(node);
|
|
82
|
-
const composition = useComposition({ type, static: isStaticMark(node) });
|
|
83
|
-
return composition(node);
|
|
84
|
-
};
|
|
85
|
-
// Some temporary variables help parse the view tree.
|
|
86
|
-
const views = [];
|
|
87
|
-
const viewNode = new Map();
|
|
88
|
-
const nodeState = new Map();
|
|
89
|
-
const discovered = [options];
|
|
90
|
-
const nodeGenerators = [];
|
|
91
|
-
while (discovered.length) {
|
|
92
|
-
const node = discovered.shift();
|
|
93
|
-
if (isStandardView(node)) {
|
|
94
|
-
// Initialize view to get data to be visualized. If the marks
|
|
95
|
-
// of the view have already been initialized (facet view),
|
|
96
|
-
// initialize the view based on the initialized mark states,
|
|
97
|
-
// otherwise initialize it from beginning.
|
|
98
|
-
const state = nodeState.get(node);
|
|
99
|
-
const [view, children] = state
|
|
100
|
-
? initializeState(state, node, library)
|
|
101
|
-
: yield initializeView(node, context);
|
|
102
|
-
viewNode.set(view, node);
|
|
103
|
-
views.push(view);
|
|
104
|
-
// Transform children, they will be transformed into
|
|
105
|
-
// standardView if they are mark or view node.
|
|
106
|
-
const transformedNodes = children
|
|
107
|
-
.flatMap(transform)
|
|
108
|
-
.map((d) => (0, coordinate_1.coordinate2Transform)(d, library));
|
|
109
|
-
discovered.push(...transformedNodes);
|
|
110
|
-
// Only StandardView can be treated as facet and it
|
|
111
|
-
// should sync position scales among facets normally.
|
|
112
|
-
if (transformedNodes.every(isStandardView)) {
|
|
113
|
-
const states = yield Promise.all(transformedNodes.map((d) => initializeMarks(d, context)));
|
|
114
|
-
// Note!!!
|
|
115
|
-
// This will mutate scales for marks.
|
|
116
|
-
(0, scale_1.syncFacetsScales)(states);
|
|
117
|
-
for (let i = 0; i < transformedNodes.length; i++) {
|
|
118
|
-
const nodeT = transformedNodes[i];
|
|
119
|
-
const state = states[i];
|
|
120
|
-
nodeState.set(nodeT, state);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
// Apply transform to get data in advance for non-mark composition
|
|
126
|
-
// node, which makes sure that composition node can preprocess the
|
|
127
|
-
// data to produce more nodes based on it.
|
|
128
|
-
const n = isMark(node) ? node : yield applyTransform(node, context);
|
|
129
|
-
const N = transform(n);
|
|
130
|
-
if (Array.isArray(N))
|
|
131
|
-
discovered.push(...N);
|
|
132
|
-
else if (typeof N === 'function')
|
|
133
|
-
nodeGenerators.push(N());
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
context.emitter.emit(event_1.ChartEvent.BEFORE_PAINT);
|
|
137
|
-
// Plot chart.
|
|
138
|
-
const enterContainer = new Map();
|
|
139
|
-
const updateContainer = new Map();
|
|
140
|
-
const transitions = [];
|
|
141
|
-
selection
|
|
142
|
-
.selectAll(className(constant_1.VIEW_CLASS_NAME))
|
|
143
|
-
.data(views, (d) => d.key)
|
|
144
|
-
.join((enter) => enter
|
|
145
|
-
.append('g')
|
|
146
|
-
.attr('className', constant_1.VIEW_CLASS_NAME)
|
|
147
|
-
.attr('id', (view) => view.key)
|
|
148
|
-
.call(applyTranslate)
|
|
149
|
-
.each(function (view, i, element) {
|
|
150
|
-
plotView(view, (0, selection_1.select)(element), transitions, context);
|
|
151
|
-
enterContainer.set(view, element);
|
|
152
|
-
}), (update) => update.call(applyTranslate).each(function (view, i, element) {
|
|
153
|
-
plotView(view, (0, selection_1.select)(element), transitions, context);
|
|
154
|
-
updateContainer.set(view, element);
|
|
155
|
-
}), (exit) => exit
|
|
156
|
-
.each(function (d, i, element) {
|
|
157
|
-
// Remove existed interactions.
|
|
158
|
-
const interactions = element['nameInteraction'].values();
|
|
159
|
-
for (const interaction of interactions) {
|
|
160
|
-
interaction.destroy();
|
|
161
|
-
}
|
|
162
|
-
})
|
|
163
|
-
.remove());
|
|
164
|
-
// Apply interactions.
|
|
165
|
-
const viewInstanceof = (viewContainer, updateInteractions, oldStore) => {
|
|
166
|
-
return Array.from(viewContainer.entries()).map(([view, container]) => {
|
|
167
|
-
// Index state by component or interaction name,
|
|
168
|
-
// such as legend, scrollbar, brushFilter.
|
|
169
|
-
// Each state transform options to another options.
|
|
170
|
-
const store = oldStore || new Map();
|
|
171
|
-
const setState = (key, reducer = (x) => x) => store.set(key, reducer);
|
|
172
|
-
const options = viewNode.get(view);
|
|
173
|
-
const update = createUpdateView((0, selection_1.select)(container), options, context);
|
|
174
|
-
return {
|
|
175
|
-
view,
|
|
176
|
-
container,
|
|
177
|
-
options,
|
|
178
|
-
setState,
|
|
179
|
-
update: (from, updateTypes) => __awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
// Apply all state functions to get new options.
|
|
181
|
-
const reducer = (0, helper_1.compose)(Array.from(store.values()));
|
|
182
|
-
const newOptions = reducer(options);
|
|
183
|
-
return yield update(newOptions, from, () => {
|
|
184
|
-
if ((0, util_1.isArray)(updateTypes)) {
|
|
185
|
-
updateInteractions(viewContainer, updateTypes, store);
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}),
|
|
189
|
-
};
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
const updateInteractions = (container = updateContainer, updateType, oldStore) => {
|
|
193
|
-
var _a;
|
|
194
|
-
// Interactions for update views.
|
|
195
|
-
const updateViewInstances = viewInstanceof(container, updateInteractions, oldStore);
|
|
196
|
-
for (const target of updateViewInstances) {
|
|
197
|
-
const { options, container } = target;
|
|
198
|
-
const nameInteraction = container['nameInteraction'];
|
|
199
|
-
let typeOptions = inferInteraction(options);
|
|
200
|
-
if (updateType) {
|
|
201
|
-
typeOptions = typeOptions.filter((v) => updateType.includes(v[0]));
|
|
202
|
-
}
|
|
203
|
-
for (const typeOption of typeOptions) {
|
|
204
|
-
const [type, option] = typeOption;
|
|
205
|
-
// Remove interaction for existed views.
|
|
206
|
-
const prevInteraction = nameInteraction.get(type);
|
|
207
|
-
if (prevInteraction)
|
|
208
|
-
(_a = prevInteraction.destroy) === null || _a === void 0 ? void 0 : _a.call(prevInteraction);
|
|
209
|
-
// Apply new interaction.
|
|
210
|
-
if (option) {
|
|
211
|
-
const interaction = useThemeInteraction(target.view, type, option, useInteraction);
|
|
212
|
-
const destroy = interaction(target, updateViewInstances, context.emitter);
|
|
213
|
-
nameInteraction.set(type, { destroy });
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
// Interactions for enter views.
|
|
219
|
-
const enterViewInstances = viewInstanceof(enterContainer, updateInteractions);
|
|
220
|
-
for (const target of enterViewInstances) {
|
|
221
|
-
const { options } = target;
|
|
222
|
-
// A Map index interaction by interaction name.
|
|
223
|
-
const nameInteraction = new Map();
|
|
224
|
-
target.container['nameInteraction'] = nameInteraction;
|
|
225
|
-
// Apply interactions.
|
|
226
|
-
for (const typeOption of inferInteraction(options)) {
|
|
227
|
-
const [type, option] = typeOption;
|
|
228
|
-
if (option) {
|
|
229
|
-
const interaction = useThemeInteraction(target.view, type, option, useInteraction);
|
|
230
|
-
const destroy = interaction(target, enterViewInstances, context.emitter);
|
|
231
|
-
nameInteraction.set(type, { destroy });
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
updateInteractions();
|
|
236
|
-
// Author animations.
|
|
237
|
-
const { width, height } = options;
|
|
238
|
-
const keyframes = [];
|
|
239
|
-
for (const nodeGenerator of nodeGenerators) {
|
|
240
|
-
// Delay the rendering of animation keyframe. Different animation
|
|
241
|
-
// created by different nodeGenerator will play in the same time.
|
|
242
|
-
// eslint-disable-next-line no-async-promise-executor
|
|
243
|
-
const keyframe = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
|
244
|
-
for (const node of nodeGenerator) {
|
|
245
|
-
const sizedNode = Object.assign({ width, height }, node);
|
|
246
|
-
yield plot(sizedNode, selection, context);
|
|
247
|
-
}
|
|
248
|
-
resolve();
|
|
249
|
-
}));
|
|
250
|
-
keyframes.push(keyframe);
|
|
251
|
-
}
|
|
252
|
-
context.views = views;
|
|
253
|
-
// Clear and update animation.
|
|
254
|
-
(_a = context.animations) === null || _a === void 0 ? void 0 : _a.forEach((animation) => animation === null || animation === void 0 ? void 0 : animation.cancel());
|
|
255
|
-
context.animations = transitions;
|
|
256
|
-
context.emitter.emit(event_1.ChartEvent.AFTER_PAINT);
|
|
257
|
-
// Note!!!
|
|
258
|
-
// The returned promise will never resolved if one of nodeGenerator
|
|
259
|
-
// never stop to yield node, which may created by a keyframe composition
|
|
260
|
-
// with iteration count set to infinite.
|
|
261
|
-
const finished = transitions
|
|
262
|
-
.filter(helper_1.defined)
|
|
263
|
-
.map(cancel)
|
|
264
|
-
.map((d) => d.finished);
|
|
265
|
-
return Promise.all([...finished, ...keyframes]);
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
exports.plot = plot;
|
|
269
|
-
function applyTranslate(selection) {
|
|
270
|
-
selection.style('transform', (d) => `translate(${d.layout.x}, ${d.layout.y})`);
|
|
271
|
-
}
|
|
272
|
-
function definedInteraction(library) {
|
|
273
|
-
const [, createInteraction] = (0, library_1.useLibrary)('interaction', library);
|
|
274
|
-
return (d) => {
|
|
275
|
-
const [name, options] = d;
|
|
276
|
-
try {
|
|
277
|
-
return [name, createInteraction(name)];
|
|
278
|
-
}
|
|
279
|
-
catch (_a) {
|
|
280
|
-
return [name, options.type];
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function createUpdateView(selection, options, context) {
|
|
285
|
-
const { library } = context;
|
|
286
|
-
const createDefinedInteraction = definedInteraction(library);
|
|
287
|
-
const filter = (d) => d[1] && d[1].props && d[1].props.reapplyWhenUpdate;
|
|
288
|
-
const interactions = inferInteraction(options);
|
|
289
|
-
const updates = interactions
|
|
290
|
-
.map(createDefinedInteraction)
|
|
291
|
-
.filter(filter)
|
|
292
|
-
.map((d) => d[0]);
|
|
293
|
-
return (newOptions, source, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
const transitions = [];
|
|
295
|
-
const [newView, newChildren] = yield initializeView(newOptions, context);
|
|
296
|
-
plotView(newView, selection, transitions, context);
|
|
297
|
-
// Update interaction need to reapply when update.
|
|
298
|
-
for (const name of updates.filter((d) => d !== source)) {
|
|
299
|
-
updateInteraction(name, selection, newOptions, newView, context);
|
|
300
|
-
}
|
|
301
|
-
for (const child of newChildren) {
|
|
302
|
-
plot(child, selection, context);
|
|
303
|
-
}
|
|
304
|
-
callback();
|
|
305
|
-
return { options: newOptions, view: newView };
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function updateInteraction(name, selection, options, view, context) {
|
|
309
|
-
var _a;
|
|
310
|
-
const { library } = context;
|
|
311
|
-
const [useInteraction] = (0, library_1.useLibrary)('interaction', library);
|
|
312
|
-
// Instances for interaction.
|
|
313
|
-
const container = selection.node();
|
|
314
|
-
const nameInteraction = container['nameInteraction'];
|
|
315
|
-
const interactionOptions = inferInteraction(options).find(([d]) => d === name);
|
|
316
|
-
// Destroy older interaction.
|
|
317
|
-
const interaction = nameInteraction.get(name);
|
|
318
|
-
if (!interaction)
|
|
319
|
-
return;
|
|
320
|
-
(_a = interaction.destroy) === null || _a === void 0 ? void 0 : _a.call(interaction);
|
|
321
|
-
if (!interactionOptions[1])
|
|
322
|
-
return;
|
|
323
|
-
// Apply new interaction.
|
|
324
|
-
const applyInteraction = useThemeInteraction(view, name, interactionOptions[1], useInteraction);
|
|
325
|
-
const target = {
|
|
326
|
-
options,
|
|
327
|
-
view,
|
|
328
|
-
container: selection.node(),
|
|
329
|
-
update: (options) => Promise.resolve(options),
|
|
330
|
-
};
|
|
331
|
-
const destroy = applyInteraction(target, [], context.emitter);
|
|
332
|
-
nameInteraction.set(name, { destroy });
|
|
333
|
-
}
|
|
334
|
-
function initializeView(options, context) {
|
|
335
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
-
const { library } = context;
|
|
337
|
-
const flattenOptions = yield transformMarks(options, context);
|
|
338
|
-
const mergedOptions = bubbleOptions(flattenOptions);
|
|
339
|
-
// @todo Remove this.
|
|
340
|
-
// !!! NOTE: Mute original view options.
|
|
341
|
-
// Update interaction and coordinate for this view.
|
|
342
|
-
options.interaction = mergedOptions.interaction;
|
|
343
|
-
options.coordinate = mergedOptions.coordinate;
|
|
344
|
-
// @ts-ignore
|
|
345
|
-
options.marks = [...mergedOptions.marks, ...mergedOptions.components];
|
|
346
|
-
const transformedOptions = (0, coordinate_1.coordinate2Transform)(mergedOptions, library);
|
|
347
|
-
const state = yield initializeMarks(transformedOptions, context);
|
|
348
|
-
return initializeState(state, transformedOptions, library);
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
function bubbleOptions(options) {
|
|
352
|
-
const { coordinate: viewCoordinate = {}, interaction: viewInteraction = {}, style: viewStyle = {}, marks } = options, rest = __rest(options, ["coordinate", "interaction", "style", "marks"]);
|
|
353
|
-
const markCoordinates = marks.map((d) => d.coordinate || {});
|
|
354
|
-
const markInteractions = marks.map((d) => d.interaction || {});
|
|
355
|
-
const markViewStyles = marks.map((d) => d.viewStyle || {});
|
|
356
|
-
const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
|
|
357
|
-
const newInteraction = [viewInteraction, ...markInteractions].reduce((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
|
|
358
|
-
const newStyle = [...markViewStyles, viewStyle].reduce((prev, cur) => (0, util_1.deepMix)(prev, cur), {});
|
|
359
|
-
return Object.assign(Object.assign({}, rest), { marks, coordinate: newCoordinate, interaction: newInteraction, style: newStyle });
|
|
360
|
-
}
|
|
361
|
-
function transformMarks(options, context) {
|
|
362
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
-
const { library } = context;
|
|
364
|
-
const [useMark, createMark] = (0, library_1.useLibrary)('mark', library);
|
|
365
|
-
const staticMarks = new Set(Object.keys(library)
|
|
366
|
-
.map((d) => { var _a; return (_a = /component\.(.*)/.exec(d)) === null || _a === void 0 ? void 0 : _a[1]; })
|
|
367
|
-
.filter(helper_1.defined));
|
|
368
|
-
const { marks } = options;
|
|
369
|
-
const flattenMarks = [];
|
|
370
|
-
const components = [];
|
|
371
|
-
const discovered = [...marks];
|
|
372
|
-
const { width, height } = (0, layout_1.computeRoughPlotSize)(options);
|
|
373
|
-
const markOptions = { options, width, height };
|
|
374
|
-
// Pre order traversal.
|
|
375
|
-
while (discovered.length) {
|
|
376
|
-
const [node] = discovered.splice(0, 1);
|
|
377
|
-
// Apply data transform to get data.
|
|
378
|
-
const mark = (yield applyTransform(node, context));
|
|
379
|
-
const { type = (0, helper_1.error)('G2Mark type is required.'), key } = mark;
|
|
380
|
-
// For components.
|
|
381
|
-
if (staticMarks.has(type))
|
|
382
|
-
components.push(mark);
|
|
383
|
-
else {
|
|
384
|
-
const { props = {} } = createMark(type);
|
|
385
|
-
const { composite = true } = props;
|
|
386
|
-
if (!composite)
|
|
387
|
-
flattenMarks.push(mark);
|
|
388
|
-
else {
|
|
389
|
-
// Unwrap data from { value: data } to data,
|
|
390
|
-
// then the composite mark can process the normalized data.
|
|
391
|
-
const { data } = mark;
|
|
392
|
-
const newMark = Object.assign(Object.assign({}, mark), { data: data ? (Array.isArray(data) ? data : data.value) : data });
|
|
393
|
-
// Convert composite mark to marks.
|
|
394
|
-
const marks = yield useMark(newMark, markOptions);
|
|
395
|
-
const M = Array.isArray(marks) ? marks : [marks];
|
|
396
|
-
discovered.unshift(...M.map((d, i) => (Object.assign(Object.assign({}, d), { key: `${key}-${i}` }))));
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return Object.assign(Object.assign({}, options), { marks: flattenMarks, components });
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
function initializeMarks(options, context) {
|
|
404
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
-
const { library } = context;
|
|
406
|
-
const [useTheme] = (0, library_1.useLibrary)('theme', library);
|
|
407
|
-
const [, createMark] = (0, library_1.useLibrary)('mark', library);
|
|
408
|
-
const { theme: partialTheme, marks: partialMarks, coordinates = [], } = options;
|
|
409
|
-
const theme = useTheme(inferTheme(partialTheme));
|
|
410
|
-
const markState = new Map();
|
|
411
|
-
// Initialize channels for marks.
|
|
412
|
-
for (const markOptions of partialMarks) {
|
|
413
|
-
const { type } = markOptions;
|
|
414
|
-
const { props = {} } = createMark(type);
|
|
415
|
-
const markAndState = yield (0, mark_1.initializeMark)(markOptions, props, context);
|
|
416
|
-
if (markAndState) {
|
|
417
|
-
const [initializedMark, state] = markAndState;
|
|
418
|
-
markState.set(initializedMark, state);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
// Group channels by scale key, each group has scale.
|
|
422
|
-
const scaleChannels = (0, d3_array_1.group)(Array.from(markState.values()).flatMap((d) => d.channels), ({ scaleKey }) => scaleKey);
|
|
423
|
-
// Infer scale for each channel groups.
|
|
424
|
-
for (const channels of scaleChannels.values()) {
|
|
425
|
-
// Merge scale options for these channels.
|
|
426
|
-
const scaleOptions = channels.reduce((total, { scale }) => (0, util_1.deepMix)(total, scale), {});
|
|
427
|
-
const { scaleKey } = channels[0];
|
|
428
|
-
// Use the fields of the first channel as the title.
|
|
429
|
-
const { values: FV } = channels[0];
|
|
430
|
-
const fields = Array.from(new Set(FV.map((d) => d.field).filter(helper_1.defined)));
|
|
431
|
-
const options = (0, util_1.deepMix)({
|
|
432
|
-
guide: { title: fields.length === 0 ? undefined : fields },
|
|
433
|
-
field: fields[0],
|
|
434
|
-
}, scaleOptions);
|
|
435
|
-
// Use the name of the first channel as the scale name.
|
|
436
|
-
const { name } = channels[0];
|
|
437
|
-
const values = channels.flatMap(({ values }) => values.map((d) => d.value));
|
|
438
|
-
const scale = Object.assign(Object.assign({}, (0, scale_1.inferScale)(name, values, options, coordinates, theme, library)), { uid: Symbol('scale'), key: scaleKey });
|
|
439
|
-
channels.forEach((channel) => (channel.scale = scale));
|
|
440
|
-
}
|
|
441
|
-
return markState;
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
function useThemeInteraction(view, type, option, useInteraction) {
|
|
445
|
-
const theme = view.theme;
|
|
446
|
-
const defaults = typeof type === 'string' ? theme[type] || {} : {};
|
|
447
|
-
const interaction = useInteraction((0, util_1.deepMix)(defaults, Object.assign({ type }, option)));
|
|
448
|
-
return interaction;
|
|
449
|
-
}
|
|
450
|
-
function initializeState(markState, options, library) {
|
|
451
|
-
var _a;
|
|
452
|
-
const [useMark] = (0, library_1.useLibrary)('mark', library);
|
|
453
|
-
const [useTheme] = (0, library_1.useLibrary)('theme', library);
|
|
454
|
-
const [useLabelTransform] = (0, library_1.useLibrary)('labelTransform', library);
|
|
455
|
-
const { key, frame = false, theme: partialTheme, clip, style = {}, labelTransform = [], } = options;
|
|
456
|
-
const theme = useTheme(inferTheme(partialTheme));
|
|
457
|
-
// Infer components and compute layout.
|
|
458
|
-
const states = Array.from(markState.values());
|
|
459
|
-
const scales = (0, scale_1.collectScales)(states, options);
|
|
460
|
-
const components = (0, component_1.normalizeComponents)((0, component_1.inferComponent)(inferComponentScales(Array.from(scales), states, markState), options, library));
|
|
461
|
-
const layout = (0, layout_1.computeLayout)(components, options, theme, library);
|
|
462
|
-
const coordinate = (0, coordinate_1.createCoordinate)(layout, options, library);
|
|
463
|
-
const framedStyle = frame
|
|
464
|
-
? (0, util_1.deepMix)({ mainLineWidth: 1, mainStroke: '#000' }, style)
|
|
465
|
-
: style;
|
|
466
|
-
// Place components and mutate their bbox.
|
|
467
|
-
(0, layout_1.placeComponents)((0, component_1.groupComponents)(components), coordinate, layout);
|
|
468
|
-
// AxisZ need a copy of axisX and axisY to show grids in X-Z & Y-Z planes.
|
|
469
|
-
(0, layout_1.processAxisZ)(components);
|
|
470
|
-
// Index scale instance by uid.
|
|
471
|
-
const uidScale = new Map(Array.from(markState.values()).flatMap((state) => {
|
|
472
|
-
const { channels } = state;
|
|
473
|
-
return channels.map(({ scale }) => [
|
|
474
|
-
scale.uid,
|
|
475
|
-
(0, scale_1.useRelationScale)(scale, library),
|
|
476
|
-
]);
|
|
477
|
-
}));
|
|
478
|
-
(0, scale_1.groupTransform)(markState, uidScale);
|
|
479
|
-
// Scale from marks and components.
|
|
480
|
-
const scaleInstance = {};
|
|
481
|
-
// Initialize scale from components.
|
|
482
|
-
for (const component of components) {
|
|
483
|
-
const { scales: scaleDescriptors = [] } = component;
|
|
484
|
-
const scales = [];
|
|
485
|
-
for (const descriptor of scaleDescriptors) {
|
|
486
|
-
const { name, uid } = descriptor;
|
|
487
|
-
const scale = (_a = uidScale.get(uid)) !== null && _a !== void 0 ? _a : (0, scale_1.useRelationScale)(descriptor, library);
|
|
488
|
-
scales.push(scale);
|
|
489
|
-
// Delivery the scale of axisX to the AxisY,
|
|
490
|
-
// in order to calculate the angle of axisY component when rendering radar chart.
|
|
491
|
-
if (name === 'y') {
|
|
492
|
-
scale.update(Object.assign(Object.assign({}, scale.getOptions()), { xScale: scaleInstance.x }));
|
|
493
|
-
}
|
|
494
|
-
(0, scale_1.assignScale)(scaleInstance, { [name]: scale });
|
|
495
|
-
}
|
|
496
|
-
component.scaleInstances = scales;
|
|
497
|
-
}
|
|
498
|
-
// Calc data to be rendered for each mark.
|
|
499
|
-
// @todo More readable APIs for Container which stays
|
|
500
|
-
// the same style with JS standard and lodash APIs.
|
|
501
|
-
// @todo More proper way to index scale for different marks.
|
|
502
|
-
const children = [];
|
|
503
|
-
for (const [mark, state] of markState.entries()) {
|
|
504
|
-
const {
|
|
505
|
-
// scale,
|
|
506
|
-
// Callback to create children options based on this mark.
|
|
507
|
-
children: createChildren,
|
|
508
|
-
// The total count of data (both show and hide)for this facet.
|
|
509
|
-
// This is for unit visualization to sync data domain.
|
|
510
|
-
dataDomain, modifier, key: markKey, } = mark;
|
|
511
|
-
const { index, channels, tooltip } = state;
|
|
512
|
-
const scale = Object.fromEntries(channels.map(({ name, scale }) => [name, scale]));
|
|
513
|
-
// Transform abstract value to visual value by scales.
|
|
514
|
-
const markScaleInstance = (0, array_1.mapObject)(scale, ({ uid }) => uidScale.get(uid));
|
|
515
|
-
(0, scale_1.assignScale)(scaleInstance, markScaleInstance);
|
|
516
|
-
const value = (0, scale_1.applyScale)(channels, markScaleInstance);
|
|
517
|
-
// Calc points and transformation for each data,
|
|
518
|
-
// and then transform visual value to visual data.
|
|
519
|
-
const calcPoints = useMark(mark);
|
|
520
|
-
const [I, P, S] = filterValid(calcPoints(index, markScaleInstance, value, coordinate));
|
|
521
|
-
const count = dataDomain || I.length;
|
|
522
|
-
const T = modifier ? modifier(P, count, layout) : [];
|
|
523
|
-
const titleOf = (i) => { var _a, _b; return (_b = (_a = tooltip.title) === null || _a === void 0 ? void 0 : _a[i]) === null || _b === void 0 ? void 0 : _b.value; };
|
|
524
|
-
const itemsOf = (i) => tooltip.items.map((V) => V[i]);
|
|
525
|
-
const visualData = I.map((d, i) => {
|
|
526
|
-
const datum = Object.assign({ points: P[i], transform: T[i], index: d, markKey, viewKey: key }, (tooltip && {
|
|
527
|
-
title: titleOf(d),
|
|
528
|
-
items: itemsOf(d),
|
|
529
|
-
}));
|
|
530
|
-
for (const [k, V] of Object.entries(value)) {
|
|
531
|
-
datum[k] = V[d];
|
|
532
|
-
if (S)
|
|
533
|
-
datum[`series${(0, util_1.upperFirst)(k)}`] = S[i].map((i) => V[i]);
|
|
534
|
-
}
|
|
535
|
-
if (S)
|
|
536
|
-
datum['seriesIndex'] = S[i];
|
|
537
|
-
if (S && tooltip) {
|
|
538
|
-
datum['seriesItems'] = S[i].map((si) => itemsOf(si));
|
|
539
|
-
datum['seriesTitle'] = S[i].map((si) => titleOf(si));
|
|
540
|
-
}
|
|
541
|
-
return datum;
|
|
542
|
-
});
|
|
543
|
-
state.data = visualData;
|
|
544
|
-
state.index = I;
|
|
545
|
-
// Create children options by children callback,
|
|
546
|
-
// and then propagate data to each child.
|
|
547
|
-
const markChildren = createChildren === null || createChildren === void 0 ? void 0 : createChildren(visualData, markScaleInstance, layout);
|
|
548
|
-
children.push(...(markChildren || []));
|
|
549
|
-
}
|
|
550
|
-
const view = {
|
|
551
|
-
layout,
|
|
552
|
-
theme,
|
|
553
|
-
coordinate,
|
|
554
|
-
markState,
|
|
555
|
-
key,
|
|
556
|
-
clip,
|
|
557
|
-
scale: scaleInstance,
|
|
558
|
-
style: framedStyle,
|
|
559
|
-
components,
|
|
560
|
-
labelTransform: (0, helper_1.compose)(labelTransform.map(useLabelTransform)),
|
|
561
|
-
};
|
|
562
|
-
return [view, children];
|
|
563
|
-
}
|
|
564
|
-
function plotView(view, selection, transitions, context) {
|
|
565
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
-
const { library } = context;
|
|
567
|
-
const { components, theme, layout, markState, coordinate, key, style, clip, scale, } = view;
|
|
568
|
-
// Render background for the different areas.
|
|
569
|
-
const { x, y, width, height } = layout, rest = __rest(layout, ["x", "y", "width", "height"]);
|
|
570
|
-
const areaKeys = ['view', 'plot', 'main', 'content'];
|
|
571
|
-
const I = areaKeys.map((_, i) => i);
|
|
572
|
-
const sizeKeys = ['a', 'margin', 'padding', 'inset'];
|
|
573
|
-
const areaStyles = areaKeys.map((d) => (0, helper_1.maybeSubObject)(Object.assign({}, theme.view, style), d));
|
|
574
|
-
const areaSizes = sizeKeys.map((d) => (0, helper_1.subObject)(rest, d));
|
|
575
|
-
const styleArea = (selection) => selection
|
|
576
|
-
.style('x', (i) => areaLayouts[i].x)
|
|
577
|
-
.style('y', (i) => areaLayouts[i].y)
|
|
578
|
-
.style('width', (i) => areaLayouts[i].width)
|
|
579
|
-
.style('height', (i) => areaLayouts[i].height)
|
|
580
|
-
.each(function (i, d, element) {
|
|
581
|
-
applyStyle((0, selection_1.select)(element), areaStyles[i]);
|
|
582
|
-
});
|
|
583
|
-
let px = 0;
|
|
584
|
-
let py = 0;
|
|
585
|
-
let pw = width;
|
|
586
|
-
let ph = height;
|
|
587
|
-
const areaLayouts = I.map((i) => {
|
|
588
|
-
const size = areaSizes[i];
|
|
589
|
-
const { left = 0, top = 0, bottom = 0, right = 0 } = size;
|
|
590
|
-
px += left;
|
|
591
|
-
py += top;
|
|
592
|
-
pw -= left + right;
|
|
593
|
-
ph -= top + bottom;
|
|
594
|
-
return {
|
|
595
|
-
x: px,
|
|
596
|
-
y: py,
|
|
597
|
-
width: pw,
|
|
598
|
-
height: ph,
|
|
599
|
-
};
|
|
600
|
-
});
|
|
601
|
-
selection
|
|
602
|
-
.selectAll(className(constant_1.AREA_CLASS_NAME))
|
|
603
|
-
.data(
|
|
604
|
-
// Only render area with defined style.
|
|
605
|
-
I.filter((i) => (0, helper_1.defined)(areaStyles[i])), (i) => areaKeys[i])
|
|
606
|
-
.join((enter) => enter
|
|
607
|
-
.append('rect')
|
|
608
|
-
.attr('className', constant_1.AREA_CLASS_NAME)
|
|
609
|
-
.style('zIndex', -2)
|
|
610
|
-
.call(styleArea), (update) => update.call(styleArea), (exit) => exit.remove());
|
|
611
|
-
const animationExtent = computeAnimationExtent(markState);
|
|
612
|
-
const componentAnimateOptions = animationExtent
|
|
613
|
-
? { duration: animationExtent[1] }
|
|
614
|
-
: false;
|
|
615
|
-
// Render components.
|
|
616
|
-
// @todo renderComponent return ctor and options.
|
|
617
|
-
// Key for each type of component.
|
|
618
|
-
// Index them grouped by position.
|
|
619
|
-
for (const [, C] of (0, d3_array_1.groups)(components, (d) => `${d.type}-${d.position}`)) {
|
|
620
|
-
C.forEach((d, i) => (d.index = i));
|
|
621
|
-
}
|
|
622
|
-
const componentsTransitions = selection
|
|
623
|
-
.selectAll(className(constant_1.COMPONENT_CLASS_NAME))
|
|
624
|
-
.data(components, (d) => `${d.type}-${d.position}-${d.index}`)
|
|
625
|
-
.join((enter) => enter
|
|
626
|
-
.append('g')
|
|
627
|
-
.style('zIndex', ({ zIndex }) => zIndex || -1)
|
|
628
|
-
.attr('className', constant_1.COMPONENT_CLASS_NAME)
|
|
629
|
-
.append((options) => (0, component_1.renderComponent)((0, util_1.deepMix)({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState)), (update) => update.transition(function (options, i, element) {
|
|
630
|
-
const { preserve = false } = options;
|
|
631
|
-
if (preserve)
|
|
632
|
-
return;
|
|
633
|
-
const newComponent = (0, component_1.renderComponent)((0, util_1.deepMix)({ animate: componentAnimateOptions, scale }, options), coordinate, theme, library, markState);
|
|
634
|
-
const { attributes } = newComponent;
|
|
635
|
-
const [node] = element.childNodes;
|
|
636
|
-
return node.update(attributes, false);
|
|
637
|
-
}))
|
|
638
|
-
.transitions();
|
|
639
|
-
transitions.push(...componentsTransitions.flat().filter(helper_1.defined));
|
|
640
|
-
// Main layer is for showing the main visual representation such as marks. There
|
|
641
|
-
// may be multiple main layers for a view, each main layer correspond to one of marks.
|
|
642
|
-
// @todo Test DOM structure.
|
|
643
|
-
const T = selection
|
|
644
|
-
.selectAll(className(constant_1.PLOT_CLASS_NAME))
|
|
645
|
-
.data([layout], () => key)
|
|
646
|
-
.join((enter) => enter
|
|
647
|
-
// Make this layer interactive, such as click and mousemove events.
|
|
648
|
-
.append('rect')
|
|
649
|
-
.style('zIndex', 0)
|
|
650
|
-
.style('fill', 'transparent')
|
|
651
|
-
.attr('className', constant_1.PLOT_CLASS_NAME)
|
|
652
|
-
.call(updateBBox)
|
|
653
|
-
.call(updateLayers, Array.from(markState.keys()))
|
|
654
|
-
.call(applyClip, clip), (update) => update
|
|
655
|
-
.call(updateLayers, Array.from(markState.keys()))
|
|
656
|
-
.call((selection) => {
|
|
657
|
-
return animationExtent
|
|
658
|
-
? animateBBox(selection, animationExtent)
|
|
659
|
-
: updateBBox(selection);
|
|
660
|
-
})
|
|
661
|
-
.call(applyClip, clip))
|
|
662
|
-
.transitions();
|
|
663
|
-
transitions.push(...T.flat());
|
|
664
|
-
// Render marks with corresponding data.
|
|
665
|
-
for (const [mark, state] of markState.entries()) {
|
|
666
|
-
const { data } = state;
|
|
667
|
-
const { key, class: cls, type } = mark;
|
|
668
|
-
const viewNode = selection.select(`#${key}`);
|
|
669
|
-
const shapeFunction = createMarkShapeFunction(mark, state, view, context);
|
|
670
|
-
const enterFunction = createEnterFunction(mark, state, view, library);
|
|
671
|
-
const updateFunction = createUpdateFunction(mark, state, view, library);
|
|
672
|
-
const exitFunction = createExitFunction(mark, state, view, library);
|
|
673
|
-
const facetElements = selectFacetElements(selection, viewNode, cls, 'element');
|
|
674
|
-
const T = viewNode
|
|
675
|
-
.selectAll(className(constant_1.ELEMENT_CLASS_NAME))
|
|
676
|
-
.selectFacetAll(facetElements)
|
|
677
|
-
.data(data, (d) => d.key, (d) => d.groupKey)
|
|
678
|
-
.join((enter) => enter
|
|
679
|
-
.append(shapeFunction)
|
|
680
|
-
// Note!!! Only one className can be set.
|
|
681
|
-
// Using attribute as alternative for other classNames.
|
|
682
|
-
.attr('className', constant_1.ELEMENT_CLASS_NAME)
|
|
683
|
-
.attr('markType', type)
|
|
684
|
-
.transition(function (data, i, element) {
|
|
685
|
-
return enterFunction(data, [element]);
|
|
686
|
-
}), (update) => update.call((selection) => {
|
|
687
|
-
const parent = selection.parent();
|
|
688
|
-
const origin = (0, helper_1.useMemo)((node) => {
|
|
689
|
-
const [x, y] = node.getBounds().min;
|
|
690
|
-
return [x, y];
|
|
691
|
-
});
|
|
692
|
-
selection
|
|
693
|
-
.transition(function (data, index, element) {
|
|
694
|
-
maybeFacetElement(element, parent, origin);
|
|
695
|
-
const node = shapeFunction(data, index);
|
|
696
|
-
const animation = updateFunction(data, [element], [node]);
|
|
697
|
-
if (animation === null || animation === void 0 ? void 0 : animation.length)
|
|
698
|
-
return animation;
|
|
699
|
-
if (element.nodeName === node.nodeName &&
|
|
700
|
-
node.nodeName !== 'g') {
|
|
701
|
-
(0, helper_1.copyAttributes)(element, node);
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
element.parentNode.replaceChild(node, element);
|
|
705
|
-
node.className = constant_1.ELEMENT_CLASS_NAME;
|
|
706
|
-
// @ts-ignore
|
|
707
|
-
node.markType = type;
|
|
708
|
-
// @ts-ignore
|
|
709
|
-
node.__data__ = element.__data__;
|
|
710
|
-
}
|
|
711
|
-
return animation;
|
|
712
|
-
})
|
|
713
|
-
.attr('markType', type)
|
|
714
|
-
.attr('className', constant_1.ELEMENT_CLASS_NAME);
|
|
715
|
-
}), (exit) => {
|
|
716
|
-
return exit
|
|
717
|
-
.each(function (d, i, element) {
|
|
718
|
-
element.__removed__ = true;
|
|
719
|
-
})
|
|
720
|
-
.transition(function (data, i, element) {
|
|
721
|
-
return exitFunction(data, [element]);
|
|
722
|
-
})
|
|
723
|
-
.remove();
|
|
724
|
-
}, (merge) => merge
|
|
725
|
-
// Append elements to be merged.
|
|
726
|
-
.append(shapeFunction)
|
|
727
|
-
.attr('className', constant_1.ELEMENT_CLASS_NAME)
|
|
728
|
-
.attr('markType', type)
|
|
729
|
-
.transition(function (data, i, element) {
|
|
730
|
-
// Remove merged elements after animation finishing.
|
|
731
|
-
const { __fromElements__: fromElements } = element;
|
|
732
|
-
const transition = updateFunction(data, fromElements, [element]);
|
|
733
|
-
const exit = new selection_1.Selection(fromElements, null, element.parentNode);
|
|
734
|
-
exit.transition(transition).remove();
|
|
735
|
-
return transition;
|
|
736
|
-
}), (split) => split
|
|
737
|
-
.transition(function (data, i, element) {
|
|
738
|
-
// Append splitted shapes.
|
|
739
|
-
const enter = new selection_1.Selection([], element.__toData__, element.parentNode);
|
|
740
|
-
const toElements = enter
|
|
741
|
-
.append(shapeFunction)
|
|
742
|
-
.attr('className', constant_1.ELEMENT_CLASS_NAME)
|
|
743
|
-
.attr('markType', type)
|
|
744
|
-
.nodes();
|
|
745
|
-
return updateFunction(data, [element], toElements);
|
|
746
|
-
})
|
|
747
|
-
// Remove elements to be splitted after animation finishing.
|
|
748
|
-
.remove())
|
|
749
|
-
.transitions();
|
|
750
|
-
transitions.push(...T.flat());
|
|
751
|
-
}
|
|
752
|
-
// Plot label for this view.
|
|
753
|
-
plotLabel(view, selection, transitions, library, context);
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
/**
|
|
757
|
-
* Auto hide labels be specify label layout.
|
|
758
|
-
*/
|
|
759
|
-
function plotLabel(view, selection, transitions, library, context) {
|
|
760
|
-
const [useLabelTransform] = (0, library_1.useLibrary)('labelTransform', library);
|
|
761
|
-
const { markState, labelTransform } = view;
|
|
762
|
-
const labelLayer = selection.select(className(constant_1.LABEL_LAYER_CLASS_NAME)).node();
|
|
763
|
-
// A Map index shapeFunction by label.
|
|
764
|
-
const labelShapeFunction = new Map();
|
|
765
|
-
// A Map index options by label.
|
|
766
|
-
const labelDescriptor = new Map();
|
|
767
|
-
// Get all labels for this view.
|
|
768
|
-
const labels = Array.from(markState.entries()).flatMap(([mark, state]) => {
|
|
769
|
-
const { labels: labelOptions = [], key } = mark;
|
|
770
|
-
const shapeFunction = createLabelShapeFunction(mark, state, view, library, context);
|
|
771
|
-
const elements = selection
|
|
772
|
-
.select(`#${key}`)
|
|
773
|
-
.selectAll(className(constant_1.ELEMENT_CLASS_NAME))
|
|
774
|
-
.nodes()
|
|
775
|
-
// Only select the valid element.
|
|
776
|
-
.filter((n) => !n.__removed__);
|
|
777
|
-
return labelOptions.flatMap((labelOption, i) => {
|
|
778
|
-
const { transform = [] } = labelOption, options = __rest(labelOption, ["transform"]);
|
|
779
|
-
return elements.flatMap((e) => {
|
|
780
|
-
const L = getLabels(options, i, e);
|
|
781
|
-
L.forEach((l) => {
|
|
782
|
-
labelShapeFunction.set(l, (data) => shapeFunction(Object.assign(Object.assign({}, data), { element: e })));
|
|
783
|
-
labelDescriptor.set(l, labelOption);
|
|
784
|
-
});
|
|
785
|
-
return L;
|
|
786
|
-
});
|
|
787
|
-
});
|
|
788
|
-
});
|
|
789
|
-
// Render all labels.
|
|
790
|
-
const labelShapes = (0, selection_1.select)(labelLayer)
|
|
791
|
-
.selectAll(className(constant_1.LABEL_CLASS_NAME))
|
|
792
|
-
.data(labels, (d) => d.key)
|
|
793
|
-
.join((enter) => enter
|
|
794
|
-
.append((d) => labelShapeFunction.get(d)(d))
|
|
795
|
-
.attr('className', constant_1.LABEL_CLASS_NAME), (update) => update.each(function (d, i, element) {
|
|
796
|
-
// @todo Handle Label with different type.
|
|
797
|
-
const shapeFunction = labelShapeFunction.get(d);
|
|
798
|
-
const node = shapeFunction(d);
|
|
799
|
-
(0, helper_1.copyAttributes)(element, node);
|
|
800
|
-
}), (exit) => exit.remove())
|
|
801
|
-
.nodes();
|
|
802
|
-
// Apply group-level transforms.
|
|
803
|
-
const labelGroups = (0, d3_array_1.group)(labelShapes, (d) => labelDescriptor.get(d.__data__));
|
|
804
|
-
const { coordinate, layout } = view;
|
|
805
|
-
const labelTransformContext = {
|
|
806
|
-
canvas: context.canvas,
|
|
807
|
-
coordinate,
|
|
808
|
-
layout,
|
|
809
|
-
};
|
|
810
|
-
for (const [label, shapes] of labelGroups) {
|
|
811
|
-
const { transform = [] } = label;
|
|
812
|
-
const transformFunction = (0, helper_1.compose)(transform.map(useLabelTransform));
|
|
813
|
-
transformFunction(shapes, labelTransformContext);
|
|
814
|
-
}
|
|
815
|
-
// Apply view-level transform.
|
|
816
|
-
if (labelTransform) {
|
|
817
|
-
labelTransform(labelShapes, labelTransformContext);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
function getLabels(label, labelIndex, element) {
|
|
821
|
-
const { seriesIndex: SI, seriesKey, points, key, index } = element.__data__;
|
|
822
|
-
const bounds = getLocalBounds(element);
|
|
823
|
-
if (!SI) {
|
|
824
|
-
return [
|
|
825
|
-
Object.assign(Object.assign({}, label), { key: `${key}-${labelIndex}`, bounds,
|
|
826
|
-
index,
|
|
827
|
-
points, dependentElement: element }),
|
|
828
|
-
];
|
|
829
|
-
}
|
|
830
|
-
const selector = normalizeLabelSelector(label);
|
|
831
|
-
const F = SI.map((index, i) => (Object.assign(Object.assign({}, label), { key: `${seriesKey[i]}-${labelIndex}`, bounds: [points[i]], index,
|
|
832
|
-
points, dependentElement: element })));
|
|
833
|
-
return selector ? selector(F) : F;
|
|
834
|
-
}
|
|
835
|
-
function filterValid([I, P, S]) {
|
|
836
|
-
if (S)
|
|
837
|
-
return [I, P, S];
|
|
838
|
-
const definedIndex = [];
|
|
839
|
-
const definedPoints = [];
|
|
840
|
-
for (let i = 0; i < I.length; i++) {
|
|
841
|
-
const d = I[i];
|
|
842
|
-
const p = P[i];
|
|
843
|
-
if (p.every(([x, y]) => (0, helper_1.defined)(x) && (0, helper_1.defined)(y))) {
|
|
844
|
-
definedIndex.push(d);
|
|
845
|
-
definedPoints.push(p);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
return [definedIndex, definedPoints];
|
|
849
|
-
}
|
|
850
|
-
function normalizeLabelSelector(label) {
|
|
851
|
-
const { selector } = label;
|
|
852
|
-
if (!selector)
|
|
853
|
-
return null;
|
|
854
|
-
if (typeof selector === 'function')
|
|
855
|
-
return selector;
|
|
856
|
-
if (selector === 'first')
|
|
857
|
-
return (I) => [I[0]];
|
|
858
|
-
if (selector === 'last')
|
|
859
|
-
return (I) => [I[I.length - 1]];
|
|
860
|
-
throw new Error(`Unknown selector: ${selector}`);
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* Avoid getting error bounds caused by element animations.
|
|
864
|
-
* @todo Remove this temporary handle method, if runtime supports
|
|
865
|
-
* correct process: drawElement, do label layout and then do
|
|
866
|
-
* transitions together.
|
|
867
|
-
*/
|
|
868
|
-
function getLocalBounds(element) {
|
|
869
|
-
const cloneElement = element.cloneNode();
|
|
870
|
-
const animations = element.getAnimations();
|
|
871
|
-
cloneElement.style.visibility = 'hidden';
|
|
872
|
-
animations.forEach((animation) => {
|
|
873
|
-
const keyframes = animation.effect.getKeyframes();
|
|
874
|
-
cloneElement.attr(keyframes[keyframes.length - 1]);
|
|
875
|
-
});
|
|
876
|
-
element.parentNode.appendChild(cloneElement);
|
|
877
|
-
const bounds = cloneElement.getLocalBounds();
|
|
878
|
-
cloneElement.destroy();
|
|
879
|
-
const { min, max } = bounds;
|
|
880
|
-
return [min, max];
|
|
881
|
-
}
|
|
882
|
-
function createLabelShapeFunction(mark, state, view, library, context) {
|
|
883
|
-
const [useShape] = (0, library_1.useLibrary)('shape', library);
|
|
884
|
-
const { data: abstractData, encode } = mark;
|
|
885
|
-
const { data: visualData, defaultLabelShape } = state;
|
|
886
|
-
const point2d = visualData.map((d) => d.points);
|
|
887
|
-
const channel = (0, array_1.mapObject)(encode, (d) => d.value);
|
|
888
|
-
// Assemble Context.
|
|
889
|
-
const { theme, coordinate } = view;
|
|
890
|
-
const shapeContext = Object.assign(Object.assign({}, context), { document: (0, library_1.documentOf)(context), theme,
|
|
891
|
-
coordinate });
|
|
892
|
-
return (options) => {
|
|
893
|
-
// Computed values from data and styles.
|
|
894
|
-
const { index, points } = options;
|
|
895
|
-
const datum = abstractData[index];
|
|
896
|
-
const { formatter = (d) => `${d}`, transform, style: abstractStyle, render, selector, element } = options, abstractOptions = __rest(options, ["formatter", "transform", "style", "render", "selector", "element"]);
|
|
897
|
-
const visualOptions = (0, array_1.mapObject)(Object.assign(Object.assign({}, abstractOptions), abstractStyle), (d) => valueOf(d, datum, index, abstractData, {
|
|
898
|
-
channel,
|
|
899
|
-
element,
|
|
900
|
-
}));
|
|
901
|
-
const { shape = defaultLabelShape, text } = visualOptions, style = __rest(visualOptions, ["shape", "text"]);
|
|
902
|
-
const f = typeof formatter === 'string' ? (0, d3_format_1.format)(formatter) : formatter;
|
|
903
|
-
const value = Object.assign(Object.assign({}, style), { text: f(text, datum, index, abstractData), datum });
|
|
904
|
-
// Params for create shape.
|
|
905
|
-
const shapeOptions = Object.assign({ type: `label.${shape}`, render }, style);
|
|
906
|
-
const shapeFunction = useShape(shapeOptions, shapeContext);
|
|
907
|
-
const defaults = getDefaultsStyle(theme, 'label', shape, 'label');
|
|
908
|
-
return shapeFunction(points, value, defaults, point2d);
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
function valueOf(value, datum, i, data, options) {
|
|
912
|
-
if (typeof value === 'function')
|
|
913
|
-
return value(datum, i, data, options);
|
|
914
|
-
if (typeof value !== 'string')
|
|
915
|
-
return value;
|
|
916
|
-
if ((0, helper_1.isStrictObject)(datum) && datum[value] !== undefined)
|
|
917
|
-
return datum[value];
|
|
918
|
-
return value;
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Compute max duration for this frame.
|
|
922
|
-
*/
|
|
923
|
-
function computeAnimationExtent(markState) {
|
|
924
|
-
let maxDuration = -Infinity;
|
|
925
|
-
let minDelay = Infinity;
|
|
926
|
-
for (const [mark, state] of markState) {
|
|
927
|
-
const { animate = {} } = mark;
|
|
928
|
-
const { data } = state;
|
|
929
|
-
const { enter = {}, update = {}, exit = {} } = animate;
|
|
930
|
-
const { type: defaultUpdateType, duration: defaultUpdateDuration = 300, delay: defaultUpdateDelay = 0, } = update;
|
|
931
|
-
const { type: defaultEnterType, duration: defaultEnterDuration = 300, delay: defaultEnterDelay = 0, } = enter;
|
|
932
|
-
const { type: defaultExitType, duration: defaultExitDuration = 300, delay: defaultExitDelay = 0, } = exit;
|
|
933
|
-
for (const d of data) {
|
|
934
|
-
const { updateType = defaultUpdateType, updateDuration = defaultUpdateDuration, updateDelay = defaultUpdateDelay, enterType = defaultEnterType, enterDuration = defaultEnterDuration, enterDelay = defaultEnterDelay, exitDuration = defaultExitDuration, exitDelay = defaultExitDelay, exitType = defaultExitType, } = d;
|
|
935
|
-
if (updateType === undefined || updateType) {
|
|
936
|
-
maxDuration = Math.max(maxDuration, updateDuration + updateDelay);
|
|
937
|
-
minDelay = Math.min(minDelay, updateDelay);
|
|
938
|
-
}
|
|
939
|
-
if (exitType === undefined || exitType) {
|
|
940
|
-
maxDuration = Math.max(maxDuration, exitDuration + exitDelay);
|
|
941
|
-
minDelay = Math.min(minDelay, exitDelay);
|
|
942
|
-
}
|
|
943
|
-
if (enterType === undefined || enterType) {
|
|
944
|
-
maxDuration = Math.max(maxDuration, enterDuration + enterDelay);
|
|
945
|
-
minDelay = Math.min(minDelay, enterDelay);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
if (maxDuration === -Infinity)
|
|
950
|
-
return null;
|
|
951
|
-
return [minDelay, maxDuration - minDelay];
|
|
952
|
-
}
|
|
953
|
-
function selectFacetElements(selection, current, facetClassName, elementClassName) {
|
|
954
|
-
const group = selection.node().parentElement;
|
|
955
|
-
return group
|
|
956
|
-
.findAll((node) => node.style.facet !== undefined &&
|
|
957
|
-
node.style.facet === facetClassName &&
|
|
958
|
-
node !== current.node())
|
|
959
|
-
.flatMap((node) => node.getElementsByClassName(elementClassName));
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Update the parent of element and apply transform to make it
|
|
963
|
-
* stay in original position.
|
|
964
|
-
*/
|
|
965
|
-
function maybeFacetElement(element, parent, originOf) {
|
|
966
|
-
if (!element.__facet__)
|
|
967
|
-
return;
|
|
968
|
-
// element -> g#main -> rect#plot
|
|
969
|
-
const prePlot = element.parentNode.parentNode;
|
|
970
|
-
// g#main -> rect#plot
|
|
971
|
-
const newPlot = parent.parentNode;
|
|
972
|
-
const [px, py] = originOf(prePlot);
|
|
973
|
-
const [x, y] = originOf(newPlot);
|
|
974
|
-
const translate = `translate(${px - x}, ${py - y})`;
|
|
975
|
-
(0, helper_1.appendTransform)(element, translate);
|
|
976
|
-
parent.append(element);
|
|
977
|
-
}
|
|
978
|
-
function createMarkShapeFunction(mark, state, view, context) {
|
|
979
|
-
const { library } = context;
|
|
980
|
-
const [useShape] = (0, library_1.useLibrary)('shape', library);
|
|
981
|
-
const { data: abstractData, encode } = mark;
|
|
982
|
-
const { defaultShape, data, shape: shapeLibrary } = state;
|
|
983
|
-
const channel = (0, array_1.mapObject)(encode, (d) => d.value);
|
|
984
|
-
const point2d = data.map((d) => d.points);
|
|
985
|
-
const { theme, coordinate } = view;
|
|
986
|
-
const { type: markType, style = {} } = mark;
|
|
987
|
-
const shapeContext = Object.assign(Object.assign({}, context), { document: (0, library_1.documentOf)(context), coordinate,
|
|
988
|
-
theme });
|
|
989
|
-
return (data) => {
|
|
990
|
-
const { shape: styleShape = defaultShape } = style;
|
|
991
|
-
const { shape = styleShape, points, seriesIndex, index: i } = data, v = __rest(data, ["shape", "points", "seriesIndex", "index"]);
|
|
992
|
-
const value = Object.assign(Object.assign({}, v), { index: i });
|
|
993
|
-
// Get data-driven style.
|
|
994
|
-
// If it is a series shape, such as area and line,
|
|
995
|
-
// provides the series of abstract data and indices
|
|
996
|
-
// for this shape, otherwise the single datum and
|
|
997
|
-
// index.
|
|
998
|
-
const abstractDatum = seriesIndex
|
|
999
|
-
? seriesIndex.map((i) => abstractData[i])
|
|
1000
|
-
: abstractData[i];
|
|
1001
|
-
const I = seriesIndex ? seriesIndex : i;
|
|
1002
|
-
const visualStyle = (0, array_1.mapObject)(style, (d) => valueOf(d, abstractDatum, I, abstractData, { channel }));
|
|
1003
|
-
// Try get shape from mark first, then from library.
|
|
1004
|
-
const shapeFunction = shapeLibrary[shape]
|
|
1005
|
-
? shapeLibrary[shape](visualStyle, shapeContext)
|
|
1006
|
-
: useShape(Object.assign(Object.assign({}, visualStyle), { type: shapeName(mark, shape) }), shapeContext);
|
|
1007
|
-
const defaults = getDefaultsStyle(theme, markType, shape, defaultShape);
|
|
1008
|
-
return shapeFunction(points, value, defaults, point2d);
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
function getDefaultsStyle(theme, mark, shape, defaultShape) {
|
|
1012
|
-
if (typeof mark !== 'string')
|
|
1013
|
-
return;
|
|
1014
|
-
const { color } = theme;
|
|
1015
|
-
const markTheme = theme[mark] || {};
|
|
1016
|
-
const shapeTheme = markTheme[shape] || markTheme[defaultShape];
|
|
1017
|
-
return Object.assign({ color }, shapeTheme);
|
|
1018
|
-
}
|
|
1019
|
-
function createAnimationFunction(type, mark, state, view, library) {
|
|
1020
|
-
var _a, _b;
|
|
1021
|
-
const [, createShape] = (0, library_1.useLibrary)('shape', library);
|
|
1022
|
-
const [useAnimation] = (0, library_1.useLibrary)('animation', library);
|
|
1023
|
-
const { defaultShape, shape: shapeLibrary } = state;
|
|
1024
|
-
const { theme, coordinate } = view;
|
|
1025
|
-
const upperType = (0, util_1.upperFirst)(type);
|
|
1026
|
-
const key = `default${upperType}Animation`;
|
|
1027
|
-
// Get shape from mark first, then from library.
|
|
1028
|
-
const { [key]: defaultAnimation } = ((_a = shapeLibrary[defaultShape]) === null || _a === void 0 ? void 0 : _a.props) ||
|
|
1029
|
-
createShape(shapeName(mark, defaultShape)).props;
|
|
1030
|
-
const { [type]: defaultEffectTiming = {} } = theme;
|
|
1031
|
-
const animate = ((_b = mark.animate) === null || _b === void 0 ? void 0 : _b[type]) || {};
|
|
1032
|
-
const context = { coordinate };
|
|
1033
|
-
return (data, from, to) => {
|
|
1034
|
-
const { [`${type}Type`]: animation, [`${type}Delay`]: delay, [`${type}Duration`]: duration, [`${type}Easing`]: easing, } = data;
|
|
1035
|
-
const options = Object.assign({ type: animation || defaultAnimation }, animate);
|
|
1036
|
-
if (!options.type)
|
|
1037
|
-
return null;
|
|
1038
|
-
const animateFunction = useAnimation(options, context);
|
|
1039
|
-
const value = { delay, duration, easing };
|
|
1040
|
-
const A = animateFunction(from, to, (0, util_1.deepMix)(defaultEffectTiming, value));
|
|
1041
|
-
let an = [];
|
|
1042
|
-
if (!Array.isArray(A)) {
|
|
1043
|
-
an = [A];
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
an = A;
|
|
1047
|
-
}
|
|
1048
|
-
return an.filter(Boolean);
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
function createEnterFunction(mark, state, view, library) {
|
|
1052
|
-
return createAnimationFunction('enter', mark, state, view, library);
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Animation will not cancel automatically, it should be canceled
|
|
1056
|
-
* manually. This is very important for performance.
|
|
1057
|
-
*/
|
|
1058
|
-
function cancel(animation) {
|
|
1059
|
-
animation.finished.then(() => {
|
|
1060
|
-
animation.cancel();
|
|
1061
|
-
});
|
|
1062
|
-
return animation;
|
|
1063
|
-
}
|
|
1064
|
-
function createUpdateFunction(mark, state, view, library) {
|
|
1065
|
-
return createAnimationFunction('update', mark, state, view, library);
|
|
1066
|
-
}
|
|
1067
|
-
function createExitFunction(mark, state, view, library) {
|
|
1068
|
-
return createAnimationFunction('exit', mark, state, view, library);
|
|
1069
|
-
}
|
|
1070
|
-
function inferTheme(theme = {}) {
|
|
1071
|
-
if (typeof theme === 'string')
|
|
1072
|
-
return { type: theme };
|
|
1073
|
-
const { type = 'light' } = theme, rest = __rest(theme, ["type"]);
|
|
1074
|
-
return Object.assign(Object.assign({}, rest), { type });
|
|
1075
|
-
}
|
|
1076
|
-
/**
|
|
1077
|
-
* @todo Infer builtin tooltips.
|
|
1078
|
-
*/
|
|
1079
|
-
function inferInteraction(view) {
|
|
1080
|
-
const defaults = {
|
|
1081
|
-
event: true,
|
|
1082
|
-
tooltip: true,
|
|
1083
|
-
// @todo Inferred by slider self.
|
|
1084
|
-
sliderFilter: true,
|
|
1085
|
-
legendFilter: true,
|
|
1086
|
-
scrollbarFilter: true,
|
|
1087
|
-
};
|
|
1088
|
-
const { interaction = {} } = view;
|
|
1089
|
-
return Object.entries((0, util_1.deepMix)(defaults, interaction)).reverse();
|
|
1090
|
-
}
|
|
1091
|
-
function applyTransform(node, context) {
|
|
1092
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1093
|
-
const { data } = node, rest = __rest(node, ["data"]);
|
|
1094
|
-
if (data == undefined)
|
|
1095
|
-
return node;
|
|
1096
|
-
const [, { data: newData }] = yield (0, transform_1.applyDataTransform)([], { data }, context);
|
|
1097
|
-
return Object.assign({ data: newData }, rest);
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
function updateBBox(selection) {
|
|
1101
|
-
selection
|
|
1102
|
-
.style('transform', (d) => `translate(${d.paddingLeft + d.marginLeft}, ${d.paddingTop + d.marginTop})`)
|
|
1103
|
-
.style('width', (d) => d.innerWidth)
|
|
1104
|
-
.style('height', (d) => d.innerHeight);
|
|
1105
|
-
}
|
|
1106
|
-
function animateBBox(selection, extent) {
|
|
1107
|
-
const [delay, duration] = extent;
|
|
1108
|
-
selection.transition(function (data, i, element) {
|
|
1109
|
-
const { transform, width, height } = element.style;
|
|
1110
|
-
const { paddingLeft, paddingTop, innerWidth, innerHeight, marginLeft, marginTop, } = data;
|
|
1111
|
-
const keyframes = [
|
|
1112
|
-
{
|
|
1113
|
-
transform,
|
|
1114
|
-
width,
|
|
1115
|
-
height,
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
transform: `translate(${paddingLeft + marginLeft}, ${paddingTop + marginTop})`,
|
|
1119
|
-
width: innerWidth,
|
|
1120
|
-
height: innerHeight,
|
|
1121
|
-
},
|
|
1122
|
-
];
|
|
1123
|
-
return element.animate(keyframes, { delay, duration, fill: 'both' });
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
function shapeName(mark, name) {
|
|
1127
|
-
const { type } = mark;
|
|
1128
|
-
if (typeof name === 'string')
|
|
1129
|
-
return `${type}.${name}`;
|
|
1130
|
-
return name;
|
|
1131
|
-
}
|
|
1132
|
-
/**
|
|
1133
|
-
* Create and update layer for each mark.
|
|
1134
|
-
* All the layers created here are treated as main layers.
|
|
1135
|
-
*/
|
|
1136
|
-
function updateLayers(selection, marks) {
|
|
1137
|
-
const facet = (d) => (d.class !== undefined ? `${d.class}` : '');
|
|
1138
|
-
// Skip for empty selection, it can't append nodes.
|
|
1139
|
-
const nodes = selection.nodes();
|
|
1140
|
-
if (nodes.length === 0)
|
|
1141
|
-
return;
|
|
1142
|
-
selection
|
|
1143
|
-
.selectAll(className(constant_1.MAIN_LAYER_CLASS_NAME))
|
|
1144
|
-
.data(marks, (d) => d.key)
|
|
1145
|
-
.join((enter) => enter
|
|
1146
|
-
.append('g')
|
|
1147
|
-
.attr('className', constant_1.MAIN_LAYER_CLASS_NAME)
|
|
1148
|
-
.attr('id', (d) => d.key)
|
|
1149
|
-
.style('facet', facet)
|
|
1150
|
-
.style('fill', 'transparent')
|
|
1151
|
-
.style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (update) => update
|
|
1152
|
-
.style('facet', facet)
|
|
1153
|
-
.style('fill', 'transparent')
|
|
1154
|
-
.style('zIndex', (d) => { var _a; return (_a = d.zIndex) !== null && _a !== void 0 ? _a : 0; }), (exit) => exit.remove());
|
|
1155
|
-
const labelLayer = selection.select(className(constant_1.LABEL_LAYER_CLASS_NAME)).node();
|
|
1156
|
-
if (labelLayer)
|
|
1157
|
-
return;
|
|
1158
|
-
selection
|
|
1159
|
-
.append('g')
|
|
1160
|
-
.attr('className', constant_1.LABEL_LAYER_CLASS_NAME)
|
|
1161
|
-
.style('zIndex', 0);
|
|
1162
|
-
}
|
|
1163
|
-
function className(...names) {
|
|
1164
|
-
return names.map((d) => `.${d}`).join('');
|
|
1165
|
-
}
|
|
1166
|
-
function applyClip(selection, clip) {
|
|
1167
|
-
if (!selection.node())
|
|
1168
|
-
return;
|
|
1169
|
-
selection.style('clipPath', (data) => {
|
|
1170
|
-
if (!clip)
|
|
1171
|
-
return null;
|
|
1172
|
-
const { paddingTop: y, paddingLeft: x, marginLeft: x1, marginTop: y1, innerWidth: width, innerHeight: height, } = data;
|
|
1173
|
-
return new g_1.Rect({ style: { x: x + x1, y: y + y1, width, height } });
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
function inferComponentScales(scales, states, markState) {
|
|
1177
|
-
// add shape scale to state.
|
|
1178
|
-
var _a;
|
|
1179
|
-
// for cell, omit shape scale.
|
|
1180
|
-
// @todo support shape scale for cell.
|
|
1181
|
-
for (const [key] of markState.entries()) {
|
|
1182
|
-
if (key.type === 'cell') {
|
|
1183
|
-
return scales.filter((scale) => scale.name !== 'shape');
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
// can't infer shape scale if there are multiple states.
|
|
1187
|
-
if (states.length !== 1 || scales.some((scale) => scale.name === 'shape')) {
|
|
1188
|
-
return scales;
|
|
1189
|
-
}
|
|
1190
|
-
const { defaultShape: shape } = states[0];
|
|
1191
|
-
const acceptMarkTypes = ['point', 'line', 'rect', 'hollow'];
|
|
1192
|
-
if (!acceptMarkTypes.includes(shape))
|
|
1193
|
-
return scales;
|
|
1194
|
-
const shapeMap = {
|
|
1195
|
-
point: 'point',
|
|
1196
|
-
line: 'hyphen',
|
|
1197
|
-
rect: 'square',
|
|
1198
|
-
hollow: 'hollow',
|
|
1199
|
-
};
|
|
1200
|
-
// create shape scale
|
|
1201
|
-
const field = ((_a = scales.find((scale) => scale.name === 'color')) === null || _a === void 0 ? void 0 : _a.field) || null;
|
|
1202
|
-
const shapeScale = {
|
|
1203
|
-
field,
|
|
1204
|
-
name: 'shape',
|
|
1205
|
-
type: 'constant',
|
|
1206
|
-
domain: [],
|
|
1207
|
-
range: [shapeMap[shape]],
|
|
1208
|
-
};
|
|
1209
|
-
return [...scales, shapeScale];
|
|
1210
|
-
}
|
|
1211
|
-
function applyStyle(selection, style) {
|
|
1212
|
-
for (const [key, value] of Object.entries(style)) {
|
|
1213
|
-
selection.style(key, value);
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
exports.applyStyle = applyStyle;
|
|
1217
|
-
//# sourceMappingURL=plot.js.map
|