Compare commits

...

68 Commits

Author SHA1 Message Date
ac7d16370c chore(release): @antv/x6-plugin-transform@1.0.3 [skip ci] 2022-11-05 07:58:19 +00:00
e3c0452acc chore(release): @antv/x6-plugin-stencil@1.0.3 [skip ci] 2022-11-05 07:58:16 +00:00
0ba4e0f20c chore(release): @antv/x6-plugin-snapline@1.0.3 [skip ci] 2022-11-05 07:58:14 +00:00
a02791901b chore(release): @antv/x6-plugin-selection@1.0.3 [skip ci] 2022-11-05 07:58:11 +00:00
0f71b7ee06 chore(release): @antv/x6-plugin-scroller@1.1.1 [skip ci] 2022-11-05 07:58:08 +00:00
23ddfa27c5 chore(release): @antv/x6-plugin-minimap@1.0.3 [skip ci] 2022-11-05 07:58:06 +00:00
4dc8f56bfc chore(release): @antv/x6-plugin-keyboard@1.0.3 [skip ci] 2022-11-05 07:58:03 +00:00
b6d8ffa913 chore(release): @antv/x6-plugin-history@1.0.3 [skip ci] 2022-11-05 07:58:01 +00:00
f241fadbcc chore(release): @antv/x6-plugin-export@1.0.3 [skip ci] 2022-11-05 07:57:58 +00:00
1d4924a84a chore(release): @antv/x6-plugin-clipboard@1.0.3 [skip ci] 2022-11-05 07:57:56 +00:00
49f2162e61 chore(release): @antv/x6-geometry@1.0.2 [skip ci] 2022-11-05 07:57:53 +00:00
39278f8b67 chore(release): @antv/x6-common@1.1.1 [skip ci] 2022-11-05 07:57:51 +00:00
c018065a42 chore(release): @antv/x6@1.1.1 [skip ci] 2022-11-05 07:57:48 +00:00
190d0978ef chore(release): @antv/x6-example-features@1.0.1 [skip ci] 2022-11-05 07:57:45 +00:00
75fa88ec80 chore(release): @antv/x6-plugin-dnd@1.0.3 [skip ci] 2022-11-05 07:57:43 +00:00
a02ca20f05 chore: bump to 2.0
force bump to 2.0

BREAKING CHANGE: bump to 2.0
2022-11-05 15:49:05 +08:00
5c1dc137d5 chore(release): @antv/x6-vue-shape@1.1.0 [skip ci] 2022-11-05 07:23:30 +00:00
b903dc0539 chore(release): @antv/x6-react-shape@1.0.2 [skip ci] 2022-11-05 07:23:27 +00:00
4c61c7f74d chore(release): @antv/x6-react-components@1.1.0 [skip ci] 2022-11-05 07:23:24 +00:00
6f591418d2 chore(release): @antv/x6-plugin-transform@1.0.2 [skip ci] 2022-11-05 07:23:21 +00:00
b1ec2def7b chore(release): @antv/x6-plugin-stencil@1.0.2 [skip ci] 2022-11-05 07:23:18 +00:00
8f57a63206 chore(release): @antv/x6-plugin-snapline@1.0.2 [skip ci] 2022-11-05 07:23:16 +00:00
23120ffc65 chore(release): @antv/x6-plugin-selection@1.0.2 [skip ci] 2022-11-05 07:23:12 +00:00
daac3e5fdc chore(release): @antv/x6-plugin-scroller@1.1.0 [skip ci] 2022-11-05 07:23:10 +00:00
cbb415fc19 chore(release): @antv/x6-plugin-minimap@1.0.2 [skip ci] 2022-11-05 07:23:07 +00:00
75ef37b761 chore(release): @antv/x6-plugin-keyboard@1.0.2 [skip ci] 2022-11-05 07:23:04 +00:00
99e2bea2d8 chore(release): @antv/x6-plugin-history@1.0.2 [skip ci] 2022-11-05 07:23:01 +00:00
bd72005ee2 chore(release): @antv/x6-plugin-export@1.0.2 [skip ci] 2022-11-05 07:22:58 +00:00
0cc1d89eec chore(release): @antv/x6-plugin-clipboard@1.0.2 [skip ci] 2022-11-05 07:22:55 +00:00
1ebf0912d1 chore(release): @antv/x6-common@1.1.0 [skip ci] 2022-11-05 07:22:52 +00:00
da41870afd chore(release): @antv/x6@1.1.0 [skip ci] 2022-11-05 07:22:49 +00:00
db0c31deb0 chore(release): @antv/x6-plugin-dnd@1.0.2 [skip ci] 2022-11-05 07:22:47 +00:00
a7720251ff feat: sync some commit from v1 () 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
60 changed files with 19053 additions and 45933 deletions

@ -1,3 +1,36 @@
## @antv/x6-example-features [1.0.1](https://github.com/antvis/X6/compare/@antv/x6-example-features@1.0.0...@antv/x6-example-features@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/X6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
* **@antv/x6-plugin-clipboard:** upgraded to 1.0.3
* **@antv/x6-plugin-dnd:** upgraded to 1.0.3
* **@antv/x6-plugin-history:** upgraded to 1.0.3
* **@antv/x6-plugin-keyboard:** upgraded to 1.0.3
* **@antv/x6-plugin-minimap:** upgraded to 1.0.3
* **@antv/x6-plugin-scroller:** upgraded to 1.1.1
* **@antv/x6-plugin-selection:** upgraded to 1.0.3
* **@antv/x6-plugin-snapline:** upgraded to 1.0.3
* **@antv/x6-plugin-stencil:** upgraded to 1.0.3
* **@antv/x6-plugin-transform:** upgraded to 1.0.3
* **@antv/x6-plugin-export:** upgraded to 1.0.3
* **@antv/x6-react-components:** upgraded to 1.1.1
* **@antv/x6-react-shape:** upgraded to 1.0.3
# @antv/x6-example-features 1.0.0 (2022-11-05)

