mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +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 {
|
setOrder(value: number): void {
|
||||||
|
const changed = this.getModel().getOrder() !== value;
|
||||||
const model = this.getModel();
|
const model = this.getModel();
|
||||||
model.setOrder(value);
|
model.setOrder(value);
|
||||||
|
|
||||||
this.redraw();
|
if (changed) {
|
||||||
|
this.redraw();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
connectTo(targetTopic: Topic, canvas: Canvas): void {
|
connectTo(targetTopic: Topic, canvas: Canvas): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user