Support styling of subgraphs

This commit is contained in:
Josh Junon
2019-05-24 17:08:45 +02:00
parent 7d3578b31a
commit f51596eb61
7 changed files with 192 additions and 111 deletions

View File

@@ -272,7 +272,7 @@ export const draw = function (text, id) {
const subGraphs = flowDb.getSubGraphs()
for (let i = subGraphs.length - 1; i >= 0; i--) {
subG = subGraphs[i]
flowDb.addVertex(subG.id, subG.title, 'group', undefined)
flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes)
}
// Fetch the verices/nodes and edges/links from the parsed graph definition