| 1 |
% Copyright 2018 by Till Tantau and Mark Wibrow |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified |
| 4 |
% |
| 5 |
% 1. under the LaTeX Project Public License and/or |
| 6 |
% 2. under the GNU Public License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
\ProvidesFileRCS{pgflibraryshapes.multipart.code.tex} |
| 11 |
|
| 12 |
\newbox\pgfnodepartlowerbox |
| 13 |
|
| 14 |
% |
| 15 |
% A circle that is split in the middle into an upper and a lower part. |
| 16 |
% |
| 17 |
% This node consists of two parts: The upper (main) part is shown in |
| 18 |
% the upper half of the circle. The second part is the (optional) |
| 19 |
% lower part. |
| 20 |
% |
| 21 |
% Parts: text, lower |
| 22 |
|
| 23 |
\pgfdeclareshape{circle split} |
| 24 |
{% |
| 25 |
% |
| 26 |
% Node parts |
| 27 |
% |
| 28 |
\nodeparts{text,lower}% |
| 29 |
|
| 30 |
% |
| 31 |
% Anchors |
| 32 |
% |
| 33 |
\savedanchor\centerpoint{% |
| 34 |
\pgf@x=.5\wd\pgfnodeparttextbox% |
| 35 |
\pgfmathsetlength{\pgf@y}{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 36 |
\pgf@y=-\pgf@y% |
| 37 |
\advance\pgf@y by-\dp\pgfnodeparttextbox% |
| 38 |
\advance\pgf@y by-.5\pgflinewidth% |
| 39 |
}% |
| 40 |
\savedanchor\loweranchor{% |
| 41 |
\pgf@x=-.5\wd\pgfnodepartlowerbox% |
| 42 |
\advance\pgf@x by.5\wd\pgfnodeparttextbox% |
| 43 |
\pgfmathsetlength{\pgf@y}{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 44 |
\pgf@y=-2\pgf@y% |
| 45 |
\advance\pgf@y by-\ht\pgfnodepartlowerbox% |
| 46 |
\advance\pgf@y by-.5\pgflinewidth% |
| 47 |
\advance\pgf@y by-\dp\pgfnodeparttextbox% |
| 48 |
\advance\pgf@y by-.5\pgflinewidth% |
| 49 |
}% |
| 50 |
|
| 51 |
\saveddimen\radius{% |
| 52 |
% |
| 53 |
% Calculate ``height radius'' |
| 54 |
% |
| 55 |
%\pgf@ya=.5\ht\pgfnodeparttextbox% |
| 56 |
% \advance\pgf@ya by.5\dp\pgfnodeparttextbox% |
| 57 |
% \advance\pgf@ya by.5\ht\pgfnodepartlowerbox% |
| 58 |
% \advance\pgf@ya by.5\dp\pgfnodepartlowerbox% |
| 59 |
% \advance\pgf@ya by.5\pgflinewidth% |
| 60 |
% |
| 61 |
% MW: Suggested correction for above calculation: Use the tallest box * 2. |
| 62 |
% |
| 63 |
\pgf@ya=.5\ht\pgfnodeparttextbox% |
| 64 |
\advance\pgf@ya by.5\dp\pgfnodeparttextbox% |
| 65 |
\pgf@yb=.5\ht\pgfnodepartlowerbox% |
| 66 |
\advance\pgf@yb by.5\dp\pgfnodepartlowerbox% |
| 67 |
\ifdim\pgf@ya>\pgf@yb\relax% |
| 68 |
\[email protected]\pgf@ya\relax% |
| 69 |
\else% |
| 70 |
\[email protected]\pgf@yb\relax% |
| 71 |
\fi% |
| 72 |
\advance\pgf@ya by.5\pgflinewidth% |
| 73 |
\pgfmathsetlength\pgf@yb{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 74 |
\advance\pgf@ya by2\pgf@yb% |
| 75 |
% |
| 76 |
% Calculate ``width radius'' |
| 77 |
% |
| 78 |
\pgf@xa=.5\wd\pgfnodeparttextbox% |
| 79 |
\ifdim\pgf@xa<.5\wd\pgfnodepartlowerbox% |
| 80 |
\pgf@xa=.5\wd\pgfnodepartlowerbox% |
| 81 |
\fi% |
| 82 |
\pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 83 |
\advance\pgf@xa by\pgf@xb% |
| 84 |
% |
| 85 |
% Calculate length of radius vector: |
| 86 |
% |
| 87 |
\pgf@process{\pgfpointnormalised{\pgfqpoint{\pgf@xa}{\pgf@ya}}}% |
| 88 |
\ifdim\pgf@x>\pgf@y% |
| 89 |
\c@pgf@counta=\pgf@x% |
| 90 |
\ifnum\c@pgf@counta=0\relax% |
| 91 |
\else% |
| 92 |
\divide\c@pgf@counta by 255\relax% |
| 93 |
\pgf@xa=16\pgf@xa\relax% |
| 94 |
\divide\pgf@xa by\c@pgf@counta% |
| 95 |
\pgf@xa=16\pgf@xa\relax% |
| 96 |
\fi% |
| 97 |
\else% |
| 98 |
\c@pgf@counta=\pgf@y% |
| 99 |
\ifnum\c@pgf@counta=0\relax% |
| 100 |
\else% |
| 101 |
\divide\c@pgf@counta by 255\relax% |
| 102 |
\pgf@ya=16\pgf@ya\relax% |
| 103 |
\divide\pgf@ya by\c@pgf@counta% |
| 104 |
\pgf@xa=16\pgf@ya\relax% |
| 105 |
\fi% |
| 106 |
\fi% |
| 107 |
\pgf@x=\pgf@xa% |
| 108 |
% |
| 109 |
% If necessary, adjust radius so that the size requirements are |
| 110 |
% met: |
| 111 |
% |
| 112 |
\pgfmathsetlength{\pgf@xb}{\pgfkeysvalueof{/pgf/minimum width}}% |
| 113 |
\pgfmathsetlength{\pgf@yb}{\pgfkeysvalueof{/pgf/minimum height}}% |
| 114 |
\ifdim\pgf@x<.5\pgf@xb% |
| 115 |
\pgf@x=.5\pgf@xb% |
| 116 |
\fi% |
| 117 |
\ifdim\pgf@x<.5\pgf@yb% |
| 118 |
\pgf@x=.5\pgf@yb% |
| 119 |
\fi% |
| 120 |
% |
| 121 |
% Now, add larger of outer separations. |
| 122 |
% |
| 123 |
\pgfmathsetlength{\pgf@xb}{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 124 |
\pgfmathsetlength{\pgf@yb}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 125 |
\ifdim\pgf@xb<\pgf@yb% |
| 126 |
\advance\pgf@x by\pgf@yb% |
| 127 |
\else% |
| 128 |
\advance\pgf@x by\pgf@xb% |
| 129 |
\fi% |
| 130 |
}% |
| 131 |
|
| 132 |
% |
| 133 |
% Anchors |
| 134 |
% |
| 135 |
\inheritanchorborder[from=circle]% |
| 136 |
\inheritanchor[from=circle]{north}% |
| 137 |
\inheritanchor[from=circle]{north west}% |
| 138 |
\inheritanchor[from=circle]{north east}% |
| 139 |
\inheritanchor[from=circle]{center}% |
| 140 |
\inheritanchor[from=circle]{west}% |
| 141 |
\inheritanchor[from=circle]{east}% |
| 142 |
\inheritanchor[from=circle]{mid}% |
| 143 |
\inheritanchor[from=circle]{mid west}% |
| 144 |
\inheritanchor[from=circle]{mid east}% |
| 145 |
\inheritanchor[from=circle]{base}% |
| 146 |
\inheritanchor[from=circle]{base west}% |
| 147 |
\inheritanchor[from=circle]{base east}% |
| 148 |
\inheritanchor[from=circle]{south}% |
| 149 |
\inheritanchor[from=circle]{south west}% |
| 150 |
\inheritanchor[from=circle]{south east}% |
| 151 |
\anchor{lower}{\loweranchor}% |
| 152 |
|
| 153 |
% |
| 154 |
% Background path |
| 155 |
% |
| 156 |
\inheritbackgroundpath[from=circle]% |
| 157 |
\beforebackgroundpath{ |
| 158 |
\pgfutil@tempdima=\radius% |
| 159 |
\pgfmathsetlength{\pgf@xb}{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 160 |
\pgfmathsetlength{\pgf@yb}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 161 |
\ifdim\pgf@xb<\pgf@yb% |
| 162 |
\advance\pgfutil@tempdima by-\pgf@yb% |
| 163 |
\else% |
| 164 |
\advance\pgfutil@tempdima by-\pgf@xb% |
| 165 |
\fi% |
| 166 |
\advance\pgfutil@tempdima by-.5\pgflinewidth% |
| 167 |
\pgfsetshortenstart{0pt}% |
| 168 |
\pgfsetshortenend{0pt}% |
| 169 |
\pgfsetarrows{-}% |
| 170 |
\pgfpathmoveto{\pgfpointadd{\centerpoint}{\pgfqpoint{-1\pgfutil@tempdima}{0pt}}}% |
| 171 |
\pgfpathlineto{\pgfpointadd{\centerpoint}{\pgfqpoint{\pgfutil@tempdima}{0pt}}}% |
| 172 |
\pgfusepath{stroke}% |
| 173 |
}% |
| 174 |
}% |
| 175 |
|
| 176 |
|
| 177 |
% |
| 178 |
% A circle that is split diagonally into an upper and a lower part. |
| 179 |
% |
| 180 |
% Parts: text, lower |
| 181 |
|
| 182 |
\pgfdeclareshape{circle solidus}{% |
| 183 |
% Node parts |
| 184 |
\nodeparts{text,lower}% |
| 185 |
% Anchors |
| 186 |
% solidus slants at 45 degrees |
| 187 |
% text placement minimizes the required radius, |
| 188 |
% this is achieved placing the "outer" corner |
| 189 |
% of each box in the line orthogonal to the |
| 190 |
% solidus which passes through circle center |
| 191 |
\savedanchor\centerpoint{% |
| 192 |
\pgf@x=0.5\wd\pgfnodeparttextbox% |
| 193 |
\advance\pgf@x by0.5\dp\pgfnodeparttextbox% |
| 194 |
\advance\pgf@x by0.5\ht\pgfnodeparttextbox% |
| 195 |
\pgf@y=-\pgf@x% |
| 196 |
\advance\pgf@y by\ht\pgfnodeparttextbox% |
| 197 |
\advance\pgf@x by0.3536\pgflinewidth% |
| 198 |
\advance\pgf@y by-0.3536\pgflinewidth% |
| 199 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 200 |
\advance\pgf@x by\pgf@xa% |
| 201 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 202 |
\advance\pgf@y by-\pgf@ya% |
| 203 |
}% |
| 204 |
\savedanchor\loweranchor{% |
| 205 |
\pgf@x=0.5\wd\pgfnodeparttextbox% |
| 206 |
\advance\pgf@x by0.5\dp\pgfnodeparttextbox% |
| 207 |
\advance\pgf@x by0.5\ht\pgfnodeparttextbox% |
| 208 |
\pgf@y=-\pgf@x% |
| 209 |
\advance\pgf@y by\ht\pgfnodeparttextbox% |
| 210 |
\advance\pgf@x by0.5\ht\pgfnodepartlowerbox% |
| 211 |
\advance\pgf@x by0.5\dp\pgfnodepartlowerbox% |
| 212 |
\advance\pgf@x by-0.5\wd\pgfnodepartlowerbox% |
| 213 |
\advance\pgf@y by-0.5\ht\pgfnodepartlowerbox% |
| 214 |
\advance\pgf@y by0.5\dp\pgfnodepartlowerbox% |
| 215 |
\advance\pgf@y by-0.5\wd\pgfnodepartlowerbox% |
| 216 |
\advance\pgf@x by0.7071\pgflinewidth% |
| 217 |
\advance\pgf@y by-0.7071\pgflinewidth% |
| 218 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 219 |
\advance\pgf@x by2\pgf@xa% |
| 220 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 221 |
\advance\pgf@y by-2\pgf@ya% |
| 222 |
}% |
| 223 |
\saveddimen\radius{% |
| 224 |
% "top" radius |
| 225 |
\pgf@x=\ht\pgfnodeparttextbox% |
| 226 |
\advance\pgf@x by\dp\pgfnodeparttextbox% |
| 227 |
\advance\pgf@x by\wd\pgfnodeparttextbox% |
| 228 |
% "bottom" radius |
| 229 |
\pgf@y=\ht\pgfnodepartlowerbox% |
| 230 |
\advance\pgf@y by\dp\pgfnodepartlowerbox% |
| 231 |
\advance\pgf@y by\wd\pgfnodepartlowerbox% |
| 232 |
% use the larger |
| 233 |
\ifdim\pgf@x<\pgf@y% |
| 234 |
\pgf@x=\pgf@y% |
| 235 |
\fi% |
| 236 |
\pgf@x=0.7071\pgf@x% |
| 237 |
% add spacings |
| 238 |
\advance\pgf@x by0.5\pgflinewidth% |
| 239 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 240 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 241 |
\pgfmathaddtolength{\pgf@x}{veclen(2\pgf@xa,2\pgf@ya)}% |
| 242 |
% If necessary, adjust radius so that the size requirements are |
| 243 |
% met: |
| 244 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/minimum width}}% |
| 245 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/minimum height}}% |
| 246 |
\ifdim\pgf@x<.5\pgf@xa% |
| 247 |
\pgf@x=.5\pgf@xa% |
| 248 |
\fi% |
| 249 |
\ifdim\pgf@x<.5\pgf@ya% |
| 250 |
\pgf@x=.5\pgf@ya% |
| 251 |
\fi% |
| 252 |
% Now, add larger of outer separations. |
| 253 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 254 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 255 |
\ifdim\pgf@xa<\pgf@ya% |
| 256 |
\advance\pgf@x by\pgf@ya% |
| 257 |
\else% |
| 258 |
\advance\pgf@x by\pgf@xa% |
| 259 |
\fi% |
| 260 |
}% |
| 261 |
% Anchors |
| 262 |
\inheritanchorborder[from=circle]% |
| 263 |
\inheritanchor[from=circle]{north}% |
| 264 |
\inheritanchor[from=circle]{north west}% |
| 265 |
\inheritanchor[from=circle]{north east}% |
| 266 |
\inheritanchor[from=circle]{center}% |
| 267 |
\inheritanchor[from=circle]{west}% |
| 268 |
\inheritanchor[from=circle]{east}% |
| 269 |
\inheritanchor[from=circle]{mid}% |
| 270 |
\inheritanchor[from=circle]{mid west}% |
| 271 |
\inheritanchor[from=circle]{mid east}% |
| 272 |
\inheritanchor[from=circle]{base}% |
| 273 |
\inheritanchor[from=circle]{base west}% |
| 274 |
\inheritanchor[from=circle]{base east}% |
| 275 |
\inheritanchor[from=circle]{south}% |
| 276 |
\inheritanchor[from=circle]{south west}% |
| 277 |
\inheritanchor[from=circle]{south east}% |
| 278 |
\anchor{lower}{\loweranchor}% |
| 279 |
% Background path |
| 280 |
\inheritbackgroundpath[from=circle]% |
| 281 |
\beforebackgroundpath{% |
| 282 |
\pgfutil@tempdima=\radius% |
| 283 |
\pgfmathsetlength{\pgf@xa}{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 284 |
\pgfmathsetlength{\pgf@ya}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 285 |
\ifdim\pgf@xa<\pgf@ya% |
| 286 |
\advance\pgfutil@tempdima by-\pgf@ya% |
| 287 |
\else% |
| 288 |
\advance\pgfutil@tempdima by-\pgf@xa% |
| 289 |
\fi% |
| 290 |
\advance\pgfutil@tempdima by-.5\pgflinewidth% |
| 291 |
\pgfsetshortenstart{0pt}% |
| 292 |
\pgfsetshortenend{0pt}% |
| 293 |
\pgfsetarrows{-}% |
| 294 |
% solidus slants at 45 degrees and its length is |
| 295 |
% the golden section of the diameter |
| 296 |
\pgfpathmoveto{\pgfpointadd{\centerpoint}{\pgfqpoint{-0.437\pgfutil@tempdima}{-0.437\pgfutil@tempdima}}}% |
| 297 |
\pgfpathlineto{\pgfpointadd{\centerpoint}{\pgfqpoint{0.437\pgfutil@tempdima}{0.437\pgfutil@tempdima}}}% |
| 298 |
\pgfusepath{stroke}% |
| 299 |
}% |
| 300 |
}% |
| 301 |
|
| 302 |
|
| 303 |
% |
| 304 |
% A diamond that is split in the middle into an upper and a lower part. |
| 305 |
% |
| 306 |
% This node consists of two parts: the upper (text) part is shown in the |
| 307 |
% upper half of the diamond. The second part is the (optional) lower part. |
| 308 |
% |
| 309 |
% Parts: text, lower |
| 310 |
|
| 311 |
\pgfdeclareshape{diamond split} |
| 312 |
{% |
| 313 |
% |
| 314 |
% Node parts |
| 315 |
% |
| 316 |
\nodeparts{text,lower}% |
| 317 |
% |
| 318 |
% Anchors |
| 319 |
% |
| 320 |
\savedanchor\outernortheast{% |
| 321 |
% |
| 322 |
% Calculate width and height of the text rectangle |
| 323 |
% |
| 324 |
\pgf@xa=\wd\pgfnodeparttextbox |
| 325 |
\pgfmathsetlength\pgf@xc{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 326 |
\advance\pgf@xa by 0\pgf@xc |
| 327 |
\pgf@ya=\ht\pgfnodeparttextbox |
| 328 |
\advance\pgf@ya by \dp\pgfnodeparttextbox |
| 329 |
\pgfmathsetlength\pgf@yc{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 330 |
\advance\pgf@ya by 0\pgf@yc |
| 331 |
% |
| 332 |
% (xa,ya) is now the size of the *text* part. |
| 333 |
% |
| 334 |
% Calculate width and height of the lower rectangle |
| 335 |
% |
| 336 |
\pgf@xb=\wd\pgfnodepartlowerbox |
| 337 |
\advance\pgf@xb by \pgf@xc |
| 338 |
\pgf@yb=\ht\pgfnodepartlowerbox |
| 339 |
\advance\pgf@yb by \dp\pgfnodepartlowerbox |
| 340 |
\advance\pgf@yb by \pgf@yc |
| 341 |
% |
| 342 |
% (xb,yb) is now the size of the *lower* part. |
| 343 |
% We keep the maximum value of xa vs. xb and ya vs. yb |
| 344 |
% |
| 345 |
\pgfmathmax@{{\pgfmath@tonumber{\pgf@xa}}{\pgfmath@tonumber{\pgf@xb}}}% |
| 346 |
\pgf@xa=\pgfmathresult pt |
| 347 |
\pgfmathmax@{{\pgfmath@tonumber{\pgf@ya}}{\pgfmath@tonumber{\pgf@yb}}}% |
| 348 |
\pgf@ya=\pgfmathresult pt |
| 349 |
% |
| 350 |
% Calculate width and height of diamond |
| 351 |
% |
| 352 |
\pgf@x=\pgf@xa |
| 353 |
\advance\pgf@x by \pgfshapeaspect\pgf@ya |
| 354 |
\pgf@y=\pgfshapeaspectinverse\pgf@xa |
| 355 |
\advance\pgf@y by \pgf@ya |
| 356 |
% |
| 357 |
% Check against minimum height/width |
| 358 |
% |
| 359 |
\pgfmathsetlength\pgf@xb{\pgfkeysvalueof{/pgf/minimum width}}% |
| 360 |
\pgf@xb=.5\pgf@xb |
| 361 |
\ifdim\pgf@x<\pgf@xb |
| 362 |
% yes, too small. Enlarge... |
| 363 |
\pgf@x=\pgf@xb |
| 364 |
\fi |
| 365 |
\pgfmathsetlength\pgf@yb{\pgfkeysvalueof{/pgf/minimum height}}% |
| 366 |
\pgf@yb=.5\pgf@yb |
| 367 |
\ifdim\pgf@y<\pgf@yb |
| 368 |
% yes, too small. Enlarge... |
| 369 |
\pgf@y=\pgf@yb |
| 370 |
\fi |
| 371 |
% |
| 372 |
% Add outer border |
| 373 |
% |
| 374 |
\pgfmathsetlength\pgf@xa{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 375 |
\advance\pgf@x by\pgf@xa |
| 376 |
\pgfmathsetlength\pgf@ya{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 377 |
\advance\pgf@y by\pgf@ya |
| 378 |
}% |
| 379 |
\savedanchor\text{% |
| 380 |
\pgfmathsetlength{\pgf@yb}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 381 |
\pgf@x=-0.5\wd\pgfnodeparttextbox |
| 382 |
\pgf@y=0.25\ht\pgfnodeparttextbox |
| 383 |
\advance\pgf@y by 0.25\dp\pgfnodeparttextbox |
| 384 |
\advance\pgf@y by \pgf@yb |
| 385 |
}% |
| 386 |
\savedanchor\loweranchor{% |
| 387 |
\pgfmathsetlength{\pgf@yb}{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 388 |
\pgf@x=-0.5\wd\pgfnodepartlowerbox |
| 389 |
\pgf@y=-1.25\ht\pgfnodepartlowerbox |
| 390 |
\advance\pgf@y by -1.25\dp\pgfnodepartlowerbox |
| 391 |
\advance\pgf@y by -\pgf@yb |
| 392 |
} |
| 393 |
\inheritanchor[from=diamond]{center} |
| 394 |
\inheritanchor[from=diamond]{mid} |
| 395 |
\inheritanchor[from=diamond]{base} |
| 396 |
\inheritanchor[from=diamond]{north} |
| 397 |
\inheritanchor[from=diamond]{south} |
| 398 |
\inheritanchor[from=diamond]{east} |
| 399 |
\inheritanchor[from=diamond]{west} |
| 400 |
\inheritanchor[from=diamond]{north west} |
| 401 |
\inheritanchor[from=diamond]{north east} |
| 402 |
\inheritanchor[from=diamond]{south west} |
| 403 |
\inheritanchor[from=diamond]{south east} |
| 404 |
\inheritanchorborder[from=diamond] |
| 405 |
\inheritbackgroundpath[from=diamond] |
| 406 |
\anchor{text}{\text}% |
| 407 |
\anchor{lower}{\loweranchor}% |
| 408 |
\behindbackgroundpath{% |
| 409 |
\pgfmathsetlength{\pgf@xb}{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 410 |
\pgfpathmoveto{\pgf@process{\outernortheast}\pgf@x=-\pgf@x\pgf@y=0pt\relax |
| 411 |
\advance\pgf@x by \pgf@xb}% |
| 412 |
\pgfpathlineto{\pgf@process{\outernortheast}\pgf@y=0pt\relax |
| 413 |
\advance\pgf@x by -\pgf@xb}% |
| 414 |
}% |
| 415 |
}% |
| 416 |
|
| 417 |
|
| 418 |
\def\pgf@lib@sh@newbox{\csname newbox\endcsname}% Get round outer. |
| 419 |
|
| 420 |
\def\pgf@lib@sh@toalpha#1{% |
| 421 |
\ifcase#1\relax% |
| 422 |
\or one\or two\or three\or four\or five\or six\or seven\or eight\or nine\or ten% |
| 423 |
\or eleven\or twelve\or thirteen\or fourteen\or fifteen% |
| 424 |
\or sixteen\or seventeen\or eighteen\or nineteen\or twenty% |
| 425 |
\else% |
| 426 |
twenty% |
| 427 |
\fi% |
| 428 |
}% |
| 429 |
|
| 430 |
|
| 431 |
\def\pgf@lib@sh@getalpha#1#2{\expandafter\edef\expandafter#1\expandafter{\pgf@lib@sh@toalpha{#2}}}% |
| 432 |
|
| 433 |
\newbox\pgfnodeparttwobox |
| 434 |
\newbox\pgfnodepartthreebox |
| 435 |
\newbox\pgfnodepartfourbox |
| 436 |
|
| 437 |
\let\pgfnodepartonebox=\pgfnodeparttextbox |
| 438 |
\let\pgfnodepartsecondbox=\pgfnodeparttwobox |
| 439 |
\let\pgfnodepartthirdbox=\pgfnodepartthreebox |
| 440 |
\let\pgfnodepartfourthbox=\pgfnodepartfourbox |
| 441 |
|
| 442 |
\def\pgf@lib@sh@allocateboxes#1{% |
| 443 |
\c@pgf@counta=#1\relax% |
| 444 |
\pgfmathloop% |
| 445 |
\ifnum\c@pgf@counta>4\relax% |
| 446 |
\pgfutil@ifundefined{pgfnodepart\pgf@lib@sh@toalpha{\c@pgf@counta}box}% |
| 447 |
{% |
| 448 |
\expandafter\pgf@lib@sh@newbox\csname pgfnodepart\pgf@lib@sh@toalpha{\c@pgf@counta}box\endcsname% |
| 449 |
}% |
| 450 |
{}% |
| 451 |
\advance\c@pgf@counta by-1\relax% |
| 452 |
\repeatpgfmathloop% |
| 453 |
}% |
| 454 |
|
| 455 |
\def\pgf@lib@sh@rs@lefttext{left}% |
| 456 |
\def\pgf@lib@sh@rs@righttext{right}% |
| 457 |
\def\pgf@lib@sh@rs@centertext{center}% |
| 458 |
\def\pgf@lib@sh@rs@bottomtext{bottom}% |
| 459 |
\def\pgf@lib@sh@rs@toptext{top}% |
| 460 |
\def\pgf@lib@sh@rs@basetext{base}% |
| 461 |
\def\pgf@lib@sh@rs@nonetext{none}% |
| 462 |
|
| 463 |
|
| 464 |
\newif\ifpgfrectanglesplithorizontal |
| 465 |
\newif\ifpgfrectanglesplitdrawsplits\pgfrectanglesplitdrawsplitstrue |
| 466 |
\newif\ifpgfrectanglesplitignoreemptyparts |
| 467 |
\newif\ifpgfrectanglesplitusecustomfill |
| 468 |
|
| 469 |
\let\pgf@lib@sh@rs@every@emptypart=\pgfutil@empty |
| 470 |
\let\pgf@lib@sh@rs@every@part=\pgfutil@empty |
| 471 |
\def\pgf@lib@sh@rs@list@fill{none}% |
| 472 |
|
| 473 |
\pgfkeys{/pgf/.cd, |
| 474 |
rectangle split parts/.initial=4, |
| 475 |
rectangle split part align/.initial=center, |
| 476 |
rectangle split horizontal/.is if=pgfrectanglesplithorizontal, |
| 477 |
rectangle split ignore empty parts/.is if=pgfrectanglesplitignoreemptyparts, |
| 478 |
rectangle split empty part width/.code={% |
| 479 |
\pgfmathsetlength\pgf@x{#1} |
| 480 |
\edef\pgf@lib@sh@rs@temp{\noexpand\vrule width\the\pgf@x height0ptdepth0pt\relax}% |
| 481 |
\def\pgf@lib@sh@rs@@temp{\def\pgf@lib@sh@rs@every@emptypart}% |
| 482 |
\expandafter\expandafter\expandafter\pgf@lib@sh@rs@@temp\expandafter\expandafter\expandafter{% |
| 483 |
\expandafter\pgf@lib@sh@rs@every@emptypart\pgf@lib@sh@rs@temp}% |
| 484 |
},% |
| 485 |
rectangle split empty part width=1ex, |
| 486 |
rectangle split empty part height/.code={% |
| 487 |
\pgfmathsetlength\pgf@x{#1} |
| 488 |
\edef\pgf@lib@sh@rs@temp{\noexpand\vrule width0ptheight\the\pgf@x depth0pt\relax}% |
| 489 |
\def\pgf@lib@sh@rs@@temp{\def\pgf@lib@sh@rs@every@emptypart}% |
| 490 |
\expandafter\expandafter\expandafter\pgf@lib@sh@rs@@temp\expandafter\expandafter\expandafter{% |
| 491 |
\expandafter\pgf@lib@sh@rs@every@emptypart\pgf@lib@sh@rs@temp}% |
| 492 |
},% |
| 493 |
rectangle split empty part height=1ex, |
| 494 |
rectangle split empty part depth/.code={% |
| 495 |
\pgfmathsetlength\pgf@x{#1} |
| 496 |
\edef\pgf@lib@sh@rs@temp{\noexpand\vrule width0ptheight0ptdepth\the\pgf@x\relax}% |
| 497 |
\def\pgf@lib@sh@rs@@temp{\def\pgf@lib@sh@rs@every@emptypart}% |
| 498 |
\expandafter\expandafter\expandafter\pgf@lib@sh@rs@@temp\expandafter\expandafter\expandafter{% |
| 499 |
\expandafter\pgf@lib@sh@rs@every@emptypart\pgf@lib@sh@rs@temp}% |
| 500 |
},% |
| 501 |
rectangle split empty part depth=0ex, |
| 502 |
rectangle split every empty part/.store in=\pgf@lib@sh@rs@every@emptypart, |
| 503 |
rectangle split part fill/.code=\def\pgf@lib@sh@rs@list@fill{#1}\pgfrectanglesplitusecustomfilltrue, |
| 504 |
rectangle split uses custom fill/.is if=pgfrectanglesplitusecustomfill, |
| 505 |
rectangle split draw splits/.is if=pgfrectanglesplitdrawsplits, |
| 506 |
rectangle split allocate boxes/.code=\pgf@lib@sh@allocateboxes{#1}, |
| 507 |
}% |
| 508 |
|
| 509 |
|
| 510 |
\def\pgf@lib@sh@rs@process@list#1#2{% |
| 511 |
\c@pgf@counta=1\relax% |
| 512 |
\c@pgf@countb=#2\relax% |
| 513 |
\edef\pgf@lib@sh@rs@temp{#1}% |
| 514 |
\expandafter\pgf@lib@sh@rs@@process@list\pgf@lib@sh@rs@temp,\pgf@stop, |
| 515 |
}% |
| 516 |
|
| 517 |
\def\pgf@lib@sh@rs@@process@list{% |
| 518 |
\pgfutil@ifnextchar x{\pgf@lib@sh@rs@@@process@list}% |
| 519 |
{\pgf@lib@sh@rs@@@process@list} |
| 520 |
}% |
| 521 |
|
| 522 |
\def\pgf@lib@sh@rs@@@process@list#1,{% |
| 523 |
\ifx#1\pgf@stop% |
| 524 |
\let\pgf@next\pgf@lib@sh@rs@@@@process@list% |
| 525 |
\else% |
| 526 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\c@pgf@counta}% |
| 527 |
\def\pgf@lib@sh@rs@lastalign{#1}% |
| 528 |
\pgfutil@namedef{pgf@lib@sh@rs@\pgf@lib@sh@toalpha{\c@pgf@counta}@item}{#1}% |
| 529 |
\let\pgf@next\pgf@lib@sh@rs@@process@list% |
| 530 |
\advance\c@pgf@counta by1\relax% |
| 531 |
\fi% |
| 532 |
\pgf@next}% |
| 533 |
|
| 534 |
\def\pgf@lib@sh@rs@@@@process@list{% |
| 535 |
\pgfmathloop% |
| 536 |
\ifnum\c@pgf@counta>\c@pgf@countb% |
| 537 |
\else% |
| 538 |
\expandafter\edef\csname pgf@lib@sh@rs@\pgf@lib@sh@toalpha{\c@pgf@counta}@item\endcsname% |
| 539 |
{\pgf@lib@sh@rs@lastalign}% |
| 540 |
\advance\c@pgf@counta by1\relax% |
| 541 |
\repeatpgfmathloop% |
| 542 |
}% |
| 543 |
|
| 544 |
\pgf@lib@sh@allocateboxes{20}% |
| 545 |
|
| 546 |
\pgfdeclareshape{rectangle split}{% |
| 547 |
\savedmacro\rectanglesplitparameters{% |
| 548 |
\pgfmathsetcount\c@pgf@counta{\pgfkeysvalueof{/pgf/rectangle split parts}}% |
| 549 |
\edef\parts{\the\c@pgf@counta}% |
| 550 |
\addtosavedmacro\parts% |
| 551 |
% |
| 552 |
\pgfmathsetlength\pgf@x{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 553 |
\edef\innerxsep{\the\pgf@x}% |
| 554 |
\pgfmathsetlength\pgf@y{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 555 |
\edef\innerysep{\the\pgf@y}% |
| 556 |
% |
| 557 |
\pgfmathsetlength\pgf@x{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 558 |
\edef\outerxsep{\the\pgf@x}% |
| 559 |
\pgfmathsetlength\pgf@y{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 560 |
\edef\outerysep{\the\pgf@y}% |
| 561 |
\addtosavedmacro\outerxsep% |
| 562 |
\addtosavedmacro\outerysep% |
| 563 |
% |
| 564 |
\pgf@x=0pt\relax% Widest box. |
| 565 |
\pgf@y=0pt\relax% Tallest box. |
| 566 |
% |
| 567 |
\pgfutil@tempdima=0pt\relax% Maximum box height. |
| 568 |
\pgfutil@tempdimb=0pt\relax% Maximum box depth. |
| 569 |
% |
| 570 |
% Get the dimensions of the boxes... |
| 571 |
% |
| 572 |
\pgfmathloop% |
| 573 |
\ifnum\pgfmathcounter>\parts% |
| 574 |
\else% |
| 575 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 576 |
% |
| 577 |
\expandafter\let\expandafter\pgf@lib@sh@box\expandafter=% |
| 578 |
\csname pgfnodepart\pgf@lib@sh@rs@number box\endcsname% |
| 579 |
\pgf@xa=\wd\pgf@lib@sh@box% |
| 580 |
\pgf@ya=\ht\pgf@lib@sh@box% |
| 581 |
\pgf@yb=\dp\pgf@lib@sh@box% |
| 582 |
% |
| 583 |
% Test to see if the box is empty... |
| 584 |
% |
| 585 |
\expandafter\def\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname{\relax}% |
| 586 |
\ifdim\pgf@xa=0pt\relax% |
| 587 |
\ifdim\pgf@ya=0pt\relax% |
| 588 |
\ifdim\pgf@yb=0pt\relax% |
| 589 |
% |
| 590 |
% ...It is. So... |
| 591 |
% |
| 592 |
\ifpgfrectanglesplitignoreemptyparts% |
| 593 |
% |
| 594 |
% ...flag this if we are ignoring parts... |
| 595 |
% |
| 596 |
\expandafter\let\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname=\pgfutil@empty% |
| 597 |
\else% |
| 598 |
% |
| 599 |
% ...otherwise insert the code for every empty part. |
| 600 |
% |
| 601 |
\setbox\pgf@lib@sh@box=\hbox{{\pgf@lib@sh@rs@every@emptypart}}% |
| 602 |
\pgf@xa=\wd\pgf@lib@sh@box% |
| 603 |
\pgf@ya=\ht\pgf@lib@sh@box% |
| 604 |
\pgf@yb=\dp\pgf@lib@sh@box% |
| 605 |
\fi% |
| 606 |
\fi% |
| 607 |
\fi% |
| 608 |
\fi% |
| 609 |
\expandafter\edef\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@number\endcsname{\the\pgf@xa}% |
| 610 |
\expandafter\edef\csname pgf@lib@sh@rs@height@\pgf@lib@sh@rs@number\endcsname{\the\pgf@ya}% |
| 611 |
\expandafter\edef\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@number\endcsname{\the\pgf@yb}% |
| 612 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname% |
| 613 |
% |
| 614 |
% ...saving the widest box... |
| 615 |
% |
| 616 |
\ifdim\pgf@xa>\pgf@x% |
| 617 |
\pgf@x=\pgf@xa% |
| 618 |
\fi% |
| 619 |
% |
| 620 |
% ...the maximum height and depth... |
| 621 |
% |
| 622 |
\ifdim\pgf@ya>\pgfutil@tempdima% |
| 623 |
\pgfutil@tempdima=\pgf@ya% |
| 624 |
\fi% |
| 625 |
\ifdim\pgf@yb>\pgfutil@tempdimb% |
| 626 |
\pgfutil@tempdimb=\pgf@yb% |
| 627 |
\fi% |
| 628 |
% |
| 629 |
% ...and the tallest box. |
| 630 |
% |
| 631 |
\pgf@yc=\pgfutil@tempdima% |
| 632 |
\advance\pgf@yc by\pgfutil@tempdimb% |
| 633 |
\ifdim\pgf@yc>\pgf@y% |
| 634 |
\pgf@y=\pgf@yc% |
| 635 |
\fi% |
| 636 |
\repeatpgfmathloop% |
| 637 |
% |
| 638 |
\edef\pgf@lib@sh@rs@max@width{\the\pgf@x}% |
| 639 |
\edef\pgf@lib@sh@rs@max@totalheight{\the\pgf@y}% |
| 640 |
% |
| 641 |
\pgfmathsetlength\pgf@x{\pgfkeysvalueof{/pgf/minimum width}}% |
| 642 |
\advance\pgf@x by-\innerxsep\relax% |
| 643 |
\advance\pgf@x by-\innerxsep\relax% |
| 644 |
\pgf@xa=\pgf@x% |
| 645 |
\advance\pgf@xa by-\pgf@lib@sh@rs@max@width\relax% |
| 646 |
\ifdim\pgf@xa>0pt\relax% |
| 647 |
\edef\pgf@lib@sh@rs@max@width{\the\pgf@x}% |
| 648 |
\fi% |
| 649 |
% |
| 650 |
\pgfmathsetlength\pgf@y{\pgfkeysvalueof{/pgf/minimum height}}% |
| 651 |
\advance\pgf@y by-\innerysep\relax% |
| 652 |
\advance\pgf@y by-\innerysep\relax% |
| 653 |
\pgf@ya=\pgf@y% |
| 654 |
\advance\pgf@ya by-\pgf@lib@sh@rs@max@totalheight\relax% |
| 655 |
\ifdim\pgf@ya>0pt\relax% |
| 656 |
\edef\pgf@lib@sh@rs@max@totalheight{\the\pgf@y}% |
| 657 |
\fi% |
| 658 |
% |
| 659 |
% Get the alignment of each node part box. |
| 660 |
% |
| 661 |
\pgf@lib@sh@rs@process@list{\pgfkeysvalueof{/pgf/rectangle split part align}}{\parts}% |
| 662 |
% |
| 663 |
% Are we splitting horizontally or vertically? |
| 664 |
% |
| 665 |
\ifpgfrectanglesplithorizontal% |
| 666 |
% |
| 667 |
% Calculate the origins of each node part box. |
| 668 |
% |
| 669 |
\pgf@x=0pt\relax% |
| 670 |
\pgfmathloop% |
| 671 |
\ifnum\pgfmathcounter>\parts% |
| 672 |
\else% |
| 673 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 674 |
% |
| 675 |
\expandafter\let\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname=\pgfutil@empty% |
| 676 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 677 |
\ifpgfrectanglesplitignoreemptyparts% |
| 678 |
\expandafter\let\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname=% |
| 679 |
\pgf@lib@sh@rs@lastanchor% |
| 680 |
\fi% |
| 681 |
\fi% |
| 682 |
% |
| 683 |
% Adjust for alignment. |
| 684 |
% |
| 685 |
\expandafter\ifx\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 686 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname% |
| 687 |
\pgf@lib@sh@rs@bottomtext% |
| 688 |
\pgf@y=\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@number\endcsname\relax% |
| 689 |
\else% |
| 690 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname% |
| 691 |
\pgf@lib@sh@rs@toptext% |
| 692 |
\pgf@y=-\csname pgf@lib@sh@rs@height@\pgf@lib@sh@rs@number\endcsname\relax% |
| 693 |
\advance\pgf@y by\pgf@lib@sh@rs@max@totalheight\relax% |
| 694 |
\else% |
| 695 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname% |
| 696 |
\pgf@lib@sh@rs@basetext% |
| 697 |
\pgf@y=\pgf@lib@sh@rs@max@totalheight\relax% |
| 698 |
\advance\pgf@y by-\pgfutil@tempdima% |
| 699 |
\advance\pgf@y by\pgfutil@tempdimb% |
| 700 |
\divide\pgf@y by2\relax% |
| 701 |
\else% |
| 702 |
\pgf@y=\pgf@lib@sh@rs@max@totalheight\relax% |
| 703 |
\advance\pgf@y by-\csname pgf@lib@sh@rs@height@\pgf@lib@sh@rs@number\endcsname\relax% |
| 704 |
\advance\pgf@y by\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@number\endcsname\relax% |
| 705 |
\divide\pgf@y by2\relax% |
| 706 |
\fi% |
| 707 |
\fi% |
| 708 |
\fi% |
| 709 |
% |
| 710 |
% Re-adjust as the first box is at the origin. |
| 711 |
% |
| 712 |
\ifnum\pgfmathcounter=1\relax% |
| 713 |
\edef\pgf@lib@sh@rs@yoffset{\the\pgf@y}% |
| 714 |
\pgf@y=0pt\relax% |
| 715 |
\pgfextract@process\pgf@lib@sh@rs@anchor@one{}% |
| 716 |
\addtosavedmacro\pgf@lib@sh@rs@anchor@one% |
| 717 |
\let\pgf@lib@sh@rs@lastanchor=\pgf@lib@sh@rs@anchor@one% |
| 718 |
\let\pgf@lib@sh@rs@lastnumber=\pgf@lib@sh@rs@number% |
| 719 |
\else |
| 720 |
\advance\pgf@y by-\pgf@lib@sh@rs@yoffset\relax% |
| 721 |
\advance\pgf@x by\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@lastnumber\endcsname\relax% |
| 722 |
\advance\pgf@x by\innerxsep\relax% |
| 723 |
\advance\pgf@x by\pgflinewidth% |
| 724 |
\advance\pgf@x by\innerxsep\relax% |
| 725 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname{}% |
| 726 |
\expandafter\let\expandafter\pgf@lib@sh@rs@lastanchor\expandafter=% |
| 727 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 728 |
\let\pgf@lib@sh@rs@lastnumber=\pgf@lib@sh@rs@number% |
| 729 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 730 |
\fi% |
| 731 |
\fi% |
| 732 |
\repeatpgfmathloop% |
| 733 |
% |
| 734 |
% Calculate some anchors. |
| 735 |
% |
| 736 |
\pgfextract@process\northeast{% |
| 737 |
\pgf@lib@sh@rs@lastanchor% |
| 738 |
\advance\pgf@x by\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@lastnumber\endcsname\relax% |
| 739 |
\advance\pgf@x by\innerxsep\relax% |
| 740 |
\advance\pgf@x by\outerxsep\relax% |
| 741 |
\pgf@y=\pgf@lib@sh@rs@max@totalheight\relax% |
| 742 |
\advance\pgf@y by-\pgf@lib@sh@rs@yoffset\relax% |
| 743 |
\advance\pgf@y by\innerysep\relax% |
| 744 |
\advance\pgf@y by\outerysep\relax% |
| 745 |
}% |
| 746 |
\addtosavedmacro\northeast% |
| 747 |
\pgfextract@process\southwest{% |
| 748 |
\pgf@lib@sh@rs@anchor@one% |
| 749 |
\advance\pgf@x by-\innerxsep\relax% |
| 750 |
\advance\pgf@x by-\outerxsep\relax% |
| 751 |
\pgf@y=-\pgf@lib@sh@rs@yoffset\relax% |
| 752 |
\advance\pgf@y by-\innerysep\relax% |
| 753 |
\advance\pgf@y by-\outerysep\relax% |
| 754 |
}% |
| 755 |
\addtosavedmacro\southwest% |
| 756 |
% |
| 757 |
\pgfextract@process\centerpoint{% |
| 758 |
\pgfpointadd{\southwest}{\northeast}% |
| 759 |
\divide\pgf@x by2\relax% |
| 760 |
\divide\pgf@y by2\relax% |
| 761 |
}% |
| 762 |
\addtosavedmacro\centerpoint% |
| 763 |
% |
| 764 |
\pgfmathloop% |
| 765 |
\ifnum\pgfmathcounter>\parts% |
| 766 |
\else% |
| 767 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 768 |
% |
| 769 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 770 |
\else% |
| 771 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 772 |
\pgf@xa=\pgf@x% |
| 773 |
\pgf@xb=\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@number\endcsname\relax% |
| 774 |
\advance\pgf@xa by0.5\pgf@xb% |
| 775 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @south\endcsname{% |
| 776 |
\southwest% |
| 777 |
\pgf@x=\pgf@xa% |
| 778 |
}% |
| 779 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @north\endcsname{% |
| 780 |
\northeast% |
| 781 |
\pgf@x=\pgf@xa% |
| 782 |
}% |
| 783 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @north\endcsname% |
| 784 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @south\endcsname% |
| 785 |
\ifnum\pgfmathcounter=\parts% |
| 786 |
\else% |
| 787 |
\advance\pgf@xa by0.5\pgf@xb% |
| 788 |
\advance\pgf@xa by\innerxsep\relax% |
| 789 |
\advance\pgf@xa by.5\pgflinewidth% |
| 790 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@south\endcsname{% |
| 791 |
\southwest% |
| 792 |
\pgf@x=\pgf@xa% |
| 793 |
}% |
| 794 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@north\endcsname{% |
| 795 |
\northeast% |
| 796 |
\pgf@x=\pgf@xa% |
| 797 |
}% |
| 798 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split\endcsname{% |
| 799 |
\centerpoint% |
| 800 |
\pgf@x=\pgf@xa% |
| 801 |
}% |
| 802 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@north\endcsname% |
| 803 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@south\endcsname% |
| 804 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split\endcsname% |
| 805 |
\fi% |
| 806 |
\fi% |
| 807 |
\repeatpgfmathloop% |
| 808 |
\else% |
| 809 |
% |
| 810 |
% Calculate the origins of each node part box. |
| 811 |
% |
| 812 |
\pgf@y=0pt\relax% |
| 813 |
\pgfmathloop% |
| 814 |
\ifnum\pgfmathcounter>\parts% |
| 815 |
\else% |
| 816 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 817 |
% |
| 818 |
\expandafter\let\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname=\pgfutil@empty% |
| 819 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 820 |
\ifpgfrectanglesplitignoreemptyparts% |
| 821 |
\expandafter\let\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname=% |
| 822 |
\pgf@lib@sh@rs@lastanchor% |
| 823 |
\fi% |
| 824 |
\fi% |
| 825 |
% |
| 826 |
% Adjust for alignment. |
| 827 |
% |
| 828 |
\expandafter\ifx\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 829 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname% |
| 830 |
\pgf@lib@sh@rs@lefttext% |
| 831 |
\pgf@x=0pt\relax% |
| 832 |
\else% |
| 833 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname% |
| 834 |
\pgf@lib@sh@rs@righttext% |
| 835 |
\pgf@x=-\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@number\endcsname\relax% |
| 836 |
\advance\pgf@x by\pgf@lib@sh@rs@max@width\relax% |
| 837 |
\else% |
| 838 |
\pgf@x=-\csname pgf@lib@sh@rs@width@\pgf@lib@sh@rs@number\endcsname\relax% |
| 839 |
\advance\pgf@x by\pgf@lib@sh@rs@max@width\relax% |
| 840 |
\divide\pgf@x by2\relax% |
| 841 |
\fi% |
| 842 |
\fi% |
| 843 |
% |
| 844 |
% Re-adjust as the first box is at the origin. |
| 845 |
% |
| 846 |
\ifnum\pgfmathcounter=1\relax% |
| 847 |
\edef\pgf@lib@sh@rs@xoffset{\the\pgf@x}% |
| 848 |
\pgf@x=0pt\relax% |
| 849 |
\pgfextract@process\pgf@lib@sh@rs@anchor@one{}% |
| 850 |
\addtosavedmacro\pgf@lib@sh@rs@anchor@one% |
| 851 |
\let\pgf@lib@sh@rs@lastanchor=\pgf@lib@sh@rs@anchor@one% |
| 852 |
\let\pgf@lib@sh@rs@lastnumber=\pgf@lib@sh@rs@number% |
| 853 |
\else |
| 854 |
\advance\pgf@x by-\pgf@lib@sh@rs@xoffset\relax% |
| 855 |
\advance\pgf@y by-\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@lastnumber\endcsname\relax% |
| 856 |
\advance\pgf@y by-\innerysep\relax% |
| 857 |
\advance\pgf@y by-\pgflinewidth% |
| 858 |
\advance\pgf@y by-\innerysep\relax% |
| 859 |
\advance\pgf@y by-\csname pgf@lib@sh@rs@height@\pgf@lib@sh@rs@number\endcsname\relax% |
| 860 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname{}% |
| 861 |
\expandafter\let\expandafter\pgf@lib@sh@rs@lastanchor\expandafter=% |
| 862 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 863 |
\let\pgf@lib@sh@rs@lastnumber=\pgf@lib@sh@rs@number% |
| 864 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 865 |
\fi% |
| 866 |
\fi% |
| 867 |
\repeatpgfmathloop% |
| 868 |
% |
| 869 |
% Calculate some anchors. |
| 870 |
% |
| 871 |
\pgfextract@process\northeast{% |
| 872 |
\pgf@x=\pgf@lib@sh@rs@max@width\relax% |
| 873 |
\advance\pgf@x by-\pgf@lib@sh@rs@xoffset\relax% |
| 874 |
\advance\pgf@x by\innerxsep\relax% |
| 875 |
\advance\pgf@x by\outerxsep\relax% |
| 876 |
\pgf@y=\pgf@lib@sh@rs@height@one\relax% |
| 877 |
\advance\pgf@y by\innerysep\relax% |
| 878 |
\advance\pgf@y by\outerysep\relax% |
| 879 |
\advance\pgf@y by.5\pgflinewidth% |
| 880 |
}% |
| 881 |
\addtosavedmacro\northeast% |
| 882 |
\pgfextract@process\southwest{% |
| 883 |
\pgf@lib@sh@rs@lastanchor% |
| 884 |
\pgf@x=-\pgf@lib@sh@rs@xoffset\relax% |
| 885 |
\advance\pgf@x by-\innerxsep\relax% |
| 886 |
\advance\pgf@x by-\outerxsep\relax% |
| 887 |
\advance\pgf@y by-\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@lastnumber\endcsname\relax% |
| 888 |
\advance\pgf@y by-\innerysep\relax% |
| 889 |
\advance\pgf@y by-\outerysep\relax% |
| 890 |
\advance\pgf@y by-.5\pgflinewidth% |
| 891 |
}% |
| 892 |
\addtosavedmacro\southwest% |
| 893 |
% |
| 894 |
\pgfextract@process\centerpoint{% |
| 895 |
\pgfpointadd{\southwest}{\northeast}% |
| 896 |
\divide\pgf@x by2\relax% |
| 897 |
\divide\pgf@y by2\relax% |
| 898 |
}% |
| 899 |
\addtosavedmacro\centerpoint% |
| 900 |
% |
| 901 |
\pgfmathloop% |
| 902 |
\ifnum\pgfmathcounter>\parts% |
| 903 |
\else% |
| 904 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 905 |
% |
| 906 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 907 |
\else% |
| 908 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 909 |
\pgf@ya=\csname pgf@lib@sh@rs@height@\pgf@lib@sh@rs@number\endcsname\relax% |
| 910 |
\advance\pgf@y by0.5\pgf@ya% |
| 911 |
\pgf@ya=\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@number\endcsname\relax% |
| 912 |
\advance\pgf@y by-0.5\pgf@ya% |
| 913 |
\pgf@ya=\pgf@y% |
| 914 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @west\endcsname{% |
| 915 |
\southwest% |
| 916 |
\pgf@y=\pgf@ya% |
| 917 |
}% |
| 918 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @east\endcsname{% |
| 919 |
\northeast% |
| 920 |
\pgf@y=\pgf@ya% |
| 921 |
}% |
| 922 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @east\endcsname% |
| 923 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @west\endcsname% |
| 924 |
\ifnum\pgfmathcounter=\parts% |
| 925 |
\else% |
| 926 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number\endcsname% |
| 927 |
\pgf@ya=\pgf@y% |
| 928 |
\advance\pgf@ya by-\csname pgf@lib@sh@rs@depth@\pgf@lib@sh@rs@number\endcsname\relax% |
| 929 |
\advance\pgf@ya by-\innerysep\relax% |
| 930 |
\advance\pgf@ya by-.5\pgflinewidth% |
| 931 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@west\endcsname{% |
| 932 |
\southwest% |
| 933 |
\pgf@y=\pgf@ya% |
| 934 |
}% |
| 935 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@east\endcsname{% |
| 936 |
\northeast% |
| 937 |
\pgf@y=\pgf@ya% |
| 938 |
}% |
| 939 |
\expandafter\pgfextract@process\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split\endcsname{% |
| 940 |
\centerpoint% |
| 941 |
\pgf@y=\pgf@ya% |
| 942 |
}% |
| 943 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@east\endcsname% |
| 944 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@west\endcsname% |
| 945 |
\expandafter\addtosavedmacro\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split\endcsname% |
| 946 |
\fi% |
| 947 |
\fi% |
| 948 |
\repeatpgfmathloop% |
| 949 |
\fi% |
| 950 |
}% |
| 951 |
\savedanchor\basepoint{% |
| 952 |
\pgf@x=0.5\wd\pgfnodeparttextbox% |
| 953 |
\pgf@y=0pt\relax% |
| 954 |
}% |
| 955 |
\savedanchor\midpoint{% |
| 956 |
\pgf@x=0.5\wd\pgfnodeparttextbox% |
| 957 |
\pgfmathsetlength\pgf@y{+0.5ex}% |
| 958 |
}% |
| 959 |
\anchor{center}{% |
| 960 |
\rectanglesplitparameters% |
| 961 |
\centerpoint% |
| 962 |
}% |
| 963 |
\anchor{base}{\basepoint}% |
| 964 |
\anchor{base east}{% |
| 965 |
\rectanglesplitparameters% |
| 966 |
\northeast% |
| 967 |
\pgf@y=0pt\relax% |
| 968 |
}% |
| 969 |
\anchor{base west}{% |
| 970 |
\rectanglesplitparameters% |
| 971 |
\southwest% |
| 972 |
\pgf@y=0pt\relax% |
| 973 |
}% |
| 974 |
\anchor{mid}{\midpoint}% |
| 975 |
\anchor{mid east}{% |
| 976 |
\rectanglesplitparameters% |
| 977 |
\northeast% |
| 978 |
\pgf@xa=\pgf@x% |
| 979 |
\midpoint% |
| 980 |
\pgf@x=\pgf@xa% |
| 981 |
}% |
| 982 |
\anchor{mid west}{% |
| 983 |
\rectanglesplitparameters% |
| 984 |
\southwest% |
| 985 |
\pgf@xa=\pgf@x% |
| 986 |
\midpoint% |
| 987 |
\pgf@x=\pgf@xa% |
| 988 |
}% |
| 989 |
\anchor{north}{% |
| 990 |
\rectanglesplitparameters% |
| 991 |
\centerpoint% |
| 992 |
\pgf@xa=\pgf@x% |
| 993 |
\northeast% |
| 994 |
\pgf@x=\pgf@xa% |
| 995 |
}% |
| 996 |
\anchor{south}{% |
| 997 |
\rectanglesplitparameters% |
| 998 |
\centerpoint% |
| 999 |
\pgf@xa=\pgf@x% |
| 1000 |
\southwest% |
| 1001 |
\pgf@x=\pgf@xa% |
| 1002 |
}% |
| 1003 |
\anchor{east}{% |
| 1004 |
\rectanglesplitparameters% |
| 1005 |
\centerpoint% |
| 1006 |
\pgf@ya=\pgf@y% |
| 1007 |
\northeast% |
| 1008 |
\pgf@y=\pgf@ya% |
| 1009 |
}% |
| 1010 |
\anchor{west}{% |
| 1011 |
\rectanglesplitparameters% |
| 1012 |
\centerpoint% |
| 1013 |
\pgf@ya=\pgf@y% |
| 1014 |
\southwest% |
| 1015 |
\pgf@y=\pgf@ya% |
| 1016 |
}% |
| 1017 |
\anchor{north east}{% |
| 1018 |
\rectanglesplitparameters% |
| 1019 |
\northeast% |
| 1020 |
}% |
| 1021 |
\anchor{north west}{% |
| 1022 |
\rectanglesplitparameters% |
| 1023 |
\northeast% |
| 1024 |
\pgf@ya=\pgf@y% |
| 1025 |
\southwest% |
| 1026 |
\pgf@y=\pgf@ya% |
| 1027 |
}% |
| 1028 |
\anchor{south west}{% |
| 1029 |
\rectanglesplitparameters% |
| 1030 |
\southwest% |
| 1031 |
}% |
| 1032 |
\anchor{south east}{% |
| 1033 |
\rectanglesplitparameters% |
| 1034 |
\southwest% |
| 1035 |
\pgf@ya=\pgf@y% |
| 1036 |
\northeast% |
| 1037 |
\pgf@y=\pgf@ya% |
| 1038 |
}% |
| 1039 |
\behindbackgroundpath{% |
| 1040 |
\ifpgfrectanglesplitusecustomfill% |
| 1041 |
\pgf@lib@sh@rs@process@list{\pgf@lib@sh@rs@list@fill}{\parts}% |
| 1042 |
{% |
| 1043 |
\ifpgfrectanglesplithorizontal% |
| 1044 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@bottomleft\expandafter=% |
| 1045 |
\csname pgf@anchor@rectangle split@south west\endcsname% |
| 1046 |
\pgfmathloop% |
| 1047 |
\ifnum\pgfmathcounter>\parts% |
| 1048 |
\else% |
| 1049 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 1050 |
\ifnum\pgfmathcounter=\parts% |
| 1051 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@topright\expandafter=% |
| 1052 |
\csname pgf@anchor@rectangle split@north east\endcsname% |
| 1053 |
\else% |
| 1054 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@topright\expandafter=% |
| 1055 |
\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@number\space split north\endcsname% |
| 1056 |
\fi% |
| 1057 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 1058 |
\else% |
| 1059 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname\pgf@lib@sh@rs@nonetext% |
| 1060 |
\else% |
| 1061 |
\pgfextract@process\pgf@lib@sh@rs@fill@bottomleft{% |
| 1062 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1063 |
\advance\pgf@y by\outerysep\relax% |
| 1064 |
\ifnum\pgfmathcounter=1\relax% |
| 1065 |
\advance\pgf@x by\outerxsep\relax% |
| 1066 |
\fi% |
| 1067 |
}% |
| 1068 |
\pgfextract@process\pgf@lib@sh@rs@fill@topright{% |
| 1069 |
\pgf@lib@sh@rs@fill@topright% |
| 1070 |
\advance\pgf@y by-\outerysep\relax% |
| 1071 |
\ifnum\pgfmathcounter=\parts\relax% |
| 1072 |
\advance\pgf@x by-\outerxsep\relax% |
| 1073 |
\fi% |
| 1074 |
}% |
| 1075 |
\ifnum\pgfmathcounter>1\relax% |
| 1076 |
\begingroup\pgfsetcornersarced{\pgfpointorigin}% |
| 1077 |
\fi% |
| 1078 |
\pgfpathmoveto{% |
| 1079 |
\pgf@lib@sh@rs@fill@topright% |
| 1080 |
\pgf@xa=\pgf@x% |
| 1081 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1082 |
\pgf@x=\pgf@xa% |
| 1083 |
}% |
| 1084 |
\pgfpathlineto{\pgf@lib@sh@rs@fill@bottomleft}% |
| 1085 |
\pgfpathlineto{% |
| 1086 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1087 |
\pgf@xa=\pgf@x% |
| 1088 |
\pgf@lib@sh@rs@fill@topright% |
| 1089 |
\pgf@x=\pgf@xa% |
| 1090 |
}% |
| 1091 |
\ifnum\pgfmathcounter>1\relax% |
| 1092 |
\endgroup% |
| 1093 |
\fi% |
| 1094 |
\ifnum\pgfmathcounter<\parts% |
| 1095 |
\begingroup\pgfsetcornersarced{\pgfpointorigin}% |
| 1096 |
\fi% |
| 1097 |
\pgfpathlineto{\pgf@lib@sh@rs@fill@topright}% |
| 1098 |
\pgfpathclose% |
| 1099 |
\ifnum\pgfmathcounter<\parts% |
| 1100 |
\endgroup% |
| 1101 |
\fi% |
| 1102 |
\pgfsetfillcolor{\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname}% |
| 1103 |
\pgfusepath{fill}% |
| 1104 |
\fi% |
| 1105 |
\fi% |
| 1106 |
\pgfextract@process\pgf@lib@sh@rs@fill@bottomleft{% |
| 1107 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1108 |
\pgf@ya=\pgf@y% |
| 1109 |
\pgf@lib@sh@rs@fill@topright% |
| 1110 |
\pgf@y=\pgf@ya% |
| 1111 |
\advance\pgf@y by-\outerysep% |
| 1112 |
}% |
| 1113 |
\repeatpgfmathloop% |
| 1114 |
\else% |
| 1115 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@topright\expandafter=% |
| 1116 |
\csname pgf@anchor@rectangle split@north east\endcsname% |
| 1117 |
\pgfmathloop% |
| 1118 |
\ifnum\pgfmathcounter>\parts% |
| 1119 |
\else% |
| 1120 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 1121 |
\ifnum\pgfmathcounter=\parts% |
| 1122 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@bottomleft\expandafter=% |
| 1123 |
\csname pgf@anchor@rectangle split@south west\endcsname% |
| 1124 |
\else% |
| 1125 |
\expandafter\let\expandafter\pgf@lib@sh@rs@fill@bottomleft\expandafter=% |
| 1126 |
\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@number\space split west\endcsname% |
| 1127 |
\fi% |
| 1128 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 1129 |
\else% |
| 1130 |
\expandafter\ifx\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname\pgf@lib@sh@rs@nonetext% |
| 1131 |
\else% |
| 1132 |
\pgfextract@process\pgf@lib@sh@rs@fill@bottomleft{% |
| 1133 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1134 |
\advance\pgf@x by\outerxsep\relax% |
| 1135 |
\ifnum\parts=1\relax% |
| 1136 |
\advance\pgf@y by\outerysep\relax% |
| 1137 |
\else% |
| 1138 |
\ifnum\pgfmathcounter=\parts |
| 1139 |
\advance\pgf@y by\outerysep\relax% |
| 1140 |
\fi% |
| 1141 |
\fi% |
| 1142 |
}% |
| 1143 |
\pgfextract@process\pgf@lib@sh@rs@fill@topright{% |
| 1144 |
\pgf@lib@sh@rs@fill@topright% |
| 1145 |
\advance\pgf@x by-\outerxsep\relax% |
| 1146 |
\ifnum\parts=1\relax% |
| 1147 |
\advance\pgf@y by-\outerysep\relax% |
| 1148 |
\else% |
| 1149 |
\ifnum\pgfmathcounter=1\relax% |
| 1150 |
\advance\pgf@y by-\outerysep\relax% |
| 1151 |
\fi% |
| 1152 |
\fi% |
| 1153 |
}% |
| 1154 |
\pgfpathmoveto{\pgf@lib@sh@rs@fill@bottomleft}% |
| 1155 |
\ifnum\pgfmathcounter>1\relax% |
| 1156 |
\begingroup\pgfsetcornersarced{\pgfpointorigin}% |
| 1157 |
\fi% |
| 1158 |
\pgfpathlineto{% |
| 1159 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1160 |
\pgf@xa=\pgf@x% |
| 1161 |
\pgf@lib@sh@rs@fill@topright% |
| 1162 |
\pgf@x=\pgf@xa% |
| 1163 |
}% |
| 1164 |
\pgfpathlineto{\pgf@lib@sh@rs@fill@topright}% |
| 1165 |
\ifnum\pgfmathcounter>1\relax% |
| 1166 |
\endgroup%% |
| 1167 |
\fi% |
| 1168 |
\ifnum\pgfmathcounter<\parts% |
| 1169 |
\begingroup\pgfsetcornersarced{\pgfpointorigin}% |
| 1170 |
\fi% |
| 1171 |
\pgfpathlineto{% |
| 1172 |
\pgf@lib@sh@rs@fill@topright% |
| 1173 |
\pgf@xa=\pgf@x% |
| 1174 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1175 |
\pgf@x=\pgf@xa% |
| 1176 |
}% |
| 1177 |
\pgfpathclose% |
| 1178 |
\ifnum\pgfmathcounter<\parts% |
| 1179 |
\endgroup% |
| 1180 |
\fi% |
| 1181 |
\pgfsetfillcolor{\csname pgf@lib@sh@rs@\pgf@lib@sh@rs@number @item\endcsname}% |
| 1182 |
\pgfusepath{fill}% |
| 1183 |
\fi% |
| 1184 |
\fi% |
| 1185 |
\pgfextract@process\pgf@lib@sh@rs@fill@topright{% |
| 1186 |
\pgf@lib@sh@rs@fill@topright% |
| 1187 |
\pgf@xa=\pgf@x% |
| 1188 |
\pgf@lib@sh@rs@fill@bottomleft% |
| 1189 |
\pgf@x=\pgf@xa% |
| 1190 |
\advance\pgf@x by\outerxsep\relax% |
| 1191 |
}% |
| 1192 |
\repeatpgfmathloop% |
| 1193 |
\fi% |
| 1194 |
}% |
| 1195 |
\fi% |
| 1196 |
}% |
| 1197 |
\backgroundpath{% |
| 1198 |
\begingroup% |
| 1199 |
\pgfextract@process\southwest{% |
| 1200 |
\southwest% |
| 1201 |
\advance\pgf@x by\outerxsep\relax% |
| 1202 |
\advance\pgf@y by\outerysep\relax% |
| 1203 |
}% |
| 1204 |
\pgfextract@process\northeast{% |
| 1205 |
\northeast% |
| 1206 |
\advance\pgf@x by-\outerxsep\relax% |
| 1207 |
\advance\pgf@y by-\outerysep\relax% |
| 1208 |
}% |
| 1209 |
\pgfpathrectangle{\southwest}{\pgfpointdiff{\southwest}{\northeast}}% |
| 1210 |
\endgroup% |
| 1211 |
\ifpgfrectanglesplitdrawsplits% |
| 1212 |
\pgfmathloop% |
| 1213 |
\ifnum\pgfmathcounter=\parts% |
| 1214 |
\else% |
| 1215 |
\pgf@lib@sh@getalpha\pgf@lib@sh@rs@number{\pgfmathcounter}% |
| 1216 |
% |
| 1217 |
\expandafter\ifx\csname pgf@lib@sh@rs@empty@\pgf@lib@sh@rs@number\endcsname\pgfutil@empty% |
| 1218 |
\else% |
| 1219 |
\pgfpathmoveto{% |
| 1220 |
\ifpgfrectanglesplithorizontal% |
| 1221 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@north\endcsname% |
| 1222 |
\advance\pgf@y by-\outerysep\relax% |
| 1223 |
\else% |
| 1224 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@east\endcsname% |
| 1225 |
\advance\pgf@x by-\outerxsep\relax% |
| 1226 |
\fi% |
| 1227 |
}% |
| 1228 |
\pgfpathlineto{% |
| 1229 |
\ifpgfrectanglesplithorizontal% |
| 1230 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@south\endcsname% |
| 1231 |
\advance\pgf@y by\outerysep\relax% |
| 1232 |
\else% |
| 1233 |
\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@number @split@west\endcsname% |
| 1234 |
\advance\pgf@x by\outerxsep\relax% |
| 1235 |
\fi% |
| 1236 |
}% |
| 1237 |
\fi% |
| 1238 |
\repeatpgfmathloop% |
| 1239 |
\fi% |
| 1240 |
}% |
| 1241 |
\anchorborder{% |
| 1242 |
\pgfutil@tempdima\pgf@x% |
| 1243 |
\pgfutil@tempdimb\pgf@y% |
| 1244 |
\rectanglesplitparameters% |
| 1245 |
\pgfpointdiff{\southwest}{\northeast}% |
| 1246 |
\[email protected]\pgf@x% |
| 1247 |
\[email protected]\pgf@y% |
| 1248 |
\edef\pgf@marshall{% |
| 1249 |
\noexpand\pgfpointborderrectangle{% |
| 1250 |
\noexpand\pgfqpoint{\the\pgfutil@tempdima}{\the\pgfutil@tempdimb}% |
| 1251 |
}% |
| 1252 |
{% |
| 1253 |
\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}% |
| 1254 |
}% |
| 1255 |
}% |
| 1256 |
\pgf@marshall% |
| 1257 |
\pgf@xa\pgf@x% |
| 1258 |
\pgf@ya\pgf@y% |
| 1259 |
\centerpoint% |
| 1260 |
\advance\pgf@x\pgf@xa% |
| 1261 |
\advance\pgf@y\pgf@ya% |
| 1262 |
}% |
| 1263 |
% |
| 1264 |
% Hackery to install the correct number of node parts. |
| 1265 |
% |
| 1266 |
\expandafter\pgfutil@g@addto@macro\csname pgf@sh@s@rectangle split\endcsname{% |
| 1267 |
\let\pgf@lib@sh@rs@temp=\pgfutil@empty% |
| 1268 |
\pgfmathloop% |
| 1269 |
\ifnum\pgfmathcounter=\parts% |
| 1270 |
\expandafter\edef\csname pgf@sh@boxes@rectangle split\endcsname% |
| 1271 |
{\pgf@lib@sh@rs@temp\pgf@lib@sh@toalpha{\pgfmathcounter}}% |
| 1272 |
\else% |
| 1273 |
\edef\pgf@lib@sh@rs@temp{\pgf@lib@sh@rs@temp\pgf@lib@sh@toalpha{\pgfmathcounter},}% |
| 1274 |
\repeatpgfmathloop% |
| 1275 |
}% |
| 1276 |
}% |
| 1277 |
|
| 1278 |
\pgfutil@for\pgf@lib@sh@rs@temp:={one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,twenty}\do{% |
| 1279 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\endcsname{% |
| 1280 |
\noexpand\rectanglesplitparameters% |
| 1281 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp}{\noexpand\pgf@lib@sh@rs@anchor@one}% |
| 1282 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp\noexpand\endcsname}% |
| 1283 |
}% |
| 1284 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space split\endcsname{% |
| 1285 |
\noexpand\rectanglesplitparameters% |
| 1286 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split}% |
| 1287 |
{\noexpand\centerpoint}% |
| 1288 |
{\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split\noexpand\endcsname}% |
| 1289 |
}% |
| 1290 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space split north\endcsname{% |
| 1291 |
\noexpand\rectanglesplitparameters% |
| 1292 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@north}% |
| 1293 |
{\noexpand\csname pgf@anchor@rectangle split@north\noexpand\endcsname}% |
| 1294 |
{\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@north\noexpand\endcsname}% |
| 1295 |
}% |
| 1296 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space split south\endcsname{% |
| 1297 |
\noexpand\rectanglesplitparameters% |
| 1298 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@south}% |
| 1299 |
{\noexpand\csname pgf@anchor@rectangle split@south\noexpand\endcsname}% |
| 1300 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@south\noexpand\endcsname}% |
| 1301 |
}% |
| 1302 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space north\endcsname{% |
| 1303 |
\noexpand\rectanglesplitparameters% |
| 1304 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @north}% |
| 1305 |
{\noexpand\csname pgf@anchor@rectangle split@north\noexpand\endcsname}% |
| 1306 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @north\noexpand\endcsname}% |
| 1307 |
}% |
| 1308 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space south\endcsname{% |
| 1309 |
\noexpand\rectanglesplitparameters% |
| 1310 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @south}% |
| 1311 |
{\noexpand\csname pgf@anchor@rectangle split@south\noexpand\endcsname}% |
| 1312 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @south\noexpand\endcsname}% |
| 1313 |
}% |
| 1314 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space split east\endcsname{% |
| 1315 |
\noexpand\rectanglesplitparameters% |
| 1316 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@east}% |
| 1317 |
{\noexpand\csname pgf@anchor@rectangle split@east\noexpand\endcsname}% |
| 1318 |
{\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@east\noexpand\endcsname}% |
| 1319 |
}% |
| 1320 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space split west\endcsname{% |
| 1321 |
\noexpand\rectanglesplitparameters% |
| 1322 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@west}% |
| 1323 |
{\noexpand\csname pgf@anchor@rectangle split@west\noexpand\endcsname}% |
| 1324 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @split@west\noexpand\endcsname}% |
| 1325 |
}% |
| 1326 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space east\endcsname{% |
| 1327 |
\noexpand\rectanglesplitparameters% |
| 1328 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @east}% |
| 1329 |
{\noexpand\csname pgf@anchor@rectangle split@east\noexpand\endcsname}% |
| 1330 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @east\noexpand\endcsname}% |
| 1331 |
}% |
| 1332 |
\expandafter\xdef\csname pgf@anchor@rectangle split@\pgf@lib@sh@rs@temp\space west\endcsname{% |
| 1333 |
\noexpand\rectanglesplitparameters% |
| 1334 |
\noexpand\pgfutil@ifundefined{pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @west}% |
| 1335 |
{\noexpand\csname pgf@anchor@rectangle split@west\noexpand\endcsname}% |
| 1336 |
{\noexpand\csname pgf@lib@sh@rs@anchor@\pgf@lib@sh@rs@temp @west\noexpand\endcsname}% |
| 1337 |
}% |
| 1338 |
}% |
| 1339 |
|
| 1340 |
|
| 1341 |
\pgfutil@namelet{pgf@anchor@rectangle split@text east}{pgf@anchor@rectangle split@one east}% |
| 1342 |
\pgfutil@namelet{pgf@anchor@rectangle split@text west}{pgf@anchor@rectangle split@one west}% |
| 1343 |
\pgfutil@namelet{pgf@anchor@rectangle split@text split}{pgf@anchor@rectangle split@one split}% |
| 1344 |
\pgfutil@namelet{pgf@anchor@rectangle split@text split east}{pgf@anchor@rectangle split@one split east}% |
| 1345 |
\pgfutil@namelet{pgf@anchor@rectangle split@text split west}{pgf@anchor@rectangle split@one split west}% |
| 1346 |
|
| 1347 |
\pgfutil@namelet{pgf@anchor@rectangle split@second}{pgf@anchor@rectangle split@two}% |
| 1348 |
\pgfutil@namelet{pgf@anchor@rectangle split@second east}{pgf@anchor@rectangle split@two east}% |
| 1349 |
\pgfutil@namelet{pgf@anchor@rectangle split@second west}{pgf@anchor@rectangle split@two west}% |
| 1350 |
\pgfutil@namelet{pgf@anchor@rectangle split@second split}{pgf@anchor@rectangle split@two split}% |
| 1351 |
\pgfutil@namelet{pgf@anchor@rectangle split@second split east}{pgf@anchor@rectangle split@two split east}% |
| 1352 |
\pgfutil@namelet{pgf@anchor@rectangle split@second split west}{pgf@anchor@rectangle split@two split west}% |
| 1353 |
|
| 1354 |
\pgfutil@namelet{pgf@anchor@rectangle split@third}{pgf@anchor@rectangle split@three}% |
| 1355 |
\pgfutil@namelet{pgf@anchor@rectangle split@third east}{pgf@anchor@rectangle split@three east}% |
| 1356 |
\pgfutil@namelet{pgf@anchor@rectangle split@third west}{pgf@anchor@rectangle split@three west}% |
| 1357 |
\pgfutil@namelet{pgf@anchor@rectangle split@third split}{pgf@anchor@rectangle split@three split}% |
| 1358 |
\pgfutil@namelet{pgf@anchor@rectangle split@third split east}{pgf@anchor@rectangle split@three split east}% |
| 1359 |
\pgfutil@namelet{pgf@anchor@rectangle split@third split west}{pgf@anchor@rectangle split@three split west}% |
| 1360 |
|
| 1361 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth}{pgf@anchor@rectangle split@four}% |
| 1362 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth east}{pgf@anchor@rectangle split@four east}% |
| 1363 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth west}{pgf@anchor@rectangle split@four west}% |
| 1364 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth split}{pgf@anchor@rectangle split@four split}% |
| 1365 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth split east}{pgf@anchor@rectangle split@four split east}% |
| 1366 |
\pgfutil@namelet{pgf@anchor@rectangle split@fourth split west}{pgf@anchor@rectangle split@four split west}% |
| 1367 |
|
| 1368 |
|
| 1369 |
|
| 1370 |
|
| 1371 |
% Shape: ellipse split. |
| 1372 |
% |
| 1373 |
\pgfdeclareshape{ellipse split}{% |
| 1374 |
\nodeparts{text,lower}% |
| 1375 |
\savedanchor\radii{% |
| 1376 |
\pgfmathsetlength\pgf@x{\pgfkeysvalueof{/pgf/inner xsep}}% |
| 1377 |
\pgfmathsetlength\pgf@y{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 1378 |
\[email protected]\pgf@y% |
| 1379 |
\advance\[email protected]\pgflinewidth% |
| 1380 |
\[email protected]\wd\pgfnodeparttextbox% |
| 1381 |
\[email protected]\wd\pgfnodepartlowerbox% |
| 1382 |
\advance\pgf@xa\pgf@x% |
| 1383 |
\advance\pgf@xb\pgf@x% |
| 1384 |
\pgf@ya\ht\pgfnodeparttextbox% |
| 1385 |
\advance\pgf@ya\dp\pgfnodeparttextbox% |
| 1386 |
\pgf@yb\ht\pgfnodepartlowerbox% |
| 1387 |
\advance\pgf@yb\dp\pgfnodepartlowerbox% |
| 1388 |
\advance\pgf@ya\pgf@y% |
| 1389 |
\advance\pgf@yb\pgf@y% |
| 1390 |
\ifdim\pgf@xa>\pgf@xb% |
| 1391 |
\[email protected]\pgf@xa% |
| 1392 |
\else% |
| 1393 |
\[email protected]\pgf@xb% |
| 1394 |
\fi% |
| 1395 |
\ifdim\pgf@ya>\pgf@yb% |
| 1396 |
\[email protected]\pgf@ya% |
| 1397 |
\else% |
| 1398 |
\[email protected]\pgf@yb% |
| 1399 |
\fi% |
| 1400 |
\pgfmathsetlength\pgf@xa{\pgfkeysvalueof{/pgf/minimum width}}% |
| 1401 |
\pgfmathsetlength\pgf@ya{\pgfkeysvalueof{/pgf/minimum height}}% |
| 1402 |
\ifdim\pgf@x<.5\pgf@xa% |
| 1403 |
\[email protected]\pgf@xa% |
| 1404 |
\fi% |
| 1405 |
\ifdim\pgf@y<.5\pgf@ya% |
| 1406 |
\[email protected]\pgf@ya% |
| 1407 |
\fi% |
| 1408 |
\pgfmathaddtolength\pgf@x{\pgfkeysvalueof{/pgf/outer xsep}}% |
| 1409 |
\pgfmathaddtolength\pgf@y{\pgfkeysvalueof{/pgf/outer ysep}}% |
| 1410 |
}% |
| 1411 |
\savedanchor\lower{% |
| 1412 |
\[email protected]\wd\pgfnodepartlowerbox% |
| 1413 |
\advance\[email protected]\wd\pgfnodeparttextbox% |
| 1414 |
\pgfmathsetlength\pgf@y{\pgfkeysvalueof{/pgf/inner ysep}}% |
| 1415 |
\[email protected]\pgf@y% |
| 1416 |
\advance\pgf@y-\pgflinewidth% |
| 1417 |
\advance\pgf@y-\dp\pgfnodeparttextbox% |
| 1418 |
\advance\pgf@y-\ht\pgfnodepartlowerbox% |
| 1419 |
}% |
| 1420 |
\savedanchor\centerpoint{% |
| 1421 |
\[email protected]\wd\pgfnodeparttextbox% |
| 1422 |
\pgfmathsetlength\pgf@y{-\pgfkeysvalueof{/pgf/inner ysep}}% |
| 1423 |
\advance\pgf@y-\dp\pgfnodeparttextbox% |
| 1424 |
\advance\[email protected]\pgflinewidth% |
| 1425 |
}% |
| 1426 |
\savedanchor\basepoint{% |
| 1427 |
\[email protected]\wd\pgfnodeparttextbox% |
| 1428 |
\pgf@y0pt\relax% |
| 1429 |
}% |
| 1430 |
\savedanchor\midpoint{% |
| 1431 |
\[email protected]\wd\pgfnodeparttextbox% |
| 1432 |
\pgfmathsetlength\pgf@y{.5ex}% |
| 1433 |
}% |
| 1434 |
\anchor{center}{\centerpoint}% |
| 1435 |
\anchor{lower}{\lower}% |
| 1436 |
\anchor{mid}{\midpoint}% |
| 1437 |
\anchor{mid east}{\radii\pgf@xa\pgf@x\midpoint\advance\pgf@x\pgf@xa}% |
| 1438 |
\anchor{mid west}{\radii\pgf@xa\pgf@x\midpoint\advance\pgf@x-\pgf@xa}% |
| 1439 |
\anchor{base}{\basepoint}% |
| 1440 |
\anchor{base east}{\radii\pgf@xa\pgf@x\basepoint\advance\pgf@x\pgf@xa}% |
| 1441 |
\anchor{base west}{\radii\pgf@xa\pgf@x\basepoint\advance\pgf@x-\pgf@xa}% |
| 1442 |
\anchor{north}{\pgfpointadd{\centerpoint}{\radii\pgf@x0pt}}% |
| 1443 |
\anchor{south}{\pgfpointadd{\centerpoint}{\radii\pgf@x0pt\pgf@y-\pgf@y}}% |
| 1444 |
\anchor{east}{\pgfpointadd{\centerpoint}{\radii\pgf@y0pt}}% |
| 1445 |
\anchor{west}{\pgfpointadd{\centerpoint}{\radii\pgf@x-\pgf@x\pgf@y0pt}}% |
| 1446 |
\anchor{north west}{\pgfpointadd{\centerpoint}{\radii\[email protected]\pgf@x\[email protected]\pgf@y}}% |
| 1447 |
\anchor{south west}{\pgfpointadd{\centerpoint}{\radii\[email protected]\pgf@x\[email protected]\pgf@y}}% |
| 1448 |
\anchor{north east}{\pgfpointadd{\centerpoint}{\radii\[email protected]\pgf@x\[email protected]\pgf@y}}% |
| 1449 |
\anchor{south east}{\pgfpointadd{\centerpoint}{\radii\[email protected]\pgf@x\[email protected]\pgf@y}}% |
| 1450 |
\backgroundpath{% |
| 1451 |
\radii% |
| 1452 |
\pgfmathaddtolength\pgf@x{-\pgfkeysvalueof{/pgf/outer xsep}}% |
| 1453 |
\pgfmathaddtolength\pgf@y{-\pgfkeysvalueof{/pgf/outer ysep}}% |
| 1454 |
\pgfutil@tempdima\pgf@x% |
| 1455 |
\pgfutil@tempdimb\pgf@y% |
| 1456 |
\pgfpathellipse{\centerpoint}{\pgfqpoint{\the\pgfutil@tempdima}{0pt}}{\pgfqpoint{0pt}{\the\pgfutil@tempdimb}}% |
| 1457 |
\pgfpathmoveto{\centerpoint\advance\pgf@x-\pgfutil@tempdima}% |
| 1458 |
\pgfpathlineto{\centerpoint\advance\pgf@x\pgfutil@tempdima}% |
| 1459 |
}% |
| 1460 |
\anchorborder{% |
| 1461 |
\pgfextract@process\externalpoint{}% |
| 1462 |
\radii% |
| 1463 |
\edef\pgf@marshal{% |
| 1464 |
\noexpand\pgfpointadd{\noexpand\pgfpointborderellipse{\noexpand\externalpoint}% |
| 1465 |
{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}}{\noexpand\centerpoint}% |
| 1466 |
}% |
| 1467 |
\pgf@marshal% |
| 1468 |
}% |
| 1469 |
}% |
| 1470 |
|
| 1471 |
\endinput |