mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
WIP
This commit is contained in:
@@ -374,10 +374,16 @@ statement
|
||||
{$$=yy.addSubGraph($textNoTags,$document,$text);}
|
||||
| subgraph SPACE textNoTags separator document end
|
||||
{$$=yy.addSubGraph($textNoTags,$document,$textNoTags);}
|
||||
// | subgraph SPACE textNoTags separator document end
|
||||
// {$$=yy.addSubGraph($textNoTags,$document,$textNoTags);}
|
||||
| subgraph separator document end
|
||||
{$$=yy.addSubGraph(undefined,$document,undefined);}
|
||||
|
||||
| lane SPACE textNoTags SQS text SQE separator document end
|
||||
{$$=yy.addSubGraph($textNoTags,$document,$text, 'lane');}
|
||||
| lane SPACE textNoTags separator document end
|
||||
{$$=yy.addSubGraph($textNoTags,$document,$textNoTags, 'lane');}
|
||||
| lane separator document end
|
||||
{$$=yy.addSubGraph(undefined,$document,undefined, 'lane');}
|
||||
|
||||
| direction
|
||||
| acc_title acc_title_value { $$=$acc_title_value.trim();yy.setAccTitle($$); }
|
||||
| acc_descr acc_descr_value { $$=$acc_descr_value.trim();yy.setAccDescription($$); }
|
||||
|
@@ -537,7 +537,8 @@ export const defaultStyle = function () {
|
||||
export const addSubGraph = function (
|
||||
_id: { text: string },
|
||||
list: string[],
|
||||
_title: { text: string; type: string }
|
||||
_title: { text: string; type: string },
|
||||
type = 'cluster'
|
||||
) {
|
||||
let id: string | undefined = _id.text.trim();
|
||||
let title = _title.text;
|
||||
@@ -586,6 +587,7 @@ export const addSubGraph = function (
|
||||
classes: [],
|
||||
dir,
|
||||
labelType: _title.type,
|
||||
type,
|
||||
};
|
||||
|
||||
log.info('Adding', subGraph.id, subGraph.nodes, subGraph.dir);
|
||||
|
Reference in New Issue
Block a user