@antv/g2 5.2.11 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/dist/g2.lite.min.js +22 -22
- package/dist/g2.min.js +22 -22
- package/esm/animation/morphing.js +1 -2
- package/esm/animation/morphing.js.map +1 -1
- package/esm/animation/scaleInY.js +2 -20
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/api/runtime.js +2 -0
- package/esm/api/runtime.js.map +1 -1
- package/esm/component/legendCategory.js +5 -1
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/data/utils/arc/arc.d.ts +25 -2
- package/esm/data/utils/arc/arc.js.map +1 -1
- package/esm/data/utils/arc/types.d.ts +27 -2
- package/esm/exports.d.ts +2 -0
- package/esm/exports.js +2 -0
- package/esm/exports.js.map +1 -1
- package/esm/interaction/elementSelect.d.ts +5 -2
- package/esm/interaction/elementSelect.js +80 -21
- package/esm/interaction/elementSelect.js.map +1 -1
- package/esm/interaction/event.d.ts +0 -1
- package/esm/interaction/event.js +1 -12
- package/esm/interaction/event.js.map +1 -1
- package/esm/interaction/legendHighlight.js.map +1 -1
- package/esm/interaction/tooltip.js +63 -42
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/interaction/utils.d.ts +12 -0
- package/esm/interaction/utils.js +48 -1
- package/esm/interaction/utils.js.map +1 -1
- package/esm/runtime/layout.js +1 -1
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/plot.js +9 -4
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +4 -2
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/transform.d.ts +1 -0
- package/esm/runtime/transform.js +2 -1
- package/esm/runtime/transform.js.map +1 -1
- package/esm/shape/point/color.js +2 -1
- package/esm/shape/point/color.js.map +1 -1
- package/esm/spec/interaction.d.ts +3 -0
- package/esm/spec/transform.d.ts +0 -1
- package/esm/transform/bin.js.map +1 -1
- package/esm/transform/diffY.js +2 -5
- package/esm/transform/diffY.js.map +1 -1
- package/esm/transform/sort.js +19 -51
- package/esm/transform/sort.js.map +1 -1
- package/esm/transform/utils/helper.js +1 -0
- package/esm/transform/utils/helper.js.map +1 -1
- package/esm/utils/expr.d.ts +8 -0
- package/esm/utils/expr.js +51 -0
- package/esm/utils/expr.js.map +1 -0
- package/esm/utils/helper.d.ts +25 -0
- package/esm/utils/helper.js +77 -0
- package/esm/utils/helper.js.map +1 -1
- package/lib/animation/morphing.js +1 -2
- package/lib/animation/morphing.js.map +1 -1
- package/lib/animation/scaleInY.js +1 -19
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/api/runtime.js +2 -0
- package/lib/api/runtime.js.map +1 -1
- package/lib/component/legendCategory.js +5 -1
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/data/utils/arc/arc.d.ts +25 -2
- package/lib/data/utils/arc/arc.js.map +1 -1
- package/lib/data/utils/arc/types.d.ts +27 -2
- package/lib/exports.d.ts +2 -0
- package/lib/exports.js +7 -1
- package/lib/exports.js.map +1 -1
- package/lib/interaction/elementSelect.d.ts +5 -2
- package/lib/interaction/elementSelect.js +79 -20
- package/lib/interaction/elementSelect.js.map +1 -1
- package/lib/interaction/event.d.ts +0 -1
- package/lib/interaction/event.js +3 -15
- package/lib/interaction/event.js.map +1 -1
- package/lib/interaction/legendHighlight.js.map +1 -1
- package/lib/interaction/tooltip.js +65 -44
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/interaction/utils.d.ts +12 -0
- package/lib/interaction/utils.js +49 -1
- package/lib/interaction/utils.js.map +1 -1
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/plot.js +9 -4
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +4 -2
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/transform.d.ts +1 -0
- package/lib/runtime/transform.js +3 -2
- package/lib/runtime/transform.js.map +1 -1
- package/lib/shape/point/color.js +2 -1
- package/lib/shape/point/color.js.map +1 -1
- package/lib/spec/interaction.d.ts +3 -0
- package/lib/spec/transform.d.ts +0 -1
- package/lib/transform/bin.js.map +1 -1
- package/lib/transform/diffY.js +1 -4
- package/lib/transform/diffY.js.map +1 -1
- package/lib/transform/sort.js +19 -51
- package/lib/transform/sort.js.map +1 -1
- package/lib/transform/utils/helper.js +1 -0
- package/lib/transform/utils/helper.js.map +1 -1
- package/lib/utils/expr.d.ts +8 -0
- package/lib/utils/expr.js +55 -0
- package/lib/utils/expr.js.map +1 -0
- package/lib/utils/helper.d.ts +25 -0
- package/lib/utils/helper.js +82 -1
- package/lib/utils/helper.js.map +1 -1
- package/package.json +4 -3
- package/src/animation/morphing.ts +1 -2
- package/src/animation/scaleInY.ts +2 -45
- package/src/api/runtime.ts +3 -0
- package/src/component/legendCategory.ts +9 -1
- package/src/data/utils/arc/arc.ts +5 -5
- package/src/data/utils/arc/types.ts +28 -2
- package/src/exports.ts +3 -0
- package/src/interaction/elementSelect.ts +101 -15
- package/src/interaction/event.ts +1 -14
- package/src/interaction/legendHighlight.ts +4 -2
- package/src/interaction/tooltip.ts +89 -44
- package/src/interaction/utils.ts +60 -1
- package/src/runtime/layout.ts +15 -2
- package/src/runtime/plot.ts +8 -3
- package/src/runtime/render.ts +4 -3
- package/src/runtime/transform.ts +4 -1
- package/src/shape/point/color.ts +2 -1
- package/src/spec/interaction.ts +3 -0
- package/src/spec/transform.ts +0 -1
- package/src/transform/bin.ts +2 -2
- package/src/transform/diffY.ts +2 -6
- package/src/transform/sort.ts +20 -42
- package/src/transform/utils/helper.ts +1 -0
- package/src/utils/expr.ts +70 -0
- package/src/utils/helper.ts +84 -0
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<img src="https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg" width="18"> English | [简体中文](./README.zh-CN.md)
|
|
2
2
|
|
|
3
3
|
<h1 align="center">
|
|
4
|
-
<b>G2</b>
|
|
4
|
+
<b>G2: The Concise and Progressive Visualization Grammar</b>
|
|
5
5
|
</h1>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
9
9
|
G2 is a visualization grammar for dashboard building, data exploration and storytelling.
|
|
10
10
|
|
|
11
|
-
[](https://github.com/antvis/G2/actions/workflows/build.yml)
|
|
12
12
|
[](https://coveralls.io/github/antvis/g2?branch=v5)
|
|
13
13
|
[](https://www.npmjs.com/package/@antv/g2)
|
|
14
14
|
[](https://www.npmjs.com/package/@antv/g2)
|
|
@@ -22,7 +22,7 @@ G2 is named after Leland Wilkinson’s book _The Grammar of Graphics_ and was pr
|
|
|
22
22
|
|
|
23
23
|
- [Introduction](https://g2.antv.antgroup.com/manual/introduction/what-is-g2) - a brief overview and G2's motivations
|
|
24
24
|
- [Examples](https://g2.antv.antgroup.com/examples) - a large number of demos to learn from and copy-paste
|
|
25
|
-
- [Tutorials](https://g2.antv.antgroup.com/manual/
|
|
25
|
+
- [Tutorials](https://g2.antv.antgroup.com/manual/quick-start) - interactive case-driven guides of G2's core concepts
|
|
26
26
|
- [API Reference](https://g2.antv.antgroup.com/api/overview) - complete documentation for all visualization components
|
|
27
27
|
- [Editor](https://editor.antv.antgroup.com/) - an intelligent generation tool based on AntV. It utilizes AI to reduce the development cost of data visualization, and can quickly generate visual charts through natural language.
|
|
28
28
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<img src="https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg" width="18"> [English](./README.md) | 简体中文
|
|
2
2
|
|
|
3
3
|
<h1 align="center">
|
|
4
|
-
<b>G2
|
|
4
|
+
<b>G2:一套简明和渐进式的可视化语法</b>
|
|
5
5
|
</h1>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://g2.antv.antgroup.com/manual/introduction/what-is-g2">介绍</a> •
|
|
13
13
|
<a href="https://g2.antv.antgroup.com/examples">案例</a> •
|
|
14
|
-
<a href="https://g2.antv.antgroup.com/manual/
|
|
14
|
+
<a href="https://g2.antv.antgroup.com/manual/quick-start">教程</a> •
|
|
15
15
|
<a href="https://g2.antv.antgroup.com/api/overview">API</a> •
|
|
16
16
|
<a href="https://editor.antv.antgroup.com/">Editor</a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
[](https://github.com/antvis/G2/actions/workflows/build.yml)
|
|
20
20
|
[](https://coveralls.io/github/antvis/g2?branch=v5)
|
|
21
21
|
[](https://www.npmjs.com/package/@antv/g2)
|
|
22
22
|
[](https://www.npmjs.com/package/@antv/g2)
|