mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 10:20:06 +02:00
Fixes Typo, remove console.log
This commit is contained in:
@@ -96,12 +96,12 @@ sequenceDiagram
|
|||||||
|
|
||||||
### Grouping / Box
|
### Grouping / Box
|
||||||
|
|
||||||
The actor(s) can be grouped in vertical boxes. You can define a color (if not it will be transparent) and/or a descriptive label using the following notation:
|
The actor(s) can be grouped in vertical boxes. You can define a color (if not, it will be transparent) and/or a descriptive label using the following notation:
|
||||||
|
|
||||||
box Aqua Group Description
|
box Aqua Group Description
|
||||||
... actors ...
|
... actors ...
|
||||||
end
|
end
|
||||||
box Group whithout description
|
box Group without description
|
||||||
... actors ...
|
... actors ...
|
||||||
end
|
end
|
||||||
box rgb(33,66,99)
|
box rgb(33,66,99)
|
||||||
|
@@ -230,9 +230,9 @@ export const parseBoxData = function (str) {
|
|||||||
title = str.trim();
|
title = str.trim();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var s = new Option().style;
|
const style = new Option().style;
|
||||||
s.color = color;
|
style.color = color;
|
||||||
if (s.color !== color) {
|
if (style.color !== color) {
|
||||||
color = 'transparent';
|
color = 'transparent';
|
||||||
title = str.trim();
|
title = str.trim();
|
||||||
}
|
}
|
||||||
@@ -400,14 +400,6 @@ function insertProperties(actor, properties) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param boxId
|
|
||||||
*/
|
|
||||||
function boxStart(boxId) {
|
|
||||||
currentBox = boxes[boxId];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@@ -512,7 +512,7 @@ export const drawActor = function (elem, actor, conf, isFooter) {
|
|||||||
|
|
||||||
export const drawBox = function (elem, box, conf) {
|
export const drawBox = function (elem, box, conf) {
|
||||||
const boxplustextGroup = elem.append('g');
|
const boxplustextGroup = elem.append('g');
|
||||||
var g = boxplustextGroup;
|
const g = boxplustextGroup;
|
||||||
drawBackgroundRect(g, box);
|
drawBackgroundRect(g, box);
|
||||||
if (box.name) {
|
if (box.name) {
|
||||||
_drawTextCandidateFunc(conf)(
|
_drawTextCandidateFunc(conf)(
|
||||||
|
@@ -110,7 +110,6 @@ const generateHeader = (file: string): string => {
|
|||||||
*/
|
*/
|
||||||
const changeToFinalDocDir = (file: string): string => {
|
const changeToFinalDocDir = (file: string): string => {
|
||||||
const newDir = file.replace(SOURCE_DOCS_DIR, FINAL_DOCS_DIR);
|
const newDir = file.replace(SOURCE_DOCS_DIR, FINAL_DOCS_DIR);
|
||||||
console.log('Replacing in ' + file + ' > ' + newDir);
|
|
||||||
mkdirSync(dirname(newDir), { recursive: true });
|
mkdirSync(dirname(newDir), { recursive: true });
|
||||||
return newDir;
|
return newDir;
|
||||||
};
|
};
|
||||||
|
@@ -60,13 +60,13 @@ sequenceDiagram
|
|||||||
|
|
||||||
### Grouping / Box
|
### Grouping / Box
|
||||||
|
|
||||||
The actor(s) can be grouped in vertical boxes. You can define a color (if not it will be transparent) and/or a descriptive label using the following notation:
|
The actor(s) can be grouped in vertical boxes. You can define a color (if not, it will be transparent) and/or a descriptive label using the following notation:
|
||||||
|
|
||||||
```
|
```
|
||||||
box Aqua Group Description
|
box Aqua Group Description
|
||||||
... actors ...
|
... actors ...
|
||||||
end
|
end
|
||||||
box Group whithout description
|
box Group without description
|
||||||
... actors ...
|
... actors ...
|
||||||
end
|
end
|
||||||
box rgb(33,66,99)
|
box rgb(33,66,99)
|
||||||
|
Reference in New Issue
Block a user