Debian Codegraph @

test/data/renderer/node-text2/style.mapcss

raw
1
2 /**
3 * Text placement test
4 */
5 node[test=text-placement]::* {
6 font-size: 10;
7 text: auto;
8 symbol-shape: square;
9 symbol-size: 50;
10 symbol-fill-opacity: 0.0;
11 }
12 node[test=text-placement]::above_center {
13 text-anchor-vertical: above;
14 text-anchor-horizontal: center;
15 text-color: gold;
16 }
17 node[test=text-placement]::top_left {
18 text-anchor-vertical: top;
19 text-anchor-horizontal: left;
20 text-color: yellow;
21 }
22 node[test=text-placement]::top_right {
23 text-anchor-vertical: top;
24 text-anchor-horizontal: right;
25 text-color: green;
26 }
27 node[test=text-placement]::center_center {
28 text-anchor-vertical: center;
29 text-anchor-horizontal: center;
30 text-color: white;
31 }
32 node[test=text-placement]::center_right {
33 text-anchor-vertical: center;
34 text-anchor-horizontal: right;
35 text-color: magenta;
36 }
37 node[test=text-placement]::bottom_left {
38 text-anchor-vertical: bottom;
39 text-anchor-horizontal: left;
40 text-color: blue;
41 }
42 node[test=text-placement]::bottom_right {
43 text-anchor-vertical: bottom;
44 text-anchor-horizontal: right;
45 text-color: lime;
46 }
47 node[test=text-placement]::below_center {
48 text-anchor-vertical: below;
49 text-anchor-horizontal: center;
50 text-color: red;
51 }
52 node[test=text-placement] {
53 symbol-fill-color: blue;
54 symbol-fill-opacity: 0.4;
55 }