Fixes Typo, remove console.log

This commit is contained in:
Olivier Leveau
2023-01-25 17:02:10 +01:00
parent 250f1f9687
commit f7756ccc00
5 changed files with 8 additions and 17 deletions

View File

@@ -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)

View File

@@ -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];
}
/**
*
*/

View File

@@ -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)(

View File

@@ -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;
};

View File

@@ -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)