@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaletteComponent } from '../runtime';
|
|
2
|
+
import { SequentialRedPalette } from '../spec/palette';
|
|
3
|
+
export declare type SequentialRedOptions = Omit<SequentialRedPalette, 'type'>;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Red theme.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SequentialRed: PaletteComponent<SequentialRedOptions>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SequentialRed = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Red theme.
|
|
6
|
+
*/
|
|
7
|
+
const SequentialRed = () => {
|
|
8
|
+
return [
|
|
9
|
+
'#FFBB95',
|
|
10
|
+
'#FF9E7B',
|
|
11
|
+
'#FF8362',
|
|
12
|
+
'#E8684A',
|
|
13
|
+
'#C84D32',
|
|
14
|
+
'#AA311C',
|
|
15
|
+
'#8C1104',
|
|
16
|
+
'#6F0000',
|
|
17
|
+
'#510000',
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
exports.SequentialRed = SequentialRed;
|
|
21
|
+
exports.SequentialRed.props = {};
|
|
22
|
+
//# sourceMappingURL=sequentialRed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequentialRed.js","sourceRoot":"src/","sources":["palette/sequentialRed.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACI,MAAM,aAAa,GAA2C,GAAG,EAAE;IACxE,OAAO;QACL,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,aAAa,iBAYxB;AAEF,qBAAa,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaletteComponent } from '../runtime';
|
|
2
|
+
import { SequentialYellowPalette } from '../spec/palette';
|
|
3
|
+
export declare type SequentialYellowOptions = Omit<SequentialYellowPalette, 'type'>;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Yellow theme.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SequentialYellow: PaletteComponent<SequentialYellowOptions>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SequentialYellow = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Yellow theme.
|
|
6
|
+
*/
|
|
7
|
+
const SequentialYellow = () => {
|
|
8
|
+
return [
|
|
9
|
+
'#FFD83B',
|
|
10
|
+
'#F6BD16',
|
|
11
|
+
'#D7A100',
|
|
12
|
+
'#B98700',
|
|
13
|
+
'#9C6E00',
|
|
14
|
+
'#7F5600',
|
|
15
|
+
'#633F00',
|
|
16
|
+
'#482900',
|
|
17
|
+
'#2F1400',
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
exports.SequentialYellow = SequentialYellow;
|
|
21
|
+
exports.SequentialYellow.props = {};
|
|
22
|
+
//# sourceMappingURL=sequentialYellow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequentialYellow.js","sourceRoot":"src/","sources":["palette/sequentialYellow.ts"],"names":[],"mappings":";;;AAKA;;GAEG;AACI,MAAM,gBAAgB,GAEzB,GAAG,EAAE;IACP,OAAO;QACL,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AAEF,wBAAgB,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaletteComponent } from '../runtime';
|
|
2
|
+
import { SequentialYellowGreenPalette } from '../spec/palette';
|
|
3
|
+
export declare type SequentialYellowGreenOptions = Omit<SequentialYellowGreenPalette, 'type'>;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Yellow-Green theme.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SequentialYellowGreen: PaletteComponent<SequentialYellowGreenOptions>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SequentialYellowGreen = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with Yellow-Green theme.
|
|
6
|
+
*/
|
|
7
|
+
const SequentialYellowGreen = () => {
|
|
8
|
+
return [
|
|
9
|
+
'#FFEBB0',
|
|
10
|
+
'#FFDF80',
|
|
11
|
+
'#FACA3E',
|
|
12
|
+
'#E6B80B',
|
|
13
|
+
'#B5AC23',
|
|
14
|
+
'#6A9A48',
|
|
15
|
+
'#20876B',
|
|
16
|
+
'#06746B',
|
|
17
|
+
'#044E48',
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
exports.SequentialYellowGreen = SequentialYellowGreen;
|
|
21
|
+
exports.SequentialYellowGreen.props = {};
|
|
22
|
+
//# sourceMappingURL=sequentialYellowGreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequentialYellowGreen.js","sourceRoot":"src/","sources":["palette/sequentialYellowGreen.ts"],"names":[],"mappings":";;;AAQA;;GAEG;AACI,MAAM,qBAAqB,GAE9B,GAAG,EAAE;IACP,OAAO;QACL,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC;AAEF,6BAAqB,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaletteComponent } from '../runtime';
|
|
2
|
+
import { SequentialYellowOrangePalette } from '../spec/palette';
|
|
3
|
+
export declare type SequentialYellowOrangeOptions = Omit<SequentialYellowOrangePalette, 'type'>;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with yellow-orange theme.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SequentialYellowOrange: PaletteComponent<SequentialYellowOrangeOptions>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SequentialYellowOrange = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Palette of AntV for sequential data with yellow-orange theme.
|
|
6
|
+
*/
|
|
7
|
+
const SequentialYellowOrange = () => {
|
|
8
|
+
return [
|
|
9
|
+
'#FDEDBE',
|
|
10
|
+
'#FFDF80',
|
|
11
|
+
'#FFCB33',
|
|
12
|
+
'#FFB200',
|
|
13
|
+
'#FF8C00',
|
|
14
|
+
'#FF6500',
|
|
15
|
+
'#E6450F',
|
|
16
|
+
'#B22C00',
|
|
17
|
+
'#661900',
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
exports.SequentialYellowOrange = SequentialYellowOrange;
|
|
21
|
+
exports.SequentialYellowOrange.props = {};
|
|
22
|
+
//# sourceMappingURL=sequentialYellowOrange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequentialYellowOrange.js","sourceRoot":"src/","sources":["palette/sequentialYellowOrange.ts"],"names":[],"mappings":";;;AAQA;;GAEG;AACI,MAAM,sBAAsB,GAE/B,GAAG,EAAE;IACP,OAAO;QACL,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC;AAEF,8BAAsB,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { Coordinate } from '@antv/coord';
|
|
|
2
2
|
import { G2ScaleOptions, G2Library, G2GuideComponentOptions, G2View } from './types/options';
|
|
3
3
|
import { G2Theme } from './types/common';
|
|
4
4
|
export declare function inferComponent(scales: G2ScaleOptions[], partialOptions: G2View, library: G2Library): G2GuideComponentOptions[];
|
|
5
|
-
export declare function renderComponent(component: G2GuideComponentOptions, coordinate: Coordinate, theme: G2Theme, library: G2Library): import("@antv/g").DisplayObject<any, any>;
|
|
5
|
+
export declare function renderComponent(component: G2GuideComponentOptions, coordinate: Coordinate, theme: G2Theme, library: G2Library): import("@antv/g-lite").DisplayObject<any, any>;
|
package/lib/runtime/component.js
CHANGED
|
@@ -17,7 +17,7 @@ const coordinate_1 = require("./coordinate");
|
|
|
17
17
|
const library_1 = require("./library");
|
|
18
18
|
const scale_1 = require("./scale");
|
|
19
19
|
function inferComponent(scales, partialOptions, library) {
|
|
20
|
-
const { component: partialComponents = [], coordinate = [],
|
|
20
|
+
const { component: partialComponents = [], coordinate = [], title, theme, } = partialOptions;
|
|
21
21
|
const [, createGuideComponent] = (0, library_1.useLibrary)('component', library);
|
|
22
22
|
// For view with adjust, the position channel is meaningless for visualization,
|
|
23
23
|
// so there is no need to show axis.
|
|
@@ -41,9 +41,20 @@ function inferComponent(scales, partialOptions, library) {
|
|
|
41
41
|
if (type !== null) {
|
|
42
42
|
const { props } = createGuideComponent(type);
|
|
43
43
|
const { defaultPosition, defaultSize, defaultOrder } = props;
|
|
44
|
-
const { guide:
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const { guide: guideOptions, name, field } = scale;
|
|
45
|
+
// A scale may have multiple guides.
|
|
46
|
+
const guides = Array.isArray(guideOptions)
|
|
47
|
+
? guideOptions
|
|
48
|
+
: [guideOptions];
|
|
49
|
+
for (const partialGuide of guides) {
|
|
50
|
+
const position = inferComponentPosition(name, type, defaultPosition, partialGuide, coordinate);
|
|
51
|
+
const { size = defaultSize, order = defaultOrder } = partialGuide;
|
|
52
|
+
components.push(Object.assign(Object.assign({ title: field }, partialGuide), { position,
|
|
53
|
+
order,
|
|
54
|
+
size,
|
|
55
|
+
type,
|
|
56
|
+
scale }));
|
|
57
|
+
}
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
return components;
|
|
@@ -103,6 +114,7 @@ function inferComponentPosition(name, type, defaultPosition, guide, coordinate)
|
|
|
103
114
|
'top',
|
|
104
115
|
'bottom',
|
|
105
116
|
'centerHorizontal',
|
|
117
|
+
'center',
|
|
106
118
|
];
|
|
107
119
|
const ordinalPosition = !positions.includes(guide.position)
|
|
108
120
|
? defaultPosition
|
|
@@ -114,21 +126,38 @@ function inferComponentPosition(name, type, defaultPosition, guide, coordinate)
|
|
|
114
126
|
if (match === null)
|
|
115
127
|
return ordinalPosition;
|
|
116
128
|
const index = +match[1];
|
|
117
|
-
|
|
129
|
+
if ((0, coordinate_1.isTranspose)(coordinate)) {
|
|
130
|
+
return index === 0 ? 'top' : 'centerVertical';
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return index === 0 ? ordinalPosition : 'centerHorizontal';
|
|
134
|
+
}
|
|
118
135
|
}
|
|
119
136
|
else if ((type === 'axisX' && (0, coordinate_1.isPolar)(coordinate) && !(0, coordinate_1.isTranspose)(coordinate)) ||
|
|
120
137
|
(type === 'axisY' && (0, coordinate_1.isPolar)(coordinate) && (0, coordinate_1.isTranspose)(coordinate)) ||
|
|
121
138
|
(type === 'axisY' && (0, coordinate_1.isTheta)(coordinate)) ||
|
|
122
|
-
(type === 'axisY' && (0, coordinate_1.isHelix)(coordinate))
|
|
139
|
+
(type === 'axisY' && (0, coordinate_1.isHelix)(coordinate)) ||
|
|
140
|
+
(type === 'axisY' && (0, coordinate_1.isRadial)(coordinate))) {
|
|
141
|
+
if (guide.position === 'bottom')
|
|
142
|
+
return 'arcInner';
|
|
123
143
|
return 'arc';
|
|
124
144
|
}
|
|
125
145
|
else if ((0, coordinate_1.isPolar)(coordinate) && (type === 'axisX' || type === 'axisY')) {
|
|
126
146
|
return 'arcY';
|
|
127
147
|
}
|
|
148
|
+
else if ((0, coordinate_1.isRadial)(coordinate) && type === 'axisX') {
|
|
149
|
+
return 'arcY';
|
|
150
|
+
}
|
|
128
151
|
else if ((type === 'axisX' && (0, coordinate_1.isReflect)(coordinate)) ||
|
|
129
152
|
(type === 'axisX' && (0, coordinate_1.isReflectY)(coordinate))) {
|
|
130
153
|
return 'top';
|
|
131
154
|
}
|
|
155
|
+
else if (typeof type === 'string' &&
|
|
156
|
+
type.startsWith('legend') &&
|
|
157
|
+
(0, coordinate_1.isPolar)(coordinate)) {
|
|
158
|
+
if (guide.position === 'center')
|
|
159
|
+
return 'arcCenter';
|
|
160
|
+
}
|
|
132
161
|
return ordinalPosition;
|
|
133
162
|
}
|
|
134
163
|
function inferTitleComponentSize(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"src/","sources":["runtime/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qCAAqC;AAgBrC,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"src/","sources":["runtime/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qCAAqC;AAgBrC,6CASsB;AACtB,uCAAuC;AACvC,mCAAqC;AAErC,SAAgB,cAAc,CAC5B,MAAwB,EACxB,cAAsB,EACtB,OAAkB;IAElB,MAAM,EACJ,SAAS,EAAE,iBAAiB,GAAG,EAAE,EACjC,UAAU,GAAG,EAAE,EACf,KAAK,EACL,KAAK,GACN,GAAG,cAAc,CAAC;IACnB,MAAM,CAAC,EAAE,oBAAoB,CAAC,GAAG,IAAA,oBAAU,EAIzC,WAAW,EAAE,OAAO,CAAC,CAAC;IAExB,+EAA+E;IAC/E,oCAAoC;IACpC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QACxD,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QACjC,IAAI,QAAQ,CAAC,cAAc,CAAC,IAAI,IAAA,kBAAU,EAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,CAAC,GAAG,iBAAiB,CAAC,CAAC;IAC1C,IAAI,KAAK,EAAE;QACT,MAAM,EAAE,KAAK,EAAE,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;QAC7D,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OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MAIN_LAYER_CLASS_NAME = "main-layer";
|
|
2
|
+
export declare const LABEL_LAYER_CLASS_NAME = "label-layer";
|
|
3
|
+
export declare const ELEMENT_CLASS_NAME = "element";
|
|
4
|
+
export declare const VIEW_CLASS_NAME = "view";
|
|
5
|
+
export declare const PLOT_CLASS_NAME = "plot";
|
|
6
|
+
export declare const COMPONENT_CLASS_NAME = "component";
|
|
7
|
+
export declare const LABEL_CLASS_NAME = "label";
|
|
8
|
+
export declare const AREA_CLASS_NAME = "area";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AREA_CLASS_NAME = exports.LABEL_CLASS_NAME = exports.COMPONENT_CLASS_NAME = exports.PLOT_CLASS_NAME = exports.VIEW_CLASS_NAME = exports.ELEMENT_CLASS_NAME = exports.LABEL_LAYER_CLASS_NAME = exports.MAIN_LAYER_CLASS_NAME = void 0;
|
|
4
|
+
exports.MAIN_LAYER_CLASS_NAME = 'main-layer';
|
|
5
|
+
exports.LABEL_LAYER_CLASS_NAME = 'label-layer';
|
|
6
|
+
exports.ELEMENT_CLASS_NAME = 'element';
|
|
7
|
+
exports.VIEW_CLASS_NAME = 'view';
|
|
8
|
+
exports.PLOT_CLASS_NAME = 'plot';
|
|
9
|
+
exports.COMPONENT_CLASS_NAME = 'component';
|
|
10
|
+
exports.LABEL_CLASS_NAME = 'label';
|
|
11
|
+
exports.AREA_CLASS_NAME = 'area';
|
|
12
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.js","sourceRoot":"src/","sources":["runtime/constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,YAAY,CAAC;AACrC,QAAA,sBAAsB,GAAG,aAAa,CAAC;AACvC,QAAA,kBAAkB,GAAG,SAAS,CAAC;AAC/B,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,eAAe,GAAG,MAAM,CAAC;AACzB,QAAA,oBAAoB,GAAG,WAAW,CAAC;AACnC,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAC3B,QAAA,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -8,4 +8,5 @@ export declare function isTranspose(coordinate: G2CoordinateOptions[]): boolean;
|
|
|
8
8
|
export declare function isParallel(coordinate: G2CoordinateOptions[]): boolean;
|
|
9
9
|
export declare function isTheta(coordinate: G2CoordinateOptions[]): boolean;
|
|
10
10
|
export declare function isReflect(coordinate: G2CoordinateOptions[]): boolean;
|
|
11
|
+
export declare function isRadial(coordinate: G2CoordinateOptions[]): boolean;
|
|
11
12
|
export declare function isReflectY(coordinate: G2CoordinateOptions[]): boolean;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isReflectY = exports.isReflect = exports.isTheta = exports.isParallel = exports.isTranspose = exports.isHelix = exports.isPolar = exports.createCoordinate = void 0;
|
|
3
|
+
exports.isReflectY = exports.isRadial = exports.isReflect = exports.isTheta = exports.isParallel = exports.isTranspose = exports.isHelix = exports.isPolar = exports.createCoordinate = void 0;
|
|
4
4
|
const coord_1 = require("@antv/coord");
|
|
5
5
|
const library_1 = require("./library");
|
|
6
6
|
function createCoordinate(layout, partialOptions, library) {
|
|
7
7
|
const [useCoordinate] = (0, library_1.useLibrary)('coordinate', library);
|
|
8
|
-
const { innerHeight, innerWidth } = layout;
|
|
8
|
+
const { innerHeight, innerWidth, insetLeft, insetTop, insetRight, insetBottom, marginLeft, marginTop, } = layout;
|
|
9
9
|
const { coordinate: partialTransform = [] } = partialOptions;
|
|
10
10
|
const transform = inferCoordinate(partialTransform);
|
|
11
|
-
const coordinate = new coord_1.Coordinate({
|
|
12
|
-
x: 0,
|
|
13
|
-
y: 0,
|
|
14
|
-
width: innerWidth,
|
|
15
|
-
height: innerHeight,
|
|
16
|
-
transformations: transform.map(useCoordinate).flat(),
|
|
17
|
-
});
|
|
11
|
+
const coordinate = new coord_1.Coordinate(Object.assign(Object.assign({}, layout), { x: insetLeft + marginLeft, y: insetTop + marginTop, width: innerWidth - insetLeft - insetRight, height: innerHeight - insetBottom - insetTop, transformations: transform.map(useCoordinate).flat() }));
|
|
18
12
|
return coordinate;
|
|
19
13
|
}
|
|
20
14
|
exports.createCoordinate = createCoordinate;
|
|
@@ -48,6 +42,11 @@ function isReflect(coordinate) {
|
|
|
48
42
|
return reflect !== undefined;
|
|
49
43
|
}
|
|
50
44
|
exports.isReflect = isReflect;
|
|
45
|
+
function isRadial(coordinate) {
|
|
46
|
+
const reflect = coordinate.find((d) => d.type === 'radial');
|
|
47
|
+
return reflect !== undefined;
|
|
48
|
+
}
|
|
49
|
+
exports.isRadial = isRadial;
|
|
51
50
|
function isReflectY(coordinate) {
|
|
52
51
|
const reflect = coordinate.find((d) => d.type === 'reflectY');
|
|
53
52
|
return reflect !== undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinate.js","sourceRoot":"src/","sources":["runtime/coordinate.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAGzC,uCAAuC;AAGvC,SAAgB,gBAAgB,CAC9B,MAAc,EACd,cAAsB,EACtB,OAAkB;IAElB,MAAM,CAAC,aAAa,CAAC,GAAG,IAAA,oBAAU,EAIhC,YAAY,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinate.js","sourceRoot":"src/","sources":["runtime/coordinate.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAGzC,uCAAuC;AAGvC,SAAgB,gBAAgB,CAC9B,MAAc,EACd,cAAsB,EACtB,OAAkB;IAElB,MAAM,CAAC,aAAa,CAAC,GAAG,IAAA,oBAAU,EAIhC,YAAY,EAAE,OAA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AAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;QAAE,OAAO,UAAU,CAAC;IACtE,OAAO,CAAC,GAAG,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AAChD,CAAC"}
|
package/lib/runtime/index.d.ts
CHANGED
package/lib/runtime/index.js
CHANGED
|
@@ -14,9 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.render = void 0;
|
|
17
|
+
exports.destroy = exports.renderToMountedElement = exports.render = void 0;
|
|
18
|
+
__exportStar(require("./constant"), exports);
|
|
18
19
|
var render_1 = require("./render");
|
|
19
20
|
Object.defineProperty(exports, "render", { enumerable: true, get: function () { return render_1.render; } });
|
|
21
|
+
Object.defineProperty(exports, "renderToMountedElement", { enumerable: true, get: function () { return render_1.renderToMountedElement; } });
|
|
22
|
+
Object.defineProperty(exports, "destroy", { enumerable: true, get: function () { return render_1.destroy; } });
|
|
20
23
|
__exportStar(require("./types/common"), exports);
|
|
21
24
|
__exportStar(require("./types/component"), exports);
|
|
22
25
|
__exportStar(require("./types/options"), exports);
|
package/lib/runtime/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,mCAAmE;AAA1D,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AAAE,iGAAA,OAAO,OAAA;AAChD,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,oDAAkC;AAClC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B"}
|
package/lib/runtime/layout.js
CHANGED
|
@@ -6,9 +6,17 @@ const helper_1 = require("../utils/helper");
|
|
|
6
6
|
function computeLayout(components, options) {
|
|
7
7
|
const padding = computePadding(components, options);
|
|
8
8
|
const { paddingLeft, paddingRight, paddingTop, paddingBottom } = padding;
|
|
9
|
-
const { width, height, x = 0, y = 0 } = options;
|
|
9
|
+
const { width, height, x = 0, y = 0, inset = 0, insetLeft = inset, insetTop = inset, insetBottom = inset, insetRight = inset, margin = 0, marginLeft = margin, marginBottom = margin, marginTop = margin, marginRight = margin, } = options;
|
|
10
10
|
return Object.assign(Object.assign({}, padding), { width,
|
|
11
|
-
height,
|
|
11
|
+
height,
|
|
12
|
+
insetLeft,
|
|
13
|
+
insetTop,
|
|
14
|
+
insetBottom,
|
|
15
|
+
insetRight, innerWidth: width - paddingLeft - paddingRight - marginLeft - marginRight, innerHeight: height - paddingTop - paddingBottom - marginTop - marginBottom, marginLeft,
|
|
16
|
+
marginBottom,
|
|
17
|
+
marginTop,
|
|
18
|
+
marginRight,
|
|
19
|
+
x,
|
|
12
20
|
y });
|
|
13
21
|
}
|
|
14
22
|
exports.computeLayout = computeLayout;
|
|
@@ -23,8 +31,8 @@ function computePadding(components, options) {
|
|
|
23
31
|
'bottom',
|
|
24
32
|
];
|
|
25
33
|
const positionComponents = (0, d3_array_1.group)(components, (d) => d.position);
|
|
26
|
-
const { paddingLeft, paddingRight, paddingBottom, paddingTop } = options;
|
|
27
|
-
const
|
|
34
|
+
const { padding, paddingLeft = padding, paddingRight = padding, paddingBottom = padding, paddingTop = padding, } = options;
|
|
35
|
+
const layout = {
|
|
28
36
|
paddingBottom,
|
|
29
37
|
paddingLeft,
|
|
30
38
|
paddingTop,
|
|
@@ -32,55 +40,74 @@ function computePadding(components, options) {
|
|
|
32
40
|
};
|
|
33
41
|
for (const position of positions) {
|
|
34
42
|
const key = `padding${(0, helper_1.capitalizeFirst)(position)}`;
|
|
35
|
-
if (
|
|
43
|
+
if (layout[key] === undefined) {
|
|
36
44
|
if (!positionComponents.has(position)) {
|
|
37
|
-
|
|
45
|
+
layout[key] = 30;
|
|
38
46
|
}
|
|
39
47
|
else {
|
|
40
48
|
const components = positionComponents.get(position);
|
|
41
49
|
const totalSize = components.reduce((sum, { size }) => sum + size, 0);
|
|
42
|
-
|
|
50
|
+
layout[key] = totalSize;
|
|
43
51
|
}
|
|
44
52
|
}
|
|
45
53
|
}
|
|
46
|
-
return
|
|
54
|
+
return layout;
|
|
47
55
|
}
|
|
48
56
|
function placeComponents(components, coordinate, layout) {
|
|
49
57
|
const positionComponents = (0, d3_array_1.group)(components, (d) => d.position);
|
|
50
|
-
const { paddingLeft
|
|
58
|
+
const { paddingLeft, paddingRight, paddingTop, paddingBottom, marginLeft, marginTop, marginBottom, marginRight, innerHeight, innerWidth, height, width, } = layout;
|
|
59
|
+
const pl = paddingLeft + marginLeft;
|
|
60
|
+
const pt = paddingTop + marginTop;
|
|
61
|
+
const pr = paddingRight + marginRight;
|
|
62
|
+
const pb = paddingBottom + marginBottom;
|
|
51
63
|
const section = {
|
|
52
64
|
top: [pl, 0, innerWidth, pt, 0, true, d3_array_1.ascending],
|
|
53
65
|
right: [width - pr, pt, pr, innerHeight, 1, false, d3_array_1.ascending],
|
|
54
66
|
bottom: [pl, height - pb, innerWidth, pb, 0, false, d3_array_1.ascending],
|
|
55
67
|
left: [0, pt, pl, innerHeight, 1, true, d3_array_1.ascending],
|
|
56
68
|
centerHorizontal: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
centerVertical: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
70
|
+
arc: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
71
|
+
arcY: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
72
|
+
arcInner: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
73
|
+
center: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
74
|
+
arcCenter: [pl, pt, innerWidth, innerHeight, -1, null, null],
|
|
59
75
|
};
|
|
60
76
|
for (const [key, components] of positionComponents.entries()) {
|
|
61
77
|
const area = section[key];
|
|
62
78
|
if (key === 'centerHorizontal') {
|
|
63
|
-
placeCenterHorizontal(components,
|
|
79
|
+
placeCenterHorizontal(components, coordinate, area);
|
|
64
80
|
}
|
|
65
|
-
else if (key === '
|
|
81
|
+
else if (key === 'centerVertical') {
|
|
82
|
+
placeCenterVertical(components, coordinate, area);
|
|
83
|
+
}
|
|
84
|
+
else if (key === 'arc') {
|
|
66
85
|
placeArc(components, coordinate, area);
|
|
67
86
|
}
|
|
87
|
+
else if (key === 'arcY') {
|
|
88
|
+
placeArcY(components, coordinate, area);
|
|
89
|
+
}
|
|
90
|
+
else if (key === 'arcInner') {
|
|
91
|
+
placeArcInner(components, coordinate, area);
|
|
92
|
+
}
|
|
93
|
+
else if (key === 'arcCenter') {
|
|
94
|
+
placeArcCenter(components, coordinate, area);
|
|
95
|
+
}
|
|
68
96
|
else {
|
|
69
97
|
placePaddingArea(components, coordinate, area);
|
|
70
98
|
}
|
|
71
99
|
}
|
|
72
100
|
}
|
|
73
101
|
exports.placeComponents = placeComponents;
|
|
74
|
-
function placeCenterHorizontal(components,
|
|
75
|
-
const [, y, , height] = area;
|
|
76
|
-
const { paddingLeft } = layout;
|
|
102
|
+
function placeCenterHorizontal(components, coordinate, area) {
|
|
103
|
+
const [x, y, , height] = area;
|
|
77
104
|
// Create a high dimension vector and map to a list of two-dimension points.
|
|
78
105
|
// [0, 0, 0] -> [x0, 0, x1, 0, x2, 0]
|
|
79
106
|
const vector = new Array(components.length + 1).fill(0);
|
|
80
107
|
const points = coordinate.map(vector);
|
|
81
108
|
// Extract x of each points.
|
|
82
109
|
// [x0, 0, x1, 0, x2, 0] -> [x0, x1, x2]
|
|
83
|
-
const X = points.filter((_, i) => i % 2 === 0).map((d) => d +
|
|
110
|
+
const X = points.filter((_, i) => i % 2 === 0).map((d) => d + x);
|
|
84
111
|
// Place each axis by coordinate in parallel coordinate.
|
|
85
112
|
for (let i = 0; i < components.length; i++) {
|
|
86
113
|
const component = components[i];
|
|
@@ -89,6 +116,23 @@ function placeCenterHorizontal(components, layout, coordinate, area) {
|
|
|
89
116
|
component.bbox = { x, y, width, height };
|
|
90
117
|
}
|
|
91
118
|
}
|
|
119
|
+
function placeCenterVertical(components, coordinate, area) {
|
|
120
|
+
const [x, y, width] = area;
|
|
121
|
+
// Create a high dimension vector and map to a list of two-dimension points.
|
|
122
|
+
// [0, 0, 0] -> [height, y0, height, y1, height, y2]
|
|
123
|
+
const vector = new Array(components.length + 1).fill(0);
|
|
124
|
+
const points = coordinate.map(vector);
|
|
125
|
+
// Extract y of each points.
|
|
126
|
+
// [x0, 0, x1, 0, x2, 0] -> [x0, x1, x2]
|
|
127
|
+
const Y = points.filter((_, i) => i % 2 === 1).map((d) => d + y);
|
|
128
|
+
// Place each axis by coordinate in parallel coordinate.
|
|
129
|
+
for (let i = 0; i < components.length; i++) {
|
|
130
|
+
const component = components[i];
|
|
131
|
+
const y = Y[i];
|
|
132
|
+
const height = Y[i + 1] - y;
|
|
133
|
+
component.bbox = { x, y, width, height };
|
|
134
|
+
}
|
|
135
|
+
}
|
|
92
136
|
function placePaddingArea(components, coordinate, area) {
|
|
93
137
|
const [x, y, width, height, direction, reverse, comparator] = area;
|
|
94
138
|
const [mainStartKey, mainStartValue, crossStartKey, crossStartValue, mainSizeKey, mainSizeValue, crossSizeKey, crossSizeValue,] = direction === 0
|
|
@@ -117,4 +161,50 @@ function placeArc(components, coordinate, area) {
|
|
|
117
161
|
component.bbox = { x, y, width, height };
|
|
118
162
|
}
|
|
119
163
|
}
|
|
164
|
+
function placeArcY(components, coordinate, area) {
|
|
165
|
+
const [x, y, , height] = area;
|
|
166
|
+
const [cx, cy] = coordinate.getCenter();
|
|
167
|
+
const [innerRadius, outerRadius] = radiusOf(coordinate);
|
|
168
|
+
const r = height / 2;
|
|
169
|
+
const y0 = cy - outerRadius * r;
|
|
170
|
+
const h = (outerRadius - innerRadius) * r;
|
|
171
|
+
for (let i = 0; i < components.length; i++) {
|
|
172
|
+
const component = components[i];
|
|
173
|
+
component.bbox = { x: cx + x, y: y0 + y, width: 0, height: h };
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function placeArcCenter(components, coordinate, area) {
|
|
177
|
+
const [x, y, width, height] = area;
|
|
178
|
+
const [innerRadius] = radiusOf(coordinate);
|
|
179
|
+
const r = ((height / 2) * innerRadius) / Math.sqrt(2);
|
|
180
|
+
const cx = x + width / 2;
|
|
181
|
+
const cy = y + height / 2;
|
|
182
|
+
for (let i = 0; i < components.length; i++) {
|
|
183
|
+
const component = components[i];
|
|
184
|
+
component.bbox = { x: cx - r, y: cy - r, width: r * 2, height: r * 2 };
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function placeArcInner(components, coordinate, area) {
|
|
188
|
+
const [x, y, , height] = area;
|
|
189
|
+
const [cx, cy] = coordinate.getCenter();
|
|
190
|
+
const [innerRadius] = radiusOf(coordinate);
|
|
191
|
+
const r = height / 2;
|
|
192
|
+
const size = innerRadius * r;
|
|
193
|
+
const x0 = cx - size;
|
|
194
|
+
const y0 = cy - size;
|
|
195
|
+
for (let i = 0; i < components.length; i++) {
|
|
196
|
+
const component = components[i];
|
|
197
|
+
component.bbox = {
|
|
198
|
+
x: x + x0,
|
|
199
|
+
y: y + y0,
|
|
200
|
+
width: size * 2,
|
|
201
|
+
height: size * 2,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function radiusOf(coordinate) {
|
|
206
|
+
const { transformations } = coordinate.getOptions();
|
|
207
|
+
const [, , , innerRadius, outerRadius] = transformations.find((d) => d[0] === 'polar');
|
|
208
|
+
return [innerRadius, outerRadius];
|
|
209
|
+
}
|
|
120
210
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"src/","sources":["runtime/layout.ts"],"names":[],"mappings":";;;AACA,uCAA4C;AAC5C,4CAAkD;AASlD,SAAgB,aAAa,CAC3B,UAAqC,EACrC,OAAe;IAEf,MAAM,OAAO,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACpD,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IACzE,MAAM,
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"src/","sources":["runtime/layout.ts"],"names":[],"mappings":";;;AACA,uCAA4C;AAC5C,4CAAkD;AASlD,SAAgB,aAAa,CAC3B,UAAqC,EACrC,OAAe;IAEf,MAAM,OAAO,GAAG,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACpD,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IACzE,MAAM,EACJ,KAAK,EACL,MAAM,EACN,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,EACL,KAAK,GAAG,CAAC,EACT,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,WAAW,GAAG,KAAK,EACnB,UAAU,GAAG,KAAK,EAClB,MAAM,GAAG,CAAC,EACV,UAAU,GAAG,MAAM,EACnB,YAAY,GAAG,MAAM,EACrB,SAAS,GAAG,MAAM,EAClB,WAAW,GAAG,MAAM,GACrB,GAAG,OAAO,CAAC;IACZ,uCACK,OAAO,KACV,KAAK;QACL,MAAM;QACN,SAAS;QACT,QAAQ;QACR,WAAW;QACX,UAAU,EACV,UAAU,EAAE,KAAK,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,EACzE,WAAW,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,EAC3E,UAAU;QACV,YAAY;QACZ,SAAS;QACT,WAAW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