@antv/g2plot 2.4.30 → 3.0.0-alpha.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/LICENSE +4 -4
- package/README.en-US.md +0 -170
- package/README.md +8 -178
- package/dist/g2plot.min.js +10 -17
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.js +2 -0
- package/esm/components/index.js.map +1 -0
- package/esm/components/mark.d.ts +5 -0
- package/esm/components/mark.js +7 -0
- package/esm/components/mark.js.map +1 -0
- package/esm/core/plot.d.ts +23 -43
- package/esm/core/plot.js +77 -192
- package/esm/core/plot.js.map +1 -1
- package/esm/index.d.ts +4 -103
- package/esm/index.js +3 -102
- package/esm/index.js.map +1 -1
- package/esm/plots/column/adaptor.d.ts +7 -15
- package/esm/plots/column/adaptor.js +14 -218
- package/esm/plots/column/adaptor.js.map +1 -1
- package/esm/plots/column/index.d.ts +9 -16
- package/esm/plots/column/index.js +16 -36
- package/esm/plots/column/index.js.map +1 -1
- package/esm/plots/column/type.d.ts +2 -0
- package/esm/plots/column/type.js +2 -0
- package/esm/plots/column/type.js.map +1 -0
- package/esm/plots/line/adaptor.d.ts +5 -24
- package/esm/plots/line/adaptor.js +9 -157
- package/esm/plots/line/adaptor.js.map +1 -1
- package/esm/plots/line/index.d.ts +7 -13
- package/esm/plots/line/index.js +14 -31
- package/esm/plots/line/index.js.map +1 -1
- package/esm/plots/line/type.d.ts +2 -0
- package/esm/plots/line/type.js +2 -0
- package/esm/plots/line/type.js.map +1 -0
- package/esm/types/common.d.ts +6 -235
- package/esm/types/common.js.map +1 -1
- package/esm/types/index.d.ts +1 -14
- package/esm/types/index.js +0 -10
- package/esm/types/index.js.map +1 -1
- package/esm/utils/index.d.ts +2 -16
- package/esm/utils/index.js +2 -16
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/is-composite-plot.d.ts +5 -0
- package/esm/utils/is-composite-plot.js +5 -0
- package/esm/utils/is-composite-plot.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +6 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/mark.d.ts +5 -0
- package/lib/components/mark.js +11 -0
- package/lib/components/mark.js.map +1 -0
- package/lib/core/plot.d.ts +23 -43
- package/lib/core/plot.js +84 -195
- package/lib/core/plot.js.map +1 -1
- package/lib/index.d.ts +4 -103
- package/lib/index.js +31 -154
- package/lib/index.js.map +1 -1
- package/lib/plots/column/adaptor.d.ts +7 -15
- package/lib/plots/column/adaptor.js +15 -221
- package/lib/plots/column/adaptor.js.map +1 -1
- package/lib/plots/column/index.d.ts +9 -16
- package/lib/plots/column/index.js +17 -36
- package/lib/plots/column/index.js.map +1 -1
- package/lib/plots/column/type.d.ts +2 -0
- package/lib/{types/attr.js → plots/column/type.js} +1 -1
- package/lib/plots/column/type.js.map +1 -0
- package/lib/plots/line/adaptor.d.ts +5 -24
- package/lib/plots/line/adaptor.js +10 -162
- package/lib/plots/line/adaptor.js.map +1 -1
- package/lib/plots/line/index.d.ts +7 -13
- package/lib/plots/line/index.js +15 -31
- package/lib/plots/line/index.js.map +1 -1
- package/lib/plots/line/type.d.ts +2 -0
- package/lib/{types/axis.js → plots/line/type.js} +1 -1
- package/lib/plots/line/type.js.map +1 -0
- package/lib/types/common.d.ts +6 -235
- package/lib/types/common.js.map +1 -1
- package/lib/types/index.d.ts +1 -14
- package/lib/types/index.js +15 -12
- package/lib/types/index.js.map +1 -1
- package/lib/utils/index.d.ts +2 -16
- package/lib/utils/index.js +10 -38
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-composite-plot.d.ts +5 -0
- package/lib/utils/is-composite-plot.js +9 -0
- package/lib/utils/is-composite-plot.js.map +1 -0
- package/package.json +83 -103
- package/src/components/index.ts +1 -0
- package/src/components/mark.ts +8 -0
- package/src/core/plot.ts +58 -193
- package/src/index.ts +5 -147
- package/src/module.d.ts +1 -0
- package/src/plots/column/adaptor.ts +15 -309
- package/src/plots/column/index.ts +11 -27
- package/src/plots/column/type.ts +3 -0
- package/src/plots/line/adaptor.ts +14 -219
- package/src/plots/line/index.ts +9 -22
- package/src/plots/line/type.ts +3 -0
- package/src/types/common.ts +6 -249
- package/src/types/index.ts +2 -13
- package/src/utils/index.ts +2 -16
- package/src/utils/is-composite-plot.ts +6 -0
- package/dist/g2plot.min.js.map +0 -1
- package/esm/adaptor/brush.d.ts +0 -12
- package/esm/adaptor/brush.js +0 -48
- package/esm/adaptor/brush.js.map +0 -1
- package/esm/adaptor/common.d.ts +0 -72
- package/esm/adaptor/common.js +0 -187
- package/esm/adaptor/common.js.map +0 -1
- package/esm/adaptor/connected-area.d.ts +0 -17
- package/esm/adaptor/connected-area.js +0 -76
- package/esm/adaptor/connected-area.js.map +0 -1
- package/esm/adaptor/conversion-tag.d.ts +0 -38
- package/esm/adaptor/conversion-tag.js +0 -178
- package/esm/adaptor/conversion-tag.js.map +0 -1
- package/esm/adaptor/geometries/area.d.ts +0 -19
- package/esm/adaptor/geometries/area.js +0 -29
- package/esm/adaptor/geometries/area.js.map +0 -1
- package/esm/adaptor/geometries/base.d.ts +0 -77
- package/esm/adaptor/geometries/base.js +0 -195
- package/esm/adaptor/geometries/base.js.map +0 -1
- package/esm/adaptor/geometries/edge.d.ts +0 -17
- package/esm/adaptor/geometries/edge.js +0 -25
- package/esm/adaptor/geometries/edge.js.map +0 -1
- package/esm/adaptor/geometries/index.d.ts +0 -17
- package/esm/adaptor/geometries/index.js +0 -9
- package/esm/adaptor/geometries/index.js.map +0 -1
- package/esm/adaptor/geometries/interval.d.ts +0 -36
- package/esm/adaptor/geometries/interval.js +0 -73
- package/esm/adaptor/geometries/interval.js.map +0 -1
- package/esm/adaptor/geometries/line.d.ts +0 -23
- package/esm/adaptor/geometries/line.js +0 -29
- package/esm/adaptor/geometries/line.js.map +0 -1
- package/esm/adaptor/geometries/point.d.ts +0 -21
- package/esm/adaptor/geometries/point.js +0 -26
- package/esm/adaptor/geometries/point.js.map +0 -1
- package/esm/adaptor/geometries/polygon.d.ts +0 -17
- package/esm/adaptor/geometries/polygon.js +0 -25
- package/esm/adaptor/geometries/polygon.js.map +0 -1
- package/esm/adaptor/geometries/schema.d.ts +0 -17
- package/esm/adaptor/geometries/schema.js +0 -25
- package/esm/adaptor/geometries/schema.js.map +0 -1
- package/esm/adaptor/geometries/violin.d.ts +0 -19
- package/esm/adaptor/geometries/violin.js +0 -24
- package/esm/adaptor/geometries/violin.js.map +0 -1
- package/esm/adaptor/pattern.d.ts +0 -15
- package/esm/adaptor/pattern.js +0 -54
- package/esm/adaptor/pattern.js.map +0 -1
- package/esm/constant.d.ts +0 -4
- package/esm/constant.js +0 -26
- package/esm/constant.js.map +0 -1
- package/esm/core/adaptor.d.ts +0 -15
- package/esm/core/adaptor.js +0 -2
- package/esm/core/adaptor.js.map +0 -1
- package/esm/core/global.d.ts +0 -13
- package/esm/core/global.js +0 -17
- package/esm/core/global.js.map +0 -1
- package/esm/core/locale.d.ts +0 -15
- package/esm/core/locale.js +0 -25
- package/esm/core/locale.js.map +0 -1
- package/esm/interactions/actions/drill-down.d.ts +0 -99
- package/esm/interactions/actions/drill-down.js +0 -252
- package/esm/interactions/actions/drill-down.js.map +0 -1
- package/esm/interactions/actions/reset-button.d.ts +0 -42
- package/esm/interactions/actions/reset-button.js +0 -144
- package/esm/interactions/actions/reset-button.js.map +0 -1
- package/esm/interactions/brush.d.ts +0 -91
- package/esm/interactions/brush.js +0 -305
- package/esm/interactions/brush.js.map +0 -1
- package/esm/interactions/drag-move.d.ts +0 -1
- package/esm/interactions/drag-move.js +0 -13
- package/esm/interactions/drag-move.js.map +0 -1
- package/esm/interactions/drill-down.d.ts +0 -4
- package/esm/interactions/drill-down.js +0 -52
- package/esm/interactions/drill-down.js.map +0 -1
- package/esm/lab.d.ts +0 -18
- package/esm/lab.js +0 -39
- package/esm/lab.js.map +0 -1
- package/esm/locales/en_US.d.ts +0 -2
- package/esm/locales/en_US.js +0 -27
- package/esm/locales/en_US.js.map +0 -1
- package/esm/locales/zh_CN.d.ts +0 -2
- package/esm/locales/zh_CN.js +0 -27
- package/esm/locales/zh_CN.js.map +0 -1
- package/esm/plots/_template/adaptor.d.ts +0 -13
- package/esm/plots/_template/adaptor.js +0 -38
- package/esm/plots/_template/adaptor.js.map +0 -1
- package/esm/plots/_template/constant.d.ts +0 -0
- package/esm/plots/_template/constant.js +0 -1
- package/esm/plots/_template/constant.js.map +0 -1
- package/esm/plots/_template/index.d.ts +0 -15
- package/esm/plots/_template/index.js +0 -24
- package/esm/plots/_template/index.js.map +0 -1
- package/esm/plots/_template/types.d.ts +0 -8
- package/esm/plots/_template/types.js +0 -2
- package/esm/plots/_template/types.js.map +0 -1
- package/esm/plots/area/adaptor.d.ts +0 -10
- package/esm/plots/area/adaptor.js +0 -115
- package/esm/plots/area/adaptor.js.map +0 -1
- package/esm/plots/area/constants.d.ts +0 -4
- package/esm/plots/area/constants.js +0 -23
- package/esm/plots/area/constants.js.map +0 -1
- package/esm/plots/area/index.d.ts +0 -26
- package/esm/plots/area/index.js +0 -47
- package/esm/plots/area/index.js.map +0 -1
- package/esm/plots/area/types.d.ts +0 -60
- package/esm/plots/area/types.js +0 -2
- package/esm/plots/area/types.js.map +0 -1
- package/esm/plots/bar/adaptor.d.ts +0 -13
- package/esm/plots/bar/adaptor.js +0 -101
- package/esm/plots/bar/adaptor.js.map +0 -1
- package/esm/plots/bar/constants.d.ts +0 -4
- package/esm/plots/bar/constants.js +0 -19
- package/esm/plots/bar/constants.js.map +0 -1
- package/esm/plots/bar/index.d.ts +0 -28
- package/esm/plots/bar/index.js +0 -54
- package/esm/plots/bar/index.js.map +0 -1
- package/esm/plots/bar/types.d.ts +0 -24
- package/esm/plots/bar/types.js +0 -2
- package/esm/plots/bar/types.js.map +0 -1
- package/esm/plots/bidirectional-bar/adaptor.d.ts +0 -28
- package/esm/plots/bidirectional-bar/adaptor.js +0 -311
- package/esm/plots/bidirectional-bar/adaptor.js.map +0 -1
- package/esm/plots/bidirectional-bar/constant.d.ts +0 -4
- package/esm/plots/bidirectional-bar/constant.js +0 -5
- package/esm/plots/bidirectional-bar/constant.js.map +0 -1
- package/esm/plots/bidirectional-bar/index.d.ts +0 -24
- package/esm/plots/bidirectional-bar/index.js +0 -60
- package/esm/plots/bidirectional-bar/index.js.map +0 -1
- package/esm/plots/bidirectional-bar/types.d.ts +0 -33
- package/esm/plots/bidirectional-bar/types.js +0 -2
- package/esm/plots/bidirectional-bar/types.js.map +0 -1
- package/esm/plots/bidirectional-bar/utils.d.ts +0 -22
- package/esm/plots/bidirectional-bar/utils.js +0 -78
- package/esm/plots/bidirectional-bar/utils.js.map +0 -1
- package/esm/plots/box/adaptor.d.ts +0 -12
- package/esm/plots/box/adaptor.js +0 -150
- package/esm/plots/box/adaptor.js.map +0 -1
- package/esm/plots/box/constant.d.ts +0 -8
- package/esm/plots/box/constant.js +0 -26
- package/esm/plots/box/constant.js.map +0 -1
- package/esm/plots/box/index.d.ts +0 -26
- package/esm/plots/box/index.js +0 -49
- package/esm/plots/box/index.js.map +0 -1
- package/esm/plots/box/types.d.ts +0 -29
- package/esm/plots/box/types.js +0 -2
- package/esm/plots/box/types.js.map +0 -1
- package/esm/plots/box/utils.d.ts +0 -7
- package/esm/plots/box/utils.js +0 -20
- package/esm/plots/box/utils.js.map +0 -1
- package/esm/plots/bullet/adaptor.d.ts +0 -13
- package/esm/plots/bullet/adaptor.js +0 -174
- package/esm/plots/bullet/adaptor.js.map +0 -1
- package/esm/plots/bullet/constant.d.ts +0 -4
- package/esm/plots/bullet/constant.js +0 -32
- package/esm/plots/bullet/constant.js.map +0 -1
- package/esm/plots/bullet/index.d.ts +0 -22
- package/esm/plots/bullet/index.js +0 -43
- package/esm/plots/bullet/index.js.map +0 -1
- package/esm/plots/bullet/types.d.ts +0 -56
- package/esm/plots/bullet/types.js +0 -2
- package/esm/plots/bullet/types.js.map +0 -1
- package/esm/plots/bullet/utils.d.ts +0 -12
- package/esm/plots/bullet/utils.js +0 -69
- package/esm/plots/bullet/utils.js.map +0 -1
- package/esm/plots/chord/adaptor.d.ts +0 -8
- package/esm/plots/chord/adaptor.js +0 -148
- package/esm/plots/chord/adaptor.js.map +0 -1
- package/esm/plots/chord/constant.d.ts +0 -43
- package/esm/plots/chord/constant.js +0 -56
- package/esm/plots/chord/constant.js.map +0 -1
- package/esm/plots/chord/index.d.ts +0 -21
- package/esm/plots/chord/index.js +0 -35
- package/esm/plots/chord/index.js.map +0 -1
- package/esm/plots/chord/types.d.ts +0 -48
- package/esm/plots/chord/types.js +0 -2
- package/esm/plots/chord/types.js.map +0 -1
- package/esm/plots/circle-packing/adaptor.d.ts +0 -13
- package/esm/plots/circle-packing/adaptor.js +0 -171
- package/esm/plots/circle-packing/adaptor.js.map +0 -1
- package/esm/plots/circle-packing/constant.d.ts +0 -4
- package/esm/plots/circle-packing/constant.js +0 -30
- package/esm/plots/circle-packing/constant.js.map +0 -1
- package/esm/plots/circle-packing/index.d.ts +0 -27
- package/esm/plots/circle-packing/index.js +0 -50
- package/esm/plots/circle-packing/index.js.map +0 -1
- package/esm/plots/circle-packing/interactions/index.d.ts +0 -2
- package/esm/plots/circle-packing/interactions/index.js +0 -3
- package/esm/plots/circle-packing/interactions/index.js.map +0 -1
- package/esm/plots/circle-packing/types.d.ts +0 -38
- package/esm/plots/circle-packing/types.js +0 -2
- package/esm/plots/circle-packing/types.js.map +0 -1
- package/esm/plots/circle-packing/utils.d.ts +0 -25
- package/esm/plots/circle-packing/utils.js +0 -56
- package/esm/plots/circle-packing/utils.js.map +0 -1
- package/esm/plots/column/constants.d.ts +0 -4
- package/esm/plots/column/constants.js +0 -19
- package/esm/plots/column/constants.js.map +0 -1
- package/esm/plots/column/types.d.ts +0 -90
- package/esm/plots/column/types.js +0 -2
- package/esm/plots/column/types.js.map +0 -1
- package/esm/plots/dual-axes/adaptor.d.ts +0 -63
- package/esm/plots/dual-axes/adaptor.js +0 -424
- package/esm/plots/dual-axes/adaptor.js.map +0 -1
- package/esm/plots/dual-axes/constant.d.ts +0 -26
- package/esm/plots/dual-axes/constant.js +0 -13
- package/esm/plots/dual-axes/constant.js.map +0 -1
- package/esm/plots/dual-axes/index.d.ts +0 -16
- package/esm/plots/dual-axes/index.js +0 -31
- package/esm/plots/dual-axes/index.js.map +0 -1
- package/esm/plots/dual-axes/types.d.ts +0 -79
- package/esm/plots/dual-axes/types.js +0 -11
- package/esm/plots/dual-axes/types.js.map +0 -1
- package/esm/plots/dual-axes/util/geometry.d.ts +0 -11
- package/esm/plots/dual-axes/util/geometry.js +0 -55
- package/esm/plots/dual-axes/util/geometry.js.map +0 -1
- package/esm/plots/dual-axes/util/legend.d.ts +0 -13
- package/esm/plots/dual-axes/util/legend.js +0 -66
- package/esm/plots/dual-axes/util/legend.js.map +0 -1
- package/esm/plots/dual-axes/util/option.d.ts +0 -29
- package/esm/plots/dual-axes/util/option.js +0 -70
- package/esm/plots/dual-axes/util/option.js.map +0 -1
- package/esm/plots/dual-axes/util/render-sider.d.ts +0 -9
- package/esm/plots/dual-axes/util/render-sider.js +0 -31
- package/esm/plots/dual-axes/util/render-sider.js.map +0 -1
- package/esm/plots/facet/adaptor.d.ts +0 -8
- package/esm/plots/facet/adaptor.js +0 -107
- package/esm/plots/facet/adaptor.js.map +0 -1
- package/esm/plots/facet/constant.d.ts +0 -23
- package/esm/plots/facet/constant.js +0 -24
- package/esm/plots/facet/constant.js.map +0 -1
- package/esm/plots/facet/index.d.ts +0 -21
- package/esm/plots/facet/index.js +0 -35
- package/esm/plots/facet/index.js.map +0 -1
- package/esm/plots/facet/types.d.ts +0 -148
- package/esm/plots/facet/types.js +0 -2
- package/esm/plots/facet/types.js.map +0 -1
- package/esm/plots/facet/utils.d.ts +0 -8
- package/esm/plots/facet/utils.js +0 -75
- package/esm/plots/facet/utils.js.map +0 -1
- package/esm/plots/funnel/adaptor.d.ts +0 -18
- package/esm/plots/funnel/adaptor.js +0 -157
- package/esm/plots/funnel/adaptor.js.map +0 -1
- package/esm/plots/funnel/constant.d.ts +0 -40
- package/esm/plots/funnel/constant.js +0 -48
- package/esm/plots/funnel/constant.js.map +0 -1
- package/esm/plots/funnel/geometries/basic.d.ts +0 -13
- package/esm/plots/funnel/geometries/basic.js +0 -93
- package/esm/plots/funnel/geometries/basic.js.map +0 -1
- package/esm/plots/funnel/geometries/common.d.ts +0 -15
- package/esm/plots/funnel/geometries/common.js +0 -59
- package/esm/plots/funnel/geometries/common.js.map +0 -1
- package/esm/plots/funnel/geometries/compare.d.ts +0 -9
- package/esm/plots/funnel/geometries/compare.js +0 -140
- package/esm/plots/funnel/geometries/compare.js.map +0 -1
- package/esm/plots/funnel/geometries/dynamic-height.d.ts +0 -8
- package/esm/plots/funnel/geometries/dynamic-height.js +0 -124
- package/esm/plots/funnel/geometries/dynamic-height.js.map +0 -1
- package/esm/plots/funnel/geometries/facet.d.ts +0 -8
- package/esm/plots/funnel/geometries/facet.js +0 -50
- package/esm/plots/funnel/geometries/facet.js.map +0 -1
- package/esm/plots/funnel/index.d.ts +0 -38
- package/esm/plots/funnel/index.js +0 -73
- package/esm/plots/funnel/index.js.map +0 -1
- package/esm/plots/funnel/interactions/funnel-conversion-tag.d.ts +0 -9
- package/esm/plots/funnel/interactions/funnel-conversion-tag.js +0 -57
- package/esm/plots/funnel/interactions/funnel-conversion-tag.js.map +0 -1
- package/esm/plots/funnel/interactions/index.d.ts +0 -5
- package/esm/plots/funnel/interactions/index.js +0 -10
- package/esm/plots/funnel/interactions/index.js.map +0 -1
- package/esm/plots/funnel/types.d.ts +0 -70
- package/esm/plots/funnel/types.js +0 -2
- package/esm/plots/funnel/types.js.map +0 -1
- package/esm/plots/gauge/adaptor.d.ts +0 -17
- package/esm/plots/gauge/adaptor.js +0 -182
- package/esm/plots/gauge/adaptor.js.map +0 -1
- package/esm/plots/gauge/constants.d.ts +0 -67
- package/esm/plots/gauge/constants.js +0 -70
- package/esm/plots/gauge/constants.js.map +0 -1
- package/esm/plots/gauge/index.d.ts +0 -32
- package/esm/plots/gauge/index.js +0 -63
- package/esm/plots/gauge/index.js.map +0 -1
- package/esm/plots/gauge/shapes/indicator.d.ts +0 -1
- package/esm/plots/gauge/shapes/indicator.js +0 -30
- package/esm/plots/gauge/shapes/indicator.js.map +0 -1
- package/esm/plots/gauge/shapes/meter-gauge.d.ts +0 -1
- package/esm/plots/gauge/shapes/meter-gauge.js +0 -52
- package/esm/plots/gauge/shapes/meter-gauge.js.map +0 -1
- package/esm/plots/gauge/types.d.ts +0 -130
- package/esm/plots/gauge/types.js +0 -2
- package/esm/plots/gauge/types.js.map +0 -1
- package/esm/plots/gauge/utils.d.ts +0 -20
- package/esm/plots/gauge/utils.js +0 -38
- package/esm/plots/gauge/utils.js.map +0 -1
- package/esm/plots/heatmap/adaptor.d.ts +0 -8
- package/esm/plots/heatmap/adaptor.js +0 -163
- package/esm/plots/heatmap/adaptor.js.map +0 -1
- package/esm/plots/heatmap/constant.d.ts +0 -4
- package/esm/plots/heatmap/constant.js +0 -39
- package/esm/plots/heatmap/constant.js.map +0 -1
- package/esm/plots/heatmap/index.d.ts +0 -23
- package/esm/plots/heatmap/index.js +0 -38
- package/esm/plots/heatmap/index.js.map +0 -1
- package/esm/plots/heatmap/shapes/circle.d.ts +0 -1
- package/esm/plots/heatmap/shapes/circle.js +0 -23
- package/esm/plots/heatmap/shapes/circle.js.map +0 -1
- package/esm/plots/heatmap/shapes/square.d.ts +0 -1
- package/esm/plots/heatmap/shapes/square.js +0 -23
- package/esm/plots/heatmap/shapes/square.js.map +0 -1
- package/esm/plots/heatmap/types.d.ts +0 -63
- package/esm/plots/heatmap/types.js +0 -2
- package/esm/plots/heatmap/types.js.map +0 -1
- package/esm/plots/histogram/adaptor.d.ts +0 -8
- package/esm/plots/histogram/adaptor.js +0 -105
- package/esm/plots/histogram/adaptor.js.map +0 -1
- package/esm/plots/histogram/constant.d.ts +0 -8
- package/esm/plots/histogram/constant.js +0 -20
- package/esm/plots/histogram/constant.js.map +0 -1
- package/esm/plots/histogram/index.d.ts +0 -22
- package/esm/plots/histogram/index.js +0 -41
- package/esm/plots/histogram/index.js.map +0 -1
- package/esm/plots/histogram/types.d.ts +0 -27
- package/esm/plots/histogram/types.js +0 -2
- package/esm/plots/histogram/types.js.map +0 -1
- package/esm/plots/line/constants.d.ts +0 -4
- package/esm/plots/line/constants.js +0 -21
- package/esm/plots/line/constants.js.map +0 -1
- package/esm/plots/line/interactions/index.d.ts +0 -1
- package/esm/plots/line/interactions/index.js +0 -18
- package/esm/plots/line/interactions/index.js.map +0 -1
- package/esm/plots/line/interactions/marker-active.d.ts +0 -6
- package/esm/plots/line/interactions/marker-active.js +0 -39
- package/esm/plots/line/interactions/marker-active.js.map +0 -1
- package/esm/plots/line/types.d.ts +0 -58
- package/esm/plots/line/types.js +0 -2
- package/esm/plots/line/types.js.map +0 -1
- package/esm/plots/liquid/adaptor.d.ts +0 -13
- package/esm/plots/liquid/adaptor.js +0 -88
- package/esm/plots/liquid/adaptor.js.map +0 -1
- package/esm/plots/liquid/constants.d.ts +0 -26
- package/esm/plots/liquid/constants.js +0 -27
- package/esm/plots/liquid/constants.js.map +0 -1
- package/esm/plots/liquid/index.d.ts +0 -31
- package/esm/plots/liquid/index.js +0 -54
- package/esm/plots/liquid/index.js.map +0 -1
- package/esm/plots/liquid/shapes/liquid.d.ts +0 -16
- package/esm/plots/liquid/shapes/liquid.js +0 -368
- package/esm/plots/liquid/shapes/liquid.js.map +0 -1
- package/esm/plots/liquid/types.d.ts +0 -93
- package/esm/plots/liquid/types.js +0 -2
- package/esm/plots/liquid/types.js.map +0 -1
- package/esm/plots/liquid/utils.d.ts +0 -7
- package/esm/plots/liquid/utils.js +0 -8
- package/esm/plots/liquid/utils.js.map +0 -1
- package/esm/plots/mix/adaptor.d.ts +0 -13
- package/esm/plots/mix/adaptor.js +0 -142
- package/esm/plots/mix/adaptor.js.map +0 -1
- package/esm/plots/mix/index.d.ts +0 -24
- package/esm/plots/mix/index.js +0 -33
- package/esm/plots/mix/index.js.map +0 -1
- package/esm/plots/mix/interactions/association.d.ts +0 -1
- package/esm/plots/mix/interactions/association.js +0 -169
- package/esm/plots/mix/interactions/association.js.map +0 -1
- package/esm/plots/mix/interactions/index.d.ts +0 -4
- package/esm/plots/mix/interactions/index.js +0 -5
- package/esm/plots/mix/interactions/index.js.map +0 -1
- package/esm/plots/mix/interactions/utils.d.ts +0 -14
- package/esm/plots/mix/interactions/utils.js +0 -40
- package/esm/plots/mix/interactions/utils.js.map +0 -1
- package/esm/plots/mix/types.d.ts +0 -125
- package/esm/plots/mix/types.js +0 -2
- package/esm/plots/mix/types.js.map +0 -1
- package/esm/plots/mix/utils.d.ts +0 -82
- package/esm/plots/mix/utils.js +0 -98
- package/esm/plots/mix/utils.js.map +0 -1
- package/esm/plots/pie/adaptor.d.ts +0 -24
- package/esm/plots/pie/adaptor.js +0 -288
- package/esm/plots/pie/adaptor.js.map +0 -1
- package/esm/plots/pie/contants.d.ts +0 -4
- package/esm/plots/pie/contants.js +0 -50
- package/esm/plots/pie/contants.js.map +0 -1
- package/esm/plots/pie/index.d.ts +0 -27
- package/esm/plots/pie/index.js +0 -62
- package/esm/plots/pie/index.js.map +0 -1
- package/esm/plots/pie/interactions/actions/legend-active.d.ts +0 -20
- package/esm/plots/pie/interactions/actions/legend-active.js +0 -68
- package/esm/plots/pie/interactions/actions/legend-active.js.map +0 -1
- package/esm/plots/pie/interactions/actions/statistic-active.d.ts +0 -13
- package/esm/plots/pie/interactions/actions/statistic-active.js +0 -79
- package/esm/plots/pie/interactions/actions/statistic-active.js.map +0 -1
- package/esm/plots/pie/interactions/index.d.ts +0 -1
- package/esm/plots/pie/interactions/index.js +0 -15
- package/esm/plots/pie/interactions/index.js.map +0 -1
- package/esm/plots/pie/interactions/util.d.ts +0 -7
- package/esm/plots/pie/interactions/util.js +0 -15
- package/esm/plots/pie/interactions/util.js.map +0 -1
- package/esm/plots/pie/types.d.ts +0 -51
- package/esm/plots/pie/types.js +0 -2
- package/esm/plots/pie/types.js.map +0 -1
- package/esm/plots/pie/utils.d.ts +0 -18
- package/esm/plots/pie/utils.js +0 -47
- package/esm/plots/pie/utils.js.map +0 -1
- package/esm/plots/progress/adaptor.d.ts +0 -13
- package/esm/plots/progress/adaptor.js +0 -56
- package/esm/plots/progress/adaptor.js.map +0 -1
- package/esm/plots/progress/constants.d.ts +0 -9
- package/esm/plots/progress/constants.js +0 -10
- package/esm/plots/progress/constants.js.map +0 -1
- package/esm/plots/progress/index.d.ts +0 -23
- package/esm/plots/progress/index.js +0 -41
- package/esm/plots/progress/index.js.map +0 -1
- package/esm/plots/progress/types.d.ts +0 -21
- package/esm/plots/progress/types.js +0 -2
- package/esm/plots/progress/types.js.map +0 -1
- package/esm/plots/progress/utils.d.ts +0 -8
- package/esm/plots/progress/utils.js +0 -22
- package/esm/plots/progress/utils.js.map +0 -1
- package/esm/plots/radar/adaptor.d.ts +0 -8
- package/esm/plots/radar/adaptor.js +0 -110
- package/esm/plots/radar/adaptor.js.map +0 -1
- package/esm/plots/radar/index.d.ts +0 -22
- package/esm/plots/radar/index.js +0 -73
- package/esm/plots/radar/index.js.map +0 -1
- package/esm/plots/radar/interactions/index.d.ts +0 -1
- package/esm/plots/radar/interactions/index.js +0 -8
- package/esm/plots/radar/interactions/index.js.map +0 -1
- package/esm/plots/radar/interactions/radar-tooltip-action.d.ts +0 -15
- package/esm/plots/radar/interactions/radar-tooltip-action.js +0 -74
- package/esm/plots/radar/interactions/radar-tooltip-action.js.map +0 -1
- package/esm/plots/radar/types.d.ts +0 -55
- package/esm/plots/radar/types.js +0 -2
- package/esm/plots/radar/types.js.map +0 -1
- package/esm/plots/radial-bar/adaptor.d.ts +0 -18
- package/esm/plots/radial-bar/adaptor.js +0 -118
- package/esm/plots/radial-bar/adaptor.js.map +0 -1
- package/esm/plots/radial-bar/constant.d.ts +0 -4
- package/esm/plots/radial-bar/constant.js +0 -19
- package/esm/plots/radial-bar/constant.js.map +0 -1
- package/esm/plots/radial-bar/index.d.ts +0 -25
- package/esm/plots/radial-bar/index.js +0 -44
- package/esm/plots/radial-bar/index.js.map +0 -1
- package/esm/plots/radial-bar/types.d.ts +0 -63
- package/esm/plots/radial-bar/types.js +0 -2
- package/esm/plots/radial-bar/types.js.map +0 -1
- package/esm/plots/radial-bar/utils.d.ts +0 -6
- package/esm/plots/radial-bar/utils.js +0 -27
- package/esm/plots/radial-bar/utils.js.map +0 -1
- package/esm/plots/ring-progress/adaptor.d.ts +0 -13
- package/esm/plots/ring-progress/adaptor.js +0 -53
- package/esm/plots/ring-progress/adaptor.js.map +0 -1
- package/esm/plots/ring-progress/constants.d.ts +0 -22
- package/esm/plots/ring-progress/constants.js +0 -23
- package/esm/plots/ring-progress/constants.js.map +0 -1
- package/esm/plots/ring-progress/index.d.ts +0 -23
- package/esm/plots/ring-progress/index.js +0 -46
- package/esm/plots/ring-progress/index.js.map +0 -1
- package/esm/plots/ring-progress/types.d.ts +0 -28
- package/esm/plots/ring-progress/types.js +0 -2
- package/esm/plots/ring-progress/types.js.map +0 -1
- package/esm/plots/rose/adaptor.d.ts +0 -13
- package/esm/plots/rose/adaptor.js +0 -139
- package/esm/plots/rose/adaptor.js.map +0 -1
- package/esm/plots/rose/constant.d.ts +0 -4
- package/esm/plots/rose/constant.js +0 -28
- package/esm/plots/rose/constant.js.map +0 -1
- package/esm/plots/rose/index.d.ts +0 -26
- package/esm/plots/rose/index.js +0 -43
- package/esm/plots/rose/index.js.map +0 -1
- package/esm/plots/rose/types.d.ts +0 -55
- package/esm/plots/rose/types.js +0 -2
- package/esm/plots/rose/types.js.map +0 -1
- package/esm/plots/sankey/adaptor.d.ts +0 -18
- package/esm/plots/sankey/adaptor.js +0 -156
- package/esm/plots/sankey/adaptor.js.map +0 -1
- package/esm/plots/sankey/circle.d.ts +0 -16
- package/esm/plots/sankey/circle.js +0 -93
- package/esm/plots/sankey/circle.js.map +0 -1
- package/esm/plots/sankey/constant.d.ts +0 -5
- package/esm/plots/sankey/constant.js +0 -6
- package/esm/plots/sankey/constant.js.map +0 -1
- package/esm/plots/sankey/helper.d.ts +0 -20
- package/esm/plots/sankey/helper.js +0 -53
- package/esm/plots/sankey/helper.js.map +0 -1
- package/esm/plots/sankey/index.d.ts +0 -27
- package/esm/plots/sankey/index.js +0 -118
- package/esm/plots/sankey/index.js.map +0 -1
- package/esm/plots/sankey/interactions/actions/node-drag.d.ts +0 -46
- package/esm/plots/sankey/interactions/actions/node-drag.js +0 -137
- package/esm/plots/sankey/interactions/actions/node-drag.js.map +0 -1
- package/esm/plots/sankey/interactions/index.d.ts +0 -1
- package/esm/plots/sankey/interactions/index.js +0 -2
- package/esm/plots/sankey/interactions/index.js.map +0 -1
- package/esm/plots/sankey/interactions/node-draggable.d.ts +0 -1
- package/esm/plots/sankey/interactions/node-draggable.js +0 -16
- package/esm/plots/sankey/interactions/node-draggable.js.map +0 -1
- package/esm/plots/sankey/layout.d.ts +0 -86
- package/esm/plots/sankey/layout.js +0 -87
- package/esm/plots/sankey/layout.js.map +0 -1
- package/esm/plots/sankey/sankey/align.d.ts +0 -4
- package/esm/plots/sankey/sankey/align.js +0 -17
- package/esm/plots/sankey/sankey/align.js.map +0 -1
- package/esm/plots/sankey/sankey/helper.d.ts +0 -14
- package/esm/plots/sankey/sankey/helper.js +0 -37
- package/esm/plots/sankey/sankey/helper.js.map +0 -1
- package/esm/plots/sankey/sankey/index.d.ts +0 -11
- package/esm/plots/sankey/sankey/index.js +0 -12
- package/esm/plots/sankey/sankey/index.js.map +0 -1
- package/esm/plots/sankey/sankey/sankey.d.ts +0 -24
- package/esm/plots/sankey/sankey/sankey.js +0 -401
- package/esm/plots/sankey/sankey/sankey.js.map +0 -1
- package/esm/plots/sankey/types.d.ts +0 -143
- package/esm/plots/sankey/types.js +0 -2
- package/esm/plots/sankey/types.js.map +0 -1
- package/esm/plots/scatter/adaptor.d.ts +0 -25
- package/esm/plots/scatter/adaptor.js +0 -269
- package/esm/plots/scatter/adaptor.js.map +0 -1
- package/esm/plots/scatter/constant.d.ts +0 -4
- package/esm/plots/scatter/constant.js +0 -17
- package/esm/plots/scatter/constant.js.map +0 -1
- package/esm/plots/scatter/index.d.ts +0 -25
- package/esm/plots/scatter/index.js +0 -58
- package/esm/plots/scatter/index.js.map +0 -1
- package/esm/plots/scatter/interactions/index.d.ts +0 -1
- package/esm/plots/scatter/interactions/index.js +0 -2
- package/esm/plots/scatter/interactions/index.js.map +0 -1
- package/esm/plots/scatter/types.d.ts +0 -125
- package/esm/plots/scatter/types.js +0 -2
- package/esm/plots/scatter/types.js.map +0 -1
- package/esm/plots/scatter/util.d.ts +0 -36
- package/esm/plots/scatter/util.js +0 -231
- package/esm/plots/scatter/util.js.map +0 -1
- package/esm/plots/stock/adaptor.d.ts +0 -28
- package/esm/plots/stock/adaptor.js +0 -120
- package/esm/plots/stock/adaptor.js.map +0 -1
- package/esm/plots/stock/constant.d.ts +0 -31
- package/esm/plots/stock/constant.js +0 -54
- package/esm/plots/stock/constant.js.map +0 -1
- package/esm/plots/stock/index.d.ts +0 -27
- package/esm/plots/stock/index.js +0 -46
- package/esm/plots/stock/index.js.map +0 -1
- package/esm/plots/stock/types.d.ts +0 -28
- package/esm/plots/stock/types.js +0 -2
- package/esm/plots/stock/types.js.map +0 -1
- package/esm/plots/stock/utils.d.ts +0 -8
- package/esm/plots/stock/utils.js +0 -20
- package/esm/plots/stock/utils.js.map +0 -1
- package/esm/plots/sunburst/adaptor.d.ts +0 -23
- package/esm/plots/sunburst/adaptor.js +0 -176
- package/esm/plots/sunburst/adaptor.js.map +0 -1
- package/esm/plots/sunburst/constant.d.ts +0 -13
- package/esm/plots/sunburst/constant.js +0 -47
- package/esm/plots/sunburst/constant.js.map +0 -1
- package/esm/plots/sunburst/index.d.ts +0 -28
- package/esm/plots/sunburst/index.js +0 -43
- package/esm/plots/sunburst/index.js.map +0 -1
- package/esm/plots/sunburst/interactions/index.d.ts +0 -2
- package/esm/plots/sunburst/interactions/index.js +0 -3
- package/esm/plots/sunburst/interactions/index.js.map +0 -1
- package/esm/plots/sunburst/types.d.ts +0 -66
- package/esm/plots/sunburst/types.js +0 -2
- package/esm/plots/sunburst/types.js.map +0 -1
- package/esm/plots/sunburst/utils.d.ts +0 -6
- package/esm/plots/sunburst/utils.js +0 -56
- package/esm/plots/sunburst/utils.js.map +0 -1
- package/esm/plots/tiny-area/adaptor.d.ts +0 -13
- package/esm/plots/tiny-area/adaptor.js +0 -63
- package/esm/plots/tiny-area/adaptor.js.map +0 -1
- package/esm/plots/tiny-area/constants.d.ts +0 -33
- package/esm/plots/tiny-area/constants.js +0 -20
- package/esm/plots/tiny-area/constants.js.map +0 -1
- package/esm/plots/tiny-area/index.d.ts +0 -23
- package/esm/plots/tiny-area/index.js +0 -43
- package/esm/plots/tiny-area/index.js.map +0 -1
- package/esm/plots/tiny-area/types.d.ts +0 -27
- package/esm/plots/tiny-area/types.js +0 -2
- package/esm/plots/tiny-area/types.js.map +0 -1
- package/esm/plots/tiny-column/adaptor.d.ts +0 -10
- package/esm/plots/tiny-column/adaptor.js +0 -42
- package/esm/plots/tiny-column/adaptor.js.map +0 -1
- package/esm/plots/tiny-column/constants.d.ts +0 -35
- package/esm/plots/tiny-column/constants.js +0 -25
- package/esm/plots/tiny-column/constants.js.map +0 -1
- package/esm/plots/tiny-column/index.d.ts +0 -23
- package/esm/plots/tiny-column/index.js +0 -43
- package/esm/plots/tiny-column/index.js.map +0 -1
- package/esm/plots/tiny-column/types.d.ts +0 -17
- package/esm/plots/tiny-column/types.js +0 -2
- package/esm/plots/tiny-column/types.js.map +0 -1
- package/esm/plots/tiny-line/adaptor.d.ts +0 -10
- package/esm/plots/tiny-line/adaptor.js +0 -45
- package/esm/plots/tiny-line/adaptor.js.map +0 -1
- package/esm/plots/tiny-line/constants.d.ts +0 -45
- package/esm/plots/tiny-line/constants.js +0 -31
- package/esm/plots/tiny-line/constants.js.map +0 -1
- package/esm/plots/tiny-line/index.d.ts +0 -23
- package/esm/plots/tiny-line/index.js +0 -43
- package/esm/plots/tiny-line/index.js.map +0 -1
- package/esm/plots/tiny-line/types.d.ts +0 -28
- package/esm/plots/tiny-line/types.js +0 -2
- package/esm/plots/tiny-line/types.js.map +0 -1
- package/esm/plots/tiny-line/utils.d.ts +0 -4
- package/esm/plots/tiny-line/utils.js +0 -5
- package/esm/plots/tiny-line/utils.js.map +0 -1
- package/esm/plots/treemap/adaptor.d.ts +0 -13
- package/esm/plots/treemap/adaptor.js +0 -128
- package/esm/plots/treemap/adaptor.js.map +0 -1
- package/esm/plots/treemap/constant.d.ts +0 -36
- package/esm/plots/treemap/constant.js +0 -39
- package/esm/plots/treemap/constant.js.map +0 -1
- package/esm/plots/treemap/index.d.ts +0 -23
- package/esm/plots/treemap/index.js +0 -49
- package/esm/plots/treemap/index.js.map +0 -1
- package/esm/plots/treemap/interactions/index.d.ts +0 -4
- package/esm/plots/treemap/interactions/index.js +0 -5
- package/esm/plots/treemap/interactions/index.js.map +0 -1
- package/esm/plots/treemap/types.d.ts +0 -30
- package/esm/plots/treemap/types.js +0 -2
- package/esm/plots/treemap/types.js.map +0 -1
- package/esm/plots/treemap/utils.d.ts +0 -21
- package/esm/plots/treemap/utils.js +0 -72
- package/esm/plots/treemap/utils.js.map +0 -1
- package/esm/plots/venn/adaptor.d.ts +0 -23
- package/esm/plots/venn/adaptor.js +0 -215
- package/esm/plots/venn/adaptor.js.map +0 -1
- package/esm/plots/venn/constant.d.ts +0 -7
- package/esm/plots/venn/constant.js +0 -49
- package/esm/plots/venn/constant.js.map +0 -1
- package/esm/plots/venn/index.d.ts +0 -24
- package/esm/plots/venn/index.js +0 -47
- package/esm/plots/venn/index.js.map +0 -1
- package/esm/plots/venn/interactions/actions/active.d.ts +0 -14
- package/esm/plots/venn/interactions/actions/active.js +0 -34
- package/esm/plots/venn/interactions/actions/active.js.map +0 -1
- package/esm/plots/venn/interactions/actions/highlight.d.ts +0 -16
- package/esm/plots/venn/interactions/actions/highlight.js +0 -39
- package/esm/plots/venn/interactions/actions/highlight.js.map +0 -1
- package/esm/plots/venn/interactions/actions/selected.d.ts +0 -33
- package/esm/plots/venn/interactions/actions/selected.js +0 -70
- package/esm/plots/venn/interactions/actions/selected.js.map +0 -1
- package/esm/plots/venn/interactions/index.d.ts +0 -1
- package/esm/plots/venn/interactions/index.js +0 -48
- package/esm/plots/venn/interactions/index.js.map +0 -1
- package/esm/plots/venn/interactions/util.d.ts +0 -3
- package/esm/plots/venn/interactions/util.js +0 -11
- package/esm/plots/venn/interactions/util.js.map +0 -1
- package/esm/plots/venn/label.d.ts +0 -1
- package/esm/plots/venn/label.js +0 -31
- package/esm/plots/venn/label.js.map +0 -1
- package/esm/plots/venn/layout/circleintersection.d.ts +0 -29
- package/esm/plots/venn/layout/circleintersection.js +0 -186
- package/esm/plots/venn/layout/circleintersection.js.map +0 -1
- package/esm/plots/venn/layout/diagram.d.ts +0 -17
- package/esm/plots/venn/layout/diagram.js +0 -193
- package/esm/plots/venn/layout/diagram.js.map +0 -1
- package/esm/plots/venn/layout/layout.d.ts +0 -27
- package/esm/plots/venn/layout/layout.js +0 -594
- package/esm/plots/venn/layout/layout.js.map +0 -1
- package/esm/plots/venn/shape.d.ts +0 -1
- package/esm/plots/venn/shape.js +0 -42
- package/esm/plots/venn/shape.js.map +0 -1
- package/esm/plots/venn/types.d.ts +0 -41
- package/esm/plots/venn/types.js +0 -2
- package/esm/plots/venn/types.js.map +0 -1
- package/esm/plots/venn/utils.d.ts +0 -27
- package/esm/plots/venn/utils.js +0 -92
- package/esm/plots/venn/utils.js.map +0 -1
- package/esm/plots/violin/adaptor.d.ts +0 -12
- package/esm/plots/violin/adaptor.js +0 -228
- package/esm/plots/violin/adaptor.js.map +0 -1
- package/esm/plots/violin/constant.d.ts +0 -11
- package/esm/plots/violin/constant.js +0 -58
- package/esm/plots/violin/constant.js.map +0 -1
- package/esm/plots/violin/index.d.ts +0 -25
- package/esm/plots/violin/index.js +0 -43
- package/esm/plots/violin/index.js.map +0 -1
- package/esm/plots/violin/types.d.ts +0 -72
- package/esm/plots/violin/types.js +0 -2
- package/esm/plots/violin/types.js.map +0 -1
- package/esm/plots/violin/utils.d.ts +0 -43
- package/esm/plots/violin/utils.js +0 -55
- package/esm/plots/violin/utils.js.map +0 -1
- package/esm/plots/waterfall/adaptor.d.ts +0 -13
- package/esm/plots/waterfall/adaptor.js +0 -192
- package/esm/plots/waterfall/adaptor.js.map +0 -1
- package/esm/plots/waterfall/constant.d.ts +0 -42
- package/esm/plots/waterfall/constant.js +0 -41
- package/esm/plots/waterfall/constant.js.map +0 -1
- package/esm/plots/waterfall/index.d.ts +0 -29
- package/esm/plots/waterfall/index.js +0 -48
- package/esm/plots/waterfall/index.js.map +0 -1
- package/esm/plots/waterfall/shape.d.ts +0 -1
- package/esm/plots/waterfall/shape.js +0 -58
- package/esm/plots/waterfall/shape.js.map +0 -1
- package/esm/plots/waterfall/types.d.ts +0 -70
- package/esm/plots/waterfall/types.js +0 -2
- package/esm/plots/waterfall/types.js.map +0 -1
- package/esm/plots/waterfall/utils.d.ts +0 -17
- package/esm/plots/waterfall/utils.js +0 -47
- package/esm/plots/waterfall/utils.js.map +0 -1
- package/esm/plots/word-cloud/adaptor.d.ts +0 -13
- package/esm/plots/word-cloud/adaptor.js +0 -69
- package/esm/plots/word-cloud/adaptor.js.map +0 -1
- package/esm/plots/word-cloud/constant.d.ts +0 -6
- package/esm/plots/word-cloud/constant.js +0 -30
- package/esm/plots/word-cloud/constant.js.map +0 -1
- package/esm/plots/word-cloud/index.d.ts +0 -35
- package/esm/plots/word-cloud/index.js +0 -91
- package/esm/plots/word-cloud/index.js.map +0 -1
- package/esm/plots/word-cloud/shapes/word-cloud.d.ts +0 -1
- package/esm/plots/word-cloud/shapes/word-cloud.js +0 -28
- package/esm/plots/word-cloud/shapes/word-cloud.js.map +0 -1
- package/esm/plots/word-cloud/types.d.ts +0 -149
- package/esm/plots/word-cloud/types.js +0 -2
- package/esm/plots/word-cloud/types.js.map +0 -1
- package/esm/plots/word-cloud/utils.d.ts +0 -34
- package/esm/plots/word-cloud/utils.js +0 -218
- package/esm/plots/word-cloud/utils.js.map +0 -1
- package/esm/plugin/index.d.ts +0 -48
- package/esm/plugin/index.js +0 -58
- package/esm/plugin/index.js.map +0 -1
- package/esm/types/animation.d.ts +0 -2
- package/esm/types/animation.js +0 -2
- package/esm/types/animation.js.map +0 -1
- package/esm/types/annotation.d.ts +0 -6
- package/esm/types/annotation.js +0 -2
- package/esm/types/annotation.js.map +0 -1
- package/esm/types/attr.d.ts +0 -20
- package/esm/types/attr.js +0 -2
- package/esm/types/attr.js.map +0 -1
- package/esm/types/axis.d.ts +0 -3
- package/esm/types/axis.js +0 -2
- package/esm/types/axis.js.map +0 -1
- package/esm/types/button.d.ts +0 -33
- package/esm/types/button.js +0 -2
- package/esm/types/button.js.map +0 -1
- package/esm/types/coordinate.d.ts +0 -13
- package/esm/types/coordinate.js +0 -2
- package/esm/types/coordinate.js.map +0 -1
- package/esm/types/drill-down.d.ts +0 -39
- package/esm/types/drill-down.js +0 -2
- package/esm/types/drill-down.js.map +0 -1
- package/esm/types/interaction.d.ts +0 -49
- package/esm/types/interaction.js +0 -2
- package/esm/types/interaction.js.map +0 -1
- package/esm/types/label.d.ts +0 -17
- package/esm/types/label.js +0 -2
- package/esm/types/label.js.map +0 -1
- package/esm/types/legend.d.ts +0 -2
- package/esm/types/legend.js +0 -2
- package/esm/types/legend.js.map +0 -1
- package/esm/types/locale.d.ts +0 -24
- package/esm/types/locale.js +0 -2
- package/esm/types/locale.js.map +0 -1
- package/esm/types/meta.d.ts +0 -14
- package/esm/types/meta.js +0 -2
- package/esm/types/meta.js.map +0 -1
- package/esm/types/pattern.d.ts +0 -87
- package/esm/types/pattern.js +0 -2
- package/esm/types/pattern.js.map +0 -1
- package/esm/types/relation-data.d.ts +0 -16
- package/esm/types/relation-data.js +0 -2
- package/esm/types/relation-data.js.map +0 -1
- package/esm/types/scrollbar.d.ts +0 -2
- package/esm/types/scrollbar.js +0 -2
- package/esm/types/scrollbar.js.map +0 -1
- package/esm/types/slider.d.ts +0 -2
- package/esm/types/slider.js +0 -2
- package/esm/types/slider.js.map +0 -1
- package/esm/types/state.d.ts +0 -22
- package/esm/types/state.js +0 -2
- package/esm/types/state.js.map +0 -1
- package/esm/types/statistic.d.ts +0 -64
- package/esm/types/statistic.js +0 -2
- package/esm/types/statistic.js.map +0 -1
- package/esm/types/tooltip.d.ts +0 -15
- package/esm/types/tooltip.js +0 -2
- package/esm/types/tooltip.js.map +0 -1
- package/esm/utils/color/blend.d.ts +0 -20
- package/esm/utils/color/blend.js +0 -92
- package/esm/utils/color/blend.js.map +0 -1
- package/esm/utils/context.d.ts +0 -4
- package/esm/utils/context.js +0 -11
- package/esm/utils/context.js.map +0 -1
- package/esm/utils/conversion.d.ts +0 -6
- package/esm/utils/conversion.js +0 -23
- package/esm/utils/conversion.js.map +0 -1
- package/esm/utils/data.d.ts +0 -23
- package/esm/utils/data.js +0 -89
- package/esm/utils/data.js.map +0 -1
- package/esm/utils/deep-assign.d.ts +0 -6
- package/esm/utils/deep-assign.js +0 -86
- package/esm/utils/deep-assign.js.map +0 -1
- package/esm/utils/dom.d.ts +0 -7
- package/esm/utils/dom.js +0 -20
- package/esm/utils/dom.js.map +0 -1
- package/esm/utils/flow.d.ts +0 -7
- package/esm/utils/flow.js +0 -16
- package/esm/utils/flow.js.map +0 -1
- package/esm/utils/geometry.d.ts +0 -19
- package/esm/utils/geometry.js +0 -40
- package/esm/utils/geometry.js.map +0 -1
- package/esm/utils/hierarchy/pack.d.ts +0 -6
- package/esm/utils/hierarchy/pack.js +0 -40
- package/esm/utils/hierarchy/pack.js.map +0 -1
- package/esm/utils/hierarchy/partition.d.ts +0 -11
- package/esm/utils/hierarchy/partition.js +0 -71
- package/esm/utils/hierarchy/partition.js.map +0 -1
- package/esm/utils/hierarchy/treemap.d.ts +0 -3
- package/esm/utils/hierarchy/treemap.js +0 -86
- package/esm/utils/hierarchy/treemap.js.map +0 -1
- package/esm/utils/hierarchy/types.d.ts +0 -20
- package/esm/utils/hierarchy/types.js +0 -2
- package/esm/utils/hierarchy/types.js.map +0 -1
- package/esm/utils/hierarchy/util.d.ts +0 -14
- package/esm/utils/hierarchy/util.js +0 -64
- package/esm/utils/hierarchy/util.js.map +0 -1
- package/esm/utils/invariant.d.ts +0 -23
- package/esm/utils/invariant.js +0 -59
- package/esm/utils/invariant.js.map +0 -1
- package/esm/utils/kebab-case.d.ts +0 -6
- package/esm/utils/kebab-case.js +0 -13
- package/esm/utils/kebab-case.js.map +0 -1
- package/esm/utils/label.d.ts +0 -5
- package/esm/utils/label.js +0 -17
- package/esm/utils/label.js.map +0 -1
- package/esm/utils/matrix.d.ts +0 -6
- package/esm/utils/matrix.js +0 -13
- package/esm/utils/matrix.js.map +0 -1
- package/esm/utils/measure-text.d.ts +0 -9
- package/esm/utils/measure-text.js +0 -21
- package/esm/utils/measure-text.js.map +0 -1
- package/esm/utils/number.d.ts +0 -14
- package/esm/utils/number.js +0 -21
- package/esm/utils/number.js.map +0 -1
- package/esm/utils/padding.d.ts +0 -15
- package/esm/utils/padding.js +0 -66
- package/esm/utils/padding.js.map +0 -1
- package/esm/utils/path.d.ts +0 -17
- package/esm/utils/path.js +0 -141
- package/esm/utils/path.js.map +0 -1
- package/esm/utils/pattern/dot.d.ts +0 -32
- package/esm/utils/pattern/dot.js +0 -69
- package/esm/utils/pattern/dot.js.map +0 -1
- package/esm/utils/pattern/index.d.ts +0 -17
- package/esm/utils/pattern/index.js +0 -27
- package/esm/utils/pattern/index.js.map +0 -1
- package/esm/utils/pattern/line.d.ts +0 -25
- package/esm/utils/pattern/line.js +0 -56
- package/esm/utils/pattern/line.js.map +0 -1
- package/esm/utils/pattern/square.d.ts +0 -28
- package/esm/utils/pattern/square.js +0 -61
- package/esm/utils/pattern/square.js.map +0 -1
- package/esm/utils/pattern/util.d.ts +0 -50
- package/esm/utils/pattern/util.js +0 -90
- package/esm/utils/pattern/util.js.map +0 -1
- package/esm/utils/pick.d.ts +0 -6
- package/esm/utils/pick.js +0 -18
- package/esm/utils/pick.js.map +0 -1
- package/esm/utils/statistic.d.ts +0 -36
- package/esm/utils/statistic.js +0 -158
- package/esm/utils/statistic.js.map +0 -1
- package/esm/utils/template.d.ts +0 -7
- package/esm/utils/template.js +0 -16
- package/esm/utils/template.js.map +0 -1
- package/esm/utils/tooltip.d.ts +0 -7
- package/esm/utils/tooltip.js +0 -23
- package/esm/utils/tooltip.js.map +0 -1
- package/esm/utils/transform/chord.d.ts +0 -34
- package/esm/utils/transform/chord.js +0 -182
- package/esm/utils/transform/chord.js.map +0 -1
- package/esm/utils/transform/histogram.d.ts +0 -15
- package/esm/utils/transform/histogram.js +0 -78
- package/esm/utils/transform/histogram.js.map +0 -1
- package/esm/utils/transform/percent.d.ts +0 -26
- package/esm/utils/transform/percent.js +0 -64
- package/esm/utils/transform/percent.js.map +0 -1
- package/esm/utils/transform/quantile.d.ts +0 -62
- package/esm/utils/transform/quantile.js +0 -194
- package/esm/utils/transform/quantile.js.map +0 -1
- package/esm/utils/transform/sankey.d.ts +0 -0
- package/esm/utils/transform/sankey.js +0 -1
- package/esm/utils/transform/sankey.js.map +0 -1
- package/esm/utils/transform/word-cloud.d.ts +0 -30
- package/esm/utils/transform/word-cloud.js +0 -419
- package/esm/utils/transform/word-cloud.js.map +0 -1
- package/esm/utils/view.d.ts +0 -28
- package/esm/utils/view.js +0 -55
- package/esm/utils/view.js.map +0 -1
- package/lib/adaptor/brush.d.ts +0 -12
- package/lib/adaptor/brush.js +0 -52
- package/lib/adaptor/brush.js.map +0 -1
- package/lib/adaptor/common.d.ts +0 -72
- package/lib/adaptor/common.js +0 -203
- package/lib/adaptor/common.js.map +0 -1
- package/lib/adaptor/connected-area.d.ts +0 -17
- package/lib/adaptor/connected-area.js +0 -80
- package/lib/adaptor/connected-area.js.map +0 -1
- package/lib/adaptor/conversion-tag.d.ts +0 -38
- package/lib/adaptor/conversion-tag.js +0 -182
- package/lib/adaptor/conversion-tag.js.map +0 -1
- package/lib/adaptor/geometries/area.d.ts +0 -19
- package/lib/adaptor/geometries/area.js +0 -33
- package/lib/adaptor/geometries/area.js.map +0 -1
- package/lib/adaptor/geometries/base.d.ts +0 -77
- package/lib/adaptor/geometries/base.js +0 -201
- package/lib/adaptor/geometries/base.js.map +0 -1
- package/lib/adaptor/geometries/edge.d.ts +0 -17
- package/lib/adaptor/geometries/edge.js +0 -29
- package/lib/adaptor/geometries/edge.js.map +0 -1
- package/lib/adaptor/geometries/index.d.ts +0 -17
- package/lib/adaptor/geometries/index.js +0 -20
- package/lib/adaptor/geometries/index.js.map +0 -1
- package/lib/adaptor/geometries/interval.d.ts +0 -36
- package/lib/adaptor/geometries/interval.js +0 -77
- package/lib/adaptor/geometries/interval.js.map +0 -1
- package/lib/adaptor/geometries/line.d.ts +0 -23
- package/lib/adaptor/geometries/line.js +0 -33
- package/lib/adaptor/geometries/line.js.map +0 -1
- package/lib/adaptor/geometries/point.d.ts +0 -21
- package/lib/adaptor/geometries/point.js +0 -30
- package/lib/adaptor/geometries/point.js.map +0 -1
- package/lib/adaptor/geometries/polygon.d.ts +0 -17
- package/lib/adaptor/geometries/polygon.js +0 -29
- package/lib/adaptor/geometries/polygon.js.map +0 -1
- package/lib/adaptor/geometries/schema.d.ts +0 -17
- package/lib/adaptor/geometries/schema.js +0 -29
- package/lib/adaptor/geometries/schema.js.map +0 -1
- package/lib/adaptor/geometries/violin.d.ts +0 -19
- package/lib/adaptor/geometries/violin.js +0 -28
- package/lib/adaptor/geometries/violin.js.map +0 -1
- package/lib/adaptor/pattern.d.ts +0 -15
- package/lib/adaptor/pattern.js +0 -58
- package/lib/adaptor/pattern.js.map +0 -1
- package/lib/constant.d.ts +0 -4
- package/lib/constant.js +0 -29
- package/lib/constant.js.map +0 -1
- package/lib/core/adaptor.d.ts +0 -15
- package/lib/core/adaptor.js +0 -3
- package/lib/core/adaptor.js.map +0 -1
- package/lib/core/global.d.ts +0 -13
- package/lib/core/global.js +0 -21
- package/lib/core/global.js.map +0 -1
- package/lib/core/locale.d.ts +0 -15
- package/lib/core/locale.js +0 -30
- package/lib/core/locale.js.map +0 -1
- package/lib/interactions/actions/drill-down.d.ts +0 -99
- package/lib/interactions/actions/drill-down.js +0 -255
- package/lib/interactions/actions/drill-down.js.map +0 -1
- package/lib/interactions/actions/reset-button.d.ts +0 -42
- package/lib/interactions/actions/reset-button.js +0 -147
- package/lib/interactions/actions/reset-button.js.map +0 -1
- package/lib/interactions/brush.d.ts +0 -91
- package/lib/interactions/brush.js +0 -309
- package/lib/interactions/brush.js.map +0 -1
- package/lib/interactions/drag-move.d.ts +0 -1
- package/lib/interactions/drag-move.js +0 -15
- package/lib/interactions/drag-move.js.map +0 -1
- package/lib/interactions/drill-down.d.ts +0 -4
- package/lib/interactions/drill-down.js +0 -56
- package/lib/interactions/drill-down.js.map +0 -1
- package/lib/lab.d.ts +0 -18
- package/lib/lab.js +0 -43
- package/lib/lab.js.map +0 -1
- package/lib/locales/en_US.d.ts +0 -2
- package/lib/locales/en_US.js +0 -30
- package/lib/locales/en_US.js.map +0 -1
- package/lib/locales/zh_CN.d.ts +0 -2
- package/lib/locales/zh_CN.js +0 -30
- package/lib/locales/zh_CN.js.map +0 -1
- package/lib/plots/_template/adaptor.d.ts +0 -13
- package/lib/plots/_template/adaptor.js +0 -43
- package/lib/plots/_template/adaptor.js.map +0 -1
- package/lib/plots/_template/constant.d.ts +0 -0
- package/lib/plots/_template/constant.js +0 -1
- package/lib/plots/_template/constant.js.map +0 -1
- package/lib/plots/_template/index.d.ts +0 -15
- package/lib/plots/_template/index.js +0 -27
- package/lib/plots/_template/index.js.map +0 -1
- package/lib/plots/_template/types.d.ts +0 -8
- package/lib/plots/_template/types.js +0 -3
- package/lib/plots/_template/types.js.map +0 -1
- package/lib/plots/area/adaptor.d.ts +0 -10
- package/lib/plots/area/adaptor.js +0 -119
- package/lib/plots/area/adaptor.js.map +0 -1
- package/lib/plots/area/constants.d.ts +0 -4
- package/lib/plots/area/constants.js +0 -26
- package/lib/plots/area/constants.js.map +0 -1
- package/lib/plots/area/index.d.ts +0 -26
- package/lib/plots/area/index.js +0 -50
- package/lib/plots/area/index.js.map +0 -1
- package/lib/plots/area/types.d.ts +0 -60
- package/lib/plots/area/types.js +0 -3
- package/lib/plots/area/types.js.map +0 -1
- package/lib/plots/bar/adaptor.d.ts +0 -13
- package/lib/plots/bar/adaptor.js +0 -107
- package/lib/plots/bar/adaptor.js.map +0 -1
- package/lib/plots/bar/constants.d.ts +0 -4
- package/lib/plots/bar/constants.js +0 -22
- package/lib/plots/bar/constants.js.map +0 -1
- package/lib/plots/bar/index.d.ts +0 -28
- package/lib/plots/bar/index.js +0 -57
- package/lib/plots/bar/index.js.map +0 -1
- package/lib/plots/bar/types.d.ts +0 -24
- package/lib/plots/bar/types.js +0 -3
- package/lib/plots/bar/types.js.map +0 -1
- package/lib/plots/bidirectional-bar/adaptor.d.ts +0 -28
- package/lib/plots/bidirectional-bar/adaptor.js +0 -319
- package/lib/plots/bidirectional-bar/adaptor.js.map +0 -1
- package/lib/plots/bidirectional-bar/constant.d.ts +0 -4
- package/lib/plots/bidirectional-bar/constant.js +0 -8
- package/lib/plots/bidirectional-bar/constant.js.map +0 -1
- package/lib/plots/bidirectional-bar/index.d.ts +0 -24
- package/lib/plots/bidirectional-bar/index.js +0 -63
- package/lib/plots/bidirectional-bar/index.js.map +0 -1
- package/lib/plots/bidirectional-bar/types.d.ts +0 -33
- package/lib/plots/bidirectional-bar/types.js +0 -3
- package/lib/plots/bidirectional-bar/types.js.map +0 -1
- package/lib/plots/bidirectional-bar/utils.d.ts +0 -22
- package/lib/plots/bidirectional-bar/utils.js +0 -84
- package/lib/plots/bidirectional-bar/utils.js.map +0 -1
- package/lib/plots/box/adaptor.d.ts +0 -12
- package/lib/plots/box/adaptor.js +0 -155
- package/lib/plots/box/adaptor.js.map +0 -1
- package/lib/plots/box/constant.d.ts +0 -8
- package/lib/plots/box/constant.js +0 -29
- package/lib/plots/box/constant.js.map +0 -1
- package/lib/plots/box/index.d.ts +0 -26
- package/lib/plots/box/index.js +0 -52
- package/lib/plots/box/index.js.map +0 -1
- package/lib/plots/box/types.d.ts +0 -29
- package/lib/plots/box/types.js +0 -3
- package/lib/plots/box/types.js.map +0 -1
- package/lib/plots/box/utils.d.ts +0 -7
- package/lib/plots/box/utils.js +0 -24
- package/lib/plots/box/utils.js.map +0 -1
- package/lib/plots/bullet/adaptor.d.ts +0 -13
- package/lib/plots/bullet/adaptor.js +0 -179
- package/lib/plots/bullet/adaptor.js.map +0 -1
- package/lib/plots/bullet/constant.d.ts +0 -4
- package/lib/plots/bullet/constant.js +0 -35
- package/lib/plots/bullet/constant.js.map +0 -1
- package/lib/plots/bullet/index.d.ts +0 -22
- package/lib/plots/bullet/index.js +0 -46
- package/lib/plots/bullet/index.js.map +0 -1
- package/lib/plots/bullet/types.d.ts +0 -56
- package/lib/plots/bullet/types.js +0 -3
- package/lib/plots/bullet/types.js.map +0 -1
- package/lib/plots/bullet/utils.d.ts +0 -12
- package/lib/plots/bullet/utils.js +0 -73
- package/lib/plots/bullet/utils.js.map +0 -1
- package/lib/plots/chord/adaptor.d.ts +0 -8
- package/lib/plots/chord/adaptor.js +0 -152
- package/lib/plots/chord/adaptor.js.map +0 -1
- package/lib/plots/chord/constant.d.ts +0 -43
- package/lib/plots/chord/constant.js +0 -59
- package/lib/plots/chord/constant.js.map +0 -1
- package/lib/plots/chord/index.d.ts +0 -21
- package/lib/plots/chord/index.js +0 -38
- package/lib/plots/chord/index.js.map +0 -1
- package/lib/plots/chord/types.d.ts +0 -48
- package/lib/plots/chord/types.js +0 -3
- package/lib/plots/chord/types.js.map +0 -1
- package/lib/plots/circle-packing/adaptor.d.ts +0 -13
- package/lib/plots/circle-packing/adaptor.js +0 -176
- package/lib/plots/circle-packing/adaptor.js.map +0 -1
- package/lib/plots/circle-packing/constant.d.ts +0 -4
- package/lib/plots/circle-packing/constant.js +0 -33
- package/lib/plots/circle-packing/constant.js.map +0 -1
- package/lib/plots/circle-packing/index.d.ts +0 -27
- package/lib/plots/circle-packing/index.js +0 -53
- package/lib/plots/circle-packing/index.js.map +0 -1
- package/lib/plots/circle-packing/interactions/index.d.ts +0 -2
- package/lib/plots/circle-packing/interactions/index.js +0 -5
- package/lib/plots/circle-packing/interactions/index.js.map +0 -1
- package/lib/plots/circle-packing/types.d.ts +0 -38
- package/lib/plots/circle-packing/types.js +0 -3
- package/lib/plots/circle-packing/types.js.map +0 -1
- package/lib/plots/circle-packing/utils.d.ts +0 -25
- package/lib/plots/circle-packing/utils.js +0 -61
- package/lib/plots/circle-packing/utils.js.map +0 -1
- package/lib/plots/column/constants.d.ts +0 -4
- package/lib/plots/column/constants.js +0 -22
- package/lib/plots/column/constants.js.map +0 -1
- package/lib/plots/column/types.d.ts +0 -90
- package/lib/plots/column/types.js +0 -3
- package/lib/plots/column/types.js.map +0 -1
- package/lib/plots/dual-axes/adaptor.d.ts +0 -63
- package/lib/plots/dual-axes/adaptor.js +0 -440
- package/lib/plots/dual-axes/adaptor.js.map +0 -1
- package/lib/plots/dual-axes/constant.d.ts +0 -26
- package/lib/plots/dual-axes/constant.js +0 -16
- package/lib/plots/dual-axes/constant.js.map +0 -1
- package/lib/plots/dual-axes/index.d.ts +0 -16
- package/lib/plots/dual-axes/index.js +0 -34
- package/lib/plots/dual-axes/index.js.map +0 -1
- package/lib/plots/dual-axes/types.d.ts +0 -79
- package/lib/plots/dual-axes/types.js +0 -14
- package/lib/plots/dual-axes/types.js.map +0 -1
- package/lib/plots/dual-axes/util/geometry.d.ts +0 -11
- package/lib/plots/dual-axes/util/geometry.js +0 -59
- package/lib/plots/dual-axes/util/geometry.js.map +0 -1
- package/lib/plots/dual-axes/util/legend.d.ts +0 -13
- package/lib/plots/dual-axes/util/legend.js +0 -70
- package/lib/plots/dual-axes/util/legend.js.map +0 -1
- package/lib/plots/dual-axes/util/option.d.ts +0 -29
- package/lib/plots/dual-axes/util/option.js +0 -78
- package/lib/plots/dual-axes/util/option.js.map +0 -1
- package/lib/plots/dual-axes/util/render-sider.d.ts +0 -9
- package/lib/plots/dual-axes/util/render-sider.js +0 -35
- package/lib/plots/dual-axes/util/render-sider.js.map +0 -1
- package/lib/plots/facet/adaptor.d.ts +0 -8
- package/lib/plots/facet/adaptor.js +0 -111
- package/lib/plots/facet/adaptor.js.map +0 -1
- package/lib/plots/facet/constant.d.ts +0 -23
- package/lib/plots/facet/constant.js +0 -27
- package/lib/plots/facet/constant.js.map +0 -1
- package/lib/plots/facet/index.d.ts +0 -21
- package/lib/plots/facet/index.js +0 -38
- package/lib/plots/facet/index.js.map +0 -1
- package/lib/plots/facet/types.d.ts +0 -148
- package/lib/plots/facet/types.js +0 -3
- package/lib/plots/facet/types.js.map +0 -1
- package/lib/plots/facet/utils.d.ts +0 -8
- package/lib/plots/facet/utils.js +0 -79
- package/lib/plots/facet/utils.js.map +0 -1
- package/lib/plots/funnel/adaptor.d.ts +0 -18
- package/lib/plots/funnel/adaptor.js +0 -163
- package/lib/plots/funnel/adaptor.js.map +0 -1
- package/lib/plots/funnel/constant.d.ts +0 -40
- package/lib/plots/funnel/constant.js +0 -51
- package/lib/plots/funnel/constant.js.map +0 -1
- package/lib/plots/funnel/geometries/basic.d.ts +0 -13
- package/lib/plots/funnel/geometries/basic.js +0 -98
- package/lib/plots/funnel/geometries/basic.js.map +0 -1
- package/lib/plots/funnel/geometries/common.d.ts +0 -15
- package/lib/plots/funnel/geometries/common.js +0 -64
- package/lib/plots/funnel/geometries/common.js.map +0 -1
- package/lib/plots/funnel/geometries/compare.d.ts +0 -9
- package/lib/plots/funnel/geometries/compare.js +0 -145
- package/lib/plots/funnel/geometries/compare.js.map +0 -1
- package/lib/plots/funnel/geometries/dynamic-height.d.ts +0 -8
- package/lib/plots/funnel/geometries/dynamic-height.js +0 -128
- package/lib/plots/funnel/geometries/dynamic-height.js.map +0 -1
- package/lib/plots/funnel/geometries/facet.d.ts +0 -8
- package/lib/plots/funnel/geometries/facet.js +0 -54
- package/lib/plots/funnel/geometries/facet.js.map +0 -1
- package/lib/plots/funnel/index.d.ts +0 -38
- package/lib/plots/funnel/index.js +0 -76
- package/lib/plots/funnel/index.js.map +0 -1
- package/lib/plots/funnel/interactions/funnel-conversion-tag.d.ts +0 -9
- package/lib/plots/funnel/interactions/funnel-conversion-tag.js +0 -60
- package/lib/plots/funnel/interactions/funnel-conversion-tag.js.map +0 -1
- package/lib/plots/funnel/interactions/index.d.ts +0 -5
- package/lib/plots/funnel/interactions/index.js +0 -13
- package/lib/plots/funnel/interactions/index.js.map +0 -1
- package/lib/plots/funnel/types.d.ts +0 -70
- package/lib/plots/funnel/types.js +0 -3
- package/lib/plots/funnel/types.js.map +0 -1
- package/lib/plots/gauge/adaptor.d.ts +0 -17
- package/lib/plots/gauge/adaptor.js +0 -183
- package/lib/plots/gauge/adaptor.js.map +0 -1
- package/lib/plots/gauge/constants.d.ts +0 -67
- package/lib/plots/gauge/constants.js +0 -73
- package/lib/plots/gauge/constants.js.map +0 -1
- package/lib/plots/gauge/index.d.ts +0 -32
- package/lib/plots/gauge/index.js +0 -66
- package/lib/plots/gauge/index.js.map +0 -1
- package/lib/plots/gauge/shapes/indicator.d.ts +0 -1
- package/lib/plots/gauge/shapes/indicator.js +0 -32
- package/lib/plots/gauge/shapes/indicator.js.map +0 -1
- package/lib/plots/gauge/shapes/meter-gauge.d.ts +0 -1
- package/lib/plots/gauge/shapes/meter-gauge.js +0 -54
- package/lib/plots/gauge/shapes/meter-gauge.js.map +0 -1
- package/lib/plots/gauge/types.d.ts +0 -130
- package/lib/plots/gauge/types.js +0 -4
- package/lib/plots/gauge/types.js.map +0 -1
- package/lib/plots/gauge/utils.d.ts +0 -20
- package/lib/plots/gauge/utils.js +0 -44
- package/lib/plots/gauge/utils.js.map +0 -1
- package/lib/plots/heatmap/adaptor.d.ts +0 -8
- package/lib/plots/heatmap/adaptor.js +0 -167
- package/lib/plots/heatmap/adaptor.js.map +0 -1
- package/lib/plots/heatmap/constant.d.ts +0 -4
- package/lib/plots/heatmap/constant.js +0 -42
- package/lib/plots/heatmap/constant.js.map +0 -1
- package/lib/plots/heatmap/index.d.ts +0 -23
- package/lib/plots/heatmap/index.js +0 -41
- package/lib/plots/heatmap/index.js.map +0 -1
- package/lib/plots/heatmap/shapes/circle.d.ts +0 -1
- package/lib/plots/heatmap/shapes/circle.js +0 -25
- package/lib/plots/heatmap/shapes/circle.js.map +0 -1
- package/lib/plots/heatmap/shapes/square.d.ts +0 -1
- package/lib/plots/heatmap/shapes/square.js +0 -25
- package/lib/plots/heatmap/shapes/square.js.map +0 -1
- package/lib/plots/heatmap/types.d.ts +0 -63
- package/lib/plots/heatmap/types.js +0 -3
- package/lib/plots/heatmap/types.js.map +0 -1
- package/lib/plots/histogram/adaptor.d.ts +0 -8
- package/lib/plots/histogram/adaptor.js +0 -109
- package/lib/plots/histogram/adaptor.js.map +0 -1
- package/lib/plots/histogram/constant.d.ts +0 -8
- package/lib/plots/histogram/constant.js +0 -23
- package/lib/plots/histogram/constant.js.map +0 -1
- package/lib/plots/histogram/index.d.ts +0 -22
- package/lib/plots/histogram/index.js +0 -44
- package/lib/plots/histogram/index.js.map +0 -1
- package/lib/plots/histogram/types.d.ts +0 -27
- package/lib/plots/histogram/types.js +0 -3
- package/lib/plots/histogram/types.js.map +0 -1
- package/lib/plots/line/constants.d.ts +0 -4
- package/lib/plots/line/constants.js +0 -24
- package/lib/plots/line/constants.js.map +0 -1
- package/lib/plots/line/interactions/index.d.ts +0 -1
- package/lib/plots/line/interactions/index.js +0 -20
- package/lib/plots/line/interactions/index.js.map +0 -1
- package/lib/plots/line/interactions/marker-active.d.ts +0 -6
- package/lib/plots/line/interactions/marker-active.js +0 -42
- package/lib/plots/line/interactions/marker-active.js.map +0 -1
- package/lib/plots/line/types.d.ts +0 -58
- package/lib/plots/line/types.js +0 -3
- package/lib/plots/line/types.js.map +0 -1
- package/lib/plots/liquid/adaptor.d.ts +0 -13
- package/lib/plots/liquid/adaptor.js +0 -93
- package/lib/plots/liquid/adaptor.js.map +0 -1
- package/lib/plots/liquid/constants.d.ts +0 -26
- package/lib/plots/liquid/constants.js +0 -30
- package/lib/plots/liquid/constants.js.map +0 -1
- package/lib/plots/liquid/index.d.ts +0 -31
- package/lib/plots/liquid/index.js +0 -58
- package/lib/plots/liquid/index.js.map +0 -1
- package/lib/plots/liquid/shapes/liquid.d.ts +0 -16
- package/lib/plots/liquid/shapes/liquid.js +0 -372
- package/lib/plots/liquid/shapes/liquid.js.map +0 -1
- package/lib/plots/liquid/types.d.ts +0 -93
- package/lib/plots/liquid/types.js +0 -3
- package/lib/plots/liquid/types.js.map +0 -1
- package/lib/plots/liquid/utils.d.ts +0 -7
- package/lib/plots/liquid/utils.js +0 -12
- package/lib/plots/liquid/utils.js.map +0 -1
- package/lib/plots/mix/adaptor.d.ts +0 -13
- package/lib/plots/mix/adaptor.js +0 -147
- package/lib/plots/mix/adaptor.js.map +0 -1
- package/lib/plots/mix/index.d.ts +0 -24
- package/lib/plots/mix/index.js +0 -36
- package/lib/plots/mix/index.js.map +0 -1
- package/lib/plots/mix/interactions/association.d.ts +0 -1
- package/lib/plots/mix/interactions/association.js +0 -171
- package/lib/plots/mix/interactions/association.js.map +0 -1
- package/lib/plots/mix/interactions/index.d.ts +0 -4
- package/lib/plots/mix/interactions/index.js +0 -7
- package/lib/plots/mix/interactions/index.js.map +0 -1
- package/lib/plots/mix/interactions/utils.d.ts +0 -14
- package/lib/plots/mix/interactions/utils.js +0 -45
- package/lib/plots/mix/interactions/utils.js.map +0 -1
- package/lib/plots/mix/types.d.ts +0 -125
- package/lib/plots/mix/types.js +0 -3
- package/lib/plots/mix/types.js.map +0 -1
- package/lib/plots/mix/utils.d.ts +0 -82
- package/lib/plots/mix/utils.js +0 -102
- package/lib/plots/mix/utils.js.map +0 -1
- package/lib/plots/pie/adaptor.d.ts +0 -24
- package/lib/plots/pie/adaptor.js +0 -295
- package/lib/plots/pie/adaptor.js.map +0 -1
- package/lib/plots/pie/contants.d.ts +0 -4
- package/lib/plots/pie/contants.js +0 -53
- package/lib/plots/pie/contants.js.map +0 -1
- package/lib/plots/pie/index.d.ts +0 -27
- package/lib/plots/pie/index.js +0 -65
- package/lib/plots/pie/index.js.map +0 -1
- package/lib/plots/pie/interactions/actions/legend-active.d.ts +0 -20
- package/lib/plots/pie/interactions/actions/legend-active.js +0 -71
- package/lib/plots/pie/interactions/actions/legend-active.js.map +0 -1
- package/lib/plots/pie/interactions/actions/statistic-active.d.ts +0 -13
- package/lib/plots/pie/interactions/actions/statistic-active.js +0 -82
- package/lib/plots/pie/interactions/actions/statistic-active.js.map +0 -1
- package/lib/plots/pie/interactions/index.d.ts +0 -1
- package/lib/plots/pie/interactions/index.js +0 -18
- package/lib/plots/pie/interactions/index.js.map +0 -1
- package/lib/plots/pie/interactions/util.d.ts +0 -7
- package/lib/plots/pie/interactions/util.js +0 -19
- package/lib/plots/pie/interactions/util.js.map +0 -1
- package/lib/plots/pie/types.d.ts +0 -51
- package/lib/plots/pie/types.js +0 -3
- package/lib/plots/pie/types.js.map +0 -1
- package/lib/plots/pie/utils.d.ts +0 -18
- package/lib/plots/pie/utils.js +0 -53
- package/lib/plots/pie/utils.js.map +0 -1
- package/lib/plots/progress/adaptor.d.ts +0 -13
- package/lib/plots/progress/adaptor.js +0 -61
- package/lib/plots/progress/adaptor.js.map +0 -1
- package/lib/plots/progress/constants.d.ts +0 -9
- package/lib/plots/progress/constants.js +0 -13
- package/lib/plots/progress/constants.js.map +0 -1
- package/lib/plots/progress/index.d.ts +0 -23
- package/lib/plots/progress/index.js +0 -44
- package/lib/plots/progress/index.js.map +0 -1
- package/lib/plots/progress/types.d.ts +0 -21
- package/lib/plots/progress/types.js +0 -3
- package/lib/plots/progress/types.js.map +0 -1
- package/lib/plots/progress/utils.d.ts +0 -8
- package/lib/plots/progress/utils.js +0 -26
- package/lib/plots/progress/utils.js.map +0 -1
- package/lib/plots/radar/adaptor.d.ts +0 -8
- package/lib/plots/radar/adaptor.js +0 -114
- package/lib/plots/radar/adaptor.js.map +0 -1
- package/lib/plots/radar/index.d.ts +0 -22
- package/lib/plots/radar/index.js +0 -76
- package/lib/plots/radar/index.js.map +0 -1
- package/lib/plots/radar/interactions/index.d.ts +0 -1
- package/lib/plots/radar/interactions/index.js +0 -10
- package/lib/plots/radar/interactions/index.js.map +0 -1
- package/lib/plots/radar/interactions/radar-tooltip-action.d.ts +0 -15
- package/lib/plots/radar/interactions/radar-tooltip-action.js +0 -77
- package/lib/plots/radar/interactions/radar-tooltip-action.js.map +0 -1
- package/lib/plots/radar/types.d.ts +0 -55
- package/lib/plots/radar/types.js +0 -3
- package/lib/plots/radar/types.js.map +0 -1
- package/lib/plots/radial-bar/adaptor.d.ts +0 -18
- package/lib/plots/radial-bar/adaptor.js +0 -124
- package/lib/plots/radial-bar/adaptor.js.map +0 -1
- package/lib/plots/radial-bar/constant.d.ts +0 -4
- package/lib/plots/radial-bar/constant.js +0 -22
- package/lib/plots/radial-bar/constant.js.map +0 -1
- package/lib/plots/radial-bar/index.d.ts +0 -25
- package/lib/plots/radial-bar/index.js +0 -47
- package/lib/plots/radial-bar/index.js.map +0 -1
- package/lib/plots/radial-bar/types.d.ts +0 -63
- package/lib/plots/radial-bar/types.js +0 -3
- package/lib/plots/radial-bar/types.js.map +0 -1
- package/lib/plots/radial-bar/utils.d.ts +0 -6
- package/lib/plots/radial-bar/utils.js +0 -32
- package/lib/plots/radial-bar/utils.js.map +0 -1
- package/lib/plots/ring-progress/adaptor.d.ts +0 -13
- package/lib/plots/ring-progress/adaptor.js +0 -58
- package/lib/plots/ring-progress/adaptor.js.map +0 -1
- package/lib/plots/ring-progress/constants.d.ts +0 -22
- package/lib/plots/ring-progress/constants.js +0 -26
- package/lib/plots/ring-progress/constants.js.map +0 -1
- package/lib/plots/ring-progress/index.d.ts +0 -23
- package/lib/plots/ring-progress/index.js +0 -49
- package/lib/plots/ring-progress/index.js.map +0 -1
- package/lib/plots/ring-progress/types.d.ts +0 -28
- package/lib/plots/ring-progress/types.js +0 -3
- package/lib/plots/ring-progress/types.js.map +0 -1
- package/lib/plots/rose/adaptor.d.ts +0 -13
- package/lib/plots/rose/adaptor.js +0 -144
- package/lib/plots/rose/adaptor.js.map +0 -1
- package/lib/plots/rose/constant.d.ts +0 -4
- package/lib/plots/rose/constant.js +0 -31
- package/lib/plots/rose/constant.js.map +0 -1
- package/lib/plots/rose/index.d.ts +0 -26
- package/lib/plots/rose/index.js +0 -46
- package/lib/plots/rose/index.js.map +0 -1
- package/lib/plots/rose/types.d.ts +0 -55
- package/lib/plots/rose/types.js +0 -3
- package/lib/plots/rose/types.js.map +0 -1
- package/lib/plots/sankey/adaptor.d.ts +0 -18
- package/lib/plots/sankey/adaptor.js +0 -162
- package/lib/plots/sankey/adaptor.js.map +0 -1
- package/lib/plots/sankey/circle.d.ts +0 -16
- package/lib/plots/sankey/circle.js +0 -99
- package/lib/plots/sankey/circle.js.map +0 -1
- package/lib/plots/sankey/constant.d.ts +0 -5
- package/lib/plots/sankey/constant.js +0 -9
- package/lib/plots/sankey/constant.js.map +0 -1
- package/lib/plots/sankey/helper.d.ts +0 -20
- package/lib/plots/sankey/helper.js +0 -59
- package/lib/plots/sankey/helper.js.map +0 -1
- package/lib/plots/sankey/index.d.ts +0 -27
- package/lib/plots/sankey/index.js +0 -121
- package/lib/plots/sankey/index.js.map +0 -1
- package/lib/plots/sankey/interactions/actions/node-drag.d.ts +0 -46
- package/lib/plots/sankey/interactions/actions/node-drag.js +0 -140
- package/lib/plots/sankey/interactions/actions/node-drag.js.map +0 -1
- package/lib/plots/sankey/interactions/index.d.ts +0 -1
- package/lib/plots/sankey/interactions/index.js +0 -4
- package/lib/plots/sankey/interactions/index.js.map +0 -1
- package/lib/plots/sankey/interactions/node-draggable.d.ts +0 -1
- package/lib/plots/sankey/interactions/node-draggable.js +0 -18
- package/lib/plots/sankey/interactions/node-draggable.js.map +0 -1
- package/lib/plots/sankey/layout.d.ts +0 -86
- package/lib/plots/sankey/layout.js +0 -93
- package/lib/plots/sankey/layout.js.map +0 -1
- package/lib/plots/sankey/sankey/align.d.ts +0 -4
- package/lib/plots/sankey/sankey/align.js +0 -24
- package/lib/plots/sankey/sankey/align.js.map +0 -1
- package/lib/plots/sankey/sankey/helper.d.ts +0 -14
- package/lib/plots/sankey/sankey/helper.js +0 -44
- package/lib/plots/sankey/sankey/helper.js.map +0 -1
- package/lib/plots/sankey/sankey/index.d.ts +0 -11
- package/lib/plots/sankey/sankey/index.js +0 -19
- package/lib/plots/sankey/sankey/index.js.map +0 -1
- package/lib/plots/sankey/sankey/sankey.d.ts +0 -24
- package/lib/plots/sankey/sankey/sankey.js +0 -405
- package/lib/plots/sankey/sankey/sankey.js.map +0 -1
- package/lib/plots/sankey/types.d.ts +0 -143
- package/lib/plots/sankey/types.js +0 -3
- package/lib/plots/sankey/types.js.map +0 -1
- package/lib/plots/scatter/adaptor.d.ts +0 -25
- package/lib/plots/scatter/adaptor.js +0 -276
- package/lib/plots/scatter/adaptor.js.map +0 -1
- package/lib/plots/scatter/constant.d.ts +0 -4
- package/lib/plots/scatter/constant.js +0 -20
- package/lib/plots/scatter/constant.js.map +0 -1
- package/lib/plots/scatter/index.d.ts +0 -25
- package/lib/plots/scatter/index.js +0 -61
- package/lib/plots/scatter/index.js.map +0 -1
- package/lib/plots/scatter/interactions/index.d.ts +0 -1
- package/lib/plots/scatter/interactions/index.js +0 -4
- package/lib/plots/scatter/interactions/index.js.map +0 -1
- package/lib/plots/scatter/types.d.ts +0 -125
- package/lib/plots/scatter/types.js +0 -3
- package/lib/plots/scatter/types.js.map +0 -1
- package/lib/plots/scatter/util.d.ts +0 -36
- package/lib/plots/scatter/util.js +0 -238
- package/lib/plots/scatter/util.js.map +0 -1
- package/lib/plots/stock/adaptor.d.ts +0 -28
- package/lib/plots/stock/adaptor.js +0 -128
- package/lib/plots/stock/adaptor.js.map +0 -1
- package/lib/plots/stock/constant.d.ts +0 -31
- package/lib/plots/stock/constant.js +0 -57
- package/lib/plots/stock/constant.js.map +0 -1
- package/lib/plots/stock/index.d.ts +0 -27
- package/lib/plots/stock/index.js +0 -49
- package/lib/plots/stock/index.js.map +0 -1
- package/lib/plots/stock/types.d.ts +0 -28
- package/lib/plots/stock/types.js +0 -3
- package/lib/plots/stock/types.js.map +0 -1
- package/lib/plots/stock/utils.d.ts +0 -8
- package/lib/plots/stock/utils.js +0 -24
- package/lib/plots/stock/utils.js.map +0 -1
- package/lib/plots/sunburst/adaptor.d.ts +0 -23
- package/lib/plots/sunburst/adaptor.js +0 -183
- package/lib/plots/sunburst/adaptor.js.map +0 -1
- package/lib/plots/sunburst/constant.d.ts +0 -13
- package/lib/plots/sunburst/constant.js +0 -50
- package/lib/plots/sunburst/constant.js.map +0 -1
- package/lib/plots/sunburst/index.d.ts +0 -28
- package/lib/plots/sunburst/index.js +0 -46
- package/lib/plots/sunburst/index.js.map +0 -1
- package/lib/plots/sunburst/interactions/index.d.ts +0 -2
- package/lib/plots/sunburst/interactions/index.js +0 -5
- package/lib/plots/sunburst/interactions/index.js.map +0 -1
- package/lib/plots/sunburst/types.d.ts +0 -66
- package/lib/plots/sunburst/types.js +0 -3
- package/lib/plots/sunburst/types.js.map +0 -1
- package/lib/plots/sunburst/utils.d.ts +0 -6
- package/lib/plots/sunburst/utils.js +0 -60
- package/lib/plots/sunburst/utils.js.map +0 -1
- package/lib/plots/tiny-area/adaptor.d.ts +0 -13
- package/lib/plots/tiny-area/adaptor.js +0 -68
- package/lib/plots/tiny-area/adaptor.js.map +0 -1
- package/lib/plots/tiny-area/constants.d.ts +0 -33
- package/lib/plots/tiny-area/constants.js +0 -23
- package/lib/plots/tiny-area/constants.js.map +0 -1
- package/lib/plots/tiny-area/index.d.ts +0 -23
- package/lib/plots/tiny-area/index.js +0 -46
- package/lib/plots/tiny-area/index.js.map +0 -1
- package/lib/plots/tiny-area/types.d.ts +0 -27
- package/lib/plots/tiny-area/types.js +0 -3
- package/lib/plots/tiny-area/types.js.map +0 -1
- package/lib/plots/tiny-column/adaptor.d.ts +0 -10
- package/lib/plots/tiny-column/adaptor.js +0 -46
- package/lib/plots/tiny-column/adaptor.js.map +0 -1
- package/lib/plots/tiny-column/constants.d.ts +0 -35
- package/lib/plots/tiny-column/constants.js +0 -28
- package/lib/plots/tiny-column/constants.js.map +0 -1
- package/lib/plots/tiny-column/index.d.ts +0 -23
- package/lib/plots/tiny-column/index.js +0 -46
- package/lib/plots/tiny-column/index.js.map +0 -1
- package/lib/plots/tiny-column/types.d.ts +0 -17
- package/lib/plots/tiny-column/types.js +0 -3
- package/lib/plots/tiny-column/types.js.map +0 -1
- package/lib/plots/tiny-line/adaptor.d.ts +0 -10
- package/lib/plots/tiny-line/adaptor.js +0 -49
- package/lib/plots/tiny-line/adaptor.js.map +0 -1
- package/lib/plots/tiny-line/constants.d.ts +0 -45
- package/lib/plots/tiny-line/constants.js +0 -34
- package/lib/plots/tiny-line/constants.js.map +0 -1
- package/lib/plots/tiny-line/index.d.ts +0 -23
- package/lib/plots/tiny-line/index.js +0 -46
- package/lib/plots/tiny-line/index.js.map +0 -1
- package/lib/plots/tiny-line/types.d.ts +0 -28
- package/lib/plots/tiny-line/types.js +0 -3
- package/lib/plots/tiny-line/types.js.map +0 -1
- package/lib/plots/tiny-line/utils.d.ts +0 -4
- package/lib/plots/tiny-line/utils.js +0 -9
- package/lib/plots/tiny-line/utils.js.map +0 -1
- package/lib/plots/treemap/adaptor.d.ts +0 -13
- package/lib/plots/treemap/adaptor.js +0 -133
- package/lib/plots/treemap/adaptor.js.map +0 -1
- package/lib/plots/treemap/constant.d.ts +0 -36
- package/lib/plots/treemap/constant.js +0 -42
- package/lib/plots/treemap/constant.js.map +0 -1
- package/lib/plots/treemap/index.d.ts +0 -23
- package/lib/plots/treemap/index.js +0 -52
- package/lib/plots/treemap/index.js.map +0 -1
- package/lib/plots/treemap/interactions/index.d.ts +0 -4
- package/lib/plots/treemap/interactions/index.js +0 -7
- package/lib/plots/treemap/interactions/index.js.map +0 -1
- package/lib/plots/treemap/types.d.ts +0 -30
- package/lib/plots/treemap/types.js +0 -3
- package/lib/plots/treemap/types.js.map +0 -1
- package/lib/plots/treemap/utils.d.ts +0 -21
- package/lib/plots/treemap/utils.js +0 -80
- package/lib/plots/treemap/utils.js.map +0 -1
- package/lib/plots/venn/adaptor.d.ts +0 -23
- package/lib/plots/venn/adaptor.js +0 -221
- package/lib/plots/venn/adaptor.js.map +0 -1
- package/lib/plots/venn/constant.d.ts +0 -7
- package/lib/plots/venn/constant.js +0 -52
- package/lib/plots/venn/constant.js.map +0 -1
- package/lib/plots/venn/index.d.ts +0 -24
- package/lib/plots/venn/index.js +0 -50
- package/lib/plots/venn/index.js.map +0 -1
- package/lib/plots/venn/interactions/actions/active.d.ts +0 -14
- package/lib/plots/venn/interactions/actions/active.js +0 -37
- package/lib/plots/venn/interactions/actions/active.js.map +0 -1
- package/lib/plots/venn/interactions/actions/highlight.d.ts +0 -16
- package/lib/plots/venn/interactions/actions/highlight.js +0 -42
- package/lib/plots/venn/interactions/actions/highlight.js.map +0 -1
- package/lib/plots/venn/interactions/actions/selected.d.ts +0 -33
- package/lib/plots/venn/interactions/actions/selected.js +0 -73
- package/lib/plots/venn/interactions/actions/selected.js.map +0 -1
- package/lib/plots/venn/interactions/index.d.ts +0 -1
- package/lib/plots/venn/interactions/index.js +0 -50
- package/lib/plots/venn/interactions/index.js.map +0 -1
- package/lib/plots/venn/interactions/util.d.ts +0 -3
- package/lib/plots/venn/interactions/util.js +0 -15
- package/lib/plots/venn/interactions/util.js.map +0 -1
- package/lib/plots/venn/label.d.ts +0 -1
- package/lib/plots/venn/label.js +0 -33
- package/lib/plots/venn/label.js.map +0 -1
- package/lib/plots/venn/layout/circleintersection.d.ts +0 -29
- package/lib/plots/venn/layout/circleintersection.js +0 -196
- package/lib/plots/venn/layout/circleintersection.js.map +0 -1
- package/lib/plots/venn/layout/diagram.d.ts +0 -17
- package/lib/plots/venn/layout/diagram.js +0 -201
- package/lib/plots/venn/layout/diagram.js.map +0 -1
- package/lib/plots/venn/layout/layout.d.ts +0 -27
- package/lib/plots/venn/layout/layout.js +0 -607
- package/lib/plots/venn/layout/layout.js.map +0 -1
- package/lib/plots/venn/shape.d.ts +0 -1
- package/lib/plots/venn/shape.js +0 -44
- package/lib/plots/venn/shape.js.map +0 -1
- package/lib/plots/venn/types.d.ts +0 -41
- package/lib/plots/venn/types.js +0 -4
- package/lib/plots/venn/types.js.map +0 -1
- package/lib/plots/venn/utils.d.ts +0 -27
- package/lib/plots/venn/utils.js +0 -97
- package/lib/plots/venn/utils.js.map +0 -1
- package/lib/plots/violin/adaptor.d.ts +0 -12
- package/lib/plots/violin/adaptor.js +0 -233
- package/lib/plots/violin/adaptor.js.map +0 -1
- package/lib/plots/violin/constant.d.ts +0 -11
- package/lib/plots/violin/constant.js +0 -61
- package/lib/plots/violin/constant.js.map +0 -1
- package/lib/plots/violin/index.d.ts +0 -25
- package/lib/plots/violin/index.js +0 -46
- package/lib/plots/violin/index.js.map +0 -1
- package/lib/plots/violin/types.d.ts +0 -72
- package/lib/plots/violin/types.js +0 -3
- package/lib/plots/violin/types.js.map +0 -1
- package/lib/plots/violin/utils.d.ts +0 -43
- package/lib/plots/violin/utils.js +0 -61
- package/lib/plots/violin/utils.js.map +0 -1
- package/lib/plots/waterfall/adaptor.d.ts +0 -13
- package/lib/plots/waterfall/adaptor.js +0 -197
- package/lib/plots/waterfall/adaptor.js.map +0 -1
- package/lib/plots/waterfall/constant.d.ts +0 -42
- package/lib/plots/waterfall/constant.js +0 -44
- package/lib/plots/waterfall/constant.js.map +0 -1
- package/lib/plots/waterfall/index.d.ts +0 -29
- package/lib/plots/waterfall/index.js +0 -51
- package/lib/plots/waterfall/index.js.map +0 -1
- package/lib/plots/waterfall/shape.d.ts +0 -1
- package/lib/plots/waterfall/shape.js +0 -60
- package/lib/plots/waterfall/shape.js.map +0 -1
- package/lib/plots/waterfall/types.d.ts +0 -70
- package/lib/plots/waterfall/types.js +0 -3
- package/lib/plots/waterfall/types.js.map +0 -1
- package/lib/plots/waterfall/utils.d.ts +0 -17
- package/lib/plots/waterfall/utils.js +0 -52
- package/lib/plots/waterfall/utils.js.map +0 -1
- package/lib/plots/word-cloud/adaptor.d.ts +0 -13
- package/lib/plots/word-cloud/adaptor.js +0 -74
- package/lib/plots/word-cloud/adaptor.js.map +0 -1
- package/lib/plots/word-cloud/constant.d.ts +0 -6
- package/lib/plots/word-cloud/constant.js +0 -33
- package/lib/plots/word-cloud/constant.js.map +0 -1
- package/lib/plots/word-cloud/index.d.ts +0 -35
- package/lib/plots/word-cloud/index.js +0 -94
- package/lib/plots/word-cloud/index.js.map +0 -1
- package/lib/plots/word-cloud/shapes/word-cloud.d.ts +0 -1
- package/lib/plots/word-cloud/shapes/word-cloud.js +0 -30
- package/lib/plots/word-cloud/shapes/word-cloud.js.map +0 -1
- package/lib/plots/word-cloud/types.d.ts +0 -149
- package/lib/plots/word-cloud/types.js +0 -3
- package/lib/plots/word-cloud/types.js.map +0 -1
- package/lib/plots/word-cloud/utils.d.ts +0 -34
- package/lib/plots/word-cloud/utils.js +0 -226
- package/lib/plots/word-cloud/utils.js.map +0 -1
- package/lib/plugin/index.d.ts +0 -48
- package/lib/plugin/index.js +0 -61
- package/lib/plugin/index.js.map +0 -1
- package/lib/types/animation.d.ts +0 -2
- package/lib/types/animation.js +0 -3
- package/lib/types/animation.js.map +0 -1
- package/lib/types/annotation.d.ts +0 -6
- package/lib/types/annotation.js +0 -3
- package/lib/types/annotation.js.map +0 -1
- package/lib/types/attr.d.ts +0 -20
- package/lib/types/attr.js.map +0 -1
- package/lib/types/axis.d.ts +0 -3
- package/lib/types/axis.js.map +0 -1
- package/lib/types/button.d.ts +0 -33
- package/lib/types/button.js +0 -3
- package/lib/types/button.js.map +0 -1
- package/lib/types/coordinate.d.ts +0 -13
- package/lib/types/coordinate.js +0 -3
- package/lib/types/coordinate.js.map +0 -1
- package/lib/types/drill-down.d.ts +0 -39
- package/lib/types/drill-down.js +0 -3
- package/lib/types/drill-down.js.map +0 -1
- package/lib/types/interaction.d.ts +0 -49
- package/lib/types/interaction.js +0 -3
- package/lib/types/interaction.js.map +0 -1
- package/lib/types/label.d.ts +0 -17
- package/lib/types/label.js +0 -3
- package/lib/types/label.js.map +0 -1
- package/lib/types/legend.d.ts +0 -2
- package/lib/types/legend.js +0 -3
- package/lib/types/legend.js.map +0 -1
- package/lib/types/locale.d.ts +0 -24
- package/lib/types/locale.js +0 -3
- package/lib/types/locale.js.map +0 -1
- package/lib/types/meta.d.ts +0 -14
- package/lib/types/meta.js +0 -3
- package/lib/types/meta.js.map +0 -1
- package/lib/types/pattern.d.ts +0 -87
- package/lib/types/pattern.js +0 -3
- package/lib/types/pattern.js.map +0 -1
- package/lib/types/relation-data.d.ts +0 -16
- package/lib/types/relation-data.js +0 -3
- package/lib/types/relation-data.js.map +0 -1
- package/lib/types/scrollbar.d.ts +0 -2
- package/lib/types/scrollbar.js +0 -3
- package/lib/types/scrollbar.js.map +0 -1
- package/lib/types/slider.d.ts +0 -2
- package/lib/types/slider.js +0 -3
- package/lib/types/slider.js.map +0 -1
- package/lib/types/state.d.ts +0 -22
- package/lib/types/state.js +0 -3
- package/lib/types/state.js.map +0 -1
- package/lib/types/statistic.d.ts +0 -64
- package/lib/types/statistic.js +0 -3
- package/lib/types/statistic.js.map +0 -1
- package/lib/types/tooltip.d.ts +0 -15
- package/lib/types/tooltip.js +0 -3
- package/lib/types/tooltip.js.map +0 -1
- package/lib/utils/color/blend.d.ts +0 -20
- package/lib/utils/color/blend.js +0 -99
- package/lib/utils/color/blend.js.map +0 -1
- package/lib/utils/context.d.ts +0 -4
- package/lib/utils/context.js +0 -15
- package/lib/utils/context.js.map +0 -1
- package/lib/utils/conversion.d.ts +0 -6
- package/lib/utils/conversion.js +0 -27
- package/lib/utils/conversion.js.map +0 -1
- package/lib/utils/data.d.ts +0 -23
- package/lib/utils/data.js +0 -95
- package/lib/utils/data.js.map +0 -1
- package/lib/utils/deep-assign.d.ts +0 -6
- package/lib/utils/deep-assign.js +0 -90
- package/lib/utils/deep-assign.js.map +0 -1
- package/lib/utils/dom.d.ts +0 -7
- package/lib/utils/dom.js +0 -24
- package/lib/utils/dom.js.map +0 -1
- package/lib/utils/flow.d.ts +0 -7
- package/lib/utils/flow.js +0 -20
- package/lib/utils/flow.js.map +0 -1
- package/lib/utils/geometry.d.ts +0 -19
- package/lib/utils/geometry.js +0 -47
- package/lib/utils/geometry.js.map +0 -1
- package/lib/utils/hierarchy/pack.d.ts +0 -6
- package/lib/utils/hierarchy/pack.js +0 -45
- package/lib/utils/hierarchy/pack.js.map +0 -1
- package/lib/utils/hierarchy/partition.d.ts +0 -11
- package/lib/utils/hierarchy/partition.js +0 -76
- package/lib/utils/hierarchy/partition.js.map +0 -1
- package/lib/utils/hierarchy/treemap.d.ts +0 -3
- package/lib/utils/hierarchy/treemap.js +0 -92
- package/lib/utils/hierarchy/treemap.js.map +0 -1
- package/lib/utils/hierarchy/types.d.ts +0 -20
- package/lib/utils/hierarchy/types.js +0 -3
- package/lib/utils/hierarchy/types.js.map +0 -1
- package/lib/utils/hierarchy/util.d.ts +0 -14
- package/lib/utils/hierarchy/util.js +0 -69
- package/lib/utils/hierarchy/util.js.map +0 -1
- package/lib/utils/invariant.d.ts +0 -23
- package/lib/utils/invariant.js +0 -64
- package/lib/utils/invariant.js.map +0 -1
- package/lib/utils/kebab-case.d.ts +0 -6
- package/lib/utils/kebab-case.js +0 -17
- package/lib/utils/kebab-case.js.map +0 -1
- package/lib/utils/label.d.ts +0 -5
- package/lib/utils/label.js +0 -21
- package/lib/utils/label.js.map +0 -1
- package/lib/utils/matrix.d.ts +0 -6
- package/lib/utils/matrix.js +0 -17
- package/lib/utils/matrix.js.map +0 -1
- package/lib/utils/measure-text.d.ts +0 -9
- package/lib/utils/measure-text.js +0 -24
- package/lib/utils/measure-text.js.map +0 -1
- package/lib/utils/number.d.ts +0 -14
- package/lib/utils/number.js +0 -26
- package/lib/utils/number.js.map +0 -1
- package/lib/utils/padding.d.ts +0 -15
- package/lib/utils/padding.js +0 -72
- package/lib/utils/padding.js.map +0 -1
- package/lib/utils/path.d.ts +0 -17
- package/lib/utils/path.js +0 -148
- package/lib/utils/path.js.map +0 -1
- package/lib/utils/pattern/dot.d.ts +0 -32
- package/lib/utils/pattern/dot.js +0 -74
- package/lib/utils/pattern/dot.js.map +0 -1
- package/lib/utils/pattern/index.d.ts +0 -17
- package/lib/utils/pattern/index.js +0 -31
- package/lib/utils/pattern/index.js.map +0 -1
- package/lib/utils/pattern/line.d.ts +0 -25
- package/lib/utils/pattern/line.js +0 -61
- package/lib/utils/pattern/line.js.map +0 -1
- package/lib/utils/pattern/square.d.ts +0 -28
- package/lib/utils/pattern/square.js +0 -66
- package/lib/utils/pattern/square.js.map +0 -1
- package/lib/utils/pattern/util.d.ts +0 -50
- package/lib/utils/pattern/util.js +0 -99
- package/lib/utils/pattern/util.js.map +0 -1
- package/lib/utils/pick.d.ts +0 -6
- package/lib/utils/pick.js +0 -22
- package/lib/utils/pick.js.map +0 -1
- package/lib/utils/statistic.d.ts +0 -36
- package/lib/utils/statistic.js +0 -165
- package/lib/utils/statistic.js.map +0 -1
- package/lib/utils/template.d.ts +0 -7
- package/lib/utils/template.js +0 -20
- package/lib/utils/template.js.map +0 -1
- package/lib/utils/tooltip.d.ts +0 -7
- package/lib/utils/tooltip.js +0 -27
- package/lib/utils/tooltip.js.map +0 -1
- package/lib/utils/transform/chord.d.ts +0 -34
- package/lib/utils/transform/chord.js +0 -187
- package/lib/utils/transform/chord.js.map +0 -1
- package/lib/utils/transform/histogram.d.ts +0 -15
- package/lib/utils/transform/histogram.js +0 -82
- package/lib/utils/transform/histogram.js.map +0 -1
- package/lib/utils/transform/percent.d.ts +0 -26
- package/lib/utils/transform/percent.js +0 -70
- package/lib/utils/transform/percent.js.map +0 -1
- package/lib/utils/transform/quantile.d.ts +0 -62
- package/lib/utils/transform/quantile.js +0 -200
- package/lib/utils/transform/quantile.js.map +0 -1
- package/lib/utils/transform/sankey.d.ts +0 -0
- package/lib/utils/transform/sankey.js +0 -1
- package/lib/utils/transform/sankey.js.map +0 -1
- package/lib/utils/transform/word-cloud.d.ts +0 -30
- package/lib/utils/transform/word-cloud.js +0 -425
- package/lib/utils/transform/word-cloud.js.map +0 -1
- package/lib/utils/view.d.ts +0 -28
- package/lib/utils/view.js +0 -62
- package/lib/utils/view.js.map +0 -1
- package/src/adaptor/brush.ts +0 -58
- package/src/adaptor/common.ts +0 -228
- package/src/adaptor/connected-area.ts +0 -94
- package/src/adaptor/conversion-tag.ts +0 -253
- package/src/adaptor/geometries/area.ts +0 -50
- package/src/adaptor/geometries/base.ts +0 -281
- package/src/adaptor/geometries/edge.ts +0 -43
- package/src/adaptor/geometries/index.ts +0 -17
- package/src/adaptor/geometries/interval.ts +0 -134
- package/src/adaptor/geometries/line.ts +0 -54
- package/src/adaptor/geometries/point.ts +0 -48
- package/src/adaptor/geometries/polygon.ts +0 -43
- package/src/adaptor/geometries/schema.ts +0 -43
- package/src/adaptor/geometries/violin.ts +0 -44
- package/src/adaptor/pattern.ts +0 -66
- package/src/constant.ts +0 -25
- package/src/core/adaptor.ts +0 -17
- package/src/core/global.ts +0 -17
- package/src/core/locale.ts +0 -31
- package/src/interactions/actions/drill-down.ts +0 -302
- package/src/interactions/actions/reset-button.ts +0 -161
- package/src/interactions/brush.ts +0 -316
- package/src/interactions/drag-move.ts +0 -13
- package/src/interactions/drill-down.ts +0 -54
- package/src/lab.ts +0 -34
- package/src/locales/en_US.ts +0 -31
- package/src/locales/zh_CN.ts +0 -31
- package/src/plots/_template/adaptor.ts +0 -51
- package/src/plots/_template/constant.ts +0 -0
- package/src/plots/_template/index.ts +0 -21
- package/src/plots/_template/types.ts +0 -9
- package/src/plots/area/adaptor.ts +0 -180
- package/src/plots/area/constants.ts +0 -23
- package/src/plots/area/index.ts +0 -47
- package/src/plots/area/types.ts +0 -67
- package/src/plots/bar/adaptor.ts +0 -145
- package/src/plots/bar/constants.ts +0 -19
- package/src/plots/bar/index.ts +0 -53
- package/src/plots/bar/types.ts +0 -27
- package/src/plots/bidirectional-bar/adaptor.ts +0 -349
- package/src/plots/bidirectional-bar/constant.ts +0 -4
- package/src/plots/bidirectional-bar/index.ts +0 -68
- package/src/plots/bidirectional-bar/types.ts +0 -36
- package/src/plots/bidirectional-bar/utils.ts +0 -92
- package/src/plots/box/adaptor.ts +0 -171
- package/src/plots/box/constant.ts +0 -30
- package/src/plots/box/index.ts +0 -50
- package/src/plots/box/types.ts +0 -30
- package/src/plots/box/utils.ts +0 -22
- package/src/plots/bullet/adaptor.ts +0 -204
- package/src/plots/bullet/constant.ts +0 -32
- package/src/plots/bullet/index.ts +0 -43
- package/src/plots/bullet/types.ts +0 -57
- package/src/plots/bullet/utils.ts +0 -75
- package/src/plots/chord/adaptor.ts +0 -196
- package/src/plots/chord/constant.ts +0 -58
- package/src/plots/chord/index.ts +0 -33
- package/src/plots/chord/types.ts +0 -49
- package/src/plots/circle-packing/adaptor.ts +0 -230
- package/src/plots/circle-packing/constant.ts +0 -32
- package/src/plots/circle-packing/index.ts +0 -49
- package/src/plots/circle-packing/interactions/index.ts +0 -2
- package/src/plots/circle-packing/types.ts +0 -46
- package/src/plots/circle-packing/utils.ts +0 -89
- package/src/plots/column/constants.ts +0 -19
- package/src/plots/column/types.ts +0 -94
- package/src/plots/dual-axes/adaptor.ts +0 -511
- package/src/plots/dual-axes/constant.ts +0 -21
- package/src/plots/dual-axes/index.ts +0 -29
- package/src/plots/dual-axes/types.ts +0 -104
- package/src/plots/dual-axes/util/geometry.ts +0 -88
- package/src/plots/dual-axes/util/legend.ts +0 -85
- package/src/plots/dual-axes/util/option.ts +0 -91
- package/src/plots/dual-axes/util/render-sider.ts +0 -33
- package/src/plots/facet/adaptor.ts +0 -127
- package/src/plots/facet/constant.ts +0 -23
- package/src/plots/facet/index.ts +0 -34
- package/src/plots/facet/types.ts +0 -152
- package/src/plots/facet/utils.ts +0 -86
- package/src/plots/funnel/adaptor.ts +0 -188
- package/src/plots/funnel/constant.ts +0 -47
- package/src/plots/funnel/geometries/basic.ts +0 -118
- package/src/plots/funnel/geometries/common.ts +0 -82
- package/src/plots/funnel/geometries/compare.ts +0 -182
- package/src/plots/funnel/geometries/dynamic-height.ts +0 -156
- package/src/plots/funnel/geometries/facet.ts +0 -57
- package/src/plots/funnel/index.ts +0 -84
- package/src/plots/funnel/interactions/funnel-conversion-tag.ts +0 -57
- package/src/plots/funnel/interactions/index.ts +0 -11
- package/src/plots/funnel/types.ts +0 -75
- package/src/plots/gauge/adaptor.ts +0 -225
- package/src/plots/gauge/constants.ts +0 -71
- package/src/plots/gauge/index.ts +0 -72
- package/src/plots/gauge/shapes/indicator.ts +0 -44
- package/src/plots/gauge/shapes/meter-gauge.ts +0 -67
- package/src/plots/gauge/types.ts +0 -138
- package/src/plots/gauge/utils.ts +0 -43
- package/src/plots/heatmap/adaptor.ts +0 -204
- package/src/plots/heatmap/constant.ts +0 -39
- package/src/plots/heatmap/index.ts +0 -37
- package/src/plots/heatmap/shapes/circle.ts +0 -30
- package/src/plots/heatmap/shapes/square.ts +0 -31
- package/src/plots/heatmap/types.ts +0 -68
- package/src/plots/histogram/adaptor.ts +0 -131
- package/src/plots/histogram/constant.ts +0 -21
- package/src/plots/histogram/index.ts +0 -42
- package/src/plots/histogram/types.ts +0 -29
- package/src/plots/line/constants.ts +0 -21
- package/src/plots/line/interactions/index.ts +0 -18
- package/src/plots/line/interactions/marker-active.ts +0 -34
- package/src/plots/line/types.ts +0 -64
- package/src/plots/liquid/adaptor.ts +0 -104
- package/src/plots/liquid/constants.ts +0 -26
- package/src/plots/liquid/index.ts +0 -62
- package/src/plots/liquid/shapes/liquid.ts +0 -484
- package/src/plots/liquid/types.ts +0 -99
- package/src/plots/liquid/utils.ts +0 -8
- package/src/plots/mix/adaptor.ts +0 -178
- package/src/plots/mix/index.ts +0 -30
- package/src/plots/mix/interactions/association.ts +0 -178
- package/src/plots/mix/interactions/index.ts +0 -4
- package/src/plots/mix/interactions/utils.ts +0 -41
- package/src/plots/mix/types.ts +0 -129
- package/src/plots/mix/utils.ts +0 -183
- package/src/plots/pie/adaptor.ts +0 -340
- package/src/plots/pie/contants.ts +0 -50
- package/src/plots/pie/index.ts +0 -68
- package/src/plots/pie/interactions/actions/legend-active.ts +0 -65
- package/src/plots/pie/interactions/actions/statistic-active.ts +0 -83
- package/src/plots/pie/interactions/index.ts +0 -17
- package/src/plots/pie/interactions/util.ts +0 -16
- package/src/plots/pie/types.ts +0 -54
- package/src/plots/pie/utils.ts +0 -51
- package/src/plots/progress/adaptor.ts +0 -67
- package/src/plots/progress/constants.ts +0 -10
- package/src/plots/progress/index.ts +0 -41
- package/src/plots/progress/types.ts +0 -22
- package/src/plots/progress/utils.ts +0 -22
- package/src/plots/radar/adaptor.ts +0 -135
- package/src/plots/radar/index.ts +0 -72
- package/src/plots/radar/interactions/index.ts +0 -8
- package/src/plots/radar/interactions/radar-tooltip-action.ts +0 -64
- package/src/plots/radar/types.ts +0 -56
- package/src/plots/radial-bar/adaptor.ts +0 -147
- package/src/plots/radial-bar/constant.ts +0 -19
- package/src/plots/radial-bar/index.ts +0 -43
- package/src/plots/radial-bar/types.ts +0 -67
- package/src/plots/radial-bar/utils.ts +0 -27
- package/src/plots/ring-progress/adaptor.ts +0 -66
- package/src/plots/ring-progress/constants.ts +0 -22
- package/src/plots/ring-progress/index.ts +0 -54
- package/src/plots/ring-progress/types.ts +0 -29
- package/src/plots/rose/adaptor.ts +0 -173
- package/src/plots/rose/constant.ts +0 -28
- package/src/plots/rose/index.ts +0 -43
- package/src/plots/rose/types.ts +0 -56
- package/src/plots/sankey/adaptor.ts +0 -190
- package/src/plots/sankey/circle.ts +0 -108
- package/src/plots/sankey/constant.ts +0 -5
- package/src/plots/sankey/helper.ts +0 -92
- package/src/plots/sankey/index.ts +0 -119
- package/src/plots/sankey/interactions/actions/node-drag.ts +0 -175
- package/src/plots/sankey/interactions/index.ts +0 -1
- package/src/plots/sankey/interactions/node-draggable.ts +0 -17
- package/src/plots/sankey/layout.ts +0 -187
- package/src/plots/sankey/sankey/align.ts +0 -21
- package/src/plots/sankey/sankey/helper.ts +0 -42
- package/src/plots/sankey/sankey/index.ts +0 -11
- package/src/plots/sankey/sankey/sankey.ts +0 -405
- package/src/plots/sankey/types.ts +0 -146
- package/src/plots/scatter/adaptor.ts +0 -355
- package/src/plots/scatter/constant.ts +0 -17
- package/src/plots/scatter/index.ts +0 -63
- package/src/plots/scatter/interactions/index.ts +0 -1
- package/src/plots/scatter/types.ts +0 -142
- package/src/plots/scatter/util.ts +0 -282
- package/src/plots/stock/adaptor.ts +0 -140
- package/src/plots/stock/constant.ts +0 -56
- package/src/plots/stock/index.ts +0 -46
- package/src/plots/stock/types.ts +0 -31
- package/src/plots/stock/utils.ts +0 -19
- package/src/plots/sunburst/adaptor.ts +0 -239
- package/src/plots/sunburst/constant.ts +0 -54
- package/src/plots/sunburst/index.ts +0 -43
- package/src/plots/sunburst/interactions/index.ts +0 -2
- package/src/plots/sunburst/types.ts +0 -76
- package/src/plots/sunburst/utils.ts +0 -69
- package/src/plots/tiny-area/adaptor.ts +0 -78
- package/src/plots/tiny-area/constants.ts +0 -21
- package/src/plots/tiny-area/index.ts +0 -43
- package/src/plots/tiny-area/types.ts +0 -28
- package/src/plots/tiny-column/adaptor.ts +0 -50
- package/src/plots/tiny-column/constants.ts +0 -27
- package/src/plots/tiny-column/index.ts +0 -43
- package/src/plots/tiny-column/types.ts +0 -18
- package/src/plots/tiny-line/adaptor.ts +0 -56
- package/src/plots/tiny-line/constants.ts +0 -34
- package/src/plots/tiny-line/index.ts +0 -43
- package/src/plots/tiny-line/types.ts +0 -29
- package/src/plots/tiny-line/utils.ts +0 -5
- package/src/plots/treemap/adaptor.ts +0 -161
- package/src/plots/treemap/constant.ts +0 -38
- package/src/plots/treemap/index.ts +0 -50
- package/src/plots/treemap/interactions/index.ts +0 -4
- package/src/plots/treemap/types.ts +0 -31
- package/src/plots/treemap/utils.ts +0 -106
- package/src/plots/venn/adaptor.ts +0 -278
- package/src/plots/venn/constant.ts +0 -51
- package/src/plots/venn/index.ts +0 -47
- package/src/plots/venn/interactions/actions/active.ts +0 -31
- package/src/plots/venn/interactions/actions/highlight.ts +0 -37
- package/src/plots/venn/interactions/actions/selected.ts +0 -65
- package/src/plots/venn/interactions/index.ts +0 -55
- package/src/plots/venn/interactions/util.ts +0 -12
- package/src/plots/venn/label.ts +0 -26
- package/src/plots/venn/layout/circleintersection.ts +0 -223
- package/src/plots/venn/layout/diagram.ts +0 -219
- package/src/plots/venn/layout/layout.ts +0 -734
- package/src/plots/venn/shape.ts +0 -53
- package/src/plots/venn/types.ts +0 -40
- package/src/plots/venn/utils.ts +0 -106
- package/src/plots/violin/adaptor.ts +0 -308
- package/src/plots/violin/constant.ts +0 -62
- package/src/plots/violin/index.ts +0 -42
- package/src/plots/violin/types.ts +0 -75
- package/src/plots/violin/utils.ts +0 -102
- package/src/plots/waterfall/adaptor.ts +0 -264
- package/src/plots/waterfall/constant.ts +0 -41
- package/src/plots/waterfall/index.ts +0 -48
- package/src/plots/waterfall/shape.ts +0 -76
- package/src/plots/waterfall/types.ts +0 -72
- package/src/plots/waterfall/utils.ts +0 -66
- package/src/plots/word-cloud/adaptor.ts +0 -81
- package/src/plots/word-cloud/constant.ts +0 -32
- package/src/plots/word-cloud/index.ts +0 -98
- package/src/plots/word-cloud/shapes/word-cloud.ts +0 -37
- package/src/plots/word-cloud/types.ts +0 -150
- package/src/plots/word-cloud/utils.ts +0 -267
- package/src/plugin/index.ts +0 -63
- package/src/types/animation.ts +0 -3
- package/src/types/annotation.ts +0 -15
- package/src/types/attr.ts +0 -22
- package/src/types/axis.ts +0 -4
- package/src/types/button.ts +0 -34
- package/src/types/coordinate.ts +0 -17
- package/src/types/drill-down.ts +0 -40
- package/src/types/interaction.ts +0 -52
- package/src/types/label.ts +0 -20
- package/src/types/legend.ts +0 -3
- package/src/types/locale.ts +0 -30
- package/src/types/meta.ts +0 -15
- package/src/types/pattern.ts +0 -90
- package/src/types/relation-data.ts +0 -18
- package/src/types/scrollbar.ts +0 -3
- package/src/types/slider.ts +0 -3
- package/src/types/state.ts +0 -21
- package/src/types/statistic.ts +0 -66
- package/src/types/tooltip.ts +0 -18
- package/src/utils/color/blend.ts +0 -103
- package/src/utils/context.ts +0 -12
- package/src/utils/conversion.ts +0 -26
- package/src/utils/data.ts +0 -115
- package/src/utils/deep-assign.ts +0 -84
- package/src/utils/dom.ts +0 -24
- package/src/utils/flow.ts +0 -13
- package/src/utils/geometry.ts +0 -58
- package/src/utils/hierarchy/pack.ts +0 -49
- package/src/utils/hierarchy/partition.ts +0 -88
- package/src/utils/hierarchy/treemap.ts +0 -93
- package/src/utils/hierarchy/types.ts +0 -27
- package/src/utils/hierarchy/util.ts +0 -71
- package/src/utils/invariant.ts +0 -49
- package/src/utils/kebab-case.ts +0 -12
- package/src/utils/label.ts +0 -15
- package/src/utils/matrix.ts +0 -13
- package/src/utils/measure-text.ts +0 -19
- package/src/utils/number.ts +0 -22
- package/src/utils/padding.ts +0 -70
- package/src/utils/path.ts +0 -161
- package/src/utils/pattern/dot.ts +0 -86
- package/src/utils/pattern/index.ts +0 -45
- package/src/utils/pattern/line.ts +0 -70
- package/src/utils/pattern/square.ts +0 -78
- package/src/utils/pattern/util.ts +0 -104
- package/src/utils/pick.ts +0 -18
- package/src/utils/statistic.ts +0 -197
- package/src/utils/template.ts +0 -18
- package/src/utils/tooltip.ts +0 -27
- package/src/utils/transform/chord.ts +0 -231
- package/src/utils/transform/histogram.ts +0 -90
- package/src/utils/transform/percent.ts +0 -96
- package/src/utils/transform/quantile.ts +0 -216
- package/src/utils/transform/sankey.ts +0 -0
- package/src/utils/transform/word-cloud.ts +0 -537
- package/src/utils/view.ts +0 -64
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Adaptor } from '../../core/adaptor';
|
|
2
|
-
import { Plot } from '../../core/plot';
|
|
3
|
-
import { Data } from '../../types';
|
|
4
|
-
import './interactions';
|
|
5
|
-
import { SankeyOptions } from './types';
|
|
6
|
-
export type { SankeyOptions };
|
|
7
|
-
/**
|
|
8
|
-
* 桑基图 Sankey
|
|
9
|
-
*/
|
|
10
|
-
export declare class Sankey extends Plot<SankeyOptions> {
|
|
11
|
-
/** 图表类型 */
|
|
12
|
-
type: string;
|
|
13
|
-
static getDefaultOptions(): Partial<SankeyOptions>;
|
|
14
|
-
/**
|
|
15
|
-
* @override
|
|
16
|
-
* @param data
|
|
17
|
-
*/
|
|
18
|
-
changeData(data: Data): void;
|
|
19
|
-
/**
|
|
20
|
-
* 获取适配器
|
|
21
|
-
*/
|
|
22
|
-
protected getSchemaAdaptor(): Adaptor<SankeyOptions>;
|
|
23
|
-
/**
|
|
24
|
-
* 获取 条形图 默认配置
|
|
25
|
-
*/
|
|
26
|
-
protected getDefaultOptions(): Partial<SankeyOptions>;
|
|
27
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { get } from '@antv/util';
|
|
3
|
-
import { Plot } from '../../core/plot';
|
|
4
|
-
import { findViewById } from '../../utils';
|
|
5
|
-
import { adaptor } from './adaptor';
|
|
6
|
-
import { EDGES_VIEW_ID, NODES_VIEW_ID } from './constant';
|
|
7
|
-
import { transformToViewsData } from './helper';
|
|
8
|
-
// 桑基图内置交互
|
|
9
|
-
import './interactions';
|
|
10
|
-
/**
|
|
11
|
-
* 桑基图 Sankey
|
|
12
|
-
*/
|
|
13
|
-
var Sankey = /** @class */ (function (_super) {
|
|
14
|
-
__extends(Sankey, _super);
|
|
15
|
-
function Sankey() {
|
|
16
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
-
/** 图表类型 */
|
|
18
|
-
_this.type = 'sankey';
|
|
19
|
-
return _this;
|
|
20
|
-
}
|
|
21
|
-
Sankey.getDefaultOptions = function () {
|
|
22
|
-
return {
|
|
23
|
-
appendPadding: 8,
|
|
24
|
-
syncViewPadding: true,
|
|
25
|
-
nodeStyle: {
|
|
26
|
-
opacity: 1,
|
|
27
|
-
fillOpacity: 1,
|
|
28
|
-
lineWidth: 1,
|
|
29
|
-
},
|
|
30
|
-
edgeStyle: {
|
|
31
|
-
opacity: 0.3,
|
|
32
|
-
lineWidth: 0,
|
|
33
|
-
},
|
|
34
|
-
edgeState: {
|
|
35
|
-
active: {
|
|
36
|
-
style: {
|
|
37
|
-
opacity: 0.8,
|
|
38
|
-
lineWidth: 0,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
label: {
|
|
43
|
-
formatter: function (_a) {
|
|
44
|
-
var name = _a.name;
|
|
45
|
-
return name;
|
|
46
|
-
},
|
|
47
|
-
callback: function (x) {
|
|
48
|
-
var isLast = x[1] === 1; // 最后一列靠边的节点
|
|
49
|
-
return {
|
|
50
|
-
style: {
|
|
51
|
-
fill: '#545454',
|
|
52
|
-
textAlign: isLast ? 'end' : 'start',
|
|
53
|
-
},
|
|
54
|
-
offsetX: isLast ? -8 : 8,
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
layout: [
|
|
58
|
-
{
|
|
59
|
-
type: 'hide-overlap',
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
tooltip: {
|
|
64
|
-
showTitle: false,
|
|
65
|
-
showMarkers: false,
|
|
66
|
-
shared: false,
|
|
67
|
-
// 内置:node 不显示 tooltip,edge 显示 tooltip
|
|
68
|
-
showContent: function (items) {
|
|
69
|
-
return !get(items, [0, 'data', 'isNode']);
|
|
70
|
-
},
|
|
71
|
-
formatter: function (datum) {
|
|
72
|
-
var source = datum.source, target = datum.target, value = datum.value;
|
|
73
|
-
return {
|
|
74
|
-
name: source + ' -> ' + target,
|
|
75
|
-
value: value,
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
nodeWidthRatio: 0.008,
|
|
80
|
-
nodePaddingRatio: 0.01,
|
|
81
|
-
animation: {
|
|
82
|
-
appear: {
|
|
83
|
-
animation: 'wave-in',
|
|
84
|
-
},
|
|
85
|
-
enter: {
|
|
86
|
-
animation: 'wave-in',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* @override
|
|
93
|
-
* @param data
|
|
94
|
-
*/
|
|
95
|
-
Sankey.prototype.changeData = function (data) {
|
|
96
|
-
this.updateOption({ data: data });
|
|
97
|
-
var _a = transformToViewsData(this.options, this.chart.width, this.chart.height), nodes = _a.nodes, edges = _a.edges;
|
|
98
|
-
var nodesView = findViewById(this.chart, NODES_VIEW_ID);
|
|
99
|
-
var edgesView = findViewById(this.chart, EDGES_VIEW_ID);
|
|
100
|
-
nodesView.changeData(nodes);
|
|
101
|
-
edgesView.changeData(edges);
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* 获取适配器
|
|
105
|
-
*/
|
|
106
|
-
Sankey.prototype.getSchemaAdaptor = function () {
|
|
107
|
-
return adaptor;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* 获取 条形图 默认配置
|
|
111
|
-
*/
|
|
112
|
-
Sankey.prototype.getDefaultOptions = function () {
|
|
113
|
-
return Sankey.getDefaultOptions();
|
|
114
|
-
};
|
|
115
|
-
return Sankey;
|
|
116
|
-
}(Plot));
|
|
117
|
-
export { Sankey };
|
|
118
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plots/sankey/index.ts"],"names":[],"mappings":"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","sourcesContent":["import { get } from '@antv/util';\nimport { Adaptor } from '../../core/adaptor';\nimport { Plot } from '../../core/plot';\nimport { Data, Datum } from '../../types';\nimport { findViewById } from '../../utils';\nimport { adaptor } from './adaptor';\nimport { EDGES_VIEW_ID, NODES_VIEW_ID } from './constant';\nimport { transformToViewsData } from './helper';\n// 桑基图内置交互\nimport './interactions';\nimport { SankeyOptions } from './types';\n\nexport type { SankeyOptions };\n\n/**\n * 桑基图 Sankey\n */\nexport class Sankey extends Plot<SankeyOptions> {\n /** 图表类型 */\n public type: string = 'sankey';\n\n static getDefaultOptions(): Partial<SankeyOptions> {\n return {\n appendPadding: 8,\n syncViewPadding: true,\n nodeStyle: {\n opacity: 1,\n fillOpacity: 1,\n lineWidth: 1,\n },\n edgeStyle: {\n opacity: 0.3,\n lineWidth: 0,\n },\n edgeState: {\n active: {\n style: {\n opacity: 0.8,\n lineWidth: 0,\n },\n },\n },\n label: {\n formatter: ({ name }) => name,\n callback: (x: number[]) => {\n const isLast = x[1] === 1; // 最后一列靠边的节点\n return {\n style: {\n fill: '#545454',\n textAlign: isLast ? 'end' : 'start',\n },\n offsetX: isLast ? -8 : 8,\n };\n },\n layout: [\n {\n type: 'hide-overlap',\n },\n ],\n },\n tooltip: {\n showTitle: false,\n showMarkers: false,\n shared: false,\n // 内置:node 不显示 tooltip,edge 显示 tooltip\n showContent: (items) => {\n return !get(items, [0, 'data', 'isNode']);\n },\n formatter: (datum: Datum) => {\n const { source, target, value } = datum;\n return {\n name: source + ' -> ' + target,\n value,\n };\n },\n },\n nodeWidthRatio: 0.008,\n nodePaddingRatio: 0.01,\n animation: {\n appear: {\n animation: 'wave-in',\n },\n enter: {\n animation: 'wave-in',\n },\n },\n };\n }\n\n /**\n * @override\n * @param data\n */\n public changeData(data: Data) {\n this.updateOption({ data });\n\n const { nodes, edges } = transformToViewsData(this.options, this.chart.width, this.chart.height);\n\n const nodesView = findViewById(this.chart, NODES_VIEW_ID);\n const edgesView = findViewById(this.chart, EDGES_VIEW_ID);\n\n nodesView.changeData(nodes);\n edgesView.changeData(edges);\n }\n\n /**\n * 获取适配器\n */\n protected getSchemaAdaptor(): Adaptor<SankeyOptions> {\n return adaptor;\n }\n\n /**\n * 获取 条形图 默认配置\n */\n protected getDefaultOptions() {\n return Sankey.getDefaultOptions();\n }\n}\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Action } from '@antv/g2';
|
|
2
|
-
export declare class SankeyNodeDragAction extends Action {
|
|
3
|
-
/**
|
|
4
|
-
* 是否在拖拽中的标记
|
|
5
|
-
*/
|
|
6
|
-
private isDragging;
|
|
7
|
-
/**
|
|
8
|
-
* 鼠标上一次的位置的坐标点
|
|
9
|
-
*/
|
|
10
|
-
private prevPoint;
|
|
11
|
-
/**
|
|
12
|
-
* 之前的节点动画配置
|
|
13
|
-
*/
|
|
14
|
-
private prevNodeAnimateCfg;
|
|
15
|
-
/**
|
|
16
|
-
* 之前的边动画配置
|
|
17
|
-
*/
|
|
18
|
-
private prevEdgeAnimateCfg;
|
|
19
|
-
/**
|
|
20
|
-
* 当前拖拽的 element 索引
|
|
21
|
-
*/
|
|
22
|
-
private currentElementIdx;
|
|
23
|
-
/**
|
|
24
|
-
* 当前操作的是否是 element
|
|
25
|
-
*/
|
|
26
|
-
private isNodeElement;
|
|
27
|
-
private getNodeView;
|
|
28
|
-
private getEdgeView;
|
|
29
|
-
/**
|
|
30
|
-
* 获取当前操作的 index
|
|
31
|
-
* @param element
|
|
32
|
-
*/
|
|
33
|
-
private getCurrentDatumIdx;
|
|
34
|
-
/**
|
|
35
|
-
* 点击下去,开始
|
|
36
|
-
*/
|
|
37
|
-
start(): void;
|
|
38
|
-
/**
|
|
39
|
-
* 移动过程中,平移
|
|
40
|
-
*/
|
|
41
|
-
translate(): void;
|
|
42
|
-
/**
|
|
43
|
-
* 结论,清除状态
|
|
44
|
-
*/
|
|
45
|
-
end(): void;
|
|
46
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends, __spreadArray } from "tslib";
|
|
2
|
-
import { Action } from '@antv/g2';
|
|
3
|
-
import { get } from '@antv/util';
|
|
4
|
-
import { findViewById } from '../../../../utils';
|
|
5
|
-
import { EDGES_VIEW_ID, NODES_VIEW_ID } from '../../constant';
|
|
6
|
-
var SankeyNodeDragAction = /** @class */ (function (_super) {
|
|
7
|
-
__extends(SankeyNodeDragAction, _super);
|
|
8
|
-
function SankeyNodeDragAction() {
|
|
9
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
/**
|
|
11
|
-
* 是否在拖拽中的标记
|
|
12
|
-
*/
|
|
13
|
-
_this.isDragging = false;
|
|
14
|
-
return _this;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 当前操作的是否是 element
|
|
18
|
-
*/
|
|
19
|
-
SankeyNodeDragAction.prototype.isNodeElement = function () {
|
|
20
|
-
var shape = get(this.context, 'event.target');
|
|
21
|
-
if (shape) {
|
|
22
|
-
var element = shape.get('element');
|
|
23
|
-
return element && element.getModel().data.isNode;
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
26
|
-
};
|
|
27
|
-
SankeyNodeDragAction.prototype.getNodeView = function () {
|
|
28
|
-
return findViewById(this.context.view, NODES_VIEW_ID);
|
|
29
|
-
};
|
|
30
|
-
SankeyNodeDragAction.prototype.getEdgeView = function () {
|
|
31
|
-
return findViewById(this.context.view, EDGES_VIEW_ID);
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* 获取当前操作的 index
|
|
35
|
-
* @param element
|
|
36
|
-
*/
|
|
37
|
-
SankeyNodeDragAction.prototype.getCurrentDatumIdx = function (element) {
|
|
38
|
-
return this.getNodeView().geometries[0].elements.indexOf(element);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* 点击下去,开始
|
|
42
|
-
*/
|
|
43
|
-
SankeyNodeDragAction.prototype.start = function () {
|
|
44
|
-
// 记录开始了的状态
|
|
45
|
-
if (this.isNodeElement()) {
|
|
46
|
-
this.prevPoint = {
|
|
47
|
-
x: get(this.context, 'event.x'),
|
|
48
|
-
y: get(this.context, 'event.y'),
|
|
49
|
-
};
|
|
50
|
-
var element = this.context.event.target.get('element');
|
|
51
|
-
var idx = this.getCurrentDatumIdx(element);
|
|
52
|
-
if (idx === -1) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
this.currentElementIdx = idx;
|
|
56
|
-
this.context.isDragging = true;
|
|
57
|
-
this.isDragging = true;
|
|
58
|
-
// 关闭动画并暂存配置
|
|
59
|
-
this.prevNodeAnimateCfg = this.getNodeView().getOptions().animate;
|
|
60
|
-
this.prevEdgeAnimateCfg = this.getEdgeView().getOptions().animate;
|
|
61
|
-
this.getNodeView().animate(false);
|
|
62
|
-
this.getEdgeView().animate(false);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* 移动过程中,平移
|
|
67
|
-
*/
|
|
68
|
-
SankeyNodeDragAction.prototype.translate = function () {
|
|
69
|
-
if (this.isDragging) {
|
|
70
|
-
var chart = this.context.view;
|
|
71
|
-
var currentPoint = {
|
|
72
|
-
x: get(this.context, 'event.x'),
|
|
73
|
-
y: get(this.context, 'event.y'),
|
|
74
|
-
};
|
|
75
|
-
var x = currentPoint.x - this.prevPoint.x;
|
|
76
|
-
var y = currentPoint.y - this.prevPoint.y;
|
|
77
|
-
var nodeView = this.getNodeView();
|
|
78
|
-
var element = nodeView.geometries[0].elements[this.currentElementIdx];
|
|
79
|
-
// 修改数据
|
|
80
|
-
if (element && element.getModel()) {
|
|
81
|
-
var prevDatum = element.getModel().data;
|
|
82
|
-
var data = nodeView.getOptions().data;
|
|
83
|
-
var coordinate = nodeView.getCoordinate();
|
|
84
|
-
var datumGap_1 = {
|
|
85
|
-
x: x / coordinate.getWidth(),
|
|
86
|
-
y: y / coordinate.getHeight(),
|
|
87
|
-
};
|
|
88
|
-
var nextDatum = __assign(__assign({}, prevDatum), { x: prevDatum.x.map(function (x) { return (x += datumGap_1.x); }), y: prevDatum.y.map(function (y) { return (y += datumGap_1.y); }) });
|
|
89
|
-
// 处理一下在 [0, 1] 范围
|
|
90
|
-
// 1. 更新 node 数据
|
|
91
|
-
var newData = __spreadArray([], data, true);
|
|
92
|
-
newData[this.currentElementIdx] = nextDatum;
|
|
93
|
-
nodeView.data(newData);
|
|
94
|
-
// 2. 更新 edge 数据
|
|
95
|
-
var name_1 = prevDatum.name;
|
|
96
|
-
var edgeView = this.getEdgeView();
|
|
97
|
-
var edgeData = edgeView.getOptions().data;
|
|
98
|
-
edgeData.forEach(function (datum) {
|
|
99
|
-
// 2.1 以该 node 为 source 的边,修改 [x0, x1, x2, x3] 中的 x0, x1
|
|
100
|
-
if (datum.source === name_1) {
|
|
101
|
-
datum.x[0] += datumGap_1.x;
|
|
102
|
-
datum.x[1] += datumGap_1.x;
|
|
103
|
-
datum.y[0] += datumGap_1.y;
|
|
104
|
-
datum.y[1] += datumGap_1.y;
|
|
105
|
-
}
|
|
106
|
-
// 2.2 以该 node 为 target 的边,修改 [x0, x1, x2, x3] 中的 x2, x3
|
|
107
|
-
if (datum.target === name_1) {
|
|
108
|
-
datum.x[2] += datumGap_1.x;
|
|
109
|
-
datum.x[3] += datumGap_1.x;
|
|
110
|
-
datum.y[2] += datumGap_1.y;
|
|
111
|
-
datum.y[3] += datumGap_1.y;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
edgeView.data(edgeData);
|
|
115
|
-
// 3. 更新最新位置
|
|
116
|
-
this.prevPoint = currentPoint;
|
|
117
|
-
// node edge 都改变了,所以要从底层 render
|
|
118
|
-
chart.render(true);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* 结论,清除状态
|
|
124
|
-
*/
|
|
125
|
-
SankeyNodeDragAction.prototype.end = function () {
|
|
126
|
-
this.isDragging = false;
|
|
127
|
-
this.context.isDragging = false;
|
|
128
|
-
this.prevPoint = null;
|
|
129
|
-
this.currentElementIdx = null;
|
|
130
|
-
// 还原动画
|
|
131
|
-
this.getNodeView().animate(this.prevNodeAnimateCfg);
|
|
132
|
-
this.getEdgeView().animate(this.prevEdgeAnimateCfg);
|
|
133
|
-
};
|
|
134
|
-
return SankeyNodeDragAction;
|
|
135
|
-
}(Action));
|
|
136
|
-
export { SankeyNodeDragAction };
|
|
137
|
-
//# sourceMappingURL=node-drag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-drag.js","sourceRoot":"","sources":["../../../../../src/plots/sankey/interactions/actions/node-drag.ts"],"names":[],"mappings":"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","sourcesContent":["import { Action, Element } from '@antv/g2';\nimport { get } from '@antv/util';\nimport { Datum, Point } from '../../../../types';\nimport { findViewById } from '../../../../utils';\nimport { EDGES_VIEW_ID, NODES_VIEW_ID } from '../../constant';\n\nexport class SankeyNodeDragAction extends Action {\n /**\n * 是否在拖拽中的标记\n */\n private isDragging = false;\n\n /**\n * 鼠标上一次的位置的坐标点\n */\n private prevPoint: Point;\n /**\n * 之前的节点动画配置\n */\n private prevNodeAnimateCfg: any;\n /**\n * 之前的边动画配置\n */\n private prevEdgeAnimateCfg: any;\n /**\n * 当前拖拽的 element 索引\n */\n private currentElementIdx: number;\n\n /**\n * 当前操作的是否是 element\n */\n private isNodeElement() {\n const shape = get(this.context, 'event.target');\n if (shape) {\n const element = shape.get('element');\n return element && element.getModel().data.isNode;\n }\n return false;\n }\n\n private getNodeView() {\n return findViewById(this.context.view, NODES_VIEW_ID);\n }\n\n private getEdgeView() {\n return findViewById(this.context.view, EDGES_VIEW_ID);\n }\n\n /**\n * 获取当前操作的 index\n * @param element\n */\n private getCurrentDatumIdx(element: Element) {\n return this.getNodeView().geometries[0].elements.indexOf(element);\n }\n\n /**\n * 点击下去,开始\n */\n public start() {\n // 记录开始了的状态\n if (this.isNodeElement()) {\n this.prevPoint = {\n x: get(this.context, 'event.x'),\n y: get(this.context, 'event.y'),\n };\n\n const element = this.context.event.target.get('element');\n const idx = this.getCurrentDatumIdx(element);\n\n if (idx === -1) {\n return;\n }\n\n this.currentElementIdx = idx;\n this.context.isDragging = true;\n this.isDragging = true;\n\n // 关闭动画并暂存配置\n this.prevNodeAnimateCfg = this.getNodeView().getOptions().animate;\n this.prevEdgeAnimateCfg = this.getEdgeView().getOptions().animate;\n this.getNodeView().animate(false);\n this.getEdgeView().animate(false);\n }\n }\n\n /**\n * 移动过程中,平移\n */\n public translate() {\n if (this.isDragging) {\n const chart = this.context.view;\n\n const currentPoint = {\n x: get(this.context, 'event.x'),\n y: get(this.context, 'event.y'),\n };\n\n const x = currentPoint.x - this.prevPoint.x;\n const y = currentPoint.y - this.prevPoint.y;\n\n const nodeView = this.getNodeView();\n const element = nodeView.geometries[0].elements[this.currentElementIdx];\n\n // 修改数据\n if (element && element.getModel()) {\n const prevDatum: Datum = element.getModel().data;\n const data = nodeView.getOptions().data;\n const coordinate = nodeView.getCoordinate();\n\n const datumGap = {\n x: x / coordinate.getWidth(),\n y: y / coordinate.getHeight(),\n };\n\n const nextDatum = {\n ...prevDatum,\n x: prevDatum.x.map((x: number) => (x += datumGap.x)),\n y: prevDatum.y.map((y: number) => (y += datumGap.y)),\n };\n // 处理一下在 [0, 1] 范围\n\n // 1. 更新 node 数据\n const newData = [...data];\n newData[this.currentElementIdx] = nextDatum;\n nodeView.data(newData);\n\n // 2. 更新 edge 数据\n const name = prevDatum.name;\n const edgeView = this.getEdgeView();\n const edgeData = edgeView.getOptions().data;\n\n edgeData.forEach((datum) => {\n // 2.1 以该 node 为 source 的边,修改 [x0, x1, x2, x3] 中的 x0, x1\n if (datum.source === name) {\n datum.x[0] += datumGap.x;\n datum.x[1] += datumGap.x;\n datum.y[0] += datumGap.y;\n datum.y[1] += datumGap.y;\n }\n\n // 2.2 以该 node 为 target 的边,修改 [x0, x1, x2, x3] 中的 x2, x3\n if (datum.target === name) {\n datum.x[2] += datumGap.x;\n datum.x[3] += datumGap.x;\n datum.y[2] += datumGap.y;\n datum.y[3] += datumGap.y;\n }\n });\n edgeView.data(edgeData);\n\n // 3. 更新最新位置\n this.prevPoint = currentPoint;\n\n // node edge 都改变了,所以要从底层 render\n chart.render(true);\n }\n }\n }\n\n /**\n * 结论,清除状态\n */\n public end() {\n this.isDragging = false;\n this.context.isDragging = false;\n this.prevPoint = null;\n this.currentElementIdx = null;\n\n // 还原动画\n this.getNodeView().animate(this.prevNodeAnimateCfg);\n this.getEdgeView().animate(this.prevEdgeAnimateCfg);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './node-draggable';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plots/sankey/interactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC","sourcesContent":["import './node-draggable';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { registerAction, registerInteraction } from '@antv/g2';
|
|
2
|
-
import { SankeyNodeDragAction } from './actions/node-drag';
|
|
3
|
-
registerAction('sankey-node-drag', SankeyNodeDragAction);
|
|
4
|
-
registerInteraction('sankey-node-draggable', {
|
|
5
|
-
showEnable: [
|
|
6
|
-
{ trigger: 'polygon:mouseenter', action: 'cursor:pointer' },
|
|
7
|
-
{ trigger: 'polygon:mouseleave', action: 'cursor:default' },
|
|
8
|
-
],
|
|
9
|
-
start: [{ trigger: 'polygon:mousedown', action: 'sankey-node-drag:start' }],
|
|
10
|
-
processing: [
|
|
11
|
-
{ trigger: 'plot:mousemove', action: 'sankey-node-drag:translate' },
|
|
12
|
-
{ isEnable: function (context) { return context.isDragging; }, trigger: 'plot:mousemove', action: 'cursor:move' },
|
|
13
|
-
],
|
|
14
|
-
end: [{ trigger: 'plot:mouseup', action: 'sankey-node-drag:end' }],
|
|
15
|
-
});
|
|
16
|
-
//# sourceMappingURL=node-draggable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-draggable.js","sourceRoot":"","sources":["../../../../src/plots/sankey/interactions/node-draggable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,cAAc,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;AAEzD,mBAAmB,CAAC,uBAAuB,EAAE;IAC3C,UAAU,EAAE;QACV,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAC3D,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,EAAE;KAC5D;IACD,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC;IAC3E,UAAU,EAAE;QACV,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,4BAA4B,EAAE;QACnE,EAAE,QAAQ,EAAE,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,UAAU,EAAlB,CAAkB,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE;KAChG;IACD,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC;CACnE,CAAC,CAAC","sourcesContent":["import { registerAction, registerInteraction } from '@antv/g2';\nimport { SankeyNodeDragAction } from './actions/node-drag';\n\nregisterAction('sankey-node-drag', SankeyNodeDragAction);\n\nregisterInteraction('sankey-node-draggable', {\n showEnable: [\n { trigger: 'polygon:mouseenter', action: 'cursor:pointer' },\n { trigger: 'polygon:mouseleave', action: 'cursor:default' },\n ],\n start: [{ trigger: 'polygon:mousedown', action: 'sankey-node-drag:start' }],\n processing: [\n { trigger: 'plot:mousemove', action: 'sankey-node-drag:translate' },\n { isEnable: (context) => context.isDragging, trigger: 'plot:mousemove', action: 'cursor:move' },\n ],\n end: [{ trigger: 'plot:mouseup', action: 'sankey-node-drag:end' }],\n});\n"]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Datum } from '../../types';
|
|
2
|
-
import { center, justify, left, right } from './sankey';
|
|
3
|
-
declare const ALIGN_METHOD: {
|
|
4
|
-
left: typeof left;
|
|
5
|
-
right: typeof right;
|
|
6
|
-
center: typeof center;
|
|
7
|
-
justify: typeof justify;
|
|
8
|
-
};
|
|
9
|
-
type InputNode = {
|
|
10
|
-
readonly name: string;
|
|
11
|
-
};
|
|
12
|
-
type InputLink = {
|
|
13
|
-
readonly source: number;
|
|
14
|
-
readonly target: number;
|
|
15
|
-
readonly value: number;
|
|
16
|
-
};
|
|
17
|
-
type OutputNode = {
|
|
18
|
-
readonly name: string;
|
|
19
|
-
readonly x0: number;
|
|
20
|
-
readonly x1: number;
|
|
21
|
-
readonly y0: number;
|
|
22
|
-
readonly y1: number;
|
|
23
|
-
readonly depth: number;
|
|
24
|
-
readonly value: number;
|
|
25
|
-
x: number[];
|
|
26
|
-
y: number[];
|
|
27
|
-
};
|
|
28
|
-
type OutputLink = {
|
|
29
|
-
readonly source: OutputNode;
|
|
30
|
-
readonly target: OutputNode;
|
|
31
|
-
readonly value: number;
|
|
32
|
-
readonly width: number;
|
|
33
|
-
readonly y0: number;
|
|
34
|
-
readonly y1: number;
|
|
35
|
-
x?: number[];
|
|
36
|
-
y?: number[];
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* 桑基图布局的数据结构定义
|
|
40
|
-
*/
|
|
41
|
-
export type SankeyLayoutInputData = {
|
|
42
|
-
readonly nodes: InputNode[];
|
|
43
|
-
readonly links: InputLink[];
|
|
44
|
-
};
|
|
45
|
-
type SankeyLayoutOutputData = {
|
|
46
|
-
readonly nodes: OutputNode[];
|
|
47
|
-
readonly links: OutputLink[];
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 对齐方式的类型定义
|
|
51
|
-
*/
|
|
52
|
-
export type NodeAlign = keyof typeof ALIGN_METHOD | ((...args: any[]) => any);
|
|
53
|
-
/**
|
|
54
|
-
* 节点的 depth 自定义
|
|
55
|
-
*/
|
|
56
|
-
export type NodeDepth = (datum: Datum, maxDepth: number) => number;
|
|
57
|
-
/**
|
|
58
|
-
* 节点排序方法的类型定义
|
|
59
|
-
*/
|
|
60
|
-
export type NodeSort = (a: Datum, b: Datum) => number;
|
|
61
|
-
/**
|
|
62
|
-
* 布局参数的定义
|
|
63
|
-
*/
|
|
64
|
-
export type SankeyLayoutOptions = {
|
|
65
|
-
readonly nodeId?: (node: Datum) => any;
|
|
66
|
-
readonly nodeSort?: (a: any, b: any) => number;
|
|
67
|
-
readonly nodeAlign?: NodeAlign;
|
|
68
|
-
readonly nodeWidth?: number;
|
|
69
|
-
readonly nodePadding?: number;
|
|
70
|
-
readonly nodeDepth?: NodeDepth;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* 获得 align function
|
|
74
|
-
* @param nodeAlign
|
|
75
|
-
* @param nodeDepth
|
|
76
|
-
*/
|
|
77
|
-
export declare function getNodeAlignFunction(nodeAlign: NodeAlign): (...args: any[]) => any;
|
|
78
|
-
export declare function getDefaultOptions(sankeyLayoutOptions: SankeyLayoutOptions): Partial<SankeyLayoutOptions> & SankeyLayoutOptions;
|
|
79
|
-
/**
|
|
80
|
-
* 桑基图利用数据进行布局的函数,最终返回节点、边的位置(0 - 1 的信息)
|
|
81
|
-
* 将会修改 data 数据
|
|
82
|
-
* @param sankeyLayoutOptions
|
|
83
|
-
* @param data
|
|
84
|
-
*/
|
|
85
|
-
export declare function sankeyLayout(sankeyLayoutOptions: SankeyLayoutOptions, data: SankeyLayoutInputData): SankeyLayoutOutputData;
|
|
86
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { assign, isFunction, isString } from '@antv/util';
|
|
2
|
-
import { center, justify, left, right, sankey } from './sankey';
|
|
3
|
-
var ALIGN_METHOD = {
|
|
4
|
-
left: left,
|
|
5
|
-
right: right,
|
|
6
|
-
center: center,
|
|
7
|
-
justify: justify,
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* 默认值
|
|
11
|
-
*/
|
|
12
|
-
var DEFAULT_OPTIONS = {
|
|
13
|
-
nodeId: function (node) { return node.index; },
|
|
14
|
-
nodeAlign: 'justify',
|
|
15
|
-
nodeWidth: 0.008,
|
|
16
|
-
nodePadding: 0.03,
|
|
17
|
-
nodeSort: undefined,
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* 获得 align function
|
|
21
|
-
* @param nodeAlign
|
|
22
|
-
* @param nodeDepth
|
|
23
|
-
*/
|
|
24
|
-
export function getNodeAlignFunction(nodeAlign) {
|
|
25
|
-
var func = isString(nodeAlign) ? ALIGN_METHOD[nodeAlign] : isFunction(nodeAlign) ? nodeAlign : null;
|
|
26
|
-
return func || justify;
|
|
27
|
-
}
|
|
28
|
-
export function getDefaultOptions(sankeyLayoutOptions) {
|
|
29
|
-
return assign({}, DEFAULT_OPTIONS, sankeyLayoutOptions);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 桑基图利用数据进行布局的函数,最终返回节点、边的位置(0 - 1 的信息)
|
|
33
|
-
* 将会修改 data 数据
|
|
34
|
-
* @param sankeyLayoutOptions
|
|
35
|
-
* @param data
|
|
36
|
-
*/
|
|
37
|
-
export function sankeyLayout(sankeyLayoutOptions, data) {
|
|
38
|
-
var options = getDefaultOptions(sankeyLayoutOptions);
|
|
39
|
-
var nodeId = options.nodeId, nodeSort = options.nodeSort, nodeAlign = options.nodeAlign, nodeWidth = options.nodeWidth, nodePadding = options.nodePadding, nodeDepth = options.nodeDepth;
|
|
40
|
-
var sankeyProcessor = sankey()
|
|
41
|
-
// .links((d: any) => d.links)
|
|
42
|
-
// .nodes((d: any) => d.nodes)
|
|
43
|
-
.nodeSort(nodeSort)
|
|
44
|
-
.nodeWidth(nodeWidth)
|
|
45
|
-
.nodePadding(nodePadding)
|
|
46
|
-
.nodeDepth(nodeDepth)
|
|
47
|
-
.nodeAlign(getNodeAlignFunction(nodeAlign))
|
|
48
|
-
.extent([
|
|
49
|
-
[0, 0],
|
|
50
|
-
[1, 1],
|
|
51
|
-
])
|
|
52
|
-
.nodeId(nodeId);
|
|
53
|
-
// 进行桑基图布局处理
|
|
54
|
-
var layoutData = sankeyProcessor(data);
|
|
55
|
-
// post process (x, y), etc.
|
|
56
|
-
var nodes = layoutData.nodes
|
|
57
|
-
.map(function (node) {
|
|
58
|
-
var x0 = node.x0, x1 = node.x1, y0 = node.y0, y1 = node.y1;
|
|
59
|
-
/* points
|
|
60
|
-
* 3---2
|
|
61
|
-
* | |
|
|
62
|
-
* 0---1
|
|
63
|
-
*/
|
|
64
|
-
node.x = [x0, x1, x1, x0];
|
|
65
|
-
node.y = [y0, y0, y1, y1];
|
|
66
|
-
return node;
|
|
67
|
-
})
|
|
68
|
-
.filter(function (node) {
|
|
69
|
-
return node.name !== null;
|
|
70
|
-
});
|
|
71
|
-
var links = layoutData.links
|
|
72
|
-
.map(function (edge) {
|
|
73
|
-
var source = edge.source, target = edge.target;
|
|
74
|
-
var sx = source.x1;
|
|
75
|
-
var tx = target.x0;
|
|
76
|
-
edge.x = [sx, sx, tx, tx];
|
|
77
|
-
var offset = edge.width / 2;
|
|
78
|
-
edge.y = [edge.y0 + offset, edge.y0 - offset, edge.y1 + offset, edge.y1 - offset];
|
|
79
|
-
return edge;
|
|
80
|
-
})
|
|
81
|
-
.filter(function (edge) {
|
|
82
|
-
var source = edge.source, target = edge.target;
|
|
83
|
-
return source.name !== null && target.name !== null;
|
|
84
|
-
});
|
|
85
|
-
return { nodes: nodes, links: links };
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/plots/sankey/layout.ts"],"names":[],"mappings":"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","sourcesContent":["import { assign, isFunction, isString } from '@antv/util';\nimport { Datum } from '../../types';\nimport { center, justify, left, right, sankey } from './sankey';\n\nconst ALIGN_METHOD = {\n left,\n right,\n center,\n justify,\n};\n\ntype InputNode = {\n readonly name: string;\n};\n\ntype InputLink = {\n readonly source: number;\n readonly target: number;\n readonly value: number;\n};\n\ntype OutputNode = {\n readonly name: string;\n readonly x0: number;\n readonly x1: number;\n readonly y0: number;\n readonly y1: number;\n readonly depth: number;\n readonly value: number;\n\n // 用于绘制 polygon\n x: number[];\n y: number[];\n};\n\ntype OutputLink = {\n readonly source: OutputNode;\n readonly target: OutputNode;\n readonly value: number;\n readonly width: number;\n readonly y0: number;\n readonly y1: number;\n\n // 用于绘制 edge\n x?: number[];\n y?: number[];\n};\n\n/**\n * 桑基图布局的数据结构定义\n */\nexport type SankeyLayoutInputData = {\n readonly nodes: InputNode[];\n readonly links: InputLink[];\n};\n\ntype SankeyLayoutOutputData = {\n readonly nodes: OutputNode[];\n readonly links: OutputLink[];\n};\n\n/**\n * 对齐方式的类型定义\n */\nexport type NodeAlign = keyof typeof ALIGN_METHOD | ((...args: any[]) => any);\n\n/**\n * 节点的 depth 自定义\n */\nexport type NodeDepth = (datum: Datum, maxDepth: number) => number;\n\n/**\n * 节点排序方法的类型定义\n */\nexport type NodeSort = (a: Datum, b: Datum) => number;\n\n/**\n * 布局参数的定义\n */\nexport type SankeyLayoutOptions = {\n readonly nodeId?: (node: Datum) => any;\n // readonly value?: (node: Datum) => any;\n // readonly source?: (edge: Datum) => any;\n // readonly target?: (edge: Datum) => any;\n // sankey.nodeSort(undefined) is the default and resorts by ascending breadth during each iteration.\n // sankey.nodeSort(null) specifies the input order of nodes and never sorts.\n // sankey.nodeSort(function) specifies the given order as a comparator function and sorts once on initialization.\n readonly nodeSort?: (a: any, b: any) => number;\n readonly nodeAlign?: NodeAlign;\n readonly nodeWidth?: number;\n readonly nodePadding?: number;\n readonly nodeDepth?: NodeDepth;\n};\n\n/**\n * 默认值\n */\nconst DEFAULT_OPTIONS: Partial<SankeyLayoutOptions> = {\n nodeId: (node: Datum) => node.index,\n nodeAlign: 'justify',\n nodeWidth: 0.008,\n nodePadding: 0.03,\n nodeSort: undefined,\n};\n\n/**\n * 获得 align function\n * @param nodeAlign\n * @param nodeDepth\n */\nexport function getNodeAlignFunction(nodeAlign: NodeAlign) {\n const func = isString(nodeAlign) ? ALIGN_METHOD[nodeAlign] : isFunction(nodeAlign) ? nodeAlign : null;\n\n return func || justify;\n}\n\nexport function getDefaultOptions(sankeyLayoutOptions: SankeyLayoutOptions) {\n return assign({}, DEFAULT_OPTIONS, sankeyLayoutOptions);\n}\n\n/**\n * 桑基图利用数据进行布局的函数,最终返回节点、边的位置(0 - 1 的信息)\n * 将会修改 data 数据\n * @param sankeyLayoutOptions\n * @param data\n */\nexport function sankeyLayout(\n sankeyLayoutOptions: SankeyLayoutOptions,\n data: SankeyLayoutInputData\n): SankeyLayoutOutputData {\n const options = getDefaultOptions(sankeyLayoutOptions);\n\n const { nodeId, nodeSort, nodeAlign, nodeWidth, nodePadding, nodeDepth } = options;\n\n const sankeyProcessor = sankey()\n // .links((d: any) => d.links)\n // .nodes((d: any) => d.nodes)\n .nodeSort(nodeSort)\n .nodeWidth(nodeWidth)\n .nodePadding(nodePadding)\n .nodeDepth(nodeDepth)\n .nodeAlign(getNodeAlignFunction(nodeAlign))\n .extent([\n [0, 0],\n [1, 1],\n ])\n .nodeId(nodeId);\n\n // 进行桑基图布局处理\n const layoutData: SankeyLayoutOutputData = sankeyProcessor(data);\n\n // post process (x, y), etc.\n const nodes = layoutData.nodes\n .map((node) => {\n const { x0, x1, y0, y1 } = node;\n /* points\n * 3---2\n * | |\n * 0---1\n */\n node.x = [x0, x1, x1, x0];\n node.y = [y0, y0, y1, y1];\n\n return node;\n })\n .filter((node) => {\n return node.name !== null;\n });\n\n const links = layoutData.links\n .map((edge) => {\n const { source, target } = edge;\n const sx = source.x1;\n const tx = target.x0;\n edge.x = [sx, sx, tx, tx];\n const offset = edge.width / 2;\n edge.y = [edge.y0 + offset, edge.y0 - offset, edge.y1 + offset, edge.y1 - offset];\n\n return edge;\n })\n .filter((edge) => {\n const { source, target } = edge;\n return source.name !== null && target.name !== null;\n });\n\n return { nodes, links };\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { minBy } from '@antv/util';
|
|
2
|
-
function targetDepth(d) {
|
|
3
|
-
return d.target.depth;
|
|
4
|
-
}
|
|
5
|
-
export function left(node) {
|
|
6
|
-
return node.depth;
|
|
7
|
-
}
|
|
8
|
-
export function right(node, n) {
|
|
9
|
-
return n - 1 - node.height;
|
|
10
|
-
}
|
|
11
|
-
export function justify(node, n) {
|
|
12
|
-
return node.sourceLinks.length ? node.depth : n - 1;
|
|
13
|
-
}
|
|
14
|
-
export function center(node) {
|
|
15
|
-
return node.targetLinks.length ? node.depth : node.sourceLinks.length ? minBy(node.sourceLinks, targetDepth) - 1 : 0;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=align.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"align.js","sourceRoot":"","sources":["../../../../src/plots/sankey/sankey/align.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,SAAS,WAAW,CAAC,CAAC;IACpB,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,IAAI;IACvB,OAAO,IAAI,CAAC,KAAK,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,IAAI,EAAE,CAAC;IAC3B,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAI;IACzB,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvH,CAAC","sourcesContent":["import { minBy } from '@antv/util';\n\nfunction targetDepth(d) {\n return d.target.depth;\n}\n\nexport function left(node) {\n return node.depth;\n}\n\nexport function right(node, n) {\n return n - 1 - node.height;\n}\n\nexport function justify(node, n) {\n return node.sourceLinks.length ? node.depth : n - 1;\n}\n\nexport function center(node) {\n return node.targetLinks.length ? node.depth : node.sourceLinks.length ? minBy(node.sourceLinks, targetDepth) - 1 : 0;\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function constant(x: any): () => any;
|
|
2
|
-
export declare function sumBy(arr: any, func: any): number;
|
|
3
|
-
/**
|
|
4
|
-
* 计算最大值
|
|
5
|
-
* @param arr
|
|
6
|
-
* @param func
|
|
7
|
-
*/
|
|
8
|
-
export declare function maxValueBy(arr: any, func: any): number;
|
|
9
|
-
/**
|
|
10
|
-
* 计算最小值
|
|
11
|
-
* @param arr
|
|
12
|
-
* @param func
|
|
13
|
-
*/
|
|
14
|
-
export declare function minValueBy(arr: any, func: any): number;
|