mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 20:59:15 +08:00
fix: state support destroyed item and shape add isAnchorPiint attr
This commit is contained in:
parent
8de4020bb7
commit
3181ef6af5
@ -32,11 +32,20 @@ module.exports = {
|
||||
return;
|
||||
}
|
||||
|
||||
const { item } = e;
|
||||
const { item, target } = e;
|
||||
const hasLocked = item.hasLocked();
|
||||
if (hasLocked) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果拖动的target 是linkPoints / anchorPoints 则不允许拖动
|
||||
if (target) {
|
||||
const isAnchorPoint = target.get('isAnchorPoint');
|
||||
if (isAnchorPoint) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const graph = this.graph;
|
||||
|
||||
this.targets = [];
|
||||
|
Loading…
Reference in New Issue
Block a user