Compare commits
51 Commits
@antv/x6@2
...
@antv/x6-c
Author | SHA1 | Date | |
---|---|---|---|
cb0cfdeb4d | |||
bdba8cef5c | |||
6c4244c747 | |||
e6a1a71932 | |||
7d64596767 | |||
54725040f2 | |||
a2a2e657e9 | |||
593416d8d9 | |||
96fc0d79cb | |||
85aa3c82ca | |||
f20127af55 | |||
f275d3df1e | |||
3a1f34ecfd | |||
279caf5173 | |||
2dcf5d2461 | |||
d83837d85a | |||
41a64aa1d8 | |||
d4df46ab40 | |||
f448f72417 | |||
557d2df152 | |||
5edd9ba5f2 | |||
bfd1103fd4 | |||
75f42978cb | |||
2ecc213094 | |||
16c19e0591 | |||
02d95cfeea | |||
602fcfa0ed | |||
4be1397374 | |||
e326d8beb9 | |||
d6ae5199c0 | |||
97e758fee6 | |||
fabd9d5ed9 | |||
08a38bfabd | |||
a6055a2b89 | |||
083948a040 | |||
bc261fb992 | |||
33a2ba2c04 | |||
40d26f87c2 | |||
f901d2c149 | |||
da99354379 | |||
28111565fa | |||
85308db9a0 | |||
b58ced43f6 | |||
9b6c5420aa | |||
6fc0344552 | |||
86fed91719 | |||
2ceee7d067 | |||
a4a1b37413 | |||
14acda8f4b | |||
8af0f1c676 | |||
58853d9ac2 |
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -44,8 +44,8 @@ jobs:
|
||||
- name: 🚧 Install dependencies
|
||||
run: pnpm install --no-frozen-lockfile --ignore-scripts
|
||||
|
||||
- name: 📦 build
|
||||
run: pnpm run build
|
||||
# - name: 📦 build
|
||||
# run: pnpm run build
|
||||
|
||||
# - name: ✅ Test
|
||||
# run: pnpm run test
|
||||
@ -57,15 +57,15 @@ jobs:
|
||||
private_key: ${{ secrets.PRIVATE_KEY }}
|
||||
|
||||
- name: 📦 Semantic Release
|
||||
run: pnpm srm --debug --comment-footer 'Thanks for being a part of the [AntV](https://github.com/antvis) community! 💪💯'
|
||||
run: pnpm srm --debug --combine-commits --comment-footer 'Thanks for being a part of the [AntV](https://github.com/antvis) community! 💪💯'
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
|
||||
GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}
|
||||
GIT_AUTHOR_EMAIL: ${{ env.BOT_NAME }}@users.noreply.github.com
|
||||
GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}
|
||||
GIT_COMMITTER_EMAIL: ${{ env.BOT_NAME }}@users.noreply.github.com
|
||||
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'
|
||||
|
@ -11,22 +11,17 @@
|
||||
[
|
||||
"@semantic-release/commit-analyzer",
|
||||
{
|
||||
"preset": "angular",
|
||||
"parserOpts": {
|
||||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
|
||||
},
|
||||
"releaseRules": [
|
||||
{ "breaking": true, "release": "major" },
|
||||
{ "revert": true, "release": "patch" },
|
||||
{ "type": "feat", "release": "minor" },
|
||||
{ "type": "ci", "release": "patch" },
|
||||
{ "type": "build", "release": "patch" },
|
||||
{ "type": "chore", "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 }
|
||||
]
|
||||
}
|
||||
|
@ -82,6 +82,7 @@ zdc1111 <39116292+zdc1111@users.noreply.github.com>
|
||||
崖 <bubkoo.wy@gmail.com>
|
||||
崖崖崖 <bubkoo.wy@gmail.com>
|
||||
文瑀 <wenyu.jqq@antfin.com>
|
||||
映月 <38279397+orientMoon@users.noreply.github.com>
|
||||
杨凌 <89915256@qq.com>
|
||||
柏愚 <boyu.zlj@antfin.com>
|
||||
粑粑超 <842486229@qq.com>
|
||||
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 10 MiB After Width: | Height: | Size: 11 MiB |
94
examples/x6-example-features/CHANGELOG.md
Normal file
94
examples/x6-example-features/CHANGELOG.md
Normal file
@ -0,0 +1,94 @@
|
||||
# @antv/x6-example-features [2.0.0](https://github.com/antvis/X6/compare/@antv/x6-example-features@1.1.2...@antv/x6-example-features@2.0.0) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](https://github.com/antvis/X6/commit/5e102a39c5bd14a478edd4f36c4264997027c2a9))
|
||||
* 🐛 add timeout for schedule ([#2303](https://github.com/antvis/X6/issues/2303)) ([a6a2d12](https://github.com/antvis/X6/commit/a6a2d12b07add27ef19eebbf7b5ca7cd17dde09e))
|
||||
* 🐛 break text with chinese characters(double byte character) ([14199bc](https://github.com/antvis/X6/commit/14199bc8529adddb347ef934926503a789b64980)), closes [#596](https://github.com/antvis/X6/issues/596)
|
||||
* 🐛 change jobqueue to transient ([0e39d94](https://github.com/antvis/X6/commit/0e39d9447bc8c0ba0b11c272bf9b64df9ba95a33))
|
||||
* 🐛 do not generate new commands on redoing/undoing ([5b3d713](https://github.com/antvis/X6/commit/5b3d7133f3a7b4841f461e67af5963ec84820741)), closes [#627](https://github.com/antvis/X6/issues/627)
|
||||
* 🐛 do not update pagesize automatically when set graph size ([949a42d](https://github.com/antvis/X6/commit/949a42dacfc5023d25bcabc0a3a1a7d8578f1b96)), closes [#644](https://github.com/antvis/X6/issues/644) [#564](https://github.com/antvis/X6/issues/564)
|
||||
* 🐛 fix add tools not work ([f5d1d6a](https://github.com/antvis/X6/commit/f5d1d6a326021247ee8967675fc9490ddbb6d0aa))
|
||||
* 🐛 fix model event trigger twice ([#789](https://github.com/antvis/X6/issues/789)) ([7638143](https://github.com/antvis/X6/commit/7638143b04c0a50a333200423753f6bd19a6ceb3))
|
||||
* 🐛 fix running error of x6-example-demo ([#1111](https://github.com/antvis/X6/issues/1111)) ([d5c854f](https://github.com/antvis/X6/commit/d5c854f644e4926dba2913a216870bdbaafd425a))
|
||||
* 🐛 fix the error in selected nodes position when snapline enabled ([#2797](https://github.com/antvis/X6/issues/2797)) ([1e7f132](https://github.com/antvis/X6/commit/1e7f132bed15006cc5535f1294f0b8a545dd6441))
|
||||
* 🐛 fix type error ([30ca7a9](https://github.com/antvis/X6/commit/30ca7a92817d28e58589413e36d3d2931360b8ae))
|
||||
* 🐛 fix x6-react-components version in demo ([709cdae](https://github.com/antvis/X6/commit/709cdae33d13acfd77af11e8bb5fb4f493dd5bd5))
|
||||
* 🐛 interact with input rendered in react component ([82478b1](https://github.com/antvis/X6/commit/82478b1d66e3b8b4346dab9041cb00e54fea9be1))
|
||||
* 🐛 linear gradient along edge path ([669fc5b](https://github.com/antvis/X6/commit/669fc5bd2d57635ce9d45dc0470674dad74f4add)), closes [#635](https://github.com/antvis/X6/issues/635)
|
||||
* 🐛 liner gradient not available on horizontal and vertical edges ([333689a](https://github.com/antvis/X6/commit/333689a880a30dbc0879705b7f655cec8d30f1df)), closes [#635](https://github.com/antvis/X6/issues/635)
|
||||
* 🐛 optimize cell remove method ([391fe8f](https://github.com/antvis/X6/commit/391fe8fd88f10d936c5860f465c7a423632f30f9))
|
||||
* 🐛 optimize contextmenu tools ([#1391](https://github.com/antvis/X6/issues/1391)) ([cc01fdf](https://github.com/antvis/X6/commit/cc01fdf208f4fbd283a6ce3d7a106716e8e10300))
|
||||
* 🐛 set the async of minimapGraph to be the same as sourceGraph ([9dded68](https://github.com/antvis/X6/commit/9dded6853d66b86e7bbeb738b2df15b51d1a8627))
|
||||
* 🐛 should render vertices tool with lowest z-index ([213a01f](https://github.com/antvis/X6/commit/213a01fca28b1e790ce58d228aa460ea798bb98f)), closes [#638](https://github.com/antvis/X6/issues/638)
|
||||
* 🐛 update x6-react-shape version ([#1425](https://github.com/antvis/X6/issues/1425)) ([4208846](https://github.com/antvis/X6/commit/4208846337326d8983f1662faa8da67efd8568b4))
|
||||
* fix contextmenu show multiple times ([5d437ce](https://github.com/antvis/X6/commit/5d437cef07427bf9f2cbae9b2e08dd4a6544ff70))
|
||||
* fix demo import path error ([2ebf581](https://github.com/antvis/X6/commit/2ebf581dc1ec9c5ee4501917a7cbddbbb4b69c0f))
|
||||
* fix path error in custom router demo ([#620](https://github.com/antvis/X6/issues/620)) ([7cd3a7e](https://github.com/antvis/X6/commit/7cd3a7e57d772481ad33949ee832a36aab59ef3a))
|
||||
* refactor example ([#2831](https://github.com/antvis/X6/issues/2831)) ([3d8f005](https://github.com/antvis/X6/commit/3d8f005696021f1d9f91a96812ebadce179f2d73))
|
||||
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/X6/issues/2830)) ([5b5f5aa](https://github.com/antvis/X6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
|
||||
* update dependencies and fix type errors ([#1103](https://github.com/antvis/X6/issues/1103)) ([49d4371](https://github.com/antvis/X6/commit/49d43716ada672e609e4e6d9c6fdca3f494b6f68))
|
||||
* **wip:** 🐛 click event of contextmenu was not triggered ([2c9363e](https://github.com/antvis/X6/commit/2c9363e46904979901d4b467995d289c094d329a))
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* release beta ([b5f3cfa](https://github.com/antvis/X6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
|
||||
|
||||
|
||||
### Documentation
|
||||
|
||||
* refresh changelogs ([44f89a1](https://github.com/antvis/X6/commit/44f89a1e1a85513a9bf548be87be38e3cdc82574))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* ✨ add `primer` and `useForeignObject` option for react-shape ([ab6a06f](https://github.com/antvis/X6/commit/ab6a06f1fe70b71ae31acc47b0d9cb02c86097e2))
|
||||
* ✨ add autoResize feature ([5aeae97](https://github.com/antvis/X6/commit/5aeae976cd7638b2b5c05bc12bc56b562366fe5f))
|
||||
* ✨ add clipboard plugin ([8107f6d](https://github.com/antvis/X6/commit/8107f6df5de52a33e1b8094a44d59ee7fd2a8042))
|
||||
* ✨ add dnd plugin ([269fae9](https://github.com/antvis/X6/commit/269fae9e5eeb969c6a7884373aa3a32002c064e6))
|
||||
* ✨ add history plugin ([#2819](https://github.com/antvis/X6/issues/2819)) ([fd8d384](https://github.com/antvis/X6/commit/fd8d384a29d0f2e02bf066efd19ed3f92614c524))
|
||||
* ✨ add html shape ([8d75504](https://github.com/antvis/X6/commit/8d7550413f9f6f3177eab9d0f7fef14c55949fb8))
|
||||
* ✨ add keyboard plugin ([#2665](https://github.com/antvis/X6/issues/2665)) ([bf53677](https://github.com/antvis/X6/commit/bf536778ca7ee3229390dfcfcb085ec55edd9fb2))
|
||||
* ✨ add library for manipulating and animating SVG ([c07a177](https://github.com/antvis/X6/commit/c07a17785fc99372baaa66ea2525acf1d332fa11))
|
||||
* ✨ add minimap plugin ([6cdecbb](https://github.com/antvis/X6/commit/6cdecbbba9a4db1f67189e23fb89f2a7ba2af99e))
|
||||
* ✨ add panning and mousewheel module ([#2243](https://github.com/antvis/X6/issues/2243)) ([55d36e4](https://github.com/antvis/X6/commit/55d36e46808a4c79b086d7798bce396d5211a1dc))
|
||||
* ✨ add scroller api ([12173bf](https://github.com/antvis/X6/commit/12173bf500624f197ed56cf6a797499587178cba))
|
||||
* ✨ add selection plugin ([#2742](https://github.com/antvis/X6/issues/2742)) ([50a5dc7](https://github.com/antvis/X6/commit/50a5dc7cd8c2e39a1f8bf8359a0eb189dda8cb86))
|
||||
* ✨ add snapline plugin ([294672b](https://github.com/antvis/X6/commit/294672b3066b15ab834ce2a3172facc49004c950))
|
||||
* ✨ add some missing api ([1dcb3d9](https://github.com/antvis/X6/commit/1dcb3d92fd83e5dfd1a1af9670d539a99dd9f55a))
|
||||
* ✨ add stencil plugin ([#2815](https://github.com/antvis/X6/issues/2815)) ([4e1fb7b](https://github.com/antvis/X6/commit/4e1fb7bef8ff5548edf2529eb27be0a66a600996))
|
||||
* ✨ add transform plugin ([#2818](https://github.com/antvis/X6/issues/2818)) ([660e2d7](https://github.com/antvis/X6/commit/660e2d7689bfa59a0f4a4a5e3c0ace70dec21e9e))
|
||||
* ✨ add virtual render feature ([#2198](https://github.com/antvis/X6/issues/2198)) ([fcba5e1](https://github.com/antvis/X6/commit/fcba5e14808d44c80b658c090cc2a4ebcdc64f6d))
|
||||
* ✨ add xmind demo ([adb2c98](https://github.com/antvis/X6/commit/adb2c98e23e93b7084fd20f05801f2595d4ac990))
|
||||
* ✨ auto resize graph when container resized ([9c7bc9a](https://github.com/antvis/X6/commit/9c7bc9a4bb210451283663cd99a29bd6c79e2ec4)), closes [#531](https://github.com/antvis/X6/issues/531)
|
||||
* ✨ export common and geometry in x6 package ([#2820](https://github.com/antvis/X6/issues/2820)) ([df28200](https://github.com/antvis/X6/commit/df282000cc5e17521147c77c210e172c444c9938))
|
||||
* ✨ expose the selection api ([#2756](https://github.com/antvis/X6/issues/2756)) ([f3edbbc](https://github.com/antvis/X6/commit/f3edbbc95d2038a61116fa71bb0c3016f1c92d5e))
|
||||
* ✨ improve auto-resize feature ([40d5335](https://github.com/antvis/X6/commit/40d53355cedc0bbbeb1e26948b67254dc6a40d85))
|
||||
* ✨ random path demo ([38ec683](https://github.com/antvis/X6/commit/38ec683673e2da64296521f23a91f951a442adc0))
|
||||
* ✨ support inherit options for react-shape registry ([#2596](https://github.com/antvis/X6/issues/2596)) ([ad63046](https://github.com/antvis/X6/commit/ad63046e89fa5853b0cf15947af1ed2a7b625188))
|
||||
* ✨ support panning scroller graph byrightmousedown ([6ffdb50](https://github.com/antvis/X6/commit/6ffdb5004401b30ff5852a08de9286a934780be3))
|
||||
* add scroller plugin ([#2580](https://github.com/antvis/X6/issues/2580)) ([5e0e2ac](https://github.com/antvis/X6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/X6/issues/2864)) ([774f547](https://github.com/antvis/X6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
||||
* force release 2.0-beta ([6987d9c](https://github.com/antvis/X6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
|
||||
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/X6/issues/2559)) ([ecfd426](https://github.com/antvis/X6/commit/ecfd4263b1266a128bf8651c4dd745ff8ab038b3))
|
||||
* sync code from master ([#2004](https://github.com/antvis/X6/issues/2004)) ([c681405](https://github.com/antvis/X6/commit/c68140504bd21f654870f3d2fc1ad2f16f1113c8)), 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)
|
||||
* upgrade react to 18 in react-components ([#2836](https://github.com/antvis/X6/issues/2836)) ([5138562](https://github.com/antvis/X6/commit/5138562515ddbd3975adc9d93514f21d6fc2bb3e))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* ⚡️ add getMatrixByElementAttr and getBBoxByElementAttr to reduce reflow ([ba5b22a](https://github.com/antvis/X6/commit/ba5b22a33a0af067d77735c5cc46a60a45734dca))
|
||||
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/X6/issues/1449)) ([0b5f241](https://github.com/antvis/X6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
|
||||
* ⚡️ check whether label existed in port ([#2063](https://github.com/antvis/X6/issues/2063)) ([5ae7271](https://github.com/antvis/X6/commit/5ae7271a25e804a9321aa80e31dcf6e43144728b))
|
||||
* ⚡️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/X6/issues/2242)) ([0aced58](https://github.com/antvis/X6/commit/0aced58056d908ec092bca1889b5ef367a94fe68))
|
||||
* ⚡️ optimize node render performance ([6554959](https://github.com/antvis/X6/commit/65549599d2f82f8052d16776c8d36ce7ee2fba9b))
|
||||
* ⚡️ repalce getTransformToElement and getBBox to improve performance ([#2177](https://github.com/antvis/X6/issues/2177)) ([1436586](https://github.com/antvis/X6/commit/1436586f85cc2e2f6ec71548f6d6c232be793154))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* dump to 2.0
|
||||
* force release 2.0-beta
|
||||
* 2.0-beta
|
32
package.json
32
package.json
@ -92,36 +92,36 @@
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/plugin-syntax-flow": "^7.18.6",
|
||||
"@babel/plugin-transform-react-jsx": "^7.19.0",
|
||||
"@commitlint/config-conventional": "^17.2.0",
|
||||
"@commitlint/config-conventional": "^17.3.0",
|
||||
"@rollup/plugin-commonjs": "^23.0.2",
|
||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||
"@rollup/plugin-replace": "^5.0.1",
|
||||
"@rollup/plugin-typescript": "^8.2.5",
|
||||
"@semantic-release-monorepo/cli": "^2.0.0",
|
||||
"@semantic-release-monorepo/cli": "^2.1.0",
|
||||
"@semantic-release/changelog": "^6.0.1",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@types/jasmine": "^4.3.0",
|
||||
"@types/jest": "^29.2.2",
|
||||
"@types/jest": "^29.2.3",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/sinon": "^10.0.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
||||
"@typescript-eslint/parser": "^5.42.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
||||
"@typescript-eslint/parser": "^5.44.0",
|
||||
"boxen": "^7.0.0",
|
||||
"colors": "^1.4.0",
|
||||
"coveralls": "^3.1.1",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||
"eslint-plugin-flowtype": "^8.0.3",
|
||||
"eslint-plugin-import": "^2.24.2",
|
||||
"eslint-plugin-jest": "^27.1.4",
|
||||
"eslint-plugin-jest": "^27.1.6",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-react": "^7.25.1",
|
||||
"eslint-plugin-react": "^7.31.11",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-unicorn": "^44.0.2",
|
||||
"eslint-plugin-unicorn": "^45.0.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"husky": "^8.0.1",
|
||||
"is-ci": "^3.0.0",
|
||||
@ -137,21 +137,21 @@
|
||||
"less": "^4.1.1",
|
||||
"lodash": "^4.17.21",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.3.6",
|
||||
"prettier": "^2.4.0",
|
||||
"postcss": "^8.4.19",
|
||||
"prettier": "^2.8.0",
|
||||
"pretty-quick": "^3.1.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^3.2.5",
|
||||
"rollup": "^3.4.0",
|
||||
"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",
|
||||
"run-shared-scripts": "^1.0.2",
|
||||
"run-shared-scripts": "^1.1.4",
|
||||
"semantic-release": "^19.0.5",
|
||||
"sinon": "^14.0.1",
|
||||
"stylelint": "^14.14.1",
|
||||
"stylelint-config-prettier": "^9.0.3",
|
||||
"stylelint": "^14.15.0",
|
||||
"stylelint-config-prettier": "^9.0.4",
|
||||
"stylelint-config-rational-order": "^0.1.2",
|
||||
"stylelint-config-standard": "^29.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^2.4.0",
|
||||
@ -160,6 +160,6 @@
|
||||
"ts-node": "^10.2.1",
|
||||
"tslib": "^2.4.1",
|
||||
"turbo": "^1.6.3",
|
||||
"typescript": "^4.4.3"
|
||||
"typescript": "^4.9.3"
|
||||
}
|
||||
}
|
||||
|
1
packages/x6-common/CHANGELOG.md
Normal file
1
packages/x6-common/CHANGELOG.md
Normal file
@ -0,0 +1 @@
|
||||
## @antv/x6-common [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-common@2.0.0...@antv/x6-common@2.0.1) (2022-11-24)
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-common",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.3",
|
||||
"description": "Basic toolkit for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "vectorse@126.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
@ -33,7 +33,7 @@ export function addClass(
|
||||
}
|
||||
|
||||
if (typeof selector === 'string' && elem.nodeType === 1) {
|
||||
const classes = selector.match(rnotwhite) || []
|
||||
const classes: string[] = selector.match(rnotwhite) || []
|
||||
const oldValue = fillSpaces(getClass(elem)).replace(rclass, ' ')
|
||||
let newValue = classes.reduce((memo, cls) => {
|
||||
if (memo.indexOf(fillSpaces(cls)) < 0) {
|
||||
@ -63,7 +63,7 @@ export function removeClass(
|
||||
}
|
||||
|
||||
if ((!selector || typeof selector === 'string') && elem.nodeType === 1) {
|
||||
const classes = (selector || '').match(rnotwhite) || []
|
||||
const classes: string[] = (selector || '').match(rnotwhite) || []
|
||||
const oldValue = fillSpaces(getClass(elem)).replace(rclass, ' ')
|
||||
let newValue = classes.reduce((memo, cls) => {
|
||||
const className = fillSpaces(cls)
|
||||
|
@ -1 +1,3 @@
|
||||
## @antv/x6-geometry [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-geometry@2.0.1...@antv/x6-geometry@2.0.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-geometry [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-geometry@2.0.0...@antv/x6-geometry@2.0.1) (2022-11-24)
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"name": "@antv/x6-geometry",
|
||||
"description": "Geometry operations for X6",
|
||||
"main": "lib/index.js",
|
||||
@ -41,7 +41,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
8
packages/x6-plugin-clipboard/CHANGELOG.md
Normal file
8
packages/x6-plugin-clipboard/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
## @antv/x6-plugin-clipboard [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-clipboard@2.1.0...@antv/x6-plugin-clipboard@2.1.1) (2022-11-25)
|
||||
|
||||
# @antv/x6-plugin-clipboard [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-clipboard@2.0.0...@antv/x6-plugin-clipboard@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-clipboard",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.3",
|
||||
"description": "clipboard plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -47,7 +47,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/clipboard",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
8
packages/x6-plugin-dnd/CHANGELOG.md
Normal file
8
packages/x6-plugin-dnd/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
## @antv/x6-plugin-dnd [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-dnd@2.0.1...@antv/x6-plugin-dnd@2.0.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-dnd [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-dnd@2.0.0...@antv/x6-plugin-dnd@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* export snap methods from snapline ([#2904](https://github.com/antvis/x6/issues/2904)) ([826ccdd](https://github.com/antvis/x6/commit/826ccdd9a033486ad5b90d666340e46f6c266af7))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-dnd",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.3",
|
||||
"description": "dnd plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/dnd",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
9
packages/x6-plugin-export/CHANGELOG.md
Normal file
9
packages/x6-plugin-export/CHANGELOG.md
Normal file
@ -0,0 +1,9 @@
|
||||
## @antv/x6-plugin-export [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-export@2.1.0...@antv/x6-plugin-export@2.1.1) (2022-11-25)
|
||||
|
||||
# @antv/x6-plugin-export [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-export@2.0.0...@antv/x6-plugin-export@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add exportSVG methods ([#2906](https://github.com/antvis/x6/issues/2906)) ([847f225](https://github.com/antvis/x6/commit/847f2256326db0589ac37f1e1fa185560b61bdb7))
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-export",
|
||||
"version": "2.0.2",
|
||||
"version": "2.1.2",
|
||||
"description": "export plugin for X6.",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -46,7 +46,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/export",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
15
packages/x6-plugin-history/CHANGELOG.md
Normal file
15
packages/x6-plugin-history/CHANGELOG.md
Normal file
@ -0,0 +1,15 @@
|
||||
## @antv/x6-plugin-history [2.1.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@2.1.1...@antv/x6-plugin-history@2.1.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-history [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@2.1.0...@antv/x6-plugin-history@2.1.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* deep clone instead of shallow clone ([#2924](https://github.com/antvis/x6/issues/2924)) ([75f4297](https://github.com/antvis/x6/commit/75f42978cb0ed4c9e7c7ac141ffa29603cb27596))
|
||||
|
||||
# @antv/x6-plugin-history [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@2.0.0...@antv/x6-plugin-history@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-history",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.3",
|
||||
"description": "history plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -47,7 +47,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/history",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
@ -366,7 +366,7 @@ export class History
|
||||
if (data.prev == null) {
|
||||
data.prev = {}
|
||||
}
|
||||
data.prev[key] = ObjectExt.clone(cell.previous(key))
|
||||
data.prev[key] = ObjectExt.cloneDeep(cell.previous(key))
|
||||
|
||||
if (isModelChange) {
|
||||
cmd.modelChange = true
|
||||
@ -378,7 +378,7 @@ export class History
|
||||
if (data.next == null) {
|
||||
data.next = {}
|
||||
}
|
||||
data.next[key] = ObjectExt.clone(cell.prop(key))
|
||||
data.next[key] = ObjectExt.cloneDeep(cell.prop(key))
|
||||
return this.push(cmd, options)
|
||||
}
|
||||
|
||||
|
15
packages/x6-plugin-keyboard/CHANGELOG.md
Normal file
15
packages/x6-plugin-keyboard/CHANGELOG.md
Normal file
@ -0,0 +1,15 @@
|
||||
## @antv/x6-plugin-keyboard [2.1.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@2.1.1...@antv/x6-plugin-keyboard@2.1.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-keyboard [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@2.1.0...@antv/x6-plugin-keyboard@2.1.1) (2022-11-25)
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* update deps ([f20127a](https://github.com/antvis/x6/commit/f20127af555d9b7beaac3a07ac308d5c0d4e53a3))
|
||||
|
||||
# @antv/x6-plugin-keyboard [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@2.0.0...@antv/x6-plugin-keyboard@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-keyboard",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.3",
|
||||
"description": "keyboard plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -44,14 +44,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antv/x6": "^2.x",
|
||||
"@types/mousetrap": "^1.6.5"
|
||||
"@types/mousetrap": "^1.6.11"
|
||||
},
|
||||
"author": {
|
||||
"name": "bubkoo",
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/keyboard",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
8
packages/x6-plugin-minimap/CHANGELOG.md
Normal file
8
packages/x6-plugin-minimap/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
## @antv/x6-plugin-minimap [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-minimap@2.0.1...@antv/x6-plugin-minimap@2.0.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-minimap [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-minimap@2.0.0...@antv/x6-plugin-minimap@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-minimap",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"description": "minimap plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/minimap",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
9
packages/x6-plugin-scroller/CHANGELOG.md
Normal file
9
packages/x6-plugin-scroller/CHANGELOG.md
Normal file
@ -0,0 +1,9 @@
|
||||
## @antv/x6-plugin-scroller [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-scroller@2.0.1...@antv/x6-plugin-scroller@2.0.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-scroller [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-scroller@2.0.0...@antv/x6-plugin-scroller@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
||||
* resize graph when scale scroller ([#2903](https://github.com/antvis/x6/issues/2903)) ([cee4aa4](https://github.com/antvis/x6/commit/cee4aa4e53b2821ed11d5602fccdb36625957c72))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-scroller",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.3",
|
||||
"description": "scroller plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/scroller",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
27
packages/x6-plugin-selection/CHANGELOG.md
Normal file
27
packages/x6-plugin-selection/CHANGELOG.md
Normal file
@ -0,0 +1,27 @@
|
||||
## @antv/x6-plugin-selection [2.1.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@2.1.2...@antv/x6-plugin-selection@2.1.3) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-selection [2.1.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@2.1.1...@antv/x6-plugin-selection@2.1.2) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* support antd5 in react components ([#2933](https://github.com/antvis/x6/issues/2933)) ([2ecc213](https://github.com/antvis/x6/commit/2ecc213094250b476b533b444c0f3716f88b7987))
|
||||
|
||||
## @antv/x6-plugin-selection [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@2.1.0...@antv/x6-plugin-selection@2.1.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* modify the semantics of filter ([#2927](https://github.com/antvis/x6/issues/2927)) ([bc261fb](https://github.com/antvis/x6/commit/bc261fb9929aa0b4d3fa4194bcc780ea701b029e))
|
||||
|
||||
# @antv/x6-plugin-selection [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@2.0.0...@antv/x6-plugin-selection@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-selection",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.4",
|
||||
"description": "selection plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/selection",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
@ -292,17 +292,22 @@ export class SelectionImpl extends View<SelectionImpl.EventArgs> {
|
||||
|
||||
filter(cells: Cell[]) {
|
||||
const filter = this.options.filter
|
||||
if (Array.isArray(filter)) {
|
||||
return cells.filter(
|
||||
(cell) => !filter.includes(cell) && !filter.includes(cell.shape),
|
||||
)
|
||||
}
|
||||
|
||||
if (typeof filter === 'function') {
|
||||
return cells.filter((cell) => FunctionExt.call(filter, this.graph, cell))
|
||||
}
|
||||
return cells.filter((cell) => {
|
||||
if (Array.isArray(filter)) {
|
||||
return filter.some((item) => {
|
||||
if (typeof item === 'string') {
|
||||
return cell.shape === item
|
||||
}
|
||||
return cell.id === item.id
|
||||
})
|
||||
}
|
||||
if (typeof filter === 'function') {
|
||||
return FunctionExt.call(filter, this.graph, cell)
|
||||
}
|
||||
|
||||
return cells
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
||||
protected stopSelecting(evt: Dom.MouseUpEvent) {
|
||||
|
28
packages/x6-plugin-snapline/CHANGELOG.md
Normal file
28
packages/x6-plugin-snapline/CHANGELOG.md
Normal file
@ -0,0 +1,28 @@
|
||||
## @antv/x6-plugin-snapline [2.1.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@2.1.2...@antv/x6-plugin-snapline@2.1.3) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-snapline [2.1.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@2.1.1...@antv/x6-plugin-snapline@2.1.2) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* updae react-resize-detector version ([#2930](https://github.com/antvis/x6/issues/2930)) ([d6ae519](https://github.com/antvis/x6/commit/d6ae5199c00be6429a828f537b194adddd2b6aeb))
|
||||
|
||||
## @antv/x6-plugin-snapline [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@2.1.0...@antv/x6-plugin-snapline@2.1.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* modify the semantics of filter ([#2927](https://github.com/antvis/x6/issues/2927)) ([bc261fb](https://github.com/antvis/x6/commit/bc261fb9929aa0b4d3fa4194bcc780ea701b029e))
|
||||
|
||||
# @antv/x6-plugin-snapline [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@2.0.0...@antv/x6-plugin-snapline@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
||||
* export snap methods from snapline ([#2904](https://github.com/antvis/x6/issues/2904)) ([826ccdd](https://github.com/antvis/x6/commit/826ccdd9a033486ad5b90d666340e46f6c266af7))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-snapline",
|
||||
"version": "2.0.2",
|
||||
"version": "2.1.4",
|
||||
"description": "snapline plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/snapline",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
@ -18,9 +18,6 @@ import {
|
||||
export class SnaplineImpl extends View implements IDisablable {
|
||||
public readonly options: SnaplineImpl.Options
|
||||
protected readonly graph: Graph
|
||||
protected filterShapes: { [type: string]: boolean }
|
||||
protected filterCells: { [id: string]: boolean }
|
||||
protected filterFunction: SnaplineImpl.FilterFunction | null
|
||||
protected offset: Point.PointLike
|
||||
protected timer: number | null
|
||||
|
||||
@ -53,7 +50,6 @@ export class SnaplineImpl extends View implements IDisablable {
|
||||
this.options = { tolerance: 10, ...others }
|
||||
this.offset = { x: 0, y: 0 }
|
||||
this.render()
|
||||
this.parseFilter()
|
||||
if (!this.disabled) {
|
||||
this.startListening()
|
||||
}
|
||||
@ -79,7 +75,6 @@ export class SnaplineImpl extends View implements IDisablable {
|
||||
|
||||
setFilter(filter?: SnaplineImpl.Filter) {
|
||||
this.options.filter = filter
|
||||
this.parseFilter()
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@ -124,24 +119,6 @@ export class SnaplineImpl extends View implements IDisablable {
|
||||
this.undelegateDocumentEvents()
|
||||
}
|
||||
|
||||
protected parseFilter() {
|
||||
this.filterShapes = {}
|
||||
this.filterCells = {}
|
||||
this.filterFunction = null
|
||||
const filter = this.options.filter
|
||||
if (Array.isArray(filter)) {
|
||||
filter.forEach((item) => {
|
||||
if (typeof item === 'string') {
|
||||
this.filterShapes[item] = true
|
||||
} else {
|
||||
this.filterCells[item.id] = true
|
||||
}
|
||||
})
|
||||
} else if (typeof filter === 'function') {
|
||||
this.filterFunction = filter
|
||||
}
|
||||
}
|
||||
|
||||
protected onBatchStop({ name, data }: Model.EventArgs['batch:stop']) {
|
||||
if (name === 'resize') {
|
||||
this.snapOnResizing(data.cell, data as Node.ResizeOptions)
|
||||
@ -577,13 +554,27 @@ export class SnaplineImpl extends View implements IDisablable {
|
||||
return (
|
||||
targetNode.id === snapNode.id ||
|
||||
targetNode.isDescendantOf(snapNode) ||
|
||||
this.filterShapes[targetNode.shape] ||
|
||||
this.filterCells[targetNode.id] ||
|
||||
(this.filterFunction &&
|
||||
FunctionExt.call(this.filterFunction, this.graph, targetNode))
|
||||
!this.filter(targetNode)
|
||||
)
|
||||
}
|
||||
|
||||
protected filter(node: Node) {
|
||||
const filter = this.options.filter
|
||||
if (Array.isArray(filter)) {
|
||||
return filter.some((item) => {
|
||||
if (typeof item === 'string') {
|
||||
return node.shape === item
|
||||
}
|
||||
return node.id === item.id
|
||||
})
|
||||
}
|
||||
if (typeof filter === 'function') {
|
||||
return FunctionExt.call(filter, this.graph, node)
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
protected update(metadata: {
|
||||
verticalLeft?: number
|
||||
verticalTop?: number
|
||||
|
8
packages/x6-plugin-stencil/CHANGELOG.md
Normal file
8
packages/x6-plugin-stencil/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
## @antv/x6-plugin-stencil [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-stencil@2.0.1...@antv/x6-plugin-stencil@2.0.2) (2022-11-25)
|
||||
|
||||
## @antv/x6-plugin-stencil [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-stencil@2.0.0...@antv/x6-plugin-stencil@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-stencil",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.4",
|
||||
"description": "stencil plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -50,7 +50,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/stencil",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
13
packages/x6-plugin-transform/CHANGELOG.md
Normal file
13
packages/x6-plugin-transform/CHANGELOG.md
Normal file
@ -0,0 +1,13 @@
|
||||
## @antv/x6-plugin-transform [2.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@2.1.0...@antv/x6-plugin-transform@2.1.1) (2022-11-25)
|
||||
|
||||
# @antv/x6-plugin-transform [2.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@2.0.0...@antv/x6-plugin-transform@2.1.0) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing script for building style ([e683155](https://github.com/antvis/x6/commit/e68315528a202cbc5a9ad256d168943e001d7116))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* attach plugin api and events to grpah instance ([#2864](https://github.com/antvis/x6/issues/2864)) ([774f547](https://github.com/antvis/x6/commit/774f547b85522eb2411dca949d36ecfe535503f3))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-plugin-transform",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.2",
|
||||
"description": "transform plugin for X6",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/plugins/transform",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
31
packages/x6-react-components/CHANGELOG.md
Normal file
31
packages/x6-react-components/CHANGELOG.md
Normal file
@ -0,0 +1,31 @@
|
||||
## @antv/x6-react-components [2.0.4](https://github.com/antvis/x6/compare/@antv/x6-react-components@2.0.3...@antv/x6-react-components@2.0.4) (2022-11-25)
|
||||
|
||||
## @antv/x6-react-components [2.0.3](https://github.com/antvis/x6/compare/@antv/x6-react-components@2.0.2...@antv/x6-react-components@2.0.3) (2022-11-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* support antd5 in react components ([#2933](https://github.com/antvis/x6/issues/2933)) ([2ecc213](https://github.com/antvis/x6/commit/2ecc213094250b476b533b444c0f3716f88b7987))
|
||||
* update react type version ([#2937](https://github.com/antvis/x6/issues/2937)) ([d4df46a](https://github.com/antvis/x6/commit/d4df46ab40c0f2fb6e7a76fc0083d7b4710555b9))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* update deps ([f20127a](https://github.com/antvis/x6/commit/f20127af555d9b7beaac3a07ac308d5c0d4e53a3))
|
||||
|
||||
## @antv/x6-react-components [2.0.3](https://github.com/antvis/x6/compare/@antv/x6-react-components@2.0.2...@antv/x6-react-components@2.0.3) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* support antd5 in react components ([#2933](https://github.com/antvis/x6/issues/2933)) ([2ecc213](https://github.com/antvis/x6/commit/2ecc213094250b476b533b444c0f3716f88b7987))
|
||||
* update react type version ([#2937](https://github.com/antvis/x6/issues/2937)) ([d4df46a](https://github.com/antvis/x6/commit/d4df46ab40c0f2fb6e7a76fc0083d7b4710555b9))
|
||||
|
||||
## @antv/x6-react-components [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-react-components@2.0.1...@antv/x6-react-components@2.0.2) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* updae react-resize-detector version ([#2930](https://github.com/antvis/x6/issues/2930)) ([d6ae519](https://github.com/antvis/x6/commit/d6ae5199c00be6429a828f537b194adddd2b6aeb))
|
||||
|
||||
## @antv/x6-react-components [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-react-components@2.0.0...@antv/x6-react-components@2.0.1) (2022-11-24)
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-react-components",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.5",
|
||||
"description": "React components for building x6 editors",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -48,7 +48,7 @@
|
||||
"antv"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"antd": ">=4.4.2",
|
||||
"antd": ">=4.4.2 || >=5.0.0",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0"
|
||||
},
|
||||
@ -58,16 +58,16 @@
|
||||
"rc-dropdown": "^3.0.0-alpha.0",
|
||||
"rc-util": "^4.15.7",
|
||||
"react-color": "2.17.1",
|
||||
"react-resize-detector": "^6.6.4",
|
||||
"react-resize-detector": "^7.0.0",
|
||||
"ua-parser-js": "^0.7.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.0.25",
|
||||
"@types/react": "^18.0.0",
|
||||
"@types/react-color": "^3.0.1",
|
||||
"@types/react-dom": "^18.0.0",
|
||||
"@types/react-resize-detector": "^5.0.0",
|
||||
"@types/react-resize-detector": "^6.1.0",
|
||||
"@types/react-dom": "^18.0.9",
|
||||
"@types/ua-parser-js": "^0.7.33",
|
||||
"antd": "^4.4.2",
|
||||
"antd": "^5.0.0",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0"
|
||||
},
|
||||
@ -76,7 +76,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
@ -88,6 +88,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org"
|
||||
},
|
||||
"gitHead": "576fa342fa65a6867ead29f6801a30dcb31bcdb5"
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ import React from 'react'
|
||||
import classNames from 'classnames'
|
||||
import { Popover } from 'antd'
|
||||
import { PopoverProps } from 'antd/es/popover'
|
||||
import 'antd/es/popover/style/index.css'
|
||||
import addEventListener from 'rc-util/lib/Dom/addEventListener'
|
||||
import {
|
||||
SketchPicker,
|
||||
@ -104,8 +103,12 @@ export class ColorPicker extends React.Component<
|
||||
const popoverProps: PopoverProps = {}
|
||||
if (disabled) {
|
||||
popoverProps.visible = false
|
||||
// Support for antd 5.0
|
||||
popoverProps.open = false
|
||||
} else {
|
||||
popoverProps.visible = this.state.active
|
||||
// Support for antd 5.0
|
||||
popoverProps.open = this.state.active
|
||||
}
|
||||
|
||||
const colorStr =
|
||||
|
@ -2,7 +2,6 @@ import React from 'react'
|
||||
import classNames from 'classnames'
|
||||
import { Tooltip } from 'antd'
|
||||
import { TooltipProps } from 'antd/es/tooltip'
|
||||
import 'antd/es/tooltip/style/index.css'
|
||||
import { Menu } from '../menu'
|
||||
import { Dropdown } from '../dropdown'
|
||||
import { ToolbarContext } from './context'
|
||||
|
15
packages/x6-react-shape/CHANGELOG.md
Normal file
15
packages/x6-react-shape/CHANGELOG.md
Normal file
@ -0,0 +1,15 @@
|
||||
## @antv/x6-react-shape [2.0.3](https://github.com/antvis/x6/compare/@antv/x6-react-shape@2.0.2...@antv/x6-react-shape@2.0.3) (2022-11-25)
|
||||
|
||||
## @antv/x6-react-shape [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-react-shape@2.0.1...@antv/x6-react-shape@2.0.2) (2022-11-25)
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* update deps ([f20127a](https://github.com/antvis/x6/commit/f20127af555d9b7beaac3a07ac308d5c0d4e53a3))
|
||||
|
||||
## @antv/x6-react-shape [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-react-shape@2.0.0...@antv/x6-react-shape@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* optimize typo for react-shape ([#2870](https://github.com/antvis/x6/issues/2870)) ([86412e2](https://github.com/antvis/x6/commit/86412e23d242347d6ee1c9ccd63a6ccf3caf4c49))
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-react-shape",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.4",
|
||||
"description": "X6 shape for rendering react components.",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -45,7 +45,7 @@
|
||||
"devDependencies": {
|
||||
"@antv/x6": "^2.x",
|
||||
"@types/react": "^18.0.25",
|
||||
"@types/react-dom": "^18.0.0",
|
||||
"@types/react-dom": "^18.0.9",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0"
|
||||
},
|
||||
@ -54,7 +54,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/intermediate/react",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
@ -66,6 +66,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org"
|
||||
},
|
||||
"gitHead": "576fa342fa65a6867ead29f6801a30dcb31bcdb5"
|
||||
}
|
||||
}
|
||||
|
10
packages/x6-vue-shape/CHANGELOG.md
Normal file
10
packages/x6-vue-shape/CHANGELOG.md
Normal file
@ -0,0 +1,10 @@
|
||||
## @antv/x6-vue-shape [2.0.3](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@2.0.2...@antv/x6-vue-shape@2.0.3) (2022-11-25)
|
||||
|
||||
## @antv/x6-vue-shape [2.0.2](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@2.0.1...@antv/x6-vue-shape@2.0.2) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* updae react-resize-detector version ([#2930](https://github.com/antvis/x6/issues/2930)) ([d6ae519](https://github.com/antvis/x6/commit/d6ae5199c00be6429a828f537b194adddd2b6aeb))
|
||||
|
||||
## @antv/x6-vue-shape [2.0.1](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@2.0.0...@antv/x6-vue-shape@2.0.1) (2022-11-24)
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6-vue-shape",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.4",
|
||||
"description": "X6 shape for rendering vue components.",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -38,29 +38,28 @@
|
||||
"pretest": "rss"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue-demi": "^0.7.4"
|
||||
"vue-demi": "latest"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@antv/x6": "^2.x",
|
||||
"@vue/composition-api": "^1.0.0-rc.1",
|
||||
"vue": "^2.0.0 || >=3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@vue/composition-api": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@antv/x6": "^2.x",
|
||||
"@vue/composition-api": "^1.0.0-rc.6",
|
||||
"vue": "^2.6.12 || ^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antv/x6": "^2.x",
|
||||
"@vue/composition-api": "^1.0.0-rc.6",
|
||||
"vue": "^2.6.12"
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"author": {
|
||||
"name": "bubkoo",
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/intermediate/vue",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
@ -72,6 +71,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org"
|
||||
},
|
||||
"gitHead": "576fa342fa65a6867ead29f6801a30dcb31bcdb5"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,12 @@
|
||||
## @antv/x6 [2.0.3](https://github.com/antvis/x6/compare/@antv/x6@2.0.2...@antv/x6@2.0.3) (2022-11-25)
|
||||
|
||||
## @antv/x6 [2.0.2](https://github.com/antvis/x6/compare/@antv/x6@2.0.1...@antv/x6@2.0.2) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* get correct center when zoom ([#2934](https://github.com/antvis/x6/issues/2934)) ([557d2df](https://github.com/antvis/x6/commit/557d2df1529226e505e3488a43fa358191d79271))
|
||||
|
||||
## @antv/x6 [2.0.1](https://github.com/antvis/x6/compare/@antv/x6@2.0.0...@antv/x6@2.0.1) (2022-11-24)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/x6",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.5",
|
||||
"description": "JavaScript diagramming library that uses SVG and HTML for rendering",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -53,7 +53,7 @@
|
||||
"email": "bubkoo.wy@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/antvis/x6",
|
||||
"homepage": "https://x6.antv.antgroup.com/tutorial/about",
|
||||
"bugs": {
|
||||
"url": "https://github.com/antvis/x6/issues"
|
||||
},
|
||||
|
@ -114,7 +114,10 @@ export class MouseWheel extends Base {
|
||||
|
||||
if (targetScale !== currentScale) {
|
||||
if (this.widgetOptions.zoomAtMousePosition) {
|
||||
const origin = this.graph.coord.clientToLocalPoint(this.startPos)
|
||||
const hasScroller = !!this.graph.getPlugin<any>('scroller')
|
||||
const origin = hasScroller
|
||||
? this.graph.clientToLocal(this.startPos)
|
||||
: this.graph.clientToGraph(this.startPos)
|
||||
this.graph.zoom(targetScale, {
|
||||
absolute: true,
|
||||
center: origin.clone(),
|
||||
|
1816
pnpm-lock.yaml
generated
1816
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,4 @@
|
||||
packages:
|
||||
- 'packages/*'
|
||||
- 'scripts/*'
|
||||
# - 'examples/*'
|
||||
- packages/*
|
||||
# - examples/*
|
||||
# - 'sites/*'
|
||||
|
@ -37,7 +37,7 @@
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^4.2.1",
|
||||
"@stackblitz/sdk": "^1.4.0",
|
||||
"antd": "^4.4.2",
|
||||
"antd": "^5.0.0",
|
||||
"chalk": "^4.1.0",
|
||||
"codesandbox": "^2.2.1",
|
||||
"folder-hash": "^3.3.2",
|
||||
|
@ -5,7 +5,6 @@ import Icon, {
|
||||
CodeSandboxOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { Tooltip } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
// import stackblitzSdk from '@stackblitz/sdk'
|
||||
import { getParameters } from 'codesandbox/lib/api/define'
|
||||
import './index.css'
|
||||
|
@ -2,7 +2,6 @@ import React, { PropsWithChildren } from 'react'
|
||||
import { Alert } from 'antd'
|
||||
import { Helmet } from 'react-helmet'
|
||||
import { Content } from './content'
|
||||
import 'antd/es/alert/style/index.css'
|
||||
|
||||
export const Wrap: React.FC<PropsWithChildren> = ({ children }) => (
|
||||
<Alert.ErrorBoundary>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Switch, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,8 +3,8 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6-react-components": "2.0.0-beta.1",
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6-react-components": "^2.x",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Switch, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Radio, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Radio, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Radio, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Slider, Radio, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Radio, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@antv/x6": "2.0.0-beta.5",
|
||||
"@antv/x6": "^2.x",
|
||||
"@antv/x6-sites-demos-helper": "2.x",
|
||||
"antd": "^4.4.2",
|
||||
"react": "^18.0.0",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Color } from '@antv/x6'
|
||||
import { Input, Slider, Card, Row, Col } from 'antd'
|
||||
import 'antd/dist/antd.css'
|
||||
|
||||
export interface Props {
|
||||
onChange: (state: State) => void
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user