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