mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
fix: fix incorrect label position on edges (#5234)
Co-authored-by: yvonneyx <banxuan.zyx@antgroup.com>
This commit is contained in:
parent
0a0dc61a88
commit
66a7580ea4
@ -146,6 +146,11 @@ export default class Edge extends Item {
|
||||
this.hide(false);
|
||||
}
|
||||
this.changedStates = [];
|
||||
|
||||
this.labelGroup.children
|
||||
.filter((element) => element.attributes.dataIsLabel)
|
||||
.forEach((shape) => (shape.attributes.dataOriginPosition = ''));
|
||||
|
||||
this.updateLabelPosition(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user