@antv/g2 4.1.26 → 4.1.30

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 (120) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/g2.min.js +31 -3
  3. package/dist/g2.min.js.map +1 -1
  4. package/esm/chart/controller/annotation.d.ts +3 -8
  5. package/esm/chart/controller/annotation.js +24 -35
  6. package/esm/chart/controller/annotation.js.map +1 -1
  7. package/esm/chart/controller/tooltip.js +5 -0
  8. package/esm/chart/controller/tooltip.js.map +1 -1
  9. package/esm/chart/layout/constraint/bounds.d.ts +32 -0
  10. package/esm/chart/layout/constraint/bounds.js +30 -0
  11. package/esm/chart/layout/constraint/bounds.js.map +1 -0
  12. package/esm/chart/layout/constraint/constraint.d.ts +31 -0
  13. package/esm/chart/layout/constraint/constraint.js +81 -0
  14. package/esm/chart/layout/constraint/constraint.js.map +1 -0
  15. package/esm/chart/layout/constraint/gauss.d.ts +11 -0
  16. package/esm/chart/layout/constraint/gauss.js +63 -0
  17. package/esm/chart/layout/constraint/gauss.js.map +1 -0
  18. package/esm/chart/layout/constraint/index.d.ts +5 -0
  19. package/esm/chart/layout/constraint/index.js +30 -0
  20. package/esm/chart/layout/constraint/index.js.map +1 -0
  21. package/esm/chart/layout/constraint/solver.d.ts +40 -0
  22. package/esm/chart/layout/constraint/solver.js +77 -0
  23. package/esm/chart/layout/constraint/solver.js.map +1 -0
  24. package/esm/chart/layout/constraint/types.d.ts +21 -0
  25. package/esm/chart/layout/constraint/types.js +13 -0
  26. package/esm/chart/layout/constraint/types.js.map +1 -0
  27. package/esm/chart/layout/constraint/variable.d.ts +24 -0
  28. package/esm/chart/layout/constraint/variable.js +28 -0
  29. package/esm/chart/layout/constraint/variable.js.map +1 -0
  30. package/esm/chart/view.js +1 -0
  31. package/esm/chart/view.js.map +1 -1
  32. package/esm/core.d.ts +1 -1
  33. package/esm/core.js +1 -1
  34. package/esm/core.js.map +1 -1
  35. package/esm/geometry/base.d.ts +1 -7
  36. package/esm/geometry/base.js +70 -58
  37. package/esm/geometry/base.js.map +1 -1
  38. package/esm/geometry/element/index.js +1 -1
  39. package/esm/geometry/element/index.js.map +1 -1
  40. package/esm/geometry/heatmap.d.ts +1 -1
  41. package/esm/geometry/heatmap.js +11 -9
  42. package/esm/geometry/heatmap.js.map +1 -1
  43. package/esm/geometry/path.d.ts +1 -2
  44. package/esm/geometry/path.js +46 -20
  45. package/esm/geometry/path.js.map +1 -1
  46. package/esm/geometry/util/diff.d.ts +11 -0
  47. package/esm/geometry/util/diff.js +30 -0
  48. package/esm/geometry/util/diff.js.map +1 -0
  49. package/esm/theme/style-sheet/dark.js +1 -1
  50. package/esm/theme/style-sheet/dark.js.map +1 -1
  51. package/esm/theme/style-sheet/light.js +1 -1
  52. package/esm/theme/style-sheet/light.js.map +1 -1
  53. package/lib/chart/controller/annotation.d.ts +3 -8
  54. package/lib/chart/controller/annotation.js +24 -35
  55. package/lib/chart/controller/annotation.js.map +1 -1
  56. package/lib/chart/controller/tooltip.js +5 -0
  57. package/lib/chart/controller/tooltip.js.map +1 -1
  58. package/lib/chart/layout/constraint/bounds.d.ts +32 -0
  59. package/lib/chart/layout/constraint/bounds.js +33 -0
  60. package/lib/chart/layout/constraint/bounds.js.map +1 -0
  61. package/lib/chart/layout/constraint/constraint.d.ts +31 -0
  62. package/lib/chart/layout/constraint/constraint.js +84 -0
  63. package/lib/chart/layout/constraint/constraint.js.map +1 -0
  64. package/lib/chart/layout/constraint/gauss.d.ts +11 -0
  65. package/lib/chart/layout/constraint/gauss.js +68 -0
  66. package/lib/chart/layout/constraint/gauss.js.map +1 -0
  67. package/lib/chart/layout/constraint/index.d.ts +5 -0
  68. package/lib/chart/layout/constraint/index.js +38 -0
  69. package/lib/chart/layout/constraint/index.js.map +1 -0
  70. package/lib/chart/layout/constraint/solver.d.ts +40 -0
  71. package/lib/chart/layout/constraint/solver.js +80 -0
  72. package/lib/chart/layout/constraint/solver.js.map +1 -0
  73. package/lib/chart/layout/constraint/types.d.ts +21 -0
  74. package/lib/chart/layout/constraint/types.js +16 -0
  75. package/lib/chart/layout/constraint/types.js.map +1 -0
  76. package/lib/chart/layout/constraint/variable.d.ts +24 -0
  77. package/lib/chart/layout/constraint/variable.js +31 -0
  78. package/lib/chart/layout/constraint/variable.js.map +1 -0
  79. package/lib/chart/view.js +1 -0
  80. package/lib/chart/view.js.map +1 -1
  81. package/lib/core.d.ts +1 -1
  82. package/lib/core.js +1 -1
  83. package/lib/core.js.map +1 -1
  84. package/lib/geometry/base.d.ts +1 -7
  85. package/lib/geometry/base.js +70 -58
  86. package/lib/geometry/base.js.map +1 -1
  87. package/lib/geometry/element/index.js +1 -1
  88. package/lib/geometry/element/index.js.map +1 -1
  89. package/lib/geometry/heatmap.d.ts +1 -1
  90. package/lib/geometry/heatmap.js +11 -9
  91. package/lib/geometry/heatmap.js.map +1 -1
  92. package/lib/geometry/path.d.ts +1 -2
  93. package/lib/geometry/path.js +46 -20
  94. package/lib/geometry/path.js.map +1 -1
  95. package/lib/geometry/util/diff.d.ts +11 -0
  96. package/lib/geometry/util/diff.js +34 -0
  97. package/lib/geometry/util/diff.js.map +1 -0
  98. package/lib/theme/style-sheet/dark.js +1 -1
  99. package/lib/theme/style-sheet/dark.js.map +1 -1
  100. package/lib/theme/style-sheet/light.js +1 -1
  101. package/lib/theme/style-sheet/light.js.map +1 -1
  102. package/package.json +5 -4
  103. package/src/chart/controller/annotation.ts +27 -31
  104. package/src/chart/controller/tooltip.ts +6 -0
  105. package/src/chart/layout/constraint/bounds.ts +52 -0
  106. package/src/chart/layout/constraint/constraint.ts +98 -0
  107. package/src/chart/layout/constraint/gauss.ts +71 -0
  108. package/src/chart/layout/constraint/index.ts +30 -0
  109. package/src/chart/layout/constraint/solver.ts +98 -0
  110. package/src/chart/layout/constraint/types.ts +29 -0
  111. package/src/chart/layout/constraint/variable.ts +33 -0
  112. package/src/chart/view.ts +1 -0
  113. package/src/core.ts +1 -1
  114. package/src/geometry/base.ts +67 -56
  115. package/src/geometry/element/index.ts +1 -1
  116. package/src/geometry/heatmap.ts +12 -11
  117. package/src/geometry/path.ts +48 -22
  118. package/src/geometry/util/diff.ts +29 -0
  119. package/src/theme/style-sheet/dark.ts +1 -1
  120. package/src/theme/style-sheet/light.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ #### 4.1.30 (2021-09-28)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **state-style:** 修复存在状态时,动画丢失 ([2619645a](https://github.com/antvis/g2/commit/2619645a1162c97f66af0d8949ca1ba03e398e03))