@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/x6-example-features",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"start": "umi dev",
"build": "umi build",
@ -9,20 +9,20 @@
"precommit": "lint-staged"
},
"dependencies": {
"@antv/x6": "1.0.0",
"@antv/x6-plugin-clipboard": "1.0.0",
"@antv/x6-plugin-dnd": "1.0.0",
"@antv/x6-plugin-history": "1.0.0",
"@antv/x6-plugin-keyboard": "1.0.0",
"@antv/x6-plugin-minimap": "1.0.0",
"@antv/x6-plugin-scroller": "1.0.0",
"@antv/x6-plugin-selection": "1.0.0",
"@antv/x6-plugin-snapline": "1.0.0",
"@antv/x6-plugin-stencil": "1.0.0",
"@antv/x6-plugin-transform": "1.0.0",
"@antv/x6-plugin-export": "1.0.0",
"@antv/x6-react-components": "1.0.0",
"@antv/x6-react-shape": "1.0.0",
"@antv/x6": "1.1.1",
"@antv/x6-plugin-clipboard": "1.0.3",
"@antv/x6-plugin-dnd": "1.0.3",
"@antv/x6-plugin-history": "1.0.3",
"@antv/x6-plugin-keyboard": "1.0.3",
"@antv/x6-plugin-minimap": "1.0.3",
"@antv/x6-plugin-scroller": "1.1.1",
"@antv/x6-plugin-selection": "1.0.3",
"@antv/x6-plugin-snapline": "1.0.3",
"@antv/x6-plugin-stencil": "1.0.3",
"@antv/x6-plugin-transform": "1.0.3",
"@antv/x6-plugin-export": "1.0.3",
"@antv/x6-react-components": "1.1.1",
"@antv/x6-react-shape": "1.0.3",
"antd": "^4.4.2",
"classnames": "^2.2.6",
"dagre": "^0.8.5",

@ -38,7 +38,7 @@
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
"@commitlint/config-angular"
]
},
"pnpm": {
@ -67,6 +67,7 @@
"@babel/core": "^7.19.6",
"@babel/plugin-syntax-flow": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@commitlint/config-angular": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",

@ -1,3 +1,92 @@
## @antv/x6-common [1.1.1](https://github.com/antvis/x6/compare/@antv/x6-common@1.1.0...@antv/x6-common@1.1.1) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
# @antv/x6-common [1.1.0](https://github.com/antvis/x6/compare/@antv/x6-common@1.0.1...@antv/x6-common@1.1.0) (2022-11-05)
### Features
* sync some commit from v1 ([#2851](https://github.com/antvis/x6/issues/2851)) ([a772025](https://github.com/antvis/x6/commit/a7720251ff42f2892bff9c3cd5159932322362b1))
## @antv/x6-common [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-common@1.0.0...@antv/x6-common@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
# @antv/x6-common 1.0.0 (2022-11-05)
### Bug Fixes
* force bump to 2.0 ([ae7ad05](https://github.com/antvis/x6/commit/ae7ad05d9caddc1056afa17549bda74209cedfc0))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* ✨ add css method for dom ([#1959](https://github.com/antvis/x6/issues/1959)) ([e8fbcd8](https://github.com/antvis/x6/commit/e8fbcd83fd07b5d2df0abe020fc8e2481332c1b2))
* ✨ add dom data methods ([#1969](https://github.com/antvis/x6/issues/1969)) ([d1eb01c](https://github.com/antvis/x6/commit/d1eb01c491b5509686d0affa8f84fc6438673d80))
* ✨ add dom event to replace jquery event ([#1929](https://github.com/antvis/x6/issues/1929)) ([68c143b](https://github.com/antvis/x6/commit/68c143babf20f84ab7b76aada1794131c49860b2))
* ✨ add events module in common ([#1932](https://github.com/antvis/x6/issues/1932)) ([c1d0fc1](https://github.com/antvis/x6/commit/c1d0fc188e62a8e420ff03512f38c11c5c50a9ba))
* ✨ 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 selection plugin ([#2742](https://github.com/antvis/x6/issues/2742)) ([50a5dc7](https://github.com/antvis/x6/commit/50a5dc7cd8c2e39a1f8bf8359a0eb189dda8cb86))
* ✨ add version.ts ([#1981](https://github.com/antvis/x6/issues/1981)) ([aee3666](https://github.com/antvis/x6/commit/aee3666da25025b7ca284134521d6c6cd7f8edbc))
* ✨ export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](https://github.com/antvis/x6/commit/df282000cc5e17521147c77c210e172c444c9938))
* ✨ improve auto-resize feature ([40d5335](https://github.com/antvis/x6/commit/40d53355cedc0bbbeb1e26948b67254dc6a40d85))
* ✨ improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](https://github.com/antvis/x6/commit/25b238fd0bd289c0175f0cb1282233cb3badbc20))
* ✨ init x6-core repo ([#1954](https://github.com/antvis/x6/issues/1954)) ([d7cfb6a](https://github.com/antvis/x6/commit/d7cfb6af19fc021ad197a8bed187d927a81d7dfa))
* ✨ put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](https://github.com/antvis/x6/commit/f1c80a8cd75efe1def32168b6acff90ece5723ba))
* ✨ remove jquery deps in x6-core ([#1971](https://github.com/antvis/x6/issues/1971)) ([38c6fd6](https://github.com/antvis/x6/commit/38c6fd69922b3db7eb938f55a8c29f8226edbed1))
* add scheduler for render nodes to improve performance ([#2044](https://github.com/antvis/x6/issues/2044)) ([57a50a9](https://github.com/antvis/x6/commit/57a50a9dec2b9dbe04f51972a1eebd7a98c116e0))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](https://github.com/antvis/x6/commit/ecfd4263b1266a128bf8651c4dd745ff8ab038b3))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
* 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)
### Performance Improvements
* ⚡️ optimize breakText for a high performance version ([#2242](https://github.com/antvis/x6/issues/2242)) ([0aced58](https://github.com/antvis/x6/commit/0aced58056d908ec092bca1889b5ef367a94fe68))
* ⚡️ 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
* bump to 2.0
* bump to 2.0
* force bump to 2.0
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
# @antv/x6-common 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-common",
"version": "2.0.0",
"version": "1.1.1",
"description": "Basic toolkit for X6",
"main": "lib/index.js",
"module": "es/index.js",

@ -6,4 +6,5 @@ export {
sortBy,
groupBy,
difference,
max
} from 'lodash-es'

@ -1,7 +1,12 @@
import { ns } from './elem'
import { kebabCase } from '../string/format'
const CASE_SENSITIVE_ATTR = ['viewBox']
export const CASE_SENSITIVE_ATTR = [
'viewBox',
'attributeName',
'attributeType',
'repeatCount',
]
export type Attributes = { [key: string]: string | number | null | undefined }

@ -1,56 +1,70 @@
const ua = navigator.userAgent
/* eslint-disable no-underscore-dangle */
let _IS_MAC = false
let _IS_IOS = false
let _IS_WINDOWS = false
let _IS_IE = false
let _IS_IE11 = false
let _IS_EDGE = false
let _IS_NETSCAPE = false
let _IS_CHROME_APP = false
let _IS_CHROME = false
let _IS_OPERA = false
let _IS_FIREFOX = false
let _IS_SAFARI = false
let _SUPPORT_TOUCH = false
let _SUPPORT_POINTER = false
let _SUPPORT_PASSIVE = false
let _NO_FOREIGNOBJECT = false
export namespace Platform {
export const IS_MAC = ua.indexOf('Macintosh') > 0
export const IS_IOS = !!ua.match(/(iPad|iPhone|iPod)/g)
export const IS_WINDOWS = ua.indexOf('Windows') > 0
if (typeof navigator === 'object') {
const ua = navigator.userAgent
_IS_MAC = ua.indexOf('Macintosh') >= 0
_IS_IOS = !!ua.match(/(iPad|iPhone|iPod)/g)
_IS_WINDOWS = ua.indexOf('Windows') >= 0
export const IS_IE = ua.indexOf('MSIE') >= 0
export const IS_IE11 = !!ua.match(/Trident\/7\./)
export const IS_EDGE = !!ua.match(/Edge\//)
_IS_IE = ua.indexOf('MSIE') >= 0
_IS_IE11 = !!ua.match(/Trident\/7\./)
_IS_EDGE = !!ua.match(/Edge\//)
/**
* A flag indicating whether the browser is Netscape (including Firefox).
*/
export const IS_NETSCAPE =
_IS_NETSCAPE =
ua.indexOf('Mozilla/') >= 0 &&
ua.indexOf('MSIE') < 0 &&
ua.indexOf('Edge/') < 0
/**
* A flag indicating whether the the this is running inside a Chrome App.
*/
export const IS_CHROME_APP =
(window as any).chrome != null &&
(window as any).chrome.app != null &&
(window as any).chrome.app.runtime != null
export const IS_CHROME = ua.indexOf('Chrome/') >= 0 && ua.indexOf('Edge/') < 0
export const IS_OPERA = ua.indexOf('Opera/') >= 0 || ua.indexOf('OPR/') >= 0
export const IS_FIREFOX = ua.indexOf('Firefox/') >= 0
export const IS_SAFARI =
_IS_CHROME = ua.indexOf('Chrome/') >= 0 && ua.indexOf('Edge/') < 0
_IS_OPERA = ua.indexOf('Opera/') >= 0 || ua.indexOf('OPR/') >= 0
_IS_FIREFOX = ua.indexOf('Firefox/') >= 0
_IS_SAFARI =
ua.indexOf('AppleWebKit/') >= 0 &&
ua.indexOf('Chrome/') < 0 &&
ua.indexOf('Edge/') < 0
/**
* A flag indicating whether this device supports touchstart/-move/-end
* events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled
* devices).
*/
export const SUPPORT_TOUCH = 'ontouchstart' in document.documentElement
if (typeof document === 'object') {
_NO_FOREIGNOBJECT =
!document.createElementNS ||
`${document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject',
)}` !== '[object SVGForeignObjectElement]' ||
ua.indexOf('Opera/') >= 0
}
}
/**
* A flag indicating whether this device supports Microsoft pointer events.
*/
export const SUPPORT_POINTER = (window as any).PointerEvent != null && !IS_MAC
if (typeof window === 'object') {
_IS_CHROME_APP =
(window as any).chrome != null &&
(window as any).chrome.app != null &&
(window as any).chrome.app.runtime != null
_SUPPORT_POINTER = (window as any).PointerEvent != null && !_IS_MAC
}
export let SUPPORT_PASSIVE = false // eslint-disable-line import/no-mutable-exports
if (typeof document === 'object') {
_SUPPORT_TOUCH = 'ontouchstart' in document.documentElement
try {
const options = Object.defineProperty({}, 'passive', {
get() {
SUPPORT_PASSIVE = true
_SUPPORT_PASSIVE = true
},
})
const div = document.createElement('div')
@ -60,18 +74,50 @@ export namespace Platform {
} catch (err) {
// pass
}
}
export namespace Platform {
export const IS_MAC = _IS_MAC
export const IS_IOS = _IS_IOS
export const IS_WINDOWS = _IS_WINDOWS
export const IS_IE = _IS_IE
export const IS_IE11 = _IS_IE11
export const IS_EDGE = _IS_EDGE
/**
* A flag indicating whether the browser is Netscape (including Firefox).
*/
export const IS_NETSCAPE = _IS_NETSCAPE
/**
* A flag indicating whether the the this is running inside a Chrome App.
*/
export const IS_CHROME_APP = _IS_CHROME_APP
export const IS_CHROME = _IS_CHROME
export const IS_OPERA = _IS_OPERA
export const IS_FIREFOX = _IS_FIREFOX
export const IS_SAFARI = _IS_SAFARI
/**
* A flag indicating whether this device supports touchstart/-move/-end
* events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled
* devices).
*/
export const SUPPORT_TOUCH = _SUPPORT_TOUCH
/**
* A flag indicating whether this device supports Microsoft pointer events.
*/
export const SUPPORT_POINTER = _SUPPORT_POINTER
export const SUPPORT_PASSIVE = _SUPPORT_PASSIVE
/**
* A flag indicating whether foreignObject support is not available. This
* is the case for Opera, older SVG-based browsers and all versions of IE.
*/
export const NO_FOREIGNOBJECT =
!document.createElementNS ||
`${document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject',
)}` !== '[object SVGForeignObjectElement]' ||
ua.indexOf('Opera/') >= 0
export const NO_FOREIGNOBJECT = _NO_FOREIGNOBJECT
export const SUPPORT_FOREIGNOBJECT = !NO_FOREIGNOBJECT
}

@ -1,3 +1,63 @@
## @antv/x6-geometry [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-geometry@1.0.1...@antv/x6-geometry@1.0.2) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
## @antv/x6-geometry [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-geometry@1.0.0...@antv/x6-geometry@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
# @antv/x6-geometry 1.0.0 (2022-11-05)
### Bug Fixes
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([49d4371](https://github.com/antvis/x6/commit/49d43716ada672e609e4e6d9c6fdca3f494b6f68))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* ✨ add geometry library ([dbba32e](https://github.com/antvis/x6/commit/dbba32eebc4531c2f040646667c7db4a69152350))
* ✨ export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](https://github.com/antvis/x6/commit/df282000cc5e17521147c77c210e172c444c9938))
* ✨ put animation in x6-common ([#2411](https://github.com/antvis/x6/issues/2411)) ([f1c80a8](https://github.com/antvis/x6/commit/f1c80a8cd75efe1def32168b6acff90ece5723ba))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* add some getters ([ff0273d](https://github.com/antvis/x6/commit/ff0273d119afd74b7233649308ba0035c737ca1a))
* equalPoints ([6a45c90](https://github.com/antvis/x6/commit/6a45c9027ab869a05c2f561cb7503078b0117264))
* rotate rectangle ([88a4fec](https://github.com/antvis/x6/commit/88a4fec7d1d3a49b6c1373f0641c8949474d7d83))
* round with default precision ([aef56f7](https://github.com/antvis/x6/commit/aef56f73f0627d620d36d116b74c828fa76c13f2))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](https://github.com/antvis/x6/commit/ecfd4263b1266a128bf8651c4dd745ff8ab038b3))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* force release 2.0-beta
* 2.0-beta
# @antv/x6-geometry 1.0.0 (2022-11-04)

@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "1.0.2",
"name": "@antv/x6-geometry",
"description": "Geometry operations for X6",
"main": "lib/index.js",

@ -1,3 +1,110 @@
## @antv/x6-plugin-clipboard [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-clipboard@1.0.2...@antv/x6-plugin-clipboard@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-clipboard [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-clipboard@1.0.1...@antv/x6-plugin-clipboard@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-clipboard [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-clipboard@1.0.0...@antv/x6-plugin-clipboard@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-clipboard 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add clipboard plugin ([8107f6d](https://github.com/antvis/x6/commit/8107f6df5de52a33e1b8094a44d59ee7fd2a8042))
* ✨ export common and geometry in x6 package ([#2820](https://github.com/antvis/x6/issues/2820)) ([df28200](https://github.com/antvis/x6/commit/df282000cc5e17521147c77c210e172c444c9938))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-clipboard 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-clipboard",
"version": "2.0.0",
"version": "1.0.3",
"description": "clipboard plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,109 @@
## @antv/x6-plugin-dnd [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-dnd@1.0.2...@antv/x6-plugin-dnd@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-dnd [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-dnd@1.0.1...@antv/x6-plugin-dnd@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-dnd [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-dnd@1.0.0...@antv/x6-plugin-dnd@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-dnd 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add dnd plugin ([269fae9](https://github.com/antvis/x6/commit/269fae9e5eeb969c6a7884373aa3a32002c064e6))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-dnd 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-dnd",
"version": "2.0.0",
"version": "1.0.3",
"description": "dnd plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -38,10 +38,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,53 @@
## @antv/x6-plugin-export [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-export@1.0.2...@antv/x6-plugin-export@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-export [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-export@1.0.1...@antv/x6-plugin-export@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-export [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-export@1.0.0...@antv/x6-plugin-export@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-export 1.0.0 (2022-11-05)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-export",
"version": "1.0.0",
"version": "1.0.3",
"description": "export plugin for X6.",
"main": "lib/index.js",
"module": "es/index.js",
@ -36,10 +36,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "1.0.0"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "1.0.0"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,92 @@
## @antv/x6-plugin-history [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@1.0.2...@antv/x6-plugin-history@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-history [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@1.0.1...@antv/x6-plugin-history@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-history [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-history@1.0.0...@antv/x6-plugin-history@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-history 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* commit message E2BIG ([a2c5f9e](https://github.com/antvis/x6/commit/a2c5f9e943ccf1d7ae478af30cb5022dd72e2e99))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* ✨ add history plugin ([#2819](https://github.com/antvis/x6/issues/2819)) ([fd8d384](https://github.com/antvis/x6/commit/fd8d384a29d0f2e02bf066efd19ed3f92614c524))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-history 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-history",
"version": "2.0.0",
"version": "1.0.3",
"description": "history plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,114 @@
## @antv/x6-plugin-keyboard [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@1.0.2...@antv/x6-plugin-keyboard@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-keyboard [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@1.0.1...@antv/x6-plugin-keyboard@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-keyboard [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-keyboard@1.0.0...@antv/x6-plugin-keyboard@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-keyboard 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](https://github.com/antvis/x6/commit/8a17bfac81190e6c492690ad4f1ae4b80eeb98b5))
* 🐛 fix type error in keyboard plugin ([#2674](https://github.com/antvis/x6/issues/2674)) ([1701150](https://github.com/antvis/x6/commit/1701150042e45126415afd7768e2dc798906a1c4))
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add keyboard plugin ([#2665](https://github.com/antvis/x6/issues/2665)) ([bf53677](https://github.com/antvis/x6/commit/bf536778ca7ee3229390dfcfcb085ec55edd9fb2))
* ✨ add snapline plugin ([294672b](https://github.com/antvis/x6/commit/294672b3066b15ab834ce2a3172facc49004c950))
* ✨ expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](https://github.com/antvis/x6/commit/f3edbbc95d2038a61116fa71bb0c3016f1c92d5e))
* ✨ improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](https://github.com/antvis/x6/commit/25b238fd0bd289c0175f0cb1282233cb3badbc20))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-keyboard 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-keyboard",
"version": "2.0.0",
"version": "1.0.3",
"description": "keyboard plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -40,10 +40,10 @@
"mousetrap": "^1.6.5"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x",
"@antv/x6": "1.1.1",
"@types/mousetrap": "^1.6.5"
},
"author": {

@ -1,3 +1,109 @@
## @antv/x6-plugin-minimap [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-minimap@1.0.2...@antv/x6-plugin-minimap@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-minimap [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-minimap@1.0.1...@antv/x6-plugin-minimap@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-minimap [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-minimap@1.0.0...@antv/x6-plugin-minimap@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-minimap 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add minimap plugin ([6cdecbb](https://github.com/antvis/x6/commit/6cdecbbba9a4db1f67189e23fb89f2a7ba2af99e))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-minimap 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-minimap",
"version": "2.0.0",
"version": "1.0.3",
"description": "minimap plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,129 @@
## @antv/x6-plugin-scroller [1.1.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-scroller@1.1.0...@antv/x6-plugin-scroller@1.1.1) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
# @antv/x6-plugin-scroller [1.1.0](https://github.com/antvis/x6/compare/@antv/x6-plugin-scroller@1.0.1...@antv/x6-plugin-scroller@1.1.0) (2022-11-05)
### Features
* sync some commit from v1 ([#2851](https://github.com/antvis/x6/issues/2851)) ([a772025](https://github.com/antvis/x6/commit/a7720251ff42f2892bff9c3cd5159932322362b1))
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-scroller [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-scroller@1.0.0...@antv/x6-plugin-scroller@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-scroller 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 add return value for autoScroller in scroller plugin ([5e102a3](https://github.com/antvis/x6/commit/5e102a39c5bd14a478edd4f36c4264997027c2a9))
* 🐛 change init method to public ([#2671](https://github.com/antvis/x6/issues/2671)) ([8a17bfa](https://github.com/antvis/x6/commit/8a17bfac81190e6c492690ad4f1ae4b80eeb98b5))
* 🐛 debounce update methords in scroller ([6e1bd9b](https://github.com/antvis/x6/commit/6e1bd9b5307b4cf17b3951168e10527d6111e5e5))
* 🐛 ensure css loader for plugin ([24de125](https://github.com/antvis/x6/commit/24de1254a14937a8b5fbb9fd1635e470ae10ebc9))
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add autoResize feature ([5aeae97](https://github.com/antvis/x6/commit/5aeae976cd7638b2b5c05bc12bc56b562366fe5f))
* ✨ add clipboard plugin ([8107f6d](https://github.com/antvis/x6/commit/8107f6df5de52a33e1b8094a44d59ee7fd2a8042))
* ✨ add minimap plugin ([6cdecbb](https://github.com/antvis/x6/commit/6cdecbbba9a4db1f67189e23fb89f2a7ba2af99e))
* ✨ 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 trnsition methods for scroller plugin ([#2670](https://github.com/antvis/x6/issues/2670)) ([f43e0a5](https://github.com/antvis/x6/commit/f43e0a5417ced76ff328f130872dea5c0b13acbd))
* ✨ 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))
* ✨ improve scroller plugin ([#2667](https://github.com/antvis/x6/issues/2667)) ([25b238f](https://github.com/antvis/x6/commit/25b238fd0bd289c0175f0cb1282233cb3badbc20))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-scroller 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-scroller",
"version": "2.0.0",
"version": "1.1.1",
"description": "scroller plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -305,6 +305,11 @@ export class ScrollerImpl extends View<ScrollerImpl.EventArgs> {
const graphHeight = this.graph.options.height
const pageWidth = this.options.pageWidth! * this.sx
const pageHeight = this.options.pageHeight! * this.sy
if (pageWidth === 0 || pageHeight === 0) {
return
}
if (graphWidth > pageWidth || graphHeight > pageHeight) {
let hasPageBreak = false
const container = document.createElement('div')
@ -1140,15 +1145,11 @@ export namespace ScrollerImpl {
| NumberExt.SideOptions
| ((this: ScrollerImpl, scroller: ScrollerImpl) => NumberExt.SideOptions)
autoResizeOptions?:
| (TransformManager.FitToContentFullOptions & {
direction: AutoResizeDirection | AutoResizeDirection[]
})
| TransformManager.FitToContentFullOptions
| ((
this: ScrollerImpl,
scroller: ScrollerImpl,
) => TransformManager.FitToContentFullOptions & {
direction: AutoResizeDirection | AutoResizeDirection[]
})
) => TransformManager.FitToContentFullOptions)
}
export interface Options extends CommonOptions {

@ -1,3 +1,115 @@
## @antv/x6-plugin-selection [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@1.0.2...@antv/x6-plugin-selection@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-selection [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@1.0.1...@antv/x6-plugin-selection@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-selection [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-selection@1.0.0...@antv/x6-plugin-selection@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-selection 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 ensure css loader for plugin ([24de125](https://github.com/antvis/x6/commit/24de1254a14937a8b5fbb9fd1635e470ae10ebc9))
* 🐛 fix multiple selection drag error ([5ae7807](https://github.com/antvis/x6/commit/5ae78077e2a495122a28c75dbb30377eae5c45e6))
* 🐛 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))
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add clipboard plugin ([8107f6d](https://github.com/antvis/x6/commit/8107f6df5de52a33e1b8094a44d59ee7fd2a8042))
* ✨ 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))
* ✨ expose the selection api ([#2756](https://github.com/antvis/x6/issues/2756)) ([f3edbbc](https://github.com/antvis/x6/commit/f3edbbc95d2038a61116fa71bb0c3016f1c92d5e))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-selection 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-selection",
"version": "2.0.0",
"version": "1.0.3",
"description": "selection plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,110 @@
## @antv/x6-plugin-snapline [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@1.0.2...@antv/x6-plugin-snapline@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-snapline [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@1.0.1...@antv/x6-plugin-snapline@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-snapline [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-snapline@1.0.0...@antv/x6-plugin-snapline@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-snapline 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add dnd plugin ([269fae9](https://github.com/antvis/x6/commit/269fae9e5eeb969c6a7884373aa3a32002c064e6))
* ✨ add snapline plugin ([294672b](https://github.com/antvis/x6/commit/294672b3066b15ab834ce2a3172facc49004c950))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-snapline 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-snapline",
"version": "2.0.0",
"version": "1.0.3",
"description": "snapline plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,113 @@
## @antv/x6-plugin-stencil [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-stencil@1.0.2...@antv/x6-plugin-stencil@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
* **@antv/x6-plugin-dnd:** upgraded to 1.0.3
## @antv/x6-plugin-stencil [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-stencil@1.0.1...@antv/x6-plugin-stencil@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
* **@antv/x6-plugin-dnd:** upgraded to 1.0.2
## @antv/x6-plugin-stencil [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-stencil@1.0.0...@antv/x6-plugin-stencil@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
* **@antv/x6-plugin-dnd:** upgraded to 1.0.1
# @antv/x6-plugin-stencil 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* remove x6-common and x6-geometry deps ([#2830](https://github.com/antvis/x6/issues/2830)) ([5b5f5aa](https://github.com/antvis/x6/commit/5b5f5aa7ea6fded1b15abc79b9b5a5e2281b3ab9))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add stencil plugin ([#2815](https://github.com/antvis/x6/issues/2815)) ([4e1fb7b](https://github.com/antvis/x6/commit/4e1fb7bef8ff5548edf2529eb27be0a66a600996))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
* **@antv/x6-plugin-dnd:** upgraded to 1.0.0
# @antv/x6-plugin-stencil 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-stencil",
"version": "2.0.0",
"version": "1.0.3",
"description": "stencil plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,12 +37,12 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x",
"@antv/x6-plugin-dnd": "^2.x"
"@antv/x6": "1.1.1",
"@antv/x6-plugin-dnd": "1.0.3"
},
"devDependencies": {
"@antv/x6": "^2.0.x",
"@antv/x6-plugin-dnd": "^2.0.x"
"@antv/x6": "1.1.1",
"@antv/x6-plugin-dnd": "1.0.3"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,110 @@
## @antv/x6-plugin-transform [1.0.3](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@1.0.2...@antv/x6-plugin-transform@1.0.3) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.1.1
## @antv/x6-plugin-transform [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@1.0.1...@antv/x6-plugin-transform@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-plugin-transform [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@1.0.0...@antv/x6-plugin-transform@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-plugin-transform 1.0.0 (2022-11-05)
### Bug Fixes
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* 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))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* bump to 2.0 ([1ffafce](https://github.com/antvis/x6/commit/1ffafcea22472f4e5b50319c91667a1eea457219))
* bump to 2.0 ([8638d43](https://github.com/antvis/x6/commit/8638d4310b67b9107e8ef1f6d7a22311f1999df0))
* bump to 2.0 ([0e258d0](https://github.com/antvis/x6/commit/0e258d0704b444103410a565fe033dae76426ad4))
* force bump to 2.0.0 ([0cab334](https://github.com/antvis/x6/commit/0cab334e4b72a4df33a371c37dfbeff8dc0ae231))
* force release 2.0-beta ([af8c588](https://github.com/antvis/x6/commit/af8c5887b3de721f125da6d71e40c3ec76d0f660))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Documentation
* clean up changelogs ([7c012f7](https://github.com/antvis/x6/commit/7c012f7360ad9b74e5292a7a8d0d04b0ec28987e))
### Features
* ✨ add transform plugin ([#2818](https://github.com/antvis/x6/issues/2818)) ([660e2d7](https://github.com/antvis/x6/commit/660e2d7689bfa59a0f4a4a5e3c0ace70dec21e9e))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump to 2.0
* bump version
* bump to 2.0
* force bump to 2.0.0
* force release 2.0-beta
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-plugin-transform 1.0.0 (2022-11-04)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-transform",
"version": "2.0.0",
"version": "1.0.3",
"description": "transform plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",
@ -37,10 +37,10 @@
"pretest": "rss"
},
"peerDependencies": {
"@antv/x6": "^2.x"
"@antv/x6": "1.1.1"
},
"devDependencies": {
"@antv/x6": "^2.0.x"
"@antv/x6": "1.1.1"
},
"author": {
"name": "bubkoo",

@ -1,3 +1,65 @@
# @antv/x6-react-components [1.1.0](https://github.com/antvis/x6/compare/@antv/x6-react-components@1.0.1...@antv/x6-react-components@1.1.0) (2022-11-05)
### Features
* sync some commit from v1 ([#2851](https://github.com/antvis/x6/issues/2851)) ([a772025](https://github.com/antvis/x6/commit/a7720251ff42f2892bff9c3cd5159932322362b1))
## @antv/x6-react-components [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-react-components@1.0.0...@antv/x6-react-components@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
# @antv/x6-react-components 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 add x6-react-components umd build ([fc91c27](https://github.com/antvis/x6/commit/fc91c271a78d5423bae0fedf6af2bc12d024971f))
* 🐛 fast switch menubar-item lead to multiple popup ([#398](https://github.com/antvis/x6/issues/398)) ([12eb2a3](https://github.com/antvis/x6/commit/12eb2a3c60df584d44b5a13cad21b3b90b0134b2))
* 🐛 fix x6-react-component release version ([e8e0a9d](https://github.com/antvis/x6/commit/e8e0a9d8eba07740c7aef9e54faf751e694f590f))
* 🐛 fix x6-react-components rollup config ([5e47faa](https://github.com/antvis/x6/commit/5e47faaa2c7186716f22128c940a503c63de25a2))
* 🐛 release x6-react-components 1.1.3 ([1ca9a1b](https://github.com/antvis/x6/commit/1ca9a1ba2c2931c9eae9fc2ab637777b92260184))
* 🐛 revert react-color version ([#1576](https://github.com/antvis/x6/issues/1576)) ([bcaa3a2](https://github.com/antvis/x6/commit/bcaa3a24bb5fa614d5c4299488af676000ed5b79))
* 🐛 update .lock file ([462c9a0](https://github.com/antvis/x6/commit/462c9a02014f696adeb908caa020fe2e50b6cc06))
* 🐛 update yarn.lock file ([313a471](https://github.com/antvis/x6/commit/313a471ca15bf26781257ab4f3b9b03d61f38bcd))
* commit message E2BIG ([a2c5f9e](https://github.com/antvis/x6/commit/a2c5f9e943ccf1d7ae478af30cb5022dd72e2e99))
* fix react-color version to avoid bug ([#1571](https://github.com/antvis/x6/issues/1571)) ([d2d6d6c](https://github.com/antvis/x6/commit/d2d6d6c661d40ddaf3df2d794c3fbd67703a4027))
* fix react-color version to avoid bug ([#1579](https://github.com/antvis/x6/issues/1579)) ([8c6ae95](https://github.com/antvis/x6/commit/8c6ae95ec39e71069f0d0791c99530f41b9f35aa))
* import css replace less ([#1548](https://github.com/antvis/x6/issues/1548)) ([9ca4ef1](https://github.com/antvis/x6/commit/9ca4ef1553b903ce1da83e20bd9e007d1e85f993))
* update dependencies and fix type errors ([#1103](https://github.com/antvis/x6/issues/1103)) ([49d4371](https://github.com/antvis/x6/commit/49d43716ada672e609e4e6d9c6fdca3f494b6f68))
* 修复x6-react-component antd引入的问题 ([88d2e8b](https://github.com/antvis/x6/commit/88d2e8b2cf1132d680ef0a69741bad8d862f95f6))
* 修复x6-react-component antd引入的问题 ([ff29109](https://github.com/antvis/x6/commit/ff29109b9bc80e6e29ed6421939818904013563e))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
* upgrade react to 18 in react-components ([#2836](https://github.com/antvis/x6/issues/2836)) ([5138562](https://github.com/antvis/x6/commit/5138562515ddbd3975adc9d93514f21d6fc2bb3e))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* force release 2.0-beta
* 2.0-beta
# @antv/x6-react-components 1.0.0 (2022-11-04)

@ -1,3 +1,118 @@
## @antv/x6-react-shape [1.0.2](https://github.com/antvis/x6/compare/@antv/x6-react-shape@1.0.1...@antv/x6-react-shape@1.0.2) (2022-11-05)
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-react-shape [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-react-shape@1.0.0...@antv/x6-react-shape@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-react-shape 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 add unregister for react/vue shape ([b741a0d](https://github.com/antvis/x6/commit/b741a0d82ae4bb6e1579b8656086b4ff0173f845))
* 🐛 component was rendered twice on init ([2d230f4](https://github.com/antvis/x6/commit/2d230f47c781301fd30011441099d4c0efad1ed2))
* 🐛 do not pass `node` prop to inline component ([9deb76b](https://github.com/antvis/x6/commit/9deb76bcefb9bf1e0a053c8443e5aeb4b45bf44b))
* 🐛 global `process` should be replaced when build with rollup ([b459b61](https://github.com/antvis/x6/commit/b459b61a7aa966ff83bfb5992586aed2583b8a46)), closes [#324](https://github.com/antvis/x6/issues/324)
* 🐛 interact with input rendered in react component ([82478b1](https://github.com/antvis/x6/commit/82478b1d66e3b8b4346dab9041cb00e54fea9be1))
* 🐛 revert add unmont method ([#1125](https://github.com/antvis/x6/issues/1125)) ([0cd8a9f](https://github.com/antvis/x6/commit/0cd8a9fee5d5f2b0f4f6f7419ef41b40f9129340))
* 🐛 unmount component when node unmount ([#1118](https://github.com/antvis/x6/issues/1118)) ([e029c7a](https://github.com/antvis/x6/commit/e029c7a6d281c727167a9076ba3217fed2a4d618))
* 🐛 update x6-react-shape ([#1424](https://github.com/antvis/x6/issues/1424)) ([27810c7](https://github.com/antvis/x6/commit/27810c73e4778cd1a8f587f477cf3ff668160c9b))
* 🐛 update x6-react-shape version ([#1422](https://github.com/antvis/x6/issues/1422)) ([ed6ac13](https://github.com/antvis/x6/commit/ed6ac135a991c2474694124846b732867bf81f8f))
* 🐛 use selectors to find react's container ([f5ed04e](https://github.com/antvis/x6/commit/f5ed04ec95c07a310b32e435b2405db14a8cf4d5))
* 🐛 version error ([5c80d69](https://github.com/antvis/x6/commit/5c80d69f66217e131176fce89b95d30bd47e3c4c))
* 🐛 version error ([fd57688](https://github.com/antvis/x6/commit/fd5768861fedda32d341c774f6e80da67646426f))
* 🐛 version not found ([8166346](https://github.com/antvis/x6/commit/8166346771f11ef5997a6e1ed376987408e57cde))
* 🐛 x6 version ([f2e01c4](https://github.com/antvis/x6/commit/f2e01c44a1f1acd9390c9de0b5ade913cfd8b03b))
* **anchor:** position of anchor and connection point ([f8f432a](https://github.com/antvis/x6/commit/f8f432afcef3cf5aec0c72cc351e8065c9c4559f))
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* component function should be called on every change of the node ([3d92caf](https://github.com/antvis/x6/commit/3d92caf6a97db95fee874359b7e62691f01a77f6)), closes [#185](https://github.com/antvis/x6/issues/185)
* extends style ([04d4aab](https://github.com/antvis/x6/commit/04d4aab8d25acd3edfa0e842987c7338989d7476))
* fix type error ([c5f14c4](https://github.com/antvis/x6/commit/c5f14c419f31abd7c6fe1113bf90b55724745828))
* fix x6-react-shape typo 'getPovider' ([83be5e1](https://github.com/antvis/x6/commit/83be5e10eecc687a7d389c17141ebd49d6fcc7f2))
* **minimap:** only render facade for minimap ([aa65629](https://github.com/antvis/x6/commit/aa65629df6e13e05d121861c7b56256be840054a))
* 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))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* ✨ add `primer` and `useForeignObject` option for react-shape ([ab6a06f](https://github.com/antvis/x6/commit/ab6a06f1fe70b71ae31acc47b0d9cb02c86097e2))
* ✨ add html shape ([8d75504](https://github.com/antvis/x6/commit/8d7550413f9f6f3177eab9d0f7fef14c55949fb8))
* ✨ add usePortal react hook in x6-react-shape ([b57760e](https://github.com/antvis/x6/commit/b57760e2f778b4bc8307a6cabd4eca14e0f91279))
* ✨ dispose components when unmount ([#1745](https://github.com/antvis/x6/issues/1745)) ([2bcd45f](https://github.com/antvis/x6/commit/2bcd45f818cfad5c19011660b30bbdd602787cd7))
* ✨ dot not update peerDependencies with x6 publish ([6d13809](https://github.com/antvis/x6/commit/6d138097cfce1755164f166a5e0c44d05b399528))
* ✨ support inherit options for react-shape registry ([#2596](https://github.com/antvis/x6/issues/2596)) ([ad63046](https://github.com/antvis/x6/commit/ad63046e89fa5853b0cf15947af1ed2a7b625188))
* ✨ support react portal ([c20c0c4](https://github.com/antvis/x6/commit/c20c0c473ee311b12a09193bb43209f47e7363b9))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* custom function to return a react component ([da24c84](https://github.com/antvis/x6/commit/da24c84be4716def93232de4cea740a1a1e18e9a))
* dynamic update react node ([58539a4](https://github.com/antvis/x6/commit/58539a48ed461c717b8278d3088eb54608e2175f))
* force release 2.0-beta ([6987d9c](https://github.com/antvis/x6/commit/6987d9ce64454cd76f697d33f96715dbdf56524a))
* init ([8cad113](https://github.com/antvis/x6/commit/8cad113bae4b4856905e39a791aa6ea69e7bd361))
* only export the shape ([527e501](https://github.com/antvis/x6/commit/527e5010e422dbfb0f15c8edc4d4c358bc54772b))
* react shape registry and hook ([d5fdd65](https://github.com/antvis/x6/commit/d5fdd655c3bd27f10ce3ec5ed4f52d11a66a71d4))
* **react-shape:** ✨ add throttle to size and position ([#1335](https://github.com/antvis/x6/issues/1335)) ([be0b78b](https://github.com/antvis/x6/commit/be0b78b2f6db7a73e7ff03e8dd8bff313cce9783))
* Support jsdelivr and cdnjs CDN service [#335](https://github.com/antvis/x6/issues/335) ([#336](https://github.com/antvis/x6/issues/336)) ([be37f66](https://github.com/antvis/x6/commit/be37f66e421aa999332dd2f54f711f930fc095dc))
* support mouseenter and mouseleave event ([#2559](https://github.com/antvis/x6/issues/2559)) ([ecfd426](https://github.com/antvis/x6/commit/ecfd4263b1266a128bf8651c4dd745ff8ab038b3))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
* use x6-dom-util ([28b082c](https://github.com/antvis/x6/commit/28b082c8a5a37b4c2034fedf71c6e2b01c1c2b0f))
* use x6-util ([85240e9](https://github.com/antvis/x6/commit/85240e9a1aac5387b79916ead3b309b7c1e2b7db))
### Performance Improvements
* ⚡️ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([0b5f241](https://github.com/antvis/x6/commit/0b5f2413f0b907316784149027615ae2d09616a4))
* ⚡️ optimize node render performance ([6554959](https://github.com/antvis/x6/commit/65549599d2f82f8052d16776c8d36ce7ee2fba9b))
* do not re-render react component when shape redrawing ([7bde71d](https://github.com/antvis/x6/commit/7bde71d75da535eec944754b047066fce180cc25))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-react-shape 1.0.0 (2022-11-04)

@ -1,3 +1,103 @@
# @antv/x6-vue-shape [1.1.0](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@1.0.1...@antv/x6-vue-shape@1.1.0) (2022-11-05)
### Features
* sync some commit from v1 ([#2851](https://github.com/antvis/x6/issues/2851)) ([a772025](https://github.com/antvis/x6/commit/a7720251ff42f2892bff9c3cd5159932322362b1))
### Dependencies
* **@antv/x6:** upgraded to 1.1.0
## @antv/x6-vue-shape [1.0.1](https://github.com/antvis/x6/compare/@antv/x6-vue-shape@1.0.0...@antv/x6-vue-shape@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6:** upgraded to 1.0.1
# @antv/x6-vue-shape 1.0.0 (2022-11-05)
### Bug Fixes
* 🐛 add primer for vue-shape ([#738](https://github.com/antvis/x6/issues/738)) ([9eaaab4](https://github.com/antvis/x6/commit/9eaaab4017b0915f64b9af650d1982ff94f75274))
* 🐛 add unregister for react/vue shape ([b741a0d](https://github.com/antvis/x6/commit/b741a0d82ae4bb6e1579b8656086b4ff0173f845))
* 🐛 change vue vm instance ([#1751](https://github.com/antvis/x6/issues/1751)) ([bcf1485](https://github.com/antvis/x6/commit/bcf148584e4dfa9d468033914aec4cc96e90e07c))
* 🐛 missing global variable names ([8294209](https://github.com/antvis/x6/commit/8294209f1f1e47cf2cf331351c33ccbcd05867d5))
* 🐛 missing vue module ([705c36f](https://github.com/antvis/x6/commit/705c36f1d70126a83d46e27119f4bdd64d2369ff))
* 🐛 revert add unmont method ([#1125](https://github.com/antvis/x6/issues/1125)) ([0cd8a9f](https://github.com/antvis/x6/commit/0cd8a9fee5d5f2b0f4f6f7419ef41b40f9129340))
* 🐛 type errors ([4973146](https://github.com/antvis/x6/commit/497314691543919bf0c1219f800e77aa54bb6694))
* 🐛 unmount component when node unmount ([#1118](https://github.com/antvis/x6/issues/1118)) ([e029c7a](https://github.com/antvis/x6/commit/e029c7a6d281c727167a9076ba3217fed2a4d618))
* bump rule ([c9559f2](https://github.com/antvis/x6/commit/c9559f2f30790857ff066be7d0ce99ed8933e20c))
* fix error in vue shape when formJSON ([e91fb8a](https://github.com/antvis/x6/commit/e91fb8a1967e47ea324ee4733bdb7e835feb8372))
* fix type error ([c5f14c4](https://github.com/antvis/x6/commit/c5f14c419f31abd7c6fe1113bf90b55724745828))
* 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))
* **x6-vue-shape:** clear vue instance ([#1264](https://github.com/antvis/x6/issues/1264)) ([f8d874c](https://github.com/antvis/x6/commit/f8d874c4103e77df55b075cf5cd40a64945fe7f5)), closes [#1261](https://github.com/antvis/x6/issues/1261)
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
* release beta ([b5f3cfa](https://github.com/antvis/x6/commit/b5f3cfa2042f5196a995a38a8f41f140cabdce57))
### Features
* ✨ add html shape ([8d75504](https://github.com/antvis/x6/commit/8d7550413f9f6f3177eab9d0f7fef14c55949fb8))
* ✨ add snapline plugin ([294672b](https://github.com/antvis/x6/commit/294672b3066b15ab834ce2a3172facc49004c950))
* ✨ dispose components when unmount ([#1745](https://github.com/antvis/x6/issues/1745)) ([2bcd45f](https://github.com/antvis/x6/commit/2bcd45f818cfad5c19011660b30bbdd602787cd7))
* ✨ dot not update peerDependencies with x6 publish ([6d13809](https://github.com/antvis/x6/commit/6d138097cfce1755164f166a5e0c44d05b399528))
* ✨ use vue-demi manage vue3 and vue2 ([a96130d](https://github.com/antvis/x6/commit/a96130d12639c1e8d68adc2eea96ec1e6bbc99ce))
* add scroller plugin ([#2580](https://github.com/antvis/x6/issues/2580)) ([5e0e2ac](https://github.com/antvis/x6/commit/5e0e2acde7d7e259ea27d001983e950878d0ecc8))
* add x6-vue-shape ([4675975](https://github.com/antvis/x6/commit/4675975aa10395fc7c6827af4b08e6406eb4d93b))
* adjust event source and package deps ([#2826](https://github.com/antvis/x6/issues/2826)) ([a1bdb18](https://github.com/antvis/x6/commit/a1bdb18b1d1e1967e8e27862fed2e4fe8787a8cb))
* 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))
* support turbo ([1da55bf](https://github.com/antvis/x6/commit/1da55bfda73edaa96515998b5766e9ed5f241ee9))
* 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)
### Performance Improvements
* ⚡️ optimize node render performance ([6554959](https://github.com/antvis/x6/commit/65549599d2f82f8052d16776c8d36ce7ee2fba9b))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0
* force release 2.0-beta
* force release 2.0-beta
* 2.0-beta
### Dependencies
* **@antv/x6:** upgraded to 1.0.0
# @antv/x6-vue-shape 1.0.0 (2022-11-04)

@ -1,4 +1,4 @@
import { NodeView } from '@antv/x6'
import { NodeView, Dom } from '@antv/x6'
import { isVue2, isVue3, createApp, h, Vue2 } from 'vue-demi'
import { VueShape } from './node'
import { shapeMaps } from './registry'
@ -71,6 +71,30 @@ export class VueShapeView extends NodeView<VueShape> {
return root
}
onMouseDown(e: Dom.MouseDownEvent, x: number, y: number) {
const target = e.target as Element
const tagName = target.tagName.toLowerCase()
if (tagName === 'input') {
const type = target.getAttribute('type')
if (
type == null ||
[
'text',
'password',
'number',
'email',
'search',
'tel',
'url',
].includes(type)
) {
return
}
}
super.onMouseDown(e, x, y)
}
unmount() {
if (isActive()) {
disconnect(this.cell.id)

@ -1,3 +1,60 @@
## @antv/x6 [1.1.1](https://github.com/antvis/x6/compare/@antv/x6@1.1.0...@antv/x6@1.1.1) (2022-11-05)
### chore
* bump to 2.0 ([a02ca20](https://github.com/antvis/x6/commit/a02ca20f054d2eada7806f76b0abe5ae51fb18d1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6-common:** upgraded to 1.1.1
* **@antv/x6-geometry:** upgraded to 1.0.2
# @antv/x6 [1.1.0](https://github.com/antvis/x6/compare/@antv/x6@1.0.1...@antv/x6@1.1.0) (2022-11-05)
### Features
* sync some commit from v1 ([#2851](https://github.com/antvis/x6/issues/2851)) ([a772025](https://github.com/antvis/x6/commit/a7720251ff42f2892bff9c3cd5159932322362b1))
### Dependencies
* **@antv/x6-common:** upgraded to 1.1.0
## @antv/x6 [1.0.1](https://github.com/antvis/x6/compare/@antv/x6@1.0.0...@antv/x6@1.0.1) (2022-11-05)
### chore
* bump to 2.0 ([04cd9de](https://github.com/antvis/x6/commit/04cd9de505bd92a70f33dbc0cfc75b4f9b8126c1))
### BREAKING CHANGES
* bump to 2.0
### Dependencies
* **@antv/x6-common:** upgraded to 1.0.1
* **@antv/x6-geometry:** upgraded to 1.0.1
# @antv/x6 1.0.0 (2022-11-05)

@ -1,6 +1,6 @@
{
"name": "@antv/x6",
"version": "1.0.0",
"version": "1.1.1",
"description": "JavaScript diagramming library that uses SVG and HTML for rendering",
"main": "lib/index.js",
"module": "es/index.js",
@ -44,8 +44,8 @@
"pretest": "rss"
},
"dependencies": {
"@antv/x6-common": "1.0.0",
"@antv/x6-geometry": "1.0.0",
"@antv/x6-common": "1.1.1",
"@antv/x6-geometry": "1.0.2",
"utility-types": "^3.10.0"
},
"author": {

@ -113,27 +113,14 @@ export class MouseWheel extends Base {
targetScale = NumberExt.clamp(targetScale, minScale, maxScale)
if (targetScale !== currentScale) {
const scroller = this.graph.getPlugin<any>('scroller')
if (scroller) {
if (this.widgetOptions.zoomAtMousePosition) {
const origin = this.graph.coord.clientToLocalPoint(this.startPos)
scroller.zoom(targetScale, {
absolute: true,
center: origin.clone(),
})
} else {
scroller.zoom(targetScale, { absolute: true })
}
if (this.widgetOptions.zoomAtMousePosition) {
const origin = this.graph.coord.clientToLocalPoint(this.startPos)
this.graph.zoom(targetScale, {
absolute: true,
center: origin.clone(),
})
} else {
if (this.widgetOptions.zoomAtMousePosition) {
const origin = this.graph.coord.clientToGraphPoint(this.startPos)
this.graph.zoom(targetScale, {
absolute: true,
center: origin.clone(),
})
} else {
this.graph.zoom(targetScale, { absolute: true })
}
this.graph.zoom(targetScale, { absolute: true })
}
}
this.currentScale = null

@ -41,7 +41,9 @@ export namespace Options {
clickThreshold: number
magnetThreshold: number | 'onleave'
preventDefaultDblClick: boolean
preventDefaultContextMenu: boolean
preventDefaultContextMenu:
| boolean
| ((this: Graph, { view }: { view: CellView | null }) => boolean)
preventDefaultMouseDown: boolean
preventDefaultBlankAction: boolean
interacting: CellView.Interacting

@ -133,13 +133,27 @@ export class GraphView extends View {
}
}
protected isPreventDefaultContextMenu(view: CellView | null) {
let preventDefaultContextMenu = this.options.preventDefaultContextMenu
if (typeof preventDefaultContextMenu === 'function') {
preventDefaultContextMenu = FunctionExt.call(
preventDefaultContextMenu,
this.graph,
{ view },
)
}
return preventDefaultContextMenu
}
protected onContextMenu(evt: Dom.ContextMenuEvent) {
if (this.options.preventDefaultContextMenu) {
const e = this.normalizeEvent(evt)
const view = this.findView(e.target)
if (this.isPreventDefaultContextMenu(view)) {
evt.preventDefault()
}
const e = this.normalizeEvent(evt)
const view = this.findView(e.target)
if (this.guard(e, view)) {
return
}
@ -195,7 +209,10 @@ export class GraphView extends View {
if (view) {
view.onMouseDown(e, localPoint.x, localPoint.y)
} else {
if (this.options.preventDefaultBlankAction) {
if (
this.options.preventDefaultBlankAction &&
['touchstart'].includes(e.type)
) {
e.preventDefault()
}
@ -460,9 +477,11 @@ export class GraphView extends View {
}
protected onMagnetContextMenu(e: Dom.ContextMenuEvent) {
if (this.options.preventDefaultContextMenu) {
const view = this.findView(e.target)
if (this.isPreventDefaultContextMenu(view)) {
e.preventDefault()
}
this.handleMagnetEvent(e, (view, e, magnet, x, y) => {
view.onMagnetContextMenu(e, magnet, x, y)
})

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

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

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

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

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

@ -326,6 +326,9 @@ export const router: Router.Definition<ManhattanRouterOptions> = function (
// Cannot found the partial route.
if (partialRoute === null) {
// eslint-next-line
console.warn(`Unable to execute manhattan algorithm, use orth instead`)
return FunctionExt.call(
options.fallbackRouter,
this,

@ -80,10 +80,12 @@ export class Button extends ToolsView.ToolItem<
let tangent
let position
let angle
if (NumberExt.isPercentage(distance)) {
tangent = view.getTangentAtRatio(parseFloat(distance) / 100)
const d = NumberExt.normalizePercentage(distance, 1)
if (d >= 0 && d <= 1) {
tangent = view.getTangentAtRatio(d)
} else {
tangent = view.getTangentAtLength(distance)
tangent = view.getTangentAtLength(d)
}
if (tangent) {

@ -15,7 +15,7 @@ export class CellEditor extends ToolsView.ToolItem<
render() {
this.createElement()
this.update()
this.updateEditor()
this.autoFocus()
this.delegateDocumentEvents(this.options.documentEvents!)
@ -34,7 +34,7 @@ export class CellEditor extends ToolsView.ToolItem<
this.container.appendChild(this.editor)
}
update() {
updateEditor() {
const { graph, cell, editor } = this
const style = editor.style

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

@ -7,6 +7,7 @@
.@{x6-prefix}-graph {
position: relative;
outline: none;
touch-action: none;
&-background,
&-grid,

@ -65,7 +65,9 @@ export class AttrManager {
if (normal == null) {
normal = {}
}
const normalName = StringExt.kebabCase(name)
const normalName = Dom.CASE_SENSITIVE_ATTR.includes(name)
? name
: StringExt.kebabCase(name)
normal[normalName] = val as Attr.SimpleAttrValue
}
})

@ -1975,14 +1975,24 @@ export class EdgeView<
data: EventData.ArrowheadDragging,
) {
const graph = this.graph
const snap = graph.options.connecting.snap
const radius = (typeof snap === 'object' && snap.radius) || 50
const views = graph.findViewsInArea({
const { snap, allowEdge } = graph.options.connecting;
const radius = (typeof snap === 'object' && snap.radius) || 50;
const findViewsOption = {
x: x - radius,
y: y - radius,
width: 2 * radius,
height: 2 * radius,
})
};
const views = graph.renderer.findViewsInArea(findViewsOption);
if (allowEdge) {
const edgeViews = graph.renderer.findEdgeViewsInArea(findViewsOption).filter( view => {
return view != this;
});
views.push(...edgeViews);
}
const prevView = data.closestView || null
const prevMagnet = data.closestMagnet || null

@ -294,6 +294,11 @@ export class NodeView<
portContentElement,
)
let portClass = 'x6-port'
if (port.group) {
portClass += ` x6-port-${port.group}`
}
Dom.addClass(portElement, portClass)
Dom.addClass(portElement, 'x6-port')
Dom.addClass(portContentElement, 'x6-port-body')
portElement.appendChild(portContentElement)
@ -655,9 +660,18 @@ export class NodeView<
// Picks the node with the highest `z` index
if (options.frontOnly) {
candidates = candidates.slice(-1)
if (candidates.length > 0) {
const zIndexMap = ArrayExt.groupBy(candidates, 'zIndex')
const maxZIndex = ArrayExt.max(Object.keys(zIndexMap))
if (maxZIndex) {
candidates = zIndexMap[maxZIndex]
}
}
}
// Filter the nodes which is invisiable
candidates = candidates.filter((candidate) => candidate.visible)
let newCandidateView = null
const prevCandidateView = data.candidateEmbedView
const validateEmbeding = options.validate
@ -713,6 +727,7 @@ export class NodeView<
}
finalizeEmbedding(e: Dom.MouseUpEvent, data: EventData.MovingTargetNode) {
this.graph.startBatch('embedding')
const cell = data.cell || this.cell
const graph = data.graph || this.graph
const view = graph.findViewByCell(cell)
@ -733,9 +748,8 @@ export class NodeView<
edge.updateParent({ ui: true })
})
const localPoint = graph.snapToGrid(e.clientX, e.clientY)
if (view) {
if (view && candidateView) {
const localPoint = graph.snapToGrid(e.clientX, e.clientY)
view.notify('node:embedded', {
e,
cell,
@ -747,6 +761,8 @@ export class NodeView<
currentParent: cell.getParent(),
})
}
this.graph.stopBatch('embedding')
}
getDelegatedView() {
@ -811,6 +827,9 @@ export class NodeView<
})
this.stopPropagation(e)
} else {
if (Dom.hasClass(magnet, 'x6-port-body') || !!magnet.closest('.x6-port-body')) {
this.stopPropagation(e)
}
this.onMouseDown(e, x, y)
}

62807
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
packages:
- 'packages/*'
- 'scripts/*'
- 'examples/*'
# - 'sites/*'
- packages/*
- scripts/*
- examples/*
# - sites/*

@ -0,0 +1,24 @@
# @antv/x6-build-tools 1.0.0 (2022-11-05)
### Bug Fixes
* error -> ETXTBSY: text file is busy ([814e0dd](https://github.com/antvis/x6/commit/814e0dd137ab766b3f80e737bef9485d40a315f4))
* unique cmd file name ([da18f12](https://github.com/antvis/x6/commit/da18f126ea3a9d09a2a3e6c2ff680bcd4d916845))
### chore
* bump to 2.0 ([94af7fa](https://github.com/antvis/x6/commit/94af7fa7ec96e3417db9aa5d245751507ae2671e))
* bump to 2.0 ([ecffe1a](https://github.com/antvis/x6/commit/ecffe1a2a8bcf5538f027c3c54acaefc50215023))
### Features
* add rss command to run sharable scripts ([4a45fa7](https://github.com/antvis/x6/commit/4a45fa7d386dbb17ce60102cb406905d439a64bd))
### BREAKING CHANGES
* bump to 2.0
* bump to 2.0

@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/x6-build-tools",
"version": "2.0.0",
"version": "1.0.0",
"type": "module",
"bin": {
"rss": "./bin/rss.js",