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,11 +934,14 @@ 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);
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
this.redraw();
|
this.redraw();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
connectTo(targetTopic: Topic, canvas: Canvas): void {
|
connectTo(targetTopic: Topic, canvas: Canvas): void {
|
||||||
// Connect Graphical Nodes ...
|
// Connect Graphical Nodes ...
|
||||||
|
Loading…
Reference in New Issue
Block a user