Revize 6fd72b91
Přidáno uživatelem Tomáš Šimandl před více než 6 roky(ů)
sources/src/main/java/cz/zcu/kiv/offscreen/servlets/UploadFiles.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import com.google.common.base.Strings; |
4 | 4 |
import cz.zcu.kiv.offscreen.storage.FileLoader; |
5 |
import cz.zcu.kiv.offscreen.storage.FileManager; |
|
6 | 5 |
import cz.zcu.kiv.offscreen.user.DB; |
7 | 6 |
import cz.zcu.kiv.offscreen.user.Diagram; |
8 | 7 |
|
sources/src/main/webapp/js/components/edge.js | ||
---|---|---|
6 | 6 |
function Edge(props) { |
7 | 7 |
/** @prop {integer} id Unique identifier of the edge. */ |
8 | 8 |
this.id = props.id; |
9 |
/** @prop {integer} archetype Archetype of the edge. TODO: why is there multiple subedgeInfo for one edge? */ |
|
10 |
this.archetype = -1; |
|
11 | 9 |
|
12 | 10 |
var rootElement; |
13 | 11 |
|
sources/src/main/webapp/js/components/group.js | ||
---|---|---|
48 | 48 |
position = vertex.getPosition(); |
49 | 49 |
} |
50 | 50 |
|
51 |
var isIconShown = this.isIconsDisplayed(); |
|
52 |
if(isIconShown) showIconClick.bind(this)(null); |
|
53 |
|
|
54 |
vertex.removeIcon(); |
|
51 | 55 |
vertex.setGroup(this); |
52 | 56 |
vertex.setExcluded(this.isExcluded()); |
53 | 57 |
vertex.remove(this.isExcluded()); // edges of the vertex should be removed from DOM only if group is excluded |
... | ... | |
84 | 88 |
} |
85 | 89 |
|
86 | 90 |
vertexList.push(vertex); |
91 |
if(isIconShown) showIconClick.bind(this)(null); |
|
87 | 92 |
}; |
88 | 93 |
|
89 | 94 |
/** |
... | ... | |
408 | 413 |
this.include = function() { |
409 | 414 |
this.removeFromSidebarList(); |
410 | 415 |
|
411 |
this.setExcluded(false); |
|
412 |
this.remove(false); |
|
413 |
|
|
414 | 416 |
if(iconsDisplayed) { |
415 | 417 |
showIconClick.bind(this)(null); |
416 | 418 |
} |
419 |
|
|
420 |
this.setExcluded(false); |
|
421 |
this.remove(false); |
|
417 | 422 |
|
418 | 423 |
app.viewportComponent.addGroup(this); |
419 | 424 |
|
sources/src/main/webapp/js/components/vertex.js | ||
---|---|---|
263 | 263 |
return iconsDisplayed; |
264 | 264 |
}; |
265 | 265 |
|
266 |
this.removeIcon = function () { |
|
267 |
if(iconsDisplayed) { |
|
268 |
showIconClick.bind(this)(null) |
|
269 |
} |
|
270 |
}; |
|
266 | 271 |
|
267 | 272 |
/** |
268 | 273 |
* @returns true if the vertex is currently highlighted (in any way), otherwise false |
... | ... | |
410 | 415 |
this.include = function() { |
411 | 416 |
this.removeFromSidebarList(); |
412 | 417 |
|
413 |
this.setExcluded(false); |
|
418 |
this.removeIcon(); |
|
419 |
this.setExcluded(false); |
|
414 | 420 |
this.remove(false); |
415 | 421 |
|
416 |
if(iconsDisplayed) { |
|
417 |
showIconClick.bind(this)(null); |
|
418 |
} |
|
419 |
|
|
420 | 422 |
app.viewportComponent.addVertex(this); |
421 | 423 |
|
422 | 424 |
// set edges' ends |
Také k dispozici: Unified diff
symbol display bug fixes