@antv/g2 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +3 -3
  3. package/README.zh-CN.md +2 -2
  4. package/dist/g2-lite.min.js +1 -10
  5. package/dist/g2.min.js +1 -10
  6. package/esm/component/axis.js +1 -1
  7. package/esm/component/axis.js.map +1 -1
  8. package/esm/index.d.ts +1 -1
  9. package/esm/index.js +1 -1
  10. package/esm/index.js.map +1 -1
  11. package/esm/interaction/brushHighlight.d.ts +1 -1
  12. package/esm/interaction/brushHighlight.js +15 -5
  13. package/esm/interaction/brushHighlight.js.map +1 -1
  14. package/esm/interaction/tooltip.js +74 -34
  15. package/esm/interaction/tooltip.js.map +1 -1
  16. package/esm/runtime/constant.d.ts +1 -0
  17. package/esm/runtime/constant.js +1 -0
  18. package/esm/runtime/constant.js.map +1 -1
  19. package/esm/runtime/plot.js +5 -1
  20. package/esm/runtime/plot.js.map +1 -1
  21. package/esm/theme/light.js +2 -1
  22. package/esm/theme/light.js.map +1 -1
  23. package/lib/component/axis.js +1 -1
  24. package/lib/component/axis.js.map +1 -1
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.js +2 -1
  27. package/lib/index.js.map +1 -1
  28. package/lib/interaction/brushHighlight.d.ts +1 -1
  29. package/lib/interaction/brushHighlight.js +15 -5
  30. package/lib/interaction/brushHighlight.js.map +1 -1
  31. package/lib/interaction/tooltip.js +74 -34
  32. package/lib/interaction/tooltip.js.map +1 -1
  33. package/lib/runtime/constant.d.ts +1 -0
  34. package/lib/runtime/constant.js +2 -1
  35. package/lib/runtime/constant.js.map +1 -1
  36. package/lib/runtime/plot.js +5 -1
  37. package/lib/runtime/plot.js.map +1 -1
  38. package/lib/theme/light.js +2 -1
  39. package/lib/theme/light.js.map +1 -1
  40. package/package.json +5 -5
  41. package/src/component/axis.ts +1 -1
  42. package/src/index.ts +1 -0
  43. package/src/interaction/brushHighlight.ts +26 -3
  44. package/src/interaction/tooltip.ts +80 -33
  45. package/src/runtime/constant.ts +1 -0
  46. package/src/runtime/plot.ts +7 -2
  47. package/src/theme/light.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [5.1.1](https://github.com/antvis/g2/compare/5.1.0...5.1.1) (2023-09-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **axis:** labelAutoHide ([#5502](https://github.com/antvis/g2/issues/5502)) ([4dfdaff](https://github.com/antvis/g2/commit/4dfdaff76ee0584a1d9bb139b6fa6404145dbd22))
7
+ * **shape:** update group shape without animation ([#5514](https://github.com/antvis/g2/issues/5514)) ([a49624b](https://github.com/antvis/g2/commit/a49624b9a7a6503989e8e08d8dfa5937999f8a21))
8
+
9
+
10
+ ### Features
11
+
12
+ * **interaction:** emit more brush and tooltip events ([#5512](https://github.com/antvis/g2/issues/5512)) ([57cc841](https://github.com/antvis/g2/commit/57cc841e17969ac3e686061bf8aa821c616460c7))
13
+
14
+
15
+
1
16
  # [5.1.0](https://github.com/antvis/g2/compare/5.0.24...5.1.0) (2023-08-31)
2
17
 
3
18
 
package/README.md CHANGED
@@ -38,11 +38,11 @@ G2 is named after Leland Wilkinson’s book _The Grammar of Graphics_ and was pr
38
38
  G2 is usually installed via a package manager such as npm or Yarn.
39
39
 
40
40
  ```bash
41
- $ npm install @antv/g2@next
41
+ $ npm install @antv/g2
42
42
  ```
43
43
 
44
44
  ```bash
45
- $ yarn add @antv/g2@next
45
+ $ yarn add @antv/g2
46
46
  ```
47
47
 
48
48
  The Chart object then can be imported from G2.
@@ -76,7 +76,7 @@ chart
76
76
  .encode('x', 'genre') // Assign genre column to x position channel.
77
77
  .encode('y', 'sold'); // Assign sold column to y position channel.
78
78
 
79
- // Render visualization。
79
+ // Render visualization.
80
80
  chart.render();
81
81
  ```
82
82
 
package/README.zh-CN.md CHANGED
@@ -40,11 +40,11 @@ G2 起源于 Leland Wilkinson 的图形语法:《The Grammar of Graphics》,
40
40
  可以通过 NPM 或 Yarn 等包管理器来安装。
41
41
 
42
42
  ```bash
43
- $ npm install @antv/g2@next
43
+ $ npm install @antv/g2
44
44
  ```
45
45
 
46
46
  ```bash
47
- $ yarn add @antv/g2@next
47
+ $ yarn add @antv/g2
48
48
  ```
49
49
 
50
50
  成功安装之后,可以通过 import 导入 Chart 对象。