Skip to content

Commit

Permalink
- fix: error occurs while dragging combo with drag-node behavior; (#4073
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Yanyan-Wang authored Nov 18, 2022
1 parent 58ebfa9 commit 9dfe146
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

### 4.7.14

- fix: error occurs while dragging combo with drag-node behavior;

### 4.7.13

- fix: unexpected move with fitCenter with animation;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-core",
"version": "0.7.13",
"version": "0.7.14",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const colorSet = {
};

export default {
version: '0.7.13',
version: '0.7.14',
rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container',
Expand Down
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-element",
"version": "0.7.13",
"version": "0.7.14",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"dependencies": {
"@antv/g-base": "^0.5.1",
"@antv/g6-core": "0.7.13",
"@antv/g6-core": "0.7.14",
"@antv/util": "~2.0.5"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/g6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "4.7.13",
"version": "4.7.14",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down Expand Up @@ -66,7 +66,7 @@
]
},
"dependencies": {
"@antv/g6-pc": "0.7.13"
"@antv/g6-pc": "0.7.14"
},
"devDependencies": {
"@babel/core": "^7.7.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/g6/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import G6 from '@antv/g6-pc';

G6.version = '4.7.13';
G6.version = '4.7.14';

export * from '@antv/g6-pc';
export default G6;
export const version = '4.7.13';
export const version = '4.7.14';
8 changes: 4 additions & 4 deletions packages/pc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-pc",
"version": "0.7.13",
"version": "0.7.14",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down Expand Up @@ -75,9 +75,9 @@
"@antv/g-canvas": "^0.5.2",
"@antv/g-math": "^0.1.1",
"@antv/g-svg": "^0.5.1",
"@antv/g6-core": "0.7.13",
"@antv/g6-element": "0.7.13",
"@antv/g6-plugin": "0.7.13",
"@antv/g6-core": "0.7.14",
"@antv/g6-element": "0.7.14",
"@antv/g6-plugin": "0.7.14",
"@antv/hierarchy": "^0.6.7",
"@antv/layout": "^0.3.0",
"@antv/matrix-util": "^3.1.0-beta.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/pc/src/behavior/drag-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export default {
* @param evt event param
*/
onDragMove(evt: IG6GraphEvent) {
if (evt.item?.getType?.() !== 'node') {
this.onDragEnd();
return;
}
if (!this.mousedown) return;
if (!this.dragstart) {
// dragstart
Expand Down
2 changes: 1 addition & 1 deletion packages/pc/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const textColor = 'rgb(0, 0, 0)';
const colorSet = getColorsWithSubjectColor(subjectColor, backColor);

export default {
version: '0.7.13',
version: '0.7.14',
rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container',
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6-plugin",
"version": "0.7.13",
"version": "0.7.14",
"description": "G6 Plugin",
"main": "lib/index.js",
"module": "es/index.js",
Expand All @@ -22,8 +22,8 @@
"@antv/g-base": "^0.5.1",
"@antv/g-canvas": "^0.5.2",
"@antv/g-svg": "^0.5.2",
"@antv/g6-core": "0.7.13",
"@antv/g6-element": "0.7.13",
"@antv/g6-core": "0.7.14",
"@antv/g6-element": "0.7.14",
"@antv/matrix-util": "^3.1.0-beta.3",
"@antv/scale": "^0.3.4",
"@antv/util": "^2.0.9",
Expand Down
12 changes: 10 additions & 2 deletions packages/site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default defineConfig({
showAPIDoc: true, // 是否在 demo 页展示API文档
themeSwitcher: 'g2',
versions: { // 历史版本以及切换下拉菜单
[version]: 'https://g6.antv.antgroup.com',
'3.2.x': 'https://g6-v3-2.antv.vision',
[version]: 'https://g6.antv.antgroup.com',
'3.2.x': 'https://g6-v3-2.antv.vision',
},
docsearchOptions: { // 头部搜索框配置
apiKey: '9d1cd586972bb492b7b41b13a949ef30',
Expand Down Expand Up @@ -574,6 +574,13 @@ export default defineConfig({
{ name: 'yunos', img: 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*_js7SaNosUwAAAAAAAAAAABkARQnAQ', },
{ name: '菜鸟', img: 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*TgV-RZDODJIAAAAAAAAAAABkARQnAQ', },
],
internalSite: {
url: 'https://g6.antv.antgroup.com',
name: {
zh: '极速站点',
en: 'Fast Site',
},
},
},
mfsu: false,
alias: {
Expand All @@ -583,4 +590,5 @@ export default defineConfig({
],
scripts: [
],
jsMinifier: 'terser',
});
4 changes: 2 additions & 2 deletions packages/site/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/g6-site",
"version": "4.7.13",
"version": "4.7.14",
"description": "G6 sites deployed on gh-pages",
"keywords": [
"antv",
Expand Down Expand Up @@ -51,4 +51,4 @@
"resolutions": {
"@types/react": "^16.9.35"
}
}
}

0 comments on commit 9dfe146

Please sign in to comment.