Quickfix to remove pos hardcoding in to_skip func

This commit is contained in:
Wei Ji
2019-03-14 21:26:49 +01:00
committed by Wei Ji
parent 597e4af7f5
commit fa2ba3d6ff
+1 -1
View File
@@ -173,7 +173,7 @@ def to_connection( of, to):
def to_skip( of, to, pos=1.25): def to_skip( of, to, pos=1.25):
return r""" return r"""
\path ("""+ of +"""-southeast) -- ("""+ of +"""-northeast) coordinate[pos="""+ str(pos) +"""] ("""+ of +"""-top) ; \path ("""+ of +"""-southeast) -- ("""+ of +"""-northeast) coordinate[pos="""+ str(pos) +"""] ("""+ of +"""-top) ;
\path ("""+ to +"""-south) -- ("""+ to +"""-north) coordinate[pos=1.25] ("""+ to +"""-top) ; \path ("""+ to +"""-south) -- ("""+ to +"""-north) coordinate[pos="""+ str(pos) +"""] ("""+ to +"""-top) ;
\draw [copyconnection] ("""+of+"""-northeast) \draw [copyconnection] ("""+of+"""-northeast)
-- node {\copymidarrow}("""+of+"""-top) -- node {\copymidarrow}("""+of+"""-top)
-- node {\copymidarrow}("""+to+"""-top) -- node {\copymidarrow}("""+to+"""-top)