@antv/g2 5.0.0-alpha.2 → 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 +2 -5
- package/dist/g2.min.js +2 -5
- package/esm/animation/index.d.ts +4 -0
- 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/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 +9 -0
- package/esm/api/chart.js +54 -7
- 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 +17 -17
- package/esm/api/mark/index.js +9 -9
- package/esm/api/mark/index.js.map +1 -1
- package/esm/api/mark/mark.d.ts +23 -23
- package/esm/api/mark/mark.js +46 -44
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +2 -0
- package/esm/api/node.d.ts +7 -0
- package/esm/api/node.js +56 -1
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +1 -1
- package/esm/api/props.js +33 -12
- 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 +167 -99
- package/esm/component/axis.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 +12 -12
- 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 +2 -0
- 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/index.d.ts +2 -0
- package/esm/data/index.js +1 -0
- package/esm/data/index.js.map +1 -1
- package/esm/data/wordCloud.d.ts +6 -1
- package/esm/data/wordCloud.js +102 -7
- package/esm/data/wordCloud.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 -17
- package/esm/interaction/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 +36 -0
- 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.js +35 -11
- 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 +2 -1
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.d.ts +2 -0
- package/esm/runtime/plot.js +259 -120
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.d.ts +11 -0
- package/esm/runtime/render.js +66 -5
- 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 +5 -4
- package/esm/runtime/types/options.d.ts +22 -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 +4 -0
- 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/box/box.js +8 -7
- package/esm/shape/box/box.js.map +1 -1
- 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 +16 -16
- package/esm/shape/index.js +9 -10
- 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 +14 -88
- 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/link/arc.js +5 -3
- package/esm/shape/link/arc.js.map +1 -1
- 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 +2 -2
- package/esm/shape/link/vhv.js +7 -5
- package/esm/shape/link/vhv.js.map +1 -1
- 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/polygon/ribbon.js +6 -5
- package/esm/shape/polygon/ribbon.js.map +1 -1
- 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/geometry.d.ts +39 -11
- 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 +46 -6
- package/esm/stdlib/index.js +157 -93
- 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/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 -80
- 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 +26 -2
- package/esm/transform/index.js +13 -1
- 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 +13 -10
- 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 +1 -2
- package/esm/transform/sortX.js +3 -54
- package/esm/transform/sortX.js.map +1 -1
- 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/utils/coordinate.d.ts +2 -0
- package/esm/utils/coordinate.js +9 -1
- 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 +4 -0
- 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/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 +9 -0
- package/lib/api/chart.js +55 -7
- 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 +17 -17
- package/lib/api/mark/index.js +8 -8
- package/lib/api/mark/index.js.map +1 -1
- package/lib/api/mark/mark.d.ts +23 -23
- package/lib/api/mark/mark.js +47 -45
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +2 -0
- package/lib/api/node.d.ts +7 -0
- package/lib/api/node.js +56 -1
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +1 -1
- package/lib/api/props.js +32 -11
- 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 +166 -98
- package/lib/component/axis.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 +12 -12
- 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 +2 -0
- 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/index.d.ts +2 -0
- package/lib/data/index.js +3 -1
- package/lib/data/index.js.map +1 -1
- package/lib/data/wordCloud.d.ts +6 -1
- package/lib/data/wordCloud.js +106 -6
- package/lib/data/wordCloud.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 -33
- package/lib/interaction/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 +36 -0
- 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.js +34 -10
- 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 +1 -0
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.d.ts +2 -0
- package/lib/runtime/plot.js +258 -118
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.d.ts +11 -0
- package/lib/runtime/render.js +68 -3
- 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 +5 -4
- package/lib/runtime/types/options.d.ts +22 -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 +4 -0
- 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/box/box.js +7 -6
- package/lib/shape/box/box.js.map +1 -1
- 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 +16 -16
- package/lib/shape/index.js +18 -19
- 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 +35 -86
- 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/link/arc.js +4 -2
- package/lib/shape/link/arc.js.map +1 -1
- 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 +2 -2
- package/lib/shape/link/vhv.js +8 -6
- package/lib/shape/link/vhv.js.map +1 -1
- 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/polygon/ribbon.js +5 -4
- package/lib/shape/polygon/ribbon.js.map +1 -1
- 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/geometry.d.ts +39 -11
- 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 +46 -6
- package/lib/stdlib/index.js +140 -92
- 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/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 -80
- 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 +26 -2
- package/lib/transform/index.js +27 -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 -10
- 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 +1 -2
- package/lib/transform/sortX.js +3 -54
- package/lib/transform/sortX.js.map +1 -1
- 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/utils/coordinate.d.ts +2 -0
- package/lib/utils/coordinate.js +12 -2
- 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 +8 -3
- package/src/.DS_Store +0 -0
- package/src/animation/index.ts +4 -0
- package/src/animation/morphing.ts +3 -25
- 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 +87 -12
- 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 +24 -24
- package/src/api/mark/mark.ts +43 -49
- package/src/api/mark/types.ts +2 -0
- package/src/api/node.ts +63 -2
- package/src/api/props.ts +34 -15
- package/src/api/types.ts +1 -1
- package/src/component/axis.ts +292 -129
- 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 +12 -12
- 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 +2 -0
- package/src/coordinate/radial.ts +22 -0
- package/src/data/.DS_Store +0 -0
- package/src/data/index.ts +2 -0
- package/src/data/wordCloud.ts +112 -117
- 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 +40 -33
- 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/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 +36 -0
- 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 -18
- 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 +2 -0
- package/src/runtime/plot.ts +342 -157
- package/src/runtime/render.ts +105 -5
- 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 +7 -8
- package/src/runtime/types/options.ts +23 -4
- package/src/runtime/types/theme.ts +97 -0
- package/src/scale/index.ts +4 -0
- 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 +13 -7
- 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 +16 -22
- 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 +19 -117
- 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 +10 -3
- package/src/shape/link/link.ts +10 -3
- package/src/shape/link/smooth.ts +48 -0
- package/src/shape/link/vhv.ts +13 -6
- 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 +11 -5
- 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/geometry.ts +66 -33
- 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 +78 -5
- package/src/stdlib/index.ts +212 -118
- 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/group.ts +124 -0
- package/src/transform/groupColor.ts +14 -0
- package/src/transform/groupX.ts +4 -99
- package/src/transform/groupY.ts +14 -0
- package/src/transform/index.ts +26 -2
- 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 -11
- 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 +3 -37
- package/src/transform/sortY.ts +14 -0
- package/src/utils/coordinate.ts +13 -1
- 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 -2
- 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/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 -14
- 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/box.d.ts +0 -34
- package/esm/mark/geometry/box.js +0 -90
- package/esm/mark/geometry/box.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 -35
- package/esm/mark/geometry/image.js.map +0 -1
- package/esm/mark/geometry/index.d.ts +0 -22
- package/esm/mark/geometry/index.js +0 -12
- 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 -58
- 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 -80
- 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/point.d.ts +0 -10
- package/esm/mark/geometry/point.js +0 -75
- 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/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/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 -174
- 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/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/link/smoothEdge.d.ts +0 -6
- package/esm/shape/link/smoothEdge.js +0 -39
- package/esm/shape/link/smoothEdge.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/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 -2
- 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/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 -14
- 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/box.d.ts +0 -34
- package/lib/mark/geometry/box.js +0 -94
- package/lib/mark/geometry/box.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 -39
- package/lib/mark/geometry/image.js.map +0 -1
- package/lib/mark/geometry/index.d.ts +0 -22
- package/lib/mark/geometry/index.js +0 -26
- 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 -62
- 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 -84
- 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/point.d.ts +0 -10
- package/lib/mark/geometry/point.js +0 -79
- 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/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/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 -178
- 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/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/link/smoothEdge.d.ts +0 -6
- package/lib/shape/link/smoothEdge.js +0 -43
- package/lib/shape/link/smoothEdge.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/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 -2
- 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/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 -15
- 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/box.ts +0 -105
- package/src/mark/geometry/grid.ts +0 -56
- package/src/mark/geometry/image.ts +0 -42
- package/src/mark/geometry/index.ts +0 -23
- package/src/mark/geometry/interval.ts +0 -70
- package/src/mark/geometry/line.ts +0 -99
- package/src/mark/geometry/link.ts +0 -44
- package/src/mark/geometry/point.ts +0 -83
- package/src/mark/geometry/polygon.ts +0 -54
- package/src/mark/geometry/text.ts +0 -43
- package/src/mark/geometry/vector.ts +0 -56
- 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 -236
- package/src/shape/area/curveArea.ts +0 -61
- package/src/shape/area/smoothArea.ts +0 -25
- 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/link/smoothEdge.ts +0 -41
- package/src/shape/point/colorPoint.ts +0 -65
- package/src/shape/point/hollowPoint.ts +0 -15
- package/src/spec/labelLayout.ts +0 -5
- package/src/transform/jitterY.ts +0 -26
package/lib/api/mark/index.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Interval, Point, Area, Line,
|
|
1
|
+
import { Interval, Rect, Point, Area, Line, Cell, Vector, Link, Polygon, Image, Text, Box, LineX, LineY, Range, RangeX, RangeY, Connector } from './mark';
|
|
2
2
|
export interface Mark {
|
|
3
3
|
interval(): Interval;
|
|
4
|
+
rect(): Rect;
|
|
4
5
|
point(): Point;
|
|
5
6
|
area(): Area;
|
|
6
7
|
line(): Line;
|
|
7
|
-
|
|
8
|
+
cell(): Cell;
|
|
8
9
|
vector(): Vector;
|
|
9
10
|
link(): Link;
|
|
10
11
|
polygon(): Polygon;
|
|
11
12
|
image(): Image;
|
|
12
13
|
text(): Text;
|
|
13
14
|
box(): Box;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
annotationConnector(): AnnotationConnector;
|
|
15
|
+
lineX(): LineX;
|
|
16
|
+
lineY(): LineY;
|
|
17
|
+
range(): Range;
|
|
18
|
+
rangeX(): RangeX;
|
|
19
|
+
rangeY(): RangeY;
|
|
20
|
+
connector(): Connector;
|
|
21
21
|
}
|
|
22
22
|
export declare const mark: {
|
|
23
23
|
interval: typeof Interval;
|
|
24
|
+
rect: typeof Rect;
|
|
24
25
|
point: typeof Point;
|
|
25
26
|
area: typeof Area;
|
|
26
27
|
line: typeof Line;
|
|
27
|
-
|
|
28
|
+
cell: typeof Cell;
|
|
28
29
|
vector: typeof Vector;
|
|
29
30
|
link: typeof Link;
|
|
30
31
|
polygon: typeof Polygon;
|
|
31
32
|
image: typeof Image;
|
|
32
33
|
text: typeof Text;
|
|
33
34
|
box: typeof Box;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
annotationConnector: typeof AnnotationConnector;
|
|
35
|
+
lineX: typeof LineX;
|
|
36
|
+
lineY: typeof LineY;
|
|
37
|
+
range: typeof Range;
|
|
38
|
+
rangeX: typeof RangeX;
|
|
39
|
+
rangeY: typeof RangeY;
|
|
40
|
+
connector: typeof Connector;
|
|
41
41
|
};
|
package/lib/api/mark/index.js
CHANGED
|
@@ -4,22 +4,22 @@ exports.mark = void 0;
|
|
|
4
4
|
const mark_1 = require("./mark");
|
|
5
5
|
exports.mark = {
|
|
6
6
|
interval: mark_1.Interval,
|
|
7
|
+
rect: mark_1.Rect,
|
|
7
8
|
point: mark_1.Point,
|
|
8
9
|
area: mark_1.Area,
|
|
9
10
|
line: mark_1.Line,
|
|
10
|
-
|
|
11
|
+
cell: mark_1.Cell,
|
|
11
12
|
vector: mark_1.Vector,
|
|
12
13
|
link: mark_1.Link,
|
|
13
14
|
polygon: mark_1.Polygon,
|
|
14
15
|
image: mark_1.Image,
|
|
15
16
|
text: mark_1.Text,
|
|
16
17
|
box: mark_1.Box,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
annotationConnector: mark_1.AnnotationConnector,
|
|
18
|
+
lineX: mark_1.LineX,
|
|
19
|
+
lineY: mark_1.LineY,
|
|
20
|
+
range: mark_1.Range,
|
|
21
|
+
rangeX: mark_1.RangeX,
|
|
22
|
+
rangeY: mark_1.RangeY,
|
|
23
|
+
connector: mark_1.Connector,
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/mark/index.ts"],"names":[],"mappings":";;;AAAA,iCAmBgB;AAuBH,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE,eAAQ;IAClB,KAAK,EAAE,YAAK;IACZ,IAAI,EAAE,WAAI;IACV,IAAI,EAAE,WAAI;IACV,IAAI,EAAE,WAAI;IACV,MAAM,EAAE,aAAM;IACd,IAAI,EAAE,WAAI;IACV,OAAO,EAAE,cAAO;IAChB,KAAK,EAAE,YAAK;IACZ,IAAI,EAAE,WAAI;IACV,GAAG,EAAE,UAAG;IACR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["api/mark/index.ts"],"names":[],"mappings":";;;AAAA,iCAmBgB;AAuBH,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE,eAAQ;IAClB,IAAI,EAAE,WAAI;IACV,KAAK,EAAE,YAAK;IACZ,IAAI,EAAE,WAAI;IACV,IAAI,EAAE,WAAI;IACV,IAAI,EAAE,WAAI;IACV,MAAM,EAAE,aAAM;IACd,IAAI,EAAE,WAAI;IACV,OAAO,EAAE,cAAO;IAChB,KAAK,EAAE,YAAK;IACZ,IAAI,EAAE,WAAI;IACV,GAAG,EAAE,UAAG;IACR,KAAK,EAAE,YAAK;IACZ,KAAK,EAAE,YAAK;IACZ,KAAK,EAAE,YAAK;IACZ,MAAM,EAAE,aAAM;IACd,MAAM,EAAE,aAAM;IACd,SAAS,EAAE,gBAAS;CACrB,CAAC"}
|
package/lib/api/mark/mark.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntervalGeometry, AreaGeometry, PointGeometry,
|
|
1
|
+
import { IntervalGeometry, AreaGeometry, PointGeometry, CellGeometry, VectorGeometry, LinkGeometry, PolygonGeometry, ImageGeometry, TextGeometry, BoxGeometry, LineGeometry, LineXMark, LineYMark, RangeMark, RangeXMark, RangeYMark, ConnectorMark } from '../../spec';
|
|
2
2
|
import { NodePropertyDescriptor } from '../props';
|
|
3
3
|
import { Node } from '../node';
|
|
4
4
|
import { Concrete } from '../types';
|
|
@@ -6,6 +6,9 @@ import { API } from './types';
|
|
|
6
6
|
export interface Interval extends API<Concrete<IntervalGeometry>, Interval> {
|
|
7
7
|
type: 'interval';
|
|
8
8
|
}
|
|
9
|
+
export interface Rect extends API<Concrete<IntervalGeometry>, Rect> {
|
|
10
|
+
type: 'rect';
|
|
11
|
+
}
|
|
9
12
|
export interface Point extends API<Concrete<PointGeometry>, Point> {
|
|
10
13
|
type: 'point';
|
|
11
14
|
}
|
|
@@ -15,11 +18,11 @@ export interface Area extends API<Concrete<AreaGeometry>, Area> {
|
|
|
15
18
|
export interface Line extends API<Concrete<LinkGeometry>, Line> {
|
|
16
19
|
type: 'line';
|
|
17
20
|
}
|
|
18
|
-
export interface
|
|
19
|
-
type: '
|
|
21
|
+
export interface Cell extends API<Concrete<CellGeometry>, Cell> {
|
|
22
|
+
type: 'cell';
|
|
20
23
|
}
|
|
21
24
|
export interface Vector extends API<Concrete<VectorGeometry>, Vector> {
|
|
22
|
-
type: '
|
|
25
|
+
type: 'cell';
|
|
23
26
|
}
|
|
24
27
|
export interface Link extends API<Concrete<LinkGeometry>, Link> {
|
|
25
28
|
type: 'link';
|
|
@@ -36,31 +39,31 @@ export interface Text extends API<Concrete<TextGeometry>, Text> {
|
|
|
36
39
|
export interface Box extends API<Concrete<BoxGeometry>, Box> {
|
|
37
40
|
type: 'box';
|
|
38
41
|
}
|
|
39
|
-
export interface
|
|
40
|
-
type: 'annotation.text';
|
|
41
|
-
}
|
|
42
|
-
export interface AnnotationLineX extends API<Concrete<AnnotationLineXSpec>, AnnotationLineX> {
|
|
42
|
+
export interface LineX extends API<Concrete<LineXMark>, LineX> {
|
|
43
43
|
type: 'annotation.lineX';
|
|
44
44
|
}
|
|
45
|
-
export interface
|
|
45
|
+
export interface LineY extends API<Concrete<LineYMark>, LineY> {
|
|
46
46
|
type: 'annotation.lineY';
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
48
|
+
export interface Range extends API<Concrete<RangeMark>, Range> {
|
|
49
49
|
type: 'annotation.range';
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface RangeX extends API<Concrete<RangeXMark>, RangeX> {
|
|
52
52
|
type: 'annotation.rangeX';
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface RangeY extends API<Concrete<RangeYMark>, RangeY> {
|
|
55
55
|
type: 'annotation.rangeY';
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface Connector extends API<Concrete<ConnectorMark>, Connector> {
|
|
58
58
|
type: 'connector';
|
|
59
59
|
}
|
|
60
60
|
export declare const props: NodePropertyDescriptor[];
|
|
61
61
|
export declare class Interval extends Node<IntervalGeometry> {
|
|
62
62
|
constructor();
|
|
63
63
|
}
|
|
64
|
+
export declare class Rect extends Node<IntervalGeometry> {
|
|
65
|
+
constructor();
|
|
66
|
+
}
|
|
64
67
|
export declare class Point extends Node<PointGeometry> {
|
|
65
68
|
constructor();
|
|
66
69
|
}
|
|
@@ -70,7 +73,7 @@ export declare class Area extends Node<AreaGeometry> {
|
|
|
70
73
|
export declare class Line extends Node<LineGeometry> {
|
|
71
74
|
constructor();
|
|
72
75
|
}
|
|
73
|
-
export declare class
|
|
76
|
+
export declare class Cell extends Node<CellGeometry> {
|
|
74
77
|
constructor();
|
|
75
78
|
}
|
|
76
79
|
export declare class Vector extends Node<VectorGeometry> {
|
|
@@ -91,24 +94,21 @@ export declare class Text extends Node<TextGeometry> {
|
|
|
91
94
|
export declare class Box extends Node<BoxGeometry> {
|
|
92
95
|
constructor();
|
|
93
96
|
}
|
|
94
|
-
export declare class
|
|
95
|
-
constructor();
|
|
96
|
-
}
|
|
97
|
-
export declare class AnnotationLineX extends Node<AnnotationLineXSpec> {
|
|
97
|
+
export declare class LineX extends Node<LineXMark> {
|
|
98
98
|
constructor();
|
|
99
99
|
}
|
|
100
|
-
export declare class
|
|
100
|
+
export declare class LineY extends Node<LineYMark> {
|
|
101
101
|
constructor();
|
|
102
102
|
}
|
|
103
|
-
export declare class
|
|
103
|
+
export declare class Range extends Node<RangeMark> {
|
|
104
104
|
constructor();
|
|
105
105
|
}
|
|
106
|
-
export declare class
|
|
106
|
+
export declare class RangeX extends Node<RangeXMark> {
|
|
107
107
|
constructor();
|
|
108
108
|
}
|
|
109
|
-
export declare class
|
|
109
|
+
export declare class RangeY extends Node<RangeYMark> {
|
|
110
110
|
constructor();
|
|
111
111
|
}
|
|
112
|
-
export declare class
|
|
112
|
+
export declare class Connector extends Node<ConnectorMark> {
|
|
113
113
|
constructor();
|
|
114
114
|
}
|
package/lib/api/mark/mark.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.Connector = exports.RangeY = exports.RangeX = exports.Range = exports.LineY = exports.LineX = exports.Box = exports.Text = exports.Image = exports.Polygon = exports.Link = exports.Vector = exports.Cell = exports.Line = exports.Area = exports.Point = exports.Rect = exports.Interval = exports.props = void 0;
|
|
10
10
|
const props_1 = require("../props");
|
|
11
11
|
const node_1 = require("../node");
|
|
12
12
|
exports.props = [
|
|
@@ -28,6 +28,8 @@ exports.props = [
|
|
|
28
28
|
{ name: 'paddingBottom', type: 'value' },
|
|
29
29
|
{ name: 'paddingTop', type: 'value' },
|
|
30
30
|
{ name: 'label', type: 'array', key: 'labels' },
|
|
31
|
+
{ name: 'axis', type: 'object' },
|
|
32
|
+
{ name: 'legend', type: 'object' },
|
|
31
33
|
];
|
|
32
34
|
let Interval = class Interval extends node_1.Node {
|
|
33
35
|
constructor() {
|
|
@@ -38,6 +40,15 @@ Interval = __decorate([
|
|
|
38
40
|
(0, props_1.defineProps)(exports.props)
|
|
39
41
|
], Interval);
|
|
40
42
|
exports.Interval = Interval;
|
|
43
|
+
let Rect = class Rect extends node_1.Node {
|
|
44
|
+
constructor() {
|
|
45
|
+
super({}, 'rect');
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
Rect = __decorate([
|
|
49
|
+
(0, props_1.defineProps)(exports.props)
|
|
50
|
+
], Rect);
|
|
51
|
+
exports.Rect = Rect;
|
|
41
52
|
let Point = class Point extends node_1.Node {
|
|
42
53
|
constructor() {
|
|
43
54
|
super({}, 'point');
|
|
@@ -65,15 +76,15 @@ Line = __decorate([
|
|
|
65
76
|
(0, props_1.defineProps)(exports.props)
|
|
66
77
|
], Line);
|
|
67
78
|
exports.Line = Line;
|
|
68
|
-
let
|
|
79
|
+
let Cell = class Cell extends node_1.Node {
|
|
69
80
|
constructor() {
|
|
70
|
-
super({}, '
|
|
81
|
+
super({}, 'cell');
|
|
71
82
|
}
|
|
72
83
|
};
|
|
73
|
-
|
|
84
|
+
Cell = __decorate([
|
|
74
85
|
(0, props_1.defineProps)(exports.props)
|
|
75
|
-
],
|
|
76
|
-
exports.
|
|
86
|
+
], Cell);
|
|
87
|
+
exports.Cell = Cell;
|
|
77
88
|
let Vector = class Vector extends node_1.Node {
|
|
78
89
|
constructor() {
|
|
79
90
|
super({}, 'vector');
|
|
@@ -128,67 +139,58 @@ Box = __decorate([
|
|
|
128
139
|
(0, props_1.defineProps)(exports.props)
|
|
129
140
|
], Box);
|
|
130
141
|
exports.Box = Box;
|
|
131
|
-
let
|
|
132
|
-
constructor() {
|
|
133
|
-
super({}, 'annotation.text');
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
AnnotationText = __decorate([
|
|
137
|
-
(0, props_1.defineProps)(exports.props)
|
|
138
|
-
], AnnotationText);
|
|
139
|
-
exports.AnnotationText = AnnotationText;
|
|
140
|
-
let AnnotationLineX = class AnnotationLineX extends node_1.Node {
|
|
142
|
+
let LineX = class LineX extends node_1.Node {
|
|
141
143
|
constructor() {
|
|
142
|
-
super({}, '
|
|
144
|
+
super({}, 'lineX');
|
|
143
145
|
}
|
|
144
146
|
};
|
|
145
|
-
|
|
147
|
+
LineX = __decorate([
|
|
146
148
|
(0, props_1.defineProps)(exports.props)
|
|
147
|
-
],
|
|
148
|
-
exports.
|
|
149
|
-
let
|
|
149
|
+
], LineX);
|
|
150
|
+
exports.LineX = LineX;
|
|
151
|
+
let LineY = class LineY extends node_1.Node {
|
|
150
152
|
constructor() {
|
|
151
|
-
super({}, '
|
|
153
|
+
super({}, 'lineY');
|
|
152
154
|
}
|
|
153
155
|
};
|
|
154
|
-
|
|
156
|
+
LineY = __decorate([
|
|
155
157
|
(0, props_1.defineProps)(exports.props)
|
|
156
|
-
],
|
|
157
|
-
exports.
|
|
158
|
-
let
|
|
158
|
+
], LineY);
|
|
159
|
+
exports.LineY = LineY;
|
|
160
|
+
let Range = class Range extends node_1.Node {
|
|
159
161
|
constructor() {
|
|
160
|
-
super({}, '
|
|
162
|
+
super({}, 'range');
|
|
161
163
|
}
|
|
162
164
|
};
|
|
163
|
-
|
|
165
|
+
Range = __decorate([
|
|
164
166
|
(0, props_1.defineProps)(exports.props)
|
|
165
|
-
],
|
|
166
|
-
exports.
|
|
167
|
-
let
|
|
167
|
+
], Range);
|
|
168
|
+
exports.Range = Range;
|
|
169
|
+
let RangeX = class RangeX extends node_1.Node {
|
|
168
170
|
constructor() {
|
|
169
|
-
super({}, '
|
|
171
|
+
super({}, 'rangeX');
|
|
170
172
|
}
|
|
171
173
|
};
|
|
172
|
-
|
|
174
|
+
RangeX = __decorate([
|
|
173
175
|
(0, props_1.defineProps)(exports.props)
|
|
174
|
-
],
|
|
175
|
-
exports.
|
|
176
|
-
let
|
|
176
|
+
], RangeX);
|
|
177
|
+
exports.RangeX = RangeX;
|
|
178
|
+
let RangeY = class RangeY extends node_1.Node {
|
|
177
179
|
constructor() {
|
|
178
|
-
super({}, '
|
|
180
|
+
super({}, 'rangeY');
|
|
179
181
|
}
|
|
180
182
|
};
|
|
181
|
-
|
|
183
|
+
RangeY = __decorate([
|
|
182
184
|
(0, props_1.defineProps)(exports.props)
|
|
183
|
-
],
|
|
184
|
-
exports.
|
|
185
|
-
let
|
|
185
|
+
], RangeY);
|
|
186
|
+
exports.RangeY = RangeY;
|
|
187
|
+
let Connector = class Connector extends node_1.Node {
|
|
186
188
|
constructor() {
|
|
187
|
-
super({}, '
|
|
189
|
+
super({}, 'connector');
|
|
188
190
|
}
|
|
189
191
|
};
|
|
190
|
-
|
|
192
|
+
Connector = __decorate([
|
|
191
193
|
(0, props_1.defineProps)(exports.props)
|
|
192
|
-
],
|
|
193
|
-
exports.
|
|
194
|
+
], Connector);
|
|
195
|
+
exports.Connector = Connector;
|
|
194
196
|
//# sourceMappingURL=mark.js.map
|
package/lib/api/mark/mark.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mark.js","sourceRoot":"src/","sources":["api/mark/mark.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"mark.js","sourceRoot":"src/","sources":["api/mark/mark.ts"],"names":[],"mappings":";;;;;;;;;AAmBA,oCAA+D;AAC/D,kCAA+B;AA4ElB,QAAA,KAAK,GAA6B;IAC7C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;IACjC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;IAC/B,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;IAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAChC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;IACpC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;IACjC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;IACnC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAChC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAChC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE;IACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;IACrC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;IACtC,EAAE,IAAI,EAAE,aAAa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lB,IAAA,mBAAW,EAAC,aAAK,CAAC;GACN,MAAM,CAIlB;AAJY,wBAAM;AAOZ,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,WAAgB;IAC1C;QACE,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtB,CAAC;CACF,CAAA;AAJY,MAAM;IADlB,IAAA,mBAAW,EAAC,aAAK,CAAC;GACN,MAAM,CAIlB;AAJY,wBAAM;AAOZ,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAmB;IAChD;QACE,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AAJY,SAAS;IADrB,IAAA,mBAAW,EAAC,aAAK,CAAC;GACN,SAAS,CAIrB;AAJY,8BAAS"}
|
package/lib/api/mark/types.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export declare type API<Props extends Geometry, Mark> = {
|
|
|
11
11
|
class: ValueAttribute<Props['class'], Mark>;
|
|
12
12
|
style: ObjectAttribute<Props['style'], Mark>;
|
|
13
13
|
facet: ValueAttribute<Props['facet'], Mark>;
|
|
14
|
+
axis: ObjectAttribute<Props['axis'], Mark>;
|
|
15
|
+
legend: ObjectAttribute<Props['legend'], Mark>;
|
|
14
16
|
frame: ValueAttribute<Props['frame'], Mark>;
|
|
15
17
|
adjust: ValueAttribute<Props['adjust'], Mark>;
|
|
16
18
|
coordinate: ArrayAttribute<Props['coordinate'], Mark>;
|
package/lib/api/node.d.ts
CHANGED
|
@@ -23,6 +23,13 @@ export declare class Node<Value extends Record<string, any> = Record<string, any
|
|
|
23
23
|
* Create a new node and append to children nodes.
|
|
24
24
|
*/
|
|
25
25
|
append(Ctor: new (value: Record<string, any>) => Node<ChildValue, Value>): Node<ChildValue, Value>;
|
|
26
|
+
/**
|
|
27
|
+
* Remove current node from parentNode.
|
|
28
|
+
*/
|
|
29
|
+
remove(): Node;
|
|
30
|
+
getNodeByKey(key: string): Node;
|
|
31
|
+
getNodesByType(type: string): Node[];
|
|
32
|
+
changeData(data: any): void;
|
|
26
33
|
/**
|
|
27
34
|
* Apply specified callback to the node value.
|
|
28
35
|
*/
|
package/lib/api/node.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Node = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* BFS nodes and execute callback.
|
|
6
|
+
*/
|
|
7
|
+
function bfs(node, callback) {
|
|
8
|
+
const discovered = [node];
|
|
9
|
+
while (discovered.length) {
|
|
10
|
+
const currentNode = discovered.pop();
|
|
11
|
+
callback && callback(currentNode);
|
|
12
|
+
const children = currentNode.children || [];
|
|
13
|
+
for (const child of children) {
|
|
14
|
+
discovered.push(child);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
4
18
|
/**
|
|
5
19
|
* Hierarchy container.
|
|
6
20
|
*/
|
|
@@ -30,7 +44,7 @@ class Node {
|
|
|
30
44
|
* return the the attribute of current value.
|
|
31
45
|
*/
|
|
32
46
|
attr(key, value) {
|
|
33
|
-
if (
|
|
47
|
+
if (arguments.length === 1)
|
|
34
48
|
return this.value[key];
|
|
35
49
|
return this.map((v) => ((v[key] = value), v));
|
|
36
50
|
}
|
|
@@ -45,6 +59,47 @@ class Node {
|
|
|
45
59
|
this.children.push(node);
|
|
46
60
|
return node;
|
|
47
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Remove current node from parentNode.
|
|
64
|
+
*/
|
|
65
|
+
remove() {
|
|
66
|
+
const parent = this.parentNode;
|
|
67
|
+
if (parent) {
|
|
68
|
+
const { children } = parent;
|
|
69
|
+
const index = children.findIndex((item) => item === this);
|
|
70
|
+
children.splice(index, 1);
|
|
71
|
+
}
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
getNodeByKey(key) {
|
|
75
|
+
let targetNode = null;
|
|
76
|
+
const callback = (node) => {
|
|
77
|
+
if (key === node.attr('key')) {
|
|
78
|
+
targetNode = node;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
bfs(this, callback);
|
|
82
|
+
return targetNode;
|
|
83
|
+
}
|
|
84
|
+
getNodesByType(type) {
|
|
85
|
+
const nodes = [];
|
|
86
|
+
const callback = (node) => {
|
|
87
|
+
if (type === node.type) {
|
|
88
|
+
nodes.push(node);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
bfs(this, callback);
|
|
92
|
+
return nodes;
|
|
93
|
+
}
|
|
94
|
+
changeData(data) {
|
|
95
|
+
// Find the root chart and render.
|
|
96
|
+
let root = this;
|
|
97
|
+
while (root && root.parentNode) {
|
|
98
|
+
root = root.parentNode;
|
|
99
|
+
}
|
|
100
|
+
this.attr('data', data);
|
|
101
|
+
root.render();
|
|
102
|
+
}
|
|
48
103
|
/**
|
|
49
104
|
* Apply specified callback to the node value.
|
|
50
105
|
*/
|
package/lib/api/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"src/","sources":["api/node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"src/","sources":["api/node.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,SAAS,GAAG,CAAC,IAAU,EAAE,QAAmC;IAC1D,MAAM,UAAU,GAAW,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,UAAU,CAAC,MAAM,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC;QACrC,QAAQ,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;QAClC,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,IAAI,EAAE,CAAC;QAC5C,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;YAC5B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxB;KACF;AACH,CAAC;AAED;;GAEG;AACH,MAAa,IAAI;IAoBf,YAAY,QAA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,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AArHD,oBAqHC"}
|
package/lib/api/props.d.ts
CHANGED
package/lib/api/props.js
CHANGED
|
@@ -4,28 +4,30 @@ exports.containerProps = exports.nodeProps = exports.defineProps = void 0;
|
|
|
4
4
|
const util_1 = require("@antv/util");
|
|
5
5
|
function defineValueProp(Node, { name, key = name }) {
|
|
6
6
|
Node.prototype[name] = function (value) {
|
|
7
|
+
if (arguments.length === 0)
|
|
8
|
+
return this.attr(key);
|
|
7
9
|
return this.attr(key, value);
|
|
8
10
|
};
|
|
9
11
|
}
|
|
10
12
|
function defineArrayProp(Node, { name, key = name }) {
|
|
11
13
|
Node.prototype[name] = function (value) {
|
|
12
|
-
if (
|
|
14
|
+
if (arguments.length === 0)
|
|
15
|
+
return this.attr(key);
|
|
16
|
+
if (Array.isArray(value))
|
|
13
17
|
return this.attr(key, value);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const newArray = [...(Array.isArray(array) ? array : [])];
|
|
17
|
-
newArray.push(value);
|
|
18
|
-
return this.attr(key, newArray);
|
|
18
|
+
const array = [...(this.attr(key) || []), value];
|
|
19
|
+
return this.attr(key, array);
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
function defineObjectProp(Node, { name, key: k = name }) {
|
|
22
23
|
Node.prototype[name] = function (key, value) {
|
|
23
|
-
if (
|
|
24
|
+
if (arguments.length === 0)
|
|
25
|
+
return this.attr(k);
|
|
26
|
+
if (arguments.length === 1)
|
|
24
27
|
return this.attr(k, key);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return this.attr(k, newObject);
|
|
28
|
+
const obj = this.attr(k) || {};
|
|
29
|
+
obj[key] = value;
|
|
30
|
+
return this.attr(k, obj);
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
function defineNodeProp(Node, { name, ctor }) {
|
|
@@ -39,6 +41,23 @@ function defineContainerProp(Node, { name, ctor }) {
|
|
|
39
41
|
return this.append(ctor);
|
|
40
42
|
};
|
|
41
43
|
}
|
|
44
|
+
function defineEventProp(Node, { name, key = name }) {
|
|
45
|
+
Node.prototype[name] = function (eventName, listener) {
|
|
46
|
+
const events = this.attr(key) || {};
|
|
47
|
+
if (arguments.length === 0)
|
|
48
|
+
return events;
|
|
49
|
+
if (arguments.length === 1)
|
|
50
|
+
return events[eventName];
|
|
51
|
+
const listeners = events[eventName];
|
|
52
|
+
if (listeners) {
|
|
53
|
+
(0, util_1.isArray)(listener) ? listeners.concat(listener) : listeners.push(listener);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
events[eventName] = (0, util_1.isArray)(listener) ? listener : [listener];
|
|
57
|
+
}
|
|
58
|
+
return this.attr(key, events);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
42
61
|
/**
|
|
43
62
|
* A decorator to define different type of attribute setter or
|
|
44
63
|
* getter for current node.
|
|
@@ -57,6 +76,8 @@ function defineProps(descriptors) {
|
|
|
57
76
|
defineNodeProp(Node, descriptor);
|
|
58
77
|
else if (type === 'container')
|
|
59
78
|
defineContainerProp(Node, descriptor);
|
|
79
|
+
else if (type === 'event')
|
|
80
|
+
defineEventProp(Node, descriptor);
|
|
60
81
|
}
|
|
61
82
|
return Node;
|
|
62
83
|
};
|
package/lib/api/props.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"src/","sources":["api/props.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"src/","sources":["api/props.ts"],"names":[],"mappings":";;;AAAA,qCAAuE;AAWvE,SAAS,eAAe,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,EAA0B;IACzE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,UAAU,KAAK;QACpC,IAAI,SAAS,CAAC,MAAM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I,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,EAAE,WAAW;QACjB,IAAI;QACJ,IAAI;KACL,CAAC,CAAC,CAAC;AACN,CAAC;AARD,wCAQC"}
|
package/lib/api/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ declare type ValueOf<T> = T[keyof T];
|
|
|
2
2
|
declare type ElementOf<T> = T extends Array<any> ? T[number] : never;
|
|
3
3
|
declare type Chainable<K, V, N> = K extends undefined ? V : N;
|
|
4
4
|
export declare type ValueAttribute<V, N> = <T extends V>(value?: T) => Chainable<T, V, N>;
|
|
5
|
-
export declare type ObjectAttribute<V, N> = <T extends ValueOf<V>>(key
|
|
5
|
+
export declare type ObjectAttribute<V, N> = <T extends ValueOf<V>>(key?: V | keyof V, value?: T) => Chainable<T, V, N>;
|
|
6
6
|
export declare type ArrayAttribute<V, N> = <T extends V | ElementOf<V>>(value?: T) => Chainable<T, V, N>;
|
|
7
7
|
export declare type Concrete<T> = {
|
|
8
8
|
[Key in keyof T]-?: T[Key];
|
package/lib/component/axis.d.ts
CHANGED
|
@@ -2,8 +2,14 @@ import { GuideComponentComponent as GCC, GuideComponentPosition } from '../runti
|
|
|
2
2
|
export declare type AxisOptions = {
|
|
3
3
|
position?: GuideComponentPosition;
|
|
4
4
|
zIndex?: number;
|
|
5
|
-
title?:
|
|
6
|
-
|
|
5
|
+
title?: string | string[];
|
|
6
|
+
direction?: 'left' | 'center' | 'right';
|
|
7
|
+
tickFormatter?: (d: any, index: number, array: any) => string;
|
|
8
|
+
tickFilter?: (datum: any, index: number, array: any) => boolean;
|
|
9
|
+
tickMethod?: (start: number | Date, end: number | Date, tickCount: number) => number[];
|
|
10
|
+
tickCount?: number;
|
|
11
|
+
grid: any;
|
|
12
|
+
[key: string]: any;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* Guide Component for position channel(e.g. x, y).
|