@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,5 +1,5 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '
|
|
2
|
-
import { SelectYTransform } from '
|
|
1
|
+
import { TransformComponent as TC } from '../runtime';
|
|
2
|
+
import { SelectYTransform } from '../spec';
|
|
3
3
|
import { Select } from './Select';
|
|
4
4
|
|
|
5
5
|
export type SelectYOptions = Omit<SelectYTransform, 'type'>;
|
|
@@ -12,6 +12,4 @@ export const SelectY: TC<SelectYOptions> = (options = {}) => {
|
|
|
12
12
|
return Select({ y: selector, ...rest });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
SelectY.props = {
|
|
16
|
-
category: 'statistic',
|
|
17
|
-
};
|
|
15
|
+
SelectY.props = {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { deepMix } from '@antv/util';
|
|
1
2
|
import { group, max } from 'd3-array';
|
|
2
|
-
import { TransformComponent as TC } from '
|
|
3
|
-
import { StackEnterTransform } from '
|
|
4
|
-
import {
|
|
3
|
+
import { TransformComponent as TC } from '../runtime';
|
|
4
|
+
import { StackEnterTransform } from '../spec';
|
|
5
|
+
import {
|
|
6
|
+
columnOf,
|
|
7
|
+
constant,
|
|
8
|
+
maybeColumnOf,
|
|
9
|
+
visualColumn,
|
|
10
|
+
} from './utils/helper';
|
|
5
11
|
|
|
6
12
|
export type StackEnterOptions = Omit<StackEnterTransform, 'type'>;
|
|
7
13
|
|
|
@@ -16,14 +22,15 @@ export type StackEnterOptions = Omit<StackEnterTransform, 'type'>;
|
|
|
16
22
|
*/
|
|
17
23
|
export const StackEnter: TC<StackEnterOptions> = (options) => {
|
|
18
24
|
const { by = ['x'] } = options;
|
|
19
|
-
return
|
|
20
|
-
const {
|
|
21
|
-
|
|
25
|
+
return (I, mark) => {
|
|
26
|
+
const { encode } = mark;
|
|
27
|
+
const { enterDuration } = encode;
|
|
28
|
+
if (enterDuration === undefined) return [I, mark];
|
|
22
29
|
|
|
23
30
|
// Extract group information by each specified channel,
|
|
24
31
|
// and skip if all values of channels are empty.
|
|
25
|
-
const groupEntries = by.map((k) => [k, columnOf(
|
|
26
|
-
if (groupEntries.length === 0) return
|
|
32
|
+
const groupEntries = by.map((k) => [k, columnOf(encode, k)[0]]);
|
|
33
|
+
if (groupEntries.length === 0) return [I, mark];
|
|
27
34
|
|
|
28
35
|
// Nest group index and flatten them in right order among timeline.
|
|
29
36
|
// [[1, 2, 3, 4, 5, 6]] ->
|
|
@@ -41,25 +48,26 @@ export const StackEnter: TC<StackEnterOptions> = (options) => {
|
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
// Stack delay for each group.
|
|
44
|
-
const ED = columnOf(
|
|
45
|
-
const EDL =
|
|
51
|
+
const [ED] = columnOf(encode, 'enterDuration');
|
|
52
|
+
const [EDL] = maybeColumnOf(encode, 'enterDelay', constant(I, 0));
|
|
46
53
|
const newEnterDelay = new Array(I.length);
|
|
47
54
|
for (let i = 0, pd = 0; i < groups.length; i++) {
|
|
48
55
|
const I = groups[i];
|
|
49
56
|
const maxDuration = max(I, (i) => +ED[i]);
|
|
50
|
-
for (const j of I) newEnterDelay[j] = EDL[j] + pd;
|
|
57
|
+
for (const j of I) newEnterDelay[j] = +EDL[j] + pd;
|
|
51
58
|
pd += maxDuration;
|
|
52
59
|
}
|
|
53
60
|
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
return [
|
|
62
|
+
I,
|
|
63
|
+
deepMix({}, mark, {
|
|
64
|
+
encode: {
|
|
65
|
+
enterDuration: visualColumn(ED),
|
|
66
|
+
enterDelay: visualColumn(newEnterDelay),
|
|
67
|
+
},
|
|
68
|
+
}),
|
|
69
|
+
];
|
|
70
|
+
};
|
|
61
71
|
};
|
|
62
72
|
|
|
63
|
-
StackEnter.props = {
|
|
64
|
-
category: 'statistic',
|
|
65
|
-
};
|
|
73
|
+
StackEnter.props = {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { deepMix } from '@antv/util';
|
|
2
|
+
import { TransformComponent as TC } from '../runtime';
|
|
3
|
+
import { StackYTransform } from '../spec';
|
|
4
|
+
import { column, columnOf, maybeColumnOf } from './utils/helper';
|
|
5
|
+
import { normalizeComparator, createGroups, applyOrder } from './utils/order';
|
|
5
6
|
|
|
6
7
|
export type StackYOptions = Omit<StackYTransform, 'type'>;
|
|
7
8
|
|
|
@@ -12,15 +13,14 @@ export type StackYOptions = Omit<StackYTransform, 'type'>;
|
|
|
12
13
|
*/
|
|
13
14
|
export const StackY: TC<StackYOptions> = (options = {}) => {
|
|
14
15
|
const { groupBy = 'x', orderBy, reverse = false, y: from = 'y' } = options;
|
|
15
|
-
return
|
|
16
|
-
const { data,
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const S = columnOf(data, series || color);
|
|
16
|
+
return (I, mark, context) => {
|
|
17
|
+
const { data, encode } = mark;
|
|
18
|
+
const [Y, fy] = columnOf(encode, 'y');
|
|
19
|
+
const [Y1, fy1] = columnOf(encode, 'y1');
|
|
20
|
+
const [S] = maybeColumnOf(encode, 'series', 'color');
|
|
21
21
|
|
|
22
22
|
// Create groups and apply specified order for each group.
|
|
23
|
-
const groups = createGroups(groupBy,
|
|
23
|
+
const groups = createGroups(groupBy, I, mark);
|
|
24
24
|
const createComparator = normalizeComparator(orderBy);
|
|
25
25
|
const comparator = createComparator(data, Y, S);
|
|
26
26
|
if (comparator) applyOrder(groups, comparator);
|
|
@@ -44,15 +44,16 @@ export const StackY: TC<StackYOptions> = (options = {}) => {
|
|
|
44
44
|
|
|
45
45
|
// Choose new y or y1 channel as the new y channel.
|
|
46
46
|
const V = from === 'y' ? newY : newY1;
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
return [
|
|
48
|
+
I,
|
|
49
|
+
deepMix({}, mark, {
|
|
50
|
+
encode: {
|
|
51
|
+
y: column(V, fy),
|
|
52
|
+
y1: column(newY1, fy1),
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
];
|
|
56
|
+
};
|
|
54
57
|
};
|
|
55
58
|
|
|
56
|
-
StackY.props = {
|
|
57
|
-
category: 'statistic',
|
|
58
|
-
};
|
|
59
|
+
StackY.props = {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { deepMix } from '@antv/util';
|
|
1
2
|
import { extent } from 'd3-array';
|
|
2
|
-
import { TransformComponent as TC } from '
|
|
3
|
-
import { SymmetryYTransform } from '
|
|
4
|
-
import {
|
|
5
|
-
import { createGroups } from './utils';
|
|
3
|
+
import { TransformComponent as TC } from '../runtime';
|
|
4
|
+
import { SymmetryYTransform } from '../spec';
|
|
5
|
+
import { columnOf, column } from './utils/helper';
|
|
6
|
+
import { createGroups } from './utils/order';
|
|
6
7
|
|
|
7
8
|
export type SymmetryYOptions = Omit<SymmetryYTransform, 'type'>;
|
|
8
9
|
|
|
@@ -12,21 +13,18 @@ export type SymmetryYOptions = Omit<SymmetryYTransform, 'type'>;
|
|
|
12
13
|
*/
|
|
13
14
|
export const SymmetryY: TC<SymmetryYOptions> = (options = {}) => {
|
|
14
15
|
const { groupBy = 'x' } = options;
|
|
15
|
-
return
|
|
16
|
-
const {
|
|
16
|
+
return (I, mark) => {
|
|
17
|
+
const { encode } = mark;
|
|
17
18
|
const { x, ...rest } = encode;
|
|
18
19
|
|
|
19
20
|
// Extract and create new channels starts with y, such as y, y1.
|
|
20
21
|
const Yn = Object.entries(rest)
|
|
21
22
|
.filter(([k]) => k.startsWith('y'))
|
|
22
|
-
.map(([k
|
|
23
|
-
const newYn = Yn.map(([k
|
|
24
|
-
const newV = new Array(I.length);
|
|
25
|
-
return [k, field(newV, V)] as const;
|
|
26
|
-
});
|
|
23
|
+
.map(([k]) => [k, columnOf(encode, k)[0]] as const);
|
|
24
|
+
const newYn = Yn.map(([k]) => [k, new Array(I.length)] as const);
|
|
27
25
|
|
|
28
26
|
// Group marks into series by specified keys.
|
|
29
|
-
const groups = createGroups(groupBy,
|
|
27
|
+
const groups = createGroups(groupBy, I, mark);
|
|
30
28
|
const MY = new Array(groups.length);
|
|
31
29
|
for (let i = 0; i < groups.length; i++) {
|
|
32
30
|
const I = groups[i];
|
|
@@ -48,12 +46,15 @@ export const SymmetryY: TC<SymmetryYOptions> = (options = {}) => {
|
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
return [
|
|
50
|
+
I,
|
|
51
|
+
deepMix({}, mark, {
|
|
52
|
+
encode: Object.fromEntries(
|
|
53
|
+
newYn.map(([k, v]) => [k, column(v, columnOf(encode, k)[1])]),
|
|
54
|
+
),
|
|
55
|
+
}),
|
|
56
|
+
];
|
|
57
|
+
};
|
|
55
58
|
};
|
|
56
59
|
|
|
57
|
-
SymmetryY.props = {
|
|
58
|
-
category: 'statistic',
|
|
59
|
-
};
|
|
60
|
+
SymmetryY.props = {};
|
|
@@ -1,54 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Transform,
|
|
3
|
-
Primitive,
|
|
4
|
-
TransformContext,
|
|
5
|
-
ColumnValue,
|
|
6
|
-
} from '../../runtime';
|
|
1
|
+
import { Primitive } from '../../runtime';
|
|
7
2
|
|
|
8
|
-
export function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
) {
|
|
12
|
-
const target = { ...source };
|
|
13
|
-
for (const [key, value] of Object.entries(defaults)) {
|
|
14
|
-
target[key] = target[key] ?? value;
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
3
|
+
export function column(value: Primitive[], field?: string) {
|
|
4
|
+
if (value === null) return undefined;
|
|
5
|
+
return { type: 'column', value, field };
|
|
17
6
|
}
|
|
18
7
|
|
|
19
|
-
export function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
) => Partial<TransformContext> | Promise<Partial<TransformContext>>,
|
|
23
|
-
): Transform {
|
|
24
|
-
return async (options) => {
|
|
25
|
-
const newOptions = await transform(options);
|
|
26
|
-
const { encode: newEncode } = newOptions;
|
|
27
|
-
const { encode: oldEncode } = options;
|
|
28
|
-
return {
|
|
29
|
-
...options,
|
|
30
|
-
...newOptions,
|
|
31
|
-
// Update encode options only when newEncode is defined.
|
|
32
|
-
...(newEncode && { encode: { ...oldEncode, ...newEncode } }),
|
|
33
|
-
};
|
|
34
|
-
};
|
|
8
|
+
export function visualColumn(value: Primitive[], field?: string) {
|
|
9
|
+
if (value === null) return undefined;
|
|
10
|
+
return { type: 'column', value, field, visual: true };
|
|
35
11
|
}
|
|
36
12
|
|
|
37
|
-
export function
|
|
38
|
-
|
|
39
|
-
return { type: 'column', value };
|
|
13
|
+
export function constant(I: number[], value: any) {
|
|
14
|
+
return new Array(I.length).fill(value);
|
|
40
15
|
}
|
|
41
16
|
|
|
42
|
-
export function
|
|
43
|
-
|
|
17
|
+
export function columnOf(encode, key: string): [Primitive[], string] {
|
|
18
|
+
const channel = encode[key];
|
|
19
|
+
if (!channel) return [null, null];
|
|
20
|
+
const { value, field = null } = channel;
|
|
21
|
+
return [value, field];
|
|
44
22
|
}
|
|
45
23
|
|
|
46
|
-
export function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
export function maybeColumnOf(
|
|
25
|
+
encode,
|
|
26
|
+
...K: (string | Primitive[])[]
|
|
27
|
+
): [Primitive[], string] {
|
|
28
|
+
for (const key of K) {
|
|
29
|
+
if (typeof key === 'string') {
|
|
30
|
+
const [KV, fv] = columnOf(encode, key);
|
|
31
|
+
if (KV !== null) return [KV, fv];
|
|
32
|
+
} else {
|
|
33
|
+
return [key, null];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return [null, null];
|
|
54
37
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { group, ascending, maxIndex, Primitive } from 'd3-array';
|
|
2
|
-
import {
|
|
2
|
+
import { defined } from '../../utils/helper';
|
|
3
|
+
import { TabularData, G2Mark } from '../../runtime';
|
|
3
4
|
import { indexOf } from '../../utils/array';
|
|
5
|
+
import { columnOf } from './helper';
|
|
4
6
|
|
|
5
7
|
export type IndexComparatorFactory = (
|
|
6
8
|
data: TabularData,
|
|
7
|
-
Y:
|
|
8
|
-
S:
|
|
9
|
+
Y: Primitive[],
|
|
10
|
+
S: Primitive[],
|
|
9
11
|
) => IndexComparator;
|
|
10
12
|
|
|
11
13
|
export type IndexComparator = (i: number, j: number) => number;
|
|
@@ -20,13 +22,14 @@ export type Order =
|
|
|
20
22
|
|
|
21
23
|
export function createGroups(
|
|
22
24
|
groupBy: string | string[],
|
|
23
|
-
|
|
25
|
+
I: number[],
|
|
26
|
+
mark: G2Mark,
|
|
24
27
|
): number[][] {
|
|
25
|
-
const {
|
|
28
|
+
const { encode } = mark;
|
|
26
29
|
const G = normalizeGroupBy(groupBy)
|
|
27
|
-
.map((k) => [k, columnOf(
|
|
28
|
-
.filter(([,
|
|
29
|
-
const key = (i) => G.map(([, V]) => V[i]).join('-');
|
|
30
|
+
.map((k) => [k, columnOf(encode, k)?.[0]] as const)
|
|
31
|
+
.filter(([, column]) => defined(column));
|
|
32
|
+
const key = (i: number) => G.map(([, V]) => V[i]).join('-');
|
|
30
33
|
return Array.from(group(I, key).values());
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -46,7 +49,7 @@ export function applyOrder(groups: number[][], comparator: IndexComparator) {
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
export function domainOf(value:
|
|
52
|
+
export function domainOf(value: Primitive[], scale: Record<string, any>) {
|
|
50
53
|
return scale?.domain || Array.from(new Set(value));
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -57,8 +60,8 @@ function normalizeGroupBy(groupBy: string | string[]): string[] {
|
|
|
57
60
|
|
|
58
61
|
function createSeriesOrder(
|
|
59
62
|
data: TabularData,
|
|
60
|
-
Y:
|
|
61
|
-
S:
|
|
63
|
+
Y: Primitive[],
|
|
64
|
+
S: Primitive[],
|
|
62
65
|
): IndexComparator {
|
|
63
66
|
return ascendingComparator((i: number) => S[i]);
|
|
64
67
|
}
|
|
@@ -83,16 +86,16 @@ function createFieldsOrder(order: string[]): IndexComparatorFactory {
|
|
|
83
86
|
|
|
84
87
|
function createValueOrder(
|
|
85
88
|
data: TabularData,
|
|
86
|
-
Y:
|
|
87
|
-
S:
|
|
89
|
+
Y: Primitive[],
|
|
90
|
+
S: Primitive[],
|
|
88
91
|
): IndexComparator {
|
|
89
92
|
return ascendingComparator((i: number) => Y[i]);
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
function createSumOrder(
|
|
93
96
|
data: TabularData,
|
|
94
|
-
Y:
|
|
95
|
-
S:
|
|
97
|
+
Y: Primitive[],
|
|
98
|
+
S: Primitive[],
|
|
96
99
|
): IndexComparator {
|
|
97
100
|
const I = indexOf(data);
|
|
98
101
|
const groups = Array.from(group(I, (i) => S[+i]).entries());
|
|
@@ -104,8 +107,8 @@ function createSumOrder(
|
|
|
104
107
|
|
|
105
108
|
function createMaxIndexOrder(
|
|
106
109
|
data: TabularData,
|
|
107
|
-
Y:
|
|
108
|
-
S:
|
|
110
|
+
Y: Primitive[],
|
|
111
|
+
S: Primitive[],
|
|
109
112
|
): IndexComparator {
|
|
110
113
|
const I = indexOf(data);
|
|
111
114
|
const groups = Array.from(group(I, (i) => S[+i]).entries());
|
package/src/utils/coordinate.ts
CHANGED
|
@@ -13,6 +13,11 @@ export function isPolar(coordinate: Coordinate): boolean {
|
|
|
13
13
|
return transformations.some(([type]) => type === 'polar');
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export function isHelix(coordinate: Coordinate): boolean {
|
|
17
|
+
const { transformations } = coordinate.getOptions();
|
|
18
|
+
return transformations.some(([type]) => type === 'helix');
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
export function isParallel(coordinate: Coordinate): boolean {
|
|
17
22
|
const { transformations } = coordinate.getOptions();
|
|
18
23
|
return transformations.some(([type]) => type === 'parallel');
|
package/esm/spec/statistic.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Primitive, TransformComponent } from '../runtime';
|
|
2
|
-
import { ChannelTypes } from './geometry';
|
|
3
|
-
export declare type StatisticTransform = StackYTransform | DodgeXTransform | NormalizeYTransform | StackEnterTransform | JitterTransform | JitterYTransform | SymmetryYTransform | SelectTransform | SelectXTransform | SelectYTransform | GroupXTransform;
|
|
4
|
-
export declare type StatisticOrder = 'value' | 'sum' | 'series' | 'maxIndex' | string[] | ((data: Record<string, Primitive>) => Primitive);
|
|
5
|
-
export declare type StatisticTransformTypes = 'dodgeX' | 'stackY' | 'normalizeY' | 'stackEnter' | 'jitter' | 'jitterY' | 'symmetryY' | 'select' | 'selectY' | 'selectX' | 'groupX' | TransformComponent;
|
|
6
|
-
export declare type DodgeXTransform = {
|
|
7
|
-
type?: 'dodgeX';
|
|
8
|
-
groupBy?: string | string[];
|
|
9
|
-
reverse?: boolean;
|
|
10
|
-
orderBy?: StatisticOrder;
|
|
11
|
-
paddingInner?: number;
|
|
12
|
-
paddingOuter?: number;
|
|
13
|
-
padding?: number;
|
|
14
|
-
};
|
|
15
|
-
export declare type StackYTransform = {
|
|
16
|
-
type?: 'stackY';
|
|
17
|
-
groupBy?: string | string[];
|
|
18
|
-
reverse?: boolean;
|
|
19
|
-
orderBy?: StatisticOrder;
|
|
20
|
-
y?: 'y' | 'y1';
|
|
21
|
-
};
|
|
22
|
-
export declare type NormalizeYTransform = {
|
|
23
|
-
type?: 'normalizeY';
|
|
24
|
-
series?: boolean;
|
|
25
|
-
groupBy?: string | string[];
|
|
26
|
-
basis?: 'deviation' | 'first' | 'last' | 'max' | 'mean' | 'median' | 'min' | 'sum' | 'extent';
|
|
27
|
-
};
|
|
28
|
-
export declare type JitterTransform = {
|
|
29
|
-
type?: 'jitter';
|
|
30
|
-
paddingX?: number;
|
|
31
|
-
paddingY?: number;
|
|
32
|
-
};
|
|
33
|
-
export declare type JitterYTransform = {
|
|
34
|
-
type?: 'jitterY';
|
|
35
|
-
padding?: number;
|
|
36
|
-
};
|
|
37
|
-
export declare type StackEnterTransform = {
|
|
38
|
-
type?: 'stackEnter';
|
|
39
|
-
by?: string[];
|
|
40
|
-
};
|
|
41
|
-
export declare type SymmetryYTransform = {
|
|
42
|
-
type?: 'symmetryY';
|
|
43
|
-
groupBy?: string | string[];
|
|
44
|
-
};
|
|
45
|
-
export declare type Selector = 'min' | 'max' | 'first' | 'last' | 'mean' | 'median' | ((I: number[], V: number[]) => number[]);
|
|
46
|
-
export declare type SelectTransform = {
|
|
47
|
-
type?: 'select';
|
|
48
|
-
groupBy?: string | string[];
|
|
49
|
-
} & {
|
|
50
|
-
[key in ChannelTypes]?: Selector;
|
|
51
|
-
};
|
|
52
|
-
export declare type SelectXTransform = {
|
|
53
|
-
type?: 'selectX';
|
|
54
|
-
groupBy?: string | string[];
|
|
55
|
-
selector?: Selector;
|
|
56
|
-
};
|
|
57
|
-
export declare type SelectYTransform = {
|
|
58
|
-
type?: 'selectY';
|
|
59
|
-
groupBy?: string | string[];
|
|
60
|
-
selector?: Selector;
|
|
61
|
-
};
|
|
62
|
-
export declare type Reducer = 'mean' | 'max' | 'count' | 'min' | 'median' | 'sum' | 'first' | 'last' | ((I: number[], V: Primitive[]) => Primitive);
|
|
63
|
-
export declare type GroupXTransform = {
|
|
64
|
-
type?: 'groupX';
|
|
65
|
-
orderBy?: ChannelTypes;
|
|
66
|
-
reverse?: boolean;
|
|
67
|
-
} & {
|
|
68
|
-
[key in ChannelTypes]?: Reducer;
|
|
69
|
-
};
|
package/esm/spec/statistic.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistic.js","sourceRoot":"src/","sources":["spec/statistic.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeArrayFieldOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
* @todo Take more channels into account.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MaybeArrayField: TC<MaybeArrayFieldOptions>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { merge, column, field } from '../utils/helper';
|
|
2
|
-
/**
|
|
3
|
-
* Add zero constant encode for x channel.
|
|
4
|
-
* This is useful for interval geometry.
|
|
5
|
-
* @todo Take more channels into account.
|
|
6
|
-
*/
|
|
7
|
-
export const MaybeArrayField = () => {
|
|
8
|
-
return merge(({ encode, columnOf, data, I }) => {
|
|
9
|
-
const columns = Object.entries(encode)
|
|
10
|
-
.filter(([key]) => {
|
|
11
|
-
return (key.startsWith('x') ||
|
|
12
|
-
key.startsWith('y') ||
|
|
13
|
-
key.startsWith('position'));
|
|
14
|
-
})
|
|
15
|
-
.map(([key, value]) => [key, column(columnOf(data, value))]);
|
|
16
|
-
const arrayColumns = columns
|
|
17
|
-
.filter(([, value]) => {
|
|
18
|
-
const { value: V } = value;
|
|
19
|
-
return Array.isArray(V[0]);
|
|
20
|
-
})
|
|
21
|
-
.flatMap(([key, value]) => {
|
|
22
|
-
const columns = [[key, new Array(I.length).fill(undefined)]];
|
|
23
|
-
const { value: rows } = value;
|
|
24
|
-
for (let i = 0; i < rows.length; i++) {
|
|
25
|
-
const row = rows[i];
|
|
26
|
-
if (Array.isArray(row)) {
|
|
27
|
-
for (let j = 0; j < row.length; j++) {
|
|
28
|
-
const column = columns[j] || [
|
|
29
|
-
`${key}${j}`,
|
|
30
|
-
new Array(I).fill(undefined),
|
|
31
|
-
];
|
|
32
|
-
column[1][i] = row[j];
|
|
33
|
-
columns[j] = column;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return columns.map(([k, v]) => [k, column(field(v, rows))]);
|
|
38
|
-
});
|
|
39
|
-
return {
|
|
40
|
-
encode: Object.fromEntries([...columns, ...arrayColumns]),
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
MaybeArrayField.props = {
|
|
45
|
-
category: 'inference',
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=maybeArrayField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeArrayField.js","sourceRoot":"src/","sources":["transform/inference/maybeArrayField.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAIvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA+B,GAAG,EAAE;IAC9D,OAAO,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE;QAC7C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;aACnC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE;YAChB,OAAO,CACL,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC;gBACnB,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC;gBACnB,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAC3B,CAAC;QACJ,CAAC,CAAC;aACD,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAU,CAAC,CAAC;QAExE,MAAM,YAAY,GAAG,OAAO;aACzB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE;YACpB,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;YAC3B,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC;aACD,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxB,MAAM,OAAO,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAU,CAAC,CAAC;YACtE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;YAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBACpB,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBACnC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI;4BAC3B,GAAG,GAAG,GAAG,CAAC,EAAE;4BACZ,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;yBAC7B,CAAC;wBACF,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;wBACtB,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;qBACrB;iBACF;aACF;YACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEL,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC;SAC1D,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,CAAC,KAAK,GAAG;IACtB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeKeyOptions = {
|
|
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 MaybeKey: TC<MaybeKeyOptions>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeKey.js","sourceRoot":"src/","sources":["transform/inference/maybeKey.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMhD;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAwB,GAAG,EAAE;IAChD,OAAO,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC7C,MAAM,EAAE,GAAG,KAAc,MAAM,EAAf,IAAI,UAAK,MAAM,EAAzB,OAAgB,CAAS,CAAC;QAChC,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,MAAM;aACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;aACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAChB,IAAI,CAAC,GAAG,CAAC,CACb,CAAC;QACF,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,QAAQ,CAAC,KAAK,GAAG;IACf,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeSeriesOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeSeries: TC<MaybeSeriesOptions>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { merge, column } from '../utils/helper';
|
|
2
|
-
/**
|
|
3
|
-
* Add zero constant encode for x channel.
|
|
4
|
-
* This is useful for interval geometry.
|
|
5
|
-
*/
|
|
6
|
-
export const MaybeSeries = () => {
|
|
7
|
-
return merge(({ encode, data, columnOf }) => {
|
|
8
|
-
const { series, color } = encode;
|
|
9
|
-
if (series !== undefined)
|
|
10
|
-
return {};
|
|
11
|
-
const C = columnOf(data, color);
|
|
12
|
-
return {
|
|
13
|
-
encode: {
|
|
14
|
-
color: column(C),
|
|
15
|
-
series: column(C),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
MaybeSeries.props = {
|
|
21
|
-
category: 'inference',
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=maybeSeries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeSeries.js","sourceRoot":"src/","sources":["transform/inference/maybeSeries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAA2B,GAAG,EAAE;IACtD,OAAO,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACjC,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACpC,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO;YACL,MAAM,EAAE;gBACN,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;gBAChB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;aAClB;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,WAAW,CAAC,KAAK,GAAG;IAClB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TransformComponent as TC } from '../../runtime';
|
|
2
|
-
export declare type MaybeSizeOptions = Record<string, never>;
|
|
3
|
-
/**
|
|
4
|
-
* Add zero constant encode for x channel.
|
|
5
|
-
* This is useful for interval geometry.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MaybeSize: TC<MaybeSizeOptions>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { merge, applyDefaults, constant } from '../utils/helper';
|
|
2
|
-
/**
|
|
3
|
-
* Add zero constant encode for x channel.
|
|
4
|
-
* This is useful for interval geometry.
|
|
5
|
-
*/
|
|
6
|
-
export const MaybeSize = () => {
|
|
7
|
-
return merge(({ encode }) => ({
|
|
8
|
-
encode: applyDefaults(encode, { size: constant(3) }),
|
|
9
|
-
}));
|
|
10
|
-
};
|
|
11
|
-
MaybeSize.props = {
|
|
12
|
-
category: 'inference',
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=maybeSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeSize.js","sourceRoot":"src/","sources":["transform/inference/maybeSize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIjE;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAyB,GAAG,EAAE;IAClD,OAAO,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,aAAa,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;KACrD,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,SAAS,CAAC,KAAK,GAAG;IAChB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maybeStackY.js","sourceRoot":"src/","sources":["transform/inference/maybeStackY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAMxC,0BAA0B;AAC1B,2DAA2D;AAC3D,4CAA4C;AAC5C,SAAS,OAAO,CAAC,SAAwB;IACvC,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAC3B,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAChD,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAA2B,CAAC,OAAO,EAAE,EAAE;IAC7D,OAAO,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QACtC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;YAAE,OAAO,EAAE,CAAC;QAEvC,oFAAoF;QACpF,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QAClD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAC/C,OAAO,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,WAAW,CAAC,KAAK,GAAG;IAClB,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -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>;
|