@antv/g2 5.0.0-alpha.0 → 5.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/README.en-US.md +47 -75
- package/README.md +47 -83
- package/dist/g2.min.js +3 -3
- package/esm/animation/fadeIn.js +4 -6
- package/esm/animation/fadeIn.js.map +1 -1
- package/esm/animation/fadeOut.js +4 -4
- package/esm/animation/fadeOut.js.map +1 -1
- package/esm/animation/morphing.js +4 -5
- package/esm/animation/morphing.js.map +1 -1
- package/esm/animation/scaleInX.js +4 -5
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +4 -5
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/scaleOutX.js +4 -5
- package/esm/animation/scaleOutX.js.map +1 -1
- package/esm/animation/scaleOutY.js +4 -5
- package/esm/animation/scaleOutY.js.map +1 -1
- package/esm/api/chart.d.ts +4 -1
- package/esm/api/chart.js +12 -4
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/circle.js.map +1 -1
- package/esm/api/composition/flex.js.map +1 -1
- package/esm/api/composition/keyframe.js.map +1 -1
- package/esm/api/composition/layer.js.map +1 -1
- package/esm/api/composition/matrix.js.map +1 -1
- package/esm/api/composition/rect.js.map +1 -1
- package/esm/api/composition/view.js.map +1 -1
- package/esm/api/index.d.ts +1 -0
- package/esm/api/index.js +1 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/library.d.ts +3 -0
- package/esm/api/library.js +7 -0
- package/esm/api/library.js.map +1 -0
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/composition/circle.js +1 -1
- package/esm/composition/circle.js.map +1 -1
- package/esm/composition/flex.js +4 -2
- package/esm/composition/flex.js.map +1 -1
- package/esm/composition/layer.js +3 -3
- package/esm/composition/layer.js.map +1 -1
- package/esm/composition/mark.js +2 -1
- package/esm/composition/mark.js.map +1 -1
- package/esm/composition/rect.js +29 -30
- package/esm/composition/rect.js.map +1 -1
- package/esm/composition/utils.d.ts +6 -0
- package/esm/composition/utils.js +19 -0
- package/esm/composition/utils.js.map +1 -1
- package/esm/composition/view.js +3 -2
- package/esm/composition/view.js.map +1 -1
- package/esm/coordinate/fisheye.d.ts +1 -1
- package/esm/coordinate/fisheye.js +1 -1
- package/esm/coordinate/fisheye.js.map +1 -1
- package/esm/coordinate/fisheyeX.d.ts +7 -0
- package/esm/coordinate/fisheyeX.js +6 -0
- package/esm/coordinate/fisheyeX.js.map +1 -0
- package/esm/coordinate/fisheyeY.d.ts +7 -0
- package/esm/coordinate/fisheyeY.js +6 -0
- package/esm/coordinate/fisheyeY.js.map +1 -0
- package/esm/coordinate/helix.d.ts +7 -0
- package/esm/coordinate/helix.js +11 -0
- package/esm/coordinate/helix.js.map +1 -0
- package/esm/coordinate/index.d.ts +7 -0
- package/esm/coordinate/index.js +7 -0
- package/esm/coordinate/index.js.map +1 -1
- package/esm/coordinate/reflect.d.ts +7 -0
- package/esm/coordinate/reflect.js +10 -0
- package/esm/coordinate/reflect.js.map +1 -0
- package/esm/coordinate/reflectX.d.ts +7 -0
- package/esm/coordinate/reflectX.js +10 -0
- package/esm/coordinate/reflectX.js.map +1 -0
- package/esm/coordinate/reflectY.d.ts +7 -0
- package/esm/coordinate/reflectY.js +10 -0
- package/esm/coordinate/reflectY.js.map +1 -0
- package/esm/coordinate/theta.d.ts +7 -0
- package/esm/coordinate/theta.js +11 -0
- package/esm/coordinate/theta.js.map +1 -0
- package/esm/data/arc.d.ts +0 -0
- package/esm/data/arc.js +19 -0
- package/esm/data/arc.js.map +1 -0
- package/esm/data/cluster.d.ts +0 -0
- package/esm/data/cluster.js +47 -0
- package/esm/data/cluster.js.map +1 -0
- package/esm/data/connector.d.ts +7 -0
- package/esm/data/connector.js +9 -0
- package/esm/data/connector.js.map +1 -0
- package/esm/data/fetch.d.ts +4 -0
- package/esm/{transform/preprocessor → data}/fetch.js +10 -19
- package/esm/data/fetch.js.map +1 -0
- package/esm/{transform/preprocessor → data}/filterBy.d.ts +3 -3
- package/esm/{transform/preprocessor → data}/filterBy.js +2 -7
- package/esm/data/filterBy.js.map +1 -0
- package/esm/data/fold.d.ts +10 -0
- package/esm/data/fold.js +24 -0
- package/esm/data/fold.js.map +1 -0
- package/esm/data/index.d.ts +9 -0
- package/esm/data/index.js +10 -0
- package/esm/data/index.js.map +1 -0
- package/esm/data/inline.d.ts +4 -0
- package/esm/data/inline.js +6 -0
- package/esm/data/inline.js.map +1 -0
- package/esm/data/pick.d.ts +7 -0
- package/esm/{transform/preprocessor → data}/pick.js +1 -3
- package/esm/data/pick.js.map +1 -0
- package/esm/{transform/preprocessor → data}/rename.d.ts +3 -3
- package/esm/{transform/preprocessor → data}/rename.js +4 -7
- package/esm/data/rename.js.map +1 -0
- package/esm/data/sankey.d.ts +0 -0
- package/esm/data/sankey.js +96 -0
- package/esm/data/sankey.js.map +1 -0
- package/esm/data/sortBy.d.ts +7 -0
- package/esm/{transform/preprocessor → data}/sortBy.js +4 -9
- package/esm/data/sortBy.js.map +1 -0
- package/esm/data/subset.d.ts +7 -0
- package/esm/{transform/preprocessor → data}/subset.js +5 -10
- package/esm/data/subset.js.map +1 -0
- package/esm/data/tree.d.ts +0 -0
- package/esm/data/tree.js +10 -0
- package/esm/data/tree.js.map +1 -0
- package/esm/{transform → data}/utils/arc/arc.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/arc.js +0 -0
- package/esm/data/utils/arc/arc.js.map +1 -0
- package/esm/{transform → data}/utils/arc/index.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/index.js +0 -0
- package/esm/data/utils/arc/index.js.map +1 -0
- package/esm/{transform → data}/utils/arc/sort.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/sort.js +0 -0
- package/esm/data/utils/arc/sort.js.map +1 -0
- package/esm/{transform → data}/utils/arc/types.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/types.js +0 -0
- package/esm/data/utils/arc/types.js.map +1 -0
- package/esm/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-cloud/index.js +0 -0
- package/esm/data/utils/d3-cloud/index.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/align.js +0 -0
- package/esm/data/utils/d3-sankey/align.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/constant.js +0 -0
- package/esm/data/utils/d3-sankey/constant.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/index.js +0 -0
- package/esm/data/utils/d3-sankey/index.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/sankey.js +0 -0
- package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
- package/esm/{transform → data}/utils/flow.d.ts +0 -0
- package/esm/{transform → data}/utils/flow.js +0 -0
- package/esm/data/utils/flow.js.map +1 -0
- package/esm/{transform → data}/utils/memo.d.ts +0 -0
- package/esm/{transform → data}/utils/memo.js +0 -0
- package/esm/data/utils/memo.js.map +1 -0
- package/esm/data/voronoi.d.ts +0 -0
- package/esm/data/voronoi.js +27 -0
- package/esm/data/voronoi.js.map +1 -0
- package/esm/data/wordCloud.d.ts +0 -0
- package/esm/data/wordCloud.js +100 -0
- package/esm/data/wordCloud.js.map +1 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/interaction/action/service/fisheyeFocus.js +7 -3
- package/esm/interaction/action/service/fisheyeFocus.js.map +1 -1
- package/esm/interaction/action/transformer/filter.js +9 -3
- package/esm/interaction/action/transformer/filter.js.map +1 -1
- package/esm/interaction/builtin/fisheye.d.ts +2 -0
- package/esm/labelLayout/hideOverlap.d.ts +2 -0
- package/esm/labelLayout/hideOverlap.js +38 -0
- package/esm/labelLayout/hideOverlap.js.map +1 -0
- package/esm/labelLayout/index.d.ts +1 -0
- package/esm/labelLayout/index.js +2 -0
- package/esm/labelLayout/index.js.map +1 -0
- package/esm/mark/utils.d.ts +1 -3
- package/esm/mark/utils.js +1 -1
- package/esm/mark/utils.js.map +1 -1
- package/esm/runtime/component.js +11 -3
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/coordinate.d.ts +4 -0
- package/esm/runtime/coordinate.js +16 -0
- package/esm/runtime/coordinate.js.map +1 -1
- package/esm/runtime/index.d.ts +1 -0
- package/esm/runtime/index.js +1 -0
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/mark.d.ts +3 -3
- package/esm/runtime/mark.js +34 -90
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +19 -13
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +4 -15
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.js +14 -5
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.d.ts +9 -0
- package/esm/runtime/transform.js +144 -0
- package/esm/runtime/transform.js.map +1 -0
- package/esm/runtime/types/common.d.ts +5 -3
- package/esm/runtime/types/component.d.ts +5 -2
- package/esm/runtime/types/data.d.ts +7 -0
- package/esm/runtime/types/data.js +2 -0
- package/esm/runtime/types/data.js.map +1 -0
- package/esm/runtime/types/encode.d.ts +4 -2
- package/esm/runtime/types/options.d.ts +6 -3
- package/esm/runtime/types/transform.d.ts +6 -12
- package/esm/shape/interval/colorRect.js +4 -22
- package/esm/shape/interval/colorRect.js.map +1 -1
- package/esm/shape/label/label.js +81 -10
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/utils.d.ts +7 -0
- package/esm/shape/utils.js +23 -0
- package/esm/shape/utils.js.map +1 -1
- package/esm/spec/composition.d.ts +8 -5
- package/esm/spec/coordinate.d.ts +46 -2
- package/esm/spec/data.d.ts +54 -0
- package/esm/spec/data.js +2 -0
- package/esm/spec/data.js.map +1 -0
- package/esm/spec/geometry.d.ts +2 -1
- package/esm/spec/index.d.ts +2 -1
- package/esm/spec/index.js +2 -1
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/labelLayout.d.ts +4 -0
- package/esm/spec/labelLayout.js +2 -0
- package/esm/spec/labelLayout.js.map +1 -0
- package/esm/spec/transform.d.ts +58 -166
- package/esm/spec/transform.js +133 -0
- package/esm/spec/transform.js.map +1 -1
- package/esm/stdlib/index.js +28 -17
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/light.js +1 -0
- package/esm/theme/light.js.map +1 -1
- package/esm/transform/{statistic/Select.d.ts → Select.d.ts} +2 -2
- package/esm/transform/{statistic/Select.js → Select.js} +9 -14
- package/esm/transform/Select.js.map +1 -0
- package/esm/transform/{statistic/SelectX.d.ts → SelectX.d.ts} +2 -2
- package/esm/transform/{statistic/SelectX.js → SelectX.js} +1 -3
- package/esm/transform/SelectX.js.map +1 -0
- package/esm/transform/{statistic/SelectY.d.ts → SelectY.d.ts} +2 -2
- package/esm/transform/{statistic/SelectY.js → SelectY.js} +1 -3
- package/esm/transform/SelectY.js.map +1 -0
- package/esm/transform/{statistic/dodgeX.d.ts → dodgeX.d.ts} +2 -2
- package/esm/transform/{statistic/dodgeX.js → dodgeX.js} +19 -19
- package/esm/transform/dodgeX.js.map +1 -0
- package/{lib/transform/statistic → esm/transform}/groupX.d.ts +3 -2
- package/esm/transform/{statistic/groupX.js → groupX.js} +23 -19
- package/esm/transform/groupX.js.map +1 -0
- package/esm/transform/index.d.ts +21 -36
- package/esm/transform/index.js +21 -39
- package/esm/transform/index.js.map +1 -1
- package/esm/transform/{statistic/jitter.d.ts → jitter.d.ts} +3 -3
- package/esm/transform/{statistic/jitter.js → jitter.js} +14 -18
- package/esm/transform/jitter.js.map +1 -0
- package/{lib/transform/statistic → esm/transform}/jitterY.d.ts +2 -2
- package/esm/transform/jitterY.js +21 -0
- package/esm/transform/jitterY.js.map +1 -0
- package/esm/transform/maybeKey.d.ts +6 -0
- package/esm/transform/{inference/maybeKey.js → maybeKey.js} +11 -12
- package/esm/transform/maybeKey.js.map +1 -0
- package/esm/transform/maybeSeries.d.ts +6 -0
- package/esm/transform/maybeSeries.js +17 -0
- package/esm/transform/maybeSeries.js.map +1 -0
- package/esm/transform/maybeSize.d.ts +7 -0
- package/esm/transform/maybeSize.js +20 -0
- package/esm/transform/maybeSize.js.map +1 -0
- package/{lib/transform/inference → esm/transform}/maybeStackY.d.ts +1 -1
- package/esm/transform/{inference/maybeStackY.js → maybeStackY.js} +11 -13
- package/esm/transform/maybeStackY.js.map +1 -0
- package/esm/transform/maybeTitleX.d.ts +6 -0
- package/esm/transform/maybeTitleX.js +17 -0
- package/esm/transform/maybeTitleX.js.map +1 -0
- package/esm/transform/maybeTooltip.d.ts +8 -0
- package/esm/transform/maybeTooltip.js +29 -0
- package/esm/transform/maybeTooltip.js.map +1 -0
- package/esm/transform/{inference/maybeTooltipPosition.d.ts → maybeTooltipPosition.d.ts} +3 -3
- package/esm/transform/maybeTooltipPosition.js +10 -0
- package/esm/transform/maybeTooltipPosition.js.map +1 -0
- package/esm/transform/maybeTooltipY.d.ts +6 -0
- package/esm/transform/maybeTooltipY.js +9 -0
- package/esm/transform/maybeTooltipY.js.map +1 -0
- package/{lib/transform/inference → esm/transform}/maybeZeroX.d.ts +1 -1
- package/esm/transform/maybeZeroX.js +22 -0
- package/esm/transform/maybeZeroX.js.map +1 -0
- package/esm/transform/maybeZeroY.d.ts +6 -0
- package/esm/transform/maybeZeroY.js +21 -0
- package/esm/transform/maybeZeroY.js.map +1 -0
- package/esm/transform/maybeZeroY1.d.ts +6 -0
- package/esm/transform/maybeZeroY1.js +21 -0
- package/esm/transform/maybeZeroY1.js.map +1 -0
- package/esm/transform/{statistic/normalizeY.d.ts → normalizeY.d.ts} +2 -2
- package/esm/transform/{statistic/normalizeY.js → normalizeY.js} +16 -17
- package/esm/transform/normalizeY.js.map +1 -0
- package/esm/transform/{statistic/stackEnter.d.ts → stackEnter.d.ts} +2 -2
- package/esm/transform/{statistic/stackEnter.js → stackEnter.js} +22 -19
- package/esm/transform/stackEnter.js.map +1 -0
- package/esm/transform/{statistic/stackY.d.ts → stackY.d.ts} +2 -2
- package/esm/transform/{statistic/stackY.js → stackY.js} +20 -19
- package/esm/transform/stackY.js.map +1 -0
- package/esm/transform/{statistic/symmetryY.d.ts → symmetryY.d.ts} +2 -2
- package/esm/transform/{statistic/symmetryY.js → symmetryY.js} +16 -17
- package/esm/transform/symmetryY.js.map +1 -0
- package/esm/transform/utils/helper.d.ts +11 -10
- package/esm/transform/utils/helper.js +27 -33
- package/esm/transform/utils/helper.js.map +1 -1
- package/esm/transform/{statistic/utils.d.ts → utils/order.d.ts} +4 -4
- package/esm/transform/{statistic/utils.js → utils/order.js} +7 -5
- package/esm/transform/utils/order.js.map +1 -0
- package/esm/utils/coordinate.d.ts +1 -0
- package/esm/utils/coordinate.js +4 -0
- package/esm/utils/coordinate.js.map +1 -1
- package/lib/animation/fadeIn.js +4 -6
- package/lib/animation/fadeIn.js.map +1 -1
- package/lib/animation/fadeOut.js +4 -4
- package/lib/animation/fadeOut.js.map +1 -1
- package/lib/animation/morphing.js +4 -5
- package/lib/animation/morphing.js.map +1 -1
- package/lib/animation/scaleInX.js +4 -5
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +4 -5
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/scaleOutX.js +4 -5
- package/lib/animation/scaleOutX.js.map +1 -1
- package/lib/animation/scaleOutY.js +4 -5
- package/lib/animation/scaleOutY.js.map +1 -1
- package/lib/api/chart.d.ts +4 -1
- package/lib/api/chart.js +12 -4
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/circle.js.map +1 -1
- package/lib/api/composition/flex.js.map +1 -1
- package/lib/api/composition/keyframe.js.map +1 -1
- package/lib/api/composition/layer.js.map +1 -1
- package/lib/api/composition/matrix.js.map +1 -1
- package/lib/api/composition/rect.js.map +1 -1
- package/lib/api/composition/view.js.map +1 -1
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +3 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/library.d.ts +3 -0
- package/lib/api/library.js +11 -0
- package/lib/api/library.js.map +1 -0
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/composition/circle.js +1 -1
- package/lib/composition/circle.js.map +1 -1
- package/lib/composition/flex.js +4 -2
- package/lib/composition/flex.js.map +1 -1
- package/lib/composition/layer.js +3 -3
- package/lib/composition/layer.js.map +1 -1
- package/lib/composition/mark.js +2 -1
- package/lib/composition/mark.js.map +1 -1
- package/lib/composition/rect.js +29 -30
- package/lib/composition/rect.js.map +1 -1
- package/lib/composition/utils.d.ts +6 -0
- package/lib/composition/utils.js +21 -1
- package/lib/composition/utils.js.map +1 -1
- package/lib/composition/view.js +3 -2
- package/lib/composition/view.js.map +1 -1
- package/lib/coordinate/fisheye.d.ts +1 -1
- package/lib/coordinate/fisheye.js +1 -1
- package/lib/coordinate/fisheye.js.map +1 -1
- package/lib/coordinate/fisheyeX.d.ts +7 -0
- package/lib/coordinate/fisheyeX.js +10 -0
- package/lib/coordinate/fisheyeX.js.map +1 -0
- package/lib/coordinate/fisheyeY.d.ts +7 -0
- package/lib/coordinate/fisheyeY.js +10 -0
- package/lib/coordinate/fisheyeY.js.map +1 -0
- package/lib/coordinate/helix.d.ts +7 -0
- package/lib/coordinate/helix.js +15 -0
- package/lib/coordinate/helix.js.map +1 -0
- package/lib/coordinate/index.d.ts +7 -0
- package/lib/coordinate/index.js +15 -1
- package/lib/coordinate/index.js.map +1 -1
- package/lib/coordinate/reflect.d.ts +7 -0
- package/lib/coordinate/reflect.js +14 -0
- package/lib/coordinate/reflect.js.map +1 -0
- package/lib/coordinate/reflectX.d.ts +7 -0
- package/lib/coordinate/reflectX.js +14 -0
- package/lib/coordinate/reflectX.js.map +1 -0
- package/lib/coordinate/reflectY.d.ts +7 -0
- package/lib/coordinate/reflectY.js +14 -0
- package/lib/coordinate/reflectY.js.map +1 -0
- package/lib/coordinate/theta.d.ts +7 -0
- package/lib/coordinate/theta.js +15 -0
- package/lib/coordinate/theta.js.map +1 -0
- package/lib/data/arc.d.ts +0 -0
- package/lib/data/arc.js +19 -0
- package/lib/data/arc.js.map +1 -0
- package/lib/data/cluster.d.ts +0 -0
- package/lib/data/cluster.js +47 -0
- package/lib/data/cluster.js.map +1 -0
- package/lib/data/connector.d.ts +7 -0
- package/lib/data/connector.js +13 -0
- package/lib/data/connector.js.map +1 -0
- package/lib/data/fetch.d.ts +4 -0
- package/lib/{transform/preprocessor → data}/fetch.js +10 -19
- package/lib/data/fetch.js.map +1 -0
- package/lib/{transform/preprocessor → data}/filterBy.d.ts +3 -3
- package/lib/{transform/preprocessor → data}/filterBy.js +2 -7
- package/lib/data/filterBy.js.map +1 -0
- package/lib/data/fold.d.ts +10 -0
- package/lib/data/fold.js +29 -0
- package/lib/data/fold.js.map +1 -0
- package/lib/data/index.d.ts +9 -0
- package/lib/data/index.js +22 -0
- package/lib/data/index.js.map +1 -0
- package/lib/data/inline.d.ts +4 -0
- package/lib/data/inline.js +10 -0
- package/lib/data/inline.js.map +1 -0
- package/lib/data/pick.d.ts +7 -0
- package/lib/{transform/preprocessor → data}/pick.js +1 -3
- package/lib/data/pick.js.map +1 -0
- package/lib/{transform/preprocessor → data}/rename.d.ts +3 -3
- package/lib/{transform/preprocessor → data}/rename.js +4 -7
- package/lib/data/rename.js.map +1 -0
- package/lib/data/sankey.d.ts +0 -0
- package/lib/data/sankey.js +96 -0
- package/lib/data/sankey.js.map +1 -0
- package/lib/data/sortBy.d.ts +7 -0
- package/lib/{transform/preprocessor → data}/sortBy.js +4 -9
- package/lib/data/sortBy.js.map +1 -0
- package/lib/data/subset.d.ts +7 -0
- package/lib/{transform/preprocessor → data}/subset.js +5 -10
- package/lib/data/subset.js.map +1 -0
- package/lib/data/tree.d.ts +0 -0
- package/lib/data/tree.js +10 -0
- package/lib/data/tree.js.map +1 -0
- package/lib/{transform → data}/utils/arc/arc.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/arc.js +0 -0
- package/lib/data/utils/arc/arc.js.map +1 -0
- package/lib/{transform → data}/utils/arc/index.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/index.js +0 -0
- package/lib/data/utils/arc/index.js.map +1 -0
- package/lib/{transform → data}/utils/arc/sort.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/sort.js +0 -0
- package/lib/data/utils/arc/sort.js.map +1 -0
- package/lib/{transform → data}/utils/arc/types.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/types.js +0 -0
- package/lib/data/utils/arc/types.js.map +1 -0
- package/lib/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-cloud/index.js +0 -0
- package/lib/data/utils/d3-cloud/index.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/align.js +0 -0
- package/lib/data/utils/d3-sankey/align.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/constant.js +0 -0
- package/lib/data/utils/d3-sankey/constant.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/index.js +0 -0
- package/lib/data/utils/d3-sankey/index.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/sankey.js +0 -0
- package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
- package/lib/{transform → data}/utils/flow.d.ts +0 -0
- package/lib/{transform → data}/utils/flow.js +0 -0
- package/lib/data/utils/flow.js.map +1 -0
- package/lib/{transform → data}/utils/memo.d.ts +0 -0
- package/lib/{transform → data}/utils/memo.js +0 -0
- package/lib/data/utils/memo.js.map +1 -0
- package/lib/data/voronoi.d.ts +0 -0
- package/lib/data/voronoi.js +27 -0
- package/lib/data/voronoi.js.map +1 -0
- package/lib/data/wordCloud.d.ts +0 -0
- package/lib/data/wordCloud.js +100 -0
- package/lib/data/wordCloud.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/interaction/action/service/fisheyeFocus.js +7 -3
- package/lib/interaction/action/service/fisheyeFocus.js.map +1 -1
- package/lib/interaction/action/transformer/filter.js +9 -3
- package/lib/interaction/action/transformer/filter.js.map +1 -1
- package/lib/interaction/builtin/fisheye.d.ts +2 -0
- package/lib/labelLayout/hideOverlap.d.ts +2 -0
- package/lib/labelLayout/hideOverlap.js +42 -0
- package/lib/labelLayout/hideOverlap.js.map +1 -0
- package/lib/labelLayout/index.d.ts +1 -0
- package/lib/labelLayout/index.js +6 -0
- package/lib/labelLayout/index.js.map +1 -0
- package/lib/mark/utils.d.ts +1 -3
- package/lib/mark/utils.js +1 -1
- package/lib/mark/utils.js.map +1 -1
- package/lib/runtime/component.js +10 -2
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/coordinate.d.ts +4 -0
- package/lib/runtime/coordinate.js +21 -1
- package/lib/runtime/coordinate.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/mark.d.ts +3 -3
- package/lib/runtime/mark.js +34 -90
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +17 -11
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +4 -15
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.js +13 -4
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.d.ts +9 -0
- package/lib/runtime/transform.js +154 -0
- package/lib/runtime/transform.js.map +1 -0
- package/lib/runtime/types/common.d.ts +5 -3
- package/lib/runtime/types/component.d.ts +5 -2
- package/lib/runtime/types/data.d.ts +7 -0
- package/lib/{spec/statistic.js → runtime/types/data.js} +1 -1
- package/lib/runtime/types/data.js.map +1 -0
- package/lib/runtime/types/encode.d.ts +4 -2
- package/lib/runtime/types/options.d.ts +6 -3
- package/lib/runtime/types/transform.d.ts +6 -12
- package/lib/shape/interval/colorRect.js +2 -20
- package/lib/shape/interval/colorRect.js.map +1 -1
- package/lib/shape/label/label.js +80 -9
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/utils.d.ts +7 -0
- package/lib/shape/utils.js +25 -1
- package/lib/shape/utils.js.map +1 -1
- package/lib/spec/composition.d.ts +8 -5
- package/lib/spec/coordinate.d.ts +46 -2
- package/lib/spec/data.d.ts +54 -0
- package/lib/spec/data.js +3 -0
- package/lib/spec/data.js.map +1 -0
- package/lib/spec/geometry.d.ts +2 -1
- package/lib/spec/index.d.ts +2 -1
- package/lib/spec/index.js +2 -1
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/labelLayout.d.ts +4 -0
- package/lib/spec/labelLayout.js +3 -0
- package/lib/spec/labelLayout.js.map +1 -0
- package/lib/spec/transform.d.ts +58 -166
- package/lib/spec/transform.js +133 -0
- package/lib/spec/transform.js.map +1 -1
- package/lib/stdlib/index.js +26 -15
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/light.js +1 -0
- package/lib/theme/light.js.map +1 -1
- package/lib/transform/{statistic/Select.d.ts → Select.d.ts} +2 -2
- package/lib/transform/{statistic/Select.js → Select.js} +9 -14
- package/lib/transform/Select.js.map +1 -0
- package/lib/transform/{statistic/SelectX.d.ts → SelectX.d.ts} +2 -2
- package/lib/transform/{statistic/SelectX.js → SelectX.js} +1 -3
- package/lib/transform/SelectX.js.map +1 -0
- package/lib/transform/{statistic/SelectY.d.ts → SelectY.d.ts} +2 -2
- package/lib/transform/{statistic/SelectY.js → SelectY.js} +1 -3
- package/lib/transform/SelectY.js.map +1 -0
- package/lib/transform/{statistic/dodgeX.d.ts → dodgeX.d.ts} +2 -2
- package/lib/transform/{statistic/dodgeX.js → dodgeX.js} +22 -22
- package/lib/transform/dodgeX.js.map +1 -0
- package/{esm/transform/statistic → lib/transform}/groupX.d.ts +3 -2
- package/lib/transform/{statistic/groupX.js → groupX.js} +23 -19
- package/lib/transform/groupX.js.map +1 -0
- package/lib/transform/index.d.ts +21 -36
- package/lib/transform/index.js +22 -55
- package/lib/transform/index.js.map +1 -1
- package/lib/transform/{statistic/jitter.d.ts → jitter.d.ts} +3 -3
- package/lib/transform/{statistic/jitter.js → jitter.js} +16 -20
- package/lib/transform/jitter.js.map +1 -0
- package/{esm/transform/statistic → lib/transform}/jitterY.d.ts +2 -2
- package/lib/transform/{statistic/jitterY.js → jitterY.js} +9 -15
- package/lib/transform/jitterY.js.map +1 -0
- package/lib/transform/maybeKey.d.ts +6 -0
- package/lib/transform/{inference/maybeKey.js → maybeKey.js} +11 -12
- package/lib/transform/maybeKey.js.map +1 -0
- package/lib/transform/maybeSeries.d.ts +6 -0
- package/lib/transform/maybeSeries.js +21 -0
- package/lib/transform/maybeSeries.js.map +1 -0
- package/lib/transform/maybeSize.d.ts +7 -0
- package/lib/transform/maybeSize.js +24 -0
- package/lib/transform/maybeSize.js.map +1 -0
- package/{esm/transform/inference → lib/transform}/maybeStackY.d.ts +1 -1
- package/lib/transform/{inference/maybeStackY.js → maybeStackY.js} +11 -13
- package/lib/transform/maybeStackY.js.map +1 -0
- package/lib/transform/maybeTitleX.d.ts +6 -0
- package/lib/transform/maybeTitleX.js +21 -0
- package/lib/transform/maybeTitleX.js.map +1 -0
- package/lib/transform/maybeTooltip.d.ts +8 -0
- package/lib/transform/{inference/maybeTooltip.js → maybeTooltip.js} +13 -14
- package/lib/transform/maybeTooltip.js.map +1 -0
- package/lib/transform/{inference/maybeTooltipPosition.d.ts → maybeTooltipPosition.d.ts} +3 -3
- package/lib/transform/{inference/maybeTooltipPosition.js → maybeTooltipPosition.js} +3 -5
- package/lib/transform/maybeTooltipPosition.js.map +1 -0
- package/lib/transform/maybeTooltipY.d.ts +6 -0
- package/lib/transform/{inference/maybeTooltipY.js → maybeTooltipY.js} +2 -5
- package/lib/transform/maybeTooltipY.js.map +1 -0
- package/{esm/transform/inference → lib/transform}/maybeZeroX.d.ts +1 -1
- package/lib/transform/maybeZeroX.js +26 -0
- package/lib/transform/maybeZeroX.js.map +1 -0
- package/lib/transform/maybeZeroY.d.ts +6 -0
- package/lib/transform/maybeZeroY.js +25 -0
- package/lib/transform/maybeZeroY.js.map +1 -0
- package/lib/transform/maybeZeroY1.d.ts +6 -0
- package/lib/transform/maybeZeroY1.js +25 -0
- package/lib/transform/maybeZeroY1.js.map +1 -0
- package/lib/transform/{statistic/normalizeY.d.ts → normalizeY.d.ts} +2 -2
- package/lib/transform/{statistic/normalizeY.js → normalizeY.js} +16 -17
- package/lib/transform/normalizeY.js.map +1 -0
- package/lib/transform/{statistic/stackEnter.d.ts → stackEnter.d.ts} +2 -2
- package/lib/transform/{statistic/stackEnter.js → stackEnter.js} +22 -19
- package/lib/transform/stackEnter.js.map +1 -0
- package/lib/transform/{statistic/stackY.d.ts → stackY.d.ts} +2 -2
- package/lib/transform/{statistic/stackY.js → stackY.js} +22 -21
- package/lib/transform/stackY.js.map +1 -0
- package/lib/transform/{statistic/symmetryY.d.ts → symmetryY.d.ts} +2 -2
- package/lib/transform/{statistic/symmetryY.js → symmetryY.js} +16 -17
- package/lib/transform/symmetryY.js.map +1 -0
- package/lib/transform/utils/helper.d.ts +11 -10
- package/lib/transform/utils/helper.js +32 -38
- package/lib/transform/utils/helper.js.map +1 -1
- package/lib/transform/{statistic/utils.d.ts → utils/order.d.ts} +4 -4
- package/lib/transform/{statistic/utils.js → utils/order.js} +7 -5
- package/lib/transform/utils/order.js.map +1 -0
- package/lib/utils/coordinate.d.ts +1 -0
- package/lib/utils/coordinate.js +6 -1
- package/lib/utils/coordinate.js.map +1 -1
- package/package.json +6 -5
- package/src/animation/fadeIn.ts +4 -6
- package/src/animation/fadeOut.ts +4 -4
- package/src/animation/morphing.ts +4 -5
- package/src/animation/scaleInX.ts +9 -5
- package/src/animation/scaleInY.ts +9 -5
- package/src/animation/scaleOutX.ts +9 -5
- package/src/animation/scaleOutY.ts +9 -5
- package/src/api/chart.ts +19 -8
- package/src/api/index.ts +1 -0
- package/src/api/library.ts +12 -0
- package/src/composition/circle.ts +1 -1
- package/src/composition/flex.ts +4 -2
- package/src/composition/layer.ts +3 -2
- package/src/composition/mark.ts +3 -0
- package/src/composition/rect.ts +27 -28
- package/src/composition/utils.ts +10 -0
- package/src/composition/view.ts +3 -2
- package/src/coordinate/fisheye.ts +3 -2
- package/src/coordinate/fisheyeX.ts +15 -0
- package/src/coordinate/fisheyeY.ts +15 -0
- package/src/coordinate/helix.ts +21 -0
- package/src/coordinate/index.ts +7 -0
- package/src/coordinate/reflect.ts +15 -0
- package/src/coordinate/reflectX.ts +15 -0
- package/src/coordinate/reflectY.ts +15 -0
- package/src/coordinate/theta.ts +21 -0
- package/src/data/arc.ts +21 -0
- package/src/data/cluster.ts +56 -0
- package/src/data/connector.ts +14 -0
- package/src/data/fetch.ts +23 -0
- package/src/data/filterBy.ts +19 -0
- package/src/data/fold.ts +29 -0
- package/src/data/index.ts +9 -0
- package/src/data/inline.ts +11 -0
- package/src/{transform/preprocessor → data}/pick.ts +4 -6
- package/src/{transform/preprocessor → data}/rename.ts +7 -10
- package/src/data/sankey.ts +105 -0
- package/src/{transform/preprocessor → data}/sortBy.ts +7 -12
- package/src/{transform/preprocessor → data}/subset.ts +8 -13
- package/src/data/tree.ts +12 -0
- package/src/{transform → data}/utils/arc/arc.ts +0 -0
- package/src/{transform → data}/utils/arc/index.ts +0 -0
- package/src/{transform → data}/utils/arc/sort.ts +0 -0
- package/src/{transform → data}/utils/arc/types.ts +0 -0
- package/src/{transform → data}/utils/d3-cloud/index.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/align.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/constant.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/index.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/sankey.ts +0 -0
- package/src/{transform → data}/utils/flow.ts +0 -0
- package/src/{transform → data}/utils/memo.ts +1 -0
- package/src/data/voronoi.ts +30 -0
- package/src/data/wordCloud.ts +115 -0
- package/src/index.ts +1 -1
- package/src/interaction/action/service/fisheyeFocus.ts +16 -3
- package/src/interaction/action/transformer/filter.ts +8 -4
- package/src/labelLayout/hideOverlap.ts +47 -0
- package/src/labelLayout/index.ts +1 -0
- package/src/mark/utils.ts +1 -1
- package/src/runtime/component.ts +23 -3
- package/src/runtime/coordinate.ts +20 -0
- package/src/runtime/index.ts +1 -0
- package/src/runtime/layout.ts +1 -1
- package/src/runtime/mark.ts +56 -135
- package/src/runtime/plot.ts +29 -22
- package/src/runtime/render.ts +4 -5
- package/src/runtime/scale.ts +15 -5
- package/src/runtime/transform.ts +159 -0
- package/src/runtime/types/common.ts +5 -2
- package/src/runtime/types/component.ts +13 -3
- package/src/runtime/types/data.ts +10 -0
- package/src/runtime/types/encode.ts +6 -2
- package/src/runtime/types/options.ts +7 -2
- package/src/runtime/types/transform.ts +8 -13
- package/src/shape/interval/colorRect.ts +4 -23
- package/src/shape/label/label.ts +94 -11
- package/src/shape/utils.ts +31 -0
- package/src/spec/composition.ts +8 -5
- package/src/spec/coordinate.ts +67 -3
- package/src/spec/data.ts +81 -0
- package/src/spec/geometry.ts +2 -1
- package/src/spec/index.ts +2 -1
- package/src/spec/labelLayout.ts +5 -0
- package/src/spec/transform.ts +245 -194
- package/src/stdlib/index.ts +50 -31
- package/src/theme/light.ts +1 -0
- package/src/transform/{statistic/dodgeX.ts → dodgeX.ts} +24 -21
- package/src/transform/{statistic/groupX.ts → groupX.ts} +25 -24
- package/src/transform/index.ts +21 -44
- package/src/transform/{statistic/jitter.ts → jitter.ts} +17 -21
- package/src/transform/{statistic/jitterY.ts → jitterY.ts} +11 -17
- package/src/transform/maybeKey.ts +26 -0
- package/src/transform/maybeSeries.ts +20 -0
- package/src/transform/maybeSize.ts +23 -0
- package/src/transform/{inference/maybeStackY.ts → maybeStackY.ts} +12 -13
- package/src/transform/maybeTitleX.ts +20 -0
- package/src/transform/maybeTooltip.ts +34 -0
- package/src/transform/{inference/maybeTooltipPosition.ts → maybeTooltipPosition.ts} +4 -6
- package/src/transform/{inference/maybeTooltipY.ts → maybeTooltipY.ts} +3 -6
- package/src/transform/maybeZeroX.ts +25 -0
- package/src/transform/maybeZeroY.ts +24 -0
- package/src/transform/maybeZeroY1.ts +24 -0
- package/src/transform/{statistic/normalizeY.ts → normalizeY.ts} +20 -19
- package/src/transform/{statistic/select.ts → select.ts} +11 -16
- package/src/transform/{statistic/selectX.ts → selectX.ts} +3 -5
- package/src/transform/{statistic/selectY.ts → selectY.ts} +3 -5
- package/src/transform/{statistic/stackEnter.ts → stackEnter.ts} +29 -21
- package/src/transform/{statistic/stackY.ts → stackY.ts} +22 -21
- package/src/transform/{statistic/symmetryY.ts → symmetryY.ts} +20 -19
- package/src/transform/utils/helper.ts +27 -44
- package/src/transform/{statistic/utils.ts → utils/order.ts} +20 -17
- package/src/utils/coordinate.ts +5 -0
- package/esm/spec/statistic.d.ts +0 -69
- package/esm/spec/statistic.js +0 -2
- package/esm/spec/statistic.js.map +0 -1
- package/esm/transform/inference/maybeArrayField.d.ts +0 -8
- package/esm/transform/inference/maybeArrayField.js +0 -47
- package/esm/transform/inference/maybeArrayField.js.map +0 -1
- package/esm/transform/inference/maybeKey.d.ts +0 -9
- package/esm/transform/inference/maybeKey.js.map +0 -1
- package/esm/transform/inference/maybeSeries.d.ts +0 -7
- package/esm/transform/inference/maybeSeries.js +0 -23
- package/esm/transform/inference/maybeSeries.js.map +0 -1
- package/esm/transform/inference/maybeSize.d.ts +0 -7
- package/esm/transform/inference/maybeSize.js +0 -14
- package/esm/transform/inference/maybeSize.js.map +0 -1
- package/esm/transform/inference/maybeStackY.js.map +0 -1
- package/esm/transform/inference/maybeTitleX.d.ts +0 -7
- package/esm/transform/inference/maybeTitleX.js +0 -23
- package/esm/transform/inference/maybeTitleX.js.map +0 -1
- package/esm/transform/inference/maybeTooltip.d.ts +0 -9
- package/esm/transform/inference/maybeTooltip.js +0 -30
- package/esm/transform/inference/maybeTooltip.js.map +0 -1
- package/esm/transform/inference/maybeTooltipPosition.js +0 -12
- package/esm/transform/inference/maybeTooltipPosition.js.map +0 -1
- package/esm/transform/inference/maybeTooltipY.d.ts +0 -7
- package/esm/transform/inference/maybeTooltipY.js +0 -12
- package/esm/transform/inference/maybeTooltipY.js.map +0 -1
- package/esm/transform/inference/maybeZeroX.js +0 -14
- package/esm/transform/inference/maybeZeroX.js.map +0 -1
- package/esm/transform/inference/maybeZeroY.d.ts +0 -7
- package/esm/transform/inference/maybeZeroY.js +0 -14
- package/esm/transform/inference/maybeZeroY.js.map +0 -1
- package/esm/transform/inference/maybeZeroY1.d.ts +0 -7
- package/esm/transform/inference/maybeZeroY1.js +0 -14
- package/esm/transform/inference/maybeZeroY1.js.map +0 -1
- package/esm/transform/preprocessor/arc.d.ts +0 -7
- package/esm/transform/preprocessor/arc.js +0 -16
- package/esm/transform/preprocessor/arc.js.map +0 -1
- package/esm/transform/preprocessor/cluster.d.ts +0 -5
- package/esm/transform/preprocessor/cluster.js +0 -40
- package/esm/transform/preprocessor/cluster.js.map +0 -1
- package/esm/transform/preprocessor/connector.d.ts +0 -7
- package/esm/transform/preprocessor/connector.js +0 -16
- package/esm/transform/preprocessor/connector.js.map +0 -1
- package/esm/transform/preprocessor/fetch.d.ts +0 -8
- package/esm/transform/preprocessor/fetch.js.map +0 -1
- package/esm/transform/preprocessor/filterBy.js.map +0 -1
- package/esm/transform/preprocessor/fold.d.ts +0 -8
- package/esm/transform/preprocessor/fold.js +0 -27
- package/esm/transform/preprocessor/fold.js.map +0 -1
- package/esm/transform/preprocessor/pick.d.ts +0 -7
- package/esm/transform/preprocessor/pick.js.map +0 -1
- package/esm/transform/preprocessor/rename.js.map +0 -1
- package/esm/transform/preprocessor/sankey.d.ts +0 -8
- package/esm/transform/preprocessor/sankey.js +0 -80
- package/esm/transform/preprocessor/sankey.js.map +0 -1
- package/esm/transform/preprocessor/sortBy.d.ts +0 -7
- package/esm/transform/preprocessor/sortBy.js.map +0 -1
- package/esm/transform/preprocessor/subset.d.ts +0 -7
- package/esm/transform/preprocessor/subset.js.map +0 -1
- package/esm/transform/preprocessor/tree.d.ts +0 -4
- package/esm/transform/preprocessor/tree.js +0 -7
- package/esm/transform/preprocessor/tree.js.map +0 -1
- package/esm/transform/preprocessor/voronoi.d.ts +0 -4
- package/esm/transform/preprocessor/voronoi.js +0 -20
- package/esm/transform/preprocessor/voronoi.js.map +0 -1
- package/esm/transform/preprocessor/wordCloud.d.ts +0 -6
- package/esm/transform/preprocessor/wordCloud.js +0 -106
- package/esm/transform/preprocessor/wordCloud.js.map +0 -1
- package/esm/transform/statistic/Select.js.map +0 -1
- package/esm/transform/statistic/SelectX.js.map +0 -1
- package/esm/transform/statistic/SelectY.js.map +0 -1
- package/esm/transform/statistic/dodgeX.js.map +0 -1
- package/esm/transform/statistic/groupX.js.map +0 -1
- package/esm/transform/statistic/jitter.js.map +0 -1
- package/esm/transform/statistic/jitterY.js +0 -27
- package/esm/transform/statistic/jitterY.js.map +0 -1
- package/esm/transform/statistic/normalizeY.js.map +0 -1
- package/esm/transform/statistic/stackEnter.js.map +0 -1
- package/esm/transform/statistic/stackY.js.map +0 -1
- package/esm/transform/statistic/symmetryY.js.map +0 -1
- package/esm/transform/statistic/utils.js.map +0 -1
- package/esm/transform/utils/arc/arc.js.map +0 -1
- package/esm/transform/utils/arc/index.js.map +0 -1
- package/esm/transform/utils/arc/sort.js.map +0 -1
- package/esm/transform/utils/arc/types.js.map +0 -1
- package/esm/transform/utils/d3-cloud/index.js.map +0 -1
- package/esm/transform/utils/d3-sankey/align.js.map +0 -1
- package/esm/transform/utils/d3-sankey/constant.js.map +0 -1
- package/esm/transform/utils/d3-sankey/index.js.map +0 -1
- package/esm/transform/utils/d3-sankey/sankey.js.map +0 -1
- package/esm/transform/utils/flow.js.map +0 -1
- package/esm/transform/utils/memo.js.map +0 -1
- package/lib/spec/statistic.d.ts +0 -69
- package/lib/spec/statistic.js.map +0 -1
- package/lib/transform/inference/maybeArrayField.d.ts +0 -8
- package/lib/transform/inference/maybeArrayField.js +0 -51
- package/lib/transform/inference/maybeArrayField.js.map +0 -1
- package/lib/transform/inference/maybeKey.d.ts +0 -9
- package/lib/transform/inference/maybeKey.js.map +0 -1
- package/lib/transform/inference/maybeSeries.d.ts +0 -7
- package/lib/transform/inference/maybeSeries.js +0 -27
- package/lib/transform/inference/maybeSeries.js.map +0 -1
- package/lib/transform/inference/maybeSize.d.ts +0 -7
- package/lib/transform/inference/maybeSize.js +0 -18
- package/lib/transform/inference/maybeSize.js.map +0 -1
- package/lib/transform/inference/maybeStackY.js.map +0 -1
- package/lib/transform/inference/maybeTitleX.d.ts +0 -7
- package/lib/transform/inference/maybeTitleX.js +0 -27
- package/lib/transform/inference/maybeTitleX.js.map +0 -1
- package/lib/transform/inference/maybeTooltip.d.ts +0 -9
- package/lib/transform/inference/maybeTooltip.js.map +0 -1
- package/lib/transform/inference/maybeTooltipPosition.js.map +0 -1
- package/lib/transform/inference/maybeTooltipY.d.ts +0 -7
- package/lib/transform/inference/maybeTooltipY.js.map +0 -1
- package/lib/transform/inference/maybeZeroX.js +0 -18
- package/lib/transform/inference/maybeZeroX.js.map +0 -1
- package/lib/transform/inference/maybeZeroY.d.ts +0 -7
- package/lib/transform/inference/maybeZeroY.js +0 -18
- package/lib/transform/inference/maybeZeroY.js.map +0 -1
- package/lib/transform/inference/maybeZeroY1.d.ts +0 -7
- package/lib/transform/inference/maybeZeroY1.js +0 -18
- package/lib/transform/inference/maybeZeroY1.js.map +0 -1
- package/lib/transform/preprocessor/arc.d.ts +0 -7
- package/lib/transform/preprocessor/arc.js +0 -20
- package/lib/transform/preprocessor/arc.js.map +0 -1
- package/lib/transform/preprocessor/cluster.d.ts +0 -5
- package/lib/transform/preprocessor/cluster.js +0 -44
- package/lib/transform/preprocessor/cluster.js.map +0 -1
- package/lib/transform/preprocessor/connector.d.ts +0 -7
- package/lib/transform/preprocessor/connector.js +0 -20
- package/lib/transform/preprocessor/connector.js.map +0 -1
- package/lib/transform/preprocessor/fetch.d.ts +0 -8
- package/lib/transform/preprocessor/fetch.js.map +0 -1
- package/lib/transform/preprocessor/filterBy.js.map +0 -1
- package/lib/transform/preprocessor/fold.d.ts +0 -8
- package/lib/transform/preprocessor/fold.js +0 -32
- package/lib/transform/preprocessor/fold.js.map +0 -1
- package/lib/transform/preprocessor/pick.d.ts +0 -7
- package/lib/transform/preprocessor/pick.js.map +0 -1
- package/lib/transform/preprocessor/rename.js.map +0 -1
- package/lib/transform/preprocessor/sankey.d.ts +0 -8
- package/lib/transform/preprocessor/sankey.js +0 -84
- package/lib/transform/preprocessor/sankey.js.map +0 -1
- package/lib/transform/preprocessor/sortBy.d.ts +0 -7
- package/lib/transform/preprocessor/sortBy.js.map +0 -1
- package/lib/transform/preprocessor/subset.d.ts +0 -7
- package/lib/transform/preprocessor/subset.js.map +0 -1
- package/lib/transform/preprocessor/tree.d.ts +0 -4
- package/lib/transform/preprocessor/tree.js +0 -10
- package/lib/transform/preprocessor/tree.js.map +0 -1
- package/lib/transform/preprocessor/voronoi.d.ts +0 -4
- package/lib/transform/preprocessor/voronoi.js +0 -24
- package/lib/transform/preprocessor/voronoi.js.map +0 -1
- package/lib/transform/preprocessor/wordCloud.d.ts +0 -6
- package/lib/transform/preprocessor/wordCloud.js +0 -112
- package/lib/transform/preprocessor/wordCloud.js.map +0 -1
- package/lib/transform/statistic/Select.js.map +0 -1
- package/lib/transform/statistic/SelectX.js.map +0 -1
- package/lib/transform/statistic/SelectY.js.map +0 -1
- package/lib/transform/statistic/dodgeX.js.map +0 -1
- package/lib/transform/statistic/groupX.js.map +0 -1
- package/lib/transform/statistic/jitter.js.map +0 -1
- package/lib/transform/statistic/jitterY.js.map +0 -1
- package/lib/transform/statistic/normalizeY.js.map +0 -1
- package/lib/transform/statistic/stackEnter.js.map +0 -1
- package/lib/transform/statistic/stackY.js.map +0 -1
- package/lib/transform/statistic/symmetryY.js.map +0 -1
- package/lib/transform/statistic/utils.js.map +0 -1
- package/lib/transform/utils/arc/arc.js.map +0 -1
- package/lib/transform/utils/arc/index.js.map +0 -1
- package/lib/transform/utils/arc/sort.js.map +0 -1
- package/lib/transform/utils/arc/types.js.map +0 -1
- package/lib/transform/utils/d3-cloud/index.js.map +0 -1
- package/lib/transform/utils/d3-sankey/align.js.map +0 -1
- package/lib/transform/utils/d3-sankey/constant.js.map +0 -1
- package/lib/transform/utils/d3-sankey/index.js.map +0 -1
- package/lib/transform/utils/d3-sankey/sankey.js.map +0 -1
- package/lib/transform/utils/flow.js.map +0 -1
- package/lib/transform/utils/memo.js.map +0 -1
- package/src/spec/statistic.ts +0 -135
- package/src/transform/inference/maybeArrayField.ts +0 -55
- package/src/transform/inference/maybeKey.ts +0 -29
- package/src/transform/inference/maybeSeries.ts +0 -26
- package/src/transform/inference/maybeSize.ts +0 -18
- package/src/transform/inference/maybeTitleX.ts +0 -26
- package/src/transform/inference/maybeTooltip.ts +0 -35
- package/src/transform/inference/maybeZeroX.ts +0 -18
- package/src/transform/inference/maybeZeroY.ts +0 -18
- package/src/transform/inference/maybeZeroY1.ts +0 -18
- package/src/transform/preprocessor/arc.ts +0 -21
- package/src/transform/preprocessor/cluster.ts +0 -56
- package/src/transform/preprocessor/connector.ts +0 -22
- package/src/transform/preprocessor/fetch.ts +0 -32
- package/src/transform/preprocessor/filterBy.ts +0 -24
- package/src/transform/preprocessor/fold.ts +0 -32
- package/src/transform/preprocessor/sankey.ts +0 -105
- package/src/transform/preprocessor/tree.ts +0 -12
- package/src/transform/preprocessor/voronoi.ts +0 -30
- package/src/transform/preprocessor/wordCloud.ts +0 -115
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeTitleXOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeTitleX: TC<MaybeTitleXOptions>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaybeTitleX = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
/**
|
|
6
|
-
* Add zero constant encode for x channel.
|
|
7
|
-
* This is useful for interval geometry.
|
|
8
|
-
*/
|
|
9
|
-
const MaybeTitleX = () => {
|
|
10
|
-
return (0, helper_1.merge)(({ encode, columnOf, data }) => {
|
|
11
|
-
const { x, title } = encode;
|
|
12
|
-
if (title !== undefined)
|
|
13
|
-
return {};
|
|
14
|
-
const X = columnOf(data, x);
|
|
15
|
-
return {
|
|
16
|
-
encode: {
|
|
17
|
-
x: (0, helper_1.column)(X),
|
|
18
|
-
title: (0, helper_1.column)(X),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
exports.MaybeTitleX = MaybeTitleX;
|
|
24
|
-
exports.MaybeTitleX.props = {
|
|
25
|
-
category: 'inference',
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=maybeTitleX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeTitleX.js","sourceRoot":"src/","sources":["transform/inference/maybeTitleX.ts"],"names":[],"mappings":";;;AACA,4CAAgD;AAIhD;;;GAGG;AACI,MAAM,WAAW,GAA2B,GAAG,EAAE;IACtD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;QAC1C,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QAC5B,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACnC,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC5B,OAAO;YACL,MAAM,EAAE;gBACN,CAAC,EAAE,IAAA,eAAM,EAAC,CAAC,CAAC;gBACZ,KAAK,EAAE,IAAA,eAAM,EAAC,CAAC,CAAC;aACjB;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAZW,QAAA,WAAW,eAYtB;AAEF,mBAAW,CAAC,KAAK,GAAG;IAClB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeTooltipOptions = {
|
|
3
|
-
channel: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Add zero constant encode for x channel.
|
|
7
|
-
* This is useful for interval geometry.
|
|
8
|
-
*/
|
|
9
|
-
export declare const MaybeTooltip: TC<MaybeTooltipOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeTooltip.js","sourceRoot":"src/","sources":["transform/inference/maybeTooltip.ts"],"names":[],"mappings":";;;AACA,4CAAgD;AAMhD;;;GAGG;AACI,MAAM,YAAY,GAA4B,CAAC,OAAO,EAAE,EAAE;IAC/D,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5B,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;aACnC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;aAC1C,OAAO,C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
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeTooltipYOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeTooltipY: TC<MaybeTooltipYOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeTooltipY.js","sourceRoot":"src/","sources":["transform/inference/maybeTooltipY.ts"],"names":[],"mappings":";;;AACA,iDAA8C;AAI9C;;;GAGG;AACI,MAAM,aAAa,GAA6B,GAAG,EAAE;IAC1D,OAAO,IAAA,2BAAY,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEF,qBAAa,CAAC,KAAK,GAAG;IACpB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaybeZeroX = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
/**
|
|
6
|
-
* Add zero constant encode for x channel.
|
|
7
|
-
* This is useful for interval geometry.
|
|
8
|
-
*/
|
|
9
|
-
const MaybeZeroX = () => {
|
|
10
|
-
return (0, helper_1.merge)(({ encode }) => ({
|
|
11
|
-
encode: (0, helper_1.applyDefaults)(encode, { x: (0, helper_1.constant)(0) }),
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
exports.MaybeZeroX = MaybeZeroX;
|
|
15
|
-
exports.MaybeZeroX.props = {
|
|
16
|
-
category: 'inference',
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=maybeZeroX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeZeroX.js","sourceRoot":"src/","sources":["transform/inference/maybeZeroX.ts"],"names":[],"mappings":";;;AACA,4CAAiE;AAIjE;;;GAGG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,IAAA,sBAAa,EAAC,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,iBAAQ,EAAC,CAAC,CAAC,EAAE,CAAC;KAClD,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,kBAAU,CAAC,KAAK,GAAG;IACjB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeZeroYOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeZeroY: TC<MaybeZeroYOptions>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaybeZeroY = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
/**
|
|
6
|
-
* Add zero constant encode for x channel.
|
|
7
|
-
* This is useful for interval geometry.
|
|
8
|
-
*/
|
|
9
|
-
const MaybeZeroY = () => {
|
|
10
|
-
return (0, helper_1.merge)(({ encode }) => ({
|
|
11
|
-
encode: (0, helper_1.applyDefaults)(encode, { y: (0, helper_1.constant)(0) }),
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
exports.MaybeZeroY = MaybeZeroY;
|
|
15
|
-
exports.MaybeZeroY.props = {
|
|
16
|
-
category: 'inference',
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=maybeZeroY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeZeroY.js","sourceRoot":"src/","sources":["transform/inference/maybeZeroY.ts"],"names":[],"mappings":";;;AACA,4CAAiE;AAIjE;;;GAGG;AACI,MAAM,UAAU,GAA0B,GAAG,EAAE;IACpD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,IAAA,sBAAa,EAAC,MAAM,EAAE,EAAE,CAAC,EAAE,IAAA,iBAAQ,EAAC,CAAC,CAAC,EAAE,CAAC;KAClD,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,kBAAU,CAAC,KAAK,GAAG;IACjB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeZeroY1Options = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeZeroY1: TC<MaybeZeroY1Options>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaybeZeroY1 = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
/**
|
|
6
|
-
* Add zero constant encode for x channel.
|
|
7
|
-
* This is useful for interval geometry.
|
|
8
|
-
*/
|
|
9
|
-
const MaybeZeroY1 = () => {
|
|
10
|
-
return (0, helper_1.merge)(({ encode }) => ({
|
|
11
|
-
encode: (0, helper_1.applyDefaults)(encode, { y1: (0, helper_1.constant)(0) }),
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
exports.MaybeZeroY1 = MaybeZeroY1;
|
|
15
|
-
exports.MaybeZeroY1.props = {
|
|
16
|
-
category: 'inference',
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=maybeZeroY1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeZeroY1.js","sourceRoot":"src/","sources":["transform/inference/maybeZeroY1.ts"],"names":[],"mappings":";;;AACA,4CAAiE;AAIjE;;;GAGG;AACI,MAAM,WAAW,GAA2B,GAAG,EAAE;IACtD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,IAAA,sBAAa,EAAC,MAAM,EAAE,EAAE,EAAE,EAAE,IAAA,iBAAQ,EAAC,CAAC,CAAC,EAAE,CAAC;KACnD,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB;AAEF,mBAAW,CAAC,KAAK,GAAG;IAClB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { ArcTransform } from '../../spec';
|
|
3
|
-
export declare type ArcOptions = Omit<ArcTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* For arc diagram(edge with weight) or chord diagram(with weight)
|
|
6
|
-
*/
|
|
7
|
-
export declare const Arc: TC<ArcOptions>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Arc = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
const arc_1 = require("../utils/arc");
|
|
6
|
-
/**
|
|
7
|
-
* For arc diagram(edge with weight) or chord diagram(with weight)
|
|
8
|
-
*/
|
|
9
|
-
const Arc = (options) => {
|
|
10
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
11
|
-
return {
|
|
12
|
-
data: (0, arc_1.Arc)(options)(data),
|
|
13
|
-
};
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.Arc = Arc;
|
|
17
|
-
exports.Arc.props = {
|
|
18
|
-
category: 'preprocessor',
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=arc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arc.js","sourceRoot":"src/","sources":["transform/preprocessor/arc.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AACxC,sCAAgD;AAIhD;;GAEG;AACI,MAAM,GAAG,GAAmB,CAAC,OAAO,EAAE,EAAE;IAC7C,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,OAAO;YACL,IAAI,EAAE,IAAA,SAAS,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC;SAC/B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AANW,QAAA,GAAG,OAMd;AAEF,WAAG,CAAC,KAAK,GAAG;IACV,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { ClusterTransform } from '../../spec';
|
|
3
|
-
export declare type ClusterOptions = Omit<ClusterTransform, 'type'>;
|
|
4
|
-
export declare const hierarchyFunction: (layoutFunction: any) => (options: any) => import("../../runtime").Transform;
|
|
5
|
-
export declare const Cluster: TC<ClusterOptions>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cluster = exports.hierarchyFunction = void 0;
|
|
4
|
-
const d3_hierarchy_1 = require("d3-hierarchy");
|
|
5
|
-
const helper_1 = require("../utils/helper");
|
|
6
|
-
const hierarchyFunction = (layoutFunction) => (options) => {
|
|
7
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
8
|
-
const { field = 'value', nodeSize, separation, sortBy, as = ['x', 'y'], } = options;
|
|
9
|
-
const [x, y] = as;
|
|
10
|
-
// Process root data.
|
|
11
|
-
const root = (0, d3_hierarchy_1.hierarchy)(data, (d) => d.children)
|
|
12
|
-
.sum((d) => d[field])
|
|
13
|
-
.sort(sortBy);
|
|
14
|
-
// Layout
|
|
15
|
-
const c = layoutFunction();
|
|
16
|
-
c.size([1, 1]);
|
|
17
|
-
if (nodeSize)
|
|
18
|
-
c.nodeSize(nodeSize);
|
|
19
|
-
if (separation)
|
|
20
|
-
c.separation(separation);
|
|
21
|
-
c(root);
|
|
22
|
-
const nodes = [];
|
|
23
|
-
root.each((node) => {
|
|
24
|
-
node[x] = node.x;
|
|
25
|
-
node[y] = node.y;
|
|
26
|
-
node.name = node.data.name;
|
|
27
|
-
nodes.push(node);
|
|
28
|
-
});
|
|
29
|
-
const edges = root.links();
|
|
30
|
-
edges.forEach((edge) => {
|
|
31
|
-
edge[x] = [edge.source[x], edge.target[x]];
|
|
32
|
-
edge[y] = [edge.source[y], edge.target[y]];
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
data: { nodes, edges },
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
exports.hierarchyFunction = hierarchyFunction;
|
|
40
|
-
exports.Cluster = (0, exports.hierarchyFunction)(d3_hierarchy_1.cluster);
|
|
41
|
-
exports.Cluster.props = {
|
|
42
|
-
category: 'preprocessor',
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=cluster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"src/","sources":["transform/preprocessor/cluster.ts"],"names":[],"mappings":";;;AAAA,+CAAkD;AAGlD,4CAAwC;AAIjC,MAAM,iBAAiB,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE;IAC/D,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,MAAM,EACJ,KAAK,GAAG,OAAO,EACf,QAAQ,EACR,UAAU,EACV,M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AM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3C,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;SACvB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA1CW,QAAA,iBAAiB,qBA0C5B;AAEW,QAAA,OAAO,GAAuB,IAAA,yBAAiB,EAAC,sBAAO,CAAC,CAAC;AAEtE,eAAO,CAAC,KAAK,GAAG;IACd,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { ConnectorTransform } from '../../spec';
|
|
3
|
-
export declare type ConnectorOptions = Omit<ConnectorTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Connector transfom by function.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Connector: TC<ConnectorOptions>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Connector = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
/**
|
|
6
|
-
* Connector transfom by function.
|
|
7
|
-
*/
|
|
8
|
-
const Connector = (options) => {
|
|
9
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
10
|
-
const { callback } = options;
|
|
11
|
-
return {
|
|
12
|
-
data: callback ? callback(data) : data,
|
|
13
|
-
};
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.Connector = Connector;
|
|
17
|
-
exports.Connector.props = {
|
|
18
|
-
category: 'preprocessor',
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=connector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"src/","sources":["transform/preprocessor/connector.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AAIxC;;GAEG;AACI,MAAM,SAAS,GAAyB,CAAC,OAAO,EAAE,EAAE;IACzD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;QAE7B,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;SACvC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,SAAS,aAQpB;AAEF,iBAAS,CAAC,KAAK,GAAG;IAChB,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { FetchTransform } from '../../spec';
|
|
3
|
-
export declare type FetchOptions = Omit<FetchTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Fetch resource in different format asynchronously across the network.
|
|
6
|
-
* @todo Support more formats (e.g., csv, dsv).
|
|
7
|
-
*/
|
|
8
|
-
export declare const Fetch: TC<FetchOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"src/","sources":["transform/preprocessor/fetch.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAmC;AACnC,+CAA8C;AAG9C,4CAAwC;AAIxC;;;GAGG;AACI,MAAM,KAAK,GAAqB,CAAC,OAAO,EAAE,EAAE;IACjD,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,iBAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC;IACtE,OAAO,IAAA,cAAK,EAAC,GAAS,EAAE;QACtB,MAAM,QAAQ,GAAG,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AC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9D,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AALW,QAAA,QAAQ,YAKnB;AAEF,gBAAQ,CAAC,KAAK,GAAG;IACf,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { FoldTransform } from '../../spec';
|
|
3
|
-
export declare function isEmpty(obj: any): boolean;
|
|
4
|
-
export declare type FoldOptions = Omit<FoldTransform, 'type'>;
|
|
5
|
-
/**
|
|
6
|
-
* Collapses (or “folds”) one or more data fields into two properties: `key` (contains the original data field name) and `value` (contains the original data value.)
|
|
7
|
-
*/
|
|
8
|
-
export declare const Fold: TC<FoldOptions>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Fold = exports.isEmpty = void 0;
|
|
4
|
-
const helper_1 = require("../utils/helper");
|
|
5
|
-
function isEmpty(obj) {
|
|
6
|
-
return Object.keys(obj).length === 0;
|
|
7
|
-
}
|
|
8
|
-
exports.isEmpty = isEmpty;
|
|
9
|
-
/**
|
|
10
|
-
* Collapses (or “folds”) one or more data fields into two properties: `key` (contains the original data field name) and `value` (contains the original data value.)
|
|
11
|
-
*/
|
|
12
|
-
const Fold = (options) => {
|
|
13
|
-
const { fields, as = [] } = options;
|
|
14
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
15
|
-
if (!fields || isEmpty(fields))
|
|
16
|
-
return { data };
|
|
17
|
-
const [k = 'key', v = 'value'] = as;
|
|
18
|
-
return {
|
|
19
|
-
data: data.reduce((r, d) => {
|
|
20
|
-
for (let i = 0; i < fields.length; i++) {
|
|
21
|
-
r.push(Object.assign(Object.assign({}, d), { [k]: fields[i], [v]: d[fields[i]] }));
|
|
22
|
-
}
|
|
23
|
-
return r;
|
|
24
|
-
}, []),
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
exports.Fold = Fold;
|
|
29
|
-
exports.Fold.props = {
|
|
30
|
-
category: 'preprocessor',
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=fold.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fold.js","sourceRoot":"src/","sources":["transform/preprocessor/fold.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AAExC,SAAgB,OAAO,CAAC,GAAQ;IAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACvC,CAAC;AAFD,0BAEC;AAID;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,EAAE;IAC/C,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IACpC,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;YAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAChD,MAAM,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QACpC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBACtC,CAAC,CAAC,IAAI,iCAAM,CAAC,KAAE,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAG,CAAC;iBACrD;gBACD,OAAO,CAAC,CAAC;YACX,CAAC,EAAE,EAAE,CAAC;SACP,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,IAAI,QAcf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { PickTransform } from '../../spec';
|
|
3
|
-
export declare type PickOptions = Omit<PickTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Immutable data pick by specified fields.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Pick: TC<PickOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pick.js","sourceRoot":"src/","sources":["transform/preprocessor/pick.ts"],"names":[],"mappings":";;;AAEA,qCAAkC;AAIlC;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,EAAE;IAC/C,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,OAAO,IAAA,eAAM,EAAC,EAAE,MAAM,EAAE,CAAC,CAAC;AAC5B,CAAC,CAAC;AAHW,QAAA,IAAI,QAGf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rename.js","sourceRoot":"src/","sources":["transform/preprocessor/rename.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AAExC,SAAgB,OAAO,CAAC,GAAQ;IAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACvC,CAAC;AAFD,0BAEC;AAID;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;IACxB,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QACtC,MAAM,MAAM,GAAG,CAAC,CAAM,EAAE,EAAE,CACxB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CACtB,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,KAAK,CAAC,EAClE,EAAE,CACH,CAAC;QACJ,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAXW,QAAA,MAAM,UAWjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { SankeyTransform } from '../../spec';
|
|
3
|
-
export declare type SankeyOptions = Omit<SankeyTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Compute the node and edge position, return a graph representing the Sankey layout. All will be normalized to [[0, 0], [1, 1]]
|
|
6
|
-
* Required graph data (nodes, edges)
|
|
7
|
-
*/
|
|
8
|
-
export declare const Sankey: TC<SankeyOptions>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Sankey = void 0;
|
|
4
|
-
const d3_sankey_1 = require("../utils/d3-sankey");
|
|
5
|
-
const helper_1 = require("../utils/helper");
|
|
6
|
-
const DEFAULT_OPTIONS = {
|
|
7
|
-
nodeAlign: 'justify',
|
|
8
|
-
nodeWidth: 0.008,
|
|
9
|
-
nodePadding: 0.03,
|
|
10
|
-
nodes: (graph) => graph.nodes,
|
|
11
|
-
links: (graph) => graph.links,
|
|
12
|
-
nodeSort: undefined,
|
|
13
|
-
linkSort: undefined,
|
|
14
|
-
iterations: 6,
|
|
15
|
-
};
|
|
16
|
-
const ALIGN_METHOD = {
|
|
17
|
-
left: d3_sankey_1.left,
|
|
18
|
-
right: d3_sankey_1.right,
|
|
19
|
-
center: d3_sankey_1.center,
|
|
20
|
-
justify: d3_sankey_1.justify,
|
|
21
|
-
};
|
|
22
|
-
function getNodeAlignFunction(nodeAlign) {
|
|
23
|
-
const type = typeof nodeAlign;
|
|
24
|
-
if (type === 'string')
|
|
25
|
-
return ALIGN_METHOD[nodeAlign] || d3_sankey_1.justify;
|
|
26
|
-
if (type === 'function')
|
|
27
|
-
return nodeAlign;
|
|
28
|
-
return d3_sankey_1.justify;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Compute the node and edge position, return a graph representing the Sankey layout. All will be normalized to [[0, 0], [1, 1]]
|
|
32
|
-
* Required graph data (nodes, edges)
|
|
33
|
-
*/
|
|
34
|
-
const Sankey = (options) => {
|
|
35
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
36
|
-
const { nodeId, nodeSort, nodeAlign, nodeWidth, nodePadding, nodeDepth, nodes: nodeNodes, links: nodeLinks, linkSort, iterations, } = Object.assign({}, DEFAULT_OPTIONS, options);
|
|
37
|
-
const sankeyProcessor = (0, d3_sankey_1.sankey)()
|
|
38
|
-
.nodeSort(nodeSort)
|
|
39
|
-
.linkSort(linkSort)
|
|
40
|
-
.links(nodeLinks)
|
|
41
|
-
.nodes(nodeNodes)
|
|
42
|
-
.nodeWidth(nodeWidth)
|
|
43
|
-
.nodePadding(nodePadding)
|
|
44
|
-
.nodeDepth(nodeDepth)
|
|
45
|
-
.nodeAlign(getNodeAlignFunction(nodeAlign))
|
|
46
|
-
.iterations(iterations)
|
|
47
|
-
.extent([
|
|
48
|
-
[0, 0],
|
|
49
|
-
[1, 1],
|
|
50
|
-
]);
|
|
51
|
-
if (typeof nodeId === 'function') {
|
|
52
|
-
sankeyProcessor.nodeId(nodeId);
|
|
53
|
-
}
|
|
54
|
-
const layoutData = sankeyProcessor(data);
|
|
55
|
-
const { nodes: N, links: L } = layoutData;
|
|
56
|
-
const nodes = N.map((node) => {
|
|
57
|
-
const { x0, x1, y0, y1 } = node;
|
|
58
|
-
/* points
|
|
59
|
-
* 3---2
|
|
60
|
-
* | |
|
|
61
|
-
* 0---1
|
|
62
|
-
*/
|
|
63
|
-
return Object.assign(Object.assign({}, node), { x: [x0, x1, x1, x0], y: [y0, y0, y1, y1] });
|
|
64
|
-
});
|
|
65
|
-
const links = L.map((edge) => {
|
|
66
|
-
const { source, target } = edge;
|
|
67
|
-
const sx = source.x1;
|
|
68
|
-
const tx = target.x0;
|
|
69
|
-
const offset = edge.width / 2;
|
|
70
|
-
return Object.assign(Object.assign({}, edge), { x: [sx, sx, tx, tx], y: [
|
|
71
|
-
edge.y0 + offset,
|
|
72
|
-
edge.y0 - offset,
|
|
73
|
-
edge.y1 + offset,
|
|
74
|
-
edge.y1 - offset,
|
|
75
|
-
] });
|
|
76
|
-
});
|
|
77
|
-
return { data: { nodes, links } };
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
exports.Sankey = Sankey;
|
|
81
|
-
exports.Sankey.props = {
|
|
82
|
-
category: 'preprocessor',
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=sankey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sankey.js","sourceRoot":"src/","sources":["transform/preprocessor/sankey.ts"],"names":[],"mappings":";;;AAEA,kDAA0E;AAC1E,4CAAwC;AAExC,MAAM,eAAe,GAA2B;IAC9C,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CA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MAAM;oBAChB,IAAI,CAAC,EAAE,GAAG,MAAM;iBACjB,IACD;QACJ,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAhEW,QAAA,MAAM,UAgEjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { SortByTransform } from '../../spec';
|
|
3
|
-
export declare type SortByOptions = Omit<SortByTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Immutable data sort by specified fields.
|
|
6
|
-
*/
|
|
7
|
-
export declare const SortBy: TC<SortByOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sortBy.js","sourceRoot":"src/","sources":["transform/preprocessor/sortBy.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AAIxC;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAClD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,MAAM,GAAG,GAAG,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAC7B,CAAC,CAAC,MAAM,CACN,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAChE,CAAC,CACF,CAAC;QACJ,MAAM,IAAI,GAAG,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3C,MAAM,UAAU,GAAG,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;QAChD,OAAO;YACL,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;SACjC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,MAAM,UAcjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
import { SubsetTransform } from '../../spec';
|
|
3
|
-
export declare type SubsetOptions = Omit<SubsetTransform, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* Immutable data sort by specified fields.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Subset: TC<SubsetOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subset.js","sourceRoot":"src/","sources":["transform/preprocessor/subset.ts"],"names":[],"mappings":";;;AAEA,4CAAwC;AAExC,SAAS,SAAS,CAAC,CAAS,EAAE,GAAW,EAAE,GAAW;IACpD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC;AAID;;GAEG;AACI,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,OAAO,IAAA,cAAK,EAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACxB,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;QAEhC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC;QAC/C,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC7C,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,KAAK,GAAG,GAAG;YAAE,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAE7C,MAAM,IAAI,GAAG,CAAC,CAAM,EAAE,EAAE,CACtB,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC7B,wBAAwB;YACxB,IAAI,KAAK,IAAI,CAAC,EAAE;gBACd,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;aACzB;YACD,OAAO,KAAK,CAAC;QACf,CAAC,EAAE,EAAE,CAAC,CAAC;QAET,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;SAC7D,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAtBW,QAAA,MAAM,UAsBjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tree = void 0;
|
|
4
|
-
const d3_hierarchy_1 = require("d3-hierarchy");
|
|
5
|
-
const cluster_1 = require("./cluster");
|
|
6
|
-
exports.Tree = (0, cluster_1.hierarchyFunction)(d3_hierarchy_1.tree);
|
|
7
|
-
exports.Tree.props = {
|
|
8
|
-
category: 'preprocessor',
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=tree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"src/","sources":["transform/preprocessor/tree.ts"],"names":[],"mappings":";;;AAAA,+CAAoC;AAGpC,uCAA8C;AAIjC,QAAA,IAAI,GAAoB,IAAA,2BAAiB,EAAC,mBAAI,CAAC,CAAC;AAE7D,YAAI,CAAC,KAAK,GAAG;IACX,QAAQ,EAAE,cAAc;CACzB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Voronoi = void 0;
|
|
4
|
-
const d3_voronoi_1 = require("d3-voronoi");
|
|
5
|
-
const helper_1 = require("../utils/helper");
|
|
6
|
-
const Voronoi = (options) => {
|
|
7
|
-
const { fields: F, as: A, extend } = options;
|
|
8
|
-
const [x, y] = F;
|
|
9
|
-
const [ax, ay] = A;
|
|
10
|
-
return (0, helper_1.merge)(({ data }) => {
|
|
11
|
-
const polygons = (0, d3_voronoi_1.voronoi)()
|
|
12
|
-
.x((d) => d[x])
|
|
13
|
-
.y((d) => d[y])
|
|
14
|
-
.extent(extend)
|
|
15
|
-
.polygons(data)
|
|
16
|
-
.map((p) => (Object.assign(Object.assign({}, p.data), { [ax]: p.map((pi) => pi[0]), [ay]: p.map((pi) => pi[1]) })));
|
|
17
|
-
return { data: polygons };
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
exports.Voronoi = Voronoi;
|
|
21
|
-
exports.Voronoi.props = {
|
|
22
|
-
category: 'preprocessor',
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=voronoi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voronoi.js","sourceRoot":"src/","sources":["transform/preprocessor/voronoi.ts"],"names":[],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../spec';
|
|
3
|
-
export declare type WordCloudOptions = Omit<WordCloudTransform, 'type'>;
|
|
4
|
-
export declare function processImageMask(img: HTMLImageElement | string): Promise<HTMLImageElement>;
|
|
5
|
-
export declare function normalizeFontSize(fontSize: any, range?: [number, number]): any;
|
|
6
|
-
export declare const WordCloud: TC<WordCloudOptions>;
|