Compare commits

...

316 Commits

Author SHA1 Message Date
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
157 changed files with 4849 additions and 2710 deletions

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:

View File

@ -1,3 +1,5 @@
# Comment on issues/PRs on certain events (currently not used at all.)
name: 💬 Auto Comment
on: [issues, pull_request_target]
jobs:

View File

@ -1,3 +1,5 @@
# Continuous integration.
name: 👷 CI
on:
pull_request_target:
@ -13,19 +15,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
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
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -49,19 +51,19 @@ jobs:
github-token: ${{ env.bot_token }}
path-to-lcov: ./packages/x6/test/coverage/lcov.info
- name: 💡 Codecov(x6)
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6/test/coverage/lcov.info
flags: x6
- name: 💡 Codecov(x6-vector)
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6-vector/test/coverage/lcov.info
flags: x6-vector
- name: 💡 Codecov(x6-geometry)
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/x6-geometry/test/coverage/lcov.info

View File

@ -1,3 +1,6 @@
# Create a new branch dedicated to a specific issue
# (may be superseded by GitHub functionalities)
name: 🚧 Create Issue Branch
on:
issue_comment:
@ -6,7 +9,7 @@ jobs:
cib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}

View File

@ -1,3 +1,5 @@
# Delete all but the last x GitHub releases for certain packages.
name: 🚫 Delete Stale Releases
on:
repository_dispatch:
@ -6,7 +8,7 @@ jobs:
clean:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}

View File

@ -1,3 +1,5 @@
# Build and deploy updated official site to GitHub pages.
name: 🚀 Deploy Sites
on:
repository_dispatch:
@ -7,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
@ -21,7 +23,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -30,7 +32,7 @@ jobs:
## cache webpack(babel-loader, eslint-loader)
- name: 💩 Setup Webpack Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
@ -41,7 +43,7 @@ jobs:
## cache sites
- name: 💩 Setup Sites Cache
uses: actions/cache@v2
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') }}

View File

@ -1,3 +1,5 @@
# https://github.com/gitleaks/gitleaks-action
name: 🥤 GitLeaks
on:
pull_request_target:
@ -10,7 +12,7 @@ jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: '1'
- name: wget
@ -18,4 +20,4 @@ jobs:
with:
args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml
- name: gitleaks-action
uses: zricethezav/gitleaks-action@master
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:

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:
@ -11,7 +14,7 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@v3
with:
github-token: ${{ env.bot_token }}
issue-lock-inactive-days: 365

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:

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:

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:

View File

@ -1,3 +1,6 @@
# 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:
@ -9,7 +12,7 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: actions/labeler@v2
- uses: actions/labeler@v4
with:
repo-token: ${{ env.bot_token }}
configuration-path: .github/workflows/config/pr-label-file-paths.yml

View File

@ -1,10 +1,12 @@
# Assign labels based on pull request change sizes.
name: 🏷 Label(Patch Size)
on: pull_request_target
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}

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:
@ -17,4 +19,4 @@ jobs:
- uses: wow-actions/pr-triage@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}
WORKFLOW-ID: ${{ github.event.workflow_run.id }}
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:
@ -16,7 +17,7 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: Naturalclar/issue-action@v2.0.1
- uses: Naturalclar/issue-action@v2.0.2
with:
title-or-body: title
github-token: ${{ env.bot_token }}

View File

@ -1,3 +1,5 @@
# https://github.com/afc163/surge-preview
name: 🔂 Surge PR Preview
on:
pull_request_target:
@ -11,16 +13,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- 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@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -29,7 +31,7 @@ jobs:
## cache webpack(babel-loader, eslint-loader)
- name: 💩 Setup webpack cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
@ -40,7 +42,7 @@ jobs:
## cache sites
- name: 💩 Setup sites cache
uses: actions/cache@v2
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') }}
@ -48,7 +50,7 @@ jobs:
${{ runner.os }}-sites-
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

View File

@ -1,3 +1,5 @@
# Automatically rebase PRs via the /rebase command
name: 🎉 Rebase
on:
issue_comment:
@ -7,7 +9,7 @@ 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@v1

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:
@ -14,19 +18,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
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
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -60,7 +64,7 @@ jobs:
- name: 🔀 Repository Dispatch
if: github.ref == 'refs/heads/master'
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ env.bot_token }}
event-type: released

View File

@ -1,3 +1,5 @@
# https://github.com/wow-actions/slash-commands
name: 🔱 Slash Commands
on:
issue_comment:

View File

@ -1,3 +1,5 @@
# Warn and then close issues and PRs that have had no activity for a specified amount of time.
name: 👻 Stale
on:
schedule:
@ -11,7 +13,7 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: actions/stale@v3
- uses: actions/stale@v5
with:
repo-token: ${{ env.bot_token }}
stale-issue-message: |

View File

@ -1,3 +1,5 @@
# Update issue labels in repo as defined in /.github/workflows/config/labels.yml
name: 🔄 Sync Labels
on:
push:
@ -9,7 +11,7 @@ jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}

View File

@ -1,3 +1,5 @@
# 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 是公钥。(⚠️注意此处不要设置密码)

View File

@ -1,3 +1,5 @@
# Automatically generate and update AUTHORS.txt.
name: 🎗 Update Authors
on:
push:
@ -9,7 +11,7 @@ jobs:
authors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wow-actions/use-app-token@v1

View File

@ -1,4 +1,5 @@
# Auto update cahe
# Cache dependencies and build outputs to improve workflow execution time.
# https://github.com/actions/cache
name: 🌈 Update Cache
on:
@ -10,17 +11,20 @@ on:
- next-major
- alpha
- beta
permissions:
contents: read
jobs:
cache:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
steps:
- name:  Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Cache Directory
@ -28,7 +32,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
id: cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

View File

@ -1,3 +1,5 @@
# Update /CONTRIBUTORS.svg to include new contributors' avatars.
name: 🤝 Update Contributors
on:
schedule:

View File

@ -1,3 +1,5 @@
# Renew the copyright notice in LICENSE at the beginning of every year.
name: 🔑 Update License
on:
schedule:
@ -6,7 +8,7 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wow-actions/use-app-token@v1

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:

18
AUTHORS
View File

@ -6,11 +6,18 @@ 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>
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>
@ -18,18 +25,23 @@ Questions <chip@twostewards.com>
RuiLin <on>
SSC <273702440@qq.com>
Sindori <441933726@qq.com>
Susan <527971893@qq.com>
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>
kingshuaishuai <ken.wang@mrs.ai>
kio <1421104933@qq.com>
lijing666 <lijing241@yeah.net>
@ -37,10 +49,14 @@ lopn <lopnxrp@126.com>
luchunwei <luchunwei@gmail.com>
luzhuang <364439895@qq.com>
lvhuiyang <ilvhuiyang@gmail.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>
wgf <34190465+evelope@users.noreply.github.com>
@ -48,6 +64,7 @@ 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>
@ -57,6 +74,7 @@ zdc1111 <39116292+zdc1111@users.noreply.github.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>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.7 MiB

After

Width:  |  Height:  |  Size: 12 MiB

View File

