Debian Codegraph @

texmf-dist/tex/generic/tikz-ext/tikzlibraryext.positioning-plus.code.tex

raw
1 % Copyright 2024 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 % This is the TikZ library positioning-plus
9 % Load with \usetikzlibrary{positioning-plus}
10 %
11 % This small library extends TikZ options like 'above', 'left' or 'below right'
12 % so that they can be used with an optional prefixed factor separated by ':' (colon)
13 %
14 % The option 'left=.5:of somenode' will place
15 % a new node .5cm (default 'node distance' is '1cm and 1cm') left to (somenode).
16 % The option 'above right=.2 and .7:of someothernode' will place
17 % a new node .2cm above and .7cm right of (someothernode).
18 %
19 % Additional the options 'xshift*' and 'yshift*' add an additional shift
20 % as a factor of 'node distance'
21 % Inspired by http://tex.stackexchange.com/a/117610/16595
22
23 \unless\ifcsname tikzextset\endcsname
24 \input tikzext-util.tex
25 \fi
26
27 \usetikzlibrary{positioning}
28 \usetikzlibrary{fit}
29
30 \pgfdeclaregenericanchor{ext_corner south east}{%
31 \pgf@sh@reanchor{#1}{south}%
32 \pgf@ya\pgf@y
33 \pgf@process{\pgf@sh@reanchor{#1}{east}}%
34 \pgf@y\pgf@ya
35 }
36 \pgfdeclaregenericanchor{ext_corner north east}{%
37 \pgf@sh@reanchor{#1}{north}%
38 \pgf@ya\pgf@y
39 \pgf@process{\pgf@sh@reanchor{#1}{east}}%
40 \pgf@y\pgf@ya
41 }
42 \pgfdeclaregenericanchor{ext_corner south west}{%
43 \pgf@sh@reanchor{#1}{south}%
44 \pgf@ya\pgf@y
45 \pgf@process{\pgf@sh@reanchor{#1}{west}}%
46 \pgf@y\pgf@ya
47 }
48 \pgfdeclaregenericanchor{ext_corner north west}{%
49 \pgf@sh@reanchor{#1}{north}%
50 \pgf@ya\pgf@y
51 \pgf@process{\pgf@sh@reanchor{#1}{west}}%
52 \pgf@y\pgf@ya
53 }
54 \pgfdeclaregenericanchor{ext_text right}{%
55 \pgf@sh@reanchor{#1}{base}%
56 \multiply\pgf@x by 2
57 }
58 \newif\iftikzext@tikz@lib@place@postransform
59 \tikzextset{
60 corner above left/.code=\tikzext@posp@handle{#1}{ext_corner south east}{-1}{1}{ext_corner north west}{0.707106781},
61 corner above right/.code=\tikzext@posp@handle{#1}{ext_corner south west}{1}{1}{ext_corner north east}{0.707106781},
62 corner below left/.code=\tikzext@posp@handle{#1}{ext_corner north east}{-1}{-1}{ext_corner south west}{0.707106781},
63 corner below right/.code=\tikzext@posp@handle{#1}{ext_corner north west}{1}{-1}{ext_corner south east}{0.707106781},
64 corner north left/.code=\tikzext@posp@handle{#1}{ext_corner north east}{-1}{0}{ext_corner north west}{1},
65 corner north right/.code=\tikzext@posp@handle{#1}{ext_corner north west}{1}{0}{ext_corner north east}{1},
66 corner south left/.code=\tikzext@posp@handle{#1}{ext_corner south east}{-1}{0}{ext_corner south west}{1},
67 corner south right/.code=\tikzext@posp@handle{#1}{ext_corner south west}{1}{0}{ext_corner south east}{1},
68 corner west above/.code=\tikzext@posp@handle{#1}{ext_corner south west}{0}{1}{ext_corner north west}{1},
69 corner west below/.code=\tikzext@posp@handle{#1}{ext_corner north west}{0}{-1}{ext_corner south west}{1},
70 corner east above/.code=\tikzext@posp@handle{#1}{ext_corner south east}{0}{1}{ext_corner north east}{1},
71 corner east below/.code=\tikzext@posp@handle{#1}{ext_corner north east}{0}{-1}{ext_corner south east}{1},
72 north left/.code=\tikzext@posp@handle{#1}{north east}{-1}{0}{north west}{1},
73 north right/.code=\tikzext@posp@handle{#1}{north west}{1}{0}{north east}{1},
74 south left/.code=\tikzext@posp@handle{#1}{south east}{-1}{0}{south west}{1},
75 south right/.code=\tikzext@posp@handle{#1}{south west}{1}{0}{south east}{1},
76 west above/.code=\tikzext@posp@handle{#1}{south west}{0}{1}{north west}{1},
77 west below/.code=\tikzext@posp@handle{#1}{north west}{0}{-1}{south west}{1},
78 east above/.code=\tikzext@posp@handle{#1}{south east}{0}{1}{north east}{1},
79 east below/.code=\tikzext@posp@handle{#1}{north east}{0}{-1}{south east}{1},
80 above left/.code=\tikzext@posp@handle{#1}{south east}{-1}{1}{north west}{0.707106781},
81 above right/.code=\tikzext@posp@handle{#1}{south west}{1}{1}{north east}{0.707106781},
82 base left/.code=\tikzext@posp@handle{#1}{base east}{-1}{0}{base west}{1},
83 base right/.code=\tikzext@posp@handle{#1}{base west}{1}{0}{base east}{1},
84 below left/.code=\tikzext@posp@handle{#1}{north east}{-1}{-1}{south west}{0.707106781},
85 below right/.code=\tikzext@posp@handle{#1}{north west}{1}{-1}{south east}{0.707106781},
86 mid left/.code=\tikzext@posp@handle{#1}{mid east}{-1}{0}{mid west}{1},
87 mid right/.code=\tikzext@posp@handle{#1}{mid west}{1}{0}{mid east}{1},
88 above/.code=\tikzext@posp@handle{#1}{south}{0}{1}{north}{1},
89 below/.code=\tikzext@posp@handle{#1}{north}{0}{-1}{south}{1},
90 left/.code=\tikzext@posp@handle{#1}{east}{-1}{0}{west}{1},
91 right/.code=\tikzext@posp@handle{#1}{west}{1}{0}{east}{1},
92 node distance transformation/.is if=tikzext@tikz@lib@place@postransform%
93 }
94 \def\tikzext@posp@handle#1#2#3#4#5#6{%
95 \def\tikz@anchor{#2}%
96 \let\tikz@do@auto@anchor\relax
97 \edef\tikz@temp{#1}%
98 \def\tikz@lib@place@single@factor{#6}%
99 \pgfutil@in@{of }{#1}%
100 \ifpgfutil@in@
101 \tikzext@posp@of#1\tikz@stop{#3}{#4}{#5}%
102 \else
103 \def\tikzext@posp@xfactor{#3}%
104 \def\tikzext@posp@yfactor{#4}%
105 \edef\tikz@lib@place@nums{#1}%
106 \fi
107 %
108 \unless\ifx\tikz@lib@place@nums\pgfutil@empty
109 \expandafter\tikz@lib@place@parse@nums\expandafter{\tikz@lib@place@nums}%
110 \pgf@x=\tikzext@posp@xfactor\pgf@x
111 \pgf@y=\tikzext@posp@yfactor\pgf@y
112 \iftikzext@tikz@lib@place@postransform
113 \pgf@pos@transform{\pgf@x}{\pgf@y}% change from original
114 \fi
115 \edef\tikz@lib@pos@call{\noexpand\pgftransformshift{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}}%
116 \fi
117 }
118 \def\tikzext@posp@of#1of #2\tikz@stop#3#4#5{%
119 \pgfutil@in@{:}{#1}%
120 \ifpgfutil@in@
121 \tikzext@posp@colon#1\tikz@stop{#3}{#4}%
122 \else
123 \tikzext@posp@colon1and1:#1\tikz@stop{#3}{#4}
124 \fi
125 \tikzext@posp@of@{#2}{#5}%
126 }
127 \def\tikzext@posp@colon#1:#2\tikz@stop#3#4{%
128 \pgfutil@in@{and}{#1}%
129 \ifpgfutil@in@
130 \tikzext@posp@colon@#1\tikz@stop{#3}{#4}%
131 \else
132 \tikzext@posp@colon@#1and#1\tikz@stop{#3}{#4}%
133 \fi
134 \def\tikz@lib@place@nums{#2}%
135 \ifx\tikz@lib@place@nums\pgfutil@empty
136 \let\tikz@lib@place@nums\tikz@node@distance
137 \fi
138 }
139 \def\tikzext@posp@colon@#1and#2\tikz@stop#3#4{%
140 \pgfmathmultiply{#1}{#3}\let\tikzext@posp@xfactor\pgfmathresult
141 \pgfmathmultiply{#2}{#4}\let\tikzext@posp@yfactor\pgfmathresult
142 }
143 \def\tikzext@posp@of@#1#2{%
144 % #1: of part
145 % #2: other anchor
146 \def\tikzext@posp@scan{ext_fit bounding box}%
147 \edef\tikzext@temp{\expandafter\tikzextutil@firstofmany#1\pgf@stop}%
148 \if\tikzext@temp(%
149 \tikzext@posp@fit{#1}{0}%
150 \else\if\tikzext@temp|%
151 \expandafter\tikzext@posp@fit\expandafter{\tikzextutil@secondofmany#1\pgf@stop}{1}%
152 \else\ifx\tikzext@temp\tikz@activebar
153 \expandafter\tikzext@posp@fit\expandafter{\tikzextutil@secondofmany#1\pgf@stop}{1}%
154 \else\if\tikzext@temp-%
155 \expandafter\tikzext@posp@fit\expandafter{\tikzextutil@secondofmany#1\pgf@stop}{2}%
156 \else\if\tikzext@temp+%
157 \expandafter\tikzext@posp@fit\expandafter{\tikzextutil@secondofmany#1\pgf@stop}{3}%
158 \else
159 \def\tikzext@posp@scan{#1}%
160 \fi
161 \fi
162 \fi
163 \fi
164 \fi
165 \expandafter\tikz@scan@one@point\expandafter\tikz@lib@place@remember\expandafter(\tikzext@posp@scan)% TODO: expandafters
166 \iftikz@shapeborder%
167 % Ok, this is relative to a border.
168 \iftikz@lib@ignore@size%
169 \edef\tikz@node@at{\noexpand\pgfpointanchor{\tikz@shapeborder@name}{center}}%
170 \def\tikz@anchor{center}%
171 \else%
172 \edef\tikz@node@at{\noexpand\pgfpointanchor{\tikz@shapeborder@name}{#2}}%
173 \fi%
174 \fi%
175 }
176
177 \def\tikzext@posp@xyshift#1#2#3{%
178 \edef\tikz@marshal{\noexpand\pgfutil@in@{and}{\tikz@node@distance}}%
179 \tikz@marshal
180 \ifpgfutil@in@
181 \expandafter\tikzext@posp@handle@\tikz@node@distance\tikz@stop
182 \else
183 \let#3\tikz@node@distance
184 \fi
185 \pgfmathparse{(#1)*#3}%
186 \ifpgfmathunitsdeclared
187 \if#2x%
188 \pgftransformshift{\pgfqpoint{\pgfmathresult pt}{0pt}}%
189 \else
190 \pgftransformshift{\pgfqpoint{0pt}{\pgfmathresult pt}}%
191 \fi
192 \else
193 \ifx#2x%
194 \pgf@process{\pgfqpointxy{\pgfmathresult}{0}}%
195 \else
196 \pgf@process{\pgfqpointxy{0}{\pgfmathresult}}%
197 \fi
198 \pgftransformshift{\pgfqpoint{\pgf@x}{\pgf@y}}%
199 \fi
200 }
201 \def\tikzext@posp@xyshift@#1and#2\tikz@stop{%
202 \def\pgf@tempb{#1}%
203 \def\pgf@tempa{#2}%
204 }
205 \tikzextset{
206 xshift*/.code=\tikzext@posp@xyshift{#1}x\pgf@tempb,
207 yshift*/.code=\tikzext@posp@xyshift{#1}y\pgf@tempa
208 }
209 \def\tikzext@posp@fit#1#2{%
210 \pgf@xb=-16000pt\relax%
211 \pgf@xa=16000pt\relax%
212 \pgf@yb=-16000pt\relax%
213 \pgf@ya=16000pt\relax%
214 \if\tikzextutil@firstofmany#1\pgf@stop(%
215 \tikz@lib@fit@scan#1\pgf@stop%
216 \else
217 \tikz@lib@fit@scan(#1)\pgf@stop
218 \fi
219 \ifdim\pgf@xa>\pgf@xa
220 % shouldn't happen
221 \else
222 \expandafter\gdef\csname pgf@sh@ns@ext_fit bounding box\endcsname{rectangle}%
223 \expandafter\xdef\csname pgf@sh@np@ext_fit bounding box\endcsname{%
224 \def\noexpand\southwest{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}%
225 \def\noexpand\northeast{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}%
226 }%
227 \expandafter\gdef\csname pgf@sh@nt@ext_fit bounding box\endcsname{{1}{0}{0}{1}{0pt}{0pt}}%
228 \expandafter\xdef\csname pgf@sh@pi@ext_fit bounding box\expandafter\endcsname\expandafter{\pgfpictureid}%
229 \ifcase#2\relax
230 \or % 1 = vertical
231 \pgf@y=\pgf@yb%
232 \advance\pgf@y by-\pgf@ya%
233 \edef\pgf@marshal{\noexpand\pgfset{minimum height={\the\pgf@y-2*(\noexpand\pgfkeysvalueof{/pgf/outer ysep})}}}%
234 \pgf@marshal
235 \or % 2 = horizontal
236 \pgf@x=\pgf@xb%
237 \advance\pgf@x by-\pgf@xa%
238 \edef\pgf@marshal{\noexpand\pgfset{minimum width={\the\pgf@x-2*(\noexpand\pgfkeysvalueof{/pgf/outer xsep})}}}%
239 \pgf@marshal
240 \or % 3 = both directions
241 \pgf@y=\pgf@yb%
242 \advance\pgf@y by-\pgf@ya%
243 \pgf@x=\pgf@xb%
244 \advance\pgf@x by-\pgf@xa%
245 \edef\pgf@marshal{\noexpand\pgfset{minimum height={\the\pgf@y-2*(\noexpand\pgfkeysvalueof{/pgf/outer ysep})},minimum width={\the\pgf@x-2*(\noexpand\pgfkeysvalueof{/pgf/outer xsep})}}}%
246 \pgf@marshal
247 \fi
248 \fi
249 }
250 \tikzextset{
251 fit bounding box/.code=\tikz@lib@place@fit@scan{#1}{0},
252 span vertical/.code=\tikz@lib@place@fit@scan{#1}{1},
253 span horizontal/.code=\tikz@lib@place@fit@scan{#1}{2},
254 span/.code=\tikz@lib@place@fit@scan{#1}{3}}
255
256 \pgfmathdeclarefunction{ext_x_node_dist}{0}{%
257 \begingroup
258 \edef\pgfmath@temp{\noexpand\pgfutil@in@{and}{\tikz@node@distance}}%
259 \pgfmath@temp\ifpgfutil@in@
260 \expandafter\tikzext@posp@xyshift@\tikz@node@distance\tikz@stop
261 \else
262 \let\pgf@tempb\tikz@node@distance
263 \fi
264 \pgfmathparse{\pgf@tempb}%
265 \pgfmath@smuggleone\pgfmathresult
266 \endgroup
267 }
268 \pgfmathdeclarefunction{ext_y_node_dist}{0}{%
269 \begingroup
270 \edef\pgfmath@temp{\noexpand\pgfutil@in@{and}{\tikz@node@distance}}%
271 \pgfmath@temp\ifpgfutil@in@
272 \expandafter\tikzext@posp@xyshift@\tikz@node@distance\tikz@stop
273 \else
274 \let\pgf@tempa\tikz@node@distance
275 \fi
276 \pgfmathparse{\pgf@tempa}%
277 \pgfmath@smuggleone\pgfmathresult
278 \endgroup
279 }
280
281 %%% Compatibility
282 \tikzextset{
283 /tikz-ext/compat/add library={positioning-plus}{pre 0.6},
284 compat/positioning-plus/warn/.append code=%
285 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/xshift*}{/tikz/ext/xshift*}%
286 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/yshift*}{/tikz/ext/yshift*}%
287 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/corner above left}{/tikz/ext/corner above left}%
288 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/corner below left}{/tikz/ext/corner below left}%
289 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/corner above right}{/tikz/ext/corner above right}%
290 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/corner below right}{/tikz/ext/corner below right}%
291 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/north left}{/tikz/ext/north left}%
292 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/south left}{/tikz/ext/south left}%
293 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/north right}{/tikz/ext/north right}%
294 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/south right}{/tikz/ext/south right}%
295 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/west above}{/tikz/ext/west above}%
296 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/west below}{/tikz/ext/west below}%
297 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/east above}{/tikz/ext/east above}%
298 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/east below}{/tikz/ext/east below}%
299 \pgfkeysdef{/tikz/above}{\pgfkeysvalueof{/tikz/ext/above/.@cmd}##1\pgfeov}% no compat warning possible
300 \pgfkeysdef{/tikz/below}{\pgfkeysvalueof{/tikz/ext/below/.@cmd}##1\pgfeov}%
301 \pgfkeysdef{/tikz/left}{\pgfkeysvalueof{/tikz/ext/left/.@cmd}##1\pgfeov}%
302 \pgfkeysdef{/tikz/right}{\pgfkeysvalueof{/tikz/ext/right/.@cmd}##1\pgfeov}%
303 \pgfkeysdef{/tikz/above left}{\pgfkeysvalueof{/tikz/ext/above left/.@cmd}##1\pgfeov}%
304 \pgfkeysdef{/tikz/below left}{\pgfkeysvalueof{/tikz/ext/below left/.@cmd}##1\pgfeov}%
305 \pgfkeysdef{/tikz/above right}{\pgfkeysvalueof{/tikz/ext/above right/.@cmd}##1\pgfeov}%
306 \pgfkeysdef{/tikz/below right}{\pgfkeysvalueof{/tikz/ext/below right/.@cmd}##1\pgfeov}%
307 \pgfkeysdef{/tikz/base left}{\pgfkeysvalueof{/tikz/ext/base left/.@cmd}##1\pgfeov}%
308 \pgfkeysdef{/tikz/base right}{\pgfkeysvalueof{/tikz/ext/base right/.@cmd}##1\pgfeov}%
309 \pgfkeysdef{/tikz/mid left}{\pgfkeysvalueof{/tikz/ext/mid left/.@cmd}##1\pgfeov}%
310 \pgfkeysdef{/tikz/mid right}{\pgfkeysvalueof{/tikz/ext/mid right/.@cmd}##1\pgfeov}%
311 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/span}{/tikz/ext/span}%
312 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/span horizontal}{/tikz/ext/span horizontal}%
313 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/span vertical}{/tikz/ext/span vertical}%
314 \tikzextutil@compatwarning@key{positioning-plus}{pre 0.6}{/tikz/fit bounding box}{/tikz/ext/fit bounding box}%
315 \pgfdeclaregenericanchor{corner south east}{\tikzextutil@compatmaybewarning{anchor 'corner south east'}{'ext_corner south east'}{positioning-plus = pre 0.6}\csname pgf@anchor@generic@ext_corner south east\endcsname{##1}}%
316 \pgfdeclaregenericanchor{corner south west}{\tikzextutil@compatmaybewarning{anchor 'corner south west'}{'ext_corner south west'}{positioning-plus = pre 0.6}\csname pgf@anchor@generic@ext_corner south west\endcsname{##1}}%
317 \pgfdeclaregenericanchor{corner north east}{\tikzextutil@compatmaybewarning{anchor 'corner north east'}{'ext_corner north east'}{positioning-plus = pre 0.6}\csname pgf@anchor@generic@ext_corner north east\endcsname{##1}}%
318 \pgfdeclaregenericanchor{corner north west}{\tikzextutil@compatmaybewarning{anchor 'corner north west'}{'ext_corner north west'}{positioning-plus = pre 0.6}\csname pgf@anchor@generic@ext_corner north west\endcsname{##1}}%
319 \tikzextutil@compatwarning@mathcmdZ{positioning-plus}{pre 0.6}{x_node_dist}{ext_x_node_dist}%
320 \tikzextutil@compatwarning@mathcmdZ{positioning-plus}{pre 0.6}{y_node_dist}{ext_y_node_dist}%
321 ,%
322 compat/positioning-plus/pre 0.6/.append code=%
323 \pgfkeysdef{/tikz/xshift*}{\pgfkeysvalueof{/tikz/ext/xshift*/.@cmd}##1\pgfeov}%
324 \pgfkeysdef{/tikz/yshift*}{\pgfkeysvalueof{/tikz/ext/yshift*/.@cmd}##1\pgfeov}%
325 \pgfkeysdef{/tikz/corner above left}{\pgfkeysvalueof{/tikz/ext/corner above left/.@cmd}##1\pgfeov}%
326 \pgfkeysdef{/tikz/corner below left}{\pgfkeysvalueof{/tikz/ext/corner below left/.@cmd}##1\pgfeov}%
327 \pgfkeysdef{/tikz/corner above right}{\pgfkeysvalueof{/tikz/ext/corner above right/.@cmd}##1\pgfeov}%
328 \pgfkeysdef{/tikz/corner below right}{\pgfkeysvalueof{/tikz/ext/corner below right/.@cmd}##1\pgfeov}%
329 \pgfkeysdef{/tikz/north left}{\pgfkeysvalueof{/tikz/ext/north left/.@cmd}##1\pgfeov}%
330 \pgfkeysdef{/tikz/south left}{\pgfkeysvalueof{/tikz/ext/south left/.@cmd}##1\pgfeov}%
331 \pgfkeysdef{/tikz/north right}{\pgfkeysvalueof{/tikz/ext/north right/.@cmd}##1\pgfeov}%
332 \pgfkeysdef{/tikz/south right}{\pgfkeysvalueof{/tikz/ext/south right/.@cmd}##1\pgfeov}%
333 \pgfkeysdef{/tikz/west above}{\pgfkeysvalueof{/tikz/ext/west above/.@cmd}##1\pgfeov}%
334 \pgfkeysdef{/tikz/west below}{\pgfkeysvalueof{/tikz/ext/west below/.@cmd}##1\pgfeov}%
335 \pgfkeysdef{/tikz/east above}{\pgfkeysvalueof{/tikz/ext/east above/.@cmd}##1\pgfeov}%
336 \pgfkeysdef{/tikz/east below}{\pgfkeysvalueof{/tikz/ext/east below/.@cmd}##1\pgfeov}%
337 \pgfkeysdef{/tikz/above}{\pgfkeysvalueof{/tikz/ext/above/.@cmd}##1\pgfeov}%
338 \pgfkeysdef{/tikz/below}{\pgfkeysvalueof{/tikz/ext/below/.@cmd}##1\pgfeov}%
339 \pgfkeysdef{/tikz/left}{\pgfkeysvalueof{/tikz/ext/left/.@cmd}##1\pgfeov}%
340 \pgfkeysdef{/tikz/right}{\pgfkeysvalueof{/tikz/ext/right/.@cmd}##1\pgfeov}%
341 \pgfkeysdef{/tikz/above left}{\pgfkeysvalueof{/tikz/ext/above left/.@cmd}##1\pgfeov}%
342 \pgfkeysdef{/tikz/below left}{\pgfkeysvalueof{/tikz/ext/below left/.@cmd}##1\pgfeov}%
343 \pgfkeysdef{/tikz/above right}{\pgfkeysvalueof{/tikz/ext/above right/.@cmd}##1\pgfeov}%
344 \pgfkeysdef{/tikz/below right}{\pgfkeysvalueof{/tikz/ext/below right/.@cmd}##1\pgfeov}%
345 \pgfkeysdef{/tikz/base left}{\pgfkeysvalueof{/tikz/ext/base left/.@cmd}##1\pgfeov}%
346 \pgfkeysdef{/tikz/base right}{\pgfkeysvalueof{/tikz/ext/base right/.@cmd}##1\pgfeov}%
347 \pgfkeysdef{/tikz/mid left}{\pgfkeysvalueof{/tikz/ext/mid left/.@cmd}##1\pgfeov}%
348 \pgfkeysdef{/tikz/mid right}{\pgfkeysvalueof{/tikz/ext/mid right/.@cmd}##1\pgfeov}%
349 \pgfkeysdef{/tikz/span}{\pgfkeysvalueof{/tikz/ext/span/.@cmd}##1\pgfeov}%
350 \pgfkeysdef{/tikz/span vertical}{\pgfkeysvalueof{/tikz/ext/span vertical/.@cmd}##1\pgfeov}%
351 \pgfkeysdef{/tikz/span horizontal}{\pgfkeysvalueof{/tikz/ext/span horizontal/.@cmd}##1\pgfeov}%
352 \pgfkeysdef{/tikz/fit bounding box}{\pgfkeysvalueof{/tikz/ext/fit bounding box/.@cmd}##1\pgfeov}%
353 \pgfdeclaregenericanchor{corner south east}{\csname pgf@anchor@generic@ext_corner south east\endcsname}%
354 \pgfdeclaregenericanchor{corner south west}{\csname pgf@anchor@generic@ext_corner south west\endcsname}%
355 \pgfdeclaregenericanchor{corner north east}{\csname pgf@anchor@generic@ext_corner north east\endcsname}%
356 \pgfdeclaregenericanchor{corner north west}{\csname pgf@anchor@generic@ext_corner north west\endcsname}%
357 \pgfmathdeclarefunction*{x_node_dist}{0}{\csname pgfmathext_x_node_dist\encsname}%
358 \pgfmathdeclarefunction*{y_node_dist}{0}{\csname pgfmathext_y_node_dist\encsname}%
359 ,
360 compat/positioning-plus/0.6/.append code=
361 \pgfkeysdef{above}{\tikz@lib@place@handle@{#1}{south}{0}{1}{north}{1}}%
362 \pgfkeysdef{above left}{\tikz@lib@place@handle@{#1}{south east}{-1}{1}{north west}{0.707106781}}%
363 \pgfkeysdef{above right}{\tikz@lib@place@handle@{#1}{south west}{1}{1}{north east}{0.707106781}}%
364 \pgfkeysdef{base left}{\tikz@lib@place@handle@{#1}{base east}{-1}{0}{base west}{1}}%
365 \pgfkeysdef{base right}{\tikz@lib@place@handle@{#1}{base west}{1}{0}{base east}{1}}%
366 \pgfkeysdef{below}{\tikz@lib@place@handle@{#1}{north}{0}{-1}{south}{1}}%
367 \pgfkeysdef{below left}{\tikz@lib@place@handle@{#1}{north east}{-1}{-1}{south west}{0.707106781}}%
368 \pgfkeysdef{below right}{\tikz@lib@place@handle@{#1}{north west}{1}{-1}{south east}{0.707106781}}%
369 \pgfkeysdef{left}{\tikz@lib@place@handle@{#1}{east}{-1}{0}{west}{1}}%
370 \pgfkeysdef{mid left/}{\tikz@lib@place@handle@{#1}{mid east}{-1}{0}{mid west}{1}}%
371 \pgfkeysdef{mid right}{\tikz@lib@place@handle@{#1}{mid west}{1}{0}{mid east}{1}}%
372 \pgfkeysdef{right}{\tikz@lib@place@handle@{#1}{west}{1}{0}{east}{1}}%
373 ,
374 compat/positioning-plus/newest/.append style=/tikz/ext/compat/positioning-plus/0.6,
375 compat/positioning-plus/\pgfkeysvalueof{/tikz/ext/compat/positioning-plus}%
376 }
377 \endinput