mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 03:33:48 +01:00
Performance optimization to avoid order change.
This commit is contained in:
parent
90bf53d762
commit
c1d45655d3
@ -934,10 +934,13 @@ abstract class Topic extends NodeGraph {
|
||||
}
|
||||
|
||||
setOrder(value: number): void {
|
||||
const changed = this.getModel().getOrder() !== value;
|
||||
const model = this.getModel();
|
||||
model.setOrder(value);
|
||||
|
||||
this.redraw();
|
||||
if (changed) {
|
||||
this.redraw();
|
||||
}
|
||||
}
|
||||
|
||||
connectTo(targetTopic: Topic, canvas: Canvas): void {
|
||||
|
Loading…
Reference in New Issue
Block a user