|
4 | 4 | class="release-cycle-chart" |
5 | 5 | viewBox="0 0 {{ diagram_width * SCALE }} {{ diagram_height * SCALE }}" |
6 | 6 | > |
| 7 | + <defs> |
| 8 | + <linearGradient id="release-cycle-mask-gradient-{{ id_key }}"> |
| 9 | + <stop stop-color="black" offset="0%" /> |
| 10 | + <stop stop-color="white" offset="100%" /> |
| 11 | + </linearGradient> |
| 12 | + </defs> |
7 | 13 |
|
8 | 14 | {% for version in versions %} |
9 | 15 | {% set y = loop.index * LINE_HEIGHT %} |
|
42 | 48 | {% endif %} |
43 | 49 | {% endfor %} |
44 | 50 |
|
| 51 | + <!-- Gradient mask to fade out end-of-life versions --> |
| 52 | + <mask id="release-cycle-mask-{{ id_key }}"> |
| 53 | + <rect |
| 54 | + x="0" |
| 55 | + y="0" |
| 56 | + width="{{ LEGEND_WIDTH * SCALE }}" |
| 57 | + height="{{ diagram_height * SCALE }}" |
| 58 | + fill="black" |
| 59 | + /> |
| 60 | + <rect |
| 61 | + x="{{ (LEGEND_WIDTH - RIGHT_MARGIN) * SCALE }}" |
| 62 | + y="0" |
| 63 | + width="{{ RIGHT_MARGIN * SCALE }}" |
| 64 | + height="{{ diagram_height * SCALE }}" |
| 65 | + fill="url(#release-cycle-mask-gradient-{{ id_key }})" |
| 66 | + /> |
| 67 | + <rect |
| 68 | + x="{{ (LEGEND_WIDTH ) * SCALE }}" |
| 69 | + y="0" |
| 70 | + width="{{ diagram_width * SCALE }}" |
| 71 | + height="{{ diagram_height * SCALE }}" |
| 72 | + fill="white" |
| 73 | + /> |
| 74 | + </mask> |
| 75 | + |
45 | 76 | {% for version in versions %} |
46 | 77 | {% set y = loop.index * LINE_HEIGHT %} |
47 | 78 |
|
|
74 | 105 | {% set radius_value = 0.25 * SCALE %} |
75 | 106 |
|
76 | 107 | {% if version.status != "end-of-life" %} |
77 | | - <!-- Split the pill --> |
| 108 | + <!-- Split the blob --> |
78 | 109 | <path |
79 | 110 | class="release-cycle-blob release-cycle-status-bugfix" |
80 | 111 | d=" |
|
109 | 140 | height="{{ 1.25 * SCALE }}" |
110 | 141 | rx="0.25em" |
111 | 142 | ry="0.25em" |
| 143 | + mask="url(#release-cycle-mask-{{ id_key }})" |
112 | 144 | /> |
113 | 145 | <rect |
114 | 146 | class="release-cycle-border release-cycle-status-{{ version.status }}" |
|
118 | 150 | height="{{ 1.25 * SCALE }}" |
119 | 151 | rx="0.25em" |
120 | 152 | ry="0.25em" |
| 153 | + mask="url(#release-cycle-mask-{{ id_key }})" |
121 | 154 | /> |
122 | 155 | {% if version.status == "bugfix" %} |
123 | 156 | <text |
|
142 | 175 | {% elif version.status == "end-of-life" %} |
143 | 176 | <text |
144 | 177 | class="release-cycle-blob-label release-cycle-status-end-of-life" |
145 | | - {% if version.key != "3.0" %} |
146 | | - x="{{ (start_x + end_x) / 2 * SCALE }}" |
147 | | - text-anchor="middle" |
148 | | - {% else %} |
149 | | - x="{{ (end_x + 0.25) * SCALE }}" |
150 | | - text-anchor="start" |
151 | | - {% endif %} |
| 178 | + x="{{ (end_x + 0.25) * SCALE }}" |
| 179 | + text-anchor="start" |
152 | 180 | y="{{ (y - 0.1) * SCALE }}" |
153 | 181 | font-size="{{ SCALE * 0.75 }}" |
154 | 182 | > |
155 | 183 | end-of-life |
156 | 184 | </text> |
157 | | - {% elif version.status == "feature" %} |
| 185 | + {% else %} |
158 | 186 | <text |
159 | 187 | class="release-cycle-blob-label release-cycle-status-feature" |
160 | 188 | x="{{ (start_x - 0.5) * SCALE }}" |
161 | 189 | y="{{ (y - 0.1) * SCALE }}" |
162 | 190 | font-size="{{ SCALE * 0.75 }}" |
163 | 191 | text-anchor="end" |
164 | 192 | > |
165 | | - feature |
| 193 | + {{ version.status }} |
166 | 194 | </text> |
167 | 195 | {% endif %} |
168 | 196 | {% endfor %} |
|
0 commit comments