1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
canvas {
default-points: false;
default-lines: false;
}
node[test] {
symbol-shape: circle;
symbol-size: 5;
symbol-fill-color: #8888ff;
text-color: red;
font-family: DejaVu Sans;
_match: regexp_match("n(.+)", tag("test"));
text: eval(concat("Test ", get(prop("_match"),1)));
}
/* Anchor position */
node[test=n1] {
text-anchor-horizontal: center;
text-anchor-vertical: center;
}
node[test=n2] {
text-anchor-horizontal: left;
text-anchor-vertical: center;
text-color: green;
}
node[test=n3] {
text-anchor-horizontal: right;
text-anchor-vertical: center;
text-color: rgba(0.1, 1.0, 0.1, 0.5);
}
node[test=n4] {
text-anchor-horizontal: center;
text-anchor-vertical: top;
text-color: rgba(0.1, 1.0, 0.1, 1.0);
text-opacity: 0.5;
}
node[test=n5] {
text-anchor-horizontal: center;
text-anchor-vertical: bottom;
text-color: rgba(0.1, 1.0, 0.1, 0.8);
text-opacity: 0.8;
}
node[test=n6] {
text-anchor-horizontal: center;
text-anchor-vertical: above;
}
node[test=n7] {
text-anchor-horizontal: center;
text-anchor-vertical: below;
}
node[test=n8] {
text-anchor-horizontal: center;
text-anchor-vertical: below;
text-offset-x: -10;
text-offset-y: -10;
}
node[test=n9] {
text-anchor-horizontal: left;
text-anchor-vertical: top;
text-offset-x: 5;
text-offset: 10; /* interpreted as offset-y */
}
node[test=n10] {
text-offset: list(2, -6);
}
/* Halo */
node[test=n11] {
text-halo-radius: 1;
text-halo-color: green;
}
node[test=n12] {
text-halo-radius: 5;
text-halo-opacity: 0.5;
}
node[test=n13] {
text-halo-radius: 5;
text-halo-color: rgba(0, 0, 1.0, 0.4);
}
node[test=n14] {
text-halo-radius: 5;
text-halo-color: rgba(0, 0, 1.0, 0.4);
text-halo-opacity: 0.5;
}
node[test=n15] {
/* ignored */
text-halo-radius: -2;
}
/* Text style */
node[test=n16] {
font-size: 10;
font-style: italic;
}
node[test=n17] {
font-size: 5;
text-color: green;
}
node[test=n18] {
font-size: 12;
font-weight: bold;
}
/* 19, 20: hover/disabled */
/* Text values */
node[test=n21] {
text: test;
}
node[test=n22] {
text: unused_key;
}
node[test=n23] {
text: auto;
}
node[test=n24] {
text: auto;
}
node[test=n25] {
text: auto;
}
|