Revize 092c8d2d
Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)
sources/src/main/webapp/js/app.js | ||
---|---|---|
49 | 49 |
/** @prop {array<Group>} groupList */ |
50 | 50 |
this.groupList = []; |
51 | 51 |
|
52 |
/** TODO: jsDoc */ |
|
53 |
this.archetype = { |
|
54 |
vertex: [], |
|
55 |
edge: [], |
|
56 |
icon: [], |
|
57 |
}; |
|
58 |
|
|
52 | 59 |
/** |
53 | 60 |
* Loads graph using diagram (if available). |
54 | 61 |
* @param diagramId Diagram identifier. |
sources/src/main/webapp/js/graphLoader.js | ||
---|---|---|
20 | 20 |
|
21 | 21 |
var canvasSize = ((data.vertices.length * 75) / Math.round(Math.sqrt(data.vertices.length))) + 1000; |
22 | 22 |
|
23 |
// archetypes |
|
24 |
app.archetype.vertex = data.vertexArchetypes; |
|
25 |
app.archetype.edge = data.edgeArchetypes; |
|
26 |
app.archetype.icon = data.archetypeIcons; |
|
27 |
|
|
23 | 28 |
// vertices |
24 | 29 |
var vertexMap = {}; |
25 | 30 |
data.vertices.forEach(function(component) { |
Také k dispozici: Unified diff
vertex/edge archetypes are stored in App