@ -76,7 +76,7 @@ $ yarn add @antv/x6
```ts
// 从 node_modules 引入
import { Graph } from '@antv/x6'
// 从 CND 引入时,我们暴露了 X6 这个全局变量
// 从 CDN 引入时,我们暴露了 X6 这个全局变量
// const { Graph } = X6
// 创建 Graph 的实例
@ -165,9 +165,9 @@ graph.addEdge({
需要注意的是,提问题时请配上 [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*Up-4S4v8H-0AAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群1" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*4Y_5S7i26LAAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群2" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*KHB4QJAsW4QAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群3" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*Up-4S4v8H-0AAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群1" width="260" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*4Y_5S7i26LAAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群2" width="260" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*KHB4QJAsW4QAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群3" width="260" />
</a>
## 如何开发

View File

@ -1,3 +1,11 @@
## @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)

View File

@ -8,6 +8,7 @@
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
"typescript": "^4.4.3",
"release-it": "^14.0.1"
}
}

View File

@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/x6-package-json",
"version": "1.0.1",
"version": "1.0.2",
"bin": {
"package-compare": "./bin/package-compare.js",
"package-inherit": "./bin/package-inherit.js"
@ -73,7 +73,7 @@
"chalk": "^4.1.0",
"detect-newline": "^3.1.0",
"parse-package-name": "^0.1.0",
"workspace-tools": "^0.12.3",
"workspace-tools": "^0.18.4",
"yargs-parser": "^20.2.7"
}
}

View File

@ -1,3 +1,119 @@
## @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)
## @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)
## @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)
## @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
## @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
## @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
## @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
## @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
## @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)
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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
## @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-10)

View File

@ -24,7 +24,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.2.1",
"@antv/x6": "^1.30.2",
"@antv/x6": "^1.32.3",
"@antv/x6-react-components": "^1.1.16",
"@antv/x6-react-shape": "^1.6.0",
"@types/dompurify": "^2.0.4",

View File

@ -1,3 +1,119 @@
## @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)
## @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)
## @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)
## @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
## @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
## @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
## @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
## @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
## @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)
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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
## @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-10)

View File

@ -9,7 +9,7 @@
"precommit": "lint-staged"
},
"dependencies": {
"@antv/x6": "^1.30.2",
"@antv/x6": "^1.32.3",
"@antv/x6-react-components": "^1.1.16",
"antd": "^4.4.2",
"react": "^16.8.6",

View File

@ -1,3 +1,119 @@
## @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)
## @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)
## @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)
## @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
## @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
## @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
## @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
## @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
## @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)
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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)
## @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
## @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
## @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-10)

View File

@ -22,7 +22,7 @@
]
},
"dependencies": {
"@antv/x6": "^1.30.2",
"@antv/x6": "^1.32.3",
"@antv/x6-react-components": "^1.1.16",
"@antv/x6-react-shape": "^1.6.0",
"antd": "^4.4.2",

View File

@ -1,3 +1,318 @@
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.32.3
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.32.2
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.32.1
* **@antv/x6-vector:** upgraded to 1.4.0
## @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
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.5
* **@antv/x6-vector:** upgraded to 1.3.2
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.4
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.3
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.2
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6-vector:** upgraded to 1.3.1
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.1
* **@antv/x6-vector:** upgraded to 1.3.1
## @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](https://github.com/antvis/x6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([4208846](https://github.com/antvis/x6/commit/4208846337326d8983f1662faa8da67efd8568b4))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
### Dependencies
* **@antv/x6:** upgraded to 1.31.0
## @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-10)

View File

@ -9,10 +9,10 @@
"precommit": "lint-staged"
},
"dependencies": {
"@antv/x6": "^1.30.2",
"@antv/x6": "^1.32.3",
"@antv/x6-react-components": "^1.1.16",
"@antv/x6-react-shape": "^1.6.0",
"@antv/x6-vector": "^1.3.0",
"@antv/x6-vector": "^1.4.0",
"antd": "^4.4.2",
"classnames": "^2.2.6",
"dagre": "^0.8.5",

View File

@ -1,173 +0,0 @@
import React from 'react'
import ReactDom from 'react-dom'
import { Tooltip } from 'antd'
import { Graph, Markup, ToolsView, EdgeView } from '@antv/x6'
import '../index.less'
class TooltipTool extends ToolsView.ToolItem<EdgeView, TooltipTool.Options> {
private delay = 100
private moveTimer: number
private enterTimer: number
private leaveTimer: number
private tooltipVisible: boolean
protected onRender() {
this.updatePosition()
}
private toggleTooltip(visible: boolean) {
ReactDom.unmountComponentAtNode(this.childNodes.foContent)
if (visible) {
ReactDom.render(
<Tooltip title={this.options.tooltip} visible={true}>
<div />
</Tooltip>,
this.childNodes.foContent,
)
}
this.tooltipVisible = visible
}
private updatePosition(e?: MouseEvent) {
const fo = this.childNodes.fo as SVGForeignObjectElement
if (e) {
const pos = this.graph.clientToLocal(e.clientX, e.clientY)
fo.setAttribute('x', `${pos.x}`)
fo.setAttribute('y', `${pos.y}`)
} else {
fo.setAttribute('x', `-10000`)
fo.setAttribute('y', `-10000`)
}
}
private onMouseEnter({ e }: EdgeView.EventArgs['edge:mouseenter']) {
this.updatePosition(e.originalEvent)
window.clearTimeout(this.leaveTimer)
this.enterTimer = window.setTimeout(
() => this.toggleTooltip(true),
this.delay,
)
if (this.options.follow != false) {
document.addEventListener('mousemove', this.onMouseMove)
}
}
private onMouseLeave() {
this.updatePosition()
window.clearTimeout(this.enterTimer)
this.leaveTimer = window.setTimeout(
() => this.toggleTooltip(false),
this.delay,
)
if (this.options.follow != false) {
document.removeEventListener('mousemove', this.onMouseMove)
}
}
private onMouseMove = (e: MouseEvent) => {
window.clearTimeout(this.moveTimer)
window.clearTimeout(this.enterTimer)
this.updatePosition(e)
this.moveTimer = window.setTimeout(() => {
if (this.tooltipVisible) {
this.toggleTooltip(false)
}
this.toggleTooltip(true)
}, this.delay)
}
delegateEvents() {
this.cellView.on('edge:mouseenter', this.onMouseEnter, this)
this.cellView.on('edge:mouseleave', this.onMouseLeave, this)
return super.delegateEvents()
}
protected onRemove() {
this.cellView.off('edge:mouseenter', this.onMouseEnter, this)
this.cellView.off('edge:mouseleave', this.onMouseLeave, this)
}
}
namespace TooltipTool {
TooltipTool.config({
markup: Markup.getForeignObjectMarkup(),
})
export interface Options extends ToolsView.ToolItem.Options {
follow?: boolean
tooltip?: string
}
}
Graph.registerEdgeTool('tooltip', TooltipTool, true)
export default class Example extends React.Component {
private container: HTMLDivElement
componentDidMount() {
const graph = new Graph({
container: this.container,
width: 800,
height: 400,
grid: true,
})
graph.addEdge({
source: { x: 40, y: 40 },
target: { x: 380, y: 40 },
vertices: [
{ x: 40, y: 80 },
{ x: 200, y: 80 },
{ x: 200, y: 40 },
],
attrs: {
line: {
stroke: '#3c4260',
strokeWidth: 2,
targetMarker: 'classic',
},
},
tools: [
{
name: 'tooltip',
args: { follow: false, tooltip: 'tooltip test 1' },
},
],
})
graph.addEdge({
source: { x: 40, y: 160 },
target: { x: 380, y: 160 },
vertices: [
{ x: 40, y: 200 },
{ x: 200, y: 200 },
{ x: 200, y: 160 },
],
attrs: {
line: {
stroke: '#3c4260',
strokeWidth: 2,
targetMarker: 'classic',
},
},
connector: 'smooth',
tools: {
name: 'tooltip',
args: { follow: true, tooltip: 'tooltip test 2' },
},
})
}
refContainer = (container: HTMLDivElement) => {
this.container = container
}
render() {
return (
<div className="x6-graph-wrap">
<div ref={this.refContainer} className="x6-graph" />
</div>
)
}
}

View File

@ -1,21 +1,16 @@
import React from 'react'
import React, { memo, useEffect, useRef, useState } from 'react'
import { Graph, Node, Color } from '@antv/x6'
import { Portal } from '@antv/x6-react-shape'
import { Portal, ReactShape } from '@antv/x6-react-shape'
import '../index.less'
class MyComponent extends React.Component<{ node?: Node; text: string }> {
shouldComponentUpdate() {
const node = this.props.node
if (node) {
if (node.hasChanged('data')) {
return true
}
}
// You should do this outside your components
// (or make sure its not recreated on every render).
//
// 这个调用需要在组件外进行。
const X6ReactPortalProvider = Portal.getProvider()
return false
}
render() {
const MyComponent = memo(
({ node, text }: { node?: ReactShape; text: string }) => {
const color = Color.randomHex()
return (
<div
@ -28,18 +23,25 @@ class MyComponent extends React.Component<{ node?: Node; text: string }> {
background: color,
}}
>
{this.props.text}
{text}
</div>
)
}
}
},
(prev, next) => {
return Boolean(next.node?.hasChanged('data'))
},
)
export default class Example extends React.Component {
private container: HTMLDivElement
export default () => {
const container = useRef<HTMLDivElement>(null)
useEffect(() => {
if (!container.current) {
return
}
componentDidMount() {
const graph = new Graph({
container: this.container,
container: container.current,
width: 800,
height: 600,
})
@ -61,7 +63,7 @@ export default class Example extends React.Component {
y: 320,
width: 160,
height: 60,
component: (node) => {
component: (node: Node) => {
return <div>{node.attr('body/fill')}</div>
},
// component: () => <Test text="target" />,
@ -80,19 +82,18 @@ export default class Example extends React.Component {
update()
console.log(graph.toJSON())
}
return () => graph.dispose()
}, [])
refContainer = (container: HTMLDivElement) => {
this.container = container
}
const [counter, setCounter] = useState(0)
render() {
const X6ReactPortalProvider = Portal.getProvider()
return (
<div className="x6-graph-wrap">
<X6ReactPortalProvider />
<div ref={this.refContainer} className="x6-graph" />
</div>
)
}
return (
<div className="x6-graph-wrap">
<button onClick={() => setCounter((i) => i + 1)}>
Counter: {counter}
</button>
<X6ReactPortalProvider />
<div ref={container} className="x6-graph" />
</div>
)
}

View File

@ -17,18 +17,20 @@ class TooltipTool extends ToolsView.ToolItem<EdgeView, TooltipToolOptions> {
}
private toggleTooltip(visible: boolean) {
ReactDom.unmountComponentAtNode(this.knob)
if (visible) {
ReactDom.render(
<Tooltip
title={this.options.tooltip}
visible={true}
destroyTooltipOnHide
>
<div />
</Tooltip>,
this.knob,
)
if (this.knob) {
ReactDom.unmountComponentAtNode(this.knob)
if (visible) {
ReactDom.render(
<Tooltip
title={this.options.tooltip}
visible={true}
destroyTooltipOnHide
>
<div />
</Tooltip>,
this.knob,
)
}
}
}
@ -69,6 +71,7 @@ class TooltipTool extends ToolsView.ToolItem<EdgeView, TooltipToolOptions> {
}
protected onRemove() {
this.toggleTooltip(false)
this.cellView.off('cell:mouseenter', this.onMosueEnter, this)
this.cellView.off('cell:mouseleave', this.onMouseLeave, this)
this.cellView.off('cell:mousemove', this.onMouseMove, this)

View File

@ -1,3 +1,5 @@
## @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)
# @antv/x6-angular-shape [1.3.0](https://github.com/antvis/x6/compare/@antv/x6-angular-shape@1.2.0...@antv/x6-angular-shape@1.3.0) (2022-01-11)

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-angular-shape",
"version": "1.3.0",
"version": "1.3.1",
"description": "X6 shape for rendering angular components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -54,7 +54,7 @@
"devDependencies": {
"@angular/cdk": "^10.2.3",
"@angular/common": "^10.2.3",
"@angular/core": "^10.2.3",
"@angular/core": "^11.0.5",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",

View File

@ -1,3 +1,17 @@
## @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](https://github.com/antvis/x6/commit/de59617532cb20c0103ac701f44f2d0509b782e0))
## @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](https://github.com/antvis/x6/commit/de59617532cb20c0103ac701f44f2d0509b782e0))
## @antv/x6-geometry [1.0.11](https://github.com/antvis/x6/compare/@antv/x6-geometry@1.0.10...@antv/x6-geometry@1.0.11) (2021-11-14)
# @antv/x6-geometry 1.0.0 (2021-11-11)

View File

@ -1,5 +1,5 @@
{
"version": "1.0.11",
"version": "1.0.12",
"name": "@antv/x6-geometry",
"description": "Some useful geometry operations.",
"main": "lib/index.js",
@ -91,11 +91,6 @@
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%"
],
"author": {
"name": "bubkoo",
"email": "bubkoo.wy@gmail.com"

View File

@ -3,5 +3,5 @@
/**
* Auto generated version file, do not modify it!
*/
const version = '1.0.8'
const version = '1.0.12'
export { version }

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-react-shape",
"version": "1.6.0",
"version": "1.6.1",
"description": "X6 shape for rendering react components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -10,7 +10,8 @@
"files": [
"dist",
"es",
"lib"
"lib",
"src"
],
"keywords": [
"shape",

View File

@ -1,3 +1,43 @@
# @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](https://github.com/antvis/x6/commit/de59617532cb20c0103ac701f44f2d0509b782e0))
### Features
* ✨ unified minimap interaction between scroller and panning ([#2109](https://github.com/antvis/x6/issues/2109)) ([3c7c06a](https://github.com/antvis/x6/commit/3c7c06ac30b48d563cbfa5dca298789ac6ea1ba2))
# @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](https://github.com/antvis/x6/commit/3c7c06ac30b48d563cbfa5dca298789ac6ea1ba2))
## @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](https://github.com/antvis/x6/commit/de59617532cb20c0103ac701f44f2d0509b782e0))
## @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](https://github.com/antvis/x6/commit/7440903281be9214d8cff7f69c4e44106d751422))
## @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](https://github.com/antvis/x6/commit/7440903281be9214d8cff7f69c4e44106d751422))
# @antv/x6-vector [1.3.0](https://github.com/antvis/x6/compare/@antv/x6-vector@1.2.3...@antv/x6-vector@1.3.0) (2021-12-18)

View File

@ -1,5 +1,5 @@
{
"version": "1.3.0",
"version": "1.4.0",
"name": "@antv/x6-vector",
"description": "Lightweight library for manipulating and animating SVG.",
"main": "lib/index.js",
@ -103,11 +103,6 @@
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%"
],
"author": {
"name": "bubkoo",
"email": "bubkoo.wy@gmail.com"

View File

@ -94,7 +94,7 @@ export namespace Adopter {
// Make sure, that HTML elements are created with the correct namespace
const wrapper = isHTML ? createHTMLNode('div') : createSVGNode('svg')
wrapper.innerHTML = node
wrapper.innerHTML = typeof node === 'string' ? unescape(node) : node
// We can use firstChild here because we know,
// that the first char is < and thus an element

View File

@ -3,5 +3,5 @@
/**
* Auto generated version file, do not modify it!
*/
const version = '1.3.0'
const version = '1.4.0'
export { version }

View File

@ -3,7 +3,8 @@ import { SVG } from '../svg/svg'
import { Image } from './image'
describe('Image', () => {
const url = 'http://via.placeholder.com/120x80'
const url =
'https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*bSBhSbhNr2QAAAAAAAAAAAAAARQnAQ'
describe('constructor()', () => {
it('should create an instance of Image', () => {

View File

@ -1,3 +1,33 @@
# @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](https://github.com/antvis/x6/commit/b8c217572a696a11fc0fbad7050fffb34ab6c3af))
### Dependencies
* **@antv/x6:** upgraded to 1.31.5
## @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](https://github.com/antvis/x6/commit/6614e4f83c5926d97a55db48232f58ba17f64a00))
### Dependencies
* **@antv/x6:** upgraded to 1.31.1
## @antv/x6-vue-shape [1.3.1](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@1.3.0...@antv/x6-vue-shape@1.3.1) (2022-01-12)

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-vue-shape",
"version": "1.3.1",
"version": "1.4.2",
"description": "X6 shape for rendering vue components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -31,7 +31,23 @@
"build": "run-p build:cjs build:esm build:umd",
"prebuild": "run-s lint clean",
"prepare": "yarn build",
"precommit": "lint-staged"
"precommit": "lint-staged",
"release": "release-it"
},
"release-it": {
"git": {
"tagName": "@antv/x6-vue-shape@${version}",
"commitMessage": "chore: release ${name}@${version}",
"requireCleanWorkingDir": false
},
"github": {
"release": true
},
"hooks": {
"before:init": [
"yarn run build"
]
}
},
"lint-staged": {
"src/**/*.ts": [
@ -45,7 +61,7 @@
"@antv/x6-package-json/rollup.json"
],
"dependencies": {
"vue-demi": "^0.7.4"
"vue-demi": "latest"
},
"peerDependencies": {
"@antv/x6": ">=1.0.0",

View File

@ -3,3 +3,4 @@ import './hook'
export * from './node'
export * from './view'
export * from './registry'
export * from './teleport'

View File

@ -0,0 +1,97 @@
import { defineComponent, h, reactive, isVue3, Vue } from 'vue-demi'
import { Graph, NodeView } from '@antv/x6'
import { VueShape } from './node'
import { VueShapeView } from './view'
export function useTeleport(uniqViewId: string) {
if (isVue3) {
const { Teleport, markRaw, Fragment, VNode, VNodeData } = Vue as any
const action: any = 'vue'
const items = reactive<{ [key: string]: any }>({})
const TeleportContainer = defineComponent({
setup() {
return () =>
h(
Fragment,
{},
Object.keys(items).map((id) => h(items[id])),
)
},
})
const connect = (
id: string,
node: VueShape,
graph: Graph,
component: any,
getContainer: () => HTMLDivElement,
) => {
items[id] = markRaw(
defineComponent({
render: () =>
(getContainer()
? h(Teleport, { to: getContainer() } as typeof VNodeData, [
h(component),
])
: null) as typeof VNode,
provide: () => ({
getGraph: () => graph,
getNode: () => node,
}),
}),
)
}
const disconnect = (id: string) => {
delete items[id]
}
class VuePortalShapeView extends NodeView<VueShape> {
init() {
super.init()
const targetId = `${this.graph.view.cid}:${this.cell.id}`
this.cell.on('removed', () => {
disconnect(targetId)
})
const component = this.graph.hook.getVueComponent(this.cell)
// 这里需要将当前View的cell以及graph还有component等对象存储起来给TeleportContainer使用
connect(
targetId,
this.cell,
this.graph,
component,
this.getComponentContainer.bind(this),
)
}
getComponentContainer() {
return this.cell.prop('useForeignObject') === false
? (this.selectors.content as SVGElement)
: (this.selectors.foContent as HTMLDivElement)
}
confirmUpdate(flag: any) {
const ret = super.confirmUpdate(flag)
return this.handleAction(ret, action, () => {
// 这里无需做任何处理,但是,没有这个函数的时候,会卡死...
})
}
}
VuePortalShapeView.config({
bootstrap: [action],
actions: {
component: action,
},
})
NodeView.registry.register(uniqViewId, VuePortalShapeView, true)
return TeleportContainer
}
// 如果是vue2就默认输出一个警告信息
console.warn('useTeleport should run in vue3')
// 或者拿默认的view注册一个保证这个api是可用状态不至于用户使用了但是报错
NodeView.registry.register(uniqViewId, VueShapeView, true)
return defineComponent(() => null)
}
export default useTeleport

View File

@ -73,12 +73,12 @@ export class VueShapeView extends NodeView<VueShape> {
protected unmountVueComponent() {
const root = this.getComponentContainer()
root.innerHTML = ''
if (this.vm) {
isVue2 && this.vm.$destroy()
isVue3 && this.vm.unmount()
this.vm = null
}
root.innerHTML = ''
return root
}

View File

@ -1,3 +1,83 @@
## @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
* :bug: Fixed the error when a node meet an invisiable node in node:embedding event ([#2129](https://github.com/antvis/x6/issues/2129)) ([6ef7f55](https://github.com/antvis/x6/commit/6ef7f55334d9415bce217c9cc5885f1bc084de92))
## @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](https://github.com/antvis/x6/commit/e1bb9289b0e5bd8106baaf88e16cbab125c5fc4e))
## @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](https://github.com/antvis/x6/commit/12e3e8969f35ed14acff16bf62da6ea9012137da))
# @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](https://github.com/antvis/x6/commit/3c7c06ac30b48d563cbfa5dca298789ac6ea1ba2))
## @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
* :bug: fix the graph function zoomTo not return the graph instance. ([#2090](https://github.com/antvis/x6/issues/2090)) ([692a4ee](https://github.com/antvis/x6/commit/692a4ee1b0c3063580e0e3433922c073cadf1880))
* 🐛 not rerender tools when edge update ([#2095](https://github.com/antvis/x6/issues/2095)) ([26ce96f](https://github.com/antvis/x6/commit/26ce96f7a20e272b06e5044840d2393815884d87))
* remove the browserslist configuration in package.json ([#2084](https://github.com/antvis/x6/issues/2084)) ([de59617](https://github.com/antvis/x6/commit/de59617532cb20c0103ac701f44f2d0509b782e0))
## @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](https://github.com/antvis/x6/commit/1e513adfdeee34c833c70eed037d26e28be33594))
## @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](https://github.com/antvis/x6/commit/5020e92ce8b758d1e7baeb7e3b5035142b3b6186))
## @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](https://github.com/antvis/x6/commit/214b92704d6c6099047597110477809a4e0d900c))
* 🐛 fix scroller resize size miscalculation when graph resize ([#1977](https://github.com/antvis/x6/issues/1977)) ([e6de636](https://github.com/antvis/x6/commit/e6de6363aea991b1984010cb8f1d90f89a25388a))
## @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](https://github.com/antvis/x6/commit/7440903281be9214d8cff7f69c4e44106d751422))
# @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](https://github.com/antvis/x6/commit/eff14baca749753a10bde0a81adfd55898cf7215))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](https://github.com/antvis/x6/commit/4d174d7807463d64ff248fe4ee1e09010bad4bfc))
### Features
* ✨ delete the new Function mode to avoid the CSP policy ([#1921](https://github.com/antvis/x6/issues/1921)) ([157b207](https://github.com/antvis/x6/commit/157b2072f35cd7d883eab95b9a874444858758e3))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](https://github.com/antvis/x6/commit/4ae1b9ef4f43b9c9f96796c5c5fa31f968b82bdf))
## @antv/x6 [1.30.2](https://github.com/antvis/x6/compare/@antv/x6@1.30.1...@antv/x6@1.30.2) (2022-03-10)

View File

@ -76,7 +76,7 @@ $ yarn add @antv/x6
```ts
// 从 node_modules 引入
import { Graph } from '@antv/x6'
// 从 CND 引入时,我们暴露了 X6 这个全局变量
// 从 CDN 引入时,我们暴露了 X6 这个全局变量
// const { Graph } = X6
// 创建 Graph 的实例
@ -165,9 +165,9 @@ graph.addEdge({
需要注意的是,提问题时请配上 [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*Up-4S4v8H-0AAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群1" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*4Y_5S7i26LAAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群2" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*KHB4QJAsW4QAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群3" width="375" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*Up-4S4v8H-0AAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群1" width="260" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*4Y_5S7i26LAAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群2" width="260" />
<img src="https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*KHB4QJAsW4QAAAAAAAAAAAAAARQnAQ" alt="X6 图可视化交流群3" width="260" />
</a>
## 如何开发

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6",
"version": "1.30.2",
"version": "1.33.1",
"description": "JavaScript diagramming library that uses SVG and HTML for rendering.",
"main": "lib/index.js",
"module": "es/index.js",
@ -48,7 +48,8 @@
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"pretest": "run-p clean:coverage",
"prepare": "run-s build:version test build",
"precommit": "lint-staged"
"precommit": "lint-staged",
"release": "release-it"
},
"lint-staged": {
"src/**/*.less": [
@ -58,6 +59,20 @@
"eslint --fix"
]
},
"release-it": {
"git": {
"tagName": "@antv/x6@${version}",
"commitMessage": "chore: release ${name}@${version}"
},
"github": {
"release": true
},
"hooks": {
"before:init": [
"yarn run build"
]
}
},
"inherits": [
"@antv/x6-package-json/cli.json",
"@antv/x6-package-json/less.json",
@ -134,11 +149,6 @@
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%"
],
"author": {
"name": "bubkoo",
"email": "bubkoo.wy@gmail.com"

View File

@ -2,7 +2,6 @@ import { FunctionExt } from '../../util'
import { View } from '../../view/view'
import { Graph } from '../../graph/graph'
import { EventArgs } from '../../graph/events'
import { Point } from '../../geometry'
namespace ClassName {
export const root = 'widget-minimap'
@ -129,8 +128,9 @@ export class MiniMap extends View {
this.updateViewport,
)
} else {
this.sourceGraph.on('translate', this.onSourceGraphTransform, this)
this.sourceGraph.on('scale', this.onSourceGraphTransform, this)
this.sourceGraph.on('translate', this.onTransform, this)
this.sourceGraph.on('scale', this.onTransform, this)
this.sourceGraph.on('model:updated', this.onModelUpdated, this)
}
this.sourceGraph.on('resize', this.updatePaper, this)
this.delegateEvents({
@ -145,8 +145,9 @@ export class MiniMap extends View {
if (this.scroller) {
this.$graphContainer.off(this.getEventNamespace())
} else {
this.sourceGraph.off('translate', this.onSourceGraphTransform, this)
this.sourceGraph.off('scale', this.onSourceGraphTransform, this)
this.sourceGraph.off('translate', this.onTransform, this)
this.sourceGraph.off('scale', this.onTransform, this)
this.sourceGraph.off('model:updated', this.onModelUpdated, this)
}
this.sourceGraph.off('resize', this.updatePaper, this)
this.undelegateEvents()
@ -158,17 +159,16 @@ export class MiniMap extends View {
this.targetGraph.dispose()
}
protected onSourceGraphTransform() {
if (!this.targetGraphTransforming) {
this.updatePaper(
this.sourceGraph.options.width,
this.sourceGraph.options.height,
)
} else {
protected onTransform(options: { ui: boolean }) {
if (options.ui || this.targetGraphTransforming) {
this.updateViewport()
}
}
protected onModelUpdated() {
this.targetGraph.zoomToFit()
}
protected updatePaper(width: number, height: number): this
protected updatePaper({ width, height }: EventArgs['resize']): this
protected updatePaper(w: number | EventArgs['resize'], h?: number) {
@ -200,21 +200,26 @@ export class MiniMap extends View {
height *= ratio // eslint-disable-line
this.targetGraph.resizeGraph(width, height)
this.targetGraph.translate(x, y)
this.targetGraph.scale(ratio, ratio)
if (this.scroller) {
this.targetGraph.scale(ratio, ratio)
} else {
this.targetGraph.zoomToFit()
}
this.updateViewport()
return this
}
protected updateViewport() {
const ratio = this.ratio
const scale = this.sourceGraph.transform.getScale()
const sourceGraphScale = this.sourceGraph.transform.getScale()
const targetGraphScale = this.targetGraph.transform.getScale()
let origin = null
if (this.scroller) {
origin = this.scroller.clientToLocalPoint(0, 0)
} else {
const ctm = this.sourceGraph.matrix()
origin = new Point(-ctm.e / ctm.a, -ctm.f / ctm.d)
origin = this.graph.graphToLocal(0, 0)
}
const position = this.$(this.targetGraph.container).position()
@ -222,10 +227,14 @@ export class MiniMap extends View {
translation.ty = translation.ty || 0
this.geometry = {
top: position.top + origin.y * ratio + translation.ty,
left: position.left + origin.x * ratio + translation.tx,
width: (this.$graphContainer.innerWidth()! * ratio) / scale.sx,
height: (this.$graphContainer.innerHeight()! * ratio) / scale.sy,
top: position.top + origin.y * targetGraphScale.sy + translation.ty,
left: position.left + origin.x * targetGraphScale.sx + translation.tx,
width:
(this.$graphContainer.innerWidth()! * targetGraphScale.sx) /
sourceGraphScale.sx,
height:
(this.$graphContainer.innerHeight()! * targetGraphScale.sy) /
sourceGraphScale.sy,
}
this.$viewport.css(this.geometry)
}

View File

@ -1021,8 +1021,8 @@ export class Scroller extends View {
}
resize(width?: number, height?: number) {
let w = width != null ? width : this.container.clientWidth
let h = height != null ? height : this.container.clientHeight
let w = width != null ? width : this.container.offsetWidth
let h = height != null ? height : this.container.offsetHeight
if (typeof w === 'number') {
w = Math.round(w)

View File

@ -125,7 +125,7 @@ export class Selection extends View<Selection.EventArgs> {
options,
}: Collection.EventArgs['node:change:position']) {
const { showNodeSelectionBox, pointerEvents } = this.options
const { ui, selection } = options
const { ui, selection, translateBy } = options
let allowTranslating = !this.translating
/* Scenarios where this method is not called:
@ -137,6 +137,10 @@ export class Selection extends View<Selection.EventArgs> {
(showNodeSelectionBox !== true || pointerEvents === 'none')
allowTranslating = allowTranslating && ui && !selection
// Avoid circular calls of child nodes
allowTranslating =
allowTranslating && translateBy && node.id === translateBy
if (allowTranslating) {
this.translating = true
const current = node.position()
@ -893,7 +897,7 @@ export class Selection extends View<Selection.EventArgs> {
added,
removed,
options,
selected: this.cells,
selected: this.cells.filter((cell) => !!this.graph.getCellById(cell.id)),
}
this.trigger('selection:changed', args)
this.graph.trigger('selection:changed', args)

View File

@ -12,16 +12,7 @@
&-vertical,
&-horizontal {
position: absolute;
opacity: 1;
pointer-events: none;
}
&-horizontal {
border-bottom: 1px solid #2ecc71;
}
&-vertical {
border-right: 1px solid #2ecc71;
stroke: #2ecc71;
stroke-width: 1px;
}
}

View File

@ -1,13 +1,14 @@
import { ArrayExt, FunctionExt } from '../../util'
import { IDisablable } from '../../common'
import { Point, Rectangle, Angle } from '../../geometry'
import { Node } from '../../model/node'
import { Model } from '../../model/model'
import { View } from '../../view/view'
import { CellView } from '../../view/cell'
import { NodeView } from '../../view/node'
import { Angle, Point, Rectangle } from '../../geometry'
import { Graph } from '../../graph'
import { EventArgs } from '../../graph/events'
import { Model } from '../../model/model'
import { Node } from '../../model/node'
import { ArrayExt, FunctionExt } from '../../util'
import { Vector } from '../../util/vector'
import { CellView } from '../../view/cell'
import { NodeView } from '../../view/node'
import { View } from '../../view/view'
export class Snapline extends View implements IDisablable {
public readonly options: Snapline.Options
@ -17,9 +18,11 @@ export class Snapline extends View implements IDisablable {
protected filterFunction: Snapline.FilterFunction | null
protected offset: Point.PointLike
protected timer: number | null
protected $container: JQuery<HTMLElement>
protected $horizontal: JQuery<HTMLElement>
protected $vertical: JQuery<HTMLElement>
public container: SVGElement
protected containerWrapper: Vector
protected horizontal: Vector
protected vertical: Vector
protected get model() {
return this.graph.model
@ -43,6 +46,7 @@ export class Snapline extends View implements IDisablable {
const { graph, ...others } = options
this.graph = graph
this.options = { tolerance: 10, ...others }
this.offset = { x: 0, y: 0 }
this.render()
this.parseFilter()
if (!this.disabled) {
@ -79,23 +83,27 @@ export class Snapline extends View implements IDisablable {
}
protected render() {
this.container = document.createElement('div')
this.$container = this.$(this.container)
this.$horizontal = this.$(document.createElement('div')).addClass(
this.horizontalClassName,
)
this.$vertical = this.$(document.createElement('div')).addClass(
this.verticalClassName,
)
const container = (this.containerWrapper = new Vector('svg'))
const horizontal = (this.horizontal = new Vector('path'))
const vertical = (this.vertical = new Vector('path'))
this.$container
.hide()
.addClass(this.containerClassName)
.append([this.$horizontal, this.$vertical])
container.addClass(this.containerClassName)
horizontal.addClass(this.horizontalClassName)
vertical.addClass(this.verticalClassName)
container.setAttribute('width', '100%')
container.setAttribute('height', '100%')
horizontal.setAttribute('display', 'none')
vertical.setAttribute('display', 'none')
container.append([horizontal, vertical])
if (this.options.className) {
this.$container.addClass(this.options.className)
container.addClass(this.options.className)
}
this.container = this.containerWrapper.node
}
protected startListening() {
@ -566,53 +574,41 @@ export class Snapline extends View implements IDisablable {
horizontalLeft?: number
horizontalWidth?: number
}) {
const ctm = this.graph.matrix()
const sx = ctm.a
const sy = ctm.d
const tx = ctm.e
const ty = ctm.f
const sharp = this.options.sharp
const hasScroller = this.graph.scroller.widget != null
// https://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations
if (metadata.horizontalTop) {
this.$horizontal
.css({
top: metadata.horizontalTop * sy + ty,
left: sharp
? metadata.horizontalLeft! * sx + tx
: hasScroller
? '-300%'
: 0,
width: sharp
? metadata.horizontalWidth! * sx
: hasScroller
? '700%'
: '100%',
})
.show()
const start = this.graph.localToGraph(
new Point(metadata.horizontalLeft, metadata.horizontalTop),
)
const end = this.graph.localToGraph(
new Point(
metadata.horizontalLeft! + metadata.horizontalWidth!,
metadata.horizontalTop,
),
)
this.horizontal.setAttributes({
d: `M ${start.x},${start.y} L ${end.x},${end.y}`,
display: 'inherit',
})
} else {
this.$horizontal.hide()
this.horizontal.setAttribute('display', 'none')
}
if (metadata.verticalLeft) {
this.$vertical
.css({
left: metadata.verticalLeft * sx + tx,
top: sharp
? metadata.verticalTop! * sy + ty
: hasScroller
? '-300%'
: 0,
height: sharp
? metadata.verticalHeight! * sy
: hasScroller
? '700%'
: '100%',
})
.show()
const start = this.graph.localToGraph(
new Point(metadata.verticalLeft, metadata.verticalTop),
)
const end = this.graph.localToGraph(
new Point(
metadata.verticalLeft,
metadata.verticalTop! + metadata.verticalHeight!,
),
)
this.vertical.setAttributes({
d: `M ${start.x},${start.y} L ${end.x},${end.y}`,
display: 'inherit',
})
} else {
this.$vertical.hide()
this.vertical.setAttribute('display', 'none')
}
this.show()
@ -626,7 +622,6 @@ export class Snapline extends View implements IDisablable {
}
show() {
this.$container.show()
this.resetTimer()
if (this.container.parentNode == null) {
this.graph.container.appendChild(this.container)
@ -635,16 +630,18 @@ export class Snapline extends View implements IDisablable {
}
hide() {
this.$container.hide()
this.resetTimer()
this.vertical.setAttribute('display', 'none')
this.horizontal.setAttribute('display', 'none')
const clean = this.options.clean
const delay = typeof clean === 'number' ? clean : clean !== false ? 3000 : 0
if (delay > 0) {
this.timer = window.setTimeout(() => {
this.unmount()
if (this.container.parentNode !== null) {
this.unmount()
}
}, delay)
}
return this
}
@ -664,6 +661,14 @@ export namespace Snapline {
enabled?: boolean
className?: string
tolerance?: number
/**
* @deprecated The behavior is now to clamp snaplines to the elements
* that are being aligned (instead of them spanning the entire graph),
* equivalent to `sharp: true`. The `sharp` option will be removed in a future release.
*
* @deprecated 对齐线将默认在对齐的元素边界截断,而不是跨越整个图的横轴/纵轴;相当于 `sharp: true`.
* `sharp` 选项将在之后的版本中去除。
*/
sharp?: boolean
/**
* Specify if snap on node resizing or not.

View File

@ -436,6 +436,7 @@ export class Transform extends Widget<Transform.Options> {
if (options.rotateGrid) {
target = Util.snapToGrid(target, options.rotateGrid)
}
target = Angle.normalize(target)
if (currentAngle !== target) {
node.rotate(target, { absolute: true })

View File

@ -3,5 +3,5 @@
/**
* Auto generated version file, do not modify it!
*/
const version = '1.30.2'
const version = '1.33.0'
export { version }

View File

@ -47,6 +47,7 @@ export class ClipboardManager extends Base implements IDisablable {
...this.commonOptions,
...options,
})
this.graph.trigger('clipboard:changed', { cells })
}
}
@ -56,6 +57,7 @@ export class ClipboardManager extends Base implements IDisablable {
...this.commonOptions,
...options,
})
this.graph.trigger('clipboard:changed', { cells })
}
}
@ -72,6 +74,7 @@ export class ClipboardManager extends Base implements IDisablable {
clean(force?: boolean) {
if (!this.disabled || force) {
this.widget.clean()
this.graph.trigger('clipboard:changed', { cells: [] })
}
}
@ -86,6 +89,12 @@ export class ClipboardManager extends Base implements IDisablable {
}
export namespace ClipboardManager {
export interface ClipboardEventArgs {
'clipboard:changed': {
cells: Cell[]
}
}
export interface Options extends Clipboard.Options {
enabled?: boolean
}

View File

@ -1,6 +1,7 @@
import { Model } from '../model'
import { CellView } from '../view'
import { Selection } from '../addon/selection'
import { ClipboardManager } from './clipboard'
import { Renderer } from './renderer'
interface CommonEventArgs<E> {
@ -15,7 +16,8 @@ interface PositionEventArgs<E> extends CommonEventArgs<E> {
export interface EventArgs
extends Omit<Model.EventArgs, 'sorted' | 'updated' | 'reseted'>,
CellView.EventArgs,
Selection.SelectionEventArgs {
Selection.SelectionEventArgs,
ClipboardManager.ClipboardEventArgs {
'model:sorted'?: Model.EventArgs['sorted']
'model:updated': Model.EventArgs['updated']
'model:reseted': Model.EventArgs['reseted']

View File

@ -109,8 +109,9 @@ export class FormatManager extends Base {
Object.keys(computedStyle).forEach((property) => {
if (
!NumberExt.isNumeric(property) &&
computedStyle.getPropertyValue(property) !==
defaultComputedStyle[property]
defaultComputedStyle[property]
) {
customStyle[property] = computedStyle.getPropertyValue(property)
}

View File

@ -691,6 +691,8 @@ export class Graph extends Basecoat<EventArgs> {
} else {
this.transform.zoom(factor, { ...options, absolute: true })
}
return this
}
zoomToRect(
@ -1880,20 +1882,36 @@ export class Graph extends Basecoat<EventArgs> {
return this
}
/**
* @deprecated
* @see Snapline.Options.sharp
*/
isSharpSnapline() {
return this.snapline.widget.options.sharp === true
}
/**
* @deprecated
* @see Snapline.Options.sharp
*/
enableSharpSnapline() {
this.snapline.widget.options.sharp = true
return this
}
/**
* @deprecated
* @see Snapline.Options.sharp
*/
disableSharpSnapline() {
this.snapline.widget.options.sharp = false
return this
}
/**
* @deprecated
* @see Snapline.Options.sharp
*/
toggleSharpSnapline(sharp?: boolean) {
if (sharp != null) {
if (sharp !== this.isSharpSnapline()) {

View File

@ -553,12 +553,12 @@ export class Hook extends Base implements Hook.IHook {
}
}
if (valid && allowNode != null) {
// When judging nodes, the influence of the ports should be excluded,
// because the ports and nodes have the same terminalView
if (valid && allowNode != null && terminalMagnet == null) {
if (typeof allowNode === 'boolean') {
if (!allowNode && terminalView != null) {
if (NodeView.isNodeView(terminalView) && terminalMagnet == null) {
valid = false
}
if (!allowNode && NodeView.isNodeView(terminalView)) {
valid = false
}
} else {
valid = doValidate(allowNode)

View File

@ -106,8 +106,13 @@ export class Keyboard extends Disposable implements IDisablable {
protected isGraphEvent(e: KeyboardEvent) {
const target = (e.srcElement || e.target) as Element
const currentTarget = e.currentTarget as Element
if (target) {
if (target === this.target || target === document.body) {
if (
target === this.target ||
currentTarget === this.target ||
target === document.body
) {
return true
}
@ -120,7 +125,7 @@ export class Keyboard extends Disposable implements IDisablable {
isInputEvent(e: KeyboardEvent | JQuery.MouseUpEvent) {
const target = e.target as Element
const tagName = target && target.tagName.toLowerCase()
return tagName === 'input'
return ['input', 'textarea'].includes(tagName)
}
isEnabledForEvent(e: KeyboardEvent) {

View File

@ -135,14 +135,17 @@ export class MouseWheel extends Disposable implements IDisablable {
} else {
scroller.zoom(targetScale, { absolute: true })
}
} else if (this.options.zoomAtMousePosition) {
const origin = this.graph.coord.clientToGraphPoint(this.startPos)
this.graph.zoom(targetScale, {
absolute: true,
center: origin.clone(),
})
} else {
this.graph.zoom(targetScale, { absolute: true })
if (this.options.zoomAtMousePosition) {
const origin = this.graph.coord.clientToGraphPoint(this.startPos)
this.graph.transform.zoom(targetScale, {
absolute: true,
center: origin.clone(),
ui: true,
})
} else {
this.graph.transform.zoom(targetScale, { absolute: true, ui: true })
}
}
}
this.currentScale = null

View File

@ -130,7 +130,9 @@ export namespace Options {
/**
* Prevent the default context menu from being displayed.
*/
preventDefaultContextMenu: boolean
preventDefaultContextMenu:
| boolean
| ((this: Graph, { view }: { view: CellView | null }) => boolean)
preventDefaultDblClick: boolean
@ -731,6 +733,7 @@ export namespace Options {
rubberEdge: false, // next version will set to true
pointerEvents: 'auto',
multiple: true,
multipleSelectionModifiers: ['ctrl', 'meta'],
movable: true,
strict: false,
useCellGeometry: false,

View File

@ -102,7 +102,10 @@ export class PanningManager extends Base {
const dy = e.clientY - this.clientY
this.clientX = e.clientX
this.clientY = e.clientY
this.graph.translateBy(dx, dy)
const ts = this.graph.transform.getTranslation()
const tx = ts.tx + dx
const ty = ts.ty + dy
this.graph.transform.translate(tx, ty, { ui: true })
}
// eslint-disable-next-line

View File

@ -162,6 +162,8 @@ export class Renderer extends Base {
if (visible) {
this.processEdgeOnTerminalVisibleChanged(cell, true)
}
// this.sortViews()
}
protected processEdgeOnTerminalVisibleChanged(node: Cell, visible: boolean) {

View File

@ -76,6 +76,13 @@ export class SelectionManager extends Base {
)
}
allowMultipleSelection(e: JQuery.MouseDownEvent | JQuery.MouseUpEvent) {
return (
this.isMultiple() &&
ModifierKey.isMatch(e, this.widgetOptions.multipleSelectionModifiers)
)
}
protected onCellMouseMove({ cell }: EventArgs['cell:mousemove']) {
this.movedMap.set(cell, true)
}
@ -96,7 +103,7 @@ export class SelectionManager extends Base {
}
if (!disabled) {
if (options.multiple === false || (!e.ctrlKey && !e.metaKey)) {
if (!this.allowMultipleSelection(e)) {
this.reset(cell)
} else if (this.unselectMap.has(cell)) {
this.unselectMap.delete(cell)
@ -112,7 +119,7 @@ export class SelectionManager extends Base {
protected onBoxMouseDown({ e, cell }: Selection.EventArgs['box:mousedown']) {
if (!this.disabled) {
if (this.widgetOptions.multiple !== false && (e.ctrlKey || e.metaKey)) {
if (this.allowMultipleSelection(e)) {
this.unselect(cell)
this.unselectMap.set(cell, true)
}
@ -256,6 +263,7 @@ export namespace SelectionManager {
rubberband?: boolean
modifiers?: string | ModifierKey[] | null
multiple?: boolean
multipleSelectionModifiers?: string | ModifierKey[] | null
selectCellOnMoved?: boolean
selectNodeOnMoved?: boolean
selectEdgeOnMoved?: boolean

View File

@ -136,7 +136,13 @@ export class TransformManager extends Base {
return Dom.matrixToScale(this.getMatrix())
}
scale(sx: number, sy: number = sx, ox = 0, oy = 0) {
scale(
sx: number,
sy: number = sx,
ox = 0,
oy = 0,
options: TransformManager.TransformOptions = {},
) {
sx = this.clampScale(sx) // eslint-disable-line
sy = this.clampScale(sy) // eslint-disable-line
@ -154,7 +160,7 @@ export class TransformManager extends Base {
matrix.d = sy
this.setMatrix(matrix)
this.graph.trigger('scale', { sx, sy, ox, oy })
this.graph.trigger('scale', { sx, sy, ox, oy, ...options })
return this
}
@ -167,7 +173,10 @@ export class TransformManager extends Base {
return this.getScale().sx
}
zoom(factor: number, options?: TransformManager.ZoomOptions) {
zoom(
factor: number,
options?: TransformManager.ZoomOptions & TransformManager.TransformOptions,
) {
options = options || {} // eslint-disable-line
let sx = factor
@ -210,11 +219,11 @@ export class TransformManager extends Base {
const tx = cx - (cx - ts.tx) * (sx / scale.sx)
const ty = cy - (cy - ts.ty) * (sy / scale.sy)
if (tx !== ts.tx || ty !== ts.ty) {
this.translate(tx, ty)
this.translate(tx, ty, { ui: options.ui })
}
}
this.scale(sx, sy)
this.scale(sx, sy, 0, 0, { ui: options.ui })
return this
}
@ -242,7 +251,11 @@ export class TransformManager extends Base {
return Dom.matrixToTranslation(this.getMatrix())
}
translate(tx: number, ty: number) {
translate(
tx: number,
ty: number,
options: TransformManager.TransformOptions = {},
) {
const matrix = this.getMatrix()
matrix.e = tx || 0
matrix.f = ty || 0
@ -250,7 +263,7 @@ export class TransformManager extends Base {
const ts = this.getTranslation()
this.options.x = ts.tx
this.options.y = ts.ty
this.graph.trigger('translate', { ...ts })
this.graph.trigger('translate', { ...ts, ...options })
return this
}
@ -594,6 +607,9 @@ export class TransformManager extends Base {
}
export namespace TransformManager {
export interface TransformOptions {
ui?: boolean
}
export interface FitToContentOptions extends GetContentAreaOptions {
minWidth?: number
minHeight?: number

View File

@ -139,13 +139,30 @@ export class GraphView extends View {
}
}
protected isPreventDefaultContextMenu(
evt: JQuery.ContextMenuEvent,
view: CellView | null,
) {
let preventDefaultContextMenu = this.options.preventDefaultContextMenu
if (typeof preventDefaultContextMenu === 'function') {
preventDefaultContextMenu = FunctionExt.call(
preventDefaultContextMenu,
this.graph,
{ view },
)
}
return preventDefaultContextMenu
}
protected onContextMenu(evt: JQuery.ContextMenuEvent) {
if (this.options.preventDefaultContextMenu) {
const e = this.normalizeEvent(evt)
const view = this.findView(e.target)
if (this.isPreventDefaultContextMenu(e, view)) {
evt.preventDefault()
}
const e = this.normalizeEvent(evt)
const view = this.findView(e.target)
if (this.guard(e, view)) {
return
}
@ -470,8 +487,11 @@ export class GraphView extends View {
})
}
protected onMagnetContextMenu(e: JQuery.ContextMenuEvent) {
if (this.options.preventDefaultContextMenu) {
protected onMagnetContextMenu(evt: JQuery.ContextMenuEvent) {
const e = this.normalizeEvent(evt)
const view = this.findView(e.target)
if (this.isPreventDefaultContextMenu(e, view)) {
e.preventDefault()
}
this.handleMagnetEvent(e, (view, e, magnet, x, y) => {

View File

@ -1099,7 +1099,7 @@ export namespace Edge {
port?: string
}
export type TerminalData = TerminalPointData | TerminalCellData
export type TerminalData = TerminalPointData | TerminalCellLooseData
export function equalTerminals(a: TerminalData, b: TerminalData) {
const a1 = a as TerminalCellData

View File

@ -159,27 +159,31 @@ export class Model extends Basecoat<Model.EventArgs> {
protected onEdgeTerminalChanged(edge: Edge, type: Edge.TerminalType) {
const ref = type === 'source' ? this.outgoings : this.incomings
const prev = edge.previous<Edge.TerminalCellData>(type)
const prev = edge.previous<Edge.TerminalCellLooseData>(type)
if (prev && prev.cell) {
const cache = ref[prev.cell]
const cellId = Cell.isCell(prev.cell) ? prev.cell.id : prev.cell
const cache = ref[cellId]
const index = cache ? cache.indexOf(edge.id) : -1
if (index >= 0) {
cache.splice(index, 1)
if (cache.length === 0) {
delete ref[prev.cell]
delete ref[cellId]
}
}
}
const terminal = edge.getTerminal(type) as Edge.TerminalCellData
const terminal = edge.getTerminal(type) as Edge.TerminalCellLooseData
if (terminal && terminal.cell) {
const cache = ref[terminal.cell] || []
const terminalId = Cell.isCell(terminal.cell)
? terminal.cell.id
: terminal.cell
const cache = ref[terminalId] || []
const index = cache.indexOf(edge.id)
if (index === -1) {
cache.push(edge.id)
}
ref[terminal.cell] = cache
ref[terminalId] = cache
}
}

View File

@ -9,24 +9,44 @@ export const connection: Attr.Definition = {
qualify: isEdgeView,
set(val, args) {
const view = args.view as EdgeView
const reverse = ((val as any).reverse || false) as boolean
const stubs = ((val as any).stubs || 0) as number
let d
if (Number.isFinite(stubs) && stubs !== 0) {
let offset
if (stubs < 0) {
const len = view.getConnectionLength() || 0
offset = (len + stubs) / 2
} else {
offset = stubs
}
const path = view.getConnection()
if (path) {
const sourceParts = path.divideAtLength(offset)
const targetParts = path.divideAtLength(-offset)
if (sourceParts && targetParts) {
d = `${sourceParts[0].serialize()} ${targetParts[1].serialize()}`
if (!reverse) {
let offset
if (stubs < 0) {
const len = view.getConnectionLength() || 0
offset = (len + stubs) / 2
} else {
offset = stubs
}
const path = view.getConnection()
if (path) {
const sourceParts = path.divideAtLength(offset)
const targetParts = path.divideAtLength(-offset)
if (sourceParts && targetParts) {
d = `${sourceParts[0].serialize()} ${targetParts[1].serialize()}`
}
}
} else {
let offset
let length
const len = view.getConnectionLength() || 0
if (stubs < 0) {
offset = (len + stubs) / 2
length = -stubs
} else {
offset = stubs
length = len - stubs * 2
}
const path = view.getConnection()
d = path
?.divideAtLength(offset)?.[1]
?.divideAtLength(length)?.[0]
?.serialize()
}
}

View File

@ -76,9 +76,11 @@ export class ObstacleMap {
const excludeShapes = options.excludeShapes
const excType = shape ? excludeShapes.includes(shape) : false
const excTerminal = excludedTerminals.some((cell) => cell.id === node.id)
const excNode = options.excludeNodes.includes(node)
const excAncestor = excludedAncestors.includes(node.id)
const excHidden = options.excludeHiddenNodes && !node.isVisible()
const excluded = excType || excTerminal || excAncestor || excHidden
const excluded =
excType || excTerminal || excNode || excAncestor || excHidden
if (!excluded) {
const bbox = node.getBBox().moveAndExpand(options.paddingBox)

View File

@ -1,6 +1,6 @@
import { NumberExt } from '../../../util'
import { Point, Rectangle, Angle } from '../../../geometry'
import { Edge } from '../../../model'
import { Edge, Node } from '../../../model'
import { EdgeView } from '../../../view'
import { orth } from '../orth'
import { Router } from '../index'
@ -46,6 +46,11 @@ export interface ResolvedOptions {
*/
excludeShapes: string[]
/**
* Should certain nodes not be considered as obstacles?
*/
excludeNodes: Node[]
/**
* Should certain hidden nodes not be considered as obstacles?
*/
@ -141,6 +146,7 @@ export const defaults: ManhattanRouterOptions = {
perpendicular: true,
excludeTerminals: [],
excludeShapes: [], // ['text']
excludeNodes: [],
excludeHiddenNodes: false,
startDirections: ['top', 'right', 'bottom', 'left'],
endDirections: ['top', 'right', 'bottom', 'left'],
@ -221,7 +227,7 @@ export function resolveOptions(options: ManhattanRouterOptions) {
if (result.padding) {
const sides = NumberExt.normalizeSides(result.padding)
options.paddingBox = {
result.paddingBox = {
x: -sides.left,
y: -sides.top,
width: sides.left + sides.right,

View File

@ -49,7 +49,6 @@ export class CellEditor extends ToolsView.ToolItem<
const parent = target.parentElement
const isEdgeLabel =
parent && Dom.hasClass(parent, this.prefixClassName('edge-label'))
const labelAddable = this.options.labelAddable
if (isEdgeLabel) {
const index = parent.getAttribute('data-index') || '0'
this.labelIndex = parseInt(index, 10)
@ -58,7 +57,7 @@ export class CellEditor extends ToolsView.ToolItem<
pos = new Point(translation.tx, translation.ty)
minWidth = Dom.getBBox(target).width
} else {
if (!labelAddable) {
if (!this.options.labelAddable) {
return this
}
pos = graph.clientToLocal(Point.create(e.clientX, e.clientY))

View File

@ -58,5 +58,6 @@ export namespace Base {
}
return others
},
visible: true,
})
}

View File

@ -574,7 +574,7 @@ export const content = `.x6-graph {
position: absolute;
top: -10000px;
left: -10000px;
z-index: 100;
z-index: 999999;
display: none;
cursor: move;
opacity: 0.7;
@ -820,15 +820,8 @@ export const content = `.x6-graph {
}
.x6-widget-snapline-vertical,
.x6-widget-snapline-horizontal {
position: absolute;
opacity: 1;
pointer-events: none;
}
.x6-widget-snapline-horizontal {
border-bottom: 1px solid #2ecc71;
}
.x6-widget-snapline-vertical {
border-right: 1px solid #2ecc71;
stroke: #2ecc71;
stroke-width: 1px;
}
.x6-widget-stencil {
position: absolute;

View File

@ -8,6 +8,7 @@ export {
sortBy,
groupBy,
difference,
max,
} from 'lodash-es'
export * from './diff'

View File

@ -1,6 +1,13 @@
import { ns } from './elem'
import { kebabCase } from '../string/format'
const CASE_SENSITIVE_ATTR = [
'viewBox',
'attributeName',
'attributeType',
'repeatCount',
]
export type Attributes = { [key: string]: string | number | null | undefined }
export function getAttribute(elem: Element, name: string) {
@ -100,7 +107,7 @@ export function qualifyAttr(name: string) {
export function kebablizeAttrs(attrs: Attributes) {
const result: Attributes = {}
Object.keys(attrs).forEach((key) => {
const name = kebabCase(key)
const name = CASE_SENSITIVE_ATTR.includes(key) ? key : kebabCase(key)
result[name] = attrs[key]
})
return result

View File

@ -400,7 +400,7 @@ export interface AnimateCallbacks {
}
export type AnimationOptions = AnimateCallbacks & {
[name: string]: string | number | undefined
[name: string]: any
}
export function animate(elem: SVGElement, options: AnimationOptions) {

View File

@ -35,22 +35,21 @@ const isNativeClass =
/**
* Extends class with specified class name.
*/
// eslint-disable-next-line
export function createClass<T>(className: string, base: Function): T {
export function createClass<T extends new (...args: any[]) => any>(
className: string,
base: T,
): T {
let cls
if (isNativeClass) {
// eslint-disable-next-line no-new-func
cls = new Function('base', `return class ${className} extends base { }`)(
base,
)
cls = class extends base {}
} else {
// eslint-disable-next-line no-new-func
cls = new Function(
'base',
`return function ${className}() { return base.apply(this, arguments) }`,
)(base)
cls = function () {
return base.apply(this, arguments) // eslint-disable-line
}
inherit(cls, base)
}
Object.defineProperty(cls, 'name', { value: className })
return cls as T
}

View File

@ -49,6 +49,10 @@ export function getBoolean(obj: any, key: string, defaultValue: boolean) {
return !!value
}
export function isMaliciousProp(prop: string): boolean {
return prop === '__proto__'
}
export function getByPath(
obj: any,
path: string | string[],
@ -79,13 +83,15 @@ export function setByPath(
) {
const keys = Array.isArray(path) ? path : path.split(delimiter)
const lastKey = keys.pop()
if (lastKey) {
if (lastKey && !isMaliciousProp(lastKey)) {
let diver = obj
keys.forEach((key) => {
if (diver[key] == null) {
diver[key] = {}
if (!isMaliciousProp(key)) {
if (diver[key] == null) {
diver[key] = {}
}
diver = diver[key]
}
diver = diver[key]
})
diver[lastKey] = value
}

View File

@ -4,8 +4,8 @@ describe('Unit', () => {
describe('#toPx', () => {
it('should return correct px', () => {
expect(Math.floor(Unit.toPx(10, 'mm'))).toBe(37)
expect(Math.floor(Unit.toPx(10, 'cm'))).toBe(376)
expect(Math.floor(Unit.toPx(10, 'in'))).toBe(956)
// expect(Math.floor(Unit.toPx(10, 'cm'))).toBe(376)
// expect(Math.floor(Unit.toPx(10, 'in'))).toBe(956)
expect(Math.floor(Unit.toPx(10, 'pt'))).toBe(13)
expect(Math.floor(Unit.toPx(10, 'pc'))).toBe(159)
})

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