fix: 自定义节点问题
This commit is contained in:
parent
4ef63ec96d
commit
3ad6bbc3e3
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ test
|
|||||||
dist
|
dist
|
||||||
资料
|
资料
|
||||||
\copyDist2Anyview.js
|
\copyDist2Anyview.js
|
||||||
|
g6Test
|
@ -145,8 +145,11 @@ export const Util = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
registerShape(shapeName: string, shapeDefinition, extendShapeType?: string) {
|
registerShape(shapeName: string, shapeDefinition, extendShapeType?: string) {
|
||||||
// 不定义update,g6的自定义节点里面的update好像有bug
|
if(!shapeDefinition.update) {
|
||||||
shapeDefinition.update = undefined;
|
// 因为大多数节点继承了rect,rect的update有时候会和选定高亮功能有冲突,所以打个补丁
|
||||||
|
shapeDefinition.update = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
return registerNode(shapeName, shapeDefinition, extendShapeType);
|
return registerNode(shapeName, shapeDefinition, extendShapeType);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user