From e93f9843e64c5ee8132a82ed22329ecf4776c942 Mon Sep 17 00:00:00 2001 From: "Rafsanjani, Muhammod" Date: Thu, 16 Sep 2021 00:43:03 +0600 Subject: [PATCH] Add Dotted Edges Function/Method The "dotted-edges" function was missing. I added the function and checked the function several times. It perfectly works. --- pycore/tikzeng.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pycore/tikzeng.py b/pycore/tikzeng.py index 8e988c4..b6c86ab 100644 --- a/pycore/tikzeng.py +++ b/pycore/tikzeng.py @@ -1,4 +1,3 @@ - import os def to_head( projectpath ): @@ -184,6 +183,18 @@ def to_connection( of, to): \draw [connection] ("""+of+"""-east) -- node {\midarrow} ("""+to+"""-west); """ + +# Dotted Edges: Connect the dotted edges +def to_dottedEdges(of, to): + return r""" +\draw [densely dashed] +("""+of+"""-nearnortheast) -- ("""+to+"""-nearnortheast) +("""+of+"""-nearsoutheast) -- ("""+to+"""-nearsoutheast) +("""+of+"""-farsoutheast) -- ("""+to+"""-farsoutheast) +("""+of+"""-farnortheast) -- ("""+to+"""-farnortheast); +""" + + def to_skip( of, to, pos=1.25): return r""" \path ("""+ of +"""-southeast) -- ("""+ of +"""-northeast) coordinate[pos="""+ str(pos) +"""] ("""+ of +"""-top) ; @@ -194,6 +205,7 @@ def to_skip( of, to, pos=1.25): -- node {\copymidarrow} ("""+to+"""-north); """ + def to_end(): return r""" \end{tikzpicture}