Revize 18f754c5
Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)
sources/src/main/webapp/js/graphLoader.js | ||
---|---|---|
119 | 119 |
highlightedNode = group; |
120 | 120 |
} |
121 | 121 |
|
122 |
// vertices |
|
123 |
app.vertexList.filter(function(vertex) { |
|
124 |
return component.verticesId.indexOf(vertex.id) > -1; |
|
125 |
}).forEach(function(vertex) { |
|
126 |
group.addVertex(vertex); |
|
127 |
}); |
|
128 |
|
|
129 | 122 |
// position |
130 | 123 |
var position = component.position; |
131 | 124 |
if (position === null || app.utils.isUndefined(position)) { |
... | ... | |
139 | 132 |
group.setPosition(new Coordinates(position.x, position.y)); |
140 | 133 |
} |
141 | 134 |
|
135 |
// vertices |
|
136 |
app.vertexList.filter(function(vertex) { |
|
137 |
return component.verticesId.indexOf(vertex.id) > -1; |
|
138 |
}).forEach(function(vertex) { |
|
139 |
group.addVertex(vertex); |
|
140 |
}); |
|
141 |
|
|
142 | 142 |
app.nodeList.push(group); |
143 | 143 |
app.groupList.push(group); |
144 | 144 |
|
Také k dispozici: Unified diff
fixed diagram loader to set position of a group before its vertices are added