6
+
7
+ #### 4.1.29 (2021-09-26)
8
+
9
+ ##### Bug Fixes
10
+
11
+ * **custom-content:** 修复 custom-content undefined 无法变回 tooltip 模版的问题 ([#3644](https://github.com/antvis/g2/pull/3644)) ([2790c349](https://github.com/antvis/g2/commit/2790c34907653c172136fef0124691f3bea3d863))
12
+
13
+ #### 4.1.28 (2021-09-24)
14
+
15
+ ##### New Features
16
+
17
+ * **geometry:** refactor and rename createElements ([#3626](https://github.com/antvis/g2/pull/3626)) ([5dadea97](https://github.com/antvis/g2/commit/5dadea973f0915ebb446f037b9816b7c88a99cd3))
18
+ * constraint layout solver ([#3622](https://github.com/antvis/g2/pull/3622)) ([576cf07d](https://github.com/antvis/g2/commit/576cf07dbbd4a70ca6a01e609459ce1ff94cab80))
19
+
20
+ ##### Bug Fixes
21
+
22
+ * crash on safari 15 when fillText with unicode ([#3640](https://github.com/antvis/g2/pull/3640)) ([0516f6e3](https://github.com/antvis/g2/commit/0516f6e3370df221bd52c6c987b8916da59979be))
23
+
24
+ ##### Reverts
25
+
26
+ * annotation position 相关的 ([#3637](https://github.com/antvis/g2/pull/3637)) ([1109e3fd](https://github.com/antvis/g2/commit/1109e3fd7e8a455ba8c75f260c36162c5a15f869))
27
+
1
28
  #### 4.1.26 (2021-09-15)
2
29
 
3
30
  ##### Documentation Changes