update md fill and font-color
This commit is contained in:
parent
31b38aa1dd
commit
ae247ae108
6 changed files with 571 additions and 569 deletions
|
|
@ -1370,7 +1370,9 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
|
|||
if targetShape.FontSize != textmeasure.MarkdownFontSize {
|
||||
styles = append(styles, fmt.Sprintf("font-size:%vpx", targetShape.FontSize))
|
||||
}
|
||||
|
||||
if targetShape.Fill != "" && targetShape.Fill != "transparent" {
|
||||
styles = append(styles, fmt.Sprintf(`background-color:%s`, targetShape.Fill))
|
||||
}
|
||||
if !color.IsThemeColor(targetShape.Color) {
|
||||
styles = append(styles, fmt.Sprintf(`color:%s`, targetShape.Color))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1925,7 +1925,7 @@ a line of text and an
|
|||
|
||||
walk into a bar.
|
||||
| {
|
||||
style.stroke: darkorange
|
||||
style.font-color: darkorange
|
||||
}
|
||||
|
||||
container -> no container
|
||||
|
|
@ -1935,7 +1935,7 @@ they did it in style
|
|||
|
|
||||
|
||||
no container.style: {
|
||||
stroke: red
|
||||
font-color: red
|
||||
fill: "#CEEDEE"
|
||||
}
|
||||
`,
|
||||
|
|
|
|||
8
e2etests/testdata/stable/markdown_stroke_fill/dagre/board.exp.json
generated
vendored
8
e2etests/testdata/stable/markdown_stroke_fill/dagre/board.exp.json
generated
vendored
|
|
@ -58,7 +58,7 @@
|
|||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "transparent",
|
||||
"stroke": "darkorange",
|
||||
"stroke": "N1",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
"fontSize": 16,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "markdown",
|
||||
"color": "N1",
|
||||
"color": "darkorange",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#CEEDEE",
|
||||
"stroke": "red",
|
||||
"stroke": "N1",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
"fontSize": 16,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "markdown",
|
||||
"color": "N1",
|
||||
"color": "red",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
8
e2etests/testdata/stable/markdown_stroke_fill/elk/board.exp.json
generated
vendored
8
e2etests/testdata/stable/markdown_stroke_fill/elk/board.exp.json
generated
vendored
|
|
@ -58,7 +58,7 @@
|
|||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "transparent",
|
||||
"stroke": "darkorange",
|
||||
"stroke": "N1",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
"fontSize": 16,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "markdown",
|
||||
"color": "N1",
|
||||
"color": "darkorange",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#CEEDEE",
|
||||
"stroke": "red",
|
||||
"stroke": "N1",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
"fontSize": 16,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "markdown",
|
||||
"color": "N1",
|
||||
"color": "red",
|
||||
"italic": false,
|
||||
"bold": false,
|
||||
"underline": false,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Loading…
Reference in a new issue