All labels should use baseline middle, fix math, bboxes for area labels

This commit is contained in:
Bryan Housel
2016-10-17 14:52:23 -04:00
parent 4381bd11ac
commit f3505c2f3d
2 changed files with 29 additions and 22 deletions
+3 -7
View File
@@ -1310,21 +1310,17 @@ text.pointlabel-halo,
text.arealabel,
text.linelabel,
text.pointlabel {
dominant-baseline: middle;
text-anchor: middle;
font-size: 12px;
font-weight: bold;
fill: #333;
text-anchor: middle;
pointer-events: none;
-webkit-transition: opacity 100ms linear;
transition: opacity 100ms linear;
-moz-transition: opacity 100ms linear;
}
.linelabel-halo .textpath,
.linelabel .textpath {
dominant-baseline: middle;
}
/* Opera doesn't support dominant-baseline. See #715 */
.opera .linelabel-halo .textpath,
.opera .linelabel .textpath {
@@ -1344,7 +1340,7 @@ text.proximate {
}
text.point {
font-size: 10px;
font-size: 10px;
}
/* Turns */