| 1 |
% Copyright 2023 by Qrrbrbirlbel |
| 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 Free Documentation License. |
| 7 |
% |
| 8 |
|
| 9 |
\usepgflibrary{arrows.meta} |
| 10 |
\unless\ifcsname tikzextset\endcsname |
| 11 |
\input tikzext-util.tex |
| 12 |
\fi |
| 13 |
|
| 14 |
\pgfqkeys{/tikz-ext/@arrows decl}{ |
| 15 |
clone/.code={% |
| 16 |
\pgfutil@namelet{pgf@decl@arrow@code}{pgf@ar@code@#1}% |
| 17 |
\pgfutil@namelet{pgf@decl@arrow@defaults}{pgf@ar@defaults@#1}% |
| 18 |
\pgfutil@namelet{pgf@decl@arrow@setup}{pgf@ar@setup@#1}% |
| 19 |
\pgfutil@namelet{pgf@decl@arrow@bending@mode}{pgf@ar@bending@mode@#1}% |
| 20 |
\pgfutil@namelet{pgf@decl@arrow@par}{pgf@ar@par@#1}% |
| 21 |
\pgfutil@namelet{pgf@decl@arrow@cache}{pgf@ar@do@cache@#1}% |
| 22 |
}, |
| 23 |
append setup code/.code= |
| 24 |
\begingroup |
| 25 |
\pgfutil@toks@\expandafter{\pgf@decl@arrow@setup#1}% |
| 26 |
\expandafter\endgroup |
| 27 |
\expandafter\def\expandafter\pgf@decl@arrow@setup\expandafter |
| 28 |
{\the\pgfutil@toks@ }, |
| 29 |
% append parameters/.code= |
| 30 |
% \begingroup |
| 31 |
% \show\pgf@decl@arrow@par |
| 32 |
% \pgfutil@toks@\expandafter{\pgf@decl@arrow@par#1}% |
| 33 |
% \expandafter\endgroup |
| 34 |
% \expandafter\def\expandafter\pgf@decl@arrow@par\expandafter |
| 35 |
% {\the\pgfutil@toks@ } |
| 36 |
} |
| 37 |
% \pgfkeyssetvalue{/pgf/arrow keys/ext/weight}{true} |
| 38 |
|
| 39 |
%%% Barbed |
| 40 |
% Arc Barb, Parenthesis |
| 41 |
\pgfdeclarearrow{ |
| 42 |
/tikz-ext/@arrows decl/clone = Arc Barb, |
| 43 |
name = ext_Centered Arc Barb, |
| 44 |
/tikz-ext/@arrows decl/append setup code = |
| 45 |
\ifpgfarrowreversed |
| 46 |
\pgfarrowssetbackend{0pt} |
| 47 |
\else |
| 48 |
\pgfarrowssettipend{0pt} |
| 49 |
\fi |
| 50 |
} |
| 51 |
\pgfdeclarearrow{ |
| 52 |
/tikz-ext/@arrows decl/clone = Arc Barb, |
| 53 |
name = ext_Untipped Arc Barb, |
| 54 |
/tikz-ext/@arrows decl/append setup code = |
| 55 |
\ifpgfarrowreversed |
| 56 |
\pgfarrowssetbackend{\pgfarrowlength} |
| 57 |
\else |
| 58 |
\pgfarrowssettipend{\pgfarrowlength} |
| 59 |
\fi |
| 60 |
} |
| 61 |
|
| 62 |
% Hooks |
| 63 |
\pgfdeclarearrow{ |
| 64 |
/tikz-ext/@arrows decl/clone = Hooks, |
| 65 |
name = ext_Centered Hooks, |
| 66 |
/tikz-ext/@arrows decl/append setup code = |
| 67 |
\ifpgfarrowreversed |
| 68 |
\pgfarrowssetbackend{0pt} |
| 69 |
\else |
| 70 |
\pgfarrowssettipend{0pt} |
| 71 |
\fi |
| 72 |
} |
| 73 |
|
| 74 |
% Straight Barb |
| 75 |
\pgfdeclarearrow{ |
| 76 |
/tikz-ext/@arrows decl/clone = Straight Barb, |
| 77 |
name = ext_Centered Straight Barb, |
| 78 |
/tikz-ext/@arrows decl/append setup code = |
| 79 |
\ifpgfarrowreversed |
| 80 |
\pgfarrowssetbackend{.5\pgfarrowlength} |
| 81 |
\else |
| 82 |
\pgfarrowssettipend{.5\pgfarrowlength} |
| 83 |
\fi |
| 84 |
} |
| 85 |
|
| 86 |
% Tee Barb, Bar, Bracket |
| 87 |
\pgfdeclarearrow{ |
| 88 |
/tikz-ext/@arrows decl/clone = Tee Barb, |
| 89 |
name = ext_Centered Tee Barb, |
| 90 |
/tikz-ext/@arrows decl/append setup code = |
| 91 |
\ifpgfarrowreversed |
| 92 |
\pgfarrowssetbackend{0pt} |
| 93 |
\else |
| 94 |
\pgfarrowssettipend{0pt} |
| 95 |
\fi |
| 96 |
} |
| 97 |
\pgfdeclarearrow{ |
| 98 |
/tikz-ext/@arrows decl/clone = Tee Barb, |
| 99 |
name = ext_Untipped Tee Barb, |
| 100 |
/tikz-ext/@arrows decl/append setup code = |
| 101 |
\ifpgfarrowreversed\expandafter\pgfarrowssetbackend\else\expandafter\pgfarrowssettipend\fi |
| 102 |
{\pgfutil@tempdima |
| 103 |
\ifpgfutil@tempswa % does it not extend to the right? |
| 104 |
\advance\[email protected]\pgfarrowlinewidth |
| 105 |
\else |
| 106 |
\ifpgfutil@tempswb |
| 107 |
\else |
| 108 |
\pgf@x=.5\pgfarrowlength |
| 109 |
\fi |
| 110 |
\ifpgfarrowroundcap\else |
| 111 |
\advance\[email protected]\pgfarrowlinewidth |
| 112 |
\fi |
| 113 |
\fi |
| 114 |
} |
| 115 |
} |
| 116 |
%%% Mathematical |
| 117 |
% Classical TikZ Rightarrow |
| 118 |
% Computer Modern Rightarrow, To |
| 119 |
% Implies |
| 120 |
|
| 121 |
%%% Geometric |
| 122 |
% Circle, Ellipse |
| 123 |
\pgfdeclarearrow{ |
| 124 |
/tikz-ext/@arrows decl/clone = Circle, |
| 125 |
name = ext_Centered Circle, |
| 126 |
/tikz-ext/@arrows decl/append setup code = |
| 127 |
\ifpgfarrowreversed |
| 128 |
\pgfarrowssetbackend{.5\pgfarrowlength} |
| 129 |
\else |
| 130 |
\pgfarrowssettipend{.5\pgfarrowlength} |
| 131 |
\fi |
| 132 |
} |
| 133 |
\pgfdeclarearrow{ |
| 134 |
/tikz-ext/@arrows decl/clone = Circle, |
| 135 |
name = ext_Untipped Circle, |
| 136 |
/tikz-ext/@arrows decl/append setup code = |
| 137 |
\ifpgfarrowreversed |
| 138 |
\pgfarrowssetbackend{\pgfarrowlength \advance\pgf@x -.5\pgfarrowlinewidth} |
| 139 |
\else |
| 140 |
\pgfarrowssettipend{\pgfarrowlength \advance\pgf@x -.5\pgfarrowlinewidth} |
| 141 |
\fi |
| 142 |
} |
| 143 |
|
| 144 |
% Kite, Diamond, Turned Square |
| 145 |
\pgfdeclarearrow{ |
| 146 |
/tikz-ext/@arrows decl/clone = Kite, |
| 147 |
name = ext_Centered Kite, |
| 148 |
/tikz-ext/@arrows decl/append setup code = |
| 149 |
\ifpgfarrowreversed |
| 150 |
\pgfarrowssetbackend{\pgfarrowinset} |
| 151 |
\else |
| 152 |
\pgfarrowssettipend{\pgfarrowinset} |
| 153 |
\fi |
| 154 |
} |
| 155 |
|
| 156 |
% LaTeX |
| 157 |
% Square, Rectangle |
| 158 |
\pgfdeclarearrow{ |
| 159 |
/tikz-ext/@arrows decl/clone = Square, |
| 160 |
name = ext_Centered Square, |
| 161 |
/tikz-ext/@arrows decl/append setup code = |
| 162 |
\ifpgfarrowreversed |
| 163 |
\pgfarrowssetbackend{.5\pgfarrowlength} |
| 164 |
\else |
| 165 |
\pgfarrowssettipend{.5\pgfarrowlength} |
| 166 |
\fi |
| 167 |
} |
| 168 |
|
| 169 |
% Stealth, Triangle |
| 170 |
\pgfdeclarearrow{ |
| 171 |
/tikz-ext/@arrows decl/clone = Stealth, |
| 172 |
name = ext_Centered Stealth, |
| 173 |
/tikz-ext/@arrows decl/append setup code = |
| 174 |
% \pgfkeysgetvalue{/pgf/arrow keys/weight}\pgf@temp |
| 175 |
% \ifx\pgf@temp\pgf@truetext |
| 176 |
\ifpgfarrowreversed |
| 177 |
\pgfarrowssetbackend{.25\pgfarrowlength \advance\pgf@x .25\pgfarrowinset} |
| 178 |
\else |
| 179 |
\pgfarrowssettipend{.25\pgfarrowlength \advance\pgf@x .25\pgfarrowinset} |
| 180 |
\fi |
| 181 |
% \else |
| 182 |
% \ifpgfarrowreversed |
| 183 |
% \pgfarrowssetbackend{\pgf@temp\pgfarrowlength} |
| 184 |
% \else |
| 185 |
% \pgfarrowssettipend{\pgf@temp\pgfarrowlength} |
| 186 |
% \fi |
| 187 |
% \fi |
| 188 |
, |
| 189 |
% append parameters = {,\pgfkeysvalueof{/pgf/arrow keys/weight}}, |
| 190 |
% parameters = { |
| 191 |
% \the\pgfarrowlinewidth,% |
| 192 |
% \the\pgfarrowlength,% |
| 193 |
% \the\pgfarrowwidth,% |
| 194 |
% \the\pgfarrowinset,% |
| 195 |
% \pgfkeysvalueof{/pgf/arrow keys/weight},% |
| 196 |
% \ifpgfarrowharpoon h\fi% |
| 197 |
% \ifpgfarrowopen o\fi% |
| 198 |
% \ifpgfarrowroundjoin j\fi% |
| 199 |
% }, |
| 200 |
} |
| 201 |
%%% Caps |
| 202 |
|
| 203 |
%%% Rays |
| 204 |
\pgfdeclarearrow{ |
| 205 |
/tikz-ext/@arrows decl/clone = Rays, |
| 206 |
name = ext_Centered Rays, |
| 207 |
/tikz-ext/@arrows decl/append setup code = |
| 208 |
\ifpgfarrowreversed |
| 209 |
\pgfarrowssetbackend{0pt} |
| 210 |
\else |
| 211 |
\pgfarrowssettipend{0pt}%\pgfarrowssetvisualtipend{\pgf@xa} |
| 212 |
\fi |
| 213 |
} |
| 214 |
|
| 215 |
%%% Variants |
| 216 |
\pgfkeys{ |
| 217 |
ext_Centered Ellipse /.tip = {ext_Centered Circle[length=+3.3pt +4.95, width'=+0pt +0.5]}, |
| 218 |
ext_Centered Parenthesis /.tip = {ext_Centered Arc Barb[arc=+120,length=+1.725pt +2.3]}, |
| 219 |
ext_Centered Bar /.tip = {ext_Centered Tee Barb[length=+0pt]}, |
| 220 |
ext_Centered Bracket /.tip = {ext_Centered Tee Barb[inset'=+0pt +1,length=+0.75pt +1]}, |
| 221 |
ext_Centered Diamond /.tip = {ext_Centered Kite[inset'=+0pt .5]}, |
| 222 |
ext_Centered Turned Square /.tip = {ext_Centered Kite[length=+3pt 4,width'= +0pt 1,inset'= +0pt 0.5]}, |
| 223 |
ext_Centered Rectangle /.tip = {ext_Centered Square[length=+3pt +4.5,width'=+0pt +.5]}, |
| 224 |
ext_Centered Triangle /.tip = {ext_Centered Stealth[inset=+0pt, angle=+60:+2.7pt +3.6]}, |
| 225 |
ext_Untipped Ellipse /.tip = {ext_Untipped Circle[length=+3.3pt +4.95, width'=+0pt +0.5]}, |
| 226 |
ext_Untipped Parenthesis /.tip = {ext_Untipped Arc Barb[arc=+120,length=+1.725pt +2.3]}, |
| 227 |
ext_Untipped Bar /.tip = {ext_Untipped Tee Barb[length=+0pt]}, |
| 228 |
ext_Untipped Bracket /.tip = {ext_Untipped Tee Barb[inset'=+0pt +1,length=+0.75pt +1]}, |
| 229 |
} |
| 230 |
|
| 231 |
%%% New Arrows |
| 232 |
\pgfdeclarearrow{ |
| 233 |
name = ext_Hug Cap, |
| 234 |
parameters = \the\pgfarrowlength, |
| 235 |
defaults = { |
| 236 |
length = +0pt +1 |
| 237 |
}, |
| 238 |
setup code={ |
| 239 |
% h = r - .5 sqrt(4 r^2 - s^2) |
| 240 |
\ifdim2\pgfarrowlength<\pgflinewidth |
| 241 |
\pgfarrowlength=.51\pgflinewidth |
| 242 |
\fi |
| 243 |
\pgfmathsetlengthmacro\pgfarrowh{\pgfarrowlength-.5*sqrt(4*\pgfarrowlength*\pgfarrowlength-\pgflinewidth*\pgflinewidth} |
| 244 |
% a = asin(s / (2 r)) |
| 245 |
\pgfmathsetmacro\pgfarrowangle{asin(\the\pgflinewidth/(2*\the\pgfarrowlength))} |
| 246 |
\pgfarrowssavethe\pgfarrowlength % radius |
| 247 |
\pgfarrowssave\pgfarrowh % h |
| 248 |
\pgfarrowssave\pgfarrowangle % a |
| 249 |
\pgfarrowsupperhullpoint{0pt}{.5\pgflinewidth} |
| 250 |
\pgfarrowsupperhullpoint{\pgfarrowh}{.5\pgflinewidth} |
| 251 |
}, |
| 252 |
drawing code={ |
| 253 |
\pgfpathmoveto{\pgfqpoint{\pgfarrowh}{-.5\pgflinewidth}} |
| 254 |
\pgfpatharc{180+\pgfarrowangle}{180-\pgfarrowangle}{\pgfarrowlength} |
| 255 |
\pgfpathlineto{\pgfqpoint{-.1pt}{.5\pgflinewidth}} |
| 256 |
\pgfpathlineto{\pgfqpoint{-.1pt}{-.5\pgflinewidth}} |
| 257 |
\pgfpathclose |
| 258 |
\pgfusepathqfill |
| 259 |
} |
| 260 |
} |
| 261 |
|
| 262 |
\pgfdeclarearrow{ |
| 263 |
name = ext_Loop, |
| 264 |
parameters = {\the\pgfarrowlength,\the\pgfarrowinset,\ifpgfarrowopen o\fi}, |
| 265 |
defaults = {length = +3pt +1 +0, inset = +.75pt +1 +0}, |
| 266 |
setup code = {% |
| 267 |
\ifdim\pgfarrowlength<\dimexpr2\pgfarrowinset+\pgflinewidth\relax |
| 268 |
\pgfarrowlength\dimexpr2\pgfarrowinset+\pgflinewidth\relax |
| 269 |
\fi |
| 270 |
\ifdim\pgfarrowinset<.5\pgflinewidth |
| 271 |
\pgfarrowinset=.5\pgflinewidth |
| 272 |
\fi |
| 273 |
\pgfarrowssettipend{\pgfarrowlength}% |
| 274 |
\pgfarrowssetlineend{.5\pgflinewidth}% |
| 275 |
\pgfarrowshullpoint{\pgfarrowlength}{\pgfarrowlength}% |
| 276 |
\pgfarrowsupperhullpoint{0pt}{\pgfarrowlength}% |
| 277 |
\pgfarrowshullpoint{\pgflinewidth}{-\pgfarrowlength}% |
| 278 |
\pgfarrowssavethe\pgfarrowlength |
| 279 |
\pgfarrowssavethe\pgfarrowinset |
| 280 |
}, |
| 281 |
drawing code={% |
| 282 |
\pgfsetroundcap |
| 283 |
\pgfpathmoveto{\pgfqpoint{.5\pgflinewidth}{0pt}}% |
| 284 |
\pgfpathlineto{\pgfqpoint{\dimexpr\pgfarrowlength-\pgfarrowinset} |
| 285 |
{0pt}}% |
| 286 |
\pgfpatharc{+-90}{+0}{+\dimexpr\pgfarrowinset-.5\pgflinewidth}% |
| 287 |
\pgfpathlineto{\pgfqpoint{\dimexpr\pgfarrowlength-.5\pgflinewidth} |
| 288 |
{\dimexpr\pgfarrowlength-\pgfarrowinset}}% |
| 289 |
\pgfpatharc{+0}{+90}{+\dimexpr\pgfarrowinset-.5\pgflinewidth}% |
| 290 |
\pgfpathlineto{\pgfqpoint{\pgfarrowinset}{\dimexpr\pgfarrowlength-.5\pgflinewidth}}% |
| 291 |
\pgfpatharc{+90}{+180}{+\dimexpr\pgfarrowinset-.5\pgflinewidth}% |
| 292 |
\pgfpathlineto{\pgfqpoint{.5\pgflinewidth} |
| 293 |
{\dimexpr-\pgfarrowlength+.5\pgflinewidth}}% |
| 294 |
\ifpgfarrowopen\pgfusepathqstroke\else\pgfusepathqfillstroke\fi |
| 295 |
} |
| 296 |
} |
| 297 |
|
| 298 |
\pgfdeclarearrow{ |
| 299 |
name = ext_Double Cap@, |
| 300 |
defaults = {length = +0pt +1 +1, width = +0pt +1 +0}, |
| 301 |
setup code={% |
| 302 |
\pgfarrowssettipend{+0pt}% |
| 303 |
\pgfarrowssetbackend{+-\pgfarrowlength}% |
| 304 |
\pgfarrowssetlineend{+-.5\pgfarrowlength}% |
| 305 |
\pgfarrowsupperhullpoint{+0pt}{+.5\pgfarrowwidth}% |
| 306 |
\pgfarrowsupperhullpoint{+-\pgfarrowlength}{+.5\pgfarrowwidth}% |
| 307 |
\pgfarrowssavethe\pgfarrowwidth |
| 308 |
\pgfarrowssavethe\pgfarrowlength |
| 309 |
}, |
| 310 |
drawing code={% |
| 311 |
\pgfsetdash{}{+0pt}% |
| 312 |
\ifpgfarrowroundcap\pgfsetroundcap\fi |
| 313 |
\pgfpathmoveto{\pgfqpoint{-.5\pgfarrowlength} |
| 314 |
{\dimexpr.5\pgfarrowwidth\ifpgfarrowroundcap-.5\pgfarrowlength\fi}}% |
| 315 |
\pgfpathlineto{\pgfqpoint{-.5\pgfarrowlength} |
| 316 |
{\dimexpr-.5\pgfarrowwidth\ifpgfarrowroundcap+.5\pgfarrowlength\fi}}% |
| 317 |
\pgfsetlinewidth{+\pgfarrowlength}% |
| 318 |
\pgfusepathqstroke |
| 319 |
}, |
| 320 |
parameters={\the\pgfarrowlength,\the\pgfarrowwidth,\ifpgfarrowroundcap c\fi}} |
| 321 |
|
| 322 |
\pgfdeclarearrow{ |
| 323 |
name = ext_Double Stealth@, |
| 324 |
/tikz-ext/@arrows decl/clone = Stealth, |
| 325 |
/tikz-ext/@arrows decl/append setup code = {% |
| 326 |
\pgfmathsetlengthmacro\lwocenter |
| 327 |
{.5*\pgfinnerlinewidth+.25*(\pgflinewidth-\pgfinnerlinewidth)}% |
| 328 |
\advance\pgfarrowinset by\pgf@yc % undo weird things |
| 329 |
\ifdim\pgfarrowinset=0pt \def\shortenedinset{0pt}% |
| 330 |
\else \pgfmathsetlengthmacro\shortenedinset |
| 331 |
{\pgfarrowinset/\pgfutil@tempdimb*(\pgfutil@tempdimb-\lwocenter)}\fi |
| 332 |
\pgfarrowssetlineend{\shortenedinset}% |
| 333 |
\pgfarrowssave\lwocenter |
| 334 |
\pgfarrowssave\shortenedinset |
| 335 |
}, |
| 336 |
drawing code = {% |
| 337 |
\pgfsetdash{}{+0pt}% |
| 338 |
\ifpgfarrowroundjoin\pgfsetroundjoin\else\pgfsetmiterjoin\fi |
| 339 |
\ifdim\pgfarrowlinewidth=\pgflinewidth |
| 340 |
\else\pgfsetlinewidth{+\pgfarrowlinewidth}\fi |
| 341 |
\ifdim\shortenedinset=0pt |
| 342 |
\pgfsetrectcap |
| 343 |
\pgfpathmoveto{\pgfqpoint{\shortenedinset}{-\lwocenter}}% |
| 344 |
\else |
| 345 |
\pgfsetbuttcap |
| 346 |
\pgfpathmoveto{\pgfqpoint |
| 347 |
{\shortenedinset\advance\[email protected]\pgfarrowlinewidth}{-\lwocenter}}% |
| 348 |
\pgfpathlineto{\pgfqpoint{\shortenedinset}{-\lwocenter}}% |
| 349 |
\fi |
| 350 |
\pgfpathlineto{\pgfqpoint{\pgf@ya}{-\pgfutil@tempdimb}}% |
| 351 |
\pgfpathlineto{\pgfqpoint{\pgfutil@tempdima\advance\pgf@x by\pgf@ya}{0pt}}% |
| 352 |
\pgfpathlineto{\pgfqpoint{\pgf@ya}{\pgfutil@tempdimb}}% |
| 353 |
\pgfpathlineto{\pgfqpoint{\shortenedinset}{\lwocenter}}% |
| 354 |
\ifdim\shortenedinset=0pt \else |
| 355 |
\pgfpathlineto{\pgfqpoint |
| 356 |
{\shortenedinset\advance\[email protected]\pgfarrowlinewidth}{\lwocenter}}% |
| 357 |
\fi |
| 358 |
\ifpgfarrowopen \pgfusepathqstroke\else |
| 359 |
\ifdim\pgfarrowlinewidth>0pt \pgfusepathqfillstroke |
| 360 |
\else \pgfusepathqfill \fi \fi |
| 361 |
}, |
| 362 |
defaults = { |
| 363 |
length = +3pt +4.5 +.8, |
| 364 |
width' = +0pt +1.75, |
| 365 |
inset' = +0pt +0.425, |
| 366 |
line width = +0pt +1 +1, |
| 367 |
}, |
| 368 |
}% |
| 369 |
|
| 370 |
\pgfdeclarearrow{name = ext_Double Cap, means = {ext_Double Cap@[quick]}} |
| 371 |
\pgfdeclarearrow{name = ext_Double Stealth, means = {ext_Double Stealth@[open, quick]}} |
| 372 |
\pgfdeclarearrow{name = ext_Double Triangle,means = {ext_Double Stealth[inset=+0pt]}} |
| 373 |
|
| 374 |
%%% Compatibility |
| 375 |
\pgfqkeys{/pgf/arrow keys}{radius/.style={/pgf/arrow keys/inset={#1}}} % should be removed after v0.6 |
| 376 |
\tikzextset{ |
| 377 |
/tikz-ext/compat/add library={arrows}{pre 0.6}, |
| 378 |
/tikz-ext/@arrows decl/new name/.code={% This is not a good idea. |
| 379 |
\expandafter\let\csname pgf@ar@code@#1\endcsname\@undefined |
| 380 |
\expandafter\let\csname pgf@ar@defaults@#1\endcsname\@undefined |
| 381 |
\expandafter\let\csname pgf@ar@setup@#1\endcsname\@undefined |
| 382 |
\expandafter\let\csname pgf@ar@bending@mode@#1\endcsname\@undefined |
| 383 |
\expandafter\let\csname pgf@ar@par@#1\endcsname\@undefined |
| 384 |
\expandafter\let\csname pgf@ar@do@cache@#1\endcsname\@undefined |
| 385 |
\pgfset{@arrows decl/name={#1}}% |
| 386 |
}, |
| 387 |
compat/arrows/warn/.append code={% |
| 388 |
\tikzextutil@compatwarning@key{arrows}{pre 0.6}{/pgf/@arrows decl/clone}{/tikz-ext/@arrows decl/clone}% |
| 389 |
\tikzextutil@compatwarning@key{arrows}{pre 0.6}{/pgf/@arrows decl/append setup code}{/tikz-ext/@arrows decl/append setup code}% |
| 390 |
\pgfutil@for\tikzext@temp:=Centered Arc Barb,Untipped Arc Barb,Centered Hooks,% |
| 391 |
Centered Straight Barb,Centered Tee Barb,Untipped Tee Barb,Centered Circle,% |
| 392 |
Untipped Circle,Centered Kite,Centered Square,Centered Stealth,Centered Rays\do{% |
| 393 |
\pgfutil@IfUndefined{pgf@ar@code@\tikzext@temp}{% |
| 394 |
\pgfutil@IfUndefined{pgf@ar@means@\tikzext@temp}{% |
| 395 |
\pgfdeclarearrow{% |
| 396 |
/tikz-ext/@arrows decl/clone/.expanded = ext_\tikzext@temp, |
| 397 |
name/.expanded = \tikzext@temp, |
| 398 |
/tikz-ext/@arrows decl/append setup code/.expanded = {% |
| 399 |
\noexpand\tikzextutil@compatmaybewarning |
| 400 |
{arrow tip '\tikzext@temp'}{'ext_\tikzext@temp'}{arrows = pre 0.6}% |
| 401 |
}% |
| 402 |
} |
| 403 |
}{}% |
| 404 |
}{}% |
| 405 |
}% |
| 406 |
}, |
| 407 |
compat/arrows/pre 0.6/.append code=% |
| 408 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Arc Barb , means = ext_Centered Arc Barb}% |
| 409 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Arc Barb , means = ext_Untipped Arc Barb}% |
| 410 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Hooks , means = ext_Centered Hooks }% |
| 411 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Straight Barb , means = ext_Centered Straight Barb}% |
| 412 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Tee Barb , means = ext_Centered Tee Barb}% |
| 413 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Tee Barb , means = ext_Untipped Tee Barb}% |
| 414 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Circle , means = ext_Centered Circle }% |
| 415 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Circle , means = ext_Untipped Circle }% |
| 416 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Kite , means = ext_Centered Kite }% |
| 417 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Square , means = ext_Centered Square }% |
| 418 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Stealth , means = ext_Centered Stealth }% |
| 419 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Rays , means = ext_Centered Rays }% |
| 420 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Ellipse , means = ext_Centered Ellipse }% |
| 421 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Parenthesis , means = ext_Centered Parenthesis }% |
| 422 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Bar , means = ext_Centered Bar }% |
| 423 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Bracket , means = ext_Centered Bracket }% |
| 424 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Diamond , means = ext_Centered Diamond }% |
| 425 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Turned Square , means = ext_Centered Turned Square}% |
| 426 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Rectangle , means = ext_Centered Rectangle }% |
| 427 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Centered Triangle , means = ext_Centered Triangle }% |
| 428 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Ellipse , means = ext_Untipped Ellipse }% |
| 429 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Parenthesis , means = ext_Untipped Parenthesis }% |
| 430 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Bar , means = ext_Untipped Bar }% |
| 431 |
\pgfdeclarearrow{/tikz-ext/@arrows decl/new name = Untipped Bracket , means = ext_Untipped Bracket }% |
| 432 |
,% |
| 433 |
compat/arrows/\pgfkeysvalueof{/tikz/ext/compat/arrows}% |
| 434 |
} |
| 435 |
\endinput |
| 436 |
|