mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00
Fixes Typo, remove console.log
This commit is contained in:
@@ -96,12 +96,12 @@ sequenceDiagram
|
||||
|
||||
### 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
|
||||
... actors ...
|
||||
end
|
||||
box Group whithout description
|
||||
box Group without description
|
||||
... actors ...
|
||||
end
|
||||
box rgb(33,66,99)
|
||||
|
@@ -230,9 +230,9 @@ export const parseBoxData = function (str) {
|
||||
title = str.trim();
|
||||
}
|
||||
} else {
|
||||
var s = new Option().style;
|
||||
s.color = color;
|
||||
if (s.color !== color) {
|
||||
const style = new Option().style;
|
||||
style.color = color;
|
||||
if (style.color !== color) {
|
||||
color = 'transparent';
|
||||
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) {
|
||||
const boxplustextGroup = elem.append('g');
|
||||
var g = boxplustextGroup;
|
||||
const g = boxplustextGroup;
|
||||
drawBackgroundRect(g, box);
|
||||
if (box.name) {
|
||||
_drawTextCandidateFunc(conf)(
|
||||
|
@@ -110,7 +110,6 @@ const generateHeader = (file: string): string => {
|
||||
*/
|
||||
const changeToFinalDocDir = (file: string): string => {
|
||||
const newDir = file.replace(SOURCE_DOCS_DIR, FINAL_DOCS_DIR);
|
||||
console.log('Replacing in ' + file + ' > ' + newDir);
|
||||
mkdirSync(dirname(newDir), { recursive: true });
|
||||
return newDir;
|
||||
};
|
||||
|
@@ -60,13 +60,13 @@ sequenceDiagram
|
||||
|
||||
### 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
|
||||
... actors ...
|
||||
end
|
||||
box Group whithout description
|
||||
box Group without description
|
||||
... actors ...
|
||||
end
|
||||
box rgb(33,66,99)
|
||||
|
Reference in New Issue
Block a user