@antv/g6 5.0.41 → 5.0.43

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 (76) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/g6.min.js +29 -29
  4. package/dist/lib/behaviors/zoom-canvas.d.ts +4 -4
  5. package/dist/lib/constants/events/common.d.ts +7 -1
  6. package/dist/lib/runtime/element.d.ts +1 -0
  7. package/dist/lib/runtime/graph.d.ts +2 -1
  8. package/dist/lib/runtime/layout.d.ts +3 -2
  9. package/dist/lib/utils/pinch.d.ts +116 -0
  10. package/dist/lib/utils/shortcut.d.ts +2 -0
  11. package/dist/lib/version.d.ts +1 -1
  12. package/esm/behaviors/drag-canvas.js +3 -1
  13. package/esm/behaviors/drag-canvas.js.map +1 -1
  14. package/esm/behaviors/zoom-canvas.d.ts +4 -4
  15. package/esm/behaviors/zoom-canvas.js +13 -6
  16. package/esm/behaviors/zoom-canvas.js.map +1 -1
  17. package/esm/constants/events/common.d.ts +7 -1
  18. package/esm/constants/events/common.js +6 -0
  19. package/esm/constants/events/common.js.map +1 -1
  20. package/esm/runtime/canvas.js +3 -0
  21. package/esm/runtime/canvas.js.map +1 -1
  22. package/esm/runtime/element.d.ts +1 -0
  23. package/esm/runtime/element.js +6 -2
  24. package/esm/runtime/element.js.map +1 -1
  25. package/esm/runtime/graph.d.ts +2 -1
  26. package/esm/runtime/graph.js +3 -2
  27. package/esm/runtime/graph.js.map +1 -1
  28. package/esm/runtime/layout.d.ts +3 -2
  29. package/esm/runtime/layout.js +4 -3
  30. package/esm/runtime/layout.js.map +1 -1
  31. package/esm/utils/pinch.d.ts +116 -0
  32. package/esm/utils/pinch.js +124 -0
  33. package/esm/utils/pinch.js.map +1 -0
  34. package/esm/utils/shortcut.d.ts +2 -0
  35. package/esm/utils/shortcut.js +10 -2
  36. package/esm/utils/shortcut.js.map +1 -1
  37. package/esm/version.d.ts +1 -1
  38. package/esm/version.js +1 -1
  39. package/lib/behaviors/drag-canvas.js +3 -1
  40. package/lib/behaviors/drag-canvas.js.map +1 -1
  41. package/lib/behaviors/zoom-canvas.d.ts +4 -4
  42. package/lib/behaviors/zoom-canvas.js +13 -6
  43. package/lib/behaviors/zoom-canvas.js.map +1 -1
  44. package/lib/constants/events/common.d.ts +7 -1
  45. package/lib/constants/events/common.js +6 -0
  46. package/lib/constants/events/common.js.map +1 -1
  47. package/lib/runtime/canvas.js +3 -0
  48. package/lib/runtime/canvas.js.map +1 -1
  49. package/lib/runtime/element.d.ts +1 -0
  50. package/lib/runtime/element.js +6 -2
  51. package/lib/runtime/element.js.map +1 -1
  52. package/lib/runtime/graph.d.ts +2 -1
  53. package/lib/runtime/graph.js +3 -2
  54. package/lib/runtime/graph.js.map +1 -1
  55. package/lib/runtime/layout.d.ts +3 -2
  56. package/lib/runtime/layout.js +4 -3
  57. package/lib/runtime/layout.js.map +1 -1
  58. package/lib/utils/pinch.d.ts +116 -0
  59. package/lib/utils/pinch.js +128 -0
  60. package/lib/utils/pinch.js.map +1 -0
  61. package/lib/utils/shortcut.d.ts +2 -0
  62. package/lib/utils/shortcut.js +10 -2
  63. package/lib/utils/shortcut.js.map +1 -1
  64. package/lib/version.d.ts +1 -1
  65. package/lib/version.js +1 -1
  66. package/package.json +2 -1
  67. package/src/behaviors/drag-canvas.ts +5 -4
  68. package/src/behaviors/zoom-canvas.ts +23 -9
  69. package/src/constants/events/common.ts +6 -0
  70. package/src/runtime/canvas.ts +4 -0
  71. package/src/runtime/element.ts +7 -2
  72. package/src/runtime/graph.ts +3 -2
  73. package/src/runtime/layout.ts +5 -4
  74. package/src/utils/pinch.ts +176 -0
  75. package/src/utils/shortcut.ts +11 -0
  76. package/src/version.ts +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  ![](https://user-images.githubusercontent.com/6113694/45008751-ea465300-b036-11e8-8e2a-166cbb338ce2.png)
8
8
 
9
9
  [![npm Version](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
10
- [![Build Status](https://github.com/antvis/g6/workflows/build/badge.svg?branch=v5)](https://github.com/antvis/g6/actions)
10
+ [![Build Status](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/G6/actions/workflows/build.yml)
11
11
  [![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg)](https://coveralls.io/github/antvis/G6)
12
12
  [![npm Download](https://img.shields.io/npm/dm/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
13
13
  ![typescript](https://img.shields.io/badge/language-typescript-blue.svg)
package/README.zh-CN.md CHANGED
@@ -7,7 +7,7 @@
7
7
  ![](https://user-images.githubusercontent.com/6113694/45008751-ea465300-b036-11e8-8e2a-166cbb338ce2.png)
8
8
 
9
9
  [![npm Version](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
10
- [![Build Status](https://github.com/antvis/g6/workflows/build/badge.svg?branch=v5)](https://github.com/antvis/g6/actions)
10
+ [![Build Status](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/G6/actions/workflows/build.yml)
11
11
  [![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg)](https://coveralls.io/github/antvis/G6)
12
12
  [![npm Download](https://img.shields.io/npm/dm/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
13
13
  ![typescript](https://img.shields.io/badge/language-typescript-blue.svg)