mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 11:37:57 +01:00
Fix order
This commit is contained in:
parent
2d6bde66d8
commit
cf549a13e7
@ -30,7 +30,7 @@ const initialization = (designer: Designer) => {
|
||||
});
|
||||
};
|
||||
|
||||
const persistence = new LocalStorageManager('samples/{id}.wxml', false);
|
||||
const persistence = new LocalStorageManager('samples/{id}.wxml', false, false);
|
||||
const mapId = 'welcome';
|
||||
const options: EditorOptions = {
|
||||
zoom: 0.8,
|
||||
|
@ -0,0 +1 @@
|
||||
<map name="1276321" version="tango"><topic central="true" text="sss" id="1"><icon id="onoff_status_offline"/><topic position="99,0" order="0" text="sssss" shrink="true" id="7" bgColor="rgb(224,229,239)"><icon id="chart_organisation"/><topic position="176,5" order="0" text="sss" id="2" bgColor="rgb(224,229,239)"/></topic><topic position="-79,0" order="1" text="1" id="5" bgColor="rgb(224,229,239)"><topic position="-133,-112" order="0" text="2" id="4" bgColor="rgb(224,229,239)"/><topic position="-133,0" order="1" text="1" id="6" bgColor="rgb(224,229,239)"><topic position="-186,-80" order="0" text="1" id="14" bgColor="rgb(224,229,239)"/><topic position="-186,-48" order="1" text="2" id="15" bgColor="rgb(224,229,239)"/><topic position="-186,-16" order="2" text="4" id="17" bgColor="rgb(224,229,239)"/><topic position="-186,16" order="3" text="3" id="16" bgColor="rgb(224,229,239)"/><topic position="-186,48" order="4" text="5" id="18" bgColor="rgb(224,229,239)"/><topic position="-186,80" order="5" text="6" id="19" bgColor="rgb(224,229,239)"/></topic><topic position="-133,112" order="2" text="1" id="13" bgColor="rgb(224,229,239)"/></topic></topic></map>
|
@ -411,6 +411,7 @@ class XMLSerializerTango implements XMLMindmapSerializer {
|
||||
if (topic.getType() !== 'CentralTopic') {
|
||||
topic
|
||||
.getChildren()
|
||||
.sort((a, b) => a.getOrder() - b.getOrder())
|
||||
.forEach((child, index) => {
|
||||
if (child.getOrder() !== index) {
|
||||
child.setOrder(index);
|
||||
|
Loading…
Reference in New Issue
Block a user