Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dotted Edges Function/Method #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion pycore/tikzeng.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import os

def to_head( projectpath ):
Expand Down Expand Up @@ -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) ;
Expand All @@ -194,6 +205,7 @@ def to_skip( of, to, pos=1.25):
-- node {\copymidarrow} ("""+to+"""-north);
"""


def to_end():
return r"""
\end{tikzpicture}
Expand Down