Compare commits

..

1119 Commits

Author SHA1 Message Date
210c2cfe32 .github/workflows/publish.yml aktualisiert
Some checks failed
/ Web Build (push) Successful in 5m46s
⛔️ Lock Threads / lock (push) Failing after 5s
🤝 Update Contributors / contributors (push) Failing after 5s
2025-03-04 16:11:10 +00:00
04865bb914 .github/workflows/publish.yml aktualisiert
Some checks failed
/ Web Build (push) Failing after 5m22s
2025-03-04 15:20:48 +00:00
a836dbdd8b .npmrc aktualisiert
Some checks failed
/ Web Build (push) Failing after 5m25s
2025-03-04 15:10:10 +00:00
684b40f999 .github/workflows/publish.yml aktualisiert
Some checks failed
/ Web Build (push) Has been cancelled
2025-03-04 15:02:47 +00:00
16c757f743 .github/workflow/publish.yml hinzugefügt 2025-03-04 15:02:12 +00:00
74fd402255 update versions 2025-02-04 09:05:13 +00:00
4de5cb818c Merge branch 'master' into 'ln-build'
Master

See merge request synced/X6!2
2025-02-04 08:53:48 +00:00
923551f0bd Edit package.json 2025-02-04 08:53:11 +00:00
df0cb70c1b chore: update contributors [skip ci] 2025-01-22 02:11:42 +00:00
6a12160047 chore: update contributors [skip ci] 2025-01-19 02:14:47 +00:00
a4ecae5391 chore: update contributors [skip ci] 2025-01-18 02:06:24 +00:00
24ca14b3c7 chore: update contributors [skip ci] 2025-01-17 02:08:26 +00:00
719300757a chore: update contributors [skip ci] 2025-01-16 02:08:35 +00:00
1ed20f2eb0 chore: update contributors [skip ci] 2025-01-15 02:09:59 +00:00
efbf4cd281 chore: update contributors [skip ci] 2025-01-14 02:08:01 +00:00
99a04751ea chore: update contributors [skip ci] 2025-01-12 02:20:49 +00:00
1da0842857 fix: fix ci error 2024-12-17 12:13:48 +08:00
99ddbab9f7 chore: update contributors [skip ci] 2024-11-24 02:23:50 +00:00
279e28ba11 chore: update contributors [skip ci] 2024-11-20 02:18:39 +00:00
fe22321e94 Merge branch 'master' into 'ln-build'
Holder for upcoming Master Changes

See merge request synced/X6!1
2024-11-18 10:50:05 +00:00
9b36e34e58 update versions 2024-11-18 10:49:18 +00:00
ad742c4526 chore: update contributors [skip ci] 2024-11-14 02:13:05 +00:00
8611455ec7 chore: update CONTRIBUTORS [skip ci] 2024-11-13 03:08:08 +00:00
891d47c36f Update attr.ts (#4303)
新增preserveAspectRatio的属性转换过滤
2024-11-13 11:03:28 +08:00
e725973339 chore: update contributors [skip ci] 2024-11-05 02:11:35 +00:00
6437549fdf chore: update contributors [skip ci] 2024-10-19 02:12:06 +00:00
e8e4123625 chore: update CONTRIBUTORS [skip ci] 2024-10-18 09:46:46 +00:00
98221acd15 chore(deps-dev): bump webpack from 5.76.2 to 5.94.0 (#4417)
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.2 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.2...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-18 17:42:39 +08:00
391306bfc3 Add english translation of the documentation (#4409)
docs: add english translation
2024-10-18 17:42:08 +08:00
2134e11cc2 chore: update contributors [skip ci] 2024-10-15 02:15:02 +00:00
62e85521bf chore: update contributors [skip ci] 2024-09-16 02:16:52 +00:00
003491bd17 chore: update contributors [skip ci] 2024-08-28 02:04:46 +00:00
9565e27bde chore: update CONTRIBUTORS [skip ci] 2024-08-27 08:50:49 +00:00
6e31b9650e fix x6/src/shape/index.ts repeated export (#4404) 2024-08-27 16:46:07 +08:00
cfc1b672e5 chore: update contributors [skip ci] 2024-08-24 02:00:46 +00:00
40f91fcda0 chore: update contributors [skip ci] 2024-07-26 01:58:50 +00:00
99a20381e1 chore: demo support node 16 2024-07-24 17:07:17 +08:00
72c95c9192 chore: update contributors [skip ci] 2024-07-09 01:58:39 +00:00
781eb3bdfd chore: update CONTRIBUTORS [skip ci] 2024-07-08 07:12:30 +00:00
78179da0cd fix: 浮点数精度丢失导致画布缩放卡死 (#4356)
* fix: 浮点数精度丢失导致画布缩放卡死

* chore: 移除多余的代码
2024-07-08 15:07:51 +08:00
f9663278b6 chore: update contributors [skip ci] 2024-07-05 01:56:24 +00:00
37b71d18c2 chore: update contributors [skip ci] 2024-06-07 01:56:21 +00:00
623249c152 chore: update CONTRIBUTORS [skip ci] 2024-06-06 11:55:16 +00:00
a431f520b2 fix: toJSON({ diff: true })没有达到预期效果 #4297 (#4299) 2024-06-06 19:50:37 +08:00
13cd329f19 chore: update contributors [skip ci] 2024-05-28 01:54:08 +00:00
d633e1f781 chore: update contributors [skip ci] 2024-05-24 01:52:42 +00:00
a16d94c2e9 chore: update CONTRIBUTORS [skip ci] 2024-05-21 05:53:49 +00:00
c071361da6 chore: update contributors [skip ci] 2024-05-21 05:45:10 +00:00
c5d19fd4ed fix: get wrong anchor when a node is invisible (#4313) 2024-05-21 13:44:49 +08:00
4eea5efc85 chore: update contributors [skip ci] 2024-05-20 01:53:11 +00:00
c3c12b149c chore: update contributors [skip ci] 2024-05-19 01:55:34 +00:00
bc266fc216 chore: update contributors [skip ci] 2024-05-17 01:51:11 +00:00
9a3cd45616 more fixex for the angular library 2024-05-15 15:52:50 +00:00
7d5dd6c531 Update .gitlab-ci.yml file 2024-05-15 15:41:33 +00:00
2d20f1c7ce update all versions 2024-05-15 15:36:27 +00:00
83eb8cf308 Update .gitlab-ci.yml 2024-05-15 14:51:10 +00:00
9246e6f93b Update .gitlab-ci.yml 2024-05-15 14:44:35 +00:00
54451446fd Update .gitlab-ci.yml 2024-05-15 14:35:01 +00:00
99c7524239 Update .gitlab-ci.yml 2024-05-15 14:27:36 +00:00
d2ef1ddb58 Update .gitlab-ci.yml 2024-05-15 14:27:03 +00:00
ea6f17a9d6 Update .gitlab-ci.yml 2024-05-15 14:07:10 +00:00
0a7afacc55 Update .gitlab-ci.yml 2024-05-15 14:03:04 +00:00
1a77dcd9a8 Update .gitlab-ci.yml 2024-05-15 14:00:37 +00:00
8d1a218e49 Update .gitlab-ci.yml 2024-05-15 13:50:10 +00:00
38fec5b91f Update .gitlab-ci.yml file 2024-05-15 09:40:29 +00:00
7f7b20a86d Update .gitlab-ci.yml file 2024-05-15 08:47:39 +00:00
34c1fcead4 Update .gitlab-ci.yml file 2024-05-15 08:42:53 +00:00
e91ab3e840 Update .gitlab-ci.yml file 2024-05-15 08:39:01 +00:00
c4b782485f Update .gitlab-ci.yml file 2024-05-15 08:33:18 +00:00
700a2f9503 Update .gitlab-ci.yml file 2024-05-15 08:30:52 +00:00
db4e83462b Update .gitlab-ci.yml 2024-05-15 08:22:11 +00:00
92e21f70f9 Update .gitlab-ci.yml 2024-05-15 08:09:19 +00:00
52385828f7 Update .gitlab-ci.yml 2024-05-14 16:05:10 +00:00
be0a10061c add build 2024-05-14 15:59:28 +00:00
2261e782df like this 2024-05-14 15:53:55 +00:00
a8d9bd9ef4 install 2024-05-14 15:50:56 +00:00
9a00ec2480 add build 2024-05-14 15:49:47 +00:00
23e9aa1544 chore: update contributors [skip ci] 2024-05-08 01:29:48 +00:00
6e87a6d270 chore: update contributors [skip ci] 2024-04-30 01:45:07 +00:00
cf395646f1 chore: update contributors [skip ci] 2024-04-29 01:48:21 +00:00
fa14f356ea chore: update CONTRIBUTORS [skip ci] 2024-04-28 12:51:22 +00:00
0bbff8fcc7 fix: If the starting or ending point is the same as the intersection… (#4279)
fix:  If the starting or ending point is the same as the intersection point, return

https://github.com/antvis/X6/issues/4042
https://github.com/antvis/X6/issues/3828
解决跳线异常问题
2024-04-28 20:46:47 +08:00
3bb9bee3fa fix: 修复 Angular 组件内部无法使用外部服务的问题 (#4267) 2024-04-28 20:45:29 +08:00
a87fb3b91e chore: update contributors [skip ci] 2024-04-25 01:48:23 +00:00
8e2e2b17ba chore: update contributors [skip ci] 2024-04-15 03:46:36 +00:00
06148e52d5 chore: update CONTRIBUTORS [skip ci] 2024-04-14 14:02:04 +00:00
48ce40b581 docs: manhattan fallbackRouter options (#4254) 2024-04-14 21:57:31 +08:00
b20cdf87bc chore: update contributors [skip ci] 2024-04-09 01:42:34 +00:00
3b3edb4f36 chore: update CONTRIBUTORS [skip ci] 2024-04-01 07:40:29 +00:00
be8a9c1ee5 chore: update contributors [skip ci] 2024-04-01 07:36:04 +00:00
c3b02e5786 fix: plugin-export API exportjpeg exports are PNG images (#4238)
Co-authored-by: unknown <fangliang@qq.com>
2024-04-01 15:35:46 +08:00
f4d1412efd chore: update contributors [skip ci] 2024-03-14 01:40:32 +00:00
acb60e5e64 chore: update CONTRIBUTORS [skip ci] 2024-03-12 03:39:12 +00:00
45bb0b21be chore: update contributors [skip ci] 2024-03-12 03:34:55 +00:00
c6f953690d docs: remove deprecated Addon usage (#4227)
Author:    mewcoder <1010953107.com>

Co-authored-by: zhaodacheng5 <1010953107.com>
2024-03-12 11:34:37 +08:00
4dbc5e560e chore: update contributors [skip ci] 2024-03-08 01:40:07 +00:00
2bc15cb2c7 chore: update contributors [skip ci] 2024-02-28 01:41:31 +00:00
fb77e64ce0 chore: update CONTRIBUTORS [skip ci] 2024-02-27 09:38:02 +00:00
705fbdb907 Angular Issues: view.js:59 Uncaught TypeError: Cannot set properties of undefined (setting 'innerHTML') (#4187)
Update view.ts

In Angular you sometimes run into complete Flow Errors when Element was already unmounted and it ttries to unmount it again
2024-02-27 17:33:24 +08:00
f02a90fd9a chore: update contributors [skip ci] 2024-02-24 01:37:35 +00:00
a228f30d77 chore: update contributors [skip ci] 2024-01-31 00:02:56 +00:00
d0609d54db update xflow demo and docs (#4190)
* fix: delete xflow wrapper and xflow components docs

* fix: update xflow graph demo

* fix: update xflow store docs

* fix: update xflow hooks demo

* fix: update xflow components demo
2024-01-31 08:02:35 +08:00
b6fe9d2a52 chore: update contributors [skip ci] 2024-01-29 01:41:40 +00:00
ac3d5d9abb chore: update contributors [skip ci] 2024-01-28 01:45:38 +00:00
475ff7dad9 chore: release x6-vue-shape 2024-01-26 14:39:24 +08:00
2279042b8d chore: release some packages 2024-01-24 17:16:48 +08:00
5ebb6d32f9 fix: add key for portal to avoid rerender (#4183) 2024-01-24 16:29:57 +08:00
df6609ce5a chore: update npm registry (#4181) 2024-01-24 16:08:18 +08:00
6c2496ce36 chore: update CONTRIBUTORS [skip ci] 2024-01-24 06:54:02 +00:00
9187f35d55 chore: update contributors [skip ci] 2024-01-24 06:49:49 +00:00
e399da4289 fix: edge rendering correct label attrs (#4177) 2024-01-24 14:49:28 +08:00
d700d006cb feat: add xflow docs (#4171)
* feat: add xflow docs

* feat: update xflow docs

* fix: update xflow docs img

* fix: update xflow docs img
2024-01-24 14:49:18 +08:00
fe3b7ace50 feat: panning modifiers add space (#4166)
* feat: panning.options.modifiers add space

* docs: update panning modifiers type
2024-01-24 14:48:22 +08:00
018eafa07a chore: update CONTRIBUTORS [skip ci] 2024-01-24 06:27:11 +00:00
0f83b1a89a chore: update contributors [skip ci] 2024-01-24 06:22:52 +00:00
75e1ee98bb fix(plugin:export): it should have default value 'true' through doc (#4111)
* fix(plugin:export): it should have default value 'true' through doc

* fix(plugin:export): more logical condition after last fix

---------

Co-authored-by: Kevin <MiYa39112@gmail.com>
2024-01-24 14:22:33 +08:00
f2e58f96ef chore: update contributors [skip ci] 2024-01-24 06:18:11 +00:00
6decb75c85 feat: selection's pointerEvents support function type (#4067)
* feat: selection's pointerEvents support function type

* fix: extracting function getPointerEventsValue

---------

Co-authored-by: yuyang <yuyang@antiy.cn>
2024-01-24 14:17:50 +08:00
a769284074 chore: update CONTRIBUTORS [skip ci] 2024-01-23 11:13:15 +00:00
17ae229971 chore: update contributors [skip ci] 2024-01-23 11:08:54 +00:00
f6475ac75f fix: bind minimap plugin to graph without scroller (#4167)
Co-authored-by: Indigo-w <chenhan.wb@antgroup.com>
2024-01-23 19:08:36 +08:00
dd63fa7b02 chore: update contributors [skip ci] 2024-01-21 01:57:37 +00:00
84e363ef3c chore: update contributors [skip ci] 2024-01-16 01:52:55 +00:00
cf4cf1f010 fix: snap anchor should be optional (#4152) 2024-01-15 10:17:13 +08:00
b3f593335b chore: update contributors [skip ci] 2024-01-15 01:55:36 +00:00
0db56d0474 chore: update contributors [skip ci] 2024-01-14 01:57:04 +00:00
f29fe2d3e3 Merge branch 'master' of github.com:antvis/X6 2024-01-10 17:33:29 +08:00
93490da29f chore: release packages
@antv/x6 2.17.1
@antv/x6-common 2.0.17
@antv/x6-plugin-keyboard 2.2.2
@antv/x6-plugin-stencil 2.1.5
2024-01-10 17:31:09 +08:00
f1b23d202a chore: update contributors [skip ci] 2024-01-10 09:09:44 +00:00
281209ac56 fix: destroy custom label before render (#4146) 2024-01-10 17:09:23 +08:00
8169d423dc feat: allow calculate distance by bbox when snap to node (#4126)
* feat: allow calculate distance by bbox when snap to node

* fix: rename snap anchor API
2024-01-10 13:43:40 +08:00
c1358c7255 chore: update contributors [skip ci] 2024-01-10 01:53:07 +00:00
16a57df181 chore: update contributors [skip ci] 2024-01-09 02:47:39 +00:00
36c0c62dfd fix:node-anchor的orth锚点,angle为负值导致数值计算为无穷 (#4124) 2024-01-09 10:47:23 +08:00
8d0a8506ec fix: memory leak of graph view dispose(introduce by #4023) (#4114)
Co-authored-by: cluezhang <cluezhang@futurefab.ai>
2024-01-09 10:46:33 +08:00
c91a89f642 chore: update contributors [skip ci] 2024-01-09 02:40:00 +00:00
31be706335 fix: avoid access document or window in server side (#4101) 2024-01-09 10:39:40 +08:00
f8df99a1eb chore: update CONTRIBUTORS [skip ci] 2024-01-09 02:36:37 +00:00
a989de6325 chore: update contributors [skip ci] 2024-01-09 02:32:24 +00:00
fa66d3a514 fix(vue-shape): remove deprecated Vue from import (#4099)
fix: remove `Vue` from named export
2024-01-09 10:32:04 +08:00
a250071310 chore: update contributors [skip ci] 2024-01-09 02:30:53 +00:00
4641d39dd8 fix: format keyboard arrow codes to Mousetrap special codes (#4065) (#4080) 2024-01-09 10:30:31 +08:00
1b031d5339 chore: update contributors [skip ci] 2024-01-09 02:08:11 +00:00
b2461f10c1 docs: fix the container name (#4117)
docs: fix the container name in the configuration
2024-01-09 10:07:50 +08:00
b13d2f7842 chore: update contributors [skip ci] 2024-01-07 01:56:33 +00:00
7327daf9df chore: update contributors [skip ci] 2024-01-05 01:51:07 +00:00
26d37cdf2f chore: update contributors [skip ci] 2024-01-03 01:49:34 +00:00
80306218c8 fix: bind dragstart after add group (#4131) 2024-01-02 20:40:00 +08:00
928c008f54 chore: update CONTRIBUTORS [skip ci] 2024-01-02 12:29:51 +00:00
cf010176a9 Update license copyright year(s) (#4128)
docs(license): update copyright year(s)

Co-authored-by: github-actions <github-actions@github.com>
2024-01-02 20:25:15 +08:00
1a27a2a94a chore: update contributors [skip ci] 2023-12-18 01:26:23 +00:00
f2cae9637e chore: update contributors [skip ci] 2023-12-12 01:26:14 +00:00
3c5856d3f6 chore: update contributors [skip ci] 2023-12-07 01:26:08 +00:00
4d4a2eb2e5 chore: update contributors [skip ci] 2023-12-05 01:26:26 +00:00
fd5b0612c1 chore: update contributors [skip ci] 2023-11-24 01:24:21 +00:00
12ca0e1816 feat: add collaboration demo 2023-11-22 10:51:15 +08:00
b767453742 chore: update contributors [skip ci] 2023-11-21 10:49:20 +00:00
6fcc1a0394 docs: iamge position change (#4045) 2023-11-21 18:49:00 +08:00
e35a7a9e2d chore: update CONTRIBUTORS [skip ci] 2023-11-20 13:27:01 +00:00
5c722242d5 chore: update contributors [skip ci] 2023-11-20 13:22:43 +00:00
f19c848c52 chore: update dumi-theme-antv (#4043) 2023-11-20 21:22:23 +08:00
58fe40c3e1 chore: update contributors [skip ci] 2023-11-18 13:25:13 +00:00
b0a2cdd3e8 Merge branch 'master' of github.com:antvis/X6 2023-11-18 21:24:18 +08:00
2fb6eb0df4 chore: release x6@2.16.1 2023-11-18 21:22:07 +08:00
101eac071a chore: update CONTRIBUTORS [skip ci] 2023-11-18 13:18:43 +00:00
33152c3b8f fix: paning mousewheel (#4035)
Co-authored-by: yinhangfeng <yinhangfeng@bytedance.com>
2023-11-18 21:14:10 +08:00
540e3c2c53 chore: update contributors [skip ci] 2023-11-13 07:30:02 +00:00
0178e486aa fix: delete return selection (#4026)
Co-authored-by: Qinghui.Liu <Qinghui.Liu@fanruan.com>
2023-11-13 15:29:40 +08:00
df1f387ee3 chore: release @antv/x6@2.15.6 2023-11-09 19:07:59 +08:00
f07574a302 chore: update contributors [skip ci] 2023-11-09 11:05:08 +00:00
3141593d6a fix: don't dispose graph view (#4023) 2023-11-09 19:04:49 +08:00
9efe791233 chore: release some packages
@antv/x6-common@2.0.16
@antv/x6@2.15.5
2023-11-07 20:11:46 +08:00
b7878923b8 chore: release @antv/x6@2.15.4 2023-11-06 20:53:42 +08:00
0afbbb507a chore: update contributors [skip ci] 2023-11-06 11:48:37 +00:00
ffbc7edbb5 Fix/memory leak (#4009)
* fix: memory leak issues

* fix: `Dom.Event.off` error while passing unexist event

* test: Add test case for `Dom.Event.off` bug

---------

Co-authored-by: cluezhang <cluezhang@futurefab.ai>
2023-11-06 19:42:26 +08:00
339cade1b5 chore: update contributors [skip ci] 2023-11-04 01:23:18 +00:00
01318ece9a chore(deps): bump browserify-sign from 4.2.1 to 4.2.2 (#3996)
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 16:45:22 +08:00
03a4546872 chore: update CONTRIBUTORS [skip ci] 2023-11-03 08:34:05 +00:00
1d6c29402e chore: update contributors [skip ci] 2023-11-03 08:27:37 +00:00
2d3b365a22 fix: use dom-align to position dnd container (#3978) (#3979)
* fix: use `dom-align` to position dnd container (#3978)

* fix: Remove unused `originOffset` in plugin-dnd

---------

Co-authored-by: cluezhang <cluezhang@futurefab.ai>
2023-11-03 16:27:17 +08:00
f8f3421235 chore: update contributors [skip ci] 2023-11-03 08:25:52 +00:00
cabfa0b077 feat: support both mouse selection with the left mouse button and panning with the middle mouse button in the graph (#3965)
* feat(selection): add the eventTypes option which allows specifying selection listening buttons

* feat(panning): add a new eventType 'mouseWheelDown'

* test(selection): allow panning with mouseWheelDown in the selection example

* docs(selection): add document for new option 'eventTypes'

* docs(panning): add document for 'mouseWheelDown' of 'eventType'

* fix: improve code style

* fix: move eventTypes to Selection.CommonOptions & add into the default option

* fix: put mouse button check log inside callback to enable dynamically change eventTypes

* fix: optimize code style
2023-11-03 16:25:35 +08:00
b92a23e74b Merge branch 'master' of github.com:antvis/X6 2023-10-18 16:48:24 +08:00
6266d911a7 chore: release @antv/x6@2.15.3 2023-10-18 16:47:21 +08:00
e6da6fb55f fix: support cancel editor no mobile (#3968) 2023-10-18 16:33:23 +08:00
9488c0410e feat: export options types 2023-10-18 16:27:05 +08:00
a505b19de0 chore: update contributors [skip ci] 2023-10-13 01:24:34 +00:00
f99f0c0406 chore: update contributors [skip ci] 2023-10-09 01:23:18 +00:00
1c2d637c76 fix: subtract draggingContainer offset when position (#3953) 2023-10-05 19:01:41 +08:00
e58a0cc87a chore(deps): bump postcss from 5.2.18 to 8.4.31 (#3952)
Bumps [postcss](https://github.com/postcss/postcss) from 5.2.18 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/commits/8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 16:58:23 +08:00
7674edb02b chore: release some packages
x6-common@2.0.15
x6@2.15.2
x6-plugin-minimap@2.0.6
x6-plugin-history@2.2.4
x6-plugin-transform2.1.8
2023-10-02 16:36:19 +08:00
5a4169a0ca fix: recoginze dirty flag on undefined attr (#3951) 2023-10-02 16:20:41 +08:00
4dc74f1645 fix: optimize dispoese minimap (#3950) 2023-10-02 15:56:38 +08:00
c6800afdf2 docs: optimize examples for tools (#3942) 2023-09-27 15:18:54 +08:00
331a4f3c23 fix: stop listener event when transform dispose (#3934) 2023-09-25 17:50:11 +08:00
90004eeebb fix: judge interacting after remove tools (#3933) 2023-09-25 17:32:15 +08:00
cbd56e3dfe chore: update contributors [skip ci] 2023-09-23 01:21:09 +00:00
e271293e6f chore: update contributors [skip ci] 2023-09-20 01:22:43 +00:00
17dc1517f5 chore: release x6 2023-09-19 16:17:41 +08:00
016a2be788 feat: add render:done event (#3919) 2023-09-19 16:15:14 +08:00
21a9739960 chore: update contributors [skip ci] 2023-09-19 07:52:25 +00:00
f3efd68edc feat: breakText method support line wrapping text (#3910)
* feat: breakText method support line wrapping text

* feat: breakText method support line wrapping text

---------

Co-authored-by: Qinghui.Liu <Qinghui.Liu@fanruan.com>
2023-09-19 15:52:04 +08:00
9a356b30de chore: update contributors [skip ci] 2023-09-19 07:04:11 +00:00
92d6913411 chore: release selection and dnd plugin 2023-09-19 15:02:06 +08:00
678883fb54 fix: plugin-selection unmatch after scale graph (#3907) (#3918)
Co-authored-by: cluezhang <cluezhang@futurefab.ai>
2023-09-19 14:34:35 +08:00
eac458ce88 chore: update CONTRIBUTORS [skip ci] 2023-09-19 06:13:55 +00:00
ff350883b5 chore: update contributors [skip ci] 2023-09-19 06:06:04 +00:00
264e1e4eab fix: plugin-dnd horizontal scroll compatibility (#3912) (#3913)
Co-authored-by: cluezhang <cluezhang@futurefab.ai>
2023-09-19 14:05:36 +08:00
4356660123 chore: update contributors [skip ci] 2023-09-16 01:21:14 +00:00
8b8df8ce4f chore: release x6@2.14.1 2023-09-11 21:05:56 +08:00
f84f7f0313 fix: trigger click event when click edge with vertices tool (#3895) 2023-09-11 20:06:17 +08:00
e9f41adfc9 chore: update contributors [skip ci] 2023-09-11 12:05:53 +00:00
09a2c14339 fix: edge does not display the label after setting the label and text… (#3896)
fix: edge does not display the label after setting the label and textWrap (#3892)

Co-authored-by: qiufeihong <qiufeihong.qfh@alibaba-inc.com>
2023-09-11 20:05:32 +08:00
78e5274d48 chore: update contributors [skip ci] 2023-09-11 01:23:07 +00:00
0c2c1e1c6e chore: update CONTRIBUTORS [skip ci] 2023-09-06 12:12:46 +00:00
ce24b9e608 chore: update contributors [skip ci] 2023-09-06 12:04:30 +00:00
9823c7e7ba fix: "pnpm run build:watch" 在windows下无法正常运行 (#3888)
Co-authored-by: chenxixin <chenxixin>
2023-09-06 20:04:07 +08:00
548288c056 fix: not consider transform when get bbox (#3878) 2023-09-04 17:38:26 +08:00
84c63871cf chore: update contributors [skip ci] 2023-08-21 02:25:52 +00:00
b5cc1dcd11 fix: doc incorrect text (#3862) 2023-08-21 10:25:33 +08:00
1afa724af1 chore: update contributors [skip ci] 2023-08-10 01:28:51 +00:00
743112d2c9 chore: update CONTRIBUTORS [skip ci] 2023-08-07 14:39:00 +00:00
365839b26d chore: update contributors [skip ci] 2023-08-07 14:32:31 +00:00
9cc7737007 feat: node-editor新增width和height配置 (#3827)
Co-authored-by: aflextyang <aflextyang@futurefab.ai>
2023-08-07 22:32:08 +08:00
d9167a22f1 chore: update contributors [skip ci] 2023-08-06 01:26:12 +00:00
7a160d266a chore: update contributors [skip ci] 2023-08-02 11:03:55 +00:00
8cf1ed4841 fix: 修复 Angular Component 节点被移除时没有触发销毁的生命周期 (#3826) 2023-08-02 19:03:30 +08:00
2e10838360 chore: update contributors [skip ci] 2023-07-30 01:28:31 +00:00
45efc11dab chore: update contributors [skip ci] 2023-07-29 01:27:56 +00:00
dbd0219f0f fix: updateCellId api bug (#3816) 2023-07-28 10:52:28 +08:00
eb3d0067d7 docs: add warn in react shape (#3807) 2023-07-28 10:51:00 +08:00
b3887ca247 docs: update antd version (#3805) 2023-07-25 22:57:25 +08:00
c06b0e2881 chore: update contributors [skip ci] 2023-07-25 14:44:39 +00:00
2c79ef8863 chore: release @antv/x6@2.13.1 2023-07-25 19:16:22 +08:00
ddad5e86fa chore: update CONTRIBUTORS [skip ci] 2023-07-25 11:09:38 +00:00
103ed2e547 docs: cell.setData, deep: false code error (#3803)
docs: cell.setData, deep: false code error
2023-07-25 19:02:25 +08:00
3e1daae5f8 chore: update contributors [skip ci] 2023-07-25 10:52:07 +00:00
dedd102202 docs: wobble parameter names are incorrect (#3795) 2023-07-25 18:51:45 +08:00
00b75517f8 chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#3792)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 09:42:28 +08:00
c7b5c1d6f1 chore: update CONTRIBUTORS [skip ci] 2023-07-18 05:48:22 +00:00
e2a33f0915 chore: update contributors [skip ci] 2023-07-18 05:41:49 +00:00
c42a69ea2d feat: 修改文档错别字 (#3788)
feat: 文档名称错误
2023-07-18 13:41:28 +08:00
7c2541807b fix: sync render tools (#3780) 2023-07-13 21:36:15 +08:00
ea058706bf chore: update CONTRIBUTORS [skip ci] 2023-07-13 12:10:14 +00:00
3cf590797c chore: update contributors [skip ci] 2023-07-13 12:02:12 +00:00
79eb3084f2 fix: guard parameter does not match the type (#3779) 2023-07-13 20:01:52 +08:00
a00f06cd11 feat: add modifiers for vertices tool (#3778) 2023-07-13 18:43:36 +08:00
a6c4509589 fix: unembed edge only when have new parent (#3773) 2023-07-13 15:22:15 +08:00
8ecfc86202 fix: consider transform when calc bbox (#3770) 2023-07-13 11:23:24 +08:00
a9aa2b8db9 chore: release @antv/x6-plugin-stencil@2.1.4 2023-07-12 20:25:48 +08:00
785a97210b chore: update contributors [skip ci] 2023-07-12 12:17:59 +00:00
ccc77552d0 feat: supports dynamic modification of groups and nodes in stencil (#3767)
* fix: fix dnd drag-and-drop node display is incomplete

* feat: support add or remove group

* docs: update docs for stencil
2023-07-12 20:17:35 +08:00
6cc9ebf2da chore: release @antv/x6-vue-shape@2.1.1 2023-07-12 11:05:13 +08:00
2c0477e351 chore: update CONTRIBUTORS [skip ci] 2023-07-12 02:56:34 +00:00
ab255df459 feat: x6-vue-shape supports getting nodes and graph in the props (#3761)
* feat: x6-vue-shape supports getting nodes and graph in the props

This change does not affect the original usage, and provides a new way to getting nodes and graph.

* feat: x6-vue-shape supports getting nodes and graph in the props

This change does not affect the original usage, and provides a new way to getting nodes and graph

* feat: [x6-vue-shape] Pass the value directly instead of the function

feat: [x6-vue-shape] Pass the value directly instead of the function

* feat: [x6-vue-shape] Pass the value directly instead of the function

feat: [x6-vue-shape] Pass the value directly instead of the function
2023-07-12 10:48:32 +08:00
bc81583e5d fix: fix invalid history on vertices tool (#3765)
* fix: fix invalid history on vertices tool

* chore: release @antv/x6@2.11.5
2023-07-12 09:38:18 +08:00
7eb9748f3f chore: update contributors [skip ci] 2023-07-12 01:29:57 +00:00
3b8dfcfc51 fix: fix transitionToPoint call error (#3763) 2023-07-11 16:23:24 +08:00
f4ea33afae chore(deps): bump stylelint from 10.1.0 to 15.10.1 (#3750)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 10.1.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/10.1.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-09 10:57:57 +08:00
d38baf112e chore: update contributors [skip ci] 2023-07-09 01:31:36 +00:00
1d6f138de0 chore: release @antv/x6-common@2.0.14 (#3742) 2023-07-06 17:56:43 +08:00
ce15fbae18 fix: change update prioriy in render (#3740) 2023-07-06 16:50:12 +08:00
90324fca58 fix: check labelNode existed before change postion (#3737) 2023-07-06 09:37:48 +08:00
09c6f2a142 chore: update contributors [skip ci] 2023-07-06 01:30:16 +00:00
dfa00c8795 chore: update CONTRIBUTORS [skip ci] 2023-07-05 05:54:40 +00:00
Jie
c70021f1ea docs: modify the sample style error (#3731) 2023-07-05 13:48:06 +08:00
b0bc56d6fc chore: release x6@2.11.3 2023-07-05 13:35:52 +08:00
fb10ef0879 fix: render edge when source or target in render area (#3730) 2023-07-05 09:51:06 +08:00
543de1999d chore: release some packages (#3727) 2023-07-03 20:39:37 +08:00
37e8c2242c fix: set some function to own attrs (#3726)
* fix: set some function to own attrs

* chore: change dnd to deps for stencil plugin
2023-07-03 19:48:58 +08:00
78f05b6287 chore: update CONTRIBUTORS [skip ci] 2023-07-02 00:25:03 +00:00
6037fdeb10 chore: update contributors [skip ci] 2023-07-02 00:17:33 +00:00
8835ee6a56 docs: Add notes in the scroller plugin doc (#3722) 2023-07-02 08:17:12 +08:00
db6f49d65a chore: update CONTRIBUTORS [skip ci] 2023-06-28 10:28:36 +00:00
01e911b5f8 chore: update contributors [skip ci] 2023-06-28 10:20:51 +00:00
377af16922 docs: fix port-layout zh doc typos (#3717) 2023-06-28 18:20:28 +08:00
ef5388ed4a docs: optimize docs (#3703)
* docs: optimize connector docs

* docs: optimize docs for node-anchor

* docs: add demo for edge anchor

* docs: add demo for connection point

* docs: add demo for attrs

* docs: add demos for filter

* docs: add demos for port layout

* docs: add demos for port label layout
2023-06-26 19:39:35 +08:00
6e8422ebd2 docs: optimize docs for mvc (#3701) 2023-06-22 23:08:04 +08:00
8f136d12db docs: update marker.md (#3696) 2023-06-19 21:13:00 +08:00
38d28c0626 docs: add demos for label doc (#3690) 2023-06-19 09:58:27 +08:00
7716765910 chore: update CONTRIBUTORS [skip ci] 2023-06-17 14:56:59 +00:00
2a05b02c4f chore: format scripts (#3689) 2023-06-17 22:49:36 +08:00
7a5019028d chore: prettierrc all files (#3688)
* chore: update bug report template

* chore: update username in commit whitelist

* chore: update basic demo

* chore: prettier all files

* chore: update link in readme
2023-06-17 22:43:24 +08:00
a3fef50df3 chore: update contributors [skip ci] 2023-06-17 14:37:12 +00:00
e08c3a9bd7 fix(Group): add Condition:Embeds the edge if source and target are not same (#3659)
Co-authored-by: 朱泽宇 <zhuzy@digiwin.com>
2023-06-17 22:36:51 +08:00
ebee229402 fix: reset factor when calc factor is 1 (#3658) 2023-06-07 17:24:41 +08:00
51a512ae67 chore: update CONTRIBUTORS [skip ci] 2023-06-06 11:35:17 +00:00
82e0aefc21 chore: update contributors [skip ci] 2023-06-06 11:28:22 +00:00
4cb3bea6b7 docs: optimize docs for model (#3653) 2023-06-06 19:26:54 +08:00
101e3f96b6 chore: update CONTRIBUTORS [skip ci] 2023-06-06 08:54:08 +00:00
8c233a9419 chore: update CONTRIBUTORS [skip ci] 2023-06-06 08:53:41 +00:00
2421fa3513 docs: typo fix (#3648) 2023-06-06 16:46:53 +08:00
9684766150 fix($stencil): compact mode Cannot add odd nodes (#3647)
fix($stencil): compact mode Cannot add odd nodes in mode

Add null check when node getSize()
add check valid node in function getNodesInRow/Column

Closes #3535

Co-authored-by: 朱泽宇 <zhuzy@digiwin.com>
2023-06-06 16:45:54 +08:00
075f54059e fix: replace children prop to childNodes (#3645) 2023-06-06 16:22:55 +08:00
1eccc05f76 chore: update contributors [skip ci] 2023-05-30 01:28:49 +00:00
86b5a23630 chore: update CONTRIBUTORS [skip ci] 2023-05-29 12:43:56 +00:00
161e702916 Update .dumirc.ts 统一官网消息配置,合并后官网发个版 (#3625)
Update .dumirc.ts

统一官网消息配置,合并后官网发个版
2023-05-29 20:36:26 +08:00
9a8fa8a925 fix: widget ouside graph, close #3595 (#3597) 2023-05-19 22:48:30 +08:00
0da7693f5b chore: release x6@2.11.1 and x6-react-shape@2.2.2 (#3600) 2023-05-19 22:35:05 +08:00
b92976a278 docs: optimize cell.md (#3599) 2023-05-18 19:38:10 +08:00
1d64938758 chore: update contributors [skip ci] 2023-05-16 14:26:57 +00:00
876e8b91bb fix: same cell id when using portal #2949 (#3591)
* fix: save cell id when using portal #2949

* fix: same cell id when using portal #2949
2023-05-16 22:26:31 +08:00
01bb8105c9 fix: setText and getText support string (#3586) 2023-05-15 09:56:51 +08:00
6273fd55ac devtool docs (#3585)
* chore: update x6-dev-tool readme

* chore: update docs, add devtool

* chore: revert pnpm-lock
2023-05-13 12:03:30 +08:00
5010a94d14 docs: optimize doc for cell (#3580) 2023-05-11 10:05:56 +08:00
aa65bfaa88 fix: trigger dblclick event only one time (#3577) 2023-05-09 16:36:45 +08:00
148d7d72bc chore: update CONTRIBUTORS [skip ci] 2023-05-08 06:22:44 +00:00
0b1a298cb9 chore: update contributors [skip ci] 2023-05-08 06:15:08 +00:00
35aa68ba6f fix: undo crash when attr is null (#3569) 2023-05-08 14:14:43 +08:00
18f6d9bae3 docs: optimize docs for coordinate (#3553) 2023-04-28 17:45:44 +08:00
0bd4429fb3 feat: change manifest for submit to chrome web store (#3552) 2023-04-28 17:45:36 +08:00
7d33889855 docs: optimize docs for panning (#3543) 2023-04-26 15:23:55 +08:00
c5b80402dd docs: optimize grid and background docs (#3536) 2023-04-24 20:14:44 +08:00
9495b4c90d chore: update contributors [skip ci] 2023-04-20 14:15:54 +00:00
e0719054b5 fix: reset undefined attrs when undo (#3526)
* docs: add sitemap for websites

* fix: reset undefined attrs when undo

* docs: update sitemap
2023-04-20 22:15:29 +08:00
c08d2ceb50 chore: update CONTRIBUTORS [skip ci] 2023-04-20 08:16:35 +00:00
7f8fb69e21 chore: update contributors [skip ci] 2023-04-20 08:10:39 +00:00
8ff81807a7 docs: fix marker link that now target correct page (#3523)
docs: fix link that now target correct page
2023-04-20 16:10:14 +08:00
ec5c67d84c docs: Update marker.zh.md (#3524)
Util.normalizeMarker -> Registry.Marker.normalize

refer to ea01b1d3eb/packages/x6/src/registry/marker/util.ts (L7)
2023-04-20 16:09:49 +08:00
ea01b1d3eb chore: release x6@2.9.7 and selection@2.1.7 (#3505) 2023-04-13 23:44:54 +08:00
0b1e0c754b fix: remove editor before added (#3504) 2023-04-13 23:39:58 +08:00
071ef37569 chore: update CONTRIBUTORS [skip ci] 2023-04-13 14:44:16 +00:00
8b4602b980 chore: update contributors [skip ci] 2023-04-13 14:36:03 +00:00
cd1ee4a77c docs: careless mistake fix of docs (#3503)
careless mistake fix
2023-04-13 22:35:33 +08:00
242316b459 chore: release some packages (#3499) 2023-04-13 10:22:21 +08:00
2a35be764b docs: restricted => restrict (#3495) 2023-04-12 16:17:49 +08:00
f437269e6f chore: cancel useless options (#3489) 2023-04-11 17:45:44 +08:00
7f300fe551 docs: optimize router docs (#3484)
* docs: optimize router docs

* docs: change style of code
2023-04-10 19:38:34 +08:00
73dbd1ef58 chore: release x6@2.9.5 (#3482)
* chore: remove changeset

* chore: release x6@2.9.5
2023-04-10 15:32:03 +08:00
ffa0431e35 fix: mock mouseenter and mouseleave event (#3481)
* fix: mock mouseenter and mouseleave events for port

* chore: add publish packages script

* chore: update ui.js for devtool
2023-04-10 15:07:11 +08:00
f8490a029d chore: update contributors [skip ci] 2023-04-05 01:23:06 +00:00
b56fc2c3eb docs: unified doc format (#3469) 2023-04-05 03:21:19 +08:00
f3ef783b7d chore: update CONTRIBUTORS [skip ci] 2023-04-03 14:18:50 +00:00
7d458bff3b chore: update contributors [skip ci] 2023-04-03 14:10:38 +00:00
89d5465db0 docs: fix NodeAnchor doc wrong (#3464)
docs: 修复 NodeAnchor 文档错误
2023-04-03 22:10:01 +08:00
5edfc8885e fix: remove unused type (#3457) 2023-04-01 08:55:37 +08:00
ba370df246 fix: remove connection strategy option (#3456) 2023-04-01 08:51:11 +08:00
506ab14595 fix: fix error usage of parseInt (#3455) 2023-03-31 22:26:37 +08:00
837bbee715 chore: update contributors [skip ci] 2023-03-31 13:45:18 +00:00
b2e1315f79 feat: support render simple view in minimap (#3453)
* fix: chagne model writable

* fix: auto construct view after createView hook

* fix: chagne createCellView return type

* fix: render existed cells when init

* fix: reset model when dispose minimap

* docs: add simple mode for minimap demo

* chore: release x62.9.2 and minimap@2.0.4
2023-03-31 21:44:53 +08:00
6c76deefd2 chore: update CONTRIBUTORS [skip ci] 2023-03-31 06:35:29 +00:00
9fa0f844c7 fix: type of moveThreshold should be number (#3450) 2023-03-31 14:28:54 +08:00
fa69ddbe68 chore: release @antv/x6@2.9.1 (#3448) 2023-03-30 19:35:06 +08:00
fb3535dc75 feat: support closest connection strategy (#3447)
* feat: support snap in edgeview

* feat: add connectNodeStrategy and connectEdgeStrategy option

* fix: change type for allowBlank

* fix: change type of geConnectionTerminalAnchor

* docs: add docs for connection strategy
2023-03-30 19:31:13 +08:00
20da5acb37 chore: update docsearch api key (#3438)
* chore: update docsearch api key

* docs: update dingding qcode
2023-03-29 11:13:32 +08:00
595f60597c docs: optimze docs for tools (#3431)
* chore: change workspace deps for example

* fix: change allowBlank default value

* refactor: refactor editor tool

* fix: change the condition of render tools

* chore: release x6@2.8.0

* docs: optimze docs for tools
2023-03-26 09:57:36 +08:00
9e759518c8 chore: release 2 packages (#3428) 2023-03-24 17:41:42 +08:00
632b7dc078 docs: add some config for node-tool (#3416) 2023-03-23 09:37:55 +08:00
2b651274a3 chore: update contributors [skip ci] 2023-03-22 14:49:39 +00:00
8f20c66b1d fix: parseint zindex to get correct max zindex node (#3413) 2023-03-22 22:49:13 +08:00
7161d1432d chore: change workflow id names (#3406)
* chore: change workflow id names

* chore: upgrade codecov to v3

* chore: remove matrix in ci
2023-03-22 16:24:11 +08:00
423ddeda73 chore: update CONTRIBUTORS [skip ci] 2023-03-19 08:54:24 +00:00
2efa843e07 chore: update contributors [skip ci] 2023-03-19 08:47:28 +00:00
5d4c5991cc fix: x6 common deps (#3404) 2023-03-19 16:47:06 +08:00
2083c74bd5 chore: fix lint error (#3403)
* chore: fix lint error

* chore: fix style lint error

* chore: remove turbo token env for ci
2023-03-19 16:46:25 +08:00
44a5cfdbc3 chore: remove some workflows (#3400) 2023-03-19 09:24:04 +08:00
cbae927138 chore: change pnpm registry (#3401) 2023-03-19 09:19:09 +08:00
adc06ada96 fix: add timeout to wait target node is connected (#3392) 2023-03-17 10:38:50 +08:00
96ed42b5eb chore: update contributors [skip ci] 2023-03-16 08:37:56 +00:00
4b1a0f8b31 feat: createWidget and clearWidget (#3337)
* feat: createWidget and clearWidget

* feat: createWidget and clearWidget

* feat: 手动触发transofrom和clear

* chore: code optimize

* chore: code optimize
2023-03-16 16:37:31 +08:00
ac71e239cf chore: remove corejs deps (#3390)
* docs: update warnning for x6-react-shape

* chore: remove corejs deps
2023-03-16 11:19:07 +08:00
f4afde62d1 chore: update contributors [skip ci] 2023-03-16 03:18:31 +00:00
a277a8995d docs: 补充 view:mounted 和 view:unmounted 文档 (#3385) 2023-03-16 11:18:08 +08:00
e93021bfb7 docs: update warnning for x6-react-shape (#3388) 2023-03-16 11:06:21 +08:00
c1dedfa515 chore: update contributors [skip ci] 2023-03-16 01:29:05 +00:00
baabd328b6 chore: update contributors [skip ci] 2023-03-15 03:20:01 +00:00
37515c45c8 fix: add dependencies for x6-devtools (#3381)
* fix: add dependencies for x6-devtools

* docs: add tips for react-shape
2023-03-15 11:19:37 +08:00
efc45f6f01 chore: update CONTRIBUTORS [skip ci] 2023-03-15 03:13:38 +00:00
be8f734aa6 chore: release 3 packages (#3377)
@antv/x6-react-shape@2.1.1
@antv/x6-vue-shape@2.0.10
@antv/x62.5.5
2023-03-15 11:08:25 +08:00
68e3ef1535 feat: devtool show plugin (#3373)
* feat: add show plugin

* feat: add show plugin

* feat: add show plugin
2023-03-15 11:07:04 +08:00
6cb7a60e5d Feature devtool (#3363)
* feat: add x6-devtool

* feat: add x6-devtool

* feat: add x6-devtool

* chore: update prettierignore

* feat: calc inspect div location

* feat: change icon

* feat: modify value for node/edge
2023-03-09 22:47:49 +08:00
943c06b272 refactor: using Object.values instead of Object.keys (#3352)
* refactor: using Object.values instead of Object.keys

* refactor: using Object.values instead of Object.keys
2023-03-09 22:44:27 +08:00
8b1f661585 fix: confirm viewitem exist (#3357) 2023-03-07 16:06:37 +08:00
d72ff80be7 fix: hotfix #3351 error when call resetViews (#3356) 2023-03-07 15:47:49 +08:00
1a22248945 chore: release 1 packages (x6-angular-shape) (#3348) 2023-03-06 15:23:27 +08:00
5d68501568 chore: release 1 packages (#3347) 2023-03-06 11:44:05 +08:00
1de8ebe77a fix: reset all views when fromjson (#3346) 2023-03-06 11:35:25 +08:00
42011b7bb2 chore: update contributors [skip ci] 2023-03-03 10:58:27 +00:00
3bb76edd2e docs: update warning block style (#3343) 2023-03-03 18:58:04 +08:00
05fd60952e docs: transform (#3339) 2023-03-03 16:41:06 +08:00
0138ef02ea chore(release): release 2 packages [skip ci]
[@antv/x6@2.5.2](https://www.npmjs.com/package/@antv/x6/v/2.5.2)
[@antv/x6@2.5.2](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.5.2)

[@antv/x6-sites@1.6.5](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.6.5)
2023-03-02 09:48:09 +00:00
2685e331bb chore: release 2 packages (#3336) 2023-03-02 17:36:39 +08:00
ab0c7fe8f2 docs: fix error in cylinder shape (#3335) 2023-03-02 17:24:58 +08:00
c76a23b534 fix: add excludeShapes options for manhattan router (#3334) 2023-03-02 17:24:46 +08:00
2285e5592e chore: add src to files (#3333) 2023-03-02 17:01:55 +08:00
8ebd6dfd76 Feat/history add getSize (#3291)
* feat: add getSize api

* doc: history doc

* feat: add setSize api

* feat: change order

* feat: fix setSize

* fix: add get  hisotry undo stack remain size

* feat: plugin get size

* feat: add doc
2023-03-02 16:53:57 +08:00
a1d86424cf fix: throw error when render edge without terminal (#3331) 2023-03-02 16:39:04 +08:00
309b5a7ff7 docs: remove freeze call (#3332) 2023-03-02 16:38:46 +08:00
5338b73861 chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.6.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.6.3)
2023-03-02 06:13:24 +00:00
90f5912529 docs: update screenshot for curve demo (#3329) 2023-03-02 14:02:12 +08:00
3cd75ec40e chore: update contributors [skip ci] 2023-03-01 11:13:18 +00:00
1904e28f77 chore: should toast pnpm >= 7 (#3325)
feat: should limit pnpm >= 7
2023-03-01 19:12:53 +08:00
75c878009e chore: update contributors [skip ci] 2023-03-01 06:31:31 +00:00
ece81529bb chore: add awesome-x6 link (#3314)
* chore: add awesome-x6 link

* chore: add awesome-x6 link
2023-03-01 14:31:09 +08:00
94a7f85882 chore: not required plugin should use optional options (#3313)
chore: not required should use optional
2023-03-01 10:18:31 +08:00
11ae288eb0 chore: update contributors [skip ci] 2023-03-01 01:30:28 +00:00
3cc8b764b1 chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.6.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.6.2)
2023-02-28 07:41:12 +00:00
5758ef80ef docs: getstart (#3318) 2023-02-28 15:25:42 +08:00
3811a6c0b2 chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.6.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.6.1)
2023-02-27 09:14:54 +00:00
672f104991 docs: update example styles for website (#3310) 2023-02-27 17:00:15 +08:00
2571cb4ceb chore: update license (#3309) 2023-02-27 16:19:16 +08:00
d83bcea863 chore: update contributors [skip ci] 2023-02-27 07:59:22 +00:00
38bdf65dde feat: support angular shape for 2.x (#3278)
* feat: add angular shape

* docs: add angular shape docs

* docs: update docs

* fix: 修复无法在 shape 内部安装依赖的问题
2023-02-27 15:59:01 +08:00
f5db2bb415 chore: update contributors [skip ci] 2023-02-27 07:43:52 +00:00
a3aa2a0da2 fix: fix editor-tool for edge (#3308) 2023-02-27 15:43:29 +08:00
2bce01dee8 chore: update CONTRIBUTORS [skip ci] 2023-02-27 03:42:56 +00:00
a30b6632a0 feat: add view:mounted and view:unmounted event (#3307) 2023-02-27 11:41:22 +08:00
7656b38735 fix: cannot be invoked without new (#3296)
fix Class constructor xx cannot be invoked without 'new'
2023-02-27 11:35:37 +08:00
d953a732b3 chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.5.5](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.5.5)
2023-02-27 03:05:34 +00:00
6317493347 docs: optimize examples style for doc (#3306) 2023-02-27 10:54:45 +08:00
8fc0b72b66 chore: update contributors [skip ci] 2023-02-27 01:29:39 +00:00
18fca29bd7 chore: update contributors [skip ci] 2023-02-24 12:33:15 +00:00
7e61014b65 docs: set version list to 2.x and 1.x (#3301) 2023-02-24 20:32:48 +08:00
8dd2b66633 chore(release): release 3 packages [skip ci]
[@antv/x6-common@2.0.10](https://www.npmjs.com/package/@antv/x6-common/v/2.0.10)
[@antv/x6-common@2.0.10](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.10)

[@antv/x6-plugin-transform@2.1.6](https://www.npmjs.com/package/@antv/x6-plugin-transform/v/2.1.6)
[@antv/x6-plugin-transform@2.1.6](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-transform%402.1.6)

[@antv/x6-sites@1.5.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.5.4)
2023-02-24 08:56:41 +00:00
76fb1acf74 fix: add textLength & lengthAdjust to CASE_SENSITIVE_ATTR (#3281) 2023-02-24 16:45:35 +08:00
709a141e28 fix: transform active-handle class should remove when active removed (#3298)
fix: transform
2023-02-24 16:42:49 +08:00
2ee81fd94b chore: update CONTRIBUTORS [skip ci] 2023-02-23 15:00:09 +00:00
054eb998fa chore: update contributors [skip ci] 2023-02-23 14:53:56 +00:00
e32227ae31 docs: fix warning display style (#3294) 2023-02-23 22:53:33 +08:00
278b798c0a chore: update CONTRIBUTORS [skip ci] 2023-02-23 13:37:37 +00:00
c4e11dc98f chore: update contributors [skip ci] 2023-02-23 13:29:51 +00:00
df8466aa33 doc: 修复graph文档 (#3293) 2023-02-23 21:29:31 +08:00
1b958d626f chore: release x6@2.5.1 (#3284) 2023-02-23 11:17:21 +08:00
946582c242 fix: add judgment for edge view (#3282) 2023-02-23 11:12:42 +08:00
482d77ad09 chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.5.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.5.3)
2023-02-23 03:01:42 +00:00
3103c11991 chore: change docsearch appid (#3280) 2023-02-23 10:50:48 +08:00
3c9093f3ec chore: release 2 packages (#3279) 2023-02-23 10:50:29 +08:00
8a89caab27 chore: update contributors [skip ci] 2023-02-23 01:29:28 +00:00
ed999c630c docs: fix a broken link in model.zh.md (#3275) 2023-02-22 21:03:46 +08:00
34bcd12038 chore: update CONTRIBUTORS [skip ci] 2023-02-22 08:09:25 +00:00
9138978918 fix: leading reset render area when init (#3272)
feat: refactor the virtual rendering logic
2023-02-22 16:02:44 +08:00
46f4c8ac2a chore: update CONTRIBUTORS [skip ci] 2023-02-21 07:09:05 +00:00
7519b11e66 chore: update contributors [skip ci] 2023-02-21 07:01:22 +00:00
5882b6a599 docs: fix typo in stencil.md (#3267) 2023-02-21 15:01:00 +08:00
9781fb48f5 chore: update CONTRIBUTORS [skip ci] 2023-02-20 07:21:00 +00:00
c8a03ed2ba chore: update contributors [skip ci] 2023-02-20 07:14:36 +00:00
b944419572 docs: fix typo in labels.zh.md (#3261) 2023-02-20 15:14:14 +08:00
bebc5652d1 chore: update contributors [skip ci] 2023-02-19 01:29:30 +00:00
8daa2c9b98 chore(release): release 3 packages [skip ci]
[@antv/x6-common@2.0.8](https://www.npmjs.com/package/@antv/x6-common/v/2.0.8)
[@antv/x6-common@2.0.8](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.8)

[@antv/x6-example-features@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-example-features%402.1.1)

[@antv/x6-sites@1.5.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.5.2)
2023-02-18 22:39:19 +00:00
c510756fe4 fix: mindmap demo duplicate node id, close #3256 (#3257) 2023-02-19 06:28:20 +08:00
9b4fa86daa fix: fix typo for dom event handlers (#3255) 2023-02-19 06:28:02 +08:00
7e86ba90d6 chore: update contributors [skip ci] 2023-02-18 01:29:04 +00:00
f27bec6bb8 chore: update CONTRIBUTORS [skip ci] 2023-02-17 15:37:04 +00:00
c38006a358 docs: history插件文档补充stackSize属性的说明 (#3254) 2023-02-17 23:28:02 +08:00
5f2783aade chore(release): release 2 packages [skip ci]
[@antv/x6-example-features@2.1.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-example-features%402.1.0)

[@antv/x6-plugin-history@2.2.0](https://www.npmjs.com/package/@antv/x6-plugin-history/v/2.2.0)
[@antv/x6-plugin-history@2.2.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-history%402.2.0)
2023-02-17 13:57:56 +00:00
fba531064a feat: history add max stack size (#3253)
* feat: init

* feat: add demo

* feat: add demo

* feat: add demo

* feat: limit undoStack size

* feat: 0 means not limit

---------

Co-authored-by: lijianqiang.seven <lijianqiang.seven@bytedance.com>
Co-authored-by: zhangzirui.1993 <zhangzirui.1993@bytedance.com>
2023-02-17 21:46:59 +08:00
04656f33f4 feat: add updateNode/updateEdge API #3235 (#3239)
* feat: add updateNode/updateEdge API #3235

* feat: add updateNode/updateEdge API #3235

* feat: update return value

* fix: call error create function
2023-02-17 21:27:40 +08:00
441dd564b4 chore: update CONTRIBUTORS [skip ci] 2023-02-16 11:11:30 +00:00
9ccda3e96f fix: donot empty text when only has title elem (#3248) 2023-02-16 19:04:46 +08:00
979b2556e9 chore: update contributors [skip ci] 2023-02-16 01:29:34 +00:00
153013a606 chore: update CONTRIBUTORS [skip ci] 2023-02-15 03:16:40 +00:00
2c7b966f45 chore: queueJob optimize (#3226)
* chore: queueJob optimize

* chore: queueJob optimize

* chore: queueJob optimize
2023-02-15 11:10:00 +08:00
b199153f3b chore: update CONTRIBUTORS [skip ci] 2023-02-13 15:12:24 +00:00
608ce9ac6c chore: update contributors [skip ci] 2023-02-13 15:05:20 +00:00
eb921f7018 docs: fix typo (#3234) 2023-02-13 23:04:59 +08:00
68e7132213 chore: update contributors [skip ci] 2023-02-12 01:29:21 +00:00
62aa5323ce chore: update contributors [skip ci] 2023-02-11 01:28:45 +00:00
e380cba7d9 chore: update CONTRIBUTORS [skip ci] 2023-02-10 02:03:59 +00:00
8fada570e4 fix: add padding options for position api (#3225) 2023-02-10 09:57:41 +08:00
1096bf171b fix: fix scroller options typo (#3224) 2023-02-10 09:57:22 +08:00
1834cd2143 chore: update contributors [skip ci] 2023-02-09 06:26:51 +00:00
1cf9cb654f chore: should use local to format (#3222) 2023-02-09 14:26:30 +08:00
b392d78856 chore(release): release 3 packages [skip ci]
[@antv/x6@2.3.0](https://www.npmjs.com/package/@antv/x6/v/2.3.0)
[@antv/x6@2.3.0](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.3.0)

[@antv/x6-plugin-keyboard@2.2.0](https://www.npmjs.com/package/@antv/x6-plugin-keyboard/v/2.2.0)
[@antv/x6-plugin-keyboard@2.2.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-keyboard%402.2.0)

[@antv/x6-sites@1.5.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.5.0)
2023-02-06 14:39:13 +00:00
58c0fe459c feat: add options for positionCell api (#3208) 2023-02-06 22:28:20 +08:00
8a510fa8f8 chore: update contributors [skip ci] 2023-02-06 14:16:48 +00:00
668c93242f feat: keyboard support clear and custom trigger (#3202)
* feat: keyboard support clear and custom trigger

* feat: keyboard support clear and custom trigger

* feat: add return this

* feat: add doc

* feat: add doc

* feat: adjust order

* feat: change order

---------

Co-authored-by: Struggle <lijianqiang.seven@bytedance.com>
2023-02-06 22:16:28 +08:00
c122b2122c chore: update CONTRIBUTORS [skip ci] 2023-02-06 04:14:50 +00:00
3b9957efbb chore: update contributors [skip ci] 2023-02-06 04:08:38 +00:00
1f83a2b8a8 fix(scheduler): remove spammy console.log (#3200)
fix: remove spammy console.log

Hey, 
This console.log ended up in production build, not sure it was on purpose.
2023-02-06 12:08:14 +08:00
6699c2bd00 chore: update contributors [skip ci] 2023-02-03 06:10:28 +00:00
7192209a5c Feat plugins dis and en (#3171)
* fix: graph plugin support disable and enable

* fix: graph plugin support disable and enable

* fix: graph plugin support disable and enable and add getPlugins

* fix: deal compatibility problem

* chore: unify plugin disable and enable return value

* chore: unify plugin disable and enable return value

* feat: add disposePlugins and isEnabled

* feat: optimize test form

---------

Co-authored-by: seven <lijianqiang.seven@bytedance.com>
2023-02-03 14:10:03 +08:00
5da5575451 chore: remove empty line in comment 2023-02-03 12:13:15 +08:00
3377049a49 chore: checkout repo without credentials 2023-02-03 12:13:15 +08:00
4e76734cee chore(release): release 1 package [skip ci]
[@antv/x6@2.2.1](https://www.npmjs.com/package/@antv/x6/v/2.2.1)
[@antv/x6@2.2.1](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.2.1)
2023-02-02 09:13:25 +00:00
3a59703f1c fix: ensure the container in html view (#3196) 2023-02-02 17:00:48 +08:00
45218c36f6 fix: set correct scroller options (#3195) 2023-02-02 16:39:46 +08:00
17b36e21c7 fix: clear old background when background enabled in background (#3192) 2023-02-01 22:55:29 +08:00
1682a1d953 chore: update CONTRIBUTORS [skip ci] 2023-02-01 11:27:54 +00:00
bcf3380d2b fix: get correct clipboard content when useLocalStorage enabed (#3189) 2023-02-01 19:20:26 +08:00
24368d4f86 chore(release): release 4 packages [skip ci]
[@antv/x6@2.2.0](https://www.npmjs.com/package/@antv/x6/v/2.2.0)
[@antv/x6@2.2.0](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.2.0)

[@antv/x6-common@2.0.6](https://www.npmjs.com/package/@antv/x6-common/v/2.0.6)
[@antv/x6-common@2.0.6](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.6)

[@antv/x6-react-components@2.0.7](https://www.npmjs.com/package/@antv/x6-react-components/v/2.0.7)
[@antv/x6-react-components@2.0.7](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-components%402.0.7)

[@antv/x6-sites@1.4.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.4.0)
2023-01-31 09:52:16 +00:00
3265fe5b98 feat: add port events (#3185) 2023-01-31 17:41:12 +08:00
5599286473 chore: update CONTRIBUTORS [skip ci] 2023-01-30 19:48:36 +00:00
d64150bfad fix: fix index error for priorityQueue (#3179) 2023-01-31 03:41:53 +08:00
cae8625feb fix: don't hide when click on color picker (#3172) 2023-01-29 14:47:43 +08:00
d8f1729f09 chore: update contributors [skip ci] 2023-01-28 07:57:12 +00:00
20c170b44a Fix/edge mousedown (#3169)
* fix: onMousedown add event notify

* fix: onMousedown add super event notify

* fix: use notifyMouseDown

---------

Co-authored-by: seven <lijianqiang.seven@bytedance.com>
2023-01-28 15:56:54 +08:00
0e8769642a chore: update contributors [skip ci] 2023-01-28 06:20:00 +00:00
bd30f7f61d fix: prevent highlighting new edge (#3170) 2023-01-28 14:19:38 +08:00
e3e7cfc66f chore: update CONTRIBUTORS [skip ci] 2023-01-28 02:17:37 +00:00
c86ed1a031 chore: use find to repalce forEach (#3159)
Co-authored-by: seven <lijianqiang.seven@bytedance.com>
2023-01-28 10:09:53 +08:00
ae179eb2cd chore(release): release 1 package [skip ci]
[@antv/x6@2.1.6](https://www.npmjs.com/package/@antv/x6/v/2.1.6)
[@antv/x6@2.1.6](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.6)
2023-01-19 02:28:11 +00:00
2a3e523b1b refactor: refactor cell remove schedule (#3154) 2023-01-19 10:17:11 +08:00
b5af7844af chore(release): release 1 package [skip ci]
[@antv/x6-common@2.0.5](https://www.npmjs.com/package/@antv/x6-common/v/2.0.5)
[@antv/x6-common@2.0.5](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.5)
2023-01-18 15:08:37 +00:00
9c48ad8dfc fix: optimize css loader (#3156) 2023-01-18 22:55:16 +08:00
1a5f1655df chore(release): release 2 packages [skip ci]
[@antv/x6-example-features@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-example-features%402.0.2)

[@antv/x6-react-components@2.0.6](https://www.npmjs.com/package/@antv/x6-react-components/v/2.0.6)
[@antv/x6-react-components@2.0.6](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-components%402.0.6)
2023-01-17 01:56:18 +00:00
90dad14d7e fix: stop propagation when click menu item (#3147) 2023-01-17 09:42:30 +08:00
323e01559d chore: update contributors [skip ci] 2023-01-16 15:20:32 +00:00
bfc8d7f17a fix(mindmap demo): can not find target id when create edge (#3144) 2023-01-16 23:20:08 +08:00
df24392728 chore: update contributors [skip ci] 2023-01-15 13:21:33 +00:00
fc940fa53c refactor: mindmap demo remove resetCells (#3141) 2023-01-15 21:21:12 +08:00
604c848c2a chore(release): release 3 packages [skip ci]
[@antv/x6@2.1.5](https://www.npmjs.com/package/@antv/x6/v/2.1.5)
[@antv/x6@2.1.5](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.5)

[@antv/x6-plugin-dnd@2.0.4](https://www.npmjs.com/package/@antv/x6-plugin-dnd/v/2.0.4)
[@antv/x6-plugin-dnd@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-dnd%402.0.4)

[@antv/x6-sites@1.3.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.3.2)
2023-01-13 14:20:05 +00:00
7b091f35de fix: change dragging container options (#3139) 2023-01-13 22:09:21 +08:00
95c72c3033 chore: update CONTRIBUTORS [skip ci] 2023-01-13 13:13:12 +00:00
0c91218b64 chore: update contributors [skip ci] 2023-01-13 13:06:09 +00:00
61c030a162 docs: fix document formatting (#3135)
docs: fix document formatting
2023-01-13 21:05:46 +08:00
5c5f3e5319 chore: update contributors [skip ci] 2023-01-11 02:13:33 +00:00
06a8f28c2d chore: update contributors [skip ci] 2023-01-10 02:17:09 +00:00
ece198265b chore: update contributors [skip ci] 2023-01-05 14:48:42 +00:00
6abd0683ea fix: update group even group is empty (#3117) 2023-01-05 22:48:20 +08:00
fff95806c8 docs: add LEGAL for sites (#3112) 2023-01-04 20:41:06 +08:00
a069449782 chore: update badge style 2023-01-04 12:18:58 +08:00
3b25683529 chore(release): release 2 packages [skip ci]
[@antv/x6@2.1.4](https://www.npmjs.com/package/@antv/x6/v/2.1.4)
[@antv/x6@2.1.4](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.4)

[@antv/x6-sites@1.3.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.3.1)
2023-01-03 14:07:28 +00:00
45337e4a62 fix: optimize rendering logic to prevent loops (#3108) 2023-01-03 21:56:57 +08:00
91fc97791b chore(release): release 1 package [skip ci]
[@antv/x6-sites@1.3.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.3.0)
2023-01-01 11:58:39 +00:00
cdd0913eee Update license copyright year(s) (#3104)
docs(license): update copyright year(s)

Co-authored-by: github-actions <github-actions@github.com>
2023-01-01 19:48:23 +08:00
a696009ede chore: update contributors [skip ci] 2022-12-27 01:29:01 +00:00
c808ca6d2b chore: update CONTRIBUTORS [skip ci] 2022-12-26 03:30:48 +00:00
d3301d33d5 feat: add data processing dag example (#3091)
chore: stash code

feat: add dataProcessingDagre demo

feat: dataProcessingDagre demo add animate and cell status style

chore: perf code

chore: perf code

chore: perf code

chore: perf code
2022-12-26 03:23:31 +00:00
0029555458 chore: force use pnpm package manager in this project 2022-12-25 16:13:18 +08:00
cc18463c53 chore(release): release 3 packages [skip ci]
[@antv/x6@2.1.3](https://www.npmjs.com/package/@antv/x6/v/2.1.3)
[@antv/x6@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.3)

[@antv/x6-plugin-transform@2.1.5](https://www.npmjs.com/package/@antv/x6-plugin-transform/v/2.1.5)
[@antv/x6-plugin-transform@2.1.5](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-transform%402.1.5)

[@antv/x6-sites@1.2.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.2.2)
2022-12-24 14:05:12 +00:00
fb8098c1c0 fix: add defense for view in transform plugin (#3092) 2022-12-24 21:54:09 +08:00
c250caba6a chore: update CONTRIBUTORS [skip ci] 2022-12-23 12:08:08 +00:00
019333d79d fix: schedule edge when source and target is not ready (#3090) 2022-12-23 20:00:15 +08:00
33c2e59207 chore(release): release 1 package [skip ci]
[@antv/x6-vue-shape@2.0.9](https://www.npmjs.com/package/@antv/x6-vue-shape/v/2.0.9)
[@antv/x6-vue-shape@2.0.9](https://github.com/antvis/X6/releases/tag/%40antv/x6-vue-shape%402.0.9)
2022-12-21 04:03:39 +00:00
844ee5fa04 fix: get graph from right place (#3078) 2022-12-21 11:52:57 +08:00
96010e3b52 fix: add createView options (#3075) 2022-12-20 20:18:59 +08:00
a98e97db11 fix: add getGraph provide (#3072) 2022-12-20 20:16:07 +08:00
30c2ed2655 fix: optimize snapToGrid options for manhattan (#3071) 2022-12-20 20:15:55 +08:00
3a020d17c3 chore(release): release 1 package [skip ci]
[@antv/x6-common@2.0.4](https://www.npmjs.com/package/@antv/x6-common/v/2.0.4)
[@antv/x6-common@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.4)
2022-12-20 03:52:49 +00:00
d8e1e637d8 fix: fix window incompatibility problem (#3070) 2022-12-20 11:39:53 +08:00
2d04848d52 chore(release): release 1 package [skip ci]
[@antv/x6@2.1.1](https://www.npmjs.com/package/@antv/x6/v/2.1.1)
[@antv/x6@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.1)
2022-12-19 14:40:16 +00:00
e2bb71d954 fix: set snapToGrid to false by default (#3066) 2022-12-19 22:29:40 +08:00
8b145941ec chore: update contributors [skip ci] 2022-12-19 14:28:26 +00:00
2c7a04a6f4 chore: move file 2022-12-19 22:27:23 +08:00
dfa8c492da chore: update CONTRIBUTORS [skip ci] 2022-12-19 12:57:10 +00:00
3b668feb4e fix: arrowhead not get options bug (#3065) 2022-12-19 20:49:55 +08:00
07f4739979 chore(release): release 1 package [skip ci]
[@antv/x6@2.1.0](https://www.npmjs.com/package/@antv/x6/v/2.1.0)
[@antv/x6@2.1.0](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.1.0)
2022-12-19 01:46:51 +00:00
824560ddda feat: add snapToGrid options for manhattan router (#3062)
* docs: update github url

* fix: debounce update to improve performance

* feat: add snapToGrid options for manhattan router
2022-12-19 09:36:17 +08:00
9e37ea9f78 fix: debounce update to improve performance (#3061)
* docs: update github url

* fix: debounce update to improve performance
2022-12-18 21:44:03 +08:00
610349d924 chore(release): release 3 packages [skip ci]
[@antv/x6@2.0.9](https://www.npmjs.com/package/@antv/x6/v/2.0.9)
[@antv/x6@2.0.9](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.0.9)

[@antv/x6-example-features@2.0.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-example-features%402.0.1)

[@antv/x6-sites@1.2.0](https://github.com/antvis/X6/releases/tag/%40antv/x6-sites%401.2.0)
2022-12-16 10:44:52 +00:00
2f92e33d0e fix: remove useless repo url 2022-12-16 18:33:03 +08:00
df540d9b79 chore: rename dir 2022-12-16 18:19:58 +08:00
3bc37971f8 chore: update deprecated terser plugin
Co-authored-by: NewByVector <vectorse@126.com>
2022-12-16 18:07:58 +08:00
50284c2d51 chore: update contributors [skip ci] 2022-12-16 08:44:49 +00:00
15284e778a fix: 🐛 char ghosting when edit text (#2560) (#3043)
* fix: 🐛 char ghosting when edit text (#2560)

* fix: 🐛 grammar style improvement
2022-12-16 16:44:28 +08:00
1a0e8cf969 docs: fix broken CI status badge 2022-12-16 15:44:05 +08:00
1089109b08 chore: update build:watch script (#3035) 2022-12-12 21:26:40 +08:00
faf294a5ec chore: only support react18 in 2.1.x (#3034) 2022-12-12 21:21:41 +08:00
25461fd985 docs: update vue demo (#3033)
* chore: refactor x6-site

* docs: update vue demo
2022-12-12 16:38:16 +08:00
35f2966219 chore: refactor x6-site (#3032)
* chore: refactor x6-site

* chore: fix ts lint and style lint error
2022-12-12 16:21:09 +08:00
26df790b8c chore: remove sites files (#3029) 2022-12-12 10:25:03 +08:00
bc7efe8db9 chore: update package version (#3028) 2022-12-11 20:15:16 +08:00
abeb009d0a fix: cancel debounce update for scroller plugin (#3027) 2022-12-11 17:44:13 +08:00
ad08cf87ef chore: update contributors [skip ci] 2022-12-10 01:29:38 +00:00
16c2ef35e0 chore(release): release 1 package [skip ci]
[@antv/x6-vue-shape@2.0.7](https://www.npmjs.com/package/@antv/x6-vue-shape/v/2.0.7)
[@antv/x6-vue-shape@2.0.7](https://github.com/antvis/X6/releases/tag/%40antv/x6-vue-shape%402.0.7)
2022-12-09 07:37:48 +00:00
187e318aee fix: cannot read properties of undefined when unmount vue component (#3024)
* fix: cannot read properties of undefined when unmount vue component

* fix: cannot read properties of undefined when unmount vue component
2022-12-09 15:26:57 +08:00
f07abff980 chore(release): release 1 package [skip ci]
[@antv/x6@2.0.8](https://www.npmjs.com/package/@antv/x6/v/2.0.8)
[@antv/x6@2.0.8](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.0.8)
2022-12-08 01:44:43 +00:00
4a6a634a8a fix: trigger preventDefault by origin event (#3017) 2022-12-08 09:35:17 +08:00
627368e0dd chore(release): release 1 package [skip ci]
[@antv/x6-plugin-transform@2.1.4](https://www.npmjs.com/package/@antv/x6-plugin-transform/v/2.1.4)
[@antv/x6-plugin-transform@2.1.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-transform%402.1.4)
2022-12-07 09:03:49 +00:00
604c0244cd fix: make resizing options take effect (#3014) 2022-12-07 16:53:46 +08:00
80898ada1c chore(release): release 1 package [skip ci]
[@antv/x6@2.0.7](https://www.npmjs.com/package/@antv/x6/v/2.0.7)
[@antv/x6@2.0.7](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.0.7)
2022-12-06 09:38:57 +00:00
057d5209ff fix: hide elems when visible is false (#3007) 2022-12-06 17:26:38 +08:00
2070828425 chore: remove ts and style lint error (#2995) 2022-12-05 17:20:38 +08:00
502422fe24 Delete .lgtm.yml 2022-12-05 17:06:19 +08:00
8daf0fd62c chore: config codeql 2022-12-05 16:55:39 +08:00
a108b50a66 chore: update contributors [skip ci] 2022-12-03 03:49:59 +00:00
525bac1907 chore: release @antv/x6-plugin-selection@2.1.5 (#2994) 2022-12-03 11:49:38 +08:00
34ec3d29ab chore: update CONTRIBUTORS [skip ci] 2022-12-03 03:34:26 +00:00
74fb7b86d7 chore: add eslintcache (#2993)
* chore: add eslintcache

* chore: add eslintcache
2022-12-03 11:27:56 +08:00
1fb2d8308a fix: use geometry in selection box (#2992) 2022-12-02 17:49:13 +08:00
b2b8ac578c chore: update CONTRIBUTORS [skip ci] 2022-12-02 08:51:57 +00:00
1b03004ee5 chore: update contributors [skip ci] 2022-12-02 08:44:34 +00:00
53c9eaf626 chore: update wrong comment word (#2991)
Co-authored-by: hehongsheng <hehongsheng@dolinkhub.com>
2022-12-02 16:44:14 +08:00
05d1fe35d6 fix: remove lint error (#2979)
* chore: release 4 packages

x6@2.0.6
x6-plugin-export@2.1.4
x6-plugin-snapline@2.1.6
x6-react-shape@2.0.6

* fix: remove lint error
2022-12-01 11:51:31 +08:00
b05d1596dd chore: update deps 2022-12-01 11:38:15 +08:00
8843212f53 chore: move '--debug' to env variable 'SRM_DEBUG' 2022-12-01 11:38:15 +08:00
f920d5a4ee fix: export toJpeg methods in export plugin (#2974) 2022-11-30 10:50:30 +08:00
6a81805075 fix: render react shape in dnd graph (#2970) 2022-11-29 21:22:49 +08:00
94f90425f6 fix: support react 17 (#2968) 2022-11-29 19:40:46 +08:00
cd85c5bd26 chore(release): release 1 package [skip ci]
[@antv/x6-geometry@2.0.4](https://www.npmjs.com/package/@antv/x6-geometry/v/2.0.4)
[@antv/x6-geometry@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-geometry%402.0.4)
2022-11-29 09:41:38 +00:00
16b6c89e6b fix: regex for excluding coverage 2022-11-29 17:29:47 +08:00
76be8db8ca docs: update sites url 2022-11-29 17:27:40 +08:00
18c0edf483 chore(release): release 1 package [skip ci]
[@antv/x6-plugin-keyboard@2.1.4](https://www.npmjs.com/package/@antv/x6-plugin-keyboard/v/2.1.4)
[@antv/x6-plugin-keyboard@2.1.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-keyboard%402.1.4)
2022-11-29 08:53:51 +00:00
4978110b45 fix: not trigger keyboard event whith delete key in contenteditable elem (#2965) 2022-11-29 16:44:32 +08:00
8eb43874a5 Add CodeQL workflow for GitHub code scanning (#2948)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
2022-11-29 15:53:33 +08:00
83d0295596 chore: update readme (#2962) 2022-11-29 14:58:10 +08:00
2c40e3d129 chore: hide coverage badge 2022-11-29 10:03:52 +08:00
d903e5a5b6 fix: trigger transform knob after click node (#2956) 2022-11-28 20:19:27 +08:00
c350371d3c fix: dom.data support custom object (#2954) 2022-11-28 16:10:34 +08:00
9f3ba0f3b4 chore: update contributors [skip ci] 2022-11-28 01:30:11 +00:00
b0555151e9 fix: render vue shape in minimap with same cellid when using teleport (#2949)
* fix: render vue shape in minimap with same cellid when using teleport

* fix: render vue shape in minimap with same cellid when using teleport
2022-11-27 10:42:13 +08:00
1d324df545 chore(release): release 1 package [skip ci]
[@antv/x6-plugin-clipboard@2.1.3](https://www.npmjs.com/package/@antv/x6-plugin-clipboard/v/2.1.3)
[@antv/x6-plugin-clipboard@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-clipboard%402.1.3)
2022-11-25 11:48:13 +00:00
d6df2d5981 fix: broken file 2022-11-25 18:15:46 +08:00
273102322b chore: update package version (#2943)
* chore: update package version

* chore: fix repository url

* chore: enable publish to npm

Co-authored-by: bubkoo <bubkoo.wy@gmail.com>
2022-11-25 18:13:10 +08:00
1dcab69b18 chore(release): release 17 packages [skip ci]
[@antv/x6@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.0.4)

[@antv/x6-common@2.0.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-common%402.0.1)

[@antv/x6-geometry@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-geometry%402.0.3)

[@antv/x6-plugin-clipboard@2.1.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-clipboard%402.1.2)

[@antv/x6-plugin-dnd@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-dnd%402.0.3)

[@antv/x6-plugin-export@2.1.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-export%402.1.2)

[@antv/x6-plugin-history@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-history%402.1.3)

[@antv/x6-plugin-keyboard@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-keyboard%402.1.3)

[@antv/x6-plugin-minimap@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-minimap%402.0.3)

[@antv/x6-plugin-scroller@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-scroller%402.0.3)

[@antv/x6-plugin-selection@2.1.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-selection%402.1.4)

[@antv/x6-plugin-snapline@2.1.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-snapline%402.1.4)

[@antv/x6-plugin-stencil@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-stencil%402.0.3)

[@antv/x6-plugin-transform@2.1.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-transform%402.1.2)

[@antv/x6-react-components@2.0.5](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-components%402.0.5)

[@antv/x6-react-shape@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-shape%402.0.4)

[@antv/x6-vue-shape@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-vue-shape%402.0.4)
2022-11-25 09:50:08 +00:00
cb0cfdeb4d fix: npm version 2022-11-25 17:44:42 +08:00
bdba8cef5c chore(release): release 16 packages [skip ci]
[@antv/x6@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6%402.0.3)

[@antv/x6-geometry@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-geometry%402.0.2)

[@antv/x6-plugin-clipboard@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-clipboard%402.1.1)

[@antv/x6-plugin-dnd@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-dnd%402.0.2)

[@antv/x6-plugin-export@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-export%402.1.1)

[@antv/x6-plugin-history@2.1.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-history%402.1.2)

[@antv/x6-plugin-keyboard@2.1.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-keyboard%402.1.2)

[@antv/x6-plugin-minimap@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-minimap%402.0.2)

[@antv/x6-plugin-scroller@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-scroller%402.0.2)

[@antv/x6-plugin-selection@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-selection%402.1.3)

[@antv/x6-plugin-snapline@2.1.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-snapline%402.1.3)

[@antv/x6-plugin-stencil@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-stencil%402.0.2)

[@antv/x6-plugin-transform@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-transform%402.1.1)

[@antv/x6-react-components@2.0.4](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-components%402.0.4)

[@antv/x6-react-shape@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-shape%402.0.3)

[@antv/x6-vue-shape@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-vue-shape%402.0.3)
2022-11-25 09:27:28 +00:00
6c4244c747 chore: ignore build 2022-11-25 17:06:13 +08:00
e6a1a71932 chore: disable publish to npm 2022-11-25 17:01:54 +08:00
7d64596767 chore: disable breaking changes 2022-11-25 16:11:46 +08:00
54725040f2 fix: type errors 2022-11-25 15:12:22 +08:00
a2a2e657e9 chore: disable breaking changes 2022-11-25 15:11:02 +08:00
593416d8d9 docs: update homepage of packages 2022-11-25 14:34:56 +08:00
96fc0d79cb chore: remove "gitHead" field 2022-11-25 14:34:56 +08:00
85aa3c82ca chore(release): release 3 packages [skip ci]
[@antv/x6-plugin-keyboard@2.1.1](https://www.npmjs.com/package/@antv/x6-plugin-keyboard/v/2.1.1)
[@antv/x6-plugin-keyboard@2.1.1](https://github.com/antvis/X6/releases/tag/%40antv/x6-plugin-keyboard%402.1.1)

[@antv/x6-react-components@2.0.3](https://www.npmjs.com/package/@antv/x6-react-components/v/2.0.3)
[@antv/x6-react-components@2.0.3](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-components%402.0.3)

[@antv/x6-react-shape@2.0.2](https://www.npmjs.com/package/@antv/x6-react-shape/v/2.0.2)
[@antv/x6-react-shape@2.0.2](https://github.com/antvis/X6/releases/tag/%40antv/x6-react-shape%402.0.2)
2022-11-25 06:25:01 +00:00
f20127af55 perf: update deps 2022-11-25 14:00:58 +08:00
f275d3df1e chore: combine release commits 2022-11-25 14:00:01 +08:00
3a1f34ecfd chore: do not release with "ci" and "chore" commits 2022-11-25 14:00:01 +08:00
279caf5173 chore(release): @antv/x6-react-components@2.0.3 [skip ci] 2022-11-24 14:19:16 +00:00
2dcf5d2461 chore(release): @antv/x6-plugin-selection@2.1.2 [skip ci] 2022-11-24 14:19:14 +00:00
d83837d85a chore(release): @antv/x6-plugin-history@2.1.1 [skip ci] 2022-11-24 14:19:10 +00:00
41a64aa1d8 chore(release): @antv/x6@2.0.2 [skip ci] 2022-11-24 14:19:07 +00:00
d4df46ab40 fix: update react type version (#2937) 2022-11-24 22:09:33 +08:00
f448f72417 docs: update antd to v5 for demos (#2936) 2022-11-24 21:04:58 +08:00
557d2df152 fix: get correct center when zoom (#2934) 2022-11-24 19:29:01 +08:00
5edd9ba5f2 chore: update CONTRIBUTORS [skip ci] 2022-11-24 08:23:49 +00:00
bfd1103fd4 chore: update contributors [skip ci] 2022-11-24 08:17:04 +00:00
75f42978cb fix: deep clone instead of shallow clone (#2924)
Co-authored-by: Qinghui.Liu <Qinghui.Liu@fanruan.com>
2022-11-24 16:16:25 +08:00
2ecc213094 fix: support antd5 in react components (#2933) 2022-11-24 16:16:06 +08:00
16c19e0591 chore: fix git committer name 2022-11-24 15:34:34 +08:00
02d95cfeea docs: update deps for sites demo (#2931) 2022-11-24 15:33:09 +08:00
602fcfa0ed chore(release): @antv/x6-vue-shape@2.0.2 [skip ci] 2022-11-24 07:25:28 +00:00
4be1397374 chore(release): @antv/x6-react-components@2.0.2 [skip ci] 2022-11-24 07:25:25 +00:00
e326d8beb9 chore(release): @antv/x6-plugin-snapline@2.1.2 [skip ci] 2022-11-24 07:25:21 +00:00
d6ae5199c0 fix: updae react-resize-detector version (#2930) 2022-11-24 15:12:31 +08:00
97e758fee6 chore: config pnpm workspace 2022-11-24 14:38:01 +08:00
fabd9d5ed9 chore: enable npm publish 2022-11-24 14:31:00 +08:00
08a38bfabd chore(release): @antv/x6-plugin-snapline@2.1.1 [skip ci] 2022-11-24 06:10:43 +00:00
a6055a2b89 chore(release): @antv/x6-example-features@2.0.0 [skip ci] 2022-11-24 06:10:20 +00:00
083948a040 chore(release): @antv/x6-plugin-selection@2.1.1 [skip ci] 2022-11-24 06:10:00 +00:00
bc261fb992 fix: modify the semantics of filter (#2927) 2022-11-24 13:58:11 +08:00
33a2ba2c04 chore(release): @antv/x6-vue-shape@2.0.1 [skip ci] 2022-11-24 04:22:15 +00:00
40d26f87c2 chore(release): @antv/x6-react-shape@2.0.1 [skip ci] 2022-11-24 04:22:12 +00:00
f901d2c149 chore(release): @antv/x6-react-components@2.0.1 [skip ci] 2022-11-24 04:22:09 +00:00
da99354379 chore(release): @antv/x6-plugin-transform@2.1.0 [skip ci] 2022-11-24 04:22:06 +00:00
28111565fa chore(release): @antv/x6-plugin-stencil@2.0.1 [skip ci] 2022-11-24 04:22:03 +00:00
85308db9a0 chore(release): @antv/x6-plugin-snapline@2.1.0 [skip ci] 2022-11-24 04:22:01 +00:00
b58ced43f6 chore(release): @antv/x6-plugin-selection@2.1.0 [skip ci] 2022-11-24 04:21:58 +00:00
9b6c5420aa chore(release): @antv/x6-plugin-scroller@2.0.1 [skip ci] 2022-11-24 04:21:55 +00:00
6fc0344552 chore(release): @antv/x6-plugin-minimap@2.0.1 [skip ci] 2022-11-24 04:21:53 +00:00
86fed91719 chore(release): @antv/x6-plugin-keyboard@2.1.0 [skip ci] 2022-11-24 04:21:50 +00:00
2ceee7d067 chore(release): @antv/x6-plugin-history@2.1.0 [skip ci] 2022-11-24 04:21:48 +00:00
a4a1b37413 chore(release): @antv/x6-plugin-export@2.1.0 [skip ci] 2022-11-24 04:21:45 +00:00
14acda8f4b chore(release): @antv/x6-plugin-dnd@2.0.1 [skip ci] 2022-11-24 04:21:42 +00:00
8af0f1c676 chore(release): @antv/x6-plugin-clipboard@2.1.0 [skip ci] 2022-11-24 04:21:40 +00:00
58853d9ac2 chore(release): @antv/x6-common@2.0.1 [skip ci] 2022-11-24 04:21:37 +00:00
7551e782c1 chore(release): @antv/x6@2.0.1 [skip ci] 2022-11-24 04:21:34 +00:00
662f138fca chore(release): @antv/x6-geometry@2.0.1 [skip ci] 2022-11-24 04:21:32 +00:00
f6001a4619 docs: add performance demos (#2925) 2022-11-24 12:12:05 +08:00
e0e7e2d80f fix: input required and not supplied: GITHUB_TOKEN 2022-11-23 14:13:03 +08:00
8d19fbc868 chore: use wow-actions/use-app-token v2 2022-11-23 13:58:53 +08:00
5cd3809859 fix: add execute permission 2022-11-23 13:53:38 +08:00
847f225632 feat: add exportSVG methods (#2906) 2022-11-18 15:50:10 +08:00
826ccdd9a0 fix: export snap methods from snapline (#2904) 2022-11-18 13:47:06 +08:00
cee4aa4e53 fix: resize graph when scale scroller (#2903) 2022-11-18 10:31:02 +08:00
4c87e47847 docs: update demos for plugins (#2900) 2022-11-18 09:51:16 +08:00
f2be4b3570 chore: update CONTRIBUTORS [skip ci] 2022-11-17 02:29:54 +00:00
febf71b6a6 docs: optimize demos for plugins (#2893) 2022-11-17 10:23:06 +08:00
9eae1a304f chore: update CONTRIBUTORS [skip ci] 2022-11-15 13:10:00 +00:00
7526379684 chore: update contributors [skip ci] 2022-11-15 13:02:12 +00:00
ee4ed4053f docs: function 'addCells()' is undefined. (#2823) (#2877) 2022-11-15 21:01:53 +08:00
047692f4f8 chore: update contributors [skip ci] 2022-11-15 13:01:34 +00:00
53a3f63aca docs: add demos for websites (#2884)
* docs: add interacting demo

* docs: add serialization demo

* docs: add tools demo

* docs: add html render demo

* docs: add demos for react render

* docs: add demo for vue node
2022-11-15 21:01:11 +08:00
853b35fbfb docs: update docs (#2874)
* docs: add get-started demo

* docs: add docs for graph

* docs: add docs for node

* docs: add docs for edge

* docs: update demos

* docs: update docs directory
2022-11-14 09:46:44 +08:00
bb9e560fd5 chore: updae deps for demos (#2872) 2022-11-12 15:52:08 +08:00
86412e23d2 fix: optimize typo for react-shape (#2870) 2022-11-12 11:44:25 +08:00
1f1e5bc8b2 chore: update deps version for demos (#2865) 2022-11-11 09:42:46 +08:00
774f547b85 feat: attach plugin api and events to grpah instance (#2864)
* feat: attach api and event to graph for clipboard

* feat: attach export api and event to graph instance

* feat: attach history api and event to graph instance

* feat: attach keyboard api to graph instance

* feat: attach selection api and events to graph instance

* feat: attach snapline api and events to graph instance

* feat: attach transform events to graph instance
2022-11-10 20:24:27 +08:00
2194769e36 fix: sync render when change position (#2860) 2022-11-09 16:21:16 +08:00
e68315528a fix: add missing script for building style 2022-11-09 14:52:56 +08:00
6e7fa9d602 chore: config rss 2022-11-09 14:11:05 +08:00
1f42ecda5e chore: forbidden push to master with whitelist 2022-11-09 14:10:18 +08:00
b450a467ce chore: update build cache 2022-11-09 13:58:03 +08:00
189352a09c chore: update devdeps 2022-11-08 17:01:54 +08:00
4f3e589988 refactor: put rss scripts into root package.json 2022-11-08 17:01:53 +08:00
b59ff6916c refactor: remove unused methods 2022-11-08 17:01:53 +08:00
30c6a522f5 chore: update CONTRIBUTORS [skip ci] 2022-11-08 05:03:56 +00:00
4edee83946 chore: update contributors [skip ci] 2022-11-08 04:56:22 +00:00
10347d069b fix: Cannot use "this" here: #2824 (#2855) 2022-11-08 12:56:04 +08:00
d9d68d182e chore: remove unused util methdos 2022-11-07 17:50:19 +08:00
3ef671c223 refactor: remove unused methods 2022-11-07 12:00:16 +08:00
45185ed50a docs: fix url of embeded CONTRIBUTORS.svg 2022-11-07 11:59:40 +08:00
5295ecc957 chore: update commit message of update contributor 2022-11-07 10:00:02 +08:00
ea92193494 chore: let's start v2
clean changelogs
2022-11-07 09:33:09 +08:00
8806adc673 docs: sync doc from v1.0 (#2852) 2022-11-05 21:30:56 +08:00
09e8dfda8b chore(release): @antv/x6-vue-shape@2.0.0 [skip ci] 2022-11-05 13:25:25 +00:00
1283b74cdb chore: update deps
bump  packages/x6-vue-shape to 2.0

BREAKING CHANGE: for bump  packages/x6-vue-shape to 2.0
2022-11-05 21:18:15 +08:00
c075db4822 chore(release): @antv/x6-vue-shape@1.1.0 [skip ci] 2022-11-05 12:47:24 +00:00
2727cab039 chore(release): @antv/x6-react-shape@2.0.0 [skip ci] 2022-11-05 12:47:21 +00:00
c2f5c75b2b chore(release): @antv/x6-react-components@2.0.0 [skip ci] 2022-11-05 12:47:17 +00:00
148807ce4f chore(release): @antv/x6-plugin-transform@2.0.0 [skip ci] 2022-11-05 12:47:14 +00:00
a01f71730d chore(release): @antv/x6-plugin-stencil@2.0.0 [skip ci] 2022-11-05 12:47:10 +00:00
af7993deda chore(release): @antv/x6-plugin-snapline@2.0.0 [skip ci] 2022-11-05 12:47:07 +00:00
f130b41659 chore(release): @antv/x6-plugin-selection@2.0.0 [skip ci] 2022-11-05 12:47:03 +00:00
ef505fd8cf chore(release): @antv/x6-plugin-scroller@2.0.0 [skip ci] 2022-11-05 12:47:00 +00:00
d028dbfa3e chore(release): @antv/x6-plugin-minimap@2.0.0 [skip ci] 2022-11-05 12:46:57 +00:00
9cad409a98 chore(release): @antv/x6-plugin-keyboard@2.0.0 [skip ci] 2022-11-05 12:46:53 +00:00
41cbeb189c chore(release): @antv/x6-plugin-history@2.0.0 [skip ci] 2022-11-05 12:46:50 +00:00
08d4cd0b38 chore(release): @antv/x6-plugin-export@2.0.0 [skip ci] 2022-11-05 12:46:46 +00:00
69f39ba526 chore(release): @antv/x6-plugin-clipboard@2.0.0 [skip ci] 2022-11-05 12:46:43 +00:00
8f91c96631 chore(release): @antv/x6-geometry@2.0.0 [skip ci] 2022-11-05 12:46:40 +00:00
c3600b642f chore(release): @antv/x6-common@2.0.0 [skip ci] 2022-11-05 12:46:36 +00:00
dc0f905824 chore(release): @antv/x6@2.0.0 [skip ci] 2022-11-05 12:46:33 +00:00
aede9b3ee2 chore(release): @antv/x6-plugin-dnd@2.0.0 [skip ci] 2022-11-05 12:46:29 +00:00
44f89a1e1a docs: refresh changelogs
force dump to 2.0

BREAKING CHANGE: dump to 2.0
2022-11-05 20:36:16 +08:00
6448ec31a8 chore(release): @antv/x6-plugin-minimap@1.0.2 [skip ci] 2022-11-05 12:25:57 +00:00
d704d7fb03 chore: update deps 2022-11-05 20:16:02 +08:00
bcc3fb5f50 chore: disable srm on v1 2022-11-05 20:07:32 +08:00
c5a71dee65 chore(release): @antv/x6-plugin-keyboard@1.0.2 [skip ci] 2022-11-05 11:58:50 +00:00
6b112db109 chore: enable breaking changes 2022-11-05 19:51:35 +08:00
6c82b21f9e chore: config branches 2022-11-05 17:08:37 +08:00
79e0fac6e4 chore: release from v2.0 2022-11-05 16:27:00 +08:00
a7720251ff feat: sync some commit from v1 (#2851) 2022-11-05 15:19:50 +08:00
1d64eb7673 chore(release): @antv/x6-vue-shape@1.0.1 [skip ci] 2022-11-05 05:56:10 +00:00
4ebad79e25 chore(release): @antv/x6-react-shape@1.0.1 [skip ci] 2022-11-05 05:56:08 +00:00
322128bd8f chore(release): @antv/x6-react-components@1.0.1 [skip ci] 2022-11-05 05:56:05 +00:00
0ce74d2df1 chore(release): @antv/x6-plugin-transform@1.0.1 [skip ci] 2022-11-05 05:56:02 +00:00
ab5d1c7c81 chore(release): @antv/x6-plugin-stencil@1.0.1 [skip ci] 2022-11-05 05:56:00 +00:00
186e530480 chore(release): @antv/x6-plugin-snapline@1.0.1 [skip ci] 2022-11-05 05:55:57 +00:00
a486446015 chore(release): @antv/x6-plugin-selection@1.0.1 [skip ci] 2022-11-05 05:55:54 +00:00
77d8a88878 chore(release): @antv/x6-plugin-scroller@1.0.1 [skip ci] 2022-11-05 05:55:52 +00:00
4a89c2b82e chore(release): @antv/x6-plugin-minimap@1.0.1 [skip ci] 2022-11-05 05:55:49 +00:00
f6d936e4a2 chore(release): @antv/x6-plugin-keyboard@1.0.1 [skip ci] 2022-11-05 05:55:46 +00:00
dfde26b305 chore(release): @antv/x6-plugin-history@1.0.1 [skip ci] 2022-11-05 05:55:44 +00:00
750242ce92 chore(release): @antv/x6-plugin-export@1.0.1 [skip ci] 2022-11-05 05:55:41 +00:00
b884b795a9 chore(release): @antv/x6-plugin-dnd@1.0.1 [skip ci] 2022-11-05 05:55:39 +00:00
fad7bec85c chore(release): @antv/x6-plugin-clipboard@1.0.1 [skip ci] 2022-11-05 05:55:36 +00:00
7392a48585 chore(release): @antv/x6-common@1.0.1 [skip ci] 2022-11-05 05:55:33 +00:00
7772e7ffe3 chore(release): @antv/x6@1.0.1 [skip ci] 2022-11-05 05:55:31 +00:00
97e5adf6e9 chore(release): @antv/x6-geometry@1.0.1 [skip ci] 2022-11-05 05:55:28 +00:00
04cd9de505 chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-05 13:51:11 +08:00
d3f6f24d92 chore: move delete-stale-releases to backup dir 2022-11-05 13:36:05 +08:00
cc13d80d76 chore(release): @antv/x6-build-tools@1.0.0 [skip ci] 2022-11-05 05:33:43 +00:00
d2e53e9b2f chore(release): @antv/x6-vue-shape@1.0.0 [skip ci] 2022-11-05 05:33:40 +00:00
df246b4045 chore(release): @antv/x6-react-shape@1.0.0 [skip ci] 2022-11-05 05:33:37 +00:00
2f7ed18c4e chore(release): @antv/x6-react-components@1.0.0 [skip ci] 2022-11-05 05:33:34 +00:00
2f10b355f0 chore(release): @antv/x6-plugin-transform@1.0.0 [skip ci] 2022-11-05 05:33:31 +00:00
76717b5c86 chore(release): @antv/x6-plugin-stencil@1.0.0 [skip ci] 2022-11-05 05:33:29 +00:00
54844d84e5 chore(release): @antv/x6-plugin-snapline@1.0.0 [skip ci] 2022-11-05 05:33:26 +00:00
e3514ebe78 chore(release): @antv/x6-plugin-selection@1.0.0 [skip ci] 2022-11-05 05:33:24 +00:00
49ecc06fc6 chore(release): @antv/x6-plugin-scroller@1.0.0 [skip ci] 2022-11-05 05:33:21 +00:00
3d10f1f87d chore(release): @antv/x6-plugin-minimap@1.0.0 [skip ci] 2022-11-05 05:33:18 +00:00
e5a3753e71 chore(release): @antv/x6-plugin-keyboard@1.0.0 [skip ci] 2022-11-05 05:33:16 +00:00
4873dce11d chore(release): @antv/x6-plugin-history@1.0.0 [skip ci] 2022-11-05 05:33:13 +00:00
db5422cbed chore(release): @antv/x6-plugin-dnd@1.0.0 [skip ci] 2022-11-05 05:33:11 +00:00
d004701772 chore(release): @antv/x6-plugin-clipboard@1.0.0 [skip ci] 2022-11-05 05:33:08 +00:00
ace4886693 chore(release): @antv/x6-geometry@1.0.0 [skip ci] 2022-11-05 05:33:05 +00:00
fac321d103 chore(release): @antv/x6-common@1.0.0 [skip ci] 2022-11-05 05:33:02 +00:00
80c8fc57b2 chore(release): @antv/x6@1.0.0 [skip ci] 2022-11-05 05:32:41 +00:00
ee1653aecd chore(release): @antv/x6-example-features@1.0.0 [skip ci] 2022-11-05 05:32:20 +00:00
3c4d5b837c chore(release): @antv/x6-plugin-export@1.0.0 [skip ci] 2022-11-05 05:32:17 +00:00
c54f9c36c7 chore: release on push to master 2022-11-05 13:30:47 +08:00
5138562515 feat: upgrade react to 18 in react-components (#2836) 2022-11-05 09:42:24 +08:00
fe09bdd869 chore: update deps 2022-11-05 03:52:46 +08:00
4e8fb533fb chore: update deps 2022-11-05 03:26:15 +08:00
c456b3fc6a chore: update deps 2022-11-05 03:13:54 +08:00
d242751115 chore: add master branch 2022-11-05 02:03:45 +08:00
d37d24f08a chore: debug release 2022-11-05 01:30:32 +08:00
94af7fa7ec chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-05 01:20:46 +08:00
ecffe1a2a8 chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-05 01:11:04 +08:00
ada97b98a2 chore: disable build job 2022-11-05 00:59:24 +08:00
e05aa85948 fix: commit message for release 2022-11-05 00:59:24 +08:00
267d986764 chore: semantic release [skip ci] (#2843)
* trigger semantic release...

* chore(release): @antv/x6-plugin-export@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-common@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-geometry@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-clipboard@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-dnd@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-history@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-keyboard@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-minimap@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-scroller@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-selection@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-snapline@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-stencil@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-plugin-transform@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-react-components@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-react-shape@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-vue-shape@1.0.0@1.0.0 [skip ci]

* chore(release): @antv/x6-build-tools@1.0.0@1.0.0 [skip ci]

* finalize release [skip ci]

Co-authored-by: bubkoo <bubkoo@users.noreply.github.com>
Co-authored-by: x6-bot <x6-bot@users.noreply.github.com>
Co-authored-by: x6-bot[bot] <71382382+x6-bot[bot]@users.noreply.github.com>
2022-11-04 16:57:06 +00:00
5550fae095 chore: keep latest releases 2022-11-05 00:36:59 +08:00
9535b5abdb chore: delete all releases and tags 2022-11-04 23:58:09 +08:00
40300a2b00 chore: bump version 2022-11-04 23:45:12 +08:00
880026af6e chore: bump version 2022-11-04 23:43:05 +08:00
f52182038b chore: commit with tagName 2022-11-04 23:21:13 +08:00
506d8c82f1 chore: semantic release [skip ci] (#2839)
* trigger semantic release...

* chore(release): 2.0.0 [skip ci]

Co-authored-by: bubkoo <bubkoo@users.noreply.github.com>
Co-authored-by: x6-bot <x6-bot@users.noreply.github.com>
2022-11-04 23:15:31 +08:00
c80b178a08 chore: pr body 2022-11-04 23:04:22 +08:00
105657d7c8 fix: install deps 2022-11-04 22:39:13 +08:00
1ffafcea22 chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-04 22:36:25 +08:00
90e41ea109 chore: start srm 2022-11-04 22:32:02 +08:00
93e281e96b chore: semantic release [skip ci] (#2837)
* trigger semantic release...

* finalize release [skip ci]

Co-authored-by: bubkoo <bubkoo@users.noreply.github.com>
Co-authored-by: x6-bot[bot] <71382382+x6-bot[bot]@users.noreply.github.com>
2022-11-04 14:30:30 +00:00
9377ddc0fc feat: trigger auto release on auto-release branch 2022-11-04 22:29:35 +08:00
ccfc843405 chore: auto release [skip ci] (#2835)
* [create-pull-request] automated change

* chore(release): 2.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 2.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.0 [skip ci]

* chore(release): 1.0.1 [skip ci]

Co-authored-by: bubkoo <bubkoo@users.noreply.github.com>
Co-authored-by: x6-bot <x6-bot@users.noreply.github.com>
2022-11-04 18:11:55 +08:00
225322c8fa chore: update contributors [skip ci] 2022-11-04 09:49:36 +00:00
e5a1df27c5 chore: remove examples from workspace 2022-11-04 17:48:25 +08:00
d3e178fa9c chore: create release branch 'auto-release' 2022-11-04 17:47:27 +08:00
9f0f7824c9 fix: create empty 'releasing' file for pr 2022-11-04 17:32:26 +08:00
5d5b7f872c chore: bump version 2022-11-04 16:55:06 +08:00
95d3b5d5a8 feat: create branch for auto release 2022-11-04 16:54:49 +08:00
8638d4310b chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-04 16:54:19 +08:00
3d8f005696 fix: refactor example (#2831) 2022-11-04 16:16:16 +08:00
7c012f7360 docs: clean up changelogs
bump version

BREAKING CHANGE: bump version
2022-11-04 16:04:45 +08:00
b27dbc0597 fix: should keep latest releases 2022-11-04 15:59:50 +08:00
f8ade0388a chore(release): 1.0.1 [skip ci] 2022-11-04 07:39:44 +00:00
abfc46e9a1 chore(release): 1.0.0 [skip ci] 2022-11-04 07:39:24 +00:00
081be08d38 chore(release): 1.0.0 [skip ci] 2022-11-04 07:38:48 +00:00
9a916545a6 chore(release): 1.0.0 [skip ci] 2022-11-04 07:38:13 +00:00
27d6e629d8 chore(release): 1.0.0 [skip ci] 2022-11-04 07:37:37 +00:00
f679f61f0a chore(release): 1.0.0 [skip ci] 2022-11-04 07:37:04 +00:00
59ae500b7a chore(release): 1.0.0 [skip ci] 2022-11-04 07:36:30 +00:00
deaebb5865 chore(release): 1.0.0 [skip ci] 2022-11-04 07:35:54 +00:00
e83f276c50 chore(release): 2.0.0 [skip ci] 2022-11-04 07:35:34 +00:00
ff04337c74 chore(release): 1.0.0 [skip ci] 2022-11-04 07:35:14 +00:00
c3aa0a0d09 chore(release): 1.0.0 [skip ci] 2022-11-04 07:34:41 +00:00
0e09c7902e chore(release): 1.0.0 [skip ci] 2022-11-04 07:34:06 +00:00
09a4ac8b12 chore(release): 2.0.0 [skip ci] 2022-11-04 07:33:47 +00:00
c7150828e2 chore(release): 2.0.3 [skip ci] 2022-11-04 07:33:43 +00:00
ae7ad05d9c fix: force bump to 2.0
force bump to 2.0

BREAKING CHANGE: force bump to 2.0
2022-11-04 15:24:15 +08:00
809f12248a chore(release): 1.0.1 [skip ci] 2022-11-04 07:17:26 +00:00
6f317b29ac chore(release): 2.0.3 [skip ci] 2022-11-04 07:17:22 +00:00
3bf8ecb0d9 chore(release): 2.0.3 [skip ci] 2022-11-04 07:17:18 +00:00
7f2af29994 chore(release): 1.0.0 [skip ci] 2022-11-04 07:16:57 +00:00
f12dd86c1d chore(release): 1.0.0 [skip ci] 2022-11-04 07:16:20 +00:00
660bc38c8a chore(release): 1.0.0 [skip ci] 2022-11-04 07:15:42 +00:00
27ceef23c8 chore(release): 1.0.0 [skip ci] 2022-11-04 07:15:06 +00:00
59ae960f5f chore(release): 1.0.0 [skip ci] 2022-11-04 07:14:28 +00:00
f6475d1500 chore(release): 1.0.0 [skip ci] 2022-11-04 07:13:52 +00:00
35760aa08c chore(release): 1.0.0 [skip ci] 2022-11-04 07:13:15 +00:00
431795c953 chore(release): 2.0.0 [skip ci] 2022-11-04 07:12:54 +00:00
94f90f0441 chore(release): 1.0.0 [skip ci] 2022-11-04 07:12:34 +00:00
cbd069a546 chore(release): 1.0.0 [skip ci] 2022-11-04 07:11:57 +00:00
9662b6ea6a chore(release): 1.0.1 [skip ci] 2022-11-04 07:11:36 +00:00
59f685d130 chore(release): 2.0.2 [skip ci] 2022-11-04 07:11:33 +00:00
0741f1545d chore(release): 1.0.0 [skip ci] 2022-11-04 07:11:12 +00:00
a9edde0791 chore: bump version 2022-11-04 15:02:37 +08:00
264b1f3be2 chore: bump version 2022-11-04 15:02:37 +08:00
0e258d0704 chore: bump to 2.0
bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-04 15:02:37 +08:00
7a7f9b7657 fix: codecov 2022-11-04 15:02:36 +08:00
afe6793ebb chore(release): 1.0.1 [skip ci] 2022-11-04 06:55:31 +00:00
b138432b1f chore(release): 2.0.2 [skip ci] 2022-11-04 06:55:27 +00:00
a35d771ba6 chore(release): 2.0.2 [skip ci] 2022-11-04 06:55:24 +00:00
0b67719e98 chore(release): 1.0.0 [skip ci] 2022-11-04 06:55:01 +00:00
051baa64da chore(release): 1.0.0 [skip ci] 2022-11-04 06:54:18 +00:00
4715334c75 chore(release): 1.0.0 [skip ci] 2022-11-04 06:53:36 +00:00
6bf76575df chore(release): 1.0.0 [skip ci] 2022-11-04 06:52:53 +00:00
8dc4b38520 chore(release): 1.0.0 [skip ci] 2022-11-04 06:52:11 +00:00
f772026b30 chore(release): 1.0.0 [skip ci] 2022-11-04 06:51:28 +00:00
73fc920fa2 chore(release): 1.0.0 [skip ci] 2022-11-04 06:50:43 +00:00
07379c7c18 chore(release): 2.0.0 [skip ci] 2022-11-04 06:50:19 +00:00
32a6db25e8 chore(release): 1.0.0 [skip ci] 2022-11-04 06:49:55 +00:00
70cbc9f4da chore(release): 1.0.0 [skip ci] 2022-11-04 06:49:13 +00:00
3979a2bd13 chore(release): 1.0.1 [skip ci] 2022-11-04 06:48:50 +00:00
8efe4f4347 chore(release): 1.0.0 [skip ci] 2022-11-04 06:48:26 +00:00
5b5f5aa7ea fix: remove x6-common and x6-geometry deps (#2830)
Co-authored-by: newbyvector <vectorse@126.com>
2022-11-04 14:38:42 +08:00
c9e192f6ed chore(release): 1.0.1 [skip ci] 2022-11-04 06:02:27 +00:00
a58facbeab chore(release): 2.0.1 [skip ci] 2022-11-04 06:02:24 +00:00
f865ca0fea chore(release): 2.0.1 [skip ci] 2022-11-04 06:02:20 +00:00
2d50028394 chore(release): 1.0.0 [skip ci] 2022-11-04 06:02:00 +00:00
882f5dfb89 chore(release): 1.0.0 [skip ci] 2022-11-04 06:01:24 +00:00
f4cd70e75a chore(release): 1.0.0 [skip ci] 2022-11-04 06:00:48 +00:00
4d4d99efd6 chore(release): 1.0.0 [skip ci] 2022-11-04 06:00:11 +00:00
b4c8d917be chore(release): 1.0.0 [skip ci] 2022-11-04 05:59:34 +00:00
c8d7035c25 chore(release): 1.0.0 [skip ci] 2022-11-04 05:58:58 +00:00
c092688eca chore(release): 1.0.0 [skip ci] 2022-11-04 05:58:21 +00:00
8b5f334fee chore(release): 2.0.0 [skip ci] 2022-11-04 05:58:01 +00:00
500d80f505 chore(release): 1.0.0 [skip ci] 2022-11-04 05:57:40 +00:00
3a717260ad chore(release): 1.0.0 [skip ci] 2022-11-04 05:57:04 +00:00
e4d8fe8b9c chore(release): 2.0.1 [skip ci] 2022-11-04 05:56:44 +00:00
17800acd02 chore(release): 1.0.1 [skip ci] 2022-11-04 05:56:41 +00:00
6b96f12f20 feat: call coveralls 2022-11-04 13:47:26 +08:00
8852666236 chore: update version prefix 2022-11-04 13:46:16 +08:00
0cab334e4b chore: force bump to 2.0.0
force bump to 2.0.0

BREAKING CHANGE: force bump to 2.0.0
2022-11-04 13:44:58 +08:00
530d0961a8 chore(release): 2.0.0 [skip ci] 2022-11-04 04:53:43 +00:00
36a3706145 chore(release): 2.0.0 [skip ci] 2022-11-04 04:53:36 +00:00
69b371268f chore(release): 2.0.0 [skip ci] 2022-11-04 04:53:30 +00:00
273c392ecf chore(release): 1.0.0 [skip ci] 2022-11-04 04:53:04 +00:00
a6712373fc chore(release): 1.0.0 [skip ci] 2022-11-04 04:52:19 +00:00
70b4f292b2 chore(release): 1.0.0 [skip ci] 2022-11-04 04:51:37 +00:00
4485759a31 chore(release): 1.0.0 [skip ci] 2022-11-04 04:50:54 +00:00
e95acaec0d chore(release): 1.0.0 [skip ci] 2022-11-04 04:50:12 +00:00
6b864128fb chore(release): 1.0.0 [skip ci] 2022-11-04 04:49:29 +00:00
b3f484756c chore(release): 1.0.0 [skip ci] 2022-11-04 04:48:46 +00:00
cc080bede2 chore(release): 2.0.0 [skip ci] 2022-11-04 04:48:22 +00:00
a3c2c77202 chore(release): 1.0.0 [skip ci] 2022-11-04 04:47:59 +00:00
c6aee77d01 chore(release): 1.0.0 [skip ci] 2022-11-04 04:47:15 +00:00
61ec648afe chore(release): 2.0.0 [skip ci] 2022-11-04 04:46:50 +00:00
d2d1af4441 chore(release): 1.0.0 [skip ci] 2022-11-04 04:46:25 +00:00
915d6e1af3 chore(release): 2.0.0 [skip ci] 2022-11-04 04:46:00 +00:00
95b529dbb4 chore(release): 1.0.1 [skip ci] 2022-11-04 04:45:55 +00:00
359df181cf Merge branch 'master' into beta 2022-11-04 12:33:20 +08:00
dca56222a4 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:17:10 +00:00
f160a692a4 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:17:06 +00:00
e1521224ec chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:17:02 +00:00
5b13832d0d chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:59 +00:00
3244778000 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:55 +00:00
41ba28ede7 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:51 +00:00
f4123517e2 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:47 +00:00
a58cb3d2a4 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:44 +00:00
c4920f6d4b chore(release): 2.0.6-beta.5 [skip ci] 2022-11-04 04:16:40 +00:00
a0045ca739 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:36 +00:00
13c44ebb1f chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:33 +00:00
ffb79054b0 chore(release): 2.0.6-beta.6 [skip ci] 2022-11-04 04:16:29 +00:00
609a234501 chore(release): 2.0.6-beta.2 [skip ci] 2022-11-04 04:16:25 +00:00
3287738bc8 chore: add pnpm rules 2022-11-04 12:05:03 +08:00
c9559f2f30 fix: bump rule 2022-11-04 11:23:43 +08:00
543b5840db chore: add release comment footer message 2022-11-04 11:22:31 +08:00
6bae04fb68 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:57 +00:00
80728ac28f chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:52 +00:00
036a5ff42c chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:48 +00:00
69c4b185c6 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:44 +00:00
d38f906411 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:40 +00:00
55a2de96ca chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:35 +00:00
1ed217476f chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:32 +00:00
5bb1d25745 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:28 +00:00
fe4f7bc4ed chore(release): 2.0.6-beta.4 [skip ci] 2022-11-04 02:18:24 +00:00
e84c5f76d4 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:20 +00:00
fbd3241db0 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:16 +00:00
793363510b chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:12 +00:00
00de968951 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:08 +00:00
017335a09d chore(release): 2.0.6-beta.5 [skip ci] 2022-11-04 02:18:04 +00:00
7e98813096 chore(release): 2.0.6-beta.1 [skip ci] 2022-11-04 02:18:00 +00:00
0de1828a70 chore: release 2022-11-04 10:07:20 +08:00
3b06106a16 fix: should checkout repo 2022-11-04 09:59:36 +08:00
56bec163aa chore: update version 2022-11-04 09:57:35 +08:00
a1bdb18b1d feat: adjust event source and package deps (#2826)
Co-authored-by: newbyvector <vectorse@126.com>
2022-11-04 09:38:37 +08:00
e6905f29f4 chore: call workflow in local repo 2022-11-04 02:20:00 +08:00
4f4d437006 fix: the `uses' attribute must be a path, a Docker image, or owner/repo@ref 2022-11-04 02:16:11 +08:00
53bcd2b018 chore: reusing workflows 2022-11-04 02:13:57 +08:00
af8c5887b3 chore: force release 2.0-beta
force release 2.0-beta

BREAKING CHANGE: force release 2.0-beta
2022-11-04 01:59:02 +08:00
4cee52ee4c chore(release): 2.0.0-beta.1 [skip ci] 2022-11-03 17:33:26 +00:00
76c86be5aa chore(release): 2.0.0-beta.1 [skip ci] 2022-11-03 17:33:18 +00:00
cb0b25b8bc chore(release): 2.0.0-beta.1 [skip ci] 2022-11-03 17:33:11 +00:00
4887763215 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:32:43 +00:00
b5d9f5cbc5 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:31:58 +00:00
874404088b chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:31:12 +00:00
e76f9f232c chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:30:28 +00:00
0e80212d39 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:29:43 +00:00
696954cd6a chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:28:56 +00:00
c8b22bff71 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:28:11 +00:00
c5268623d3 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:27:26 +00:00
068ead793f chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:26:41 +00:00
71cffe34c9 chore(release): 2.0.0-beta.1 [skip ci] 2022-11-03 17:26:13 +00:00
10bb62e414 chore(release): 1.0.0-beta.1 [skip ci] 2022-11-03 17:25:46 +00:00
dd22dfee1f chore(release): 2.0.6-beta.4 [skip ci] 2022-11-03 17:25:20 +00:00
1dc3460a6e chore(release): 2.0.6-beta.3 [skip ci] 2022-11-03 17:25:15 +00:00
a2c5f9e943 fix: commit message E2BIG 2022-11-04 01:12:29 +08:00
9c1989ad6f chore(release): 2.0.6-beta.3 [skip ci]
## [2.0.6-beta.3](https://github.com/antvis/x6/compare/@antv/x6@2.0.6-beta.2...@antv/x6@2.0.6-beta.3) (2022-11-03)
2022-11-03 16:48:53 +00:00
abc29b5e03 chore(release): 2.0.6-beta.2 [skip ci]
## @antv/x6-plugin-history [2.0.6-beta.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@2.0.6-beta.1...@antv/x6-plugin-history@2.0.6-beta.2) (2022-11-03)

### Dependencies

* **@antv/x6:** upgraded to 2.0.6-beta.3
* **@antv/x6-common:** upgraded to 1.0.0-beta.1
2022-11-03 16:48:50 +00:00
f021b7780e chore: ignore private packages 2022-11-04 00:38:09 +08:00
e502ca2515 chore(release): 2.0.6-beta.2 [skip ci]
## [2.0.6-beta.2](https://github.com/antvis/x6/compare/@antv/x6@2.0.6-beta.1...@antv/x6@2.0.6-beta.2) (2022-11-03)

### Bug Fixes

* cache auto generated style file ([ffbaec3](ffbaec396c))

### Features

* force release 2.0-beta ([6987d9c](6987d9ce64))

### BREAKING CHANGES

* force release 2.0-beta
2022-11-03 16:27:58 +00:00
2fa7b6dd10 chore(release): 2.0.6-beta.1 [skip ci]
## @antv/x6-plugin-history [2.0.6-beta.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@2.0.0-beta.1...@antv/x6-plugin-history@2.0.6-beta.1) (2022-11-03)

### Dependencies

* **@antv/x6:** upgraded to 2.0.6-beta.2
* **@antv/x6-common:** upgraded to 1.0.0-beta.1
2022-11-03 16:27:54 +00:00
ffbaec396c fix: cache auto generated style file 2022-11-04 00:17:32 +08:00
d087457f9c chore: disable debug 2022-11-03 23:58:22 +08:00
6987d9ce64 feat: force release 2.0-beta
force release 2.0-beta

BREAKING CHANGE: force release 2.0-beta
2022-11-03 23:57:01 +08:00
fc117fed4c chore: update deps 2022-11-03 23:55:02 +08:00
e5444aeb79 chore(release): 2.0.6-beta.1 [skip ci]
## [2.0.6-beta.1](https://github.com/antvis/x6/compare/@antv/x6@2.0.0-beta.1...@antv/x6@2.0.6-beta.1) (2022-11-03)
2022-11-03 15:43:05 +00:00
747374aedc chore(release): 2.0.0-beta.1 [skip ci]
# @antv/x6-plugin-history [2.0.0-beta.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@1.0.0...@antv/x6-plugin-history@2.0.0-beta.1) (2022-11-03)

### chore

* release beta ([b5f3cfa](b5f3cfa204))

### Features

* support turbo ([1da55bf](1da55bfda7))

### BREAKING CHANGES

* force release 2.0-beta
* 2.0-beta

### Dependencies

* **@antv/x6:** upgraded to 2.0.6-beta.1
* **@antv/x6-common:** upgraded to 1.0.0-beta.1
2022-11-03 15:43:00 +00:00
9b13cb5592 chore: update version 2022-11-03 23:32:05 +08:00
e18db6403e chore: cache test/coverage 2022-11-03 23:29:31 +08:00
ddb695c32e chore: ignore test/coverage 2022-11-03 23:29:31 +08:00
d7bd568f83 chore(release): 2.0.0-beta.1 [skip ci]
# [2.0.0-beta.1](https://github.com/antvis/x6/compare/@antv/x6@1.30.2...@antv/x6@2.0.0-beta.1) (2022-11-03)

### Bug Fixes

* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](5e102a39c5))
* 🐛 add timeout for schedule ([#2303](https://github.com/antvis/x6/issues/2303)) ([a6a2d12](a6a2d12b07))
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](8a17bfac81))
* 🐛 change jobqueue to transient ([0e39d94](0e39d9447b))
* 🐛 debounce update methords in scroller ([6e1bd9b](6e1bd9b530))
* 🐛 ensure css loader for plugin ([24de125](24de1254a1))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](4d174d7807))
* 🐛 fix multiple selection drag error ([5ae7807](5ae78077e2))
* 🐛 fix the error in selected nodes position when snapline enabled ([#2797](https://github.com/antvis/x6/issues/2797)) ([1e7f132](1e7f132bed))
* 🐛 fix type error in keyboard plugin ([#2674](https://github.com/antvis/x6/issues/2674)) ([1701150](1701150042))
* deps version ([2aff4b4](2aff4b4cd0))
* error -> ETXTBSY: text file is busy ([814e0dd](814e0dd137))
* unique cmd file name ([da18f12](da18f126ea))

### chore

* release beta ([b5f3cfa](b5f3cfa204))

### Features

*  add autoResize feature ([5aeae97](5aeae976cd))
*  add clipboard plugin ([8107f6d](8107f6df5d))
*  add css method for dom ([#1959](https://github.com/antvis/x6/issues/1959)) ([e8fbcd8](e8fbcd83fd))
*  add dnd plugin ([269fae9](269fae9e5e))
*  add dom data methods ([#1969](https://github.com/antvis/x6/issues/1969)) ([d1eb01c](d1eb01c491))
*  add dom event to replace jquery event ([#1929](https://github.com/antvis/x6/issues/1929)) ([68c143b](68c143babf))
*  add events module in common ([#1932](https://github.com/antvis/x6/issues/1932)) ([c1d0fc1](c1d0fc188e))
*  add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](fd8d384a29))
*  add html shape ([8d75504](8d7550413f))
*  add keyboard plugin ([#2665](https://github.com/antvis/x6/issues/2665)) ([bf53677](bf536778ca))
*  add minimap plugin ([6cdecbb](6cdecbbba9))
*  add panning and mousewheel module ([#2243](https://github.com/antvis/x6/issues/2243)) ([55d36e4](55d36e4680))
*  add scroller api ([12173bf](12173bf500))
*  add selection plugin ([#2742](https://github.com/antvis/x6/issues/2742)) ([50a5dc7](50a5dc7cd8))
*  add snapline plugin ([294672b](294672b306))
*  add some missing api ([1dcb3d9](1dcb3d92fd))
*  add stencil plugin ([#2815](https://github.com/antvis/x6/issues/2815)) ([4e1fb7b](4e1fb7bef8))
*  add transform plugin ([#2818](https://github.com/antvis/x6/issues/2818)) ([660e2d7](660e2d7689))
*  add trnsition methods for scroller plugin ([#2670](https://github.com/antvis/x6/issues/2670)) ([f43e0a5](f43e0a5417))
*  add version.ts ([#1981](https://github.com/antvis/x6/issues/1981)) ([aee3666](aee3666da2))
*  add view sorting and display feature ([#2206](https://github.com/antvis/x6/issues/2206)) ([9496d1a](9496d1a720))
*  add virtual render feature ([#2198](https://github.com/antvis/x6/issues/2198)) ([fcba5e1](fcba5e1480))
*  export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](df282000cc))
*  expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](f3edbbc95d))
*  improve auto-resize feature ([40d5335](40d53355ce))
*  improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](25b238fd0b))
*  init x6-core repo ([#1954](https://github.com/antvis/x6/issues/1954)) ([d7cfb6a](d7cfb6af19))
*  init x6-next repo ([#1943](https://github.com/antvis/x6/issues/1943)) ([5913369](5913369bc5))
*  put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](f1c80a8cd7))
*  remove jquery deps in x6-core ([#1971](https://github.com/antvis/x6/issues/1971)) ([38c6fd6](38c6fd6992))
*  support inherit options for react-shape registry ([#2596](https://github.com/antvis/x6/issues/2596)) ([ad63046](ad63046e89))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](4ae1b9ef4f))
* add config module for x6-next ([#1945](https://github.com/antvis/x6/issues/1945)) ([075db14](075db14981))
* add onPortRendered options ([#2649](https://github.com/antvis/x6/issues/2649)) ([12c6725](12c67255ae))
* add priority scheduling for async jobs ([#2052](https://github.com/antvis/x6/issues/2052)) ([c32fdfd](c32fdfd7f8))
* add rss command to run sharable scripts ([4a45fa7](4a45fa7d38))
* add rss command to run sharable scripts ([65764be](65764bed3b))
* add scheduler for render nodes to improve performance ([#2044](https://github.com/antvis/x6/issues/2044)) ([57a50a9](57a50a9dec))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](5e0e2acde7))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](ecfd4263b1))
* support turbo ([1da55bf](1da55bfda7))
* sync code from master ([#2004](https://github.com/antvis/x6/issues/2004)) ([c681405](c68140504b)), closes [#1974](https://github.com/antvis/x6/issues/1974) [#1977](https://github.com/antvis/x6/issues/1977) [#1985](https://github.com/antvis/x6/issues/1985) [#1988](https://github.com/antvis/x6/issues/1988) [#1991](https://github.com/antvis/x6/issues/1991) [#1989](https://github.com/antvis/x6/issues/1989)

### Performance Improvements

* ️ check whether label existed in port ([#2063](https://github.com/antvis/x6/issues/2063)) ([5ae7271](5ae7271a25))
* ️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/x6/issues/2242)) ([0aced58](0aced58056))
* ️ repalce getTransformToElement and getBBox to improve performance ([#2177](https://github.com/antvis/x6/issues/2177)) ([1436586](1436586f85))

### BREAKING CHANGES

* force release 2.0-beta
* 2.0-beta
2022-11-03 15:11:33 +00:00
2710f29204 chore(release): 1.0.1-beta.2 [skip ci]
## @antv/x6-build-tools [1.0.1-beta.2](https://github.com/antvis/x6/compare/@antv/x6-build-tools@1.0.1-beta.1...@antv/x6-build-tools@1.0.1-beta.2) (2022-11-03)

### Bug Fixes

* unique cmd file name ([da18f12](da18f126ea))
2022-11-03 15:11:29 +00:00
82161cee4f chore: update version 2022-11-03 22:57:14 +08:00
1da55bfda7 feat: support turbo
BREAKING CHANGE: force release 2.0-beta
2022-11-03 22:42:19 +08:00
da18f126ea fix: unique cmd file name 2022-11-03 22:42:18 +08:00
7824925555 chore: ignore .turbo 2022-11-03 22:42:18 +08:00
564d528612 chore: turbo caching 2022-11-03 22:42:18 +08:00
8cd46c71ae chore: turbo pipeline 2022-11-03 22:42:18 +08:00
92ff8df774 chore(release): 1.31.0-beta.1 [skip ci]
# [1.31.0-beta.1](https://github.com/antvis/x6/compare/@antv/x6@1.30.2...@antv/x6@1.31.0-beta.1) (2022-11-03)

### Bug Fixes

* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](5e102a39c5))
* 🐛 add timeout for schedule ([#2303](https://github.com/antvis/x6/issues/2303)) ([a6a2d12](a6a2d12b07))
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](8a17bfac81))
* 🐛 change jobqueue to transient ([0e39d94](0e39d9447b))
* 🐛 debounce update methords in scroller ([6e1bd9b](6e1bd9b530))
* 🐛 ensure css loader for plugin ([24de125](24de1254a1))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](4d174d7807))
* 🐛 fix multiple selection drag error ([5ae7807](5ae78077e2))
* 🐛 fix the error in selected nodes position when snapline enabled ([#2797](https://github.com/antvis/x6/issues/2797)) ([1e7f132](1e7f132bed))
* 🐛 fix type error in keyboard plugin ([#2674](https://github.com/antvis/x6/issues/2674)) ([1701150](1701150042))
* deps version ([2aff4b4](2aff4b4cd0))
* error -> ETXTBSY: text file is busy ([814e0dd](814e0dd137))

### chore

* release beta ([b5f3cfa](b5f3cfa204))

### Features

*  add autoResize feature ([5aeae97](5aeae976cd))
*  add clipboard plugin ([8107f6d](8107f6df5d))
*  add css method for dom ([#1959](https://github.com/antvis/x6/issues/1959)) ([e8fbcd8](e8fbcd83fd))
*  add dnd plugin ([269fae9](269fae9e5e))
*  add dom data methods ([#1969](https://github.com/antvis/x6/issues/1969)) ([d1eb01c](d1eb01c491))
*  add dom event to replace jquery event ([#1929](https://github.com/antvis/x6/issues/1929)) ([68c143b](68c143babf))
*  add events module in common ([#1932](https://github.com/antvis/x6/issues/1932)) ([c1d0fc1](c1d0fc188e))
*  add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](fd8d384a29))
*  add html shape ([8d75504](8d7550413f))
*  add keyboard plugin ([#2665](https://github.com/antvis/x6/issues/2665)) ([bf53677](bf536778ca))
*  add minimap plugin ([6cdecbb](6cdecbbba9))
*  add panning and mousewheel module ([#2243](https://github.com/antvis/x6/issues/2243)) ([55d36e4](55d36e4680))
*  add scroller api ([12173bf](12173bf500))
*  add selection plugin ([#2742](https://github.com/antvis/x6/issues/2742)) ([50a5dc7](50a5dc7cd8))
*  add snapline plugin ([294672b](294672b306))
*  add some missing api ([1dcb3d9](1dcb3d92fd))
*  add stencil plugin ([#2815](https://github.com/antvis/x6/issues/2815)) ([4e1fb7b](4e1fb7bef8))
*  add transform plugin ([#2818](https://github.com/antvis/x6/issues/2818)) ([660e2d7](660e2d7689))
*  add trnsition methods for scroller plugin ([#2670](https://github.com/antvis/x6/issues/2670)) ([f43e0a5](f43e0a5417))
*  add version.ts ([#1981](https://github.com/antvis/x6/issues/1981)) ([aee3666](aee3666da2))
*  add view sorting and display feature ([#2206](https://github.com/antvis/x6/issues/2206)) ([9496d1a](9496d1a720))
*  add virtual render feature ([#2198](https://github.com/antvis/x6/issues/2198)) ([fcba5e1](fcba5e1480))
*  export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](df282000cc))
*  expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](f3edbbc95d))
*  improve auto-resize feature ([40d5335](40d53355ce))
*  improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](25b238fd0b))
*  init x6-core repo ([#1954](https://github.com/antvis/x6/issues/1954)) ([d7cfb6a](d7cfb6af19))
*  init x6-next repo ([#1943](https://github.com/antvis/x6/issues/1943)) ([5913369](5913369bc5))
*  put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](f1c80a8cd7))
*  remove jquery deps in x6-core ([#1971](https://github.com/antvis/x6/issues/1971)) ([38c6fd6](38c6fd6992))
*  support inherit options for react-shape registry ([#2596](https://github.com/antvis/x6/issues/2596)) ([ad63046](ad63046e89))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](4ae1b9ef4f))
* add config module for x6-next ([#1945](https://github.com/antvis/x6/issues/1945)) ([075db14](075db14981))
* add onPortRendered options ([#2649](https://github.com/antvis/x6/issues/2649)) ([12c6725](12c67255ae))
* add priority scheduling for async jobs ([#2052](https://github.com/antvis/x6/issues/2052)) ([c32fdfd](c32fdfd7f8))
* add rss command to run sharable scripts ([4a45fa7](4a45fa7d38))
* add rss command to run sharable scripts ([65764be](65764bed3b))
* add scheduler for render nodes to improve performance ([#2044](https://github.com/antvis/x6/issues/2044)) ([57a50a9](57a50a9dec))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](5e0e2acde7))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](ecfd4263b1))
* sync code from master ([#2004](https://github.com/antvis/x6/issues/2004)) ([c681405](c68140504b)), closes [#1974](https://github.com/antvis/x6/issues/1974) [#1977](https://github.com/antvis/x6/issues/1977) [#1985](https://github.com/antvis/x6/issues/1985) [#1988](https://github.com/antvis/x6/issues/1988) [#1991](https://github.com/antvis/x6/issues/1991) [#1989](https://github.com/antvis/x6/issues/1989)

### Performance Improvements

* ️ check whether label existed in port ([#2063](https://github.com/antvis/x6/issues/2063)) ([5ae7271](5ae7271a25))
* ️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/x6/issues/2242)) ([0aced58](0aced58056))
* ️ repalce getTransformToElement and getBBox to improve performance ([#2177](https://github.com/antvis/x6/issues/2177)) ([1436586](1436586f85))

### BREAKING CHANGES

* 2.0-beta
2022-11-03 13:12:40 +00:00
d35dce7550 chore(release): 1.0.1-beta.1 [skip ci]
## @antv/x6-build-tools [1.0.1-beta.1](https://github.com/antvis/x6/compare/@antv/x6-build-tools@1.0.0...@antv/x6-build-tools@1.0.1-beta.1) (2022-11-03)

### Bug Fixes

* error -> ETXTBSY: text file is busy ([814e0dd](814e0dd137))
2022-11-03 13:12:35 +00:00
814e0dd137 fix: error -> ETXTBSY: text file is busy 2022-11-03 21:01:38 +08:00
0187a3ef99 chore: add branches rule 2022-11-03 20:11:00 +08:00
b5f3cfa204 chore: release beta
BREAKING CHANGE: 2.0-beta
2022-11-03 19:19:49 +08:00
9555852298 chore: make master as prerelease branch 2022-11-03 19:13:52 +08:00
5aab87437e chore(release): 1.31.0 [skip ci]
# [1.31.0](https://github.com/antvis/x6/compare/@antv/x6@1.30.2...@antv/x6@1.31.0) (2022-11-03)

### Bug Fixes

* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](5e102a39c5))
* 🐛 add timeout for schedule ([#2303](https://github.com/antvis/x6/issues/2303)) ([a6a2d12](a6a2d12b07))
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](8a17bfac81))
* 🐛 change jobqueue to transient ([0e39d94](0e39d9447b))
* 🐛 debounce update methords in scroller ([6e1bd9b](6e1bd9b530))
* 🐛 ensure css loader for plugin ([24de125](24de1254a1))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](4d174d7807))
* 🐛 fix multiple selection drag error ([5ae7807](5ae78077e2))
* 🐛 fix the error in selected nodes position when snapline enabled ([#2797](https://github.com/antvis/x6/issues/2797)) ([1e7f132](1e7f132bed))
* 🐛 fix type error in keyboard plugin ([#2674](https://github.com/antvis/x6/issues/2674)) ([1701150](1701150042))
* deps version ([2aff4b4](2aff4b4cd0))

### Features

*  add autoResize feature ([5aeae97](5aeae976cd))
*  add clipboard plugin ([8107f6d](8107f6df5d))
*  add css method for dom ([#1959](https://github.com/antvis/x6/issues/1959)) ([e8fbcd8](e8fbcd83fd))
*  add dnd plugin ([269fae9](269fae9e5e))
*  add dom data methods ([#1969](https://github.com/antvis/x6/issues/1969)) ([d1eb01c](d1eb01c491))
*  add dom event to replace jquery event ([#1929](https://github.com/antvis/x6/issues/1929)) ([68c143b](68c143babf))
*  add events module in common ([#1932](https://github.com/antvis/x6/issues/1932)) ([c1d0fc1](c1d0fc188e))
*  add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](fd8d384a29))
*  add html shape ([8d75504](8d7550413f))
*  add keyboard plugin ([#2665](https://github.com/antvis/x6/issues/2665)) ([bf53677](bf536778ca))
*  add minimap plugin ([6cdecbb](6cdecbbba9))
*  add panning and mousewheel module ([#2243](https://github.com/antvis/x6/issues/2243)) ([55d36e4](55d36e4680))
*  add scroller api ([12173bf](12173bf500))
*  add selection plugin ([#2742](https://github.com/antvis/x6/issues/2742)) ([50a5dc7](50a5dc7cd8))
*  add snapline plugin ([294672b](294672b306))
*  add some missing api ([1dcb3d9](1dcb3d92fd))
*  add stencil plugin ([#2815](https://github.com/antvis/x6/issues/2815)) ([4e1fb7b](4e1fb7bef8))
*  add transform plugin ([#2818](https://github.com/antvis/x6/issues/2818)) ([660e2d7](660e2d7689))
*  add trnsition methods for scroller plugin ([#2670](https://github.com/antvis/x6/issues/2670)) ([f43e0a5](f43e0a5417))
*  add version.ts ([#1981](https://github.com/antvis/x6/issues/1981)) ([aee3666](aee3666da2))
*  add view sorting and display feature ([#2206](https://github.com/antvis/x6/issues/2206)) ([9496d1a](9496d1a720))
*  add virtual render feature ([#2198](https://github.com/antvis/x6/issues/2198)) ([fcba5e1](fcba5e1480))
*  export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](df282000cc))
*  expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](f3edbbc95d))
*  improve auto-resize feature ([40d5335](40d53355ce))
*  improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](25b238fd0b))
*  init x6-core repo ([#1954](https://github.com/antvis/x6/issues/1954)) ([d7cfb6a](d7cfb6af19))
*  init x6-next repo ([#1943](https://github.com/antvis/x6/issues/1943)) ([5913369](5913369bc5))
*  put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](f1c80a8cd7))
*  remove jquery deps in x6-core ([#1971](https://github.com/antvis/x6/issues/1971)) ([38c6fd6](38c6fd6992))
*  support inherit options for react-shape registry ([#2596](https://github.com/antvis/x6/issues/2596)) ([ad63046](ad63046e89))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](4ae1b9ef4f))
* add config module for x6-next ([#1945](https://github.com/antvis/x6/issues/1945)) ([075db14](075db14981))
* add onPortRendered options ([#2649](https://github.com/antvis/x6/issues/2649)) ([12c6725](12c67255ae))
* add priority scheduling for async jobs ([#2052](https://github.com/antvis/x6/issues/2052)) ([c32fdfd](c32fdfd7f8))
* add rss command to run sharable scripts ([4a45fa7](4a45fa7d38))
* add rss command to run sharable scripts ([65764be](65764bed3b))
* add scheduler for render nodes to improve performance ([#2044](https://github.com/antvis/x6/issues/2044)) ([57a50a9](57a50a9dec))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](5e0e2acde7))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](ecfd4263b1))
* sync code from master ([#2004](https://github.com/antvis/x6/issues/2004)) ([c681405](c68140504b)), closes [#1974](https://github.com/antvis/x6/issues/1974) [#1977](https://github.com/antvis/x6/issues/1977) [#1985](https://github.com/antvis/x6/issues/1985) [#1988](https://github.com/antvis/x6/issues/1988) [#1991](https://github.com/antvis/x6/issues/1991) [#1989](https://github.com/antvis/x6/issues/1989)

### Performance Improvements

* ️ check whether label existed in port ([#2063](https://github.com/antvis/x6/issues/2063)) ([5ae7271](5ae7271a25))
* ️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/x6/issues/2242)) ([0aced58](0aced58056))
* ️ repalce getTransformToElement and getBBox to improve performance ([#2177](https://github.com/antvis/x6/issues/2177)) ([1436586](1436586f85))
2022-11-03 10:01:04 +00:00
6a3e441829 chore(release): 1.0.0 [skip ci]
# @antv/x6-plugin-history 1.0.0 (2022-11-03)

### Features

*  add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](fd8d384a29))

### Dependencies

* **@antv/x6:** upgraded to 1.31.0
* **@antv/x6-common:** upgraded to 1.0.0
2022-11-03 10:00:41 +00:00
2aff4b4cd0 fix: deps version 2022-11-03 17:46:32 +08:00
daa608d283 chore: update version 2022-11-03 17:42:02 +08:00
6346949636 chore(release): 1.31.0 [skip ci]
# [1.31.0](https://github.com/antvis/x6/compare/@antv/x6@1.30.2...@antv/x6@1.31.0) (2022-11-03)

### Bug Fixes

* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](5e102a39c5))
* 🐛 add timeout for schedule ([#2303](https://github.com/antvis/x6/issues/2303)) ([a6a2d12](a6a2d12b07))
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](8a17bfac81))
* 🐛 change jobqueue to transient ([0e39d94](0e39d9447b))
* 🐛 debounce update methords in scroller ([6e1bd9b](6e1bd9b530))
* 🐛 ensure css loader for plugin ([24de125](24de1254a1))
* 🐛 fix cellEditorOptions typo ([#1895](https://github.com/antvis/x6/issues/1895)) ([4d174d7](4d174d7807))
* 🐛 fix multiple selection drag error ([5ae7807](5ae78077e2))
* 🐛 fix the error in selected nodes position when snapline enabled ([#2797](https://github.com/antvis/x6/issues/2797)) ([1e7f132](1e7f132bed))
* 🐛 fix type error in keyboard plugin ([#2674](https://github.com/antvis/x6/issues/2674)) ([1701150](1701150042))

### Features

*  add autoResize feature ([5aeae97](5aeae976cd))
*  add clipboard plugin ([8107f6d](8107f6df5d))
*  add css method for dom ([#1959](https://github.com/antvis/x6/issues/1959)) ([e8fbcd8](e8fbcd83fd))
*  add dnd plugin ([269fae9](269fae9e5e))
*  add dom data methods ([#1969](https://github.com/antvis/x6/issues/1969)) ([d1eb01c](d1eb01c491))
*  add dom event to replace jquery event ([#1929](https://github.com/antvis/x6/issues/1929)) ([68c143b](68c143babf))
*  add events module in common ([#1932](https://github.com/antvis/x6/issues/1932)) ([c1d0fc1](c1d0fc188e))
*  add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](fd8d384a29))
*  add html shape ([8d75504](8d7550413f))
*  add keyboard plugin ([#2665](https://github.com/antvis/x6/issues/2665)) ([bf53677](bf536778ca))
*  add minimap plugin ([6cdecbb](6cdecbbba9))
*  add panning and mousewheel module ([#2243](https://github.com/antvis/x6/issues/2243)) ([55d36e4](55d36e4680))
*  add scroller api ([12173bf](12173bf500))
*  add selection plugin ([#2742](https://github.com/antvis/x6/issues/2742)) ([50a5dc7](50a5dc7cd8))
*  add snapline plugin ([294672b](294672b306))
*  add some missing api ([1dcb3d9](1dcb3d92fd))
*  add stencil plugin ([#2815](https://github.com/antvis/x6/issues/2815)) ([4e1fb7b](4e1fb7bef8))
*  add transform plugin ([#2818](https://github.com/antvis/x6/issues/2818)) ([660e2d7](660e2d7689))
*  add trnsition methods for scroller plugin ([#2670](https://github.com/antvis/x6/issues/2670)) ([f43e0a5](f43e0a5417))
*  add version.ts ([#1981](https://github.com/antvis/x6/issues/1981)) ([aee3666](aee3666da2))
*  add view sorting and display feature ([#2206](https://github.com/antvis/x6/issues/2206)) ([9496d1a](9496d1a720))
*  add virtual render feature ([#2198](https://github.com/antvis/x6/issues/2198)) ([fcba5e1](fcba5e1480))
*  export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](df282000cc))
*  expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](f3edbbc95d))
*  improve auto-resize feature ([40d5335](40d53355ce))
*  improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](25b238fd0b))
*  init x6-core repo ([#1954](https://github.com/antvis/x6/issues/1954)) ([d7cfb6a](d7cfb6af19))
*  init x6-next repo ([#1943](https://github.com/antvis/x6/issues/1943)) ([5913369](5913369bc5))
*  put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](f1c80a8cd7))
*  remove jquery deps in x6-core ([#1971](https://github.com/antvis/x6/issues/1971)) ([38c6fd6](38c6fd6992))
*  support inherit options for react-shape registry ([#2596](https://github.com/antvis/x6/issues/2596)) ([ad63046](ad63046e89))
* 🐛 support click on the non-text area without adding a new label ([#1894](https://github.com/antvis/x6/issues/1894)) ([4ae1b9e](4ae1b9ef4f))
* add config module for x6-next ([#1945](https://github.com/antvis/x6/issues/1945)) ([075db14](075db14981))
* add onPortRendered options ([#2649](https://github.com/antvis/x6/issues/2649)) ([12c6725](12c67255ae))
* add priority scheduling for async jobs ([#2052](https://github.com/antvis/x6/issues/2052)) ([c32fdfd](c32fdfd7f8))
* add rss command to run sharable scripts ([4a45fa7](4a45fa7d38))
* add rss command to run sharable scripts ([65764be](65764bed3b))
* add scheduler for render nodes to improve performance ([#2044](https://github.com/antvis/x6/issues/2044)) ([57a50a9](57a50a9dec))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](5e0e2acde7))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](ecfd4263b1))
* sync code from master ([#2004](https://github.com/antvis/x6/issues/2004)) ([c681405](c68140504b)), closes [#1974](https://github.com/antvis/x6/issues/1974) [#1977](https://github.com/antvis/x6/issues/1977) [#1985](https://github.com/antvis/x6/issues/1985) [#1988](https://github.com/antvis/x6/issues/1988) [#1991](https://github.com/antvis/x6/issues/1991) [#1989](https://github.com/antvis/x6/issues/1989)

### Performance Improvements

* ️ check whether label existed in port ([#2063](https://github.com/antvis/x6/issues/2063)) ([5ae7271](5ae7271a25))
* ️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/x6/issues/2242)) ([0aced58](0aced58056))
* ️ repalce getTransformToElement and getBBox to improve performance ([#2177](https://github.com/antvis/x6/issues/2177)) ([1436586](1436586f85))
2022-11-03 09:31:32 +00:00
5247a13d9b chore(release): 1.0.0 [skip ci]
# @antv/x6-build-tools 1.0.0 (2022-11-03)

### Features

* add rss command to run sharable scripts ([4a45fa7](4a45fa7d38))
2022-11-03 09:31:12 +00:00
42eac09b82 chore: update trigger event 2022-11-03 17:22:32 +08:00
949ebe165f chore: update AUTHORS [skip ci] 2022-11-03 09:15:25 +00:00
58c387643e chore: merge release into ci 2022-11-03 17:08:11 +08:00
dbce0166b8 chore: merge release to ci 2022-11-03 17:05:44 +08:00
ee354b5dcd chore: release when ci passed 2022-11-03 16:51:47 +08:00
b1ae57399a chore: add srm command 2022-11-03 16:38:17 +08:00
51f86184b0 chore: format releaserc 2022-11-03 16:20:15 +08:00
0b2048b12c chore: semantic release config 2022-11-03 16:06:37 +08:00
9cf5d5ef27 chore: license key is required for org 2022-11-03 15:38:59 +08:00
efce3909f0 Merge branch 'build/tools' of https://github.com/antvis/X6 into build/tools 2022-11-03 15:30:01 +08:00
bd6b99453d test: add flags 2022-11-03 15:29:40 +08:00
ffb7ab0a58 refactor: rename file 2022-11-03 15:29:39 +08:00
a9ae861096 chore: the [pull_request_target] event is not yet supported 2022-11-03 15:29:39 +08:00
45b19dffdb chore: ignore auto generated files 2022-11-03 15:29:39 +08:00
33ff359afc chore: update deps 2022-11-03 15:29:39 +08:00
1981f02f2e chore: rm auto generated files 2022-11-03 15:29:38 +08:00
cbfed9be92 chore: use 'rss' to run sharable scripts 2022-11-03 15:29:38 +08:00
4a45fa7d38 feat: add rss command to run sharable scripts 2022-11-03 15:29:38 +08:00
db36ec72ad chore: customize outputs 2022-11-03 15:29:37 +08:00
6e75619d63 chore: sharable karma config 2022-11-03 15:29:37 +08:00
49853bb50f test: add flags 2022-11-03 15:27:45 +08:00
a02b2fb73b refactor: rename file 2022-11-03 15:20:55 +08:00
e223210d49 chore: the [pull_request_target] event is not yet supported 2022-11-03 15:18:34 +08:00
ebe723ff0a chore: ignore auto generated files 2022-11-03 15:14:01 +08:00
7abfe3f30b chore: update deps 2022-11-03 15:12:00 +08:00
f6a3808c9a chore: rm auto generated files 2022-11-03 15:07:59 +08:00
5256e41c6f chore: use 'rss' to run sharable scripts 2022-11-03 15:05:07 +08:00
65764bed3b feat: add rss command to run sharable scripts 2022-11-03 15:02:09 +08:00
e91609877f chore: customize outputs 2022-11-03 14:03:57 +08:00
f42158cdb5 chore: sharable karma config 2022-11-03 13:59:19 +08:00
f5cc06d69c chore: update AUTHORS [skip ci] 2022-11-02 07:27:04 +00:00
4b2f52aa9a chore: switch to pnpm 2022-11-02 15:19:28 +08:00
f35dd5d156 docs: update package manager 2022-11-02 15:19:28 +08:00
63e600c05b chore: update contributors [skip ci] 2022-11-02 04:17:31 +00:00
848c3dc298 chore: use pnpm 2022-11-02 12:04:21 +08:00
27cc9d8711 chore: sharable config 2022-11-02 12:04:21 +08:00
b00cba9b4d chore: force to use pnpm 2022-11-02 12:04:21 +08:00
427165a9c8 chore: v8 2022-11-02 12:04:21 +08:00
df282000cc feat: export common and geometry in x6 package (#2820)
* fix: 🐛 optimize performance example

* feat:  export common and geometry in x6 package
2022-11-02 10:05:51 +08:00
fd8d384a29 feat: add history plugin (#2819) 2022-11-01 19:59:54 +08:00
660e2d7689 feat: add transform plugin (#2818) 2022-11-01 16:48:51 +08:00
4e1fb7bef8 feat: add stencil plugin (#2815) 2022-11-01 11:54:45 +08:00
1f8c80265f chore: 🔧 optimize demos 2022-11-01 10:45:48 +08:00
6cdecbbba9 feat: add minimap plugin 2022-10-31 19:59:45 +08:00
b041423f06 chore(release): 🚀 publish 2022-10-31 16:47:34 +08:00
39279072c3 chore: 🔧 optimize examples 2022-10-31 16:06:50 +08:00
8d7550413f feat: add html shape 2022-10-30 21:31:01 +08:00
0e39d9447b fix: 🐛 change jobqueue to transient 2022-10-30 19:18:09 +08:00
223a634b83 chore: 🔧 optimize example 2022-10-30 18:48:00 +08:00
269fae9e5e feat: add dnd plugin 2022-10-30 10:01:00 +08:00
8107f6df5d feat: add clipboard plugin 2022-10-29 14:46:12 +08:00
8a226bbf5d chore(release): 🚀 publish 2022-10-25 12:18:01 +08:00
5ae78077e2 fix: 🐛 fix multiple selection drag error 2022-10-25 12:08:54 +08:00
c9494e7f79 chore(release): 🚀 publish 2022-10-25 10:52:36 +08:00
1e7f132bed fix: 🐛 fix the error in selected nodes position when snapline enabled (#2797) 2022-10-24 21:39:08 +08:00
9a1834e808 chore(release): 🚀 publish 2022-10-20 18:47:07 +08:00
6e1bd9b530 fix: 🐛 debounce update methords in scroller 2022-10-20 17:52:00 +08:00
12e4ac55d7 chore(release): 🚀 publish 2022-10-19 20:07:08 +08:00
294672b306 feat: add snapline plugin 2022-10-19 20:05:34 +08:00
68c2346e0c chore(release): 🚀 publish 2022-10-18 14:58:25 +08:00
24de1254a1 fix: 🐛 ensure css loader for plugin 2022-10-18 14:51:04 +08:00
88918f7611 chore(release): 🚀 publish 2022-10-17 16:20:08 +08:00
5e102a39c5 fix: 🐛 add return value for autoScroller in scroller plugin 2022-10-17 16:13:13 +08:00
2f310fcceb chore: 🔧 optimize project structure 2022-10-16 20:53:27 +08:00
40d53355ce feat: improve auto-resize feature 2022-10-16 16:32:18 +08:00
1dcb3d92fd feat: add some missing api 2022-10-14 16:29:01 +08:00
9fe7cd51a3 chore(release): 🚀 publish 2022-10-11 15:49:11 +08:00
34481de1db chore: 🔧 unify the version numbers of all packages 2022-10-11 15:45:00 +08:00
9d597a92da chore: 🔧 update build-dev script 2022-10-10 12:11:28 +08:00
40f278f064 chore: 🔧 update publish script 2022-10-10 11:25:25 +08:00
f3edbbc95d feat: expose the selection api (#2756)
* chore: 🔧 update publish script

* feat:  expose the selection api
2022-10-09 22:34:13 +08:00
50a5dc7cd8 feat: add selection plugin (#2742)
* feat:  add selection plugin

* fix: 🐛 reset selection default options
2022-10-02 14:21:56 +08:00
5aeae976cd feat: add autoResize feature 2022-09-28 15:47:43 +08:00
9200e03f52 chore(release): 🚀 publish 2022-09-28 10:49:53 +08:00
6f089f57a8 refactor: ♻️ remove some package (#2729) 2022-09-28 09:57:08 +08:00
48def793ed chore: 🔧 remove some apps (#2728) 2022-09-27 20:06:17 +08:00
bc67848207 chore(release): 🚀 publish 2022-09-15 10:46:36 +08:00
12173bf500 feat: add scroller api
* docs: 📚️ add port connected demo

* feat:  add scroller api
2022-09-14 17:09:59 +08:00
8d645f980a chore(release): 🚀 publish 2022-09-13 22:10:15 +08:00
1701150042 fix: 🐛 fix type error in keyboard plugin (#2674) 2022-09-13 22:09:46 +08:00
6b8d7a4ef2 chore(release): 🚀 publish 2022-09-13 11:02:58 +08:00
8a17bfac81 fix: 🐛 change init method to public (#2671) 2022-09-13 10:59:30 +08:00
14ba132592 chore(release): 🚀 publish 2022-09-13 10:52:28 +08:00
f43e0a5417 feat: add trnsition methods for scroller plugin (#2670) 2022-09-13 10:51:44 +08:00
25b238fd0b feat: improve scroller plugin (#2667) 2022-09-13 10:25:00 +08:00
bf536778ca feat: add keyboard plugin (#2665)
* chore: 🔧 update yarn.lock

* feat:  add keyboard plugin
2022-09-10 19:51:53 +08:00
693e351957 chore(release): 🚀 publish 2022-09-08 19:55:38 +08:00
9a95594a72 chore(release): 🚀 publish 2022-09-08 19:54:42 +08:00
b7cef9edd2 chore: 🔧 remove release-it cmd (#2659)
* chore: 🔧 update x6-react-components version

* chore: 🔧 remove release-it cmd
2022-09-08 19:52:06 +08:00
f4c977759f chore: 🔧 unify the version of each package (#2658) 2022-09-08 19:11:46 +08:00
1f653d27d4 chore(release): 🚀 publish 2022-09-08 17:33:59 +08:00
27f27f1e75 chore: 🔧 update peerDeps for plugins (#2657) 2022-09-08 17:33:05 +08:00
cff8c126de chore(release): 🚀 publish 2022-09-08 15:52:46 +08:00
346c6a268a chore: 🔧 update yarn.lock (#2653) 2022-09-08 15:51:53 +08:00
f53f819043 chore: 🔧 update peerDeps for plugins (#2652) 2022-09-08 15:44:50 +08:00
f351284809 chore(release): 🚀 publish 2022-09-08 11:30:48 +08:00
12c67255ae feat: add onPortRendered options (#2649)
* chore: 🔧 set x6-next and x6-core to private

* feat:  add onPortRendered options
2022-09-08 11:29:15 +08:00
7e179844dc chore: 🔧 update peerdeps for some package (#2597) 2022-08-31 10:48:06 +08:00
bc5284c6fe chore(release): 🚀 publish 2022-08-31 10:37:48 +08:00
ad63046e89 feat: support inherit options for react-shape registry (#2596) 2022-08-31 10:29:44 +08:00
12f0345555 docs: 📚️ add react-shape demos (#2590) 2022-08-29 17:14:13 +08:00
5e0e2acde7 feat: add scroller plugin (#2580)
* feat:  support priority when find anchors

* feat:  add scroller plugin
2022-08-25 21:44:09 +08:00
a10dcdb29f chore: 🔧 change publish script (#2565) 2022-08-24 11:51:19 +08:00
394c945fa2 chore: update x6-next version (#2563)
* feat:  add built-in shapes

* chore: 🔧 change virtualRender option to virtual

* feat:  support mouseenter and mouseleave event

* chore: 🔧 update x6-next version
2022-08-24 10:57:33 +08:00
ecfd4263b1 feat: support mouseenter and mouseleave event (#2559)
* feat:  add built-in shapes

* chore: 🔧 change virtualRender option to virtual

* feat:  support mouseenter and mouseleave event

* chore: 🔧 add lerna publish cmd

* chore(release): 🚀 publish
2022-08-24 10:26:20 +08:00
6ce3980f86 chore: optimize some features (#2530)
* chore: 🔧 release @antv/x6-common@2.0.1-beta.5

* chore: 🔧 release @antv/x6-next@2.0.1-beta.5

* feat:  add built-in shapes

* fix: 🐛 remove transition:begin and transition:end event

* chore: 🔧 change virtualRender option to virtual
2022-08-17 23:14:15 +08:00
a09deaadd0 chore: 🔧 update x6-next version (#2416) 2022-07-25 16:06:11 +08:00
b8576ce96a chore: 🔧 release @antv/x6-next@2.0.1-beta.4 2022-07-24 20:06:09 +08:00
aafdab63ba chore: 🔧 release @antv/x6-geometry@2.0.1-beta.4 (#2414) 2022-07-24 20:00:53 +08:00
41f6b252ac chore: 🔧 update commit msg for release (#2413) 2022-07-24 19:42:09 +08:00
3700fa683b chore: 🔧 release 2.0.1-beta.4 2022-07-24 17:25:02 +08:00
f1c80a8cd7 feat: put animation in x6-common (#2411)
* feat:  put animation in x6-common

* chore: 🔧 adjust package struct
2022-07-24 17:19:29 +08:00
5a3caed2a4 chore: 🔧 update package version (#2304)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-07-03 07:47:15 +08:00
a6a2d12b07 fix: 🐛 add timeout for schedule (#2303)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-07-03 07:32:47 +08:00
ee7ae2fca9 refactor: ♻️ separate the x6-next and x6-core (#2299)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-07-02 11:07:36 +08:00
425a540f23 refactor: ♻️ add teleport for vue shape (#2272) 2022-06-28 16:18:24 +08:00
7617efbe40 refactor: ♻️ refactor x6 react shape (#2262) 2022-06-23 19:16:56 +08:00
55d36e4680 feat: add panning and mousewheel module (#2243) 2022-06-20 10:50:50 +08:00
0aced58056 perf: ️ optimize breakText for a high performance version (#2242) 2022-06-19 09:40:53 +08:00
9496d1a720 feat: add view sorting and display feature (#2206) 2022-06-10 19:20:21 +08:00
fcba5e1480 feat: add virtual render feature (#2198) 2022-06-08 21:20:48 +08:00
1436586f85 perf: ️ repalce getTransformToElement and getBBox to improve performance (#2177) 2022-06-02 16:38:08 +08:00
825190ee82 chore: 🔧 update node versio for workflow (#2179) 2022-06-02 16:36:07 +08:00
c42c1b21f3 refactor: ♻️ remove functions related to string markup (#2118) 2022-05-18 13:04:19 +08:00
7a96008010 reactor: remove unnecessary api or options (#2106)
* refactor: ♻️ remove connection strategy options

* refactor: ♻️ change getClientMatrix to getLocalMatrix

* refactor: ♻️ remove delay attrs mechanism
2022-05-13 14:33:43 +08:00
237869f496 refactor: ♻️ remove toolsMarkup options (#2099) 2022-05-11 09:35:35 +08:00
7a9f0908d7 chore: 🔧 delete browserslist config (#2088) 2022-05-07 10:24:05 +08:00
5ae7271a25 perf: ️ check whether label existed in port (#2063) 2022-04-26 22:16:44 +08:00
d16066a734 chore: 🔧 build x6-vector when bootstrap to fix test error (#2053) 2022-04-25 11:19:43 +08:00
c32fdfd7f8 feat: add priority scheduling for async jobs (#2052)
* refactor: ♻️ expose renderer interface in x6-core

* feat:  add renderview job to sync queue

* feat:  add priority scheduling for async jobs
2022-04-25 09:50:04 +08:00
57a50a9dec feat: add scheduler for render nodes to improve performance (#2044)
* refactor: ♻️ expose renderer interface in x6-core

* feat:  add renderview job to sync queue

* chore: 🔧 include css type in karma config
2022-04-23 08:45:34 +08:00
23fcea2e8a refactor: ♻️ expose renderer interface in x6-core (#2021)
* refactor: ♻️ expose renderer interface in x6-core

* chore: 🔧 amend build-dev script
2022-04-19 10:26:29 +08:00
c68140504b feat: sync code from master (#2004)
* fix(x6-vue-shape): 🐛 error on removing fragment node (#1974)

* fix: 🐛 fix scroller resize size miscalculation when graph resize (#1977)

Co-authored-by: mrmengj <mrmengj@gmail.como>

* fix: 🐛 change copystyle not include number propery when toSvg (#1985)

* docs: 📚️ optimize tooltip tools (#1988)

* docs: 📚️ update doc api (#1991)

Co-authored-by: DanielLeefu <you@2228429150@qq.com>

* fix: 🐛 fix animationOptions type (#1989)

* fix: 🐛 update dnd widget zIndex

* fix: 🐛 fix animateOptions type

* fix: 🐛 sync from master

* fix: 🐛 annotate a error test cases

Co-authored-by: sallen450 <qinghua10199@gmail.com>
Co-authored-by: MrMengJ <2646973632@qq.com>
Co-authored-by: mrmengj <mrmengj@gmail.como>
Co-authored-by: 九思 <2228429150@qq.com>
Co-authored-by: DanielLeefu <you@2228429150@qq.com>
2022-04-12 16:47:08 +08:00
ca48de2d7e refactor: ♻️ split graph and mvc module (#2000) 2022-04-12 15:23:05 +08:00
690718c18e chore: 🔧 adjusting the directory structure (#1992) 2022-04-11 09:39:42 +08:00
aee3666da2 feat: add version.ts (#1981)
* feat:  add version.ts

* fix: 🐛 export tools from x6-core
2022-04-07 15:59:20 +08:00
38c6fd6992 feat: remove jquery deps in x6-core (#1971)
* feat:  remove jquery deps in x6-core

* fix: 🐛 prevents malicious properties
2022-04-04 22:03:02 +08:00
d1eb01c491 feat: add dom data methods (#1969) 2022-04-02 20:04:43 +08:00
023b81301e chore: 🔧 replace import type to import (#1963) 2022-04-01 23:07:52 +08:00
e8fbcd83fd feat: add css method for dom (#1959) 2022-04-01 14:14:13 +08:00
10ab981274 chore: 🔧 add importsNotUsedAsValues tsconfig (#1955)
* chore: 🔧 add importsNotUsedAsValues tsconfig

* chore: 🔧 add utility-types deps
2022-03-31 21:00:51 +08:00
d7cfb6af19 feat: init x6-core repo (#1954) 2022-03-31 09:37:57 +08:00
5ba9b1d2dc chore: 🔧 unnamespace the types (#1950) 2022-03-29 23:11:25 +08:00
075db14981 feat: add config module for x6-next (#1945)
* docs: 📚️ add alt for img in readme

* feat:  add configs module for x6-next
2022-03-27 21:26:19 +08:00
5913369bc5 feat: init x6-next repo (#1943) 2022-03-26 21:30:37 +08:00
445eaf3475 chore: 🔧 migrate registry to common (#1941) 2022-03-26 21:00:14 +08:00
f07a2eb386 chore: 🔧 only include src in tsconfig (#1934) 2022-03-25 14:44:30 +08:00
c1d0fc188e feat: add events module in common (#1932) 2022-03-25 11:44:01 +08:00
68c143babf feat: add dom event to replace jquery event (#1929) 2022-03-24 19:01:45 +08:00
df11dfbce2 refactor: remove the dependence between common and geometry (#1925)
* refactor: ♻️ remove the dependence between common and geometry

* fix: 🐛 export util methods
2022-03-23 19:47:02 +08:00
223cb4330f chore: 🔧 update the directory of test case (#1914) 2022-03-21 23:02:22 +08:00
9e19ab98b6 docs: add security policy (#1911)
* fix: 🐛 change the order of statement (#1910)

* chore: update AUTHORS [skip ci]

* docs: add security policy

add security policy

Co-authored-by: x6-bot[bot] <71382382+x6-bot[bot]@users.noreply.github.com>
2022-03-21 13:55:08 +08:00
d060d3405f chore: 🔧 delete package x6-react (#1908) 2022-03-20 20:54:55 +08:00
299b0f7d3d style: 🎨 fix lint error (#1907)
* style: 🎨 fix lint error

* test: 🚨 delete some test case
2022-03-20 19:40:28 +08:00
4e8ef5f5ff style: 🎨 prettier all files 2022-03-20 15:17:46 +08:00
6415927413 docs: 📚️ update readme and contributing 2022-03-18 18:28:55 +08:00
3732 changed files with 229959 additions and 286190 deletions

8
.changeset/README.md Normal file
View File

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

11
.changeset/config.json Normal file
View File

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

View File

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

155
.eslintrc
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,3 @@
# 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:
@ -13,12 +8,12 @@ jobs:
cmd:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
- uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/label-commands@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
CONFIG_FILE: .github/workflows/config/label-commands.yml

View File

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

View File

@ -1,6 +1,3 @@
# 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:
@ -11,13 +8,13 @@ jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
- uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: wow-actions/needs-more-info@v1
with:
GITHUB_TOKEN: ${{ env.bot_token }}
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
CONFIG_FILE: .github/workflows/config/needs-more-info.yml

View File

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

View File

@ -1,6 +1,3 @@
# 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:
@ -9,13 +6,13 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v1
- uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: TimonVS/pr-labeler-action@v3
with:
configuration-path: .github/workflows/config/pr-label-branch-name.yml
env:
GITHUB_TOKEN: ${{ env.bot_token }}
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}

View File

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

View File

@ -1,18 +1,15 @@
# 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@v3
- uses: wow-actions/use-app-token@v1
- uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token
- uses: pascalgn/size-label-action@v0.4.3
env:
GITHUB_TOKEN: ${{ env.bot_token }}
IGNORED: "!.gitignore\nyarn.lock"
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
IGNORED: "!.gitignore\nyarn.lock\npnpm-lock.yaml"

View File

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

View File

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

View File

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

24
.github/workflows/publish.yml vendored Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

6
.gitignore vendored
View File

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

17
.gitlab-ci.yml Normal file
View File

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

4
.husky/commit-msg Executable file
View File

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

4
.husky/pre-commit Executable file
View File

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

14
.husky/pre-push Executable file
View File

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

View File

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

1
.npmrc Normal file
View File

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

View File

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

View File

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

51
.releaserc Normal file
View File

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

View File

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

View File

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

88
AUTHORS
View File

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

View File

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

View File

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

View File

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

149
CONTRIBUTORS Normal file
View File

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

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 15 MiB

After

Width:  |  Height:  |  Size: 23 MiB

View File

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

View File

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

204
README.md
View File

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

18
SECURITY.md Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +0,0 @@
echo

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,86 +0,0 @@
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-14)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-08)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-08)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-07)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-05)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-03)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-11-01)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-22)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-19)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-12)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-12)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-08)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-02)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-02)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-01)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-01)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-01)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-10-01)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-09-30)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-09-22)
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/stylelint-config@1.0.0...@antv/stylelint-config@1.0.1) (2021-09-13)
# @antv/stylelint-config 1.0.0 (2021-06-17)
### Bug Fixes
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ sharing stylelint configurations ([5061c5d](https://github.com/antvis/x6/commit/5061c5ddf875f43578e8f0f81801151f80c51ee9))
# @antv/stylelint-config 1.0.0 (2021-06-16)
### Bug Fixes
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([056b862](https://github.com/antvis/x6/commit/056b862b4efe7dbdc559cac7194c2453996acc07))
### Features
* ✨ sharing stylelint configurations ([5061c5d](https://github.com/antvis/x6/commit/5061c5ddf875f43578e8f0f81801151f80c51ee9))
# @antv/stylelint-config 1.0.0 (2021-06-15)
### Features
* ✨ sharing stylelint configurations ([5061c5d](https://github.com/antvis/x6/commit/5061c5ddf875f43578e8f0f81801151f80c51ee9))
# @antv/stylelint-config 1.0.0 (2021-06-15)
### Features
* ✨ sharing stylelint configurations ([5061c5d](https://github.com/antvis/x6/commit/5061c5ddf875f43578e8f0f81801151f80c51ee9))
# @antv/stylelint-config 1.0.0 (2021-06-11)
### Features
* ✨ sharing stylelint configurations ([5061c5d](https://github.com/antvis/x6/commit/5061c5ddf875f43578e8f0f81801151f80c51ee9))

View File

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

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