@antv/g2 5.0.0-alpha.1 → 5.0.0-alpha.3
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/dist/g2-lite.min.js +7 -0
- package/dist/g2.min.js +2 -5
- package/esm/animation/index.d.ts +18 -7
- package/esm/animation/index.js +3 -0
- package/esm/animation/index.js.map +1 -1
- package/esm/animation/morphing.js +3 -24
- package/esm/animation/morphing.js.map +1 -1
- package/esm/animation/scaleInX.js +3 -0
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +3 -0
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/utils.d.ts +3 -0
- package/esm/animation/utils.js +20 -0
- package/esm/animation/utils.js.map +1 -1
- package/esm/animation/waveIn.d.ts +7 -0
- package/esm/animation/waveIn.js +62 -0
- package/esm/animation/waveIn.js.map +1 -0
- package/esm/animation/zoomIn.d.ts +4 -0
- package/esm/animation/zoomIn.js +39 -0
- package/esm/animation/zoomIn.js.map +1 -0
- package/esm/animation/zoomOut.d.ts +4 -0
- package/esm/animation/zoomOut.js +34 -0
- package/esm/animation/zoomOut.js.map +1 -0
- package/esm/api/chart.d.ts +13 -0
- package/esm/api/chart.js +70 -6
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/facetCircle.d.ts +21 -0
- package/esm/api/composition/facetCircle.js +30 -0
- package/esm/api/composition/facetCircle.js.map +1 -0
- package/esm/api/composition/facetRect.d.ts +23 -0
- package/esm/api/composition/facetRect.js +32 -0
- package/esm/api/composition/facetRect.js.map +1 -0
- package/esm/api/composition/index.d.ts +19 -19
- package/esm/api/composition/index.js +13 -13
- package/esm/api/composition/index.js.map +1 -1
- package/esm/api/composition/repeatMatrix.d.ts +21 -0
- package/esm/api/composition/repeatMatrix.js +30 -0
- package/esm/api/composition/repeatMatrix.js.map +1 -0
- package/esm/api/composition/spaceFlex.d.ts +17 -0
- package/esm/api/composition/spaceFlex.js +26 -0
- package/esm/api/composition/spaceFlex.js.map +1 -0
- package/esm/api/composition/spaceLayer.d.ts +14 -0
- package/esm/api/composition/spaceLayer.js +23 -0
- package/esm/api/composition/spaceLayer.js.map +1 -0
- package/esm/api/composition/timingKeyframe.d.ts +17 -0
- package/esm/api/composition/timingKeyframe.js +26 -0
- package/esm/api/composition/timingKeyframe.js.map +1 -0
- package/esm/api/mark/index.d.ts +19 -19
- package/esm/api/mark/index.js +10 -10
- package/esm/api/mark/index.js.map +1 -1
- package/esm/api/mark/mark.d.ts +26 -26
- package/esm/api/mark/mark.js +52 -49
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +3 -0
- package/esm/api/node.d.ts +11 -5
- package/esm/api/node.js +61 -8
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +2 -1
- package/esm/api/props.js +39 -18
- package/esm/api/props.js.map +1 -1
- package/esm/api/types.d.ts +1 -1
- package/esm/component/axis.d.ts +8 -2
- package/esm/component/axis.js +172 -97
- package/esm/component/axis.js.map +1 -1
- package/esm/component/index.d.ts +10 -5
- package/esm/component/index.js.map +1 -1
- package/esm/component/legendCategory.d.ts +5 -1
- package/esm/component/legendCategory.js +7 -10
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.d.ts +1 -0
- package/esm/component/legendContinuous.js +4 -3
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/composition/facetCircle.d.ts +7 -0
- package/esm/composition/facetCircle.js +85 -0
- package/esm/composition/facetCircle.js.map +1 -0
- package/esm/composition/facetRect.d.ts +31 -0
- package/esm/composition/facetRect.js +306 -0
- package/esm/composition/facetRect.js.map +1 -0
- package/esm/composition/index.d.ts +16 -8
- package/esm/composition/index.js +6 -6
- package/esm/composition/index.js.map +1 -1
- package/esm/composition/mark.js +13 -2
- package/esm/composition/mark.js.map +1 -1
- package/esm/composition/repeatMatrix.d.ts +8 -0
- package/esm/composition/repeatMatrix.js +149 -0
- package/esm/composition/repeatMatrix.js.map +1 -0
- package/esm/composition/spaceFlex.d.ts +7 -0
- package/esm/composition/spaceFlex.js +40 -0
- package/esm/composition/spaceFlex.js.map +1 -0
- package/esm/composition/spaceLayer.d.ts +7 -0
- package/esm/composition/spaceLayer.js +32 -0
- package/esm/composition/spaceLayer.js.map +1 -0
- package/esm/composition/timingKeyframe.d.ts +7 -0
- package/esm/composition/timingKeyframe.js +75 -0
- package/esm/composition/timingKeyframe.js.map +1 -0
- package/esm/composition/view.js +3 -3
- package/esm/composition/view.js.map +1 -1
- package/esm/coordinate/index.d.ts +26 -12
- package/esm/coordinate/index.js +1 -0
- package/esm/coordinate/index.js.map +1 -1
- package/esm/coordinate/radial.d.ts +7 -0
- package/esm/coordinate/radial.js +12 -0
- package/esm/coordinate/radial.js.map +1 -0
- package/esm/data/arc.d.ts +7 -0
- package/esm/data/arc.js +10 -18
- package/esm/data/arc.js.map +1 -1
- package/esm/data/cluster.d.ts +8 -0
- package/esm/data/cluster.js +36 -46
- package/esm/data/cluster.js.map +1 -1
- package/esm/data/custom.d.ts +7 -0
- package/esm/data/custom.js +10 -0
- package/esm/data/custom.js.map +1 -0
- package/esm/data/fetch.js +7 -6
- package/esm/data/fetch.js.map +1 -1
- package/esm/data/filterBy.js +6 -2
- package/esm/data/filterBy.js.map +1 -1
- package/esm/data/index.d.ts +30 -9
- package/esm/data/index.js +7 -1
- package/esm/data/index.js.map +1 -1
- package/esm/data/map.d.ts +7 -0
- package/esm/data/map.js +10 -0
- package/esm/data/map.js.map +1 -0
- package/esm/data/sankey.d.ts +8 -0
- package/esm/data/sankey.js +76 -95
- package/esm/data/sankey.js.map +1 -1
- package/esm/data/sortBy.js +14 -4
- package/esm/data/sortBy.js.map +1 -1
- package/esm/data/tree.d.ts +4 -0
- package/esm/data/tree.js +6 -9
- package/esm/data/tree.js.map +1 -1
- package/esm/data/utils/arc/index.d.ts +1 -1
- package/esm/data/utils/fields.d.ts +6 -0
- package/esm/data/utils/fields.js +15 -0
- package/esm/data/utils/fields.js.map +1 -0
- package/esm/data/voronoi.d.ts +1 -0
- package/esm/data/voronoi.js +1 -22
- package/esm/data/voronoi.js.map +1 -1
- package/esm/data/wordCloud.d.ts +6 -0
- package/esm/data/wordCloud.js +102 -99
- package/esm/data/wordCloud.js.map +1 -1
- package/esm/encode/index.d.ts +8 -4
- package/esm/encode/index.js.map +1 -1
- package/esm/interaction/action/index.d.ts +42 -21
- package/esm/interaction/action/index.js +8 -8
- package/esm/interaction/action/index.js.map +1 -1
- package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -1
- package/esm/interaction/builtin/activeRegion.js.map +1 -1
- package/esm/interaction/builtin/brush.js.map +1 -1
- package/esm/interaction/builtin/brushHighlight.js.map +1 -1
- package/esm/interaction/builtin/brushVisible.js.map +1 -1
- package/esm/interaction/builtin/elementActive.d.ts +0 -2
- package/esm/interaction/builtin/elementActive.js.map +1 -1
- package/esm/interaction/builtin/elementHighlight.d.ts +0 -2
- package/esm/interaction/builtin/elementHighlight.js.map +1 -1
- package/esm/interaction/builtin/elementHighlightByColor.d.ts +0 -2
- package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -1
- package/esm/interaction/builtin/elementHighlightByX.d.ts +0 -2
- package/esm/interaction/builtin/elementHighlightByX.js.map +1 -1
- package/esm/interaction/builtin/elementListHighlight.js.map +1 -1
- package/esm/interaction/builtin/elementSelected.d.ts +1 -3
- package/esm/interaction/builtin/elementSelected.js.map +1 -1
- package/esm/interaction/builtin/ellipsisText.js.map +1 -1
- package/esm/interaction/builtin/fisheye.d.ts +6 -0
- package/esm/interaction/builtin/fisheye.js.map +1 -1
- package/esm/interaction/builtin/legendActive.js.map +1 -1
- package/esm/interaction/builtin/legendHighlight.js.map +1 -1
- package/esm/interaction/builtin/tooltip.d.ts +2 -2
- package/esm/interaction/builtin/tooltip.js.map +1 -1
- package/esm/interaction/index.d.ts +8 -18
- package/esm/interaction/index.js +40 -18
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/interactor/index.d.ts +4 -2
- package/esm/interaction/interactor/index.js.map +1 -1
- package/esm/interaction/native/chartIndex.d.ts +4 -0
- package/esm/interaction/native/chartIndex.js +168 -0
- package/esm/interaction/native/chartIndex.js.map +1 -0
- package/esm/interaction/native/elementActive.d.ts +10 -0
- package/esm/interaction/native/elementActive.js +69 -0
- package/esm/interaction/native/elementActive.js.map +1 -0
- package/esm/interaction/native/elementActiveByColor.d.ts +4 -0
- package/esm/interaction/native/elementActiveByColor.js +12 -0
- package/esm/interaction/native/elementActiveByColor.js.map +1 -0
- package/esm/interaction/native/elementActiveByX.d.ts +8 -0
- package/esm/interaction/native/elementActiveByX.js +13 -0
- package/esm/interaction/native/elementActiveByX.js.map +1 -0
- package/esm/interaction/native/elementSelect.d.ts +11 -0
- package/esm/interaction/native/elementSelect.js +111 -0
- package/esm/interaction/native/elementSelect.js.map +1 -0
- package/esm/interaction/native/elementSelectByColor.d.ts +1 -0
- package/esm/interaction/native/elementSelectByColor.js +9 -0
- package/esm/interaction/native/elementSelectByColor.js.map +1 -0
- package/esm/interaction/native/elementSelectByX.d.ts +1 -0
- package/esm/interaction/native/elementSelectByX.js +9 -0
- package/esm/interaction/native/elementSelectByX.js.map +1 -0
- package/esm/interaction/native/fisheye.d.ts +4 -0
- package/esm/interaction/native/fisheye.js +44 -0
- package/esm/interaction/native/fisheye.js.map +1 -0
- package/esm/interaction/native/utils.d.ts +28 -0
- package/esm/interaction/native/utils.js +173 -0
- package/esm/interaction/native/utils.js.map +1 -0
- package/esm/label-transform/dodgeY.d.ts +7 -0
- package/esm/label-transform/dodgeY.js +67 -0
- package/esm/label-transform/dodgeY.js.map +1 -0
- package/esm/label-transform/hideOverlap.d.ts +4 -0
- package/esm/{labelLayout → label-transform}/hideOverlap.js +0 -0
- package/esm/label-transform/hideOverlap.js.map +1 -0
- package/esm/label-transform/index.d.ts +4 -0
- package/esm/label-transform/index.js +3 -0
- package/esm/label-transform/index.js.map +1 -0
- package/esm/mark/area.d.ts +4 -0
- package/esm/mark/area.js +71 -0
- package/esm/mark/area.js.map +1 -0
- package/esm/mark/box.d.ts +34 -0
- package/esm/mark/box.js +90 -0
- package/esm/mark/box.js.map +1 -0
- package/esm/mark/cell.d.ts +9 -0
- package/esm/mark/cell.js +47 -0
- package/esm/mark/cell.js.map +1 -0
- package/esm/mark/connector.d.ts +4 -0
- package/esm/mark/connector.js +18 -0
- package/esm/mark/connector.js.map +1 -0
- package/esm/mark/image.d.ts +4 -0
- package/esm/mark/image.js +31 -0
- package/esm/mark/image.js.map +1 -0
- package/esm/mark/index.d.ts +36 -0
- package/esm/mark/index.js +19 -0
- package/esm/mark/index.js.map +1 -0
- package/esm/mark/interval.d.ts +12 -0
- package/esm/mark/interval.js +71 -0
- package/esm/mark/interval.js.map +1 -0
- package/esm/mark/line.d.ts +7 -0
- package/esm/mark/line.js +80 -0
- package/esm/mark/line.js.map +1 -0
- package/esm/mark/lineX.d.ts +4 -0
- package/esm/mark/lineX.js +21 -0
- package/esm/mark/lineX.js.map +1 -0
- package/esm/mark/lineY.d.ts +4 -0
- package/esm/mark/lineY.js +21 -0
- package/esm/mark/lineY.js.map +1 -0
- package/esm/mark/link.d.ts +7 -0
- package/esm/mark/link.js +36 -0
- package/esm/mark/link.js.map +1 -0
- package/esm/mark/point.d.ts +9 -0
- package/esm/mark/point.js +79 -0
- package/esm/mark/point.js.map +1 -0
- package/esm/mark/polygon.d.ts +7 -0
- package/esm/mark/polygon.js +43 -0
- package/esm/mark/polygon.js.map +1 -0
- package/esm/mark/range.d.ts +8 -0
- package/esm/mark/range.js +44 -0
- package/esm/mark/range.js.map +1 -0
- package/esm/mark/rangeX.d.ts +4 -0
- package/esm/mark/rangeX.js +14 -0
- package/esm/mark/rangeX.js.map +1 -0
- package/esm/mark/rangeY.d.ts +4 -0
- package/esm/mark/rangeY.js +14 -0
- package/esm/mark/rangeY.js.map +1 -0
- package/esm/mark/rect.d.ts +4 -0
- package/esm/mark/rect.js +31 -0
- package/esm/mark/rect.js.map +1 -0
- package/esm/mark/text.d.ts +4 -0
- package/esm/mark/text.js +32 -0
- package/esm/mark/text.js.map +1 -0
- package/esm/mark/utils.d.ts +5 -0
- package/esm/mark/utils.js +18 -0
- package/esm/mark/utils.js.map +1 -1
- package/esm/mark/vector.d.ts +8 -0
- package/esm/mark/vector.js +43 -0
- package/esm/mark/vector.js.map +1 -0
- package/esm/palette/divergingGreenRed.d.ts +7 -0
- package/esm/palette/divergingGreenRed.js +26 -0
- package/esm/palette/divergingGreenRed.js.map +1 -0
- package/esm/palette/divergingGreenYellow.d.ts +7 -0
- package/esm/palette/divergingGreenYellow.js +26 -0
- package/esm/palette/divergingGreenYellow.js.map +1 -0
- package/esm/palette/divergingRedBlue.d.ts +7 -0
- package/esm/palette/divergingRedBlue.js +26 -0
- package/esm/palette/divergingRedBlue.js.map +1 -0
- package/esm/palette/divergingRedPurple.d.ts +7 -0
- package/esm/palette/divergingRedPurple.js +26 -0
- package/esm/palette/divergingRedPurple.js.map +1 -0
- package/esm/palette/index.d.ts +40 -2
- package/esm/palette/index.js +18 -0
- package/esm/palette/index.js.map +1 -1
- package/esm/palette/sequentialBlue.d.ts +7 -0
- package/esm/palette/sequentialBlue.js +18 -0
- package/esm/palette/sequentialBlue.js.map +1 -0
- package/esm/palette/sequentialDarkBlue.d.ts +7 -0
- package/esm/palette/sequentialDarkBlue.js +18 -0
- package/esm/palette/sequentialDarkBlue.js.map +1 -0
- package/esm/palette/sequentialDarkGreen.d.ts +7 -0
- package/esm/palette/sequentialDarkGreen.js +18 -0
- package/esm/palette/sequentialDarkGreen.js.map +1 -0
- package/esm/palette/sequentialGreen.d.ts +7 -0
- package/esm/palette/sequentialGreen.js +18 -0
- package/esm/palette/sequentialGreen.js.map +1 -0
- package/esm/palette/sequentialGreenBlue.d.ts +7 -0
- package/esm/palette/sequentialGreenBlue.js +18 -0
- package/esm/palette/sequentialGreenBlue.js.map +1 -0
- package/esm/palette/sequentialGrey.d.ts +7 -0
- package/esm/palette/sequentialGrey.js +18 -0
- package/esm/palette/sequentialGrey.js.map +1 -0
- package/esm/palette/sequentialOrange.d.ts +7 -0
- package/esm/palette/sequentialOrange.js +18 -0
- package/esm/palette/sequentialOrange.js.map +1 -0
- package/esm/palette/sequentialPink.d.ts +7 -0
- package/esm/palette/sequentialPink.js +18 -0
- package/esm/palette/sequentialPink.js.map +1 -0
- package/esm/palette/sequentialPinkPurple.d.ts +7 -0
- package/esm/palette/sequentialPinkPurple.js +18 -0
- package/esm/palette/sequentialPinkPurple.js.map +1 -0
- package/esm/palette/sequentialPurple.d.ts +7 -0
- package/esm/palette/sequentialPurple.js +18 -0
- package/esm/palette/sequentialPurple.js.map +1 -0
- package/esm/palette/sequentialRed.d.ts +7 -0
- package/esm/palette/sequentialRed.js +18 -0
- package/esm/palette/sequentialRed.js.map +1 -0
- package/esm/palette/sequentialYellow.d.ts +7 -0
- package/esm/palette/sequentialYellow.js +18 -0
- package/esm/palette/sequentialYellow.js.map +1 -0
- package/esm/palette/sequentialYellowGreen.d.ts +7 -0
- package/esm/palette/sequentialYellowGreen.js +18 -0
- package/esm/palette/sequentialYellowGreen.js.map +1 -0
- package/esm/palette/sequentialYellowOrange.d.ts +7 -0
- package/esm/palette/sequentialYellowOrange.js +18 -0
- package/esm/palette/sequentialYellowOrange.js.map +1 -0
- package/esm/runtime/component.d.ts +1 -1
- package/esm/runtime/component.js +36 -7
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/constant.d.ts +8 -0
- package/esm/runtime/constant.js +9 -0
- package/esm/runtime/constant.js.map +1 -0
- package/esm/runtime/coordinate.d.ts +1 -0
- package/esm/runtime/coordinate.js +6 -8
- package/esm/runtime/coordinate.js.map +1 -1
- package/esm/runtime/index.d.ts +2 -1
- package/esm/runtime/index.js +2 -1
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/layout.js +107 -17
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/mark.js +6 -4
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.d.ts +2 -0
- package/esm/runtime/plot.js +276 -118
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.d.ts +11 -0
- package/esm/runtime/render.js +80 -10
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.d.ts +1 -0
- package/esm/runtime/scale.js +151 -26
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.d.ts +1 -0
- package/esm/runtime/transform.js +30 -0
- package/esm/runtime/transform.js.map +1 -1
- package/esm/runtime/types/common.d.ts +16 -39
- package/esm/runtime/types/component.d.ts +7 -8
- package/esm/runtime/types/options.d.ts +23 -4
- package/esm/runtime/types/theme.d.ts +64 -0
- package/esm/runtime/types/theme.js +2 -0
- package/esm/runtime/types/theme.js.map +1 -0
- package/esm/scale/index.d.ts +26 -11
- package/esm/scale/index.js +2 -0
- package/esm/scale/index.js.map +1 -1
- package/esm/scale/sequential.d.ts +4 -0
- package/esm/scale/sequential.js +6 -0
- package/esm/scale/sequential.js.map +1 -0
- package/esm/scale/sqrt.d.ts +4 -0
- package/esm/scale/sqrt.js +6 -0
- package/esm/scale/sqrt.js.map +1 -0
- package/esm/shape/area/area.js +3 -3
- package/esm/shape/area/area.js.map +1 -1
- package/esm/shape/area/curve.d.ts +8 -0
- package/esm/shape/area/curve.js +165 -0
- package/esm/shape/area/curve.js.map +1 -0
- package/esm/shape/area/smooth.d.ts +5 -0
- package/esm/shape/area/smooth.js +23 -0
- package/esm/shape/area/smooth.js.map +1 -0
- package/esm/shape/area/step.d.ts +3 -0
- package/esm/shape/area/step.js +9 -0
- package/esm/shape/area/step.js.map +1 -0
- package/esm/shape/{schema → box}/box.d.ts +0 -0
- package/esm/shape/box/box.js +88 -0
- package/esm/shape/box/box.js.map +1 -0
- package/esm/shape/connector/connector.d.ts +17 -0
- package/esm/shape/connector/connector.js +106 -0
- package/esm/shape/connector/connector.js.map +1 -0
- package/esm/shape/createElement.d.ts +5 -0
- package/esm/shape/createElement.js +16 -0
- package/esm/shape/createElement.js.map +1 -0
- package/esm/shape/image/image.js +5 -3
- package/esm/shape/image/image.js.map +1 -1
- package/esm/shape/index.d.ts +86 -48
- package/esm/shape/index.js +14 -18
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/interval/color.d.ts +12 -0
- package/esm/shape/interval/color.js +88 -0
- package/esm/shape/interval/color.js.map +1 -0
- package/esm/shape/interval/funnel.js +2 -2
- package/esm/shape/interval/funnel.js.map +1 -1
- package/esm/shape/interval/hollow.d.ts +6 -0
- package/esm/shape/interval/hollow.js +9 -0
- package/esm/shape/interval/hollow.js.map +1 -0
- package/esm/shape/interval/rect.js +3 -3
- package/esm/shape/interval/rect.js.map +1 -1
- package/esm/shape/label/label.js +22 -72
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/label/position.d.ts +25 -0
- package/esm/shape/label/position.js +128 -0
- package/esm/shape/label/position.js.map +1 -0
- package/esm/shape/line/curve.d.ts +8 -0
- package/esm/shape/line/curve.js +117 -0
- package/esm/shape/line/curve.js.map +1 -0
- package/esm/shape/line/hv.js +3 -3
- package/esm/shape/line/hv.js.map +1 -1
- package/esm/shape/line/hvh.js +3 -3
- package/esm/shape/line/hvh.js.map +1 -1
- package/esm/shape/line/line.js +3 -3
- package/esm/shape/line/line.js.map +1 -1
- package/esm/shape/line/smooth.js +3 -3
- package/esm/shape/line/smooth.js.map +1 -1
- package/esm/shape/line/vh.js +3 -3
- package/esm/shape/line/vh.js.map +1 -1
- package/esm/shape/lineXY/line.d.ts +3 -0
- package/esm/shape/lineXY/line.js +58 -0
- package/esm/shape/lineXY/line.js.map +1 -0
- package/esm/shape/{edge → link}/arc.d.ts +0 -0
- package/esm/shape/link/arc.js +53 -0
- package/esm/shape/link/arc.js.map +1 -0
- package/esm/shape/link/link.js +5 -3
- package/esm/shape/link/link.js.map +1 -1
- package/esm/shape/link/smooth.d.ts +6 -0
- package/esm/shape/link/smooth.js +41 -0
- package/esm/shape/link/smooth.js.map +1 -0
- package/esm/shape/link/vhv.d.ts +12 -0
- package/esm/shape/link/vhv.js +71 -0
- package/esm/shape/link/vhv.js.map +1 -0
- package/esm/shape/point/bowtie.js +3 -3
- package/esm/shape/point/bowtie.js.map +1 -1
- package/esm/shape/point/color.d.ts +11 -0
- package/esm/shape/point/color.js +66 -0
- package/esm/shape/point/color.js.map +1 -0
- package/esm/shape/point/cross.js +3 -3
- package/esm/shape/point/cross.js.map +1 -1
- package/esm/shape/point/diamond.js +3 -3
- package/esm/shape/point/diamond.js.map +1 -1
- package/esm/shape/point/hexagon.js +3 -3
- package/esm/shape/point/hexagon.js.map +1 -1
- package/esm/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
- package/esm/shape/point/hollow.js +9 -0
- package/esm/shape/point/hollow.js.map +1 -0
- package/esm/shape/point/hollowBowtie.js +3 -3
- package/esm/shape/point/hollowBowtie.js.map +1 -1
- package/esm/shape/point/hollowDiamond.js +3 -3
- package/esm/shape/point/hollowDiamond.js.map +1 -1
- package/esm/shape/point/hollowHexagon.js +3 -3
- package/esm/shape/point/hollowHexagon.js.map +1 -1
- package/esm/shape/point/hollowSquare.js +3 -3
- package/esm/shape/point/hollowSquare.js.map +1 -1
- package/esm/shape/point/hollowTriangle.js +3 -3
- package/esm/shape/point/hollowTriangle.js.map +1 -1
- package/esm/shape/point/hollowTriangleDown.js +3 -3
- package/esm/shape/point/hollowTriangleDown.js.map +1 -1
- package/esm/shape/point/hyphen.js +3 -3
- package/esm/shape/point/hyphen.js.map +1 -1
- package/esm/shape/point/line.js +3 -3
- package/esm/shape/point/line.js.map +1 -1
- package/esm/shape/point/plus.js +3 -3
- package/esm/shape/point/plus.js.map +1 -1
- package/esm/shape/point/point.js +3 -3
- package/esm/shape/point/point.js.map +1 -1
- package/esm/shape/point/square.js +3 -3
- package/esm/shape/point/square.js.map +1 -1
- package/esm/shape/point/symbol.js +3 -2
- package/esm/shape/point/symbol.js.map +1 -1
- package/esm/shape/point/tick.js +3 -3
- package/esm/shape/point/tick.js.map +1 -1
- package/esm/shape/point/triangle.js +3 -3
- package/esm/shape/point/triangle.js.map +1 -1
- package/esm/shape/point/triangleDown.js +3 -3
- package/esm/shape/point/triangleDown.js.map +1 -1
- package/esm/shape/polygon/polygon.js +6 -5
- package/esm/shape/polygon/polygon.js.map +1 -1
- package/esm/shape/{edge → polygon}/ribbon.d.ts +0 -0
- package/esm/shape/polygon/ribbon.js +70 -0
- package/esm/shape/polygon/ribbon.js.map +1 -0
- package/esm/shape/text/badge.d.ts +11 -0
- package/esm/shape/text/badge.js +98 -0
- package/esm/shape/text/badge.js.map +1 -0
- package/esm/shape/text/text.d.ts +15 -1
- package/esm/shape/text/text.js +145 -10
- package/esm/shape/text/text.js.map +1 -1
- package/esm/shape/utils.d.ts +9 -2
- package/esm/shape/utils.js +41 -11
- package/esm/shape/utils.js.map +1 -1
- package/esm/shape/vector/vector.js +6 -5
- package/esm/shape/vector/vector.js.map +1 -1
- package/esm/spec/animate.d.ts +1 -1
- package/esm/spec/composition.d.ts +41 -15
- package/esm/spec/coordinate.d.ts +9 -2
- package/esm/spec/data.d.ts +145 -8
- package/esm/spec/geometry.d.ts +42 -12
- package/esm/spec/index.d.ts +1 -1
- package/esm/spec/index.js +1 -1
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +33 -21
- package/esm/spec/labelTransform.d.ts +10 -0
- package/esm/spec/labelTransform.js +2 -0
- package/esm/spec/labelTransform.js.map +1 -0
- package/esm/spec/palette.d.ts +54 -0
- package/esm/spec/scale.d.ts +12 -5
- package/esm/spec/transform.d.ts +60 -10
- package/esm/spec/transform.js +0 -133
- package/esm/spec/transform.js.map +1 -1
- package/esm/stdlib/index.js +166 -106
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/dark.d.ts +6 -0
- package/esm/theme/dark.js +246 -0
- package/esm/theme/dark.js.map +1 -0
- package/esm/theme/index.d.ts +1 -0
- package/esm/theme/index.js +1 -0
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/light.d.ts +0 -1
- package/esm/theme/light.js +220 -6
- package/esm/theme/light.js.map +1 -1
- package/esm/transform/diffY.d.ts +8 -0
- package/esm/transform/diffY.js +43 -0
- package/esm/transform/diffY.js.map +1 -0
- package/esm/transform/dodgeX.js +7 -3
- package/esm/transform/dodgeX.js.map +1 -1
- package/esm/transform/flexX.d.ts +7 -0
- package/esm/transform/flexX.js +31 -0
- package/esm/transform/flexX.js.map +1 -0
- package/esm/transform/group.d.ts +10 -0
- package/esm/transform/group.js +101 -0
- package/esm/transform/group.js.map +1 -0
- package/esm/transform/groupColor.d.ts +7 -0
- package/esm/transform/groupColor.js +9 -0
- package/esm/transform/groupColor.js.map +1 -0
- package/esm/transform/groupX.d.ts +0 -2
- package/esm/transform/groupX.js +2 -82
- package/esm/transform/groupX.js.map +1 -1
- package/esm/transform/groupY.d.ts +7 -0
- package/esm/transform/groupY.js +9 -0
- package/esm/transform/groupY.js.map +1 -0
- package/esm/transform/index.d.ts +70 -21
- package/esm/transform/index.js +16 -2
- package/esm/transform/index.js.map +1 -1
- package/esm/transform/jitter.d.ts +1 -0
- package/esm/transform/jitter.js +14 -5
- package/esm/transform/jitter.js.map +1 -1
- package/esm/transform/jitterX.d.ts +8 -0
- package/esm/transform/jitterX.js +25 -0
- package/esm/transform/jitterX.js.map +1 -0
- package/esm/transform/maybeIdentityX.d.ts +7 -0
- package/esm/transform/maybeIdentityX.js +18 -0
- package/esm/transform/maybeIdentityX.js.map +1 -0
- package/esm/transform/maybeIdentityY.d.ts +7 -0
- package/esm/transform/maybeIdentityY.js +18 -0
- package/esm/transform/maybeIdentityY.js.map +1 -0
- package/esm/transform/maybeTupleX.d.ts +7 -0
- package/esm/transform/maybeTupleX.js +16 -0
- package/esm/transform/maybeTupleX.js.map +1 -0
- package/esm/transform/maybeTupleY.d.ts +7 -0
- package/esm/transform/maybeTupleY.js +16 -0
- package/esm/transform/maybeTupleY.js.map +1 -0
- package/esm/transform/maybeZeroPadding.d.ts +6 -0
- package/esm/transform/maybeZeroPadding.js +14 -0
- package/esm/transform/maybeZeroPadding.js.map +1 -0
- package/esm/transform/maybeZeroX.js +1 -0
- package/esm/transform/maybeZeroX.js.map +1 -1
- package/esm/transform/maybeZeroY.js +1 -0
- package/esm/transform/maybeZeroY.js.map +1 -1
- package/esm/transform/normalizeY.js +14 -12
- package/esm/transform/normalizeY.js.map +1 -1
- package/esm/transform/pack.d.ts +8 -0
- package/esm/transform/pack.js +56 -0
- package/esm/transform/pack.js.map +1 -0
- package/esm/transform/sort.d.ts +14 -0
- package/esm/transform/sort.js +64 -0
- package/esm/transform/sort.js.map +1 -0
- package/esm/transform/sortColor.d.ts +7 -0
- package/esm/transform/sortColor.js +9 -0
- package/esm/transform/sortColor.js.map +1 -0
- package/esm/transform/sortX.d.ts +7 -0
- package/esm/transform/sortX.js +9 -0
- package/esm/transform/sortX.js.map +1 -0
- package/esm/transform/sortY.d.ts +7 -0
- package/esm/transform/sortY.js +9 -0
- package/esm/transform/sortY.js.map +1 -0
- package/esm/transform/stackY.d.ts +1 -1
- package/esm/transform/stackY.js +26 -9
- package/esm/transform/stackY.js.map +1 -1
- package/esm/utils/coordinate.d.ts +3 -0
- package/esm/utils/coordinate.js +11 -0
- package/esm/utils/coordinate.js.map +1 -1
- package/esm/utils/event.d.ts +16 -0
- package/esm/utils/event.js +35 -0
- package/esm/utils/event.js.map +1 -0
- package/esm/utils/helper.d.ts +2 -0
- package/esm/utils/helper.js +11 -0
- package/esm/utils/helper.js.map +1 -1
- package/esm/utils/selection.d.ts +2 -0
- package/esm/utils/selection.js +21 -10
- package/esm/utils/selection.js.map +1 -1
- package/esm/utils/size.d.ts +21 -0
- package/esm/utils/size.js +42 -0
- package/esm/utils/size.js.map +1 -0
- package/esm/utils/string.d.ts +12 -0
- package/esm/utils/string.js +19 -0
- package/esm/utils/string.js.map +1 -0
- package/esm/utils/vector.d.ts +7 -1
- package/esm/utils/vector.js +10 -3
- package/esm/utils/vector.js.map +1 -1
- package/lib/animation/index.d.ts +18 -7
- package/lib/animation/index.js +7 -1
- package/lib/animation/index.js.map +1 -1
- package/lib/animation/morphing.js +2 -23
- package/lib/animation/morphing.js.map +1 -1
- package/lib/animation/scaleInX.js +3 -0
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +3 -0
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/utils.d.ts +3 -0
- package/lib/animation/utils.js +22 -1
- package/lib/animation/utils.js.map +1 -1
- package/lib/animation/waveIn.d.ts +7 -0
- package/lib/animation/waveIn.js +66 -0
- package/lib/animation/waveIn.js.map +1 -0
- package/lib/animation/zoomIn.d.ts +4 -0
- package/lib/animation/zoomIn.js +43 -0
- package/lib/animation/zoomIn.js.map +1 -0
- package/lib/animation/zoomOut.d.ts +4 -0
- package/lib/animation/zoomOut.js +38 -0
- package/lib/animation/zoomOut.js.map +1 -0
- package/lib/api/chart.d.ts +13 -0
- package/lib/api/chart.js +71 -6
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/facetCircle.d.ts +21 -0
- package/lib/api/composition/facetCircle.js +33 -0
- package/lib/api/composition/facetCircle.js.map +1 -0
- package/lib/api/composition/facetRect.d.ts +23 -0
- package/lib/api/composition/facetRect.js +35 -0
- package/lib/api/composition/facetRect.js.map +1 -0
- package/lib/api/composition/index.d.ts +19 -19
- package/lib/api/composition/index.js +19 -19
- package/lib/api/composition/index.js.map +1 -1
- package/lib/api/composition/repeatMatrix.d.ts +21 -0
- package/lib/api/composition/repeatMatrix.js +33 -0
- package/lib/api/composition/repeatMatrix.js.map +1 -0
- package/lib/api/composition/spaceFlex.d.ts +17 -0
- package/lib/api/composition/spaceFlex.js +29 -0
- package/lib/api/composition/spaceFlex.js.map +1 -0
- package/lib/api/composition/spaceLayer.d.ts +14 -0
- package/lib/api/composition/spaceLayer.js +26 -0
- package/lib/api/composition/spaceLayer.js.map +1 -0
- package/lib/api/composition/timingKeyframe.d.ts +17 -0
- package/lib/api/composition/timingKeyframe.js +29 -0
- package/lib/api/composition/timingKeyframe.js.map +1 -0
- package/lib/api/mark/index.d.ts +19 -19
- package/lib/api/mark/index.js +9 -9
- package/lib/api/mark/index.js.map +1 -1
- package/lib/api/mark/mark.d.ts +26 -26
- package/lib/api/mark/mark.js +53 -50
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +3 -0
- package/lib/api/node.d.ts +11 -5
- package/lib/api/node.js +61 -8
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +2 -1
- package/lib/api/props.js +38 -17
- package/lib/api/props.js.map +1 -1
- package/lib/api/types.d.ts +1 -1
- package/lib/component/axis.d.ts +8 -2
- package/lib/component/axis.js +171 -96
- package/lib/component/axis.js.map +1 -1
- package/lib/component/index.d.ts +10 -5
- package/lib/component/index.js.map +1 -1
- package/lib/component/legendCategory.d.ts +5 -1
- package/lib/component/legendCategory.js +7 -10
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.d.ts +1 -0
- package/lib/component/legendContinuous.js +4 -3
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/composition/facetCircle.d.ts +7 -0
- package/lib/composition/facetCircle.js +89 -0
- package/lib/composition/facetCircle.js.map +1 -0
- package/lib/composition/facetRect.d.ts +31 -0
- package/lib/composition/facetRect.js +311 -0
- package/lib/composition/facetRect.js.map +1 -0
- package/lib/composition/index.d.ts +16 -8
- package/lib/composition/index.js +13 -13
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/mark.js +13 -2
- package/lib/composition/mark.js.map +1 -1
- package/lib/composition/repeatMatrix.d.ts +8 -0
- package/lib/composition/repeatMatrix.js +153 -0
- package/lib/composition/repeatMatrix.js.map +1 -0
- package/lib/composition/spaceFlex.d.ts +7 -0
- package/lib/composition/spaceFlex.js +44 -0
- package/lib/composition/spaceFlex.js.map +1 -0
- package/lib/composition/spaceLayer.d.ts +7 -0
- package/lib/composition/spaceLayer.js +36 -0
- package/lib/composition/spaceLayer.js.map +1 -0
- package/lib/composition/timingKeyframe.d.ts +7 -0
- package/lib/composition/timingKeyframe.js +79 -0
- package/lib/composition/timingKeyframe.js.map +1 -0
- package/lib/composition/view.js +3 -3
- package/lib/composition/view.js.map +1 -1
- package/lib/coordinate/index.d.ts +26 -12
- package/lib/coordinate/index.js +3 -1
- package/lib/coordinate/index.js.map +1 -1
- package/lib/coordinate/radial.d.ts +7 -0
- package/lib/coordinate/radial.js +16 -0
- package/lib/coordinate/radial.js.map +1 -0
- package/lib/data/arc.d.ts +7 -0
- package/lib/data/arc.js +14 -18
- package/lib/data/arc.js.map +1 -1
- package/lib/data/cluster.d.ts +8 -0
- package/lib/data/cluster.js +41 -46
- package/lib/data/cluster.js.map +1 -1
- package/lib/data/custom.d.ts +7 -0
- package/lib/data/custom.js +14 -0
- package/lib/data/custom.js.map +1 -0
- package/lib/data/fetch.js +6 -5
- package/lib/data/fetch.js.map +1 -1
- package/lib/data/filterBy.js +6 -2
- package/lib/data/filterBy.js.map +1 -1
- package/lib/data/index.d.ts +30 -9
- package/lib/data/index.js +15 -3
- package/lib/data/index.js.map +1 -1
- package/lib/data/map.d.ts +7 -0
- package/lib/data/map.js +14 -0
- package/lib/data/map.js.map +1 -0
- package/lib/data/sankey.d.ts +8 -0
- package/lib/data/sankey.js +80 -95
- package/lib/data/sankey.js.map +1 -1
- package/lib/data/sortBy.js +14 -4
- package/lib/data/sortBy.js.map +1 -1
- package/lib/data/tree.d.ts +4 -0
- package/lib/data/tree.js +10 -9
- package/lib/data/tree.js.map +1 -1
- package/lib/data/utils/arc/index.d.ts +1 -1
- package/lib/data/utils/fields.d.ts +6 -0
- package/lib/data/utils/fields.js +19 -0
- package/lib/data/utils/fields.js.map +1 -0
- package/lib/data/voronoi.d.ts +1 -0
- package/lib/data/voronoi.js +2 -22
- package/lib/data/voronoi.js.map +1 -1
- package/lib/data/wordCloud.d.ts +6 -0
- package/lib/data/wordCloud.js +108 -99
- package/lib/data/wordCloud.js.map +1 -1
- package/lib/encode/index.d.ts +8 -4
- package/lib/encode/index.js.map +1 -1
- package/lib/interaction/action/index.d.ts +42 -21
- package/lib/interaction/action/index.js.map +1 -1
- package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -1
- package/lib/interaction/builtin/activeRegion.js.map +1 -1
- package/lib/interaction/builtin/brush.js.map +1 -1
- package/lib/interaction/builtin/brushHighlight.js.map +1 -1
- package/lib/interaction/builtin/brushVisible.js.map +1 -1
- package/lib/interaction/builtin/elementActive.d.ts +0 -2
- package/lib/interaction/builtin/elementActive.js.map +1 -1
- package/lib/interaction/builtin/elementHighlight.d.ts +0 -2
- package/lib/interaction/builtin/elementHighlight.js.map +1 -1
- package/lib/interaction/builtin/elementHighlightByColor.d.ts +0 -2
- package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -1
- package/lib/interaction/builtin/elementHighlightByX.d.ts +0 -2
- package/lib/interaction/builtin/elementHighlightByX.js.map +1 -1
- package/lib/interaction/builtin/elementListHighlight.js.map +1 -1
- package/lib/interaction/builtin/elementSelected.d.ts +1 -3
- package/lib/interaction/builtin/elementSelected.js.map +1 -1
- package/lib/interaction/builtin/ellipsisText.js.map +1 -1
- package/lib/interaction/builtin/fisheye.d.ts +6 -0
- package/lib/interaction/builtin/fisheye.js.map +1 -1
- package/lib/interaction/builtin/legendActive.js.map +1 -1
- package/lib/interaction/builtin/legendHighlight.js.map +1 -1
- package/lib/interaction/builtin/tooltip.d.ts +2 -2
- package/lib/interaction/builtin/tooltip.js.map +1 -1
- package/lib/interaction/index.d.ts +8 -18
- package/lib/interaction/index.js +47 -48
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/interactor/index.d.ts +4 -2
- package/lib/interaction/interactor/index.js.map +1 -1
- package/lib/interaction/native/chartIndex.d.ts +4 -0
- package/lib/interaction/native/chartIndex.js +172 -0
- package/lib/interaction/native/chartIndex.js.map +1 -0
- package/lib/interaction/native/elementActive.d.ts +10 -0
- package/lib/interaction/native/elementActive.js +74 -0
- package/lib/interaction/native/elementActive.js.map +1 -0
- package/lib/interaction/native/elementActiveByColor.d.ts +4 -0
- package/lib/interaction/native/elementActiveByColor.js +16 -0
- package/lib/interaction/native/elementActiveByColor.js.map +1 -0
- package/lib/interaction/native/elementActiveByX.d.ts +8 -0
- package/lib/interaction/native/elementActiveByX.js +17 -0
- package/lib/interaction/native/elementActiveByX.js.map +1 -0
- package/lib/interaction/native/elementSelect.d.ts +11 -0
- package/lib/interaction/native/elementSelect.js +116 -0
- package/lib/interaction/native/elementSelect.js.map +1 -0
- package/lib/interaction/native/elementSelectByColor.d.ts +1 -0
- package/lib/interaction/native/elementSelectByColor.js +13 -0
- package/lib/interaction/native/elementSelectByColor.js.map +1 -0
- package/lib/interaction/native/elementSelectByX.d.ts +1 -0
- package/lib/interaction/native/elementSelectByX.js +13 -0
- package/lib/interaction/native/elementSelectByX.js.map +1 -0
- package/lib/interaction/native/fisheye.d.ts +4 -0
- package/lib/interaction/native/fisheye.js +48 -0
- package/lib/interaction/native/fisheye.js.map +1 -0
- package/lib/interaction/native/utils.d.ts +28 -0
- package/lib/interaction/native/utils.js +186 -0
- package/lib/interaction/native/utils.js.map +1 -0
- package/lib/label-transform/dodgeY.d.ts +7 -0
- package/lib/label-transform/dodgeY.js +71 -0
- package/lib/label-transform/dodgeY.js.map +1 -0
- package/lib/label-transform/hideOverlap.d.ts +4 -0
- package/lib/{labelLayout → label-transform}/hideOverlap.js +0 -0
- package/lib/label-transform/hideOverlap.js.map +1 -0
- package/lib/label-transform/index.d.ts +4 -0
- package/lib/label-transform/index.js +8 -0
- package/lib/label-transform/index.js.map +1 -0
- package/lib/mark/area.d.ts +4 -0
- package/lib/mark/area.js +75 -0
- package/lib/mark/area.js.map +1 -0
- package/lib/mark/box.d.ts +34 -0
- package/lib/mark/box.js +94 -0
- package/lib/mark/box.js.map +1 -0
- package/lib/mark/cell.d.ts +9 -0
- package/lib/mark/cell.js +51 -0
- package/lib/mark/cell.js.map +1 -0
- package/lib/mark/connector.d.ts +4 -0
- package/lib/mark/connector.js +22 -0
- package/lib/mark/connector.js.map +1 -0
- package/lib/mark/image.d.ts +4 -0
- package/lib/mark/image.js +35 -0
- package/lib/mark/image.js.map +1 -0
- package/lib/mark/index.d.ts +36 -0
- package/lib/mark/index.js +40 -0
- package/lib/mark/index.js.map +1 -0
- package/lib/mark/interval.d.ts +12 -0
- package/lib/mark/interval.js +75 -0
- package/lib/mark/interval.js.map +1 -0
- package/lib/mark/line.d.ts +7 -0
- package/lib/mark/line.js +84 -0
- package/lib/mark/line.js.map +1 -0
- package/lib/mark/lineX.d.ts +4 -0
- package/lib/mark/lineX.js +25 -0
- package/lib/mark/lineX.js.map +1 -0
- package/lib/mark/lineY.d.ts +4 -0
- package/lib/mark/lineY.js +25 -0
- package/lib/mark/lineY.js.map +1 -0
- package/lib/mark/link.d.ts +7 -0
- package/lib/mark/link.js +40 -0
- package/lib/mark/link.js.map +1 -0
- package/lib/mark/point.d.ts +9 -0
- package/lib/mark/point.js +83 -0
- package/lib/mark/point.js.map +1 -0
- package/lib/mark/polygon.d.ts +7 -0
- package/lib/mark/polygon.js +47 -0
- package/lib/mark/polygon.js.map +1 -0
- package/lib/mark/range.d.ts +8 -0
- package/lib/mark/range.js +49 -0
- package/lib/mark/range.js.map +1 -0
- package/lib/mark/rangeX.d.ts +4 -0
- package/lib/mark/rangeX.js +18 -0
- package/lib/mark/rangeX.js.map +1 -0
- package/lib/mark/rangeY.d.ts +4 -0
- package/lib/mark/rangeY.js +18 -0
- package/lib/mark/rangeY.js.map +1 -0
- package/lib/mark/rect.d.ts +4 -0
- package/lib/mark/rect.js +35 -0
- package/lib/mark/rect.js.map +1 -0
- package/lib/mark/text.d.ts +4 -0
- package/lib/mark/text.js +36 -0
- package/lib/mark/text.js.map +1 -0
- package/lib/mark/utils.d.ts +5 -0
- package/lib/mark/utils.js +21 -1
- package/lib/mark/utils.js.map +1 -1
- package/lib/mark/vector.d.ts +8 -0
- package/lib/mark/vector.js +47 -0
- package/lib/mark/vector.js.map +1 -0
- package/lib/palette/divergingGreenRed.d.ts +7 -0
- package/lib/palette/divergingGreenRed.js +30 -0
- package/lib/palette/divergingGreenRed.js.map +1 -0
- package/lib/palette/divergingGreenYellow.d.ts +7 -0
- package/lib/palette/divergingGreenYellow.js +30 -0
- package/lib/palette/divergingGreenYellow.js.map +1 -0
- package/lib/palette/divergingRedBlue.d.ts +7 -0
- package/lib/palette/divergingRedBlue.js +30 -0
- package/lib/palette/divergingRedBlue.js.map +1 -0
- package/lib/palette/divergingRedPurple.d.ts +7 -0
- package/lib/palette/divergingRedPurple.js +30 -0
- package/lib/palette/divergingRedPurple.js.map +1 -0
- package/lib/palette/index.d.ts +40 -2
- package/lib/palette/index.js +37 -1
- package/lib/palette/index.js.map +1 -1
- package/lib/palette/sequentialBlue.d.ts +7 -0
- package/lib/palette/sequentialBlue.js +22 -0
- package/lib/palette/sequentialBlue.js.map +1 -0
- package/lib/palette/sequentialDarkBlue.d.ts +7 -0
- package/lib/palette/sequentialDarkBlue.js +22 -0
- package/lib/palette/sequentialDarkBlue.js.map +1 -0
- package/lib/palette/sequentialDarkGreen.d.ts +7 -0
- package/lib/palette/sequentialDarkGreen.js +22 -0
- package/lib/palette/sequentialDarkGreen.js.map +1 -0
- package/lib/palette/sequentialGreen.d.ts +7 -0
- package/lib/palette/sequentialGreen.js +22 -0
- package/lib/palette/sequentialGreen.js.map +1 -0
- package/lib/palette/sequentialGreenBlue.d.ts +7 -0
- package/lib/palette/sequentialGreenBlue.js +22 -0
- package/lib/palette/sequentialGreenBlue.js.map +1 -0
- package/lib/palette/sequentialGrey.d.ts +7 -0
- package/lib/palette/sequentialGrey.js +22 -0
- package/lib/palette/sequentialGrey.js.map +1 -0
- package/lib/palette/sequentialOrange.d.ts +7 -0
- package/lib/palette/sequentialOrange.js +22 -0
- package/lib/palette/sequentialOrange.js.map +1 -0
- package/lib/palette/sequentialPink.d.ts +7 -0
- package/lib/palette/sequentialPink.js +22 -0
- package/lib/palette/sequentialPink.js.map +1 -0
- package/lib/palette/sequentialPinkPurple.d.ts +7 -0
- package/lib/palette/sequentialPinkPurple.js +22 -0
- package/lib/palette/sequentialPinkPurple.js.map +1 -0
- package/lib/palette/sequentialPurple.d.ts +7 -0
- package/lib/palette/sequentialPurple.js +22 -0
- package/lib/palette/sequentialPurple.js.map +1 -0
- package/lib/palette/sequentialRed.d.ts +7 -0
- package/lib/palette/sequentialRed.js +22 -0
- package/lib/palette/sequentialRed.js.map +1 -0
- package/lib/palette/sequentialYellow.d.ts +7 -0
- package/lib/palette/sequentialYellow.js +22 -0
- package/lib/palette/sequentialYellow.js.map +1 -0
- package/lib/palette/sequentialYellowGreen.d.ts +7 -0
- package/lib/palette/sequentialYellowGreen.js +22 -0
- package/lib/palette/sequentialYellowGreen.js.map +1 -0
- package/lib/palette/sequentialYellowOrange.d.ts +7 -0
- package/lib/palette/sequentialYellowOrange.js +22 -0
- package/lib/palette/sequentialYellowOrange.js.map +1 -0
- package/lib/runtime/component.d.ts +1 -1
- package/lib/runtime/component.js +35 -6
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/constant.d.ts +8 -0
- package/lib/runtime/constant.js +12 -0
- package/lib/runtime/constant.js.map +1 -0
- package/lib/runtime/coordinate.d.ts +1 -0
- package/lib/runtime/coordinate.js +8 -9
- package/lib/runtime/coordinate.js.map +1 -1
- package/lib/runtime/index.d.ts +2 -1
- package/lib/runtime/index.js +4 -1
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/layout.js +107 -17
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/mark.js +5 -3
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.d.ts +2 -0
- package/lib/runtime/plot.js +275 -116
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.d.ts +11 -0
- package/lib/runtime/render.js +83 -9
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.d.ts +1 -0
- package/lib/runtime/scale.js +174 -25
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.d.ts +1 -0
- package/lib/runtime/transform.js +32 -1
- package/lib/runtime/transform.js.map +1 -1
- package/lib/runtime/types/common.d.ts +16 -39
- package/lib/runtime/types/component.d.ts +7 -8
- package/lib/runtime/types/options.d.ts +23 -4
- package/lib/runtime/types/theme.d.ts +64 -0
- package/lib/runtime/types/theme.js +3 -0
- package/lib/runtime/types/theme.js.map +1 -0
- package/lib/scale/index.d.ts +26 -11
- package/lib/scale/index.js +5 -1
- package/lib/scale/index.js.map +1 -1
- package/lib/scale/sequential.d.ts +4 -0
- package/lib/scale/sequential.js +10 -0
- package/lib/scale/sequential.js.map +1 -0
- package/lib/scale/sqrt.d.ts +4 -0
- package/lib/scale/sqrt.js +10 -0
- package/lib/scale/sqrt.js.map +1 -0
- package/lib/shape/area/area.js +3 -3
- package/lib/shape/area/area.js.map +1 -1
- package/lib/shape/area/curve.d.ts +8 -0
- package/lib/shape/area/curve.js +169 -0
- package/lib/shape/area/curve.js.map +1 -0
- package/lib/shape/area/smooth.d.ts +5 -0
- package/lib/shape/area/smooth.js +27 -0
- package/lib/shape/area/smooth.js.map +1 -0
- package/lib/shape/area/step.d.ts +3 -0
- package/lib/shape/area/step.js +13 -0
- package/lib/shape/area/step.js.map +1 -0
- package/lib/shape/{schema → box}/box.d.ts +0 -0
- package/lib/shape/box/box.js +92 -0
- package/lib/shape/box/box.js.map +1 -0
- package/lib/shape/connector/connector.d.ts +17 -0
- package/lib/shape/connector/connector.js +110 -0
- package/lib/shape/connector/connector.js.map +1 -0
- package/lib/shape/createElement.d.ts +5 -0
- package/lib/shape/createElement.js +20 -0
- package/lib/shape/createElement.js.map +1 -0
- package/lib/shape/image/image.js +4 -2
- package/lib/shape/image/image.js.map +1 -1
- package/lib/shape/index.d.ts +86 -48
- package/lib/shape/index.js +24 -31
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/interval/color.d.ts +12 -0
- package/lib/shape/interval/color.js +92 -0
- package/lib/shape/interval/color.js.map +1 -0
- package/lib/shape/interval/funnel.js +2 -2
- package/lib/shape/interval/funnel.js.map +1 -1
- package/lib/shape/interval/hollow.d.ts +6 -0
- package/lib/shape/interval/hollow.js +13 -0
- package/lib/shape/interval/hollow.js.map +1 -0
- package/lib/shape/interval/rect.js +3 -3
- package/lib/shape/interval/rect.js.map +1 -1
- package/lib/shape/label/label.js +43 -70
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/label/position.d.ts +25 -0
- package/lib/shape/label/position.js +132 -0
- package/lib/shape/label/position.js.map +1 -0
- package/lib/shape/line/curve.d.ts +8 -0
- package/lib/shape/line/curve.js +121 -0
- package/lib/shape/line/curve.js.map +1 -0
- package/lib/shape/line/hv.js +3 -3
- package/lib/shape/line/hv.js.map +1 -1
- package/lib/shape/line/hvh.js +3 -3
- package/lib/shape/line/hvh.js.map +1 -1
- package/lib/shape/line/line.js +3 -3
- package/lib/shape/line/line.js.map +1 -1
- package/lib/shape/line/smooth.js +3 -3
- package/lib/shape/line/smooth.js.map +1 -1
- package/lib/shape/line/vh.js +3 -3
- package/lib/shape/line/vh.js.map +1 -1
- package/lib/shape/lineXY/line.d.ts +3 -0
- package/lib/shape/lineXY/line.js +62 -0
- package/lib/shape/lineXY/line.js.map +1 -0
- package/lib/shape/{edge → link}/arc.d.ts +0 -0
- package/lib/shape/link/arc.js +57 -0
- package/lib/shape/link/arc.js.map +1 -0
- package/lib/shape/link/link.js +4 -2
- package/lib/shape/link/link.js.map +1 -1
- package/lib/shape/link/smooth.d.ts +6 -0
- package/lib/shape/link/smooth.js +45 -0
- package/lib/shape/link/smooth.js.map +1 -0
- package/lib/shape/link/vhv.d.ts +12 -0
- package/lib/shape/link/vhv.js +75 -0
- package/lib/shape/link/vhv.js.map +1 -0
- package/lib/shape/point/bowtie.js +3 -3
- package/lib/shape/point/bowtie.js.map +1 -1
- package/lib/shape/point/color.d.ts +11 -0
- package/lib/shape/point/color.js +93 -0
- package/lib/shape/point/color.js.map +1 -0
- package/lib/shape/point/cross.js +3 -3
- package/lib/shape/point/cross.js.map +1 -1
- package/lib/shape/point/diamond.js +3 -3
- package/lib/shape/point/diamond.js.map +1 -1
- package/lib/shape/point/hexagon.js +3 -3
- package/lib/shape/point/hexagon.js.map +1 -1
- package/lib/shape/point/{hollowPoint.d.ts → hollow.d.ts} +0 -0
- package/lib/shape/point/hollow.js +13 -0
- package/lib/shape/point/hollow.js.map +1 -0
- package/lib/shape/point/hollowBowtie.js +3 -3
- package/lib/shape/point/hollowBowtie.js.map +1 -1
- package/lib/shape/point/hollowDiamond.js +3 -3
- package/lib/shape/point/hollowDiamond.js.map +1 -1
- package/lib/shape/point/hollowHexagon.js +3 -3
- package/lib/shape/point/hollowHexagon.js.map +1 -1
- package/lib/shape/point/hollowSquare.js +3 -3
- package/lib/shape/point/hollowSquare.js.map +1 -1
- package/lib/shape/point/hollowTriangle.js +3 -3
- package/lib/shape/point/hollowTriangle.js.map +1 -1
- package/lib/shape/point/hollowTriangleDown.js +3 -3
- package/lib/shape/point/hollowTriangleDown.js.map +1 -1
- package/lib/shape/point/hyphen.js +3 -3
- package/lib/shape/point/hyphen.js.map +1 -1
- package/lib/shape/point/line.js +3 -3
- package/lib/shape/point/line.js.map +1 -1
- package/lib/shape/point/plus.js +3 -3
- package/lib/shape/point/plus.js.map +1 -1
- package/lib/shape/point/point.js +3 -3
- package/lib/shape/point/point.js.map +1 -1
- package/lib/shape/point/square.js +3 -3
- package/lib/shape/point/square.js.map +1 -1
- package/lib/shape/point/symbol.js +3 -2
- package/lib/shape/point/symbol.js.map +1 -1
- package/lib/shape/point/tick.js +3 -3
- package/lib/shape/point/tick.js.map +1 -1
- package/lib/shape/point/triangle.js +3 -3
- package/lib/shape/point/triangle.js.map +1 -1
- package/lib/shape/point/triangleDown.js +3 -3
- package/lib/shape/point/triangleDown.js.map +1 -1
- package/lib/shape/polygon/polygon.js +5 -4
- package/lib/shape/polygon/polygon.js.map +1 -1
- package/lib/shape/{edge → polygon}/ribbon.d.ts +0 -0
- package/lib/shape/polygon/ribbon.js +74 -0
- package/lib/shape/polygon/ribbon.js.map +1 -0
- package/lib/shape/text/badge.d.ts +11 -0
- package/lib/shape/text/badge.js +102 -0
- package/lib/shape/text/badge.js.map +1 -0
- package/lib/shape/text/text.d.ts +15 -1
- package/lib/shape/text/text.js +143 -8
- package/lib/shape/text/text.js.map +1 -1
- package/lib/shape/utils.d.ts +9 -2
- package/lib/shape/utils.js +43 -10
- package/lib/shape/utils.js.map +1 -1
- package/lib/shape/vector/vector.js +5 -4
- package/lib/shape/vector/vector.js.map +1 -1
- package/lib/spec/animate.d.ts +1 -1
- package/lib/spec/composition.d.ts +41 -15
- package/lib/spec/coordinate.d.ts +9 -2
- package/lib/spec/data.d.ts +145 -8
- package/lib/spec/geometry.d.ts +42 -12
- package/lib/spec/index.d.ts +1 -1
- package/lib/spec/index.js +1 -1
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +33 -21
- package/lib/spec/labelTransform.d.ts +10 -0
- package/lib/spec/labelTransform.js +3 -0
- package/lib/spec/labelTransform.js.map +1 -0
- package/lib/spec/palette.d.ts +54 -0
- package/lib/spec/scale.d.ts +12 -5
- package/lib/spec/transform.d.ts +60 -10
- package/lib/spec/transform.js +0 -133
- package/lib/spec/transform.js.map +1 -1
- package/lib/stdlib/index.js +148 -104
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/dark.d.ts +6 -0
- package/lib/theme/dark.js +250 -0
- package/lib/theme/dark.js.map +1 -0
- package/lib/theme/index.d.ts +1 -0
- package/lib/theme/index.js +3 -1
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/light.d.ts +0 -1
- package/lib/theme/light.js +220 -6
- package/lib/theme/light.js.map +1 -1
- package/lib/transform/diffY.d.ts +8 -0
- package/lib/transform/diffY.js +47 -0
- package/lib/transform/diffY.js.map +1 -0
- package/lib/transform/dodgeX.js +7 -3
- package/lib/transform/dodgeX.js.map +1 -1
- package/lib/transform/flexX.d.ts +7 -0
- package/lib/transform/flexX.js +35 -0
- package/lib/transform/flexX.js.map +1 -0
- package/lib/transform/group.d.ts +10 -0
- package/lib/transform/group.js +105 -0
- package/lib/transform/group.js.map +1 -0
- package/lib/transform/groupColor.d.ts +7 -0
- package/lib/transform/groupColor.js +13 -0
- package/lib/transform/groupColor.js.map +1 -0
- package/lib/transform/groupX.d.ts +0 -2
- package/lib/transform/groupX.js +2 -82
- package/lib/transform/groupX.js.map +1 -1
- package/lib/transform/groupY.d.ts +7 -0
- package/lib/transform/groupY.js +13 -0
- package/lib/transform/groupY.js.map +1 -0
- package/lib/transform/index.d.ts +70 -21
- package/lib/transform/index.js +31 -3
- package/lib/transform/index.js.map +1 -1
- package/lib/transform/jitter.d.ts +1 -0
- package/lib/transform/jitter.js +19 -9
- package/lib/transform/jitter.js.map +1 -1
- package/lib/transform/jitterX.d.ts +8 -0
- package/lib/transform/jitterX.js +29 -0
- package/lib/transform/jitterX.js.map +1 -0
- package/lib/transform/maybeIdentityX.d.ts +7 -0
- package/lib/transform/maybeIdentityX.js +22 -0
- package/lib/transform/maybeIdentityX.js.map +1 -0
- package/lib/transform/maybeIdentityY.d.ts +7 -0
- package/lib/transform/maybeIdentityY.js +22 -0
- package/lib/transform/maybeIdentityY.js.map +1 -0
- package/lib/transform/maybeTupleX.d.ts +7 -0
- package/lib/transform/maybeTupleX.js +20 -0
- package/lib/transform/maybeTupleX.js.map +1 -0
- package/lib/transform/maybeTupleY.d.ts +7 -0
- package/lib/transform/maybeTupleY.js +20 -0
- package/lib/transform/maybeTupleY.js.map +1 -0
- package/lib/transform/maybeZeroPadding.d.ts +6 -0
- package/lib/transform/maybeZeroPadding.js +18 -0
- package/lib/transform/maybeZeroPadding.js.map +1 -0
- package/lib/transform/maybeZeroX.js +1 -0
- package/lib/transform/maybeZeroX.js.map +1 -1
- package/lib/transform/maybeZeroY.js +1 -0
- package/lib/transform/maybeZeroY.js.map +1 -1
- package/lib/transform/normalizeY.js +13 -11
- package/lib/transform/normalizeY.js.map +1 -1
- package/lib/transform/pack.d.ts +8 -0
- package/lib/transform/pack.js +60 -0
- package/lib/transform/pack.js.map +1 -0
- package/lib/transform/sort.d.ts +14 -0
- package/lib/transform/sort.js +68 -0
- package/lib/transform/sort.js.map +1 -0
- package/lib/transform/sortColor.d.ts +7 -0
- package/lib/transform/sortColor.js +13 -0
- package/lib/transform/sortColor.js.map +1 -0
- package/lib/transform/sortX.d.ts +7 -0
- package/lib/transform/sortX.js +13 -0
- package/lib/transform/sortX.js.map +1 -0
- package/lib/transform/sortY.d.ts +7 -0
- package/lib/transform/sortY.js +13 -0
- package/lib/transform/sortY.js.map +1 -0
- package/lib/transform/stackY.d.ts +1 -1
- package/lib/transform/stackY.js +26 -9
- package/lib/transform/stackY.js.map +1 -1
- package/lib/utils/coordinate.d.ts +3 -0
- package/lib/utils/coordinate.js +15 -1
- package/lib/utils/coordinate.js.map +1 -1
- package/lib/utils/event.d.ts +16 -0
- package/lib/utils/event.js +40 -0
- package/lib/utils/event.js.map +1 -0
- package/lib/utils/helper.d.ts +2 -0
- package/lib/utils/helper.js +14 -1
- package/lib/utils/helper.js.map +1 -1
- package/lib/utils/selection.d.ts +2 -0
- package/lib/utils/selection.js +21 -10
- package/lib/utils/selection.js.map +1 -1
- package/lib/utils/size.d.ts +21 -0
- package/lib/utils/size.js +47 -0
- package/lib/utils/size.js.map +1 -0
- package/lib/utils/string.d.ts +12 -0
- package/lib/utils/string.js +24 -0
- package/lib/utils/string.js.map +1 -0
- package/lib/utils/vector.d.ts +7 -1
- package/lib/utils/vector.js +12 -4
- package/lib/utils/vector.js.map +1 -1
- package/package.json +24 -4
- package/src/.DS_Store +0 -0
- package/src/animation/index.ts +19 -7
- package/src/animation/morphing.ts +4 -26
- package/src/animation/scaleInX.ts +3 -0
- package/src/animation/scaleInY.ts +3 -0
- package/src/animation/utils.ts +23 -0
- package/src/animation/waveIn.ts +91 -0
- package/src/animation/zoomIn.ts +55 -0
- package/src/animation/zoomOut.ts +50 -0
- package/src/api/chart.ts +119 -7
- package/src/api/composition/facetCircle.ts +43 -0
- package/src/api/composition/facetRect.ts +47 -0
- package/src/api/composition/index.ts +27 -19
- package/src/api/composition/repeatMatrix.ts +46 -0
- package/src/api/composition/spaceFlex.ts +30 -0
- package/src/api/composition/spaceLayer.ts +24 -0
- package/src/api/composition/timingKeyframe.ts +33 -0
- package/src/api/mark/index.ts +27 -27
- package/src/api/mark/mark.ts +49 -54
- package/src/api/mark/types.ts +3 -0
- package/src/api/node.ts +68 -8
- package/src/api/props.ts +42 -19
- package/src/api/types.ts +1 -1
- package/src/component/axis.ts +298 -127
- package/src/component/index.ts +11 -5
- package/src/component/legendCategory.ts +23 -11
- package/src/component/legendContinuous.ts +5 -3
- package/src/composition/facetCircle.ts +102 -0
- package/src/composition/facetRect.ts +369 -0
- package/src/composition/index.ts +17 -8
- package/src/composition/mark.ts +24 -2
- package/src/composition/repeatMatrix.ts +173 -0
- package/src/composition/spaceFlex.ts +49 -0
- package/src/composition/spaceLayer.ts +26 -0
- package/src/composition/timingKeyframe.ts +90 -0
- package/src/composition/view.ts +16 -7
- package/src/coordinate/index.ts +27 -12
- package/src/coordinate/radial.ts +22 -0
- package/src/data/.DS_Store +0 -0
- package/src/data/arc.ts +13 -18
- package/src/data/cluster.ts +53 -56
- package/src/data/custom.ts +15 -0
- package/src/data/fetch.ts +12 -7
- package/src/data/filterBy.ts +11 -2
- package/src/data/index.ts +31 -9
- package/src/data/map.ts +15 -0
- package/src/data/sankey.ts +92 -95
- package/src/data/sortBy.ts +18 -8
- package/src/data/tree.ts +9 -9
- package/src/data/utils/arc/index.ts +1 -1
- package/src/data/utils/fields.ts +17 -0
- package/src/data/voronoi.ts +2 -0
- package/src/data/wordCloud.ts +112 -115
- package/src/encode/index.ts +9 -4
- package/src/interaction/action/index.ts +43 -45
- package/src/interaction/action/service/triggerInfoSelection.ts +1 -1
- package/src/interaction/builtin/activeRegion.ts +1 -0
- package/src/interaction/builtin/brush.ts +1 -0
- package/src/interaction/builtin/brushHighlight.ts +1 -0
- package/src/interaction/builtin/brushVisible.ts +1 -0
- package/src/interaction/builtin/elementActive.ts +1 -0
- package/src/interaction/builtin/elementHighlight.ts +1 -0
- package/src/interaction/builtin/elementHighlightByColor.ts +1 -0
- package/src/interaction/builtin/elementHighlightByX.ts +1 -0
- package/src/interaction/builtin/elementListHighlight.ts +1 -0
- package/src/interaction/builtin/elementSelected.ts +1 -0
- package/src/interaction/builtin/ellipsisText.ts +1 -0
- package/src/interaction/builtin/fisheye.ts +1 -0
- package/src/interaction/builtin/legendActive.ts +1 -0
- package/src/interaction/builtin/legendHighlight.ts +1 -0
- package/src/interaction/builtin/tooltip.ts +1 -0
- package/src/interaction/index.ts +41 -18
- package/src/interaction/interactor/index.ts +5 -2
- package/src/interaction/native/chartIndex.ts +211 -0
- package/src/interaction/native/elementActive.ts +75 -0
- package/src/interaction/native/elementActiveByColor.ts +23 -0
- package/src/interaction/native/elementActiveByX.ts +25 -0
- package/src/interaction/native/elementSelect.ts +113 -0
- package/src/interaction/native/elementSelectByColor.ts +19 -0
- package/src/interaction/native/elementSelectByX.ts +19 -0
- package/src/interaction/native/fisheye.ts +54 -0
- package/src/interaction/native/utils.ts +201 -0
- package/src/interaction/types.ts +1 -1
- package/src/label-transform/dodgeY.ts +75 -0
- package/src/label-transform/hideOverlap.ts +50 -0
- package/src/label-transform/index.ts +5 -0
- package/src/mark/area.ts +86 -0
- package/src/mark/box.ts +105 -0
- package/src/mark/cell.ts +57 -0
- package/src/mark/connector.ts +27 -0
- package/src/mark/image.ts +41 -0
- package/src/mark/index.ts +37 -0
- package/src/mark/interval.ts +83 -0
- package/src/mark/line.ts +99 -0
- package/src/mark/lineX.ts +31 -0
- package/src/mark/lineY.ts +31 -0
- package/src/mark/link.ts +46 -0
- package/src/mark/point.ts +92 -0
- package/src/mark/polygon.ts +54 -0
- package/src/mark/range.ts +56 -0
- package/src/mark/rangeX.ts +23 -0
- package/src/mark/rangeY.ts +23 -0
- package/src/mark/rect.ts +43 -0
- package/src/mark/text.ts +42 -0
- package/src/mark/utils.ts +32 -0
- package/src/mark/vector.ts +56 -0
- package/src/palette/divergingGreenRed.ts +33 -0
- package/src/palette/divergingGreenYellow.ts +36 -0
- package/src/palette/divergingRedBlue.ts +33 -0
- package/src/palette/divergingRedPurple.ts +33 -0
- package/src/palette/index.ts +41 -2
- package/src/palette/sequentialBlue.ts +23 -0
- package/src/palette/sequentialDarkBlue.ts +25 -0
- package/src/palette/sequentialDarkGreen.ts +28 -0
- package/src/palette/sequentialGreen.ts +23 -0
- package/src/palette/sequentialGreenBlue.ts +28 -0
- package/src/palette/sequentialGrey.ts +23 -0
- package/src/palette/sequentialOrange.ts +25 -0
- package/src/palette/sequentialPink.ts +23 -0
- package/src/palette/sequentialPinkPurple.ts +28 -0
- package/src/palette/sequentialPurple.ts +25 -0
- package/src/palette/sequentialRed.ts +23 -0
- package/src/palette/sequentialYellow.ts +25 -0
- package/src/palette/sequentialYellowGreen.ts +28 -0
- package/src/palette/sequentialYellowOrange.ts +28 -0
- package/src/runtime/component.ts +37 -11
- package/src/runtime/constant.ts +8 -0
- package/src/runtime/coordinate.ts +22 -6
- package/src/runtime/index.ts +2 -1
- package/src/runtime/layout.ts +158 -21
- package/src/runtime/mark.ts +6 -3
- package/src/runtime/plot.ts +370 -160
- package/src/runtime/render.ts +120 -14
- package/src/runtime/scale.ts +193 -34
- package/src/runtime/transform.ts +37 -0
- package/src/runtime/types/common.ts +22 -41
- package/src/runtime/types/component.ts +8 -18
- package/src/runtime/types/options.ts +24 -4
- package/src/runtime/types/theme.ts +97 -0
- package/src/scale/index.ts +27 -11
- package/src/scale/sequential.ts +11 -0
- package/src/scale/sqrt.ts +11 -0
- package/src/shape/area/area.ts +3 -3
- package/src/shape/area/curve.ts +202 -0
- package/src/shape/area/smooth.ts +25 -0
- package/src/shape/area/step.ts +15 -0
- package/src/shape/box/box.ts +102 -0
- package/src/shape/connector/connector.ts +155 -0
- package/src/shape/createElement.ts +25 -0
- package/src/shape/image/image.ts +10 -3
- package/src/shape/index.ts +87 -61
- package/src/shape/interval/color.ts +108 -0
- package/src/shape/interval/funnel.ts +2 -2
- package/src/shape/interval/hollow.ts +15 -0
- package/src/shape/interval/pyramid.ts +1 -1
- package/src/shape/interval/rect.ts +3 -3
- package/src/shape/label/label.ts +25 -89
- package/src/shape/label/position.ts +181 -0
- package/src/shape/line/curve.ts +147 -0
- package/src/shape/line/hv.ts +3 -3
- package/src/shape/line/hvh.ts +3 -3
- package/src/shape/line/line.ts +3 -3
- package/src/shape/line/smooth.ts +3 -3
- package/src/shape/line/vh.ts +3 -3
- package/src/shape/lineXY/line.ts +62 -0
- package/src/shape/link/arc.ts +53 -0
- package/src/shape/link/link.ts +10 -3
- package/src/shape/link/smooth.ts +48 -0
- package/src/shape/link/vhv.ts +92 -0
- package/src/shape/point/bowtie.ts +3 -3
- package/src/shape/point/color.ts +73 -0
- package/src/shape/point/cross.ts +3 -3
- package/src/shape/point/diamond.ts +3 -3
- package/src/shape/point/hexagon.ts +3 -3
- package/src/shape/point/hollow.ts +15 -0
- package/src/shape/point/hollowBowtie.ts +3 -3
- package/src/shape/point/hollowDiamond.ts +3 -3
- package/src/shape/point/hollowHexagon.ts +3 -3
- package/src/shape/point/hollowSquare.ts +3 -3
- package/src/shape/point/hollowTriangle.ts +3 -3
- package/src/shape/point/hollowTriangleDown.ts +3 -3
- package/src/shape/point/hyphen.ts +3 -3
- package/src/shape/point/line.ts +3 -3
- package/src/shape/point/plus.ts +3 -3
- package/src/shape/point/point.ts +3 -3
- package/src/shape/point/square.ts +3 -3
- package/src/shape/point/symbol.ts +3 -2
- package/src/shape/point/tick.ts +3 -3
- package/src/shape/point/triangle.ts +3 -3
- package/src/shape/point/triangleDown.ts +3 -3
- package/src/shape/polygon/polygon.ts +11 -5
- package/src/shape/polygon/ribbon.ts +99 -0
- package/src/shape/text/badge.ts +126 -0
- package/src/shape/text/text.ts +221 -21
- package/src/shape/utils.ts +62 -12
- package/src/shape/vector/vector.ts +11 -5
- package/src/spec/action.ts +1 -0
- package/src/spec/animate.ts +1 -0
- package/src/spec/composition.ts +46 -20
- package/src/spec/coordinate.ts +16 -2
- package/src/spec/data.ts +157 -8
- package/src/spec/geometry.ts +71 -36
- package/src/spec/index.ts +1 -1
- package/src/spec/interaction.ts +50 -29
- package/src/spec/labelTransform.ts +12 -0
- package/src/spec/palette.ts +80 -0
- package/src/spec/scale.ts +17 -4
- package/src/spec/transform.ts +111 -155
- package/src/stdlib/index.ts +230 -138
- package/src/theme/dark.ts +250 -0
- package/src/theme/index.ts +1 -0
- package/src/theme/light.ts +220 -6
- package/src/transform/diffY.ts +52 -0
- package/src/transform/dodgeX.ts +5 -4
- package/src/transform/flexX.ts +38 -0
- package/src/transform/group.ts +124 -0
- package/src/transform/groupColor.ts +14 -0
- package/src/transform/groupX.ts +4 -82
- package/src/transform/groupY.ts +14 -0
- package/src/transform/index.ts +71 -24
- package/src/transform/jitter.ts +24 -5
- package/src/transform/jitterX.ts +30 -0
- package/src/transform/maybeIdentityX.ts +21 -0
- package/src/transform/maybeIdentityY.ts +21 -0
- package/src/transform/maybeTupleX.ts +19 -0
- package/src/transform/maybeTupleY.ts +19 -0
- package/src/transform/maybeZeroPadding.ts +19 -0
- package/src/transform/maybeZeroX.ts +1 -0
- package/src/transform/maybeZeroY.ts +1 -0
- package/src/transform/normalizeY.ts +13 -12
- package/src/transform/pack.ts +69 -0
- package/src/transform/sort.ts +63 -0
- package/src/transform/sortColor.ts +14 -0
- package/src/transform/sortX.ts +14 -0
- package/src/transform/sortY.ts +14 -0
- package/src/transform/stackY.ts +34 -9
- package/src/utils/coordinate.ts +16 -0
- package/src/utils/event.ts +46 -0
- package/src/utils/helper.ts +19 -0
- package/src/utils/selection.ts +22 -9
- package/src/utils/size.ts +61 -0
- package/src/utils/string.ts +19 -0
- package/src/utils/vector.ts +11 -3
- package/esm/adjust/index.d.ts +0 -1
- package/esm/adjust/index.js +0 -2
- package/esm/adjust/index.js.map +0 -1
- package/esm/adjust/pack.d.ts +0 -8
- package/esm/adjust/pack.js +0 -55
- package/esm/adjust/pack.js.map +0 -1
- package/esm/api/composition/circle.d.ts +0 -21
- package/esm/api/composition/circle.js +0 -30
- package/esm/api/composition/circle.js.map +0 -1
- package/esm/api/composition/flex.d.ts +0 -17
- package/esm/api/composition/flex.js +0 -26
- package/esm/api/composition/flex.js.map +0 -1
- package/esm/api/composition/keyframe.d.ts +0 -17
- package/esm/api/composition/keyframe.js +0 -26
- package/esm/api/composition/keyframe.js.map +0 -1
- package/esm/api/composition/layer.d.ts +0 -14
- package/esm/api/composition/layer.js +0 -23
- package/esm/api/composition/layer.js.map +0 -1
- package/esm/api/composition/matrix.d.ts +0 -21
- package/esm/api/composition/matrix.js +0 -30
- package/esm/api/composition/matrix.js.map +0 -1
- package/esm/api/composition/rect.d.ts +0 -23
- package/esm/api/composition/rect.js +0 -32
- package/esm/api/composition/rect.js.map +0 -1
- package/esm/composition/circle.d.ts +0 -7
- package/esm/composition/circle.js +0 -85
- package/esm/composition/circle.js.map +0 -1
- package/esm/composition/flex.d.ts +0 -7
- package/esm/composition/flex.js +0 -40
- package/esm/composition/flex.js.map +0 -1
- package/esm/composition/keyframe.d.ts +0 -7
- package/esm/composition/keyframe.js +0 -75
- package/esm/composition/keyframe.js.map +0 -1
- package/esm/composition/layer.d.ts +0 -7
- package/esm/composition/layer.js +0 -32
- package/esm/composition/layer.js.map +0 -1
- package/esm/composition/matrix.d.ts +0 -8
- package/esm/composition/matrix.js +0 -151
- package/esm/composition/matrix.js.map +0 -1
- package/esm/composition/rect.d.ts +0 -30
- package/esm/composition/rect.js +0 -286
- package/esm/composition/rect.js.map +0 -1
- package/esm/data/connector.d.ts +0 -7
- package/esm/data/connector.js +0 -9
- package/esm/data/connector.js.map +0 -1
- package/esm/labelLayout/hideOverlap.d.ts +0 -2
- package/esm/labelLayout/hideOverlap.js.map +0 -1
- package/esm/labelLayout/index.d.ts +0 -1
- package/esm/labelLayout/index.js +0 -2
- package/esm/labelLayout/index.js.map +0 -1
- package/esm/mark/annotation/connector.d.ts +0 -4
- package/esm/mark/annotation/connector.js +0 -18
- package/esm/mark/annotation/connector.js.map +0 -1
- package/esm/mark/annotation/index.d.ts +0 -7
- package/esm/mark/annotation/index.js +0 -8
- package/esm/mark/annotation/index.js.map +0 -1
- package/esm/mark/annotation/lineX.d.ts +0 -4
- package/esm/mark/annotation/lineX.js +0 -21
- package/esm/mark/annotation/lineX.js.map +0 -1
- package/esm/mark/annotation/lineY.d.ts +0 -4
- package/esm/mark/annotation/lineY.js +0 -21
- package/esm/mark/annotation/lineY.js.map +0 -1
- package/esm/mark/annotation/range.d.ts +0 -8
- package/esm/mark/annotation/range.js +0 -44
- package/esm/mark/annotation/range.js.map +0 -1
- package/esm/mark/annotation/rangeX.d.ts +0 -4
- package/esm/mark/annotation/rangeX.js +0 -14
- package/esm/mark/annotation/rangeX.js.map +0 -1
- package/esm/mark/annotation/rangeY.d.ts +0 -4
- package/esm/mark/annotation/rangeY.js +0 -14
- package/esm/mark/annotation/rangeY.js.map +0 -1
- package/esm/mark/annotation/text.d.ts +0 -4
- package/esm/mark/annotation/text.js +0 -21
- package/esm/mark/annotation/text.js.map +0 -1
- package/esm/mark/geometry/area.d.ts +0 -4
- package/esm/mark/geometry/area.js +0 -70
- package/esm/mark/geometry/area.js.map +0 -1
- package/esm/mark/geometry/edge.d.ts +0 -13
- package/esm/mark/geometry/edge.js +0 -31
- package/esm/mark/geometry/edge.js.map +0 -1
- package/esm/mark/geometry/grid.d.ts +0 -9
- package/esm/mark/geometry/grid.js +0 -46
- package/esm/mark/geometry/grid.js.map +0 -1
- package/esm/mark/geometry/image.d.ts +0 -4
- package/esm/mark/geometry/image.js +0 -34
- package/esm/mark/geometry/image.js.map +0 -1
- package/esm/mark/geometry/index.d.ts +0 -13
- package/esm/mark/geometry/index.js +0 -14
- package/esm/mark/geometry/index.js.map +0 -1
- package/esm/mark/geometry/interval.d.ts +0 -12
- package/esm/mark/geometry/interval.js +0 -59
- package/esm/mark/geometry/interval.js.map +0 -1
- package/esm/mark/geometry/line.d.ts +0 -7
- package/esm/mark/geometry/line.js +0 -76
- package/esm/mark/geometry/line.js.map +0 -1
- package/esm/mark/geometry/link.d.ts +0 -7
- package/esm/mark/geometry/link.js +0 -33
- package/esm/mark/geometry/link.js.map +0 -1
- package/esm/mark/geometry/node.d.ts +0 -8
- package/esm/mark/geometry/node.js +0 -27
- package/esm/mark/geometry/node.js.map +0 -1
- package/esm/mark/geometry/point.d.ts +0 -10
- package/esm/mark/geometry/point.js +0 -71
- package/esm/mark/geometry/point.js.map +0 -1
- package/esm/mark/geometry/polygon.d.ts +0 -7
- package/esm/mark/geometry/polygon.js +0 -43
- package/esm/mark/geometry/polygon.js.map +0 -1
- package/esm/mark/geometry/schema.d.ts +0 -34
- package/esm/mark/geometry/schema.js +0 -90
- package/esm/mark/geometry/schema.js.map +0 -1
- package/esm/mark/geometry/text.d.ts +0 -4
- package/esm/mark/geometry/text.js +0 -35
- package/esm/mark/geometry/text.js.map +0 -1
- package/esm/mark/geometry/vector.d.ts +0 -8
- package/esm/mark/geometry/vector.js +0 -43
- package/esm/mark/geometry/vector.js.map +0 -1
- package/esm/renderer/canvas.d.ts +0 -10
- package/esm/renderer/canvas.js +0 -18
- package/esm/renderer/canvas.js.map +0 -1
- package/esm/renderer/index.d.ts +0 -1
- package/esm/renderer/index.js +0 -2
- package/esm/renderer/index.js.map +0 -1
- package/esm/shape/annotation/badge.d.ts +0 -14
- package/esm/shape/annotation/badge.js +0 -93
- package/esm/shape/annotation/badge.js.map +0 -1
- package/esm/shape/annotation/connector.d.ts +0 -15
- package/esm/shape/annotation/connector.js +0 -101
- package/esm/shape/annotation/connector.js.map +0 -1
- package/esm/shape/annotation/line.d.ts +0 -3
- package/esm/shape/annotation/line.js +0 -56
- package/esm/shape/annotation/line.js.map +0 -1
- package/esm/shape/annotation/text.d.ts +0 -20
- package/esm/shape/annotation/text.js +0 -162
- package/esm/shape/annotation/text.js.map +0 -1
- package/esm/shape/area/curveArea.d.ts +0 -8
- package/esm/shape/area/curveArea.js +0 -60
- package/esm/shape/area/curveArea.js.map +0 -1
- package/esm/shape/area/smoothArea.d.ts +0 -5
- package/esm/shape/area/smoothArea.js +0 -23
- package/esm/shape/area/smoothArea.js.map +0 -1
- package/esm/shape/edge/arc.js +0 -51
- package/esm/shape/edge/arc.js.map +0 -1
- package/esm/shape/edge/edge.d.ts +0 -6
- package/esm/shape/edge/edge.js +0 -11
- package/esm/shape/edge/edge.js.map +0 -1
- package/esm/shape/edge/ribbon.js +0 -69
- package/esm/shape/edge/ribbon.js.map +0 -1
- package/esm/shape/edge/smoothEdge.d.ts +0 -6
- package/esm/shape/edge/smoothEdge.js +0 -39
- package/esm/shape/edge/smoothEdge.js.map +0 -1
- package/esm/shape/edge/vhv.d.ts +0 -12
- package/esm/shape/edge/vhv.js +0 -69
- package/esm/shape/edge/vhv.js.map +0 -1
- package/esm/shape/interval/colorRect.d.ts +0 -14
- package/esm/shape/interval/colorRect.js +0 -62
- package/esm/shape/interval/colorRect.js.map +0 -1
- package/esm/shape/interval/hollowRect.d.ts +0 -6
- package/esm/shape/interval/hollowRect.js +0 -9
- package/esm/shape/interval/hollowRect.js.map +0 -1
- package/esm/shape/line/curveLine.d.ts +0 -8
- package/esm/shape/line/curveLine.js +0 -41
- package/esm/shape/line/curveLine.js.map +0 -1
- package/esm/shape/node/point.d.ts +0 -6
- package/esm/shape/node/point.js +0 -27
- package/esm/shape/node/point.js.map +0 -1
- package/esm/shape/node/polygon.d.ts +0 -3
- package/esm/shape/node/polygon.js +0 -8
- package/esm/shape/node/polygon.js.map +0 -1
- package/esm/shape/point/colorPoint.d.ts +0 -11
- package/esm/shape/point/colorPoint.js +0 -59
- package/esm/shape/point/colorPoint.js.map +0 -1
- package/esm/shape/point/hollowPoint.js +0 -9
- package/esm/shape/point/hollowPoint.js.map +0 -1
- package/esm/shape/schema/box.js +0 -87
- package/esm/shape/schema/box.js.map +0 -1
- package/esm/spec/labelLayout.d.ts +0 -4
- package/esm/spec/labelLayout.js +0 -2
- package/esm/spec/labelLayout.js.map +0 -1
- package/esm/transform/jitterY.d.ts +0 -8
- package/esm/transform/jitterY.js +0 -21
- package/esm/transform/jitterY.js.map +0 -1
- package/lib/adjust/index.d.ts +0 -1
- package/lib/adjust/index.js +0 -6
- package/lib/adjust/index.js.map +0 -1
- package/lib/adjust/pack.d.ts +0 -8
- package/lib/adjust/pack.js +0 -59
- package/lib/adjust/pack.js.map +0 -1
- package/lib/api/composition/circle.d.ts +0 -21
- package/lib/api/composition/circle.js +0 -33
- package/lib/api/composition/circle.js.map +0 -1
- package/lib/api/composition/flex.d.ts +0 -17
- package/lib/api/composition/flex.js +0 -29
- package/lib/api/composition/flex.js.map +0 -1
- package/lib/api/composition/keyframe.d.ts +0 -17
- package/lib/api/composition/keyframe.js +0 -29
- package/lib/api/composition/keyframe.js.map +0 -1
- package/lib/api/composition/layer.d.ts +0 -14
- package/lib/api/composition/layer.js +0 -26
- package/lib/api/composition/layer.js.map +0 -1
- package/lib/api/composition/matrix.d.ts +0 -21
- package/lib/api/composition/matrix.js +0 -33
- package/lib/api/composition/matrix.js.map +0 -1
- package/lib/api/composition/rect.d.ts +0 -23
- package/lib/api/composition/rect.js +0 -35
- package/lib/api/composition/rect.js.map +0 -1
- package/lib/composition/circle.d.ts +0 -7
- package/lib/composition/circle.js +0 -89
- package/lib/composition/circle.js.map +0 -1
- package/lib/composition/flex.d.ts +0 -7
- package/lib/composition/flex.js +0 -44
- package/lib/composition/flex.js.map +0 -1
- package/lib/composition/keyframe.d.ts +0 -7
- package/lib/composition/keyframe.js +0 -79
- package/lib/composition/keyframe.js.map +0 -1
- package/lib/composition/layer.d.ts +0 -7
- package/lib/composition/layer.js +0 -36
- package/lib/composition/layer.js.map +0 -1
- package/lib/composition/matrix.d.ts +0 -8
- package/lib/composition/matrix.js +0 -155
- package/lib/composition/matrix.js.map +0 -1
- package/lib/composition/rect.d.ts +0 -30
- package/lib/composition/rect.js +0 -291
- package/lib/composition/rect.js.map +0 -1
- package/lib/data/connector.d.ts +0 -7
- package/lib/data/connector.js +0 -13
- package/lib/data/connector.js.map +0 -1
- package/lib/labelLayout/hideOverlap.d.ts +0 -2
- package/lib/labelLayout/hideOverlap.js.map +0 -1
- package/lib/labelLayout/index.d.ts +0 -1
- package/lib/labelLayout/index.js +0 -6
- package/lib/labelLayout/index.js.map +0 -1
- package/lib/mark/annotation/connector.d.ts +0 -4
- package/lib/mark/annotation/connector.js +0 -22
- package/lib/mark/annotation/connector.js.map +0 -1
- package/lib/mark/annotation/index.d.ts +0 -7
- package/lib/mark/annotation/index.js +0 -18
- package/lib/mark/annotation/index.js.map +0 -1
- package/lib/mark/annotation/lineX.d.ts +0 -4
- package/lib/mark/annotation/lineX.js +0 -25
- package/lib/mark/annotation/lineX.js.map +0 -1
- package/lib/mark/annotation/lineY.d.ts +0 -4
- package/lib/mark/annotation/lineY.js +0 -25
- package/lib/mark/annotation/lineY.js.map +0 -1
- package/lib/mark/annotation/range.d.ts +0 -8
- package/lib/mark/annotation/range.js +0 -49
- package/lib/mark/annotation/range.js.map +0 -1
- package/lib/mark/annotation/rangeX.d.ts +0 -4
- package/lib/mark/annotation/rangeX.js +0 -18
- package/lib/mark/annotation/rangeX.js.map +0 -1
- package/lib/mark/annotation/rangeY.d.ts +0 -4
- package/lib/mark/annotation/rangeY.js +0 -18
- package/lib/mark/annotation/rangeY.js.map +0 -1
- package/lib/mark/annotation/text.d.ts +0 -4
- package/lib/mark/annotation/text.js +0 -25
- package/lib/mark/annotation/text.js.map +0 -1
- package/lib/mark/geometry/area.d.ts +0 -4
- package/lib/mark/geometry/area.js +0 -74
- package/lib/mark/geometry/area.js.map +0 -1
- package/lib/mark/geometry/edge.d.ts +0 -13
- package/lib/mark/geometry/edge.js +0 -35
- package/lib/mark/geometry/edge.js.map +0 -1
- package/lib/mark/geometry/grid.d.ts +0 -9
- package/lib/mark/geometry/grid.js +0 -50
- package/lib/mark/geometry/grid.js.map +0 -1
- package/lib/mark/geometry/image.d.ts +0 -4
- package/lib/mark/geometry/image.js +0 -38
- package/lib/mark/geometry/image.js.map +0 -1
- package/lib/mark/geometry/index.d.ts +0 -13
- package/lib/mark/geometry/index.js +0 -30
- package/lib/mark/geometry/index.js.map +0 -1
- package/lib/mark/geometry/interval.d.ts +0 -12
- package/lib/mark/geometry/interval.js +0 -63
- package/lib/mark/geometry/interval.js.map +0 -1
- package/lib/mark/geometry/line.d.ts +0 -7
- package/lib/mark/geometry/line.js +0 -80
- package/lib/mark/geometry/line.js.map +0 -1
- package/lib/mark/geometry/link.d.ts +0 -7
- package/lib/mark/geometry/link.js +0 -37
- package/lib/mark/geometry/link.js.map +0 -1
- package/lib/mark/geometry/node.d.ts +0 -8
- package/lib/mark/geometry/node.js +0 -31
- package/lib/mark/geometry/node.js.map +0 -1
- package/lib/mark/geometry/point.d.ts +0 -10
- package/lib/mark/geometry/point.js +0 -75
- package/lib/mark/geometry/point.js.map +0 -1
- package/lib/mark/geometry/polygon.d.ts +0 -7
- package/lib/mark/geometry/polygon.js +0 -47
- package/lib/mark/geometry/polygon.js.map +0 -1
- package/lib/mark/geometry/schema.d.ts +0 -34
- package/lib/mark/geometry/schema.js +0 -94
- package/lib/mark/geometry/schema.js.map +0 -1
- package/lib/mark/geometry/text.d.ts +0 -4
- package/lib/mark/geometry/text.js +0 -39
- package/lib/mark/geometry/text.js.map +0 -1
- package/lib/mark/geometry/vector.d.ts +0 -8
- package/lib/mark/geometry/vector.js +0 -47
- package/lib/mark/geometry/vector.js.map +0 -1
- package/lib/renderer/canvas.d.ts +0 -10
- package/lib/renderer/canvas.js +0 -22
- package/lib/renderer/canvas.js.map +0 -1
- package/lib/renderer/index.d.ts +0 -1
- package/lib/renderer/index.js +0 -6
- package/lib/renderer/index.js.map +0 -1
- package/lib/shape/annotation/badge.d.ts +0 -14
- package/lib/shape/annotation/badge.js +0 -97
- package/lib/shape/annotation/badge.js.map +0 -1
- package/lib/shape/annotation/connector.d.ts +0 -15
- package/lib/shape/annotation/connector.js +0 -105
- package/lib/shape/annotation/connector.js.map +0 -1
- package/lib/shape/annotation/line.d.ts +0 -3
- package/lib/shape/annotation/line.js +0 -60
- package/lib/shape/annotation/line.js.map +0 -1
- package/lib/shape/annotation/text.d.ts +0 -20
- package/lib/shape/annotation/text.js +0 -166
- package/lib/shape/annotation/text.js.map +0 -1
- package/lib/shape/area/curveArea.d.ts +0 -8
- package/lib/shape/area/curveArea.js +0 -64
- package/lib/shape/area/curveArea.js.map +0 -1
- package/lib/shape/area/smoothArea.d.ts +0 -5
- package/lib/shape/area/smoothArea.js +0 -27
- package/lib/shape/area/smoothArea.js.map +0 -1
- package/lib/shape/edge/arc.js +0 -55
- package/lib/shape/edge/arc.js.map +0 -1
- package/lib/shape/edge/edge.d.ts +0 -6
- package/lib/shape/edge/edge.js +0 -15
- package/lib/shape/edge/edge.js.map +0 -1
- package/lib/shape/edge/ribbon.js +0 -73
- package/lib/shape/edge/ribbon.js.map +0 -1
- package/lib/shape/edge/smoothEdge.d.ts +0 -6
- package/lib/shape/edge/smoothEdge.js +0 -43
- package/lib/shape/edge/smoothEdge.js.map +0 -1
- package/lib/shape/edge/vhv.d.ts +0 -12
- package/lib/shape/edge/vhv.js +0 -73
- package/lib/shape/edge/vhv.js.map +0 -1
- package/lib/shape/interval/colorRect.d.ts +0 -14
- package/lib/shape/interval/colorRect.js +0 -66
- package/lib/shape/interval/colorRect.js.map +0 -1
- package/lib/shape/interval/hollowRect.d.ts +0 -6
- package/lib/shape/interval/hollowRect.js +0 -13
- package/lib/shape/interval/hollowRect.js.map +0 -1
- package/lib/shape/line/curveLine.d.ts +0 -8
- package/lib/shape/line/curveLine.js +0 -45
- package/lib/shape/line/curveLine.js.map +0 -1
- package/lib/shape/node/point.d.ts +0 -6
- package/lib/shape/node/point.js +0 -31
- package/lib/shape/node/point.js.map +0 -1
- package/lib/shape/node/polygon.d.ts +0 -3
- package/lib/shape/node/polygon.js +0 -12
- package/lib/shape/node/polygon.js.map +0 -1
- package/lib/shape/point/colorPoint.d.ts +0 -11
- package/lib/shape/point/colorPoint.js +0 -86
- package/lib/shape/point/colorPoint.js.map +0 -1
- package/lib/shape/point/hollowPoint.js +0 -13
- package/lib/shape/point/hollowPoint.js.map +0 -1
- package/lib/shape/schema/box.js +0 -91
- package/lib/shape/schema/box.js.map +0 -1
- package/lib/spec/labelLayout.d.ts +0 -4
- package/lib/spec/labelLayout.js +0 -3
- package/lib/spec/labelLayout.js.map +0 -1
- package/lib/transform/jitterY.d.ts +0 -8
- package/lib/transform/jitterY.js +0 -25
- package/lib/transform/jitterY.js.map +0 -1
- package/src/adjust/index.ts +0 -1
- package/src/adjust/pack.ts +0 -67
- package/src/api/composition/circle.ts +0 -43
- package/src/api/composition/flex.ts +0 -30
- package/src/api/composition/keyframe.ts +0 -30
- package/src/api/composition/layer.ts +0 -24
- package/src/api/composition/matrix.ts +0 -43
- package/src/api/composition/rect.ts +0 -47
- package/src/composition/circle.ts +0 -102
- package/src/composition/flex.ts +0 -49
- package/src/composition/keyframe.ts +0 -90
- package/src/composition/layer.ts +0 -26
- package/src/composition/matrix.ts +0 -170
- package/src/composition/rect.ts +0 -339
- package/src/data/connector.ts +0 -14
- package/src/labelLayout/hideOverlap.ts +0 -47
- package/src/labelLayout/index.ts +0 -1
- package/src/mark/annotation/connector.ts +0 -27
- package/src/mark/annotation/index.ts +0 -25
- package/src/mark/annotation/lineX.ts +0 -31
- package/src/mark/annotation/lineY.ts +0 -31
- package/src/mark/annotation/range.ts +0 -55
- package/src/mark/annotation/rangeX.ts +0 -23
- package/src/mark/annotation/rangeY.ts +0 -23
- package/src/mark/annotation/text.ts +0 -30
- package/src/mark/geometry/area.ts +0 -85
- package/src/mark/geometry/edge.ts +0 -40
- package/src/mark/geometry/grid.ts +0 -56
- package/src/mark/geometry/image.ts +0 -41
- package/src/mark/geometry/index.ts +0 -13
- package/src/mark/geometry/interval.ts +0 -71
- package/src/mark/geometry/line.ts +0 -94
- package/src/mark/geometry/link.ts +0 -44
- package/src/mark/geometry/node.ts +0 -36
- package/src/mark/geometry/point.ts +0 -80
- package/src/mark/geometry/polygon.ts +0 -54
- package/src/mark/geometry/schema.ts +0 -105
- package/src/mark/geometry/text.ts +0 -43
- package/src/mark/geometry/vector.ts +0 -56
- package/src/renderer/canvas.ts +0 -27
- package/src/renderer/index.ts +0 -1
- package/src/shape/annotation/badge.ts +0 -114
- package/src/shape/annotation/connector.ts +0 -138
- package/src/shape/annotation/line.ts +0 -55
- package/src/shape/annotation/text.ts +0 -224
- package/src/shape/area/curveArea.ts +0 -61
- package/src/shape/area/smoothArea.ts +0 -25
- package/src/shape/edge/arc.ts +0 -46
- package/src/shape/edge/edge.ts +0 -15
- package/src/shape/edge/ribbon.ts +0 -93
- package/src/shape/edge/smoothEdge.ts +0 -41
- package/src/shape/edge/vhv.ts +0 -85
- package/src/shape/interval/colorRect.ts +0 -62
- package/src/shape/interval/hollowRect.ts +0 -15
- package/src/shape/line/curveLine.ts +0 -44
- package/src/shape/node/point.ts +0 -32
- package/src/shape/node/polygon.ts +0 -12
- package/src/shape/point/colorPoint.ts +0 -65
- package/src/shape/point/hollowPoint.ts +0 -15
- package/src/shape/schema/box.ts +0 -96
- package/src/spec/labelLayout.ts +0 -5
- package/src/transform/jitterY.ts +0 -26
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Keyframe = void 0;
|
|
4
|
-
const util_1 = require("@antv/util");
|
|
5
|
-
function range(direction, iterationCount, keyframeCount) {
|
|
6
|
-
const start = 0;
|
|
7
|
-
const end = keyframeCount;
|
|
8
|
-
const normal = [start, end];
|
|
9
|
-
const reverse = [-end + 1, -start + 1];
|
|
10
|
-
if (direction === 'normal')
|
|
11
|
-
return normal;
|
|
12
|
-
if (direction === 'reverse')
|
|
13
|
-
return reverse;
|
|
14
|
-
if (direction === 'alternate') {
|
|
15
|
-
return iterationCount % 2 === 0 ? normal : reverse;
|
|
16
|
-
}
|
|
17
|
-
if (direction === 'reverse-alternate') {
|
|
18
|
-
return iterationCount % 2 === 0 ? reverse : normal;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Set animation options for all descendants.
|
|
23
|
-
*/
|
|
24
|
-
function setAnimation(node, duration, easing) {
|
|
25
|
-
const discovered = [node];
|
|
26
|
-
while (discovered.length) {
|
|
27
|
-
const n = discovered.pop();
|
|
28
|
-
n.animate = (0, util_1.deepMix)({
|
|
29
|
-
enter: { duration },
|
|
30
|
-
update: {
|
|
31
|
-
duration,
|
|
32
|
-
type: 'morphing',
|
|
33
|
-
easing,
|
|
34
|
-
fill: 'both',
|
|
35
|
-
},
|
|
36
|
-
exit: { duration },
|
|
37
|
-
}, n.animate || {});
|
|
38
|
-
const { children } = n;
|
|
39
|
-
if (Array.isArray(children))
|
|
40
|
-
discovered.push(...children);
|
|
41
|
-
}
|
|
42
|
-
return node;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @todo More options, such as fill, totalDuration...
|
|
46
|
-
*/
|
|
47
|
-
const Keyframe = () => {
|
|
48
|
-
return (options) => {
|
|
49
|
-
const { children = [], duration = 1000, iterationCount = 1, direction = 'normal', easing = 'ease-in-out-sine', } = options;
|
|
50
|
-
const n = children.length;
|
|
51
|
-
if (!Array.isArray(children) || n === 0)
|
|
52
|
-
return [];
|
|
53
|
-
const { key } = children[0];
|
|
54
|
-
const newChildren = children
|
|
55
|
-
.map((d) => (Object.assign(Object.assign({}, d), { key })))
|
|
56
|
-
.map((d) => setAnimation(d, duration, easing));
|
|
57
|
-
return function* () {
|
|
58
|
-
let count = 0;
|
|
59
|
-
let prevIndex;
|
|
60
|
-
while (iterationCount === 'infinite' || count < iterationCount) {
|
|
61
|
-
const [start, end] = range(direction, count, n);
|
|
62
|
-
for (let i = start; i < end; i += 1) {
|
|
63
|
-
// For reverse direction, the range is from negative to negative
|
|
64
|
-
// so the absolute value of i is the real index for newChildren.
|
|
65
|
-
const index = Math.abs(i);
|
|
66
|
-
// This is for preventing alternate or reverse-alternate keyframe
|
|
67
|
-
// to yield two same node one by one when the direction change.
|
|
68
|
-
if (prevIndex !== index)
|
|
69
|
-
yield newChildren[index];
|
|
70
|
-
prevIndex = index;
|
|
71
|
-
}
|
|
72
|
-
count++;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
exports.Keyframe = Keyframe;
|
|
78
|
-
exports.Keyframe.props = {};
|
|
79
|
-
//# sourceMappingURL=keyframe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyframe.js","sourceRoot":"src/","sources":["composition/keyframe.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAMrC,SAAS,KAAK,CACZ,SAA2C,EAC3C,cAAsB,EACtB,aAAqB;IAErB,MAAM,KAAK,GAAG,CAAC,CAAC;IAChB,MAAM,GAAG,GAAG,aAAa,CAAC;IAC1B,MAAM,MAAM,GAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAqB,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACzD,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC1C,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC;IAC5C,IAAI,SAAS,KAAK,WAAW,EAAE;QAC7B,OAAO,cAAc,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD;IACD,IAAI,SAAS,KAAK,mBAAmB,EAAE;QACrC,OAAO,cAAc,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;KACpD;AACH,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,IAAgB,EAAE,QA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,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC;YACd,IAAI,KAAK,GAAG,CAAC,CAAC;YACd,IAAI,SAAiB,CAAC;YACtB,OAAO,cAAc,KAAK,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE;gBAC9D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBAChD,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;oBACnC,gEAAgE;oBAChE,gEAAgE;oBAChE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBAC1B,iEAAiE;oBACjE,+DAA+D;oBAC/D,IAAI,SAAS,KAAK,KAAK;wBAAE,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC;oBAClD,SAAS,GAAG,KAAK,CAAC;iBACnB;gBACD,KAAK,EAAE,CAAC;aACT;QACH,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAjCW,QAAA,QAAQ,YAiCnB;AAEF,gBAAQ,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CompositionComponent as CC } from '../runtime';
|
|
2
|
-
import { LayerComposition } from '../spec';
|
|
3
|
-
export declare type LayerOptions = Omit<LayerComposition, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* @todo Propagate more options to children.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Layer: CC<LayerOptions>;
|
package/lib/composition/layer.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Layer = void 0;
|
|
15
|
-
const utils_1 = require("./utils");
|
|
16
|
-
/**
|
|
17
|
-
* @todo Propagate more options to children.
|
|
18
|
-
*/
|
|
19
|
-
const Layer = () => {
|
|
20
|
-
return (options) => {
|
|
21
|
-
const { children } = options;
|
|
22
|
-
if (!Array.isArray(children))
|
|
23
|
-
return [];
|
|
24
|
-
const { x = 0, y = 0, width, height, data: layerData } = options;
|
|
25
|
-
return children.map((_a) => {
|
|
26
|
-
var { data } = _a, rest = __rest(_a, ["data"]);
|
|
27
|
-
return (Object.assign(Object.assign({}, rest), { data: (0, utils_1.mergeData)(data, layerData), x,
|
|
28
|
-
y,
|
|
29
|
-
width,
|
|
30
|
-
height }));
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
exports.Layer = Layer;
|
|
35
|
-
exports.Layer.props = {};
|
|
36
|
-
//# sourceMappingURL=layer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layer.js","sourceRoot":"src/","sources":["composition/layer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,mCAAoC;AAIpC;;GAEG;AACI,MAAM,KAAK,GAAqB,GAAG,EAAE;IAC1C,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;QAC7B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QACjE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAiB,EAAE,EAAE;gBAArB,EAAE,IAAI,OAAW,EAAN,IAAI,cAAf,QAAiB,CAAF;YAAO,OAAA,iCACtC,IAAI,KACP,IAAI,EAAE,IAAA,iBAAS,EAAC,IAAI,EAAE,SAAS,CAAC,EAChC,CAAC;gBACD,CAAC;gBACD,KAAK;gBACL,MAAM,IACN,CAAA;SAAA,CAAC,CAAC;IACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,KAAK,SAchB;AAEF,aAAK,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CompositionComponent as CC } from '../runtime';
|
|
2
|
-
import { MatrixComposition } from '../spec';
|
|
3
|
-
export declare type MatrixOptions = Omit<MatrixComposition, 'type'>;
|
|
4
|
-
/**
|
|
5
|
-
* @todo Layout mode: layer, row, col...
|
|
6
|
-
* @todo Specify show axis or not.
|
|
7
|
-
*/
|
|
8
|
-
export declare const Matrix: CC<MatrixComposition>;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Matrix = void 0;
|
|
15
|
-
const util_1 = require("@antv/util");
|
|
16
|
-
const container_1 = require("../utils/container");
|
|
17
|
-
const vector_1 = require("../utils/vector");
|
|
18
|
-
const array_1 = require("../utils/array");
|
|
19
|
-
const rect_1 = require("./rect");
|
|
20
|
-
const utils_1 = require("./utils");
|
|
21
|
-
const setScale = (0, utils_1.useDefaultAdaptor)((options) => {
|
|
22
|
-
return {
|
|
23
|
-
scale: {
|
|
24
|
-
x: { guide: null, paddingOuter: 0, paddingInner: 0.1 },
|
|
25
|
-
y: { guide: null, range: [0, 1], paddingOuter: 0, paddingInner: 0.1 },
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
const setChildren = (0, utils_1.useOverrideAdaptor)((options) => {
|
|
30
|
-
const { data, children, x: originX = 0, y: originY = 0 } = options;
|
|
31
|
-
const createChildren = (visualData, scale, layout) => {
|
|
32
|
-
const { x: scaleX, y: scaleY } = scale;
|
|
33
|
-
const { paddingLeft, paddingTop } = layout;
|
|
34
|
-
const { domain: domainX, field: fieldX } = scaleX.getOptions();
|
|
35
|
-
const { domain: domainY, field: fieldY } = scaleY.getOptions();
|
|
36
|
-
const index = (0, array_1.indexOf)(visualData);
|
|
37
|
-
const bboxs = visualData.map(({ points }) => (0, vector_1.calcBBox)(points));
|
|
38
|
-
const values = visualData.map(({ x, y }) => [
|
|
39
|
-
scaleX.invert(x),
|
|
40
|
-
scaleY.invert(y),
|
|
41
|
-
]);
|
|
42
|
-
const facets = values.map(([fx, fy]) => ({
|
|
43
|
-
columnField: fieldX,
|
|
44
|
-
columnIndex: domainX.indexOf(fx),
|
|
45
|
-
columnValue: fx,
|
|
46
|
-
columnValuesLength: domainX.length,
|
|
47
|
-
rowField: fieldY,
|
|
48
|
-
rowIndex: domainY.indexOf(fy),
|
|
49
|
-
rowValue: fy,
|
|
50
|
-
rowValuesLength: domainY.length,
|
|
51
|
-
}));
|
|
52
|
-
const normalizedChildren = facets.map((facet) => {
|
|
53
|
-
if (Array.isArray(children))
|
|
54
|
-
return children;
|
|
55
|
-
return [children(facet)].flat(1);
|
|
56
|
-
});
|
|
57
|
-
return index.flatMap((i) => {
|
|
58
|
-
const [left, top, width, height] = bboxs[i];
|
|
59
|
-
const [fx, fy] = values[i];
|
|
60
|
-
const facet = facets[i];
|
|
61
|
-
const children = normalizedChildren[i];
|
|
62
|
-
return children.map((d) => {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
const { scale, key, encode } = d, rest = __rest(d, ["scale", "key", "encode"]);
|
|
65
|
-
const guideY = (_a = scale === null || scale === void 0 ? void 0 : scale.y) === null || _a === void 0 ? void 0 : _a.guide;
|
|
66
|
-
const guideX = (_b = scale === null || scale === void 0 ? void 0 : scale.x) === null || _b === void 0 ? void 0 : _b.guide;
|
|
67
|
-
const defaultScale = {
|
|
68
|
-
color: { guide: null },
|
|
69
|
-
x: {
|
|
70
|
-
guide: { title: { titleAnchor: 'center' } },
|
|
71
|
-
tickCount: 5,
|
|
72
|
-
// Do not sync position scales among facets by default.
|
|
73
|
-
facet: false,
|
|
74
|
-
},
|
|
75
|
-
y: {
|
|
76
|
-
guide: { title: { titleAnchor: 'center' } },
|
|
77
|
-
// Do not sync position scales among facets by default.
|
|
78
|
-
tickCount: 5,
|
|
79
|
-
facet: false,
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
const newScale = {
|
|
83
|
-
x: { guide: createGuideX(guideX)(facet, data) },
|
|
84
|
-
y: { guide: createGuideY(guideY)(facet, data) },
|
|
85
|
-
};
|
|
86
|
-
return Object.assign({ data, key: `${key}-${i}`, x: left + paddingLeft + originX, y: top + paddingTop + originY, width,
|
|
87
|
-
height, paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0, frame: true, scale: (0, util_1.deepMix)(defaultScale, scale, newScale), encode: (0, util_1.deepMix)({}, encode, {
|
|
88
|
-
x: fx,
|
|
89
|
-
y: fy,
|
|
90
|
-
}) }, rest);
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
return {
|
|
95
|
-
children: createChildren,
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
/**
|
|
99
|
-
* @todo Use transform instead of override data directly.
|
|
100
|
-
*/
|
|
101
|
-
const setData = (options) => {
|
|
102
|
-
const { encode } = options, rest = __rest(options, ["encode"]);
|
|
103
|
-
const { position: P = [], x: X = P, y: Y = [...P].reverse() } = encode, restEncode = __rest(encode, ["position", "x", "y"]);
|
|
104
|
-
const data = [];
|
|
105
|
-
for (const $x of [X].flat(1)) {
|
|
106
|
-
for (const $y of [Y].flat(1)) {
|
|
107
|
-
data.push({ $x, $y });
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return Object.assign(Object.assign({}, rest), { data, encode: Object.assign(Object.assign({}, restEncode), { x: '$x', y: '$y' }) });
|
|
111
|
-
};
|
|
112
|
-
function createGuideX(guideX) {
|
|
113
|
-
if (typeof guideX === 'function')
|
|
114
|
-
return guideX;
|
|
115
|
-
if (guideX === null)
|
|
116
|
-
return () => null;
|
|
117
|
-
return (facet, data) => {
|
|
118
|
-
const { rowIndex, rowValuesLength } = facet;
|
|
119
|
-
// Only the bottom-most facet show axisX.
|
|
120
|
-
if (rowIndex !== rowValuesLength - 1)
|
|
121
|
-
return (0, rect_1.createInnerGuide)(guideX, data);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function createGuideY(guideY) {
|
|
125
|
-
if (typeof guideY === 'function')
|
|
126
|
-
return guideY;
|
|
127
|
-
if (guideY === null)
|
|
128
|
-
return () => null;
|
|
129
|
-
return (facet, data) => {
|
|
130
|
-
const { columnIndex } = facet;
|
|
131
|
-
// Only the left-most facet show axisY.
|
|
132
|
-
if (columnIndex !== 0)
|
|
133
|
-
return (0, rect_1.createInnerGuide)(guideY, data);
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* @todo Layout mode: layer, row, col...
|
|
138
|
-
* @todo Specify show axis or not.
|
|
139
|
-
*/
|
|
140
|
-
const Matrix = () => {
|
|
141
|
-
return (options) => {
|
|
142
|
-
const newOptions = container_1.Container.of(options)
|
|
143
|
-
.call(rect_1.toGrid)
|
|
144
|
-
.call(rect_1.inferColor)
|
|
145
|
-
.call(setChildren)
|
|
146
|
-
.call(setData)
|
|
147
|
-
.call(rect_1.setAnimation)
|
|
148
|
-
.call(rect_1.setStyle)
|
|
149
|
-
.call(setScale)
|
|
150
|
-
.value();
|
|
151
|
-
return [newOptions];
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
exports.Matrix = Matrix;
|
|
155
|
-
//# sourceMappingURL=matrix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.js","sourceRoot":"src/","sources":["composition/matrix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAqC;AAGrC,kDAA+C;AAC/C,4CAA2C;AAC3C,0CAAyC;AACzC,iCAMgB;AAChB,mCAAgE;AAIhE,MAAM,QAAQ,GAAG,IAAA,yBAAiB,EAAa,CAAC,OAAO,EAAE,EAAE;IACzD,OAAO;QACL,KAAK,EAAE;YACL,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE;YACtD,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE;SACtE;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAA,0BAAkB,EAAa,CAAC,OAAO,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,G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AO,GAAG,EAAE,CAAC,IAAI,CAAC;IACvC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;QAC9B,uCAAuC;QACvC,IAAI,WAAW,KAAK,CAAC;YAAE,OAAO,IAAA,uBAAgB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,MAAM,GAA0B,GAAG,EAAE;IAChD,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,UAAU,GAAG,qBAAS,CAAC,EAAE,CAAa,OAAO,CAAC;aACjD,IAAI,CAAC,aAAM,CAAC;aACZ,IAAI,CAAC,iBAAU,CAAC;aAChB,IAAI,CAAC,WAAW,CAAC;aACjB,IAAI,CAAC,OAAO,CAAC;aACb,IAAI,CAAC,mBAAY,CAAC;aAClB,IAAI,CAAC,eAAQ,CAAC;aACd,IAAI,CAAC,QAAQ,CAAC;aACd,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,MAAM,UAajB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CompositionComponent as CC, G2ViewTree } from '../runtime';
|
|
2
|
-
import { RectComposition } from '../spec';
|
|
3
|
-
export declare type SubLayout = (data?: any) => number[];
|
|
4
|
-
/**
|
|
5
|
-
* BFS view tree and using the last discovered color encode
|
|
6
|
-
* as the top-level encode for this plot. This is useful when
|
|
7
|
-
* color encode and color scale is specified in mark node.
|
|
8
|
-
* It makes sense because the whole facet should shared the same
|
|
9
|
-
* color encoding, but it also can be override with explicity
|
|
10
|
-
* encode and scale specification.
|
|
11
|
-
*/
|
|
12
|
-
export declare const inferColor: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
13
|
-
export declare const setAnimation: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
14
|
-
export declare const setStyle: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
15
|
-
export declare const toGrid: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
16
|
-
/**
|
|
17
|
-
* Do not set grid data directly, the children will get wrong do if do
|
|
18
|
-
* so. Use transform to set new data.
|
|
19
|
-
**/
|
|
20
|
-
export declare const setData: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
21
|
-
/**
|
|
22
|
-
* @todo Move some options assignment to runtime.
|
|
23
|
-
*/
|
|
24
|
-
export declare const setChildren: (options: G2ViewTree, ...rest: any[]) => G2ViewTree;
|
|
25
|
-
/**
|
|
26
|
-
* Inner guide not show title, tickLine, label and subTickLine, if data is empty, do not show guide.
|
|
27
|
-
*/
|
|
28
|
-
export declare function createInnerGuide(guide: any, data: any): any;
|
|
29
|
-
export declare type RectOptions = Omit<RectComposition, 'type'>;
|
|
30
|
-
export declare const Rect: CC<RectOptions>;
|
package/lib/composition/rect.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Rect = exports.createInnerGuide = exports.setChildren = exports.setData = exports.toGrid = exports.setStyle = exports.setAnimation = exports.inferColor = void 0;
|
|
15
|
-
const util_1 = require("@antv/util");
|
|
16
|
-
const d3_array_1 = require("d3-array");
|
|
17
|
-
const vector_1 = require("../utils/vector");
|
|
18
|
-
const container_1 = require("../utils/container");
|
|
19
|
-
const array_1 = require("../utils/array");
|
|
20
|
-
const utils_1 = require("./utils");
|
|
21
|
-
const setScale = (0, utils_1.useDefaultAdaptor)((options) => {
|
|
22
|
-
const { encode, data, scale, shareSize = false } = options;
|
|
23
|
-
const { x, y } = encode;
|
|
24
|
-
const flexDomain = (encode, channel) => {
|
|
25
|
-
var _a;
|
|
26
|
-
if (encode === undefined || !shareSize)
|
|
27
|
-
return {};
|
|
28
|
-
const groups = (0, d3_array_1.group)(data, (d) => d[encode]);
|
|
29
|
-
const domain = ((_a = scale === null || scale === void 0 ? void 0 : scale[channel]) === null || _a === void 0 ? void 0 : _a.domain) || Array.from(groups.keys());
|
|
30
|
-
const flex = domain.map((key) => {
|
|
31
|
-
if (!groups.has(key))
|
|
32
|
-
return 1;
|
|
33
|
-
return groups.get(key).length;
|
|
34
|
-
});
|
|
35
|
-
return { domain, flex };
|
|
36
|
-
};
|
|
37
|
-
return {
|
|
38
|
-
scale: {
|
|
39
|
-
x: Object.assign(Object.assign({ paddingOuter: 0, guide: x === undefined ? null : { position: 'top' } }, (x === undefined && { paddingInner: 0 })), flexDomain(x, 'x')),
|
|
40
|
-
y: Object.assign(Object.assign({ range: [0, 1], paddingOuter: 0, guide: y === undefined ? null : { position: 'right' } }, (y === undefined && { paddingInner: 0 })), flexDomain(y, 'y')),
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* BFS view tree and using the last discovered color encode
|
|
46
|
-
* as the top-level encode for this plot. This is useful when
|
|
47
|
-
* color encode and color scale is specified in mark node.
|
|
48
|
-
* It makes sense because the whole facet should shared the same
|
|
49
|
-
* color encoding, but it also can be override with explicity
|
|
50
|
-
* encode and scale specification.
|
|
51
|
-
*/
|
|
52
|
-
exports.inferColor = (0, utils_1.useDefaultAdaptor)((options) => {
|
|
53
|
-
const { data, scale } = options;
|
|
54
|
-
const discovered = [options];
|
|
55
|
-
let encodeColor;
|
|
56
|
-
let scaleColor;
|
|
57
|
-
while (discovered.length) {
|
|
58
|
-
const node = discovered.shift();
|
|
59
|
-
const { children, encode = {}, scale = {} } = node;
|
|
60
|
-
const { color: c } = encode;
|
|
61
|
-
const { color: cs } = scale;
|
|
62
|
-
if (c !== undefined)
|
|
63
|
-
encodeColor = c;
|
|
64
|
-
if (cs !== undefined)
|
|
65
|
-
scaleColor = cs;
|
|
66
|
-
if (Array.isArray(children)) {
|
|
67
|
-
discovered.push(...children);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// Set guide of color scale to null to avoid legend
|
|
71
|
-
// for mark scale.
|
|
72
|
-
// @todo Maybe make it optional?
|
|
73
|
-
const topLevelScaleColor = Object.assign({}, scaleColor);
|
|
74
|
-
if (scaleColor)
|
|
75
|
-
scaleColor.guide = null;
|
|
76
|
-
const domainColor = () => {
|
|
77
|
-
var _a;
|
|
78
|
-
const domain = (_a = scale === null || scale === void 0 ? void 0 : scale.color) === null || _a === void 0 ? void 0 : _a.domain;
|
|
79
|
-
if (domain !== undefined)
|
|
80
|
-
return domain;
|
|
81
|
-
if (encodeColor === undefined)
|
|
82
|
-
return undefined;
|
|
83
|
-
return Array.from(new Set(data.map((d) => d[encodeColor])));
|
|
84
|
-
};
|
|
85
|
-
return {
|
|
86
|
-
encode: {
|
|
87
|
-
color: encodeColor,
|
|
88
|
-
},
|
|
89
|
-
scale: {
|
|
90
|
-
color: (0, util_1.deepMix)({}, topLevelScaleColor, {
|
|
91
|
-
domain: domainColor(),
|
|
92
|
-
field: encodeColor,
|
|
93
|
-
// @todo Remove this when pass columnOf to extract color.
|
|
94
|
-
type: 'ordinal',
|
|
95
|
-
}),
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
exports.setAnimation = (0, utils_1.useDefaultAdaptor)(() => ({
|
|
100
|
-
animate: {
|
|
101
|
-
enter: {
|
|
102
|
-
type: 'fadeIn',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
}));
|
|
106
|
-
exports.setStyle = (0, utils_1.useOverrideAdaptor)(() => ({
|
|
107
|
-
frame: false,
|
|
108
|
-
encode: {
|
|
109
|
-
shape: 'hollowRect',
|
|
110
|
-
},
|
|
111
|
-
style: {
|
|
112
|
-
lineWidth: 0,
|
|
113
|
-
},
|
|
114
|
-
}));
|
|
115
|
-
exports.toGrid = (0, utils_1.useOverrideAdaptor)(() => ({
|
|
116
|
-
type: 'grid',
|
|
117
|
-
}));
|
|
118
|
-
/**
|
|
119
|
-
* Do not set grid data directly, the children will get wrong do if do
|
|
120
|
-
* so. Use transform to set new data.
|
|
121
|
-
**/
|
|
122
|
-
exports.setData = (0, utils_1.useOverrideAdaptor)((options) => {
|
|
123
|
-
const { data } = options;
|
|
124
|
-
const connector = {
|
|
125
|
-
type: 'connector',
|
|
126
|
-
callback: () => {
|
|
127
|
-
const { data, encode } = options;
|
|
128
|
-
const { x, y } = encode;
|
|
129
|
-
const X = x ? Array.from(new Set(data.map((d) => d[x]))) : [];
|
|
130
|
-
const Y = y ? Array.from(new Set(data.map((d) => d[y]))) : [];
|
|
131
|
-
const gridData = () => {
|
|
132
|
-
if (X.length && Y.length) {
|
|
133
|
-
const gridData = [];
|
|
134
|
-
for (const vx of X) {
|
|
135
|
-
for (const vy of Y) {
|
|
136
|
-
gridData.push({ [x]: vx, [y]: vy });
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return gridData;
|
|
140
|
-
}
|
|
141
|
-
if (X.length)
|
|
142
|
-
return X.map((d) => ({ [x]: d }));
|
|
143
|
-
if (Y.length)
|
|
144
|
-
return Y.map((d) => ({ [y]: d }));
|
|
145
|
-
};
|
|
146
|
-
return gridData();
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
return {
|
|
150
|
-
data: { type: 'inline', value: data, transform: [connector] },
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
|
-
/**
|
|
154
|
-
* @todo Move some options assignment to runtime.
|
|
155
|
-
*/
|
|
156
|
-
exports.setChildren = (0, utils_1.useOverrideAdaptor)((options, subLayout = subLayoutRect, createGuideX = createGuideXRect, createGuideY = createGuideYRect, childOptions = {}) => {
|
|
157
|
-
const { data: dataValue, encode, children, scale: facetScale, x: originX = 0, y: originY = 0, shareData = false, } = options;
|
|
158
|
-
const { value: data } = dataValue;
|
|
159
|
-
const { x: encodeX, y: encodeY } = encode;
|
|
160
|
-
const { color: facetScaleColor } = facetScale;
|
|
161
|
-
const { domain: facetDomainColor } = facetScaleColor;
|
|
162
|
-
const createChildren = (visualData, scale, layout) => {
|
|
163
|
-
const { x: scaleX, y: scaleY } = scale;
|
|
164
|
-
const { paddingLeft, paddingTop } = layout;
|
|
165
|
-
const { domain: domainX, field: fieldX } = scaleX.getOptions();
|
|
166
|
-
const { domain: domainY, field: fieldY } = scaleY.getOptions();
|
|
167
|
-
const index = (0, array_1.indexOf)(visualData);
|
|
168
|
-
const bboxs = visualData.map(subLayout);
|
|
169
|
-
const values = visualData.map(({ x, y }) => [
|
|
170
|
-
scaleX.invert(x),
|
|
171
|
-
scaleY.invert(y),
|
|
172
|
-
]);
|
|
173
|
-
const filters = values.map(([fx, fy]) => (d) => {
|
|
174
|
-
const { [fieldX]: x, [fieldY]: y } = d;
|
|
175
|
-
const inX = encodeX !== undefined ? x === fx : true;
|
|
176
|
-
const inY = encodeY !== undefined ? y === fy : true;
|
|
177
|
-
return inX && inY;
|
|
178
|
-
});
|
|
179
|
-
const facetData2d = filters.map((f) => data.filter(f));
|
|
180
|
-
const maxDataDomain = shareData
|
|
181
|
-
? (0, d3_array_1.max)(facetData2d, (data) => data.length)
|
|
182
|
-
: undefined;
|
|
183
|
-
const facets = values.map(([fx, fy]) => ({
|
|
184
|
-
columnField: fieldX,
|
|
185
|
-
columnIndex: domainX.indexOf(fx),
|
|
186
|
-
columnValue: fx,
|
|
187
|
-
columnValuesLength: domainX.length,
|
|
188
|
-
rowField: fieldY,
|
|
189
|
-
rowIndex: domainY.indexOf(fy),
|
|
190
|
-
rowValue: fy,
|
|
191
|
-
rowValuesLength: domainY.length,
|
|
192
|
-
}));
|
|
193
|
-
const normalizedChildren = facets.map((facet) => {
|
|
194
|
-
if (Array.isArray(children))
|
|
195
|
-
return children;
|
|
196
|
-
return [children(facet)].flat(1);
|
|
197
|
-
});
|
|
198
|
-
return index.flatMap((i) => {
|
|
199
|
-
const [left, top, width, height] = bboxs[i];
|
|
200
|
-
const facet = facets[i];
|
|
201
|
-
const facetData = facetData2d[i];
|
|
202
|
-
const children = normalizedChildren[i];
|
|
203
|
-
return children.map((_a) => {
|
|
204
|
-
var _b, _c;
|
|
205
|
-
var { scale, key, facet: isFacet = true } = _a, rest = __rest(_a, ["scale", "key", "facet"]);
|
|
206
|
-
const guideY = (_b = scale === null || scale === void 0 ? void 0 : scale.y) === null || _b === void 0 ? void 0 : _b.guide;
|
|
207
|
-
const guideX = (_c = scale === null || scale === void 0 ? void 0 : scale.x) === null || _c === void 0 ? void 0 : _c.guide;
|
|
208
|
-
const defaultScale = {
|
|
209
|
-
x: { tickCount: encodeX ? 5 : undefined },
|
|
210
|
-
y: { tickCount: encodeY ? 5 : undefined },
|
|
211
|
-
};
|
|
212
|
-
const newData = isFacet ? facetData : data;
|
|
213
|
-
const newScale = {
|
|
214
|
-
x: { guide: createGuide(guideX, createGuideX)(facet, newData) },
|
|
215
|
-
y: { guide: createGuide(guideY, createGuideY)(facet, newData) },
|
|
216
|
-
// Hide all legends for child mark by default,
|
|
217
|
-
// they are displayed in the top-level.
|
|
218
|
-
color: { guide: null, domain: facetDomainColor },
|
|
219
|
-
};
|
|
220
|
-
return Object.assign(Object.assign({ key: `${key}-${i}`, data: newData, x: left + paddingLeft + originX, y: top + paddingTop + originY, width,
|
|
221
|
-
height, paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0, frame: newData.length ? true : false, dataDomain: maxDataDomain, scale: (0, util_1.deepMix)(defaultScale, scale, newScale) }, rest), childOptions);
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
};
|
|
225
|
-
return {
|
|
226
|
-
children: createChildren,
|
|
227
|
-
};
|
|
228
|
-
});
|
|
229
|
-
function subLayoutRect(data) {
|
|
230
|
-
const { points } = data;
|
|
231
|
-
return (0, vector_1.calcBBox)(points);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Inner guide not show title, tickLine, label and subTickLine, if data is empty, do not show guide.
|
|
235
|
-
*/
|
|
236
|
-
function createInnerGuide(guide, data) {
|
|
237
|
-
return data.length
|
|
238
|
-
? (0, util_1.deepMix)({ title: false, tickLine: null, label: null, subTickLine: null }, guide)
|
|
239
|
-
: null;
|
|
240
|
-
}
|
|
241
|
-
exports.createInnerGuide = createInnerGuide;
|
|
242
|
-
function createGuideXRect(guide) {
|
|
243
|
-
return (facet, data) => {
|
|
244
|
-
const { rowIndex, rowValuesLength, columnIndex, columnValuesLength } = facet;
|
|
245
|
-
// Only the bottom-most facet show axisX.
|
|
246
|
-
if (rowIndex !== rowValuesLength - 1)
|
|
247
|
-
return createInnerGuide(guide, data);
|
|
248
|
-
// Only the bottom-left facet show title.
|
|
249
|
-
const title = columnIndex !== columnValuesLength - 1 ? false : undefined;
|
|
250
|
-
// If data is empty, do not show grid.
|
|
251
|
-
const grid = data.length ? undefined : null;
|
|
252
|
-
return (0, util_1.deepMix)({ title, grid }, guide);
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
function createGuideYRect(guide) {
|
|
256
|
-
return (facet, data) => {
|
|
257
|
-
const { rowIndex, columnIndex } = facet;
|
|
258
|
-
// Only the left-most facet show axisY.
|
|
259
|
-
if (columnIndex !== 0)
|
|
260
|
-
return createInnerGuide(guide, data);
|
|
261
|
-
// Only the left-top facet show title.
|
|
262
|
-
const title = rowIndex !== 0 ? false : undefined;
|
|
263
|
-
// If data is empty, do not show grid.
|
|
264
|
-
const grid = data.length ? undefined : null;
|
|
265
|
-
return (0, util_1.deepMix)({ title, grid }, guide);
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
function createGuide(guide, factory) {
|
|
269
|
-
if (typeof guide === 'function')
|
|
270
|
-
return guide;
|
|
271
|
-
if (guide === null)
|
|
272
|
-
return () => null;
|
|
273
|
-
return factory(guide);
|
|
274
|
-
}
|
|
275
|
-
const Rect = () => {
|
|
276
|
-
return (options) => {
|
|
277
|
-
const newOptions = container_1.Container.of(options)
|
|
278
|
-
.call(exports.toGrid)
|
|
279
|
-
.call(exports.inferColor)
|
|
280
|
-
.call(exports.setAnimation)
|
|
281
|
-
.call(setScale)
|
|
282
|
-
.call(exports.setStyle)
|
|
283
|
-
.call(exports.setData)
|
|
284
|
-
.call(exports.setChildren)
|
|
285
|
-
.value();
|
|
286
|
-
return [newOptions];
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
exports.Rect = Rect;
|
|
290
|
-
exports.Rect.props = {};
|
|
291
|
-
//# sourceMappingURL=rect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rect.js","sourceRoot":"src/","sources":["composition/rect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAqC;AACrC,uCAAsC;AAQtC,4CAA2C;AAC3C,kDAA+C;AAC/C,0CAAyC;AACzC,mCAAgE;AAIhE,MAAM,QAAQ,GAAG,IAAA,yBAAiB,EAAa,CAAC,OAAO,EAAE,EAAE;IACzD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAC3D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;IACxB,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,OAAe,EAAE,EAAE;;QACrD,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,CAAC;QAClD,MAAM,MAA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AI,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
package/lib/data/connector.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DataComponent as DC } 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: DC<ConnectorOptions>;
|