Revize 3bbec9c7
Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)
sources/src/main/webapp/js/services/graphExporter.js | ||
---|---|---|
1 |
/** |
|
2 |
* @constructor |
|
3 |
*/ |
|
4 |
function GraphExporter() { |
|
5 |
|
|
1 |
class GraphExporter { |
|
6 | 2 |
/** |
7 | 3 |
* Exports graph to JSON. |
8 | 4 |
*/ |
9 |
this.run = function() {
|
|
5 |
run() {
|
|
10 | 6 |
// nodes excluded to the sidebar |
11 | 7 |
let excludedNodeList = app.sidebarComponent.excludedNodeListComponent.getNodeList(); |
12 | 8 |
let sideBar = excludedNodeList.map(node => { |
... | ... | |
32 | 28 |
highlightedEdge: Utils.isUndefined(highlightedEdge) ? '' : highlightedEdge.id, |
33 | 29 |
}; |
34 | 30 |
} |
35 |
|
|
36 | 31 |
} |
Také k dispozici: Unified diff
reworked GraphExporter to ES6 class