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

View File

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

View File

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

View File

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

View File

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