Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyan-Wang committed Jan 27, 2021
1 parent 3cdb2f6 commit 0fbc33e
Show file tree
Hide file tree
Showing 15 changed files with 322 additions and 110 deletions.
10 changes: 10 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ graph.render();
```bash
$ npm install

# lerna bootstrap for multiple packages
$ npm run bootstrap

# build the packages
$ npm run build:all

# if you wanna watch one of the packages, e.g. packages/core
$ cd ./packages/core
$ npm run watch

# run test case
$ npm test

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ For more information of the usage, please refer to [Getting Started](https://ant
```bash
$ npm install

# lerna bootstrap for multiple packages
$ npm run bootstrap

# build the packages
$ npm run build:all

# if you wanna watch one of the packages, e.g. packages/core
$ cd ./packages/core
$ npm run watch

# run test case
$ npm test

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
]
},
"dependencies": {
"@antv/algorithm": "^0.0.6",
"@antv/algorithm": "^0.0.7",
"@antv/dom-util": "^2.0.1",
"@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/pc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@antv/g6-core": "^0.0.7",
"@antv/g6-plugin": "^0.0.6",
"@antv/g6-element": "^0.0.6",
"@antv/algorithm": "^0.0.6",
"@antv/algorithm": "^0.0.7",
"@antv/hierarchy": "^0.6.2",
"@antv/layout": "^0.0.16",
"@antv/matrix-util": "^3.0.4",
Expand Down
4 changes: 4 additions & 0 deletions packages/pc/src/behavior/drag-canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export default {
return;
}

if (!this.shouldBegin.call(this, e)) {
return;
}

if (self.keydown) return;
if (!(e.target && e.target.isCanvas && e.target.isCanvas())) return;

Expand Down
Loading

0 comments on commit 0fbc33e

Please sign in to comment.