mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
Added notation for titles on subgraphs
This commit is contained in:
@@ -212,7 +212,7 @@ exports.defaultStyle = function () {
|
||||
/**
|
||||
* Clears the internal graph db so that a new graph can be parsed.
|
||||
*/
|
||||
exports.addSubGraph = function (list) {
|
||||
exports.addSubGraph = function (list, title) {
|
||||
function uniq(a) {
|
||||
var prims = {"boolean":{}, "number":{}, "string":{}}, objs = [];
|
||||
|
||||
@@ -229,7 +229,7 @@ exports.addSubGraph = function (list) {
|
||||
|
||||
subG = uniq(subG.concat.apply(subG,list));
|
||||
|
||||
subGraphs.push(subG);
|
||||
subGraphs.push({nodes:subG,title:title});
|
||||
};
|
||||
exports.getSubGraphs = function (list) {
|
||||
return subGraphs;
|
||||
|
Reference in New Issue
Block a user