Test of font-settings for correct image snapshots
This commit is contained in:
parent
a258eda035
commit
2da55993e0
|
@ -1,11 +1,11 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/e2e.js"></script>
|
||||
<lnk
|
||||
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<style></style>
|
||||
<style>
|
||||
mermaid, svg {
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="./mermaid.js"></script>
|
||||
|
|
|
@ -404,8 +404,6 @@ export const drawEdge = function(elem, path, relation) {
|
|||
const g = elem.append('g').attr('class', 'stateLabel');
|
||||
const label = g
|
||||
.append('text')
|
||||
.attr('class', 'label')
|
||||
.attr('fill', 'red')
|
||||
.attr('text-anchor', 'middle')
|
||||
.text(relation.title);
|
||||
const { x, y } = utils.calcLabelPosition(path.points);
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
g.stateGroup text {
|
||||
fill: $nodeBorder;
|
||||
stroke: none;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-size: 10px;
|
||||
|
||||
}
|
||||
|
@ -38,7 +37,6 @@ g.stateGroup line {
|
|||
text {
|
||||
fill: black;
|
||||
stroke: none;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +48,8 @@ g.stateGroup line {
|
|||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.stateLabel .label {
|
||||
.stateLabel text {
|
||||
fill: $labelColor;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue