Compare commits

..

412 Commits

Author SHA1 Message Date
d44dce03de chore(release): 🚀 publish
- @antv/x6@1.34.6
2022-11-09 15:37:34 +08:00
7873c546ff fix: 🐛 add timeout for animation setup (#2858)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-11-09 15:34:19 +08:00
31c124aec7 chore: update contributors [skip ci] 2022-11-01 01:31:27 +00:00
91a59c7709 chore: update contributors [skip ci] 2022-10-30 01:32:05 +00:00
13e5cf36e1 chore: update contributors [skip ci] 2022-10-27 01:30:55 +00:00
537c3e8a50 chore: update contributors [skip ci] 2022-10-25 12:19:53 +00:00
549fe1cf56 docs: 📚️ add tips for insertPort api (#2806) 2022-10-25 20:19:31 +08:00
2b46e804c3 chore: update AUTHORS [skip ci] 2022-10-25 09:38:27 +00:00
745a9f4367 chore: update contributors [skip ci] 2022-10-25 09:33:14 +00:00
eef7ccf8bd fix: 🐛 fix nodes moved error when snapped (#2805) 2022-10-25 17:32:52 +08:00
1f7603ec05 chore: update contributors [skip ci] 2022-10-25 09:32:34 +00:00
5814103767 fix:🐛fix the bug cannot read properties of null when cell is not exit (#2802)
Co-authored-by: 温贝 <wenbei.wb@alibaba-inc.com>
2022-10-25 17:32:10 +08:00
595858558e fix: 🐛 add warn when use fallback router (#2799) 2022-10-25 06:46:07 +08:00
a6e3b4d4d3 fix: 🐛 fix the error in selected nodes position when snapline enabled (#2798) 2022-10-24 21:40:13 +08:00
466bc5d324 chore: update contributors [skip ci] 2022-10-23 01:30:26 +00:00
2bdd945670 chore: update contributors [skip ci] 2022-10-20 01:31:58 +00:00
a1ed7ee212 chore: update contributors [skip ci] 2022-10-19 01:30:34 +00:00
aeed9a6d3c chore: update contributors [skip ci] 2022-10-15 01:31:11 +00:00
18e5eb8378 chore: update contributors [skip ci] 2022-10-14 01:32:09 +00:00
609ed7e3d3 chore(release): 🚀 publish
- @antv/x6-geometry@1.0.14
 - @antv/x6-vector@1.4.2
 - @antv/x6@1.34.5
2022-10-13 21:32:50 +08:00
8a8d14abfa fix: 🐛 check if the navigator global is available before usage (#2768) 2022-10-13 10:39:54 +08:00
c6ca04317b chore: 🔧 remove version and track file for publish problem (#2763) 2022-10-10 15:38:28 +08:00
a57091306c chore(release): 🚀 publish
- @antv/x6-react-components@1.1.19
 - @antv/x6-react-shape@1.6.3
 - @antv/x6-vue-shape@1.5.3
 - @antv/x6@1.34.3
2022-10-10 12:31:53 +08:00
8f0b6fc6e4 chore: 🔧 change publish opts (#2762) 2022-10-10 12:28:03 +08:00
28341ac102 chore: 🔧 update publish script (#2757) 2022-10-09 22:39:23 +08:00
2e066ab625 2739/revert snapline sharp option deprecation (#2746)
* fix: 🐛 re-enable alternative line style in snapline

* docs(snapline): 📚️ remove deprecation notice

* fix: 🐛 revert import order
2022-10-09 22:33:59 +08:00
e09cb8ce93 fix: 🐛 add resizeOptions to getContentArea (#2745)
#2408
2022-10-09 22:25:14 +08:00
232064b74c chore: update contributors [skip ci] 2022-10-07 01:30:49 +00:00
64710553ee chore: update contributors [skip ci] 2022-10-06 01:30:19 +00:00
78c462ed79 chore: update AUTHORS [skip ci] 2022-09-30 08:46:01 +00:00
4954578288 chore: update contributors [skip ci] 2022-09-30 08:38:57 +00:00
6c87514ce7 docs:修复中文文档关于zIndex描述中的错别字 (#2738) 2022-09-30 16:38:33 +08:00
1f3fbd7993 docs: 📚️ color not support gradients (#2734)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-09-28 18:13:07 +08:00
ff24e5eef7 chore: update AUTHORS [skip ci] 2022-09-28 10:03:04 +00:00
481c6e1963 chore: update contributors [skip ci] 2022-09-28 09:56:58 +00:00
f33a2979a2 docs: 📚️ Translate some docs\tutorial\intermediate .md to english (#2722)
* Translate to en using deepl.com

* Fix accessibility issue: wrong formated link

Co-authored-by: Thomas Zeugner <thomas.zeugner@kuka.com>
2022-09-28 17:56:33 +08:00
505d8dd89a chore(deps): bump actions/stale from 5 to 6 (#2721)
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 6.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-28 17:42:42 +08:00
bda642cd15 chore: 🔧 update react-shape version for sites demo (#2732)
* chore(release): 🚀 publish

 - @antv/x6-react-components@1.1.18
 - @antv/x6-react-shape@1.6.2
 - @antv/x6-vue-shape@1.5.2
 - @antv/x6@1.34.2

* chore: 🔧 update react-shape version for sites demo

Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-09-28 13:50:42 +08:00
9c539efab9 chore: update contributors [skip ci] 2022-09-23 01:32:31 +00:00
1cc9d2940c chore: update contributors [skip ci] 2022-09-20 14:40:24 +00:00
d49cf472a2 fix: 🐛 add case sensitive attrs (#2711)
* fix: 🐛 add case sensitive attrs

* chore(release): 🚀 publish

 - @antv/x6-react-components@1.1.18
 - @antv/x6-react-shape@1.6.2
 - @antv/x6-vue-shape@1.5.2
 - @antv/x6@1.34.2

Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-09-20 22:40:00 +08:00
fee4b13750 feat: foreignObject内部元素默认不触发拖动和选中行为 close #2549 (#2676)
* feat:  foreignObject内部元素默认不触发拖动和选中行为 close #2549

* fix: 🐛 add return type
2022-09-20 22:03:53 +08:00
7c43726a2d chore: update contributors [skip ci] 2022-09-20 05:52:00 +00:00
4c5354ab70 fix: 🐛 fix scroller options typo (#2706)
* chore(release): 🚀 publish

 - @antv/x6-react-components@1.1.17
 - @antv/x6-vue-shape@1.5.1
 - @antv/x6@1.34.1

* fix: 🐛 fix scroller options typo
2022-09-20 13:51:35 +08:00
7725bacc93 docs: 📚️ update demo for readme (#2707) 2022-09-20 13:51:19 +08:00
f9b2600353 chore: update AUTHORS [skip ci] 2022-09-15 01:54:18 +00:00
d4393d6a39 chore: 🔧 update react-resize-detector version (#2684) 2022-09-15 09:48:23 +08:00
f0ee53a125 chore: update contributors [skip ci] 2022-09-15 01:34:45 +00:00
57c8525bb4 chore: update AUTHORS [skip ci] 2022-09-14 13:35:43 +00:00
9f3dfb7a8d chore: update AUTHORS [skip ci] 2022-09-14 13:13:47 +00:00
72b050c386 docs: change changelog href (#2679)
Co-authored-by: 薛腾飞 <xuetf@maycur.com>
2022-09-14 21:07:05 +08:00
0c024cefed docs: fix the docs in use Vue3 Teleport (#2677) 2022-09-14 21:06:30 +08:00
8abcb4bca0 fix: 🐛 add page size check condition (#2675) 2022-09-14 09:28:51 +08:00
5f53a09621 chore: update contributors [skip ci] 2022-09-13 01:31:21 +00:00
9f33e01a82 chore: update contributors [skip ci] 2022-09-12 09:17:31 +00:00
f846067448 feat: dnd support dndContainer. close #2562 #2572 (#2585) 2022-09-12 17:17:07 +08:00
8a6338ae3c chore: update contributors [skip ci] 2022-09-11 01:30:51 +00:00
3a79c686cd docs: 📚️ add qrcode for communication (#2651) 2022-09-08 15:28:23 +08:00
7db7a15cac chore: update contributors [skip ci] 2022-09-08 01:32:46 +00:00
375c3b190c chore: update contributors [skip ci] 2022-09-07 13:44:49 +00:00
24892181ca chore: 🔧 add publish cmd (#2622)
* chore: 🔧 add publish cmd

* chore: 🔧 delete release-it cmd
2022-09-07 21:44:27 +08:00
841531ecc1 chore: update contributors [skip ci] 2022-09-05 03:26:19 +00:00
2460f20a42 chore(release): 🚀 publish
- @antv/x6-vue-shape@1.5.0
 - @antv/x6@1.34.0
2022-09-05 11:25:33 +08:00
c8f8b9b4e0 fix: 🐛 update style (#2621) 2022-09-05 11:22:19 +08:00
0d0d973d3e fix: 🐛 change the update function name to avoid unnecessary updates (#2620) 2022-09-04 21:41:53 +08:00
eed25260af chore: update contributors [skip ci] 2022-09-04 01:32:43 +00:00
9f1130f260 chore: update contributors [skip ci] 2022-09-03 01:34:05 +00:00
cd9df4d609 chore: update AUTHORS [skip ci] 2022-09-02 11:02:36 +00:00
eb195abe3c chore: update contributors [skip ci] 2022-09-02 10:55:55 +00:00
fa8f71a3e1 doc: fix prop names of menu component in doc (#2615)
Co-authored-by: 雪奈 <xuenai.zxl@antgroup.com>
2022-09-02 18:55:29 +08:00
4171975d62 chore: update contributors [skip ci] 2022-09-01 11:10:58 +00:00
f0bbb828a3 fix: 🐛 support percent in edge button tool (#2608) 2022-09-01 19:10:34 +08:00
d52ddfad87 fix: fix problem that selection rubberband cannot be created (#2606)
* docs: 📚️ remove update methods in scroller

* chore: 🔧 update x6-sites deps

* fix: 🐛 fix problem that selection rubberband cannot be created
2022-09-01 17:41:47 +08:00
5c39bcf2c8 chore: update contributors [skip ci] 2022-09-01 01:33:45 +00:00
8cac05deaf chore: update AUTHORS [skip ci] 2022-08-29 09:20:21 +00:00
96a387822e chore: update contributors [skip ci] 2022-08-29 09:17:36 +00:00
2f3a565843 fix: 🐛修复 issue #2504问题 (#2540) 2022-08-29 17:17:14 +08:00
64de4c7753 chore: update contributors [skip ci] 2022-08-29 09:14:12 +00:00
502ceb1abb fix: 🐛 #2581 修复 scheduler 任务调度的问题 (#2581) (#2582) 2022-08-29 17:13:52 +08:00
0509fd4897 chore: update contributors [skip ci] 2022-08-29 01:31:02 +00:00
1f6196e663 refactor: ♻️ refactor x6 vue shape. close #2566 (#2569) 2022-08-26 11:56:26 +08:00
e9de0ba4c0 chore: update contributors [skip ci] 2022-08-26 01:31:29 +00:00
8ab3810c5e chore: update contributors [skip ci] 2022-08-25 14:05:08 +00:00
7405eba4e4 chore(deps): bump @actions/core in /scripts/monorepo-semantic-release (#2544)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-25 22:03:57 +08:00
b1add84978 chore: update contributors [skip ci] 2022-08-25 13:46:44 +00:00
d51c0db472 feat: support scroller resize direction (#2408)
* feat:  support scroller resize direction

Closes: #2323

* feat:  adjust calcContextArea param

Co-authored-by: MrMengJ <mrmengj@gmail.com>
2022-08-25 21:46:18 +08:00
59919533ce chore: update contributors [skip ci] 2022-08-20 01:31:01 +00:00
43fee42084 chore: update contributors [skip ci] 2022-08-19 01:31:35 +00:00
7066d63a35 chore: update contributors [skip ci] 2022-08-18 01:31:54 +00:00
0ebf120be3 fix: 🐛 fontSize拼写错误 #2531 (#2533) 2022-08-17 23:14:46 +08:00
710c249c15 chore: update contributors [skip ci] 2022-08-17 15:04:52 +00:00
e4d3c2b253 fix: 🐛 #2505 修复toggleVisible之后导致不渲染的问题 (#2520) 2022-08-17 23:04:20 +08:00
e83b1ed507 fix(history): 🐛 try to merge move+embed into 1 undo (#2492) 2022-08-17 23:03:25 +08:00
cc2cd5fdb8 chore: update contributors [skip ci] 2022-08-16 14:02:03 +00:00
17dcde8426 fix: 🐛 fix some issues (#2528)
1、解决点击画布时,input无法正常失去焦点
2、添加touch-action: none;阻止移动端中滑动节点页面一起移动
3、https://github.com/antvis/X6/issues/2527
2022-08-16 22:01:31 +08:00
a9dcc84994 chore: update contributors [skip ci] 2022-08-13 01:30:53 +00:00
725372fa96 chore: 🔧 release @antv/x6@1.33.1 2022-08-12 08:09:15 +08:00
46af7cd55a fix: 🐛 not sort views after visible change (#2501) 2022-08-12 08:01:02 +08:00
e7f3257640 chore: update contributors [skip ci] 2022-08-11 09:57:54 +00:00
9791dbb09f docs: 📚️ modernize react portal usage and examples (#2491) 2022-08-11 17:57:42 +08:00
ff2d29889d docs: 📚️ add deprecation notice for Snapline.sharp (#2490) 2022-08-11 17:57:29 +08:00
74b8256ce1 chore: update contributors [skip ci] 2022-08-10 01:30:20 +00:00
2248b27258 docs: 📚️ specify createEdge description (#2473) 2022-08-08 21:41:36 +08:00
f7bf8219c3 chore: 🔧 release @antv/x6@1.33.0 2022-08-08 20:52:44 +08:00
4ffb61912b fix: fix some issue (#2472)
* fix: 🐛 fix set edge target error

* fix: 🐛 sort views after cell visible changed

* fix: 🐛 filter empty cells in selection:changed event

* chore: 🔧 update release tag name
2022-08-08 20:34:15 +08:00
59fb1d2e3a chore: 🔧 release @antv/x6-vue-shape@1.4.2 2022-08-08 16:46:16 +08:00
6b85512a25 chore: 🔧 update git tag for release-it (#2470) 2022-08-08 16:40:22 +08:00
c7269af2ef chore: 🔧 add release-it (#2469) 2022-08-08 16:21:10 +08:00
e3d6d5e694 chore: 🔧 update x6 version (#2468) 2022-08-08 15:48:40 +08:00
8dde11951f chore: update contributors [skip ci] 2022-08-05 01:30:34 +00:00
c90ede231e chore: update AUTHORS [skip ci] 2022-08-04 01:22:35 +00:00
ae51381992 docs(README.md): fix typo of CDN (#2450) 2022-08-04 09:15:35 +08:00
b10ef693e8 chore: update AUTHORS [skip ci] 2022-08-02 07:49:25 +00:00
f5c5537650 chore: update contributors [skip ci] 2022-08-02 07:43:13 +00:00
ccf44c1732 docs: add some methods for model documentation (#2451)
* docs: add addCells method for model documentation

* docs: add some methods for model documentation

* docs: add more description for model documentation
2022-08-02 15:42:47 +08:00
5a865db99e chore: update contributors [skip ci] 2022-08-01 21:36:50 +00:00
c472648ae1 fix: 升级vue-demi版本 (#2435) 2022-08-02 05:36:28 +08:00
6351a5064d feat: preventDefaultContextMenu support function (#2410)
* feat:  preventDefaultContextMenu support function

Closes: #2409

* refactor: ♻️ adjust preventDefaultContextMenu function param

Co-authored-by: MrMengJ <mrmengj@gmail.com>
2022-08-02 05:34:06 +08:00
e02aefdc4f chore: update contributors [skip ci] 2022-08-01 01:31:03 +00:00
922c98632c chore: update contributors [skip ci] 2022-07-27 01:31:03 +00:00
dc59ce1d85 chore(deps): bump file-type from 16.5.0 to 16.5.4 (#2407)
Bumps [file-type](https://github.com/sindresorhus/file-type) from 16.5.0 to 16.5.4.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](https://github.com/sindresorhus/file-type/compare/v16.5.0...v16.5.4)

---
updated-dependencies:
- dependency-name: file-type
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-23 13:33:53 +08:00
8db399f6fc chore: 🔧 change release commit message (#2404) 2022-07-22 17:01:24 +08:00
edd1b36abc chore: 🔧 add release script (#2403) 2022-07-22 16:41:57 +08:00
794df7f497 chore: 🔧 change x6 version (#2402) 2022-07-22 16:08:33 +08:00
35774995b7 chore: update AUTHORS [skip ci] 2022-07-22 07:28:13 +00:00
d67bcc104d chore: update contributors [skip ci] 2022-07-22 07:21:44 +00:00
de80eb588b docs: 📖 the tool of edge documentation update (#2400)
Co-authored-by: hetengfei <hetengfei@able-elec.com>
2022-07-22 15:21:33 +08:00
b9906c9fa5 fix: Enhance isinputevent method (#2395) 2022-07-22 15:21:10 +08:00
c4b10e38a5 chore: update contributors [skip ci] 2022-07-20 03:59:19 +00:00
4b104eb73e feat: New property for edge connection attr (#2362)
* feat:  New property for edge connection attr

* docs: 📚️ typo
2022-07-20 11:58:59 +08:00
aee252f5d7 chore(deps): bump terser from 4.8.0 to 4.8.1 (#2377)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 10:30:29 +08:00
b3c2adb4b8 chore(deps): bump glob-parent in /scripts/monorepo-semantic-release (#2375)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 10:30:18 +08:00
7eac6c4645 chore: update contributors [skip ci] 2022-07-20 01:37:50 +00:00
67df6722ae chore: 🔧 comment GitHub actions (#2358)
* chore: 🔧 literally just commenting GitHub actions

* chore: 🔧 correct comment in release.yml
2022-07-20 09:37:25 +08:00
438e394b99 chore: 🔧 include src to x6-react-shape build files (#2347) 2022-07-12 12:09:51 +08:00
4422d2099a chore: update contributors [skip ci] 2022-07-11 01:30:57 +00:00
df4bcf653f fix: fix selection box incorrect position when enable snapline (#2310)
Closes: #2309

Co-authored-by: MrMengJ <mrmengj@gmail.com>
2022-07-10 13:35:01 +08:00
206f589bb3 chore: update contributors [skip ci] 2022-07-10 05:21:41 +00:00
b27a3ff9ef feat: support shift key multi-selection (#2302)
* feat: support shift key multi-selection

Closes: #2248

* feat: add config options for multiple selection and update the docs

Co-authored-by: MrMengJ <mrmengj@gmail.com>
2022-07-10 13:21:14 +08:00
06702ce221 fix: 🐛 normalize angle when rotating (#2341) 2022-07-10 07:06:38 +08:00
02579cb1c1 fix: 🐛 fix embeded event trigger error (#2340) 2022-07-09 17:24:29 +08:00
6a2a59b1cb feat: support padding options for manhattan router (#2339) 2022-07-09 15:43:03 +08:00
1fbba70e7e chore: update contributors [skip ci] 2022-07-09 00:45:05 +00:00
df7a0ee73c fix: 🐛 snapline constructor init offset close #2318 (#2338) 2022-07-09 08:44:38 +08:00
3dcafac5ac fix: 🐛 set visible true when init cells (#2337) 2022-07-09 08:41:43 +08:00
8b4192bd5f chore: update contributors [skip ci] 2022-07-08 10:15:59 +00:00
829406e81b feat: add clipboard:changed event (#2335) 2022-07-08 18:15:33 +08:00
f907d37cb1 feat: #2333 Set excludeNodes for manhattan args (#2334) 2022-07-08 17:24:24 +08:00
3b4aab93a6 fix: 🐛 add x6-port-groupName class for port container (#2331) 2022-07-08 16:31:15 +08:00
ce3e1fc6be chore: update AUTHORS [skip ci] 2022-07-08 07:40:50 +00:00
9bda76514a chore(deps): bump moment in /scripts/monorepo-semantic-release (#2329)
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-08 15:34:48 +08:00
58b2921bfb chore(deps): bump moment from 2.29.2 to 2.29.4 (#2330)
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-08 15:34:18 +08:00
608f61c3cd chore: 🔧 reduce the version gitleaks-actions to 1.6.0 (#2328) 2022-07-08 14:59:04 +08:00
b43b8f028a docs: 📚️ add qa and changelog link (#2327) 2022-07-08 14:56:12 +08:00
6cf6d31998 chore(deps): bump zricethezav/gitleaks-action from 1.6.0 to 2.0.4 (#2308)
Bumps [zricethezav/gitleaks-action](https://github.com/zricethezav/gitleaks-action) from 1.6.0 to 2.0.4.
- [Release notes](https://github.com/zricethezav/gitleaks-action/releases)
- [Commits](https://github.com/zricethezav/gitleaks-action/compare/v1.6.0...v2.0.4)

---
updated-dependencies:
- dependency-name: zricethezav/gitleaks-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 21:15:05 +08:00
b3edfc7590 chore: update contributors [skip ci] 2022-07-05 13:14:39 +00:00
045499511d fix: fix global keyboard event is invalid in some case (#2301)
Closes: #2300

Co-authored-by: MrMengJ <mrmengj@gmail.com>
2022-07-05 21:14:12 +08:00
1f5d5d1aca chore: 🔧 update x6 version (#2314) 2022-07-05 19:49:37 +08:00
7c513e7af1 chore: update AUTHORS [skip ci] 2022-07-05 05:56:53 +00:00
1444b16222 chore: update contributors [skip ci] 2022-07-05 05:50:41 +00:00
c89f8599ce fix: 🐛 Fixed the bug that node can't be draging. (#2312)
* fix: 🐛 Fixed the bug that node can't be draging
2022-07-05 13:50:19 +08:00
d622db6d6b fix: 🐛 pick the max zindex node when frontOnly enabled in embending (#2294) 2022-06-30 20:05:13 +08:00
ceead471ff chore: update AUTHORS [skip ci] 2022-06-30 07:59:43 +00:00
0696064480 chore: update contributors [skip ci] 2022-06-30 07:55:50 +00:00
0d2318605e docs: recorrect the docs of custom-node (#2292) 2022-06-30 15:53:47 +08:00
0416d0af4e chore: 🔧 update version in package.json (#2283) 2022-06-29 14:12:57 +08:00
a60e8f1653 chore: 🔧 code format and update version (#2282) 2022-06-29 14:03:19 +08:00
e4f38cd9e8 chore: 🔧 pin gitleaks-actions to v1.6.0 (#2281) 2022-06-29 13:51:30 +08:00
8cb9085dc1 fix: 🐛 fix allowNode option affects port connections (#2279) 2022-06-29 13:46:49 +08:00
997430abba chore: update contributors [skip ci] 2022-06-27 11:49:00 +00:00
166b9346b3 fix: 🐛 Fixed the bug that options.connecting.allowEdge does not take effect when options.connecting.snap is setting true (##2024) (#2265) 2022-06-27 19:48:39 +08:00
2750d0e69e chore: update contributors [skip ci] 2022-06-27 01:31:14 +00:00
3e5189c2b7 chore: update AUTHORS [skip ci] 2022-06-23 11:36:27 +00:00
6045888e6a chore: update contributors [skip ci] 2022-06-23 11:30:15 +00:00
933c6ed8e0 fix: 🐛 Fixed the bug that node moved when draging port #2216 (#2258) 2022-06-23 19:29:53 +08:00
df47d90889 chore: update AUTHORS [skip ci] 2022-06-20 12:02:28 +00:00
1648f12e83 chore: update contributors [skip ci] 2022-06-17 01:29:47 +00:00
815b044618 chore: update contributors [skip ci] 2022-06-16 01:31:31 +00:00
7e39cf1374 chore: 🔧 fix malfunctioning github workflow (#2222) 2022-06-15 19:48:06 +08:00
8b75ee89a4 fix: 🐛 add some case sensitive attr (#2220) 2022-06-15 19:47:28 +08:00
5a24508334 chore: update contributors [skip ci] 2022-06-13 12:34:33 +00:00
b259afc9f2 perf: use native SVG elements in snapline instead of DOM elements and jQuery (#2195)
* chore: 🔧 bump versions

* perf(snapline): use native SVG capabilities

* fix(snapline): 🐛 use built-in SVG tools instead of native ones
2022-06-13 20:34:09 +08:00
992d664c53 chore: update AUTHORS [skip ci] 2022-06-10 11:26:59 +00:00
8ce480c6b9 chore(deps): bump semantic-release in /scripts/monorepo-semantic-release (#2207)
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.2.2 to 19.0.3.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.2.2...v19.0.3)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-10 19:22:09 +08:00
e978b8d0e5 chore: update contributors [skip ci] 2022-06-10 11:21:52 +00:00
a335e1c52f docs: Change the getCellById method parameter name (#2209)
The cell is changed to id
2022-06-10 19:20:36 +08:00
3e4481063d chore: update contributors [skip ci] 2022-06-10 09:31:57 +00:00
50d21787c4 fix(selection): 🐛 Fix nodes in multiple-selection being more than once due to incorrect event handler stopper 2022-06-10 17:31:33 +08:00
32cae56c40 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-06-07)
2022-06-07 09:10:39 +00:00
667720efb9 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-06-07)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))
2022-06-07 09:10:35 +00:00
76d98ded26 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-06-07)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-06-07 09:10:29 +00:00
3302c56bd4 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-06-07)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-06-07 09:10:23 +00:00
3dba62a858 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-06-07)
2022-06-07 09:10:18 +00:00
9befb7d8db chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-06-07)
2022-06-07 09:10:14 +00:00
e1e295b64e chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-06-07)
2022-06-07 09:10:10 +00:00
06fdf6315b chore(release): @antv/x6-package-json@1.0.2 [skip ci]
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-07)
2022-06-07 09:10:07 +00:00
bc6e8bcb28 chore(deps): bump codecov/codecov-action from 1 to 3 (#2189)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 16:54:49 +08:00
892d74e56b chore(deps): bump actions/stale from 3 to 5 (#2188)
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 5.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v5)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 16:54:31 +08:00
bf9f6f1947 chore(deps): bump dessant/lock-threads from 2 to 3 (#2187)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 2 to 3.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 16:54:05 +08:00
4304dd9322 chore(deps): bump actions/cache from 2 to 3 (#2186)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 16:53:47 +08:00
4381a8a339 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-06-06)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))
2022-06-06 04:00:32 +00:00
fc2fccaee0 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-06-06)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-06-06 04:00:28 +00:00
a5c75d3e0f chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-06-06)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-06-06 04:00:23 +00:00
049090e009 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-06-06)
2022-06-06 04:00:18 +00:00
2da5b71540 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-06-06)
2022-06-06 04:00:15 +00:00
37875b8245 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-06-06)
2022-06-06 04:00:11 +00:00
cd4c142da1 chore(release): @antv/x6-package-json@1.0.2 [skip ci]
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-06)
2022-06-06 04:00:08 +00:00
f86d935f05 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-06-06)
2022-06-06 04:00:05 +00:00
992b0b8366 docs: 📚️ optimize dagre options (#2184) 2022-06-06 11:46:15 +08:00
8a4a677b77 chore(deps): bump devcert from 1.1.3 to 1.2.1 (#2182)
Bumps [devcert](https://github.com/davewasmer/devcert) from 1.1.3 to 1.2.1.
- [Release notes](https://github.com/davewasmer/devcert/releases)
- [Changelog](https://github.com/davewasmer/devcert/blob/master/CHANGELOG.md)
- [Commits](https://github.com/davewasmer/devcert/compare/v1.1.3...v1.2.1)

---
updated-dependencies:
- dependency-name: devcert
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 09:47:53 +08:00
da55ef7a60 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-06-05)
2022-06-05 08:40:35 +00:00
54b9debbce chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-06-05)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))
2022-06-05 08:40:32 +00:00
eef4a6df4c chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-06-05)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-06-05 08:40:27 +00:00
bf7540c1f9 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-06-05)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-06-05 08:40:23 +00:00
eb98529391 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-06-05)
2022-06-05 08:40:18 +00:00
0e5ff9204a chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-06-05)
2022-06-05 08:40:15 +00:00
6115dbbd75 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-06-05)
2022-06-05 08:40:11 +00:00
3f786136b4 chore(release): @antv/x6-angular-shape@1.3.1 [skip ci]
## @antv/x6-angular-shape [1.3.1](https://github.com/antvis/x6/compare/@antv/x6-angular-shape@1.3.0...@antv/x6-angular-shape@1.3.1) (2022-06-05)
2022-06-05 08:40:08 +00:00
431116f629 chore(release): @antv/x6-package-json@1.0.2 [skip ci]
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-05)
2022-06-05 08:40:05 +00:00
cbbe1b6b54 chore(deps-dev): bump @angular/core from 10.2.5 to 11.0.5 (#2181)
Bumps [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core) from 10.2.5 to 11.0.5.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.0.5/packages/core)

---
updated-dependencies:
- dependency-name: "@angular/core"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-05 16:24:25 +08:00
d02ad4cb3b chore(deps): bump actions/labeler from 2 to 4 (#2170)
Bumps [actions/labeler](https://github.com/actions/labeler) from 2 to 4.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 07:25:36 +08:00
a9f0dd35b9 chore(deps): bump Naturalclar/issue-action from 2.0.1 to 2.0.2 (#2169)
Bumps [Naturalclar/issue-action](https://github.com/Naturalclar/issue-action) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/Naturalclar/issue-action/releases)
- [Commits](https://github.com/Naturalclar/issue-action/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: Naturalclar/issue-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 07:25:09 +08:00
484df66d36 chore(deps): bump actions/checkout from 2 to 3 (#2168)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 07:24:44 +08:00
0d691c61cd chore: update contributors [skip ci] 2022-05-31 23:24:14 +00:00
5849eb9a88 chore(deps): bump peter-evans/repository-dispatch from 1 to 2 (#2167)
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 2.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 07:24:10 +08:00
c285ce6e0f chore(deps): bump actions/setup-node from 1 to 3 (#2166)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 07:23:44 +08:00
817d08ff41 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-05-31)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:55 +00:00
d63f26023f chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-05-31)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:50 +00:00
a56182ee06 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-05-31)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:44 +00:00
51819712e7 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-05-31)

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:39 +00:00
92db8470a1 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-05-31)

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:35 +00:00
3e512b92b7 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-05-31)

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:30 +00:00
4f72b0d5c1 chore(release): @antv/x6@1.32.3 [skip ci]
## @antv/x6 [1.32.3](https://github.com/antvis/x6/compare/@antv/x6@1.32.2...@antv/x6@1.32.3) (2022-05-31)

### Bug Fixes

* 🐛 Fixed the error when a node meet an invisiable node in node:embedding event ([#2129](https://github.com/antvis/x6/issues/2129)) ([6ef7f55](6ef7f55334))
2022-05-31 13:03:26 +00:00
045412de6d chore(release): @antv/x6-package-json@1.0.2 [skip ci]
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-05-31)
2022-05-31 13:03:21 +00:00
4b7c565305 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-05-31)

### Dependencies

* **@antv/x6:** upgraded to 1.32.3
2022-05-31 13:03:17 +00:00
d2056dbc21 chore: Included githubactions in the dependabot config (#2157)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-31 20:47:52 +08:00
a555693442 chore: update contributors [skip ci] 2022-05-31 01:30:08 +00:00
dc5f606edb chore: update AUTHORS [skip ci] 2022-05-30 08:39:40 +00:00
bba7307bd1 chore: Set permissions for GitHub actions (#2148)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-30 16:31:20 +08:00
07794dc611 chore(deps): bump workspace-tools from 0.12.3 to 0.18.4 (#2135)
Bumps [workspace-tools](https://github.com/microsoft/workspace-tools) from 0.12.3 to 0.18.4.
- [Release notes](https://github.com/microsoft/workspace-tools/releases)
- [Changelog](https://github.com/microsoft/workspace-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/microsoft/workspace-tools/compare/workspace-tools_v0.12.3...workspace-tools_v0.18.4)

---
updated-dependencies:
- dependency-name: workspace-tools
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-30 16:30:54 +08:00
e1c0a99458 chore: 🔧 update node version for workflows (#2152) 2022-05-30 16:18:01 +08:00
0c25aedd12 chore: update contributors [skip ci] 2022-05-25 07:59:25 +00:00
6ef7f55334 fix: 🐛 Fixed the error when a node meet an invisiable node in node:embedding event (#2129) 2022-05-25 15:58:59 +08:00
c97de2c807 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-05-17)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:35 +00:00
dc62dd9390 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-05-17)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:30 +00:00
56234ae8d7 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-05-17)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:25 +00:00
eb81f1b856 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-05-17)

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:19 +00:00
2fd1033009 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-05-17)

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:15 +00:00
a654adf88f chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-05-17)

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:11 +00:00
8633398149 chore(release): @antv/x6@1.32.2 [skip ci]
## @antv/x6 [1.32.2](https://github.com/antvis/x6/compare/@antv/x6@1.32.1...@antv/x6@1.32.2) (2022-05-17)

### Bug Fixes

* 🐛 fix minimap error in after resize graph ([#2117](https://github.com/antvis/x6/issues/2117)) ([e1bb928](e1bb9289b0))
2022-05-17 07:46:07 +00:00
4afc9df1ed chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-05-17)

### Dependencies

* **@antv/x6:** upgraded to 1.32.2
2022-05-17 07:46:03 +00:00
e1bb9289b0 fix: 🐛 fix minimap error in after resize graph (#2117) 2022-05-17 15:29:36 +08:00
3ee97bef65 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-05-16)

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:46:25 +00:00
4015bb6667 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-05-16)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:46:21 +00:00
586eb49032 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-05-16)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
* **@antv/x6-vector:** upgraded to 1.4.0
2022-05-16 06:46:17 +00:00
52b7b51b45 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-05-16)

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:46:12 +00:00
852843ba59 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-05-16)

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:46:08 +00:00
01444b4677 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-05-16)

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:46:04 +00:00
76e0f973e6 chore(release): @antv/x6@1.32.1 [skip ci]
## @antv/x6 [1.32.1](https://github.com/antvis/x6/compare/@antv/x6@1.32.0...@antv/x6@1.32.1) (2022-05-16)

### Bug Fixes

* 🐛 auto zoom minimap graph to fit content ([#2111](https://github.com/antvis/x6/issues/2111)) ([12e3e89](12e3e8969f))
2022-05-16 06:46:01 +00:00
619a6df36e chore(release): @antv/x6-vector@1.4.0 [skip ci]
# @antv/x6-vector [1.4.0](https://github.com/antvis/x6/compare/@antv/x6-vector@1.3.1...@antv/x6-vector@1.4.0) (2022-05-16)

### Bug Fixes

* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](de59617532))

### Features

*  unified minimap interaction between scroller and panning ([#2109](https://github.com/antvis/x6/issues/2109)) ([3c7c06a](3c7c06ac30))
2022-05-16 06:45:57 +00:00
082c5e04cf chore(release): @antv/x6-geometry@1.0.12 [skip ci]
## @antv/x6-geometry [1.0.12](https://github.com/antvis/x6/compare/@antv/x6-geometry@1.0.11...@antv/x6-geometry@1.0.12) (2022-05-16)

### Bug Fixes

* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](de59617532))
2022-05-16 06:45:54 +00:00
5b2020d4d0 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-05-16)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.32.1
2022-05-16 06:45:50 +00:00
12e3e8969f fix: 🐛 auto zoom minimap graph to fit content (#2111) 2022-05-16 14:30:19 +08:00
cde133781a chore(release): @antv/x6-svg-to-shape@1.0.7 [skip ci]
## @antv/x6-svg-to-shape [1.0.7](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.6...@antv/x6-svg-to-shape@1.0.7) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:47 +00:00
fdb7563d21 chore(release): @antv/x6-sites@1.5.1 [skip ci]
## @antv/x6-sites [1.5.1](https://github.com/antvis/x6/compare/@antv/x6-sites@1.5.0...@antv/x6-sites@1.5.1) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:44 +00:00
ffe8306851 chore(release): @antv/x6-sites-demos@1.2.2 [skip ci]
## @antv/x6-sites-demos [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.1...@antv/x6-sites-demos@1.2.2) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:42 +00:00
96ad752ccc chore(release): @antv/x6-app-er@1.1.8 [skip ci]
## @antv/x6-app-er [1.1.8](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.7...@antv/x6-app-er@1.1.8) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:39 +00:00
0dcb61262a chore(release): @antv/x6-app-draw@1.1.7 [skip ci]
## @antv/x6-app-draw [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.6...@antv/x6-app-draw@1.1.7) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:36 +00:00
2e91808200 chore(release): @antv/x6-app-dag@1.1.8 [skip ci]
## @antv/x6-app-dag [1.1.8](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.7...@antv/x6-app-dag@1.1.8) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
2022-05-14 10:47:33 +00:00
8cc9c3f257 chore(release): @antv/x6@1.32.0 [skip ci]
# @antv/x6 [1.32.0](https://github.com/antvis/x6/compare/@antv/x6@1.31.5...@antv/x6@1.32.0) (2022-05-14)

### Features

*  unified minimap interaction between scroller and panning ([#2109](https://github.com/antvis/x6/issues/2109)) ([3c7c06a](3c7c06ac30))
2022-05-14 10:47:31 +00:00
fa34253f0a chore(release): @antv/x6-vector@1.4.0 [skip ci]
# @antv/x6-vector [1.4.0](https://github.com/antvis/x6/compare/@antv/x6-vector@1.3.2...@antv/x6-vector@1.4.0) (2022-05-14)

### Features

*  unified minimap interaction between scroller and panning ([#2109](https://github.com/antvis/x6/issues/2109)) ([3c7c06a](3c7c06ac30))
2022-05-14 10:47:28 +00:00
78f1f534a1 chore(release): @antv/x6-example-features@1.2.3 [skip ci]
## @antv/x6-example-features [1.2.3](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.2...@antv/x6-example-features@1.2.3) (2022-05-14)

### Dependencies

* **@antv/x6:** upgraded to 1.32.0
* **@antv/x6-vector:** upgraded to 1.4.0
2022-05-14 10:47:25 +00:00
3c7c06ac30 feat: unified minimap interaction between scroller and panning (#2109) 2022-05-14 17:39:24 +08:00
5036dca96d chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-05-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:47 +00:00
ec419f8845 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-05-09)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:44 +00:00
2d4ca77d46 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-05-09)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
* **@antv/x6-vector:** upgraded to 1.3.2
2022-05-09 06:52:40 +00:00
c3fd2a2441 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-05-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:36 +00:00
082d1f875b chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-05-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:33 +00:00
4efdb3660d chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-05-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:30 +00:00
fc06ff66d4 chore(release): @antv/x6@1.31.5 [skip ci]
## @antv/x6 [1.31.5](https://github.com/antvis/x6/compare/@antv/x6@1.31.4...@antv/x6@1.31.5) (2022-05-09)

### Bug Fixes

* 🐛 fix the graph function zoomTo not return the graph instance. ([#2090](https://github.com/antvis/x6/issues/2090)) ([692a4ee](692a4ee1b0))
* 🐛 not rerender tools when edge update ([#2095](https://github.com/antvis/x6/issues/2095)) ([26ce96f](26ce96f7a2))
* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](de59617532))
2022-05-09 06:52:28 +00:00
372d5f3031 chore(release): @antv/x6-vue-shape@1.4.0 [skip ci]
# @antv/x6-vue-shape [1.4.0](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@1.3.2...@antv/x6-vue-shape@1.4.0) (2022-05-09)

### Features

* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:25 +00:00
d87b2a7eaf chore(release): @antv/x6-vector@1.3.2 [skip ci]
## @antv/x6-vector [1.3.2](https://github.com/antvis/x6/compare/@antv/x6-vector@1.3.1...@antv/x6-vector@1.3.2) (2022-05-09)

### Bug Fixes

* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](de59617532))
2022-05-09 06:52:22 +00:00
78a2a0bfe0 chore(release): @antv/x6-geometry@1.0.12 [skip ci]
## @antv/x6-geometry [1.0.12](https://github.com/antvis/x6/compare/@antv/x6-geometry@1.0.11...@antv/x6-geometry@1.0.12) (2022-05-09)

### Bug Fixes

* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](de59617532))
2022-05-09 06:52:20 +00:00
ac56327b41 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-05-09)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
* vue3支持使用useTeleport ([#2078](https://github.com/antvis/x6/issues/2078)) ([b8c2175](b8c217572a))

### Dependencies

* **@antv/x6:** upgraded to 1.31.5
2022-05-09 06:52:16 +00:00
26ce96f7a2 fix: 🐛 not rerender tools when edge update (#2095) 2022-05-09 14:39:26 +08:00
cfb77ae4cf chore: update contributors [skip ci] 2022-05-09 01:30:25 +00:00
c7a335177b chore: update AUTHORS [skip ci] 2022-05-08 02:15:03 +00:00
692a4ee1b0 fix: 🐛 fix the graph function zoomTo not return the graph instance. (#2090) 2022-05-08 10:09:16 +08:00
5d6f4fe15e chore: update AUTHORS [skip ci] 2022-05-07 03:09:05 +00:00
a4411d0f88 chore: update contributors [skip ci] 2022-05-07 03:02:41 +00:00
b8c217572a feat: vue3支持使用useTeleport (#2078)
* feat:  vue3支持使用useTeleport

* feat:  更新文档使用useTeleport

* feat:  兼容vue2.x

* feat:  更新文档使用useTeleport

* feat:  reset package.json
2022-05-07 11:02:18 +08:00
48b3577023 chore: update AUTHORS [skip ci] 2022-05-07 02:25:36 +00:00
20f68caa3a chore: update contributors [skip ci] 2022-05-07 02:24:19 +00:00
ae4ed52b69 docs: 📚️ add selection options description (#2086) 2022-05-07 10:23:59 +08:00
fe41710467 docs: update api desciption of addTools (#2087)
Co-authored-by: jiqili <5512490+xiaogegeya@user.noreply.gitee.com>
2022-05-07 10:19:50 +08:00
0d34cdd0cc chore: update AUTHORS [skip ci] 2022-05-06 13:04:21 +00:00
a9c0decd14 chore: update contributors [skip ci] 2022-05-06 12:57:57 +00:00
de59617532 fix: remove the browserslist configuration in package.json (#2084) 2022-05-06 20:57:31 +08:00
89da6b32cc chore: update contributors [skip ci] 2022-05-02 01:31:08 +00:00
bb07735f36 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-05-01)
2022-05-01 06:53:43 +00:00
88f04625ed chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-05-01)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
2022-05-01 06:53:41 +00:00
74d3b24c6f chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-05-01)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-05-01 06:53:37 +00:00
f43edba970 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-05-01)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-05-01 06:53:34 +00:00
cd006184c3 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-05-01)
2022-05-01 06:53:31 +00:00
322dec6a4a chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-05-01)
2022-05-01 06:53:28 +00:00
47e7e67574 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-05-01)
2022-05-01 06:53:26 +00:00
60954137d3 docs: update doc api (#2076) 2022-05-01 14:41:38 +08:00
61c7d7f015 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-26)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
2022-04-26 00:56:39 +00:00
c7c3415300 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-26)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-04-26 00:56:35 +00:00
7e64838e00 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-26)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-04-26 00:56:30 +00:00
7c18c7d5ff chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-26)
2022-04-26 00:56:25 +00:00
7ea2ab1141 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-26)
2022-04-26 00:56:21 +00:00
0115917836 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-26)
2022-04-26 00:56:17 +00:00
b184f8ca1c chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-26)
2022-04-26 00:56:13 +00:00
1abb62e14a docs: 📚️ optimize custom node demo (#2057) 2022-04-26 08:41:21 +08:00
ed5cdfb384 chore: update AUTHORS [skip ci] 2022-04-24 13:16:56 +00:00
7a0f33c5a2 chore: update contributors [skip ci] 2022-04-24 13:11:20 +00:00
qu
1de788cfaa docs: correct code mistake (#2050) 2022-04-24 21:10:49 +08:00
4d016760c7 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-21)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:56 +00:00
47487fe604 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-21)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:53 +00:00
6711d06fa1 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-21)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:49 +00:00
83e4bd96e9 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-21)

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:45 +00:00
2a340936a0 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-21)

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:42 +00:00
3967110b6e chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-21)

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:39 +00:00
66b2a44845 chore(release): @antv/x6@1.31.4 [skip ci]
## @antv/x6 [1.31.4](https://github.com/antvis/x6/compare/@antv/x6@1.31.3...@antv/x6@1.31.4) (2022-04-21)

### Bug Fixes

* 🐛 exclude case-sensitive-attr in kebablizeAttrs ([#2031](https://github.com/antvis/x6/issues/2031)) ([1e513ad](1e513adfde))
2022-04-21 12:26:37 +00:00
be52637c60 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-21)

### Dependencies

* **@antv/x6:** upgraded to 1.31.4
2022-04-21 12:26:34 +00:00
1e513adfde fix: 🐛 exclude case-sensitive-attr in kebablizeAttrs (#2031) 2022-04-21 20:15:18 +08:00
38857171ed chore: update contributors [skip ci] 2022-04-19 01:30:51 +00:00
88e0222422 chore: update AUTHORS [skip ci] 2022-04-18 01:56:34 +00:00
63254bbf79 docs: update doc api (#2015) 2022-04-18 09:51:18 +08:00
d6242db65c chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-13)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
2022-04-13 01:59:56 +00:00
0efe5c5145 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-13)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-04-13 01:59:52 +00:00
18780ddddd chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-13)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-04-13 01:59:49 +00:00
45d45de9e0 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-13)
2022-04-13 01:59:45 +00:00
4a8ce47c46 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-13)
2022-04-13 01:59:42 +00:00
c1e0d5afed chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-13)
2022-04-13 01:59:39 +00:00
1a57746c36 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-13)
2022-04-13 01:59:36 +00:00
a49d004b03 chore(deps): bump urijs from 1.19.10 to 1.19.11 (#2007)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.10...v1.19.11)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 09:46:55 +08:00
b4641440b6 chore: update contributors [skip ci] 2022-04-11 23:43:09 +00:00
e9332a74a9 docs: update doc api (#1991)
Co-authored-by: DanielLeefu <you@2228429150@qq.com>
2022-04-12 07:42:45 +08:00
04e98cfe9b chore: update contributors [skip ci] 2022-04-11 01:30:41 +00:00
69615f92ab chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-09)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:53 +00:00
a7e7add2a8 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-09)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:50 +00:00
af281c4a48 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-09)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:46 +00:00
c2efaaf71c chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:43 +00:00
73880a47d0 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:40 +00:00
b91869655d chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:38 +00:00
0879a143f9 chore(release): @antv/x6@1.31.3 [skip ci]
## @antv/x6 [1.31.3](https://github.com/antvis/x6/compare/@antv/x6@1.31.2...@antv/x6@1.31.3) (2022-04-09)

### Bug Fixes

* fix animationOptions type ([#1989](https://github.com/antvis/x6/issues/1989)) ([5020e92](5020e92ce8))
2022-04-09 04:34:35 +00:00
56ba335afb chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.3
2022-04-09 04:34:32 +00:00
5020e92ce8 fix: fix animationOptions type (#1989)
* fix: 🐛 update dnd widget zIndex

* fix: 🐛 fix animateOptions type
2022-04-09 12:23:06 +08:00
93f0adaf96 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-09)
2022-04-09 01:20:40 +00:00
248846731b chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-09)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
2022-04-09 01:20:37 +00:00
b8e2d52f9a chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-09)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-04-09 01:20:34 +00:00
8ae13da838 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-09)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))
2022-04-09 01:20:30 +00:00
446f433648 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-09)
2022-04-09 01:20:27 +00:00
f3d5c30ee7 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-09)
2022-04-09 01:20:24 +00:00
94cf18e5f8 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-09)
2022-04-09 01:20:21 +00:00
314fee4606 docs: 📚️ optimize tooltip tools (#1988) 2022-04-09 09:08:26 +08:00
7816a8fd47 chore(deps): bump moment in /scripts/monorepo-semantic-release (#1986)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 09:04:35 +08:00
5d597f5809 chore(deps): bump moment from 2.29.1 to 2.29.2 (#1987)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 09:04:21 +08:00
b389b5654f chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-09)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:36:11 +00:00
cd6514abef chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-09)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:36:07 +00:00
5b24ec1cee chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-09)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:36:02 +00:00
822310ecfa chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:35:57 +00:00
2d053f1bf6 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:35:54 +00:00
fe0a81f6f2 chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:35:50 +00:00
86362513e7 chore(release): @antv/x6@1.31.2 [skip ci]
## @antv/x6 [1.31.2](https://github.com/antvis/x6/compare/@antv/x6@1.31.1...@antv/x6@1.31.2) (2022-04-09)

### Bug Fixes

* 🐛 change copystyle not include number propery when toSvg ([#1985](https://github.com/antvis/x6/issues/1985)) ([214b927](214b92704d))
* 🐛 fix scroller resize size miscalculation when graph resize ([#1977](https://github.com/antvis/x6/issues/1977)) ([e6de636](e6de6363ae))
2022-04-09 00:35:47 +00:00
624838fe23 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-09)

### Dependencies

* **@antv/x6:** upgraded to 1.31.2
2022-04-09 00:35:44 +00:00
214b92704d fix: 🐛 change copystyle not include number propery when toSvg (#1985) 2022-04-09 08:23:28 +08:00
9594778ddb chore: update AUTHORS [skip ci] 2022-04-08 02:56:34 +00:00
761f1b9144 chore: update contributors [skip ci] 2022-04-08 02:50:46 +00:00
e6de6363ae fix: 🐛 fix scroller resize size miscalculation when graph resize (#1977)
Co-authored-by: mrmengj <mrmengj@gmail.como>
2022-04-08 10:50:25 +08:00
7f90fcf3b1 chore: update contributors [skip ci] 2022-04-08 01:29:25 +00:00
05f86b52b2 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-05)
2022-04-05 13:08:43 +00:00
35a9531254 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-05)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))
2022-04-05 13:08:40 +00:00
5c084bf8f0 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-05)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6-vector:** upgraded to 1.3.1
2022-04-05 13:08:36 +00:00
34c82a1b45 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-05)
2022-04-05 13:08:32 +00:00
c3d54ad2e5 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-05)
2022-04-05 13:08:29 +00:00
a1dbd1095e chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-05)
2022-04-05 13:08:26 +00:00
a30d850c0f chore(release): @antv/x6-vector@1.3.1 [skip ci]
## @antv/x6-vector [1.3.1](https://github.com/antvis/x6/compare/@antv/x6-vector@1.3.0...@antv/x6-vector@1.3.1) (2022-04-05)

### Bug Fixes

* 🐛 fix lgtm alert ([#1975](https://github.com/antvis/x6/issues/1975)) ([7440903](7440903281))
2022-04-05 13:08:23 +00:00
c3134d5fd6 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-05)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))
2022-04-05 13:08:20 +00:00
85be9ec734 chore(deps): bump minimist in /scripts/monorepo-semantic-release (#1976)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-05 20:55:51 +08:00
5c00e45d37 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-04-05)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:49 +00:00
3ec0d432a3 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-04-05)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:46 +00:00
ea4ea45e46 chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-04-05)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
* **@antv/x6-vector:** upgraded to 1.3.1
2022-04-05 02:15:42 +00:00
45cdd0980c chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-04-05)

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:38 +00:00
40f6496aea chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-04-05)

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:35 +00:00
12ab1057fe chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-04-05)

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:32 +00:00
bd33449b2d chore(release): @antv/x6@1.31.1 [skip ci]
## @antv/x6 [1.31.1](https://github.com/antvis/x6/compare/@antv/x6@1.31.0...@antv/x6@1.31.1) (2022-04-05)

### Bug Fixes

* 🐛 fix lgtm alert ([#1975](https://github.com/antvis/x6/issues/1975)) ([7440903](7440903281))
2022-04-05 02:15:30 +00:00
96271dc298 chore(release): @antv/x6-vue-shape@1.3.2 [skip ci]
## @antv/x6-vue-shape [1.3.2](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@1.3.1...@antv/x6-vue-shape@1.3.2) (2022-04-05)

### Bug Fixes

* **x6-vue-shape:** 🐛 error on removing fragment node ([#1974](https://github.com/antvis/x6/issues/1974)) ([6614e4f](6614e4f83c))

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:27 +00:00
5f2b46b34c chore(release): @antv/x6-vector@1.3.1 [skip ci]
## @antv/x6-vector [1.3.1](https://github.com/antvis/x6/compare/@antv/x6-vector@1.3.0...@antv/x6-vector@1.3.1) (2022-04-05)

### Bug Fixes

* 🐛 fix lgtm alert ([#1975](https://github.com/antvis/x6/issues/1975)) ([7440903](7440903281))
2022-04-05 02:15:24 +00:00
bfd48e644e chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-04-05)

### Dependencies

* **@antv/x6:** upgraded to 1.31.1
2022-04-05 02:15:21 +00:00
7440903281 fix: 🐛 fix lgtm alert (#1975) 2022-04-05 10:01:38 +08:00
769186b043 chore: update AUTHORS [skip ci] 2022-04-04 13:42:42 +00:00
b2dce8e69f chore: update contributors [skip ci] 2022-04-04 13:37:38 +00:00
6614e4f83c fix(x6-vue-shape): 🐛 error on removing fragment node (#1974) 2022-04-04 21:37:09 +08:00
c51043d468 chore: update contributors [skip ci] 2022-04-02 01:31:16 +00:00
0a0cbf9f50 chore: update contributors [skip ci] 2022-03-27 01:28:53 +00:00
09a4cf3f8b chore: update AUTHORS [skip ci] 2022-03-27 00:44:35 +00:00
a9ccf98bf1 fix wrong url of quick-start (#1944)
fix wrong url of quick-start from /zh/docs/tutorialgetting-started to /zh/docs/tutorial/getting-started
2022-03-27 08:38:09 +08:00
3cafa37292 doc: QR code in one line 2022-03-25 11:05:44 +08:00
99e42a95b1 chore(release): @antv/x6-sites@1.5.0 [skip ci]
# @antv/x6-sites [1.5.0](https://github.com/antvis/x6/compare/@antv/x6-sites@1.4.1...@antv/x6-sites@1.5.0) (2022-03-23)

### Bug Fixes

* 🐛 add updateCellId api ([#1739](https://github.com/antvis/x6/issues/1739)) ([78cdb3b](78cdb3bd56))
* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 release x6 v1.28.2 ([#1654](https://github.com/antvis/x6/issues/1654)) ([745b90a](745b90ac94))

### Features

*  add insertPort api ([#1763](https://github.com/antvis/x6/issues/1763)) ([6809dba](6809dba2d8))

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:09:07 +00:00
f79151abd0 chore(release): @antv/x6-sites-demos@1.2.1 [skip ci]
## @antv/x6-sites-demos [1.2.1](https://github.com/antvis/x6/compare/@antv/x6-sites-demos@1.2.0...@antv/x6-sites-demos@1.2.1) (2022-03-23)

### Bug Fixes

* 🐛 not create label when text is empty ([#1783](https://github.com/antvis/x6/issues/1783)) ([ed1fcd1](ed1fcd1f26))
* 🐛 update x6 version ([#1655](https://github.com/antvis/x6/issues/1655)) ([07037be](07037beb59))

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:09:04 +00:00
6a006f3dcd chore(release): @antv/x6-example-features@1.2.2 [skip ci]
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/x6-example-features@1.2.1...@antv/x6-example-features@1.2.2) (2022-03-23)

### Bug Fixes

* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([cc01fdf](cc01fdf208))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](4208846337))

### Performance Improvements

* ️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](0b5f2413f0))

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:09:00 +00:00
e42f4fe2d4 chore(release): @antv/x6-app-er@1.1.7 [skip ci]
## @antv/x6-app-er [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-er@1.1.6...@antv/x6-app-er@1.1.7) (2022-03-23)

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:08:56 +00:00
9f342b68d0 chore(release): @antv/x6-app-draw@1.1.6 [skip ci]
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/x6-app-draw@1.1.5...@antv/x6-app-draw@1.1.6) (2022-03-23)

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:08:53 +00:00
6eb4e4fafd chore(release): @antv/x6-app-dag@1.1.7 [skip ci]
## @antv/x6-app-dag [1.1.7](https://github.com/antvis/x6/compare/@antv/x6-app-dag@1.1.6...@antv/x6-app-dag@1.1.7) (2022-03-23)

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:08:50 +00:00
fba8cf0ce6 chore(release): @antv/x6@1.31.0 [skip ci]
# @antv/x6 [1.31.0](https://github.com/antvis/x6/compare/@antv/x6@1.30.2...@antv/x6@1.31.0) (2022-03-23)

### Bug Fixes

* 🐛 change the order of statement ([#1910](https://github.com/antvis/x6/issues/1910)) ([eff14ba](eff14baca7))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](4d174d7807))

### Features

*  delete the new Function mode to avoid the CSP policy ([#1921](https://github.com/antvis/x6/issues/1921)) ([157b207](157b2072f3))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](4ae1b9ef4f))
2022-03-23 02:08:48 +00:00
a7b7f0bc43 chore(release): @antv/x6-svg-to-shape@1.0.6 [skip ci]
## @antv/x6-svg-to-shape [1.0.6](https://github.com/antvis/x6/compare/@antv/x6-svg-to-shape@1.0.5...@antv/x6-svg-to-shape@1.0.6) (2022-03-23)

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
2022-03-23 02:08:44 +00:00
157b2072f3 feat: delete the new Function mode to avoid the CSP policy (#1921) 2022-03-23 07:22:03 +08:00
bdf7d7b628 chore: update AUTHORS [skip ci] 2022-03-21 05:24:22 +00:00
eff14baca7 fix: 🐛 change the order of statement (#1910) 2022-03-21 13:18:05 +08:00
3732 changed files with 286290 additions and 230037 deletions

View File

@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

View File

@ -1,11 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}

View File

@ -11,10 +11,11 @@ coverage:
threshold: 1%
flags:
- x6
x6-common:
x6-vector:
threshold: 1%
target: 80% # will fail a Pull Request if coverage is less than 80%
flags:
- x6-common
- x6-vector
x6-geometry:
threshold: 1%
flags:
@ -25,9 +26,9 @@ flags:
paths:
# filter the folder(s) you wish to measure by that flag
- packages/x6
x6-common:
x6-vector:
paths:
- packages/x6-common
- packages/x6-vector
x6-geometry:
paths:
- packages/x6-geometry

155
.eslintrc
View File

@ -1,156 +1,3 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-comments",
"import",
"flowtype",
"jest",
"jsx-a11y",
"prettier",
"promise",
"react",
"react-hooks",
"unicorn"
],
"extends": [
"airbnb-base",
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:promise/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true,
"mocha": true,
"jasmine": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"requireConfigFile": false
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-bitwise": 0,
"no-continue": 0,
"no-lonely-if": 0,
"no-multi-assign": 0,
"no-nested-ternary": 0,
"no-inner-declarations": 0,
"no-unused-expressions": 0,
"max-classes-per-file": 0,
"prefer-destructuring": 0,
"class-methods-use-this": 0,
"implicit-arrow-linebreak": 0,
"lines-between-class-members": 0,
"@typescript-eslint/lines-between-class-members": 0,
"consistent-return": 0,
"no-return-assign": [2, "except-parens"],
"no-param-reassign": [
2,
{
"props": false
}
],
"no-cond-assign": [2, "except-parens"],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
],
"@typescript-eslint/no-unused-expressions": [
2,
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"eqeqeq": [
2,
"always",
{
"null": "ignore"
}
],
"func-names": [
1,
"never",
{
"generators": "as-needed"
}
],
"import/export": 0,
"import/no-cycle": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"promise/always-return": 0,
"promise/catch-or-return": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"no-shadow": 0,
"@typescript-eslint/no-shadow": 0,
"camelcase": 0,
"@typescript-eslint/camelcase": 0,
"no-use-before-define": 0,
"@typescript-eslint/no-use-before-define": 0,
"no-useless-constructor": 0,
"@typescript-eslint/no-useless-constructor": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"no-redeclare": 0,
"@typescript-eslint/no-redeclare": [
2,
{
"ignoreDeclarationMerge": true
}
],
"react/sort-comp": 0,
"react/prop-types": 0,
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 0,
"react/no-access-state-in-setstate": 0
},
"overrides": [
{
"files": ["**/*.js"],
"rules": {
"no-console": 0,
"global-require": 0
}
}
]
"extends": "@antv/eslint-config"
}

View File

@ -75,7 +75,7 @@ body:
value: |
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.11.1]
- Version: [e.g. 91.1]
validations:
required: true
- type: textarea

View File

@ -51,8 +51,8 @@ body:
label: 平台
value: |
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- X6 版本: [1.28.2 ... ]
validations:
required: true
- type: textarea

View File

@ -35,4 +35,4 @@
- [ ] I have updated the documentation accordingly.
- [ ] I have read the [**CONTRIBUTING**](https://github.com/antvis/x6/blob/master/CONTRIBUTING.md) document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] All new and existing tests passed.

6
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@ -1,5 +1,5 @@
# This action will automatically close issues fixed in
# pull requests that doesn't target the default branch.
# Automatically close issues fixed in pull requests that doesn't target the default branch.
name: 🚫 Auto Close Fixed Issues
on:
pull_request_target:
@ -8,12 +8,13 @@ jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/auto-close-fixed-issues@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
comment: |
This issue was closed by #{{ pr }}.

View File

@ -1,13 +1,16 @@
# Comment on issues/PRs on certain events (currently not used at all.)
name: 💬 Auto Comment
on: [issues, pull_request_target]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/auto-comment@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -0,0 +1,19 @@
name: 🧑 Auto Assign
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/auto-assign@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}
CONFIG_FILE: .github/workflows/config/auto-assign.yml

View File

@ -1,3 +1,5 @@
# Continuous integration.
name: 👷 CI
on:
pull_request_target:
@ -11,77 +13,58 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: 🎉 Setup nodejs
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: 🎉 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false
- name: 🌱 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🚸 Setup pnpm cache
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Cache Directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🚧 Install
run: pnpm install --no-frozen-lockfile --ignore-scripts
- name: 🚀 Build
run: pnpm run build
${{ runner.os }}-yarn-
- name: 🚧 Prepare
run: yarn global add lerna
- name: 🚀 Bootstrap
run: yarn bootstrap
- name:  Test
run: pnpm run test
run: yarn test
- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v2
uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: 💡 Codecov
env_name: bot_token
- name: 💡 Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ env.bot_token }}
path-to-lcov: ./packages/x6/test/coverage/lcov.info
- name: 💡 Codecov(x6)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6/test/coverage/lcov.info
flags: x6
- name: 🔀 Dispatch(ci_passed)
uses: peter-evans/repository-dispatch@v2
- name: 💡 Codecov(x6-vector)
uses: codecov/codecov-action@v3
with:
token: ${{ env.BOT_TOKEN }}
event-type: ci_passed
- name: 🔀 Dispatch(ci_pr_passed)
if: github.event_name == 'pull_request_target'
uses: peter-evans/repository-dispatch@v2
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6-vector/test/coverage/lcov.info
flags: x6-vector
- name: 💡 Codecov(x6-geometry)
uses: codecov/codecov-action@v3
with:
token: ${{ env.BOT_TOKEN }}
event-type: ci_pr_passed
- name: 🔀 Dispatch(ci_master_passed)
if: github.event_name == 'push'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ env.BOT_TOKEN }}
event-type: ci_master_passed
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6-geometry/test/coverage/lcov.info
flags: x6-geometry

View File

@ -0,0 +1,7 @@
assignees:
- NewByVector
reviewers:
- bubkoo
- NewByVector
skipKeywords:
- wip

View File

@ -138,6 +138,9 @@
- name: pkg:x6
color: eeeeee
description: Denotes a PR that changes packages/x6
- name: pkg:x6-react
color: eeeeee
description: Denotes a PR that changes packages/x6-react
- name: pkg:x6-react-shape
color: eeeeee
description: Denotes a PR that changes packages/x6-react-shape

View File

@ -0,0 +1,20 @@
# Create a new branch dedicated to a specific issue
# (may be superseded by GitHub functionalities)
name: 🚧 Create Issue Branch
on:
issue_comment:
types: [created]
jobs:
cib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -0,0 +1,29 @@
# Delete all but the last x GitHub releases for certain packages.
name: 🚫 Delete Stale Releases
on:
repository_dispatch:
types: [released]
jobs:
clean:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/delete-stale-releases@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}
delete_tags: true
keep_latest_count: 3
group: '(?!^)@.*$'
exclude: |
@antv/x6@**
@antv/x6-react@**
@antv/x6-vue-shape@**
@antv/x6-react-shape@**
@antv/x6-angular-shape@**
@antv/x6-react-components@**

80
.github/workflows/deploy-sites.yml vendored Normal file
View File

@ -0,0 +1,80 @@
# Build and deploy updated official site to GitHub pages.
name: 🚀 Deploy Sites
on:
repository_dispatch:
types: [released]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Yarn Cache Directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
## cache webpack(babel-loader, eslint-loader)
- name: 💩 Setup Webpack Cache
uses: actions/cache@v3
with:
path: |
node_modules
sites/x6-sites-demos/packages/**/node_modules
key: ${{ runner.os }}-webpack-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-webpack-
## cache sites
- name: 💩 Setup Sites Cache
uses: actions/cache@v3
with:
path: sites/x6-sites/static/demos
key: ${{ runner.os }}-sites-${{ hashFiles('./packages/x6/package.json', './sites/x6-sites-demos/**/src') }}
restore-keys: |
${{ runner.os }}-sites-
- name: 🚧 Prepare
run: yarn global add lerna
- name: 🚀 Bootstrap
run: yarn bootstrap
- name: 🧲 Build Apps
run: yarn build:apps
- name: 📦 Build Demos
run: yarn build:demos
- name:  Build Sites
run: yarn build:sites
- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- name:  Deploy sites
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ env.bot_token }}
publish_dir: ./sites/x6-sites/public
publish_branch: gh-pages

23
.github/workflows/gitleaks.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# https://github.com/gitleaks/gitleaks-action
name: 🥤 GitLeaks
on:
pull_request_target:
push:
branches:
- master
- alpha
- beta
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '1'
- name: wget
uses: wei/wget@v1
with:
args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml
- name: gitleaks-action
uses: zricethezav/gitleaks-action@v1.6.0

View File

@ -1,3 +1,8 @@
# Perform certain actions when labels are added to
# or removed from issues.
#
# See .github/workflows/config/label-commands.yml
name: 👾 Label Commands
on:
pull_request_target:
@ -8,12 +13,12 @@ jobs:
cmd:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/label-commands@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
CONFIG_FILE: .github/workflows/config/label-commands.yml

View File

@ -1,3 +1,6 @@
# Locks closed issues and pull requests after a period of inactivity.
# https://github.com/dessant/lock-threads
name:  Lock Threads
on:
schedule:
@ -6,14 +9,14 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: dessant/lock-threads@v2
env_name: bot_token
- uses: dessant/lock-threads@v3
with:
github-token: ${{ env.BOT_TOKEN }}
github-token: ${{ env.bot_token }}
issue-lock-inactive-days: 365
issue-lock-comment: |
This thread has been automatically locked because it has not had recent activity.

View File

@ -1,3 +1,6 @@
# Request more info from newly opened issues/PRs that contain either default title/body or whose body is left blank
# https://github.com/wow-actions/needs-more-info
name: 🚨 Needs More Info
on:
pull_request_target:
@ -8,13 +11,13 @@ jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/needs-more-info@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
CONFIG_FILE: .github/workflows/config/needs-more-info.yml

View File

@ -1,3 +1,6 @@
# Search for potential issue duplicates using DamerauLevenshtein algorithm
# https://github.com/wow-actions/potential-duplicates
name: 🆖 Potential Duplicates
on:
issues:
@ -6,11 +9,11 @@ jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/potential-duplicates@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -1,3 +1,6 @@
# Automatically apply labels to your PRs based on branch name patterns like feature/* or fix/*
# https://github.com/TimonVS/pr-labeler-action
name: 🏷 Label(Branch Name)
on:
pull_request_target:
@ -6,13 +9,13 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: TimonVS/pr-labeler-action@v3
with:
configuration-path: .github/workflows/config/pr-label-branch-name.yml
env:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -1,15 +1,18 @@
# Label a PR according to the packages it involves, based on changed files
# and the rules defined in .github/workflows/config/pr-label-file-paths.yml
name: 🏷 Label(File Paths)
on: pull_request_target
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/labeler@v2
env_name: bot_token
- uses: actions/labeler@v4
with:
repo-token: ${{ env.BOT_TOKEN }}
repo-token: ${{ env.bot_token }}
configuration-path: .github/workflows/config/pr-label-file-paths.yml

View File

@ -1,15 +1,18 @@
# Assign labels based on pull request change sizes.
name: 🏷 Label(Patch Size)
on: pull_request_target
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: pascalgn/size-label-action@v0.4.3
env:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
IGNORED: "!.gitignore\nyarn.lock\npnpm-lock.yaml"
GITHUB_TOKEN: ${{ env.bot_token }}
IGNORED: "!.gitignore\nyarn.lock"

View File

@ -1,9 +1,16 @@
# Automatically label a PR depending on the PR's status (springboard)
name: 🏷 Label(Status) Dummy
on:
pull_request_review:
types: [submitted, dismissed]
permissions:
contents: read
jobs:
dummy:
permissions:
contents: none
runs-on: ubuntu-latest
steps:
- run: echo "this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests"

View File

@ -1,3 +1,5 @@
# Automatically label a PR depending on the PR's status
name: 🏷 Label(Status)
on:
pull_request_target:
@ -9,12 +11,12 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/pr-triage@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
WORKFLOW_ID: ${{ github.event.workflow_run.id }}

View File

@ -1,5 +1,6 @@
# Github action for automatically adding label or setting assignee when a new
# Issue or PR is opened. https://github.com/marketplace/actions/issue-labeler
# Automatically add labels or setting assignees when a new issue or PR is opened,
# based on its title and body.
# https://github.com/marketplace/actions/issue-labeler
name: 🏷 Label(Title and Body)
on:
@ -11,15 +12,15 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: Naturalclar/issue-action@v2.0.1
env_name: bot_token
- uses: Naturalclar/issue-action@v2.0.2
with:
title-or-body: title
github-token: ${{ env.BOT_TOKEN }}
github-token: ${{ env.bot_token }}
parameters: >
[
{

87
.github/workflows/preview.yml vendored Normal file
View File

@ -0,0 +1,87 @@
# https://github.com/afc163/surge-preview
name: 🔂 Surge PR Preview
on:
pull_request_target:
paths:
- sites/x6-sites/**
- sites/x6-sites-demos/**
- sites/x6-sites-demos-helper/**
- examples/x6-app-**
jobs:
surge:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: 🌱 Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup yarn cacha
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
## cache webpack(babel-loader, eslint-loader)
- name: 💩 Setup webpack cache
uses: actions/cache@v3
with:
path: |
node_modules
sites/x6-sites-demos/packages/**/node_modules
key: ${{ runner.os }}-webpack-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-webpack-
## cache sites
- name: 💩 Setup sites cache
uses: actions/cache@v3
with:
path: sites/x6-sites/static/demos
key: ${{ runner.os }}-sites-${{ hashFiles('./packages/x6/package.json', './sites/x6-sites-demos/**/src') }}
restore-keys: |
${{ runner.os }}-sites-
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🚧 Prepare Environment
run: |
yarn global add lerna
- name: 🚀 Bootstrap
run: yarn bootstrap
- name: 📦 Build Demos
run: yarn build:demos
- name: 🧲 Build Apps
run: yarn build:apps
- name:  Build Sites
run: yarn build:sites
- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- name:  Deploy Sites
uses: afc163/surge-preview@v1
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ env.bot_token }}
build: |
echo Create sites preview
dist: sites/x6-sites/public

View File

@ -1,24 +0,0 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Web Build
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Prepare NPM Stuff
run: |
npm install -g pnpm
pnpm install --no-frozen-lockfile --ignore-scripts
pnpm run build
rm .npmrc
npm set registry https://git.ahri.cloud/api/packages/ahri-cloud-projects/npm/:_authToken=${{ secrets.PAT_TOKEN }}
echo "registry=https://git.ahri.cloud/api/packages/ahri-cloud-projects/npm/" > .npmrc
echo "//git.ahri.cloud/api/packages/ahri-cloud-projects/npm/:_authToken=${{ secrets.PAT_TOKEN }}" >> .npmrc
for i in $(find packages/ -path '*/package.json' -type f); do jq -r '.publishConfig.registry="https://git.ahri.cloud/api/packages/ahri-cloud-projects/npm/"' $i > $i.tmp && rm $i && mv $i.tmp $i; done
- run: pnpm publish --no-git-checks -r --tag latest
name: Publish NPM Packages

View File

@ -1,3 +1,5 @@
# Automatically rebase PRs via the /rebase command
name: 🎉 Rebase
on:
issue_comment:
@ -7,14 +9,14 @@ jobs:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: cirrus-actions/rebase@master
env:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -1,4 +1,8 @@
# @see: https://dev.to/antongolub/the-chronicles-of-semantic-release-and-monorepos-5cfc
# Create new GitHub releases using scripts/monorepo-semantic-release
# and the semantic-release package.
#
# See https://www.npmjs.com/package/semantic-release
# See https://dev.to/antongolub/the-chronicles-of-semantic-release-and-monorepos-5cfc
name: 🚀 Release
on:
@ -12,66 +16,55 @@ on:
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: 🎉 Setup nodejs
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: 🎉 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false
- name: 🌱 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🚸 Setup pnpm cache
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Cache Directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🚧 Install dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts
- name: 📦 build
run: pnpm run build
# - name: ✅ Test
# run: pnpm run test
${{ runner.os }}-yarn-
- name: 🚧 Prepare
run: yarn global add lerna
- name: 🚀 Bootstrap
run: yarn bootstrap
- name:  Test
run: yarn test
- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v2
uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- name: 📦 Semantic Release
run: pnpm srm --combine-commits --comment-footer 'Thanks for being a part of the [AntV](https://github.com/antvis) community! 💪💯'
run: |
sh ./scripts/release
env:
SRM_DEBUG: ${{ secrets.SRM_DEBUG }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}[bot]
GIT_AUTHOR_EMAIL: ${{ env.BOT_NAME }}[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}[bot]
GIT_COMMITTER_EMAIL: ${{ env.BOT_NAME }}[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ env.bot_token }}
ACTION_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: x6-bot
GIT_AUTHOR_EMAIL: x6-bot@users.noreply.github.com
GIT_COMMITTER_NAME: x6-bot
GIT_COMMITTER_EMAIL: x6-bot@users.noreply.github.com
- name: 🔀 Repository Dispatch
if: github.ref == 'refs/heads/master'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ env.BOT_TOKEN }}
token: ${{ env.bot_token }}
event-type: released

16
.github/workflows/report-monthly.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: 📆 Monthly Report
on:
schedule:
- cron: '0 3 1 * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/activity-report@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}

16
.github/workflows/report-weekly.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: 📆 Weekly Report
on:
schedule:
- cron: '30 17 * * 5'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/activity-report@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}

View File

@ -1,3 +1,5 @@
# https://github.com/wow-actions/slash-commands
name: 🔱 Slash Commands
on:
issue_comment:
@ -6,12 +8,12 @@ jobs:
cmd:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/slash-commands@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
CONFIG_FILE: .github/workflows/config/slash-commands.yml

60
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,60 @@
# Warn and then close issues and PRs that have had no activity for a specified amount of time.
name: 👻 Stale
on:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: actions/stale@v6
with:
repo-token: ${{ env.bot_token }}
stale-issue-message: |
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. Its been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the AntV community! 💪💯
close-issue-message: |
Hey again!
Its been 60 days since anything happened on this issue, so our friendly neighborhood robot (thats me!) is going to close it. Please keep in mind that Im only a robot 🤖, so if Ive closed this issue in error, Im `HUMAN_EMOTION_SORRY`. Please feel free to comment on this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the AntV community! 💪💯
stale-pr-message: |
Hiya!
This PR has gone quiet. Spooky quiet. 👻
We get a lot of PRs, so we currently close PRs after 60 days of inactivity. Its been at least 20 days since the last update here. If we missed this PR or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this PR open!
Thanks for being a part of the AntV community! 💪💯
close-pr-message: |
Hey again!
Its been 60 days since anything happened on this PR, so our friendly neighborhood robot (thats me!) is going to close it. Please keep in mind that Im only a robot 🤖, so if Ive closed this PR in error, Im `HUMAN_EMOTION_SORRY`. Please feel free to comment on this PR or create a new one if you need anything else.
Thanks again for being part of the AntV community! 💪💯
days-before-stale: 20
days-before-close: 40
stale-issue-label: 'stale'
exempt-issue-label: 'not-stale,awaiting-approval,work-in-progress'
stale-pr-label: 'stale'
exempt-pr-label: 'not-stale,awaiting-approval,work-in-progress'

24
.github/workflows/sync-labels.yml vendored Normal file
View File

@ -0,0 +1,24 @@
# Update issue labels in repo as defined in /.github/workflows/config/labels.yml
name: 🔄 Sync Labels
on:
push:
branches:
- master
paths:
- .github/workflows/config/labels.yml
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ env.bot_token }}
with:
manifest: .github/workflows/config/labels.yml

36
.github/workflows/sync-to-gitee.yml vendored Normal file
View File

@ -0,0 +1,36 @@
# Sync repo to https://gitee.com/
#
# https://github.com/marketplace/actions/gitee-pages-action
# 配置步骤如下
# 1. 在命令行终端或 Git Bash 使用命令 ssh-keygen -t rsa -C "youremail@example.com" 生成 SSH Key注意替换为自己的邮箱。生成的 id_rsa 是私钥id_rsa.pub 是公钥。(⚠️注意此处不要设置密码)
# 2. 在 GitHub 项目的「Settings -> Secrets」路径下配置好命名为 GITEE_RSA_PRIVATE_KEY 和 GITEE_PASSWORD 的两个密钥。其中GITEE_RSA_PRIVATE_KEY 存放 id_rsa 私钥GITEE_PASSWORD 存放 Gitee 帐号的密码。
# 3. 在 GitHub 的个人设置页面「Settings -> SSH and GPG keys」 配置 SSH 公钥id_rsa.pub命名随意。或者在仓库设置页面添加一个部署公钥。
# 4. 在 Gitee 的个人设置页面「安全设置 -> SSH 公钥」​ 配置 SSH 公钥id_rsa.pub命名随意。
name: 🔁 Sync to Gitee
on: [push]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: 🔁 Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
# 注意替换为你的 GitHub 源仓库地址
source-repo: 'git@github.com:antvis/X6.git'
# 注意替换为你的 Gitee 目标仓库地址
destination-repo: 'git@gitee.com:antv-x6/antv-x6.git'
- name: 📦 Build Gitee Pages
uses: yanglbme/gitee-pages-action@master
with:
# 注意替换为你的 Gitee 用户名
gitee-username: afc163
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
gitee-password: ${{ secrets.GITEE_PASSWORD }}
# 注意替换为你的 Gitee 仓库
gitee-repo: antv-x6/antv-x6
# 要部署的分支
branch: gh-pages

View File

@ -1,10 +1,10 @@
# Automatically generate and update AUTHORS.txt.
name: 🎗 Update Authors
on:
push:
branches:
- master
- next
- next-major
- alpha
- beta
jobs:
@ -14,14 +14,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/update-authors@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
bots: false
path: CONTRIBUTORS
commit: 'chore: update CONTRIBUTORS [skip ci]'

43
.github/workflows/update-cache.yaml vendored Normal file
View File

@ -0,0 +1,43 @@
# Cache dependencies and build outputs to improve workflow execution time.
# https://github.com/actions/cache
name: 🌈 Update Cache
on:
pull_request_target:
push:
branches:
- master
- next
- next-major
- alpha
- beta
permissions:
contents: read
jobs:
cache:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Cache Directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: 🚧 Update Cache
if: steps.cache.outputs.cache-hit != 'true'
run: |
yarn global add lerna
lerna bootstrap

View File

@ -1,3 +1,5 @@
# Update /CONTRIBUTORS.svg to include new contributors' avatars.
name: 🤝 Update Contributors
on:
schedule:
@ -5,20 +7,18 @@ on:
push:
branches:
- master
- next
- next-major
- alpha
- beta
jobs:
contributors:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/contributors-list@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
excludeUsers: semantic-release-bot ImgBotApp

View File

@ -1,3 +1,5 @@
# Renew the copyright notice in LICENSE at the beginning of every year.
name: 🔑 Update License
on:
schedule:
@ -9,11 +11,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ env.BOT_TOKEN }}
token: ${{ env.bot_token }}

View File

@ -1,3 +1,5 @@
# Comment a welcome message on an issue if it's the reporter's first issue.
name: 👋 Welcome
on:
pull_request_target:
@ -8,19 +10,21 @@ jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/welcome@v1
with:
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.bot_token }}
FIRST_ISSUE: |
👋 @{{ author }}
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the [contributing guidelines](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md).
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
FIRST_PR: |

6
.gitignore vendored
View File

@ -1,7 +1,6 @@
.DS_Store
.vscode
.idea
.turbo
npm-debug.log
yarn-error.log
lerna-debug.log
@ -12,8 +11,3 @@ es
dist
*.pem
!mock-cert.pem
tmp
test/coverage
packages/**/src/style/raw.ts
.eslintcache
.stylelintcache

View File

@ -1,17 +0,0 @@
stages:
- deploy
deploy:
image: node:18
stage: deploy
script:
- apt update && apt install jq -y
- npm install -g pnpm
- pnpm install --no-frozen-lockfile --ignore-scripts
- pnpm run build
- rm .npmrc
- npm set registry https://gitlab.cloud.ln-c.net/api/v4/projects/504/packages/npm/:_authToken=${CI_JOB_TOKEN}
- echo "registry=https://gitlab.cloud.ln-c.net/api/v4/projects/504/packages/npm/" > .npmrc
- echo "//gitlab.cloud.ln-c.net/api/v4/projects/504/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- for i in $(find packages/ -path '*/package.json' -type f); do jq -r '.publishConfig.registry="https://gitlab.cloud.ln-c.net/api/v4/projects/504/packages/npm/"' $i > $i.tmp && rm $i && mv $i.tmp $i; done
- pnpm publish --no-git-checks -r --tag latest

View File

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx @commitlint/cli --edit "$1"

View File

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

View File

@ -1,14 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
branch="$(git rev-parse --abbrev-ref HEAD)"
user="$(git config user.name)"
whitelist=("bubkoo" "newbyvector")
if [[ ! " ${whitelist[@]} " =~ " ${user} " ]]; then
if [ "$branch" = "master" ]; then
echo "Push to master branch is forbidden."
echo "Checkout your owne branch then submit a pr."
exit 1
fi
fi

12
.lgtm.yml Normal file
View File

@ -0,0 +1,12 @@
# @see https://help.semmle.com/lgtm-enterprise/user/help/lgtm.yml-configuration-file.html
# @template https://lgtm.com/static/downloads/lgtm.template.yml
queries:
- exclude: js/use-before-declaration
- exclude: js/polynomial-redos
extraction:
javascript:
index:
filters:
- exclude: "sites/x6-sites/static"

1
.npmrc
View File

@ -1 +0,0 @@
strict-peer-dependencies=false

View File

@ -1,9 +1,9 @@
*.md
*.sh
*.yml
*.svg
*.gif
*.log
*.md
.DS_Store
CNAME
AUTHORS
@ -11,9 +11,6 @@ LICENSE
es/
lib/
dist/
public/
.dumi/
coverage/
sites/public
sites/x6-sites/static/demos
csstype.ts
ui.js

View File

@ -9,7 +9,6 @@
"overrides": [
{ "files": ".eslintrc", "options": { "parser": "json" } },
{ "files": ".prettierrc", "options": { "parser": "json" } },
{ "files": ".releaserc", "options": { "parser": "json" } },
{ "files": ".stylelintrc", "options": { "parser": "json" } }
]
}

View File

@ -1,51 +0,0 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"next",
"next-major",
{ "name": "beta", "prerelease": true },
{ "name": "alpha", "prerelease": true }
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "revert": true, "release": "patch" },
{ "type": "feat", "release": "minor" },
{ "type": "build", "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "ci", "release": false },
{ "type": "chore", "release": false },
{ "scope": "no-release", "release": false }
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
[
"@semantic-release/github",
{
"addReleases": "bottom"
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.gitTag} [skip ci]"
}
]
]
}

View File

@ -1,25 +1,3 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-rational-order",
"stylelint-config-prettier"
],
"plugins": [
"stylelint-order",
"stylelint-declaration-block-no-ignored-properties"
],
"rules": {
"block-no-empty": null,
"function-name-case": "lower",
"comment-empty-line-before": null,
"no-invalid-double-slash-comments": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"no-duplicate-selectors": null,
"value-no-vendor-prefix": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"keyframes-name-pattern": null,
"number-max-precision": null
}
"extends": ["@antv/stylelint-config"]
}

19
.travis.yml Normal file
View File

@ -0,0 +1,19 @@
language: node_js
node_js:
- 12
branches:
only:
- master
cache:
yarn: true
directories:
- node_modules
install:
- npm install -g yarn
- npm install -g lerna
- yarn bootstrap
script:
- yarn build:dev
# - yarn test
# after_script:
# - yarn coveralls

88
AUTHORS Normal file
View File

@ -0,0 +1,88 @@
BARM <284942955@qq.com>
Candy <563378816@qq.com>
Chaoqi <HAN>
Clifford <ajard>
DaiGang <42136433+daigang666@users.noreply.github.com>
Dong <48054715+halodong@users.noreply.github.com>
Draco <Draco.coder@gmail.com>
Eve-Sama <17764594863@163.com>
Eve-Sama <948832626@qq.com>
Gossypol <31892817+gossypol@users.noreply.github.com>
ImgBotApp <ImgBotHelp@gmail.com>
Indomi <indomi126@gmail.com>
James <san>
Jógvan <lse>
Ken <ei>
Limbo <49612796+JUST-Limbo@users.noreply.github.com>
Lixu <37231473+wflixu@users.noreply.github.com>
Lloyd <ho>
Lyn <47809781+lyn-boyu@users.noreply.github.com>
Mingfei <az8641683@163.com>
MrMengJ <2646973632@qq.com>
Naveen <172697+naveensrinivasan@users.noreply.github.com>
NewByVector <NewByVector@users.noreply.github.com>
Olive.Wang <olivewind.wang@gmail.com>
Opportunity <opportunity@live.in>
Questions <chip@twostewards.com>
RuiLin <on>
SSC <273702440@qq.com>
Sindori <441933726@qq.com>
Susan <527971893@qq.com>
Thomas <eugne>
Tony <>
Utopia <greatauk11@gmail.com>
XLZY <1017866168@qq.com>
Xingjian <han>
Zhenyu <o>
arthur657834 <kingkom7834@126.com>
boyu.zlj <boyu.zlj@antgroup.com>
breezefaith <nyzhangzc@qq.com>
bubkoo <bubkoo.wy@gmail.com>
bubkoo <bubkoo@users.noreply.github.com>
budlion <dongqi.ldq@alibaba-inc.com>
cuidong626 <cuidong1234@outlook.com>
daigang <1210242662@qq.com>
doublewu <592581554@qq.com>
iceytea <liyunheasap@yeah.net>
jiqili <43718732+jiqili@users.noreply.github.com>
kelin.zrh <34393362+AricZhu@users.noreply.github.com>
kingshuaishuai <ken.wang@mrs.ai>
kio <1421104933@qq.com>
lijing666 <lijing241@yeah.net>
lopn <lopnxrp@126.com>
luchunwei <luchunwei@gmail.com>
luzhuang <364439895@qq.com>
lvhuiyang <ilvhuiyang@gmail.com>
myzxlin <myzxlin@163.com>
newbyvector <vectorse@126.com>
niexq <1879633916@qq.com>
niexq <niexq@firstgrid.cn>
pengxingjian.pxj <pengxingjian.pxj@alibaba-inc.com>
pfdgithub <pfdgithub@users.noreply.github.com>
qingchi <qinky94@163.com>
qu <33251372+Qujh97@users.noreply.github.com>
sallen450 <qinghua10199@gmail.com>
semantic-release-bot <semantic-release-bot@martynus.net>
vector <vectorse@126.com>
wenbei <38773084+wb-wenbei@users.noreply.github.com>
wgf <34190465+evelope@users.noreply.github.com>
wind <>
wjqsummer <52412389+wjqsummer@users.noreply.github.com>
wtzeng1 <wtzeng1@gmail.com>
x6-bot <x6-bot@users.noreply.github.com>
xrkffgg <xrkffgg@gmail.com>
yaojin2070 <48686959+yaojin2070@users.noreply.github.com>
zdc1111 <39116292+zdc1111@users.noreply.github.com>
九思⚡⚡⚡ <2228429150@qq.com>
何腾飞 <avrin.live.cn@outlook.com>
偏右 <afc163@gmail.com>
小耀 <jinyue.gjy@antfin.com>
崖崖崖 <bubkoo.wy@gmail.com>
文瑀 <wenyu.jqq@antfin.com>
杨凌 <89915256@qq.com>
柏愚 <boyu.zlj@antfin.com>
粑粑超 <842486229@qq.com>
金强强 <wenyu.jqq@antfin.com>
问崖 <bubkoo.wy@gmail.com>
问崖 <pengxingjian.pxj@antfin.com>
阿良仔 <32487868+cijiugechu@users.noreply.github.com>

View File

@ -2,46 +2,75 @@
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
Examples of behavior that contributes to creating a positive environment
include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at antv@antfin.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at antv@antfin.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

View File

@ -1,6 +1,7 @@
# Contribution Guide
If you have any comment or advice, please report your [issue](https://github.com/antvis/x6/issues), or make any change as you wish and submit a [PR](https://github.com/antvis/x6/pulls).
If you have any comment or advice, please report your [issue](https://github.com/antvis/x6/issues),
or make any change as you wish and submit a [PR](https://github.com/antvis/x6/pulls).
## Reporting New Issues
@ -40,7 +41,7 @@ No one can guarantee how much will be remembered about certain PR after some tim
### Style Guide
eslint can help to identify styling issues that may exist in your code. Your code is required to pass the test from eslint. Run the test locally by `$ npm run lint`.
eslint can help to identify styling issues that may exist in your code. Your code is required to pass the test from eslint. Run the test locally by `$ yarn lint`.
### Commit Message Format
@ -109,8 +110,8 @@ Look at [these files](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJyg
X6 uses semantic versioning in release process based on [semver](https://semver.org/).
- [Publishing maintenance releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/release-workflow/maintenance-releases.md)
- [Publishing pre-releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/release-workflow/pre-releases.md)
- [Publishing maintenance releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/maintenance-releases.md)
- [Publishing pre-releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/pre-releases.md)
### Branch Strategy

View File

@ -1,6 +1,6 @@
# 代码贡献规范
如果你有任何疑问,欢迎提交 [issue](https://github.com/antvis/x6/issues) 或 [PR](https://github.com/antvis/x6/pulls)!
有任何疑问,欢迎提交 [issue](https://github.com/antvis/x6/issues) 或 [PR](https://github.com/antvis/x6/pulls)!
## 提交 issue
@ -41,11 +41,12 @@ $ git push origin branch-name
### 代码风格
你的代码风格必须通过 eslint你可以运行 `$ npm run lint` 本地测试。
你的代码风格必须通过 eslint你可以运行 `$ yarn lint` 本地测试。
### Commit 提交规范
根据 [angular 规范](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format)提交 commit这样 history 看起来更加清晰,还可以自动生成 changelog。
根据 [angular 规范](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format)提交 commit
这样 history 看起来更加清晰,还可以自动生成 changelog。
```xml
<type>(<scope>): <subject>
@ -108,8 +109,8 @@ BREAKING CHANGE:
## 发布管理
- [发布维护版本](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/release-workflow/maintenance-releases.md)
- [发布预发版本](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/release-workflow/pre-releases.md)
- [Publishing maintenance releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/maintenance-releases.md)
- [Publishing pre-releases](https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/pre-releases.md)
X6 基于 [semver](http://semver.org/lang/zh-CN/) 语义化版本号进行发布。
@ -120,7 +121,7 @@ X6 基于 [semver](http://semver.org/lang/zh-CN/) 语义化版本号进行发布
### 发布策略
每个大版本的发布中,都会有一个 PM在发布的不同阶段负有以下职责:
每个大版本都有一个发布经理管理(PM,他/她要做的事情
#### 准备工作:
@ -134,6 +135,6 @@ X6 基于 [semver](http://semver.org/lang/zh-CN/) 语义化版本号进行发布
#### 发布时:
- 将老的稳定版本master备份到以当前大版本为名字的分支上例如 `1.x`),并设置 tag 为 {v}.x v 为当前版本,例如 `1.x`)。
- 将老的稳定版本master备份到以当前大版本为名字的分支上例如 `1.x`),并设置 tag 为 {v}.x` v 为当前版本,例如 `1.x`)。
- 发布新的稳定版本到 [npm](http://npmjs.com),并通知上层框架进行更新。
- `npm publish` 之前,请先阅读[『我是如何发布一个 npm 包的』](https://fengmk2.com/blog/2016/how-i-publish-a-npm-package)。

View File

@ -1,149 +0,0 @@
91jojo <jstxhl@live.com>
@thinkinggis <lzx199065@gmail.com>
Aflext Yang <aflext@gmail.com>
BARM <284942955@qq.com>
CJrZhang <39872522+CJrZhang@users.noreply.github.com>
Candy <563378816@qq.com>
Chaoqi ZHANG <prncoprs@163.com>
Claudiu Ivan <contact@claudiu-ivan.com>
Clifford Fajardo <cliffordfajardo@users.noreply.github.com>
DaiGang <42136433+daigang666@users.noreply.github.com>
David <36500514+qiufeihong2018@users.noreply.github.com>
Dong <48054715+halodong@users.noreply.github.com>
Draco <Draco.coder@gmail.com>
Eve-Sama <17764594863@163.com>
Eve-Sama <948832626@qq.com>
Frank William <65594180+ai-qing-hai@users.noreply.github.com>
Gomi <gxy880520@qq.com>
Gossypol <31892817+gossypol@users.noreply.github.com>
HQidea <HQidea@users.noreply.github.com>
ImgBotApp <ImgBotHelp@gmail.com>
Indigo-w <59961969+Indigo-w@users.noreply.github.com>
Indomi <indomi126@gmail.com>
JackyChen02 <70377567+JackyChen02@users.noreply.github.com>
James Tsang <wtzeng1@gmail.com>
JasonSun <42314340+LolipopJ@users.noreply.github.com>
Jie <51285767+DimplesY@users.noreply.github.com>
Jimwan <897527394@qq.com>
Jinxing Lin <172601673@qq.com>
Jógvan Olsen <jogvanolsen@hotmail.com>
Ken Geis <geis.ken@gmail.com>
Kent Wood <minzojian@hotmail.com>
KevinXi <48853785+Sorryhx@users.noreply.github.com>
Ko.Rei <32183014+Ko-Rei@users.noreply.github.com>
LNAhri <lukas@lukas-craft.de>
Libin Song <songlibin1994@gmail.com>
Limbo <49612796+JUST-Limbo@users.noreply.github.com>
Lixu <37231473+wflixu@users.noreply.github.com>
Lloyd Zhou <lloydzhou@users.noreply.github.com>
Lyn <47809781+lyn-boyu@users.noreply.github.com>
MOMO <329053928@qq.com>
Mingfei <az8641683@163.com>
Mingfei Ding <35296199+aMoonkin@users.noreply.github.com>
MrMengJ <2646973632@qq.com>
Naveen <172697+naveensrinivasan@users.noreply.github.com>
NewByVector <NewByVector@users.noreply.github.com>
OZiyuTao <127707782+OZiyuTao@users.noreply.github.com>
Olive.Wang <olivewind.wang@gmail.com>
Opportunity <opportunity@live.in>
Questions <chip@twostewards.com>
RuiLin Dong <48054715+halodong@users.noreply.github.com>
SSC <273702440@qq.com>
Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com>
Simon He <57086651+Simon-He95@users.noreply.github.com>
Sindori <441933726@qq.com>
Struggle Roue <47975400+struggleRoue@users.noreply.github.com>
Susan <527971893@qq.com>
Thomas Zeugner <tomsoftware@gmx.de>
Tony Wu <93302820+tonywu6@users.noreply.github.com>
Utopia <greatauk11@gmail.com>
WBbug <1056342711@qq.com>
XLZY <1017866168@qq.com>
Xia Wenqi <xiawenqi90@gmail.com>
Xingjian Zhang <44231913+THUzxj@users.noreply.github.com>
Yue JIN <40021217+kingyue737@users.noreply.github.com>
Zhenyu Hou <skyking_H@hotmail.com>
_XiaoTian <istianlei@qq.com>
aimagic <40253639+aimagic@users.noreply.github.com>
arthur657834 <kingkom7834@126.com>
boyu.zlj <boyu.zlj@antgroup.com>
breezefaith <nyzhangzc@qq.com>
bubkoo <bubkoo.wy@gmail.com>
bubkoo <bubkoo@users.noreply.github.com>
budlion <dongqi.ldq@alibaba-inc.com>
chenBoy <129058082+myBoringCode@users.noreply.github.com>
cuidong626 <cuidong1234@outlook.com>
cyrilluce <cyrilluce@gmail.com>
daigang <1210242662@qq.com>
doublewu <592581554@qq.com>
fang-ng4 <907648506@qq.com>
hylerrix <hylerrix@gmail.com>
iceytea <liyunheasap@yeah.net>
jiqili <43718732+jiqili@users.noreply.github.com>
kelin.zrh <34393362+AricZhu@users.noreply.github.com>
kingshuaishuai <ken.wang@mrs.ai>
kio <1421104933@qq.com>
leondt <168417370+leondt1@users.noreply.github.com>
lijing666 <lijing241@yeah.net>
linkun <33945539+linkun-wang@users.noreply.github.com>
linkun <linkun0922@163.com>
lopn <lopnxrp@126.com>
luchunwei <luchunwei@gmail.com>
luzhuang <364439895@qq.com>
lvhuiyang <ilvhuiyang@gmail.com>
markliao <liaodalin19903@126.com>
myzxlin <myzxlin@163.com>
newbyvector <vectorse@126.com>
niexq <1879633916@qq.com>
niexq <niexq@firstgrid.cn>
njshuisheng <34205271+njshuisheng@users.noreply.github.com>
nobugforever <84232410+mengYu-Jin@users.noreply.github.com>
pengxingjian.pxj <pengxingjian.pxj@alibaba-inc.com>
pfdgithub <pfdgithub@users.noreply.github.com>
qingchi <qinky94@163.com>
qu <33251372+Qujh97@users.noreply.github.com>
sallen450 <qinghua10199@gmail.com>
semantic-release-bot <semantic-release-bot@martynus.net>
siaikin <abc1310054026@outlook.com>
vector <vectorse@126.com>
wenbei <38773084+wb-wenbei@users.noreply.github.com>
wgf <34190465+evelope@users.noreply.github.com>
wind X <35559153+XueMeijing@users.noreply.github.com>
wjqsummer <52412389+wjqsummer@users.noreply.github.com>
wseven7677 <caoyu_92@126.com>
wtzeng1 <wtzeng1@gmail.com>
x6-bot <x6-bot@users.noreply.github.com>
xrkffgg <xrkffgg@gmail.com>
yaojin2070 <48686959+yaojin2070@users.noreply.github.com>
yinhf <yinhangfeng@gmail.com>
yuxuan-ctrl <83435945+yuxuan-ctrl@users.noreply.github.com>
zdc1111 <39116292+zdc1111@users.noreply.github.com>
zzyyu <33147972+zzyyu@users.noreply.github.com>
€alix <qq287649920@gmail.com>
一纸忘忧 <54543761+ikxin@users.noreply.github.com>
九思⚡⚡⚡ <2228429150@qq.com>
云剪者 <584518260@qq.com>
何腾飞 <avrin.live.cn@outlook.com>
你捉不到的this <2228429150@qq.com>
依枫 <deng25st@163.com>
偏右 <afc163@gmail.com>
大A <623037142@qq.com>
大卫 <36500514+qiufeihong2018@users.noreply.github.com>
小耀 <jinyue.gjy@antfin.com>
崖 <bubkoo.wy@gmail.com>
崖崖崖 <bubkoo.wy@gmail.com>
张子睿 <411489774@qq.com>
徒言 <chaimaoyuan@foxmail.com>
德布罗煜 <1056317718@qq.com>
文瑀 <wenyu.jqq@antfin.com>
映月 <38279397+orientMoon@users.noreply.github.com>
杨凌 <89915256@qq.com>
柏愚 <boyu.zlj@antfin.com>
粑粑超 <842486229@qq.com>
練氣士 <62411296+hongfaqiu@users.noreply.github.com>
诸岳 <dengfuping_private@163.com>
迷悟 <1010953107@qq.com>
金强强 <wenyu.jqq@antfin.com>
问崖 <bubkoo.wy@gmail.com>
问崖 <pengxingjian.pxj@antfin.com>
阿良仔 <32487868+cijiugechu@users.noreply.github.com>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 23 MiB

After

Width:  |  Height:  |  Size: 15 MiB

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021-2024 Alipay.inc
Copyright (c) 2021-2022 Alipay.inc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -2,9 +2,10 @@
<p align="center"><img src="/flow.svg"></p>
<p align="center"><strong>Graph Editing Engine Of AntV</strong></p>
<p align="center"><strong>JavaScript diagramming library that uses SVG and HTML for rendering</strong></p>
<p align="center"><a href="https://x6.antv.vision/en/docs/tutorial/about">Tutorials</a> · <a href="https://x6.antv.vision/en/examples/gallery">Examples</a> · <a href="https://x6.antv.vision/en/docs/api/graph">API</a></p>
<p align="center">
<a href="https://github.com/antvis/X6/actions/workflows/ci.yml"><img alt="build" src="https://img.shields.io/github/workflow/status/antvis/x6/%F0%9F%91%B7%E3%80%80CI/master?logo=github&style=flat-square"></a>
<a href="https://app.codecov.io/gh/antvis/X6"><img alt="coverage" src="https://img.shields.io/codecov/c/gh/antvis/x6?logo=codecov&style=flat-square&token=15CO54WYUV"></a>
@ -17,27 +18,20 @@
<a href="/LICENSE"><img src="https://img.shields.io/github/license/antvis/x6?style=flat-square" alt="MIT License"></a>
<a href="https://www.typescriptlang.org"><img alt="Language" src="https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square"></a>
<a href="https://github.com/antvis/x6/pulls"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square"></a>
<a href="https://x6.antv.antgroup.com/"><img alt="website" src="https://img.shields.io/static/v1?label=&labelColor=505050&message=website&color=0076D6&style=flat-square&logo=google-chrome&logoColor=0076D6"></a>
<a href="https://x6.antv.vision"><img alt="website" src="https://img.shields.io/static/v1?label=&labelColor=505050&message=website&color=0076D6&style=flat-square&logo=google-chrome&logoColor=0076D6"></a>
</p>
## Features
- 🌱   Easy-to-customize: based on well known SVG/HTML/CSS or React/Vue/Angular to custom nodes and edges
- 🚀   Out-of-the-box: built-in 10+ plugins, such as selection, dnd, redo/undo, snapline, minimap, etc.
- 🧲   Data-driven: base on MVC architecture, you can focus on data logic and business logic
- 💯   Highly-event-driven: you can react on any event that happens inside the graph
## Environment Support
- Modern browsers and Internet Explorer 11 (with polyfills)
- Server-side Rendering
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
| --- | --- | --- | --- |
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions |
- 🌱 easy-to-customize: based on well known SVG/HTML/CSS or React/Vue to custom nodes and edges
- 🚀 out-of-the-box: built-in 10+ plugins, such as selection, dnd, redo/undo, snapline, minimap, etc.
- 🧲 data-driven: base on MVC architecture, you can focus on data logic and business logic
- 💯 highly-event-driven: you can react on any event that happens inside the graph
## Installation
### NPM/Yarn
```shell
# npm
$ npm install @antv/x6 --save
@ -46,20 +40,51 @@ $ npm install @antv/x6 --save
$ yarn add @antv/x6
```
### CDNs
For learning purposes, you can use the latest version with one of the CDN:
- https://unpkg.com/@antv/x6/dist/x6.js
- https://cdn.jsdelivr.net/npm/@antv/x6/dist/x6.js
- https://cdnjs.cloudflare.com/ajax/libs/antv-x6/1.3.20/x6.js
```html
<script src="https://unpkg.com/@antv/x6/dist/x6.js"></script>
```
For production, we recommend linking to a specific version number to avoid unexpected breakage from newer versions:
- https://unpkg.com/@antv/x6@1.1.1/dist/x6.js
- https://cdn.jsdelivr.net/npm/@antv/x6@1.1.1/dist/x6.js
- https://cdnjs.cloudflare.com/ajax/libs/antv-x6/1.1.1/x6.js
```html
<script src="https://unpkg.com/@antv/x6@1.1.1/dist/x6.js"></script>
```
## Usage
**Step 1**: specify a container the render the diagram.
```html
<div id="container" style="width: 600px; height: 400px"></div>
```
```ts
import { Graph } from '@antv/x6'
**Step 2**: render nodes and edges.
```ts
// import from node_modules
import { Graph } from '@antv/x6'
// or use the global variable `X6` exported from CDN links
// const { Graph } = X6
// Create an instance of Graph.
const graph = new Graph({
container: document.getElementById('container'),
grid: true,
grid: true
})
// Render source node.
const source = graph.addNode({
x: 300,
y: 40,
@ -68,6 +93,7 @@ const source = graph.addNode({
label: 'Hello',
})
// Render target node.
const target = graph.addNode({
x: 420,
y: 180,
@ -76,40 +102,130 @@ const target = graph.addNode({
label: 'World',
})
// Render edge from source to target.
graph.addEdge({
source,
target,
})
```
## Links
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*o4W3RLZicagAAAAAAAAAAAAAARQnAQ" alt="HelloWorld" />
- [Documents](https://x6.antv.antgroup.com/tutorial/about)
- [Samples](https://x6.antv.antgroup.com/examples)
- [Blog](https://www.yuque.com/antv/x6/gcinvi)
- [Versioning Release Note](https://www.yuque.com/antv/x6/bbfu6r)
- [FAQ](https://www.yuque.com/antv/x6/be9pfx)
- [Template](https://codesandbox.io/s/qosj0?file=/src/app.tsx)
- [awesome-x6](https://github.com/lloydzhou/awesome-x6)
## Documentation
- [About](https://x6.antv.vision/en/docs/tutorial/about)
- [Getting Started](https://x6.antv.vision/en/docs/tutorial/getting-started)
- [Basic Usage](https://x6.antv.vision/en/docs/tutorial/basic/graph)
- [Advanced Practice](https://x6.antv.vision/en/docs/tutorial/intermediate/serialization)
- [Senior Guidance](https://x6.antv.vision/en/docs/tutorial/advanced/animation)
- [ChangeLog](https://x6.antv.vision/en/docs/tutorial/log)
## App Demos Build with X6
<center>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#flowchart" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*JSr-RbwCgmcAAAAAAAAAAAAAARQnAQ" alt="Flow"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#dag" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*RPiGRaSus3UAAAAAAAAAAAAAARQnAQ" alt="Dag"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#mindmap" target="_blank" rel="noopener noreferrer">
<img width="400" height="200" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*GsEGSaBkc84AAAAAAAAAAAAAARQnAQ" alt="MindMap"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#bpmn" target="_blank" rel="noopener noreferrer">
<img width="400" height="200" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*aPSySa8oz4sAAAAAAAAAAAAAARQnAQ" alt="BPMN"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#class" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*OaCpR7t_mVoAAAAAAAAAAAAAARQnAQ" alt="Class"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#org" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*FWx5SYDzLw4AAAAAAAAAAAAAARQnAQ" alt="ORG"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#er" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*7yVJQoM6-9AAAAAAAAAAAAAAARQnAQ" alt="ER"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#swimlane" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*mUVrSJMkP1UAAAAAAAAAAAAAARQnAQ" alt="SwimLane"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#tree" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*XDnNRqnj4WkAAAAAAAAAAAAAARQnAQ" alt="Tree"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#elk" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*Z3ebTKy0w9cAAAAAAAAAAAAAARQnAQ" alt="ELK"/>
</a>
</center>
## Communication
Welcome to join the **X6 Communication Group** (Scan the QR Code to Join us). We also welcome the github [issues](https://github.com/antvis/x6/issues).
<a href="https://qr.dingtalk.com/action/joingroup?code=v1,k1,rOHuvgq5s0EHDktyyQJffDE3ZAmHnbB2e6iwn/w4BKs=&_dt_no_comment=1&origin=11" target="_blank" rel="noopener noreferrer">
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*nFa5TaWsSOoAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群4" width="260" />
</a>
## Development
This repo is based on [lerna](https://github.com/lerna/lerna) with the following structure:
```
.
├── examples
│ ├── x6-app-dag # example of dag graph
│ ├── x6-app-draw # example of flowchart
│ ├── x6-app-er # example of ER chart
│ └── x6-example-features # example of basic features
├── packages
│ ├── x6 # X6
│ ├── x6-react # wrap X6 with react(reserved)
│ ├── x6-react-components # react componets to build graph apps
│ ├── x6-react-shape # support render node with react
│ └── x6-vue-shape # support render node with vue
└── sites
├── x6-sites # sites and documents
├── x6-sites-demos # demos in documents
└── x6-sites-demos-helper # tools to build demos
```
We need to install some necessary global tools before getting started.
```shell
# install yarn and lerna
$ npm install yarn -g
$ npm install lerna -g
# install deps and build
$ pnpm install
$ yarn bootstrap
```
# enter the specified project development and debugging
cd packages/x6
pnpm run build:watch
Then we can `cd` to dirs to development and debugging.
# start example to see the effect
Such as, we can start `examples/x6-example-features` locally:
```shell
cd examples/x6-example-features
pnpm run start
yarn start
```
When need to fix some bugs of X6, we can start with **watch** mode:
```shell
cd packages/x6
// build esm to "em" dir
yarn build:watch:esm
// build commonjs to "lib" dir
yarn build:watch:cjs
```
## Contributing
To become a contributor, please follow our [contributing guide](/CONTRIBUTING.md). If you are an active contributor, you can apply to be a outside collaborator.
Please let us know how can we help. Do check out [issues](https://github.com/antvis/x6/issues) for bug reports or suggestions first.
To become a contributor, please follow our [contributing guide](/CONTRIBUTING.md).
## Contributors
<a href="https://github.com/antvis/x6/graphs/contributors">
<img src="/CONTRIBUTORS.svg" alt="Contributors" width="740" />

214
README.md
View File

@ -1,42 +1,38 @@
简体中文 | [English](/README.en-us.md)
<p align="center"><img alt="flow" src="/flow.svg"></p>
<p align="center"><img src="/flow.svg"></p>
<p align="center"><strong>X6 是 AntV 旗下的图编辑引擎</strong></p>
<p align="center"><strong>提供简单易用的节点定制能力和开箱即用的交互组件方便我们快速搭建流程图、DAG 图、ER 图等图应用</strong></p>
<p align="center"><a href="https://x6.antv.vision/zh/docs/tutorial/about">教程</a><a href="https://x6.antv.vision/zh/examples/gallery">示例</a><a href="https://x6.antv.vision/zh/docs/api/graph">API</a></p>
<p align="center">
<a href="https://github.com/antvis/X6/actions/workflows/ci.yml"><img alt="build" src="https://img.shields.io/github/actions/workflow/status/antvis/x6/ci.yml?branch=master&style=for-the-badge&logo=github"></a>
<!-- <a href="https://app.codecov.io/gh/antvis/X6"><img alt="coverage" src="https://img.shields.io/codecov/c/gh/antvis/x6?logo=codecov&style=for-the-badge&token=15CO54WYUV"></a> -->
<a href="https://www.npmjs.com/package/@antv/x6"><img alt="NPM Package" src="https://img.shields.io/npm/v/@antv/x6.svg?logo=npm&style=for-the-badge"></a>
<a href="https://www.npmjs.com/package/@antv/x6"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@antv/x6?logo=npm&style=for-the-badge"></a>
<a href="https://github.com/antvis/X6/actions/workflows/ci.yml"><img alt="build" src="https://img.shields.io/github/workflow/status/antvis/x6/%F0%9F%91%B7%E3%80%80CI/master?logo=github&style=flat-square"></a>
<a href="https://app.codecov.io/gh/antvis/X6"><img alt="coverage" src="https://img.shields.io/codecov/c/gh/antvis/x6?logo=codecov&style=flat-square&token=15CO54WYUV"></a>
<a href="https://lgtm.com/projects/g/antvis/x6/context:javascript"><img alt="Language grade: JavaScript" src="https://img.shields.io/lgtm/grade/javascript/g/antvis/x6.svg?logo=lgtm&style=flat-square"></a>
<a href="https://www.npmjs.com/package/@antv/x6"><img alt="NPM Package" src="https://img.shields.io/npm/v/@antv/x6.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/@antv/x6"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@antv/x6?logo=npm&style=flat-square"></a>
</p>
<p align="center">
<a href="/LICENSE"><img src="https://img.shields.io/github/license/antvis/x6?style=for-the-badge" alt="MIT License"></a>
<a href="https://www.typescriptlang.org"><img alt="Language" src="https://img.shields.io/badge/language-TypeScript-blue.svg?style=for-the-badge"></a>
<a href="https://github.com/antvis/x6/pulls"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=for-the-badge"></a>
<a href="https://x6.antv.antgroup.com"><img alt="website" src="https://img.shields.io/static/v1?label=&labelColor=505050&message=website&color=0076D6&style=for-the-badge&logo=google-chrome&logoColor=f5f5f5"></a>
<a href="/LICENSE"><img src="https://img.shields.io/github/license/antvis/x6?style=flat-square" alt="MIT License"></a>
<a href="https://www.typescriptlang.org"><img alt="Language" src="https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square"></a>
<a href="https://github.com/antvis/x6/pulls"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square"></a>
<a href="https://x6.antv.vision"><img alt="website" src="https://img.shields.io/static/v1?label=&labelColor=505050&message=website&color=0076D6&style=flat-square&logo=google-chrome&logoColor=0076D6"></a>
</p>
## 特性
- 🌱  极易定制:支持使用 SVG/HTML/React/Vue/Angular 定制节点样式和交互
- 🚀  开箱即用:内置 10+ 图编辑配套扩展,如框选、对齐线、小地图等
- 🧲  数据驱动:基于 MVC 架构,用户更加专注于数据逻辑和业务逻辑
- 💯  事件驱动:完备的事件系统,可以监听图表内发生的任何事件
## 兼容环境
- 现代浏览器
- 支持服务端渲染。
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
| --- | --- | --- |
| last 2 versions | last 2 versions | last 2 versions |
- 🌱 极易定制:支持使用 SVG/HTML/React/Vue 定制节点样式和交互
- 🚀 开箱即用:内置 10+ 图编辑配套扩展,如框选、对齐线、小地图等
- 🧲 数据驱动:基于 MVC 架构,用户更加专注于数据逻辑和业务逻辑
- 💯 事件驱动:完备的事件系统,可以监听图表内发生的任何事件
## 安装
### 使用 NPM/Yarn
```shell
# npm
$ npm install @antv/x6 --save
@ -45,20 +41,51 @@ $ npm install @antv/x6 --save
$ yarn add @antv/x6
```
## 示例
### 使用 CDN
可以使用下面任意一个最新版本的 CDN 地址:
- https://unpkg.com/@antv/x6/dist/x6.js
- https://cdn.jsdelivr.net/npm/@antv/x6/dist/x6.js
- https://cdnjs.cloudflare.com/ajax/libs/antv-x6/1.3.20/x6.js
```html
<script src="https://unpkg.com/@antv/x6/dist/x6.js"></script>
```
在生产环境中,建议使用指定版本号的链接,以避免版本更新带来的意外破坏:
- https://unpkg.com/@antv/x6@1.1.1/dist/x6.js
- https://cdn.jsdelivr.net/npm/@antv/x6@1.1.1/dist/x6.js
- https://cdnjs.cloudflare.com/ajax/libs/antv-x6/1.1.1/x6.js
```html
<script src="https://unpkg.com/@antv/x6@1.1.1/dist/x6.js"></script>
```
## 快速使用
**Step 1**: 指定渲染图的容器。
```html
<div id="container" style="width: 600px; height: 400px"></div>
```
```ts
import { Graph } from '@antv/x6'
**Step 2**: 渲染节点和边。
```ts
// 从 node_modules 引入
import { Graph } from '@antv/x6'
// 从 CDN 引入时,我们暴露了 X6 这个全局变量
// const { Graph } = X6
// 创建 Graph 的实例
const graph = new Graph({
container: document.getElementById('container'),
grid: true,
grid: true
})
// 渲染源节点
const source = graph.addNode({
x: 300,
y: 40,
@ -67,6 +94,7 @@ const source = graph.addNode({
label: 'Hello',
})
// 渲染目标节点
const target = graph.addNode({
x: 420,
y: 180,
@ -75,43 +103,135 @@ const target = graph.addNode({
label: 'World',
})
// 渲染边
graph.addEdge({
source,
target,
})
```
## 链接
渲染结果如下。
- [文档](http://x6.antv.antgroup.com/tutorial/about)
- [示例](http://x6.antv.antgroup.com/examples)
- [博客](https://www.yuque.com/antv/x6/huhla47wqalq5n7r)
- [更新日志](https://www.yuque.com/antv/x6/bbfu6r)
- [常见问题](https://www.yuque.com/antv/x6/tox1ukbz5cw57qfy)
- [复现模板](https://codesandbox.io/s/mo-ban-55i8dp)
- [awesome-x6](https://github.com/lloydzhou/awesome-x6)
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*o4W3RLZicagAAAAAAAAAAAAAARQnAQ" alt="HelloWorld" />
## 本地开发
## 使用文档
```shell
# 安装项目依赖和初始化构建
$ pnpm install
- [简介](https://x6.antv.vision/zh/docs/tutorial/about)
- [快速上手](https://x6.antv.vision/zh/docs/tutorial/getting-started)
- [基础教程](https://x6.antv.vision/zh/docs/tutorial/basic/graph)
- [进阶实践](https://x6.antv.vision/zh/docs/tutorial/intermediate/serialization)
- [高级指引](https://x6.antv.vision/zh/docs/tutorial/advanced/animation)
- [更新日志](https://www.yuque.com/antv/x6/xgb04i)
# 进入到指定项目开发和调试
cd packages/x6
pnpm run build:watch
## 应用案例
# 启动 example 查看效果
cd examples/x6-example-features
pnpm run start
<center>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#flowchart" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*JSr-RbwCgmcAAAAAAAAAAAAAARQnAQ" alt="Flow"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#dag" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*RPiGRaSus3UAAAAAAAAAAAAAARQnAQ" alt="Dag"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#mindmap" target="_blank" rel="noopener noreferrer">
<img width="400" height="200" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*GsEGSaBkc84AAAAAAAAAAAAAARQnAQ" alt="MindMap"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#bpmn" target="_blank" rel="noopener noreferrer">
<img width="400" height="200" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*aPSySa8oz4sAAAAAAAAAAAAAARQnAQ" alt="BPMN"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#class" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*OaCpR7t_mVoAAAAAAAAAAAAAARQnAQ" alt="Class"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#org" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*FWx5SYDzLw4AAAAAAAAAAAAAARQnAQ" alt="ORG"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#er" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*7yVJQoM6-9AAAAAAAAAAAAAAARQnAQ" alt="ER"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#swimlane" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*mUVrSJMkP1UAAAAAAAAAAAAAARQnAQ" alt="SwimLane"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#tree" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*XDnNRqnj4WkAAAAAAAAAAAAAARQnAQ" alt="Tree"/>
</a>
<a href="https://x6.antv.vision/zh/examples/showcase/practices#elk" target="_blank" rel="noopener noreferrer">
<img width="400" height="250" style="margin-bottom: 20px" src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*Z3ebTKy0w9cAAAAAAAAAAAAAARQnAQ" alt="ELK"/>
</a>
</center>
## 如何交流
如果你在使用的过程中碰到问题,可以先通过 [issues](https://github.com/antvis/x6/issues) 看看有没有类似的 bug 或者建议。欢迎提 [issues](https://github.com/antvis/x6/issues/new) 交流,也可以使用[钉钉](https://m.dingtalk.com/)扫描下面二维码加入**X6 交流群**。
需要注意的是,提问题时请配上 [CodeSandbox](https://codesandbox.io/s/pensive-sound-f4nhc) 的复现代码,方便快速定位和解决问题。
<a href="https://qr.dingtalk.com/action/joingroup?code=v1,k1,rOHuvgq5s0EHDktyyQJffDE3ZAmHnbB2e6iwn/w4BKs=&_dt_no_comment=1&origin=11" target="_blank" rel="noopener noreferrer">
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*nFa5TaWsSOoAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群4" width="260" />
</a>
## 如何开发
我们使用了 [lerna](https://github.com/lerna/lerna) 来管理项目,目录结构如下:
```
.
├── examples
│ ├── x6-app-dag # dag 图示例
│ ├── x6-app-draw # 流程图示例
│ ├── x6-app-er # ER 图示例
│ └── x6-example-features # 特性演示示例
├── packages
│ ├── x6 # X6
│ ├── x6-react # X6 的 React 封装(预留)
│ ├── x6-react-components # 配套 React 组件库
│ ├── x6-react-shape # 支持使用 React 渲染节点
│ └── x6-vue-shape # 支持使用 Vue 渲染节点
└── sites
├── x6-sites # 官网和文档
├── x6-sites-demos # 文档中嵌入的 DEMO
└── x6-sites-demos-helper # 构建文档 DEMO 的工具
```
## 参与共建
开始之前需要安装必要的全局依赖和初始化:
如果希望参与到 X6 的开发中,请遵从我们的[贡献指南](/CONTRIBUTING.zh-CN.md)。如果你贡献度足够活跃,你可以申请成为社区协作者。
```shell
# 全局安装 yarn 和 lerna 工具
$ npm install yarn -g
$ npm install lerna -g
# 安装项目依赖和初始化构建
$ yarn bootstrap
```
然后可以进入到指定项目开发和调试。
如本地启动 `examples/x6-example-features` 示例:
```shell
cd examples/x6-example-features
yarn start
```
修复 X6 的 BUG 时可以开启 watch 模式,配合上面启动的本地 DEMO实时查看修复效果
```shell
cd packages/x6
// esm 模式,动态构建 es 产物
yarn build:watch:esm
// commonjs 模式,动态构建 lib 产物
yarn build:watch:cjs
```
## 如何贡献
如果你在使用的过程中碰到问题,可以先通过 [issues](https://github.com/antvis/x6/issues) 看看有没有类似的 bug 或者建议。
如需提交代码,请遵从我们的[贡献指南](/CONTRIBUTING.zh-CN.md)。我们会收集贡献者的 Github 头像到下面贡献者清单中。
<a href="https://github.com/antvis/x6/graphs/contributors">
<img src="https://raw.githubusercontent.com/antvis/X6/master/CONTRIBUTORS.svg" alt="Contributors" />
<img src="/CONTRIBUTORS.svg" alt="Contributors" width="740" />
</a>
## 开源协议

View File

@ -1,18 +0,0 @@
# Security Policy
## Supported Versions
Use this section to tell people about which versions of your project are currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |
## Reporting a Vulnerability
Use this section to tell people how to report a vulnerability.
Tell them where to go, how often they can expect to get an update on a reported vulnerability, what to expect if the vulnerability is accepted or declined, etc.

View File

@ -0,0 +1,113 @@
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-14)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-08)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-08)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-07)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-05)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-03)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-11-01)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-22)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-19)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-12)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-12)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-08)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-02)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-02)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-01)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-01)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-01)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-10-01)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-09-30)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-09-22)
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/eslint-config@1.0.0...@antv/eslint-config@1.0.1) (2021-09-13)
# @antv/eslint-config 1.0.0 (2021-06-17)
### Bug Fixes
* 🐛 fix eslint errors ([06ba121](https://github.com/antvis/x6/commit/06ba121e3b937c5aeebbbe2b24e6db67fc141cb9))
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ add lint rules for *.js files ([21f5436](https://github.com/antvis/x6/commit/21f54366776a304e8abb9df087c645653fb22ed5))
* ✨ add unicorn plugin ([3e8515b](https://github.com/antvis/x6/commit/3e8515bedf0da8ca10119c8a00ffd972f3a1e3aa))
* ✨ support bitwise ([d9bc9d9](https://github.com/antvis/x6/commit/d9bc9d92e8bec74e780a44364f9e21da5f34096b))
# @antv/eslint-config 1.0.0 (2021-06-16)
### Bug Fixes
* 🐛 fix eslint errors ([06ba121](https://github.com/antvis/x6/commit/06ba121e3b937c5aeebbbe2b24e6db67fc141cb9))
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ add lint rules for *.js files ([21f5436](https://github.com/antvis/x6/commit/21f54366776a304e8abb9df087c645653fb22ed5))
* ✨ add unicorn plugin ([3e8515b](https://github.com/antvis/x6/commit/3e8515bedf0da8ca10119c8a00ffd972f3a1e3aa))
* ✨ support bitwise ([d9bc9d9](https://github.com/antvis/x6/commit/d9bc9d92e8bec74e780a44364f9e21da5f34096b))
# @antv/eslint-config 1.0.0 (2021-06-15)
### Bug Fixes
* 🐛 fix eslint errors ([06ba121](https://github.com/antvis/x6/commit/06ba121e3b937c5aeebbbe2b24e6db67fc141cb9))
### Features
* ✨ add lint rules for *.js files ([21f5436](https://github.com/antvis/x6/commit/21f54366776a304e8abb9df087c645653fb22ed5))
* ✨ add unicorn plugin ([3e8515b](https://github.com/antvis/x6/commit/3e8515bedf0da8ca10119c8a00ffd972f3a1e3aa))
* ✨ support bitwise ([d9bc9d9](https://github.com/antvis/x6/commit/d9bc9d92e8bec74e780a44364f9e21da5f34096b))
# @antv/eslint-config 1.0.0 (2021-06-15)
### Bug Fixes
* 🐛 fix eslint errors ([06ba121](https://github.com/antvis/x6/commit/06ba121e3b937c5aeebbbe2b24e6db67fc141cb9))
### Features
* ✨ add lint rules for *.js files ([21f5436](https://github.com/antvis/x6/commit/21f54366776a304e8abb9df087c645653fb22ed5))
* ✨ add unicorn plugin ([3e8515b](https://github.com/antvis/x6/commit/3e8515bedf0da8ca10119c8a00ffd972f3a1e3aa))
* ✨ support bitwise ([d9bc9d9](https://github.com/antvis/x6/commit/d9bc9d92e8bec74e780a44364f9e21da5f34096b))
# @antv/eslint-config 1.0.0 (2021-06-11)
### Bug Fixes
* 🐛 fix eslint errors ([06ba121](https://github.com/antvis/x6/commit/06ba121e3b937c5aeebbbe2b24e6db67fc141cb9))
### Features
* ✨ add lint rules for *.js files ([21f5436](https://github.com/antvis/x6/commit/21f54366776a304e8abb9df087c645653fb22ed5))
* ✨ add unicorn plugin ([3e8515b](https://github.com/antvis/x6/commit/3e8515bedf0da8ca10119c8a00ffd972f3a1e3aa))
* ✨ support bitwise ([d9bc9d9](https://github.com/antvis/x6/commit/d9bc9d92e8bec74e780a44364f9e21da5f34096b))

View File

@ -0,0 +1,55 @@
{
"private": true,
"name": "@antv/eslint-config",
"version": "1.0.1",
"main": "./lib/index.js",
"license": "MIT",
"files": [
"lib"
],
"scripts": {
"clean": "rimraf lib",
"lint": "eslint 'src/**/*.{js,ts}?(x)' --fix",
"build": "tsc --outDir ./lib",
"build:watch": "yarn build --w",
"prebuild": "run-s clean",
"postinstall": "run-s build",
"prepare": "run-s build",
"precommit": "lint-staged"
},
"lint-staged": {
"*.ts": [
"eslint --fix"
]
},
"inherits": [
"@antv/x6-package-json/cli.json",
"@antv/x6-package-json/eslint.json"
],
"devDependencies": {
"@types/node": "^16.9.1",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^36.0.0",
"fs-extra": "^10.0.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.0",
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.2.1",
"typescript": "^4.4.3",
"watch": "^1.0.2"
}
}

View File

@ -0,0 +1,133 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'eslint-comments',
'import',
'flowtype',
'jest',
'jsx-a11y',
'prettier',
'promise',
'react',
'react-hooks',
'unicorn',
],
extends: [
'airbnb-base',
'eslint:recommended',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:promise/recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true,
mocha: true,
jasmine: true,
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
// project: './tsconfig.json',
ecmaFeatures: {
jsx: true,
},
requireConfigFile: false,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-bitwise': 0,
'no-continue': 0,
'no-lonely-if': 0,
'no-multi-assign': 0,
'no-nested-ternary': 0,
'no-inner-declarations': 0,
'no-unused-expressions': 0,
'max-classes-per-file': 0,
'prefer-destructuring': 0,
'class-methods-use-this': 0,
'implicit-arrow-linebreak': 0,
'lines-between-class-members': 0,
'@typescript-eslint/lines-between-class-members': 0,
'consistent-return': 0,
'no-return-assign': [2, 'except-parens'],
'no-param-reassign': [2, { props: false }],
'no-cond-assign': [2, 'except-parens'],
'no-console': [2, { allow: ['warn', 'error'] }],
'@typescript-eslint/no-unused-expressions': [
2,
{ allowShortCircuit: true, allowTernary: true },
],
eqeqeq: [2, 'always', { null: 'ignore' }],
'func-names': [1, 'never', { generators: 'as-needed' }],
'import/export': 0,
'import/no-cycle': 0,
'import/extensions': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'promise/always-return': 0,
'promise/catch-or-return': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'no-shadow': 0,
'@typescript-eslint/no-shadow': 0,
camelcase: 0,
'@typescript-eslint/camelcase': 0,
'no-use-before-define': 0,
'@typescript-eslint/no-use-before-define': 0,
'no-useless-constructor': 0,
'@typescript-eslint/no-useless-constructor': 0,
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': [
2,
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true },
],
'no-redeclare': 0,
'@typescript-eslint/no-redeclare': [2, { ignoreDeclarationMerge: true }],
'react/sort-comp': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/destructuring-assignment': 0,
'react/no-access-state-in-setstate': 0,
},
overrides: [
{
files: ['**/*.js'],
rules: {
'no-console': 0,
'global-require': 0,
},
},
],
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn commitlint --edit "$1"

View File

@ -0,0 +1 @@
echo

View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
yarn precommit

View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
npx devmoji -e --lint

5
configs/husky-config/prepush Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
./scripts/pre-push-check

108
configs/karma-config.js Normal file
View File

@ -0,0 +1,108 @@
const cpuCount = require('os').cpus().length
const es6Transform = require('karma-typescript-es6-transform')
module.exports = function (config, base, karmaTypescriptConfig) {
const hasFlag = (flag) => process.argv.some((arg) => arg === flag)
const isDebug = hasFlag('--debug')
const isWatch = hasFlag('--auto-watch')
const common = {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '.',
// list of files to exclude
exclude: [],
frameworks: ['jasmine', 'karma-typescript'],
preprocessors: {
'**/*.ts': ['karma-typescript'],
},
reporters: ['spec', 'karma-typescript'],
specReporter: {
suppressPassed: isWatch || isDebug,
},
browsers: [process.env.CI ? 'ChromeHeadless' : 'ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--headless',
'--no-sandbox',
'--disable-gpu',
'--disable-translate',
'--disable-extensions',
'--remote-debugging-port=9222',
],
},
},
client: {
jasmine: {
random: false,
},
},
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
// Concurrency level
// how many browser should be started simultaneous
concurrency: cpuCount || Infinity,
}
const reportsDir = 'test/coverage'
config.set(
Object.assign(common, base, {
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
bundlerOptions: {
sourceMap: true,
transforms: [
es6Transform({
presets: [['@babel/preset-env']],
}),
],
},
coverageOptions: {
instrumentation: !isDebug,
exclude: /\.test|spec\.ts$/,
},
reports: {
html: reportsDir,
lcovonly: {
directory: reportsDir,
subdirectory: './',
filename: 'lcov.info',
},
cobertura: {
directory: reportsDir,
subdirectory: './',
filename: 'coverage.xml',
},
'text-summary': '',
},
...karmaTypescriptConfig,
},
}),
)
}

View File

@ -0,0 +1,159 @@
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-07)
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-06)
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-06-05)
## @antv/x6-package-json [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.1...@antv/x6-package-json@1.0.2) (2022-05-31)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-14)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-08)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-08)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-07)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-05)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-03)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-11-01)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-22)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-19)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-12)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-12)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-08)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-02)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-02)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-01)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-01)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-01)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-10-01)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-09-30)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-09-22)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-09-13)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-31)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-24)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-18)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-17)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-16)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-06)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-06)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-08-03)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-27)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-22)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-21)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-21)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-10)
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-package-json@1.0.0...@antv/x6-package-json@1.0.1) (2021-07-09)
# @antv/x6-package-json 1.0.0 (2021-06-17)
### Bug Fixes
* 🐛 fix karma can not process lodash-es ([f7ae6b1](https://github.com/antvis/x6/commit/f7ae6b1f6b961a01c58d8827a9aaa2d5a984a6e0))
* 🐛 should only read json files ([af9d87f](https://github.com/antvis/x6/commit/af9d87fedccf4ba791db5570ca73228520107e2a))
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ add deps for jest ([4c831b8](https://github.com/antvis/x6/commit/4c831b84d032cc92f1c914143f4182772202620d))
* ✨ add package inherit, compare commands ([d494b9f](https://github.com/antvis/x6/commit/d494b9f92e4e98816fb00acc02296bf5aa63f1b4))
* ✨ sharing partial(devDependencies, peerDependencies, dependencies, scripts) package.json ([95c1112](https://github.com/antvis/x6/commit/95c1112c4e226c060dd94019f6ce5530a922a92f))
* ✨ update vue deps ([37eae0b](https://github.com/antvis/x6/commit/37eae0b12502fba373d30153e0d1ac2085e843e8))
# @antv/x6-package-json 1.0.0 (2021-06-16)
### Bug Fixes
* 🐛 fix karma can not process lodash-es ([f7ae6b1](https://github.com/antvis/x6/commit/f7ae6b1f6b961a01c58d8827a9aaa2d5a984a6e0))
* 🐛 should only read json files ([af9d87f](https://github.com/antvis/x6/commit/af9d87fedccf4ba791db5570ca73228520107e2a))
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ add deps for jest ([4c831b8](https://github.com/antvis/x6/commit/4c831b84d032cc92f1c914143f4182772202620d))
* ✨ add package inherit, compare commands ([d494b9f](https://github.com/antvis/x6/commit/d494b9f92e4e98816fb00acc02296bf5aa63f1b4))
* ✨ sharing partial(devDependencies, peerDependencies, dependencies, scripts) package.json ([95c1112](https://github.com/antvis/x6/commit/95c1112c4e226c060dd94019f6ce5530a922a92f))
* ✨ update vue deps ([37eae0b](https://github.com/antvis/x6/commit/37eae0b12502fba373d30153e0d1ac2085e843e8))
# @antv/x6-package-json 1.0.0 (2021-06-15)
### Bug Fixes
* 🐛 fix karma can not process lodash-es ([f7ae6b1](https://github.com/antvis/x6/commit/f7ae6b1f6b961a01c58d8827a9aaa2d5a984a6e0))
* 🐛 should only read json files ([af9d87f](https://github.com/antvis/x6/commit/af9d87fedccf4ba791db5570ca73228520107e2a))
### Features
* ✨ add deps for jest ([4c831b8](https://github.com/antvis/x6/commit/4c831b84d032cc92f1c914143f4182772202620d))
* ✨ add package inherit, compare commands ([d494b9f](https://github.com/antvis/x6/commit/d494b9f92e4e98816fb00acc02296bf5aa63f1b4))
* ✨ sharing partial(devDependencies, peerDependencies, dependencies, scripts) package.json ([95c1112](https://github.com/antvis/x6/commit/95c1112c4e226c060dd94019f6ce5530a922a92f))
* ✨ update vue deps ([37eae0b](https://github.com/antvis/x6/commit/37eae0b12502fba373d30153e0d1ac2085e843e8))
# @antv/x6-package-json 1.0.0 (2021-06-15)
### Bug Fixes
* 🐛 fix karma can not process lodash-es ([f7ae6b1](https://github.com/antvis/x6/commit/f7ae6b1f6b961a01c58d8827a9aaa2d5a984a6e0))
* 🐛 should only read json files ([af9d87f](https://github.com/antvis/x6/commit/af9d87fedccf4ba791db5570ca73228520107e2a))
### Features
* ✨ add deps for jest ([4c831b8](https://github.com/antvis/x6/commit/4c831b84d032cc92f1c914143f4182772202620d))
* ✨ add package inherit, compare commands ([d494b9f](https://github.com/antvis/x6/commit/d494b9f92e4e98816fb00acc02296bf5aa63f1b4))
* ✨ sharing partial(devDependencies, peerDependencies, dependencies, scripts) package.json ([95c1112](https://github.com/antvis/x6/commit/95c1112c4e226c060dd94019f6ce5530a922a92f))
* ✨ update vue deps ([37eae0b](https://github.com/antvis/x6/commit/37eae0b12502fba373d30153e0d1ac2085e843e8))
# @antv/x6-package-json 1.0.0 (2021-06-11)
### Bug Fixes
* 🐛 fix karma can not process lodash-es ([f7ae6b1](https://github.com/antvis/x6/commit/f7ae6b1f6b961a01c58d8827a9aaa2d5a984a6e0))
* 🐛 should only read json files ([af9d87f](https://github.com/antvis/x6/commit/af9d87fedccf4ba791db5570ca73228520107e2a))
### Features
* ✨ add deps for jest ([4c831b8](https://github.com/antvis/x6/commit/4c831b84d032cc92f1c914143f4182772202620d))
* ✨ add package inherit, compare commands ([d494b9f](https://github.com/antvis/x6/commit/d494b9f92e4e98816fb00acc02296bf5aa63f1b4))
* ✨ sharing partial(devDependencies, peerDependencies, dependencies, scripts) package.json ([95c1112](https://github.com/antvis/x6/commit/95c1112c4e226c060dd94019f6ce5530a922a92f))
* ✨ update vue deps ([37eae0b](https://github.com/antvis/x6/commit/37eae0b12502fba373d30153e0d1ac2085e843e8))

View File

@ -0,0 +1,12 @@
{
"peerDependencies": {
"@angular/core": ">=10.2.3",
"@angular/cdk": ">=10.2.3",
"@angular/common": "^10.2.3"
},
"devDependencies": {
"@angular/core": "^10.2.3",
"@angular/cdk": "^10.2.3",
"@angular/common": "^10.2.3"
}
}

View File

@ -0,0 +1,8 @@
{
"peerDependencies": {
"antd": ">=4.4.2"
},
"devDependencies": {
"antd": "^4.4.2"
}
}

View File

@ -0,0 +1,3 @@
#!/usr/bin/env node
require('../lib/compare/cli')

View File

@ -0,0 +1,5 @@
#!/usr/bin/env node
// @see https://github.com/microsoft/package-inherit
require('../lib/inherit/cli')

View File

@ -0,0 +1,13 @@
{
"devDependencies": {
"@types/node": "^16.9.1",
"fs-extra": "^10.0.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.0",
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
}
}

View File

@ -0,0 +1,18 @@
{
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^36.0.0"
}
}

View File

@ -0,0 +1,8 @@
{
"devDependencies": {
"@types/jest": "^27.0.1",
"coveralls": "^3.1.1",
"jest": "^27.1.1",
"ts-jest": "^27.0.5"
}
}

View File

@ -0,0 +1,16 @@
{
"devDependencies": {
"@types/jasmine": "^3.9.0",
"@types/sinon": "^10.0.2",
"coveralls": "^3.1.1",
"jasmine-core": "^3.9.0",
"karma": "^6.3.4",
"karma-chrome-launcher": "^3.1.0",
"karma-cli": "^2.0.0",
"karma-jasmine": "^4.0.1",
"karma-spec-reporter": "^0.0.32",
"karma-typescript": "5.3.0",
"karma-typescript-es6-transform": "5.3.0",
"sinon": "^11.1.2"
}
}

View File

@ -0,0 +1,3 @@
保持下面两个模块的版本,不然 x6 主包的测试跑步起来
- "karma-typescript": "^5.3.0"
- "karma-typescript-es6-transform": "^5.3.0"

View File

@ -0,0 +1,11 @@
{
"devDependencies": {
"less": "^4.1.1",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.4.0",
"stylelint-order": "^4.1.0"
}
}

View File

@ -0,0 +1,79 @@
{
"private": true,
"name": "@antv/x6-package-json",
"version": "1.0.2",
"bin": {
"package-compare": "./bin/package-compare.js",
"package-inherit": "./bin/package-inherit.js"
},
"files": [
"lib",
"bin"
],
"scripts": {
"clean": "rimraf lib",
"lint": "eslint 'src/**/*.{js,ts}?(x)' --fix",
"build": "tsc --outDir ./lib",
"build:watch": "yarn build --w",
"prebuild": "run-s clean",
"postinstall": "run-s build",
"prepare": "run-s build",
"precommit": "lint-staged"
},
"lint-staged": {
"*.ts": [
"eslint --fix"
]
},
"inherits": [
"@antv/x6-package-json/cli.json",
"@antv/x6-package-json/eslint.json",
"@antv/x6-package-json/rollup.json"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"@types/node": "^16.9.1",
"@types/parse-package-name": "^0.1.0",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^36.0.0",
"fs-extra": "^10.0.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.6",
"prettier": "^2.4.0",
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"rollup": "^2.56.3",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^10.2.1",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"dependencies": {
"latest-version": "^5.1.0",
"chalk": "^4.1.0",
"detect-newline": "^3.1.0",
"parse-package-name": "^0.1.0",
"workspace-tools": "^0.18.4",
"yargs-parser": "^20.2.7"
}
}

View File

@ -0,0 +1,11 @@
{
"peerDependencies": {
"react": ">=16.8.6 || >=17.0.0",
"react-dom": ">=16.8.6 || >=17.0.0"
},
"devDependencies": {
"@types/react": "^16.9.13",
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
}

View File

@ -0,0 +1,16 @@
{
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"postcss": "^8.3.6",
"rollup": "^2.56.3",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-terser": "^7.0.2",
"tslib": "^2.3.1"
}
}

View File

@ -0,0 +1,6 @@
{
"extends": "../../../.eslintrc",
"rules": {
"no-console": 0
}
}

View File

@ -0,0 +1,102 @@
import fs from 'fs'
import path from 'path'
import chalk from 'chalk'
import latestVersion from 'latest-version'
const root = path.resolve(__dirname, '../../')
const reserved = 'package.json'
const sections = ['dependencies', 'devDependencies']
const pad = (str: string, max: number) => {
return str.length < max
? `${str}${Array(max - str.length).join(' ')}`
: `${str.substr(0, max - 4)}...`
}
const pkgs = []
const files = fs.readdirSync(root)
files.forEach((name: string) => {
const file = path.join(root, name)
const stat = fs.statSync(file)
if (stat.isFile() && path.extname(file) === '.json' && name !== reserved) {
pkgs.push(file)
}
})
pkgs.unshift(path.resolve(__dirname, '../../../../', reserved))
const moduleNames: string[] = []
pkgs.forEach((file) => {
const content = fs.readFileSync(file, { encoding: 'utf-8' })
const pkgJSON = JSON.parse(content)
sections.forEach((section) => {
const deps = pkgJSON[section]
if (deps) {
moduleNames.push(...Object.keys(deps))
}
})
})
const paths = pkgs.map((file) => path.relative(process.cwd(), file))
const maxFileLength = Math.max(...paths.map((item) => item.length)) + 2
const maxNameLength = Math.min(
Math.max(...moduleNames.map((item) => item.length)) + 2,
40,
)
const maxSectionLength = Math.max(...sections.map((item) => item.length)) + 2
const log = (
pkg: string,
section: string,
name: string,
local: string,
remote: string,
highlight?: boolean,
) => {
const line = `${pad(pkg, maxFileLength)} ${pad(
section,
maxSectionLength,
)} ${pad(name, maxNameLength)} ${pad(local, 10)} ${remote}`
console.log(highlight ? chalk.gray(line) : line)
}
console.log()
console.log(
'Comapre packages local version with latest version on npm registry.',
)
console.log()
log('file', 'section', 'name', 'local', 'remote')
console.log(
Array(maxFileLength + maxSectionLength + maxNameLength + 21).join('-'),
)
pkgs.forEach((file) => {
const content = fs.readFileSync(file, { encoding: 'utf-8' })
const pkgJSON = JSON.parse(content)
const defers: Promise<any>[] = []
sections.forEach((section) => {
const deps = pkgJSON[section]
if (deps) {
Object.keys(deps).forEach(async (name) => {
const pkg = path.relative(process.cwd(), file)
const local = deps[name]
const defer = latestVersion(name).then((remote) => {
return {
pkg,
section,
name,
local,
remote,
}
})
defers.push(defer)
})
}
})
Promise.all(defers).then((arr) => {
arr.forEach(({ pkg, section, name, local, remote }) => {
const localv = local.replace(/^[\^~]|>=/, '')
log(pkg, section, name, local, remote, localv !== remote)
})
})
})

View File

@ -0,0 +1,21 @@
import { collect } from './collect'
export function check(cwd: string, args: any) {
const updatedInfo = collect(cwd)
if (updatedInfo.modifiedPackages.length > 0) {
const recoveryCommand = args.recovery || 'package-inherit update'
console.error(
`
The inheritance of package.json is in an inconsistent state.
These packages are inconsistent:
${updatedInfo.modifiedPackages.sort().join('\n')}
Please run the following command:
> ${recoveryCommand}
`,
)
} else {
console.log('Nothing needs to be updated.')
}
}

View File

@ -0,0 +1,42 @@
import yargsParser from 'yargs-parser'
import { update } from './update'
import { check } from './check'
const args = yargsParser(process.argv.slice(2))
const command = args._[0]
switch (command) {
case 'update':
update(process.cwd())
break
case 'check':
check(process.cwd(), args)
break
default:
console.log(`
Usage: package-inherit [command] [--recovery]
This utility will update package.json in a monorepo to inherit from another
package.json template. Currently, support the following sections to merge
into the package.json
- scripts
- dependencies
- devDependencies
- peerDependencies
Commands:
update updates the package.json for all packages in a monorepo to
match inheritance.
check checks all the package.json inheritance are consistent.
Options:
--recovery custom recovery command to show developers when the check has failed
`)
break
}

View File

@ -0,0 +1,102 @@
import fs from 'fs'
import path from 'path'
import parsePackageName from 'parse-package-name'
import { PackageInfos } from 'workspace-tools/lib/types/PackageInfo'
import { getPackageInfos } from 'workspace-tools/lib/getPackageInfos'
type KeyValue = { [key: string]: string }
export function collect(cwd: string) {
const allPackages = getPackageInfos(cwd)
const modifiedPackages: string[] = []
const sections = [
'devDependencies',
'peerDependencies',
'dependencies',
'scripts',
]
// eslint-disable-next-line no-restricted-syntax
for (const [pkg, pkgInfo] of Object.entries(allPackages)) {
// workspace-tools typings are not comprehensive about what is possible,
// so we force cast it
const inherits = pkgInfo.inherits as string[]
if (inherits) {
const merged: { [section: string]: KeyValue } = {}
// eslint-disable-next-line no-restricted-syntax
for (const inherit of inherits) {
const file = resolveInRepo(pkg, inherit, allPackages)
if (!file) {
throw new Error(`${file} does not exist`)
}
const inheritInfo = JSON.parse(fs.readFileSync(file, 'utf-8'))
// Merge inherit infos for given package together before checking
// shouldUpdate. This will allows inherit check behavior to be
// symmetric with update behavior, which updates packages defined
// in multiple inherit files to their last occurrence.
// eslint-disable-next-line no-restricted-syntax
for (const section of sections) {
merged[section] = {
...merged[section],
...inheritInfo[section],
}
}
}
// eslint-disable-next-line no-restricted-syntax
for (const section of sections) {
const prev = pkgInfo[section] as KeyValue
const next = merged[section]
if (shouldUpdate(prev, next)) {
const combined = { ...prev, ...next }
const sorted: KeyValue = {}
Object.keys(combined)
.sort()
.forEach(function (name) {
sorted[name] = combined[name]
})
pkgInfo[section] = sorted
modifiedPackages.push(pkg)
}
}
}
}
return { allPackages, modifiedPackages }
}
function resolveInRepo(
pkg: string,
inherit: string,
allPackages: PackageInfos,
) {
const parsedInfo = parsePackageName(inherit)
if (parsedInfo.name === '.') {
parsedInfo.name = pkg
}
const info = allPackages[parsedInfo.name]
if (info) {
return path.join(path.dirname(info.packageJsonPath), parsedInfo.path)
}
}
function shouldUpdate(mine: KeyValue, theirs?: KeyValue) {
if (!theirs) {
return false
}
// eslint-disable-next-line no-restricted-syntax
for (const [key, value] of Object.entries(theirs)) {
if (mine[key] !== value) {
return true
}
}
return false
}

View File

@ -0,0 +1,6 @@
// Please see: https://github.com/microsoft/package-inherit
import { update } from './update'
import { check } from './check'
export { update, check }

View File

@ -0,0 +1,27 @@
import fs from 'fs'
import os from 'os'
import detectNewline from 'detect-newline'
import { collect } from './collect'
export function update(cwd: string) {
const updatedInfo = collect(cwd)
if (updatedInfo.modifiedPackages.length > 0) {
// eslint-disable-next-line no-restricted-syntax
for (const pkg of updatedInfo.modifiedPackages) {
const info = updatedInfo.allPackages[pkg]
const { packageJsonPath, ...output } = info
const newLine =
detectNewline(fs.readFileSync(info.packageJsonPath, 'utf-8')) || os.EOL
fs.writeFileSync(
info.packageJsonPath,
JSON.stringify(output, null, 2).replace(/\n/g, newLine) + newLine,
)
}
console.log(`Updated these packages: `)
console.log(updatedInfo.modifiedPackages.sort().join('\n'))
} else {
console.log('Nothing needs to be updated.')
}
}

View File

@ -0,0 +1,13 @@
{
"dependencies": {
"vue-demi": "^0.7.4"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.6",
"vue": "^2.6.12 || ^3.0.0"
},
"devDependencies": {
"@vue/composition-api": "^1.0.0-rc.6",
"vue": "^2.6.12"
}
}

26
configs/rollup-config.js Normal file
View File

@ -0,0 +1,26 @@
import { terser } from 'rollup-plugin-terser'
import replace from '@rollup/plugin-replace'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import filesize from 'rollup-plugin-filesize'
import typescript from '@rollup/plugin-typescript'
export default (config) => {
const { plugins = [], ...others } = config
return {
input: './src/index.ts',
plugins: [
typescript({ declaration: false }),
resolve(),
commonjs(),
replace({
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify('production'),
}),
terser(),
filesize(),
...plugins,
],
...others,
}
}

Some files were not shown because too many files have changed in this diff Show More