Merge pull request #3947 from nekikara/bug/3865_c4_context_border_color

Bug/3865 C4Context: $borderColor has no effect
This commit is contained in:
Knut Sveidqvist 2023-01-11 17:56:00 +01:00 committed by GitHub
commit 1fca5131c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,7 @@ export const drawC4Shape = function (elem, c4Shape, conf) {
const c4ShapeElem = elem.append('g');
c4ShapeElem.attr('class', 'person-man');
// <rect fill="#08427B" height="119.2188" rx="2.5" ry="2.5" style="stroke:#073B6F;stroke-width:0.5;" width="110" x="120" y="7"/>
// <rect fill="#08427B" height="119.2188" rx="2.5" ry="2.5" stroke="#073B6F" stroke-width="0.5" width="110" x="120" y="7"/>
// draw rect of c4Shape
const rect = getNoteRect();
switch (c4Shape.typeC4Shape.text) {
@ -251,9 +251,10 @@ export const drawC4Shape = function (elem, c4Shape, conf) {
rect.fill = fillColor;
rect.width = c4Shape.width;
rect.height = c4Shape.height;
rect.style = 'stroke:' + strokeColor + ';stroke-width:0.5;';
rect.stroke = strokeColor;
rect.rx = 2.5;
rect.ry = 2.5;
rect.attrs = { 'stroke-width': 0.5 };
drawRect(c4ShapeElem, rect);
break;
case 'system_db':