mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
fix: update clear order
This commit is contained in:
parent
da2ebff025
commit
7cd20cb76b
@ -334,9 +334,7 @@ export class EdgeFilterLens extends Base {
|
||||
*/
|
||||
public clear() {
|
||||
const { graph, delegate: lensDelegate, cachedTransientNodes, cachedTransientEdges } = this;
|
||||
cachedTransientNodes.clear();
|
||||
cachedTransientEdges.clear();
|
||||
|
||||
|
||||
if (lensDelegate && !lensDelegate.destroyed) {
|
||||
graph.drawTransient('circle', 'lens-shape', { action: 'remove' });
|
||||
}
|
||||
@ -346,6 +344,9 @@ export class EdgeFilterLens extends Base {
|
||||
cachedTransientEdges.forEach((id) => {
|
||||
graph.drawTransient('edge', id, { action: 'remove' });
|
||||
});
|
||||
|
||||
cachedTransientNodes.clear();
|
||||
cachedTransientEdges.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user