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

Self-Edge Not Shown #101

Closed
sanbales opened this issue Jul 2, 2021 · 1 comment
Closed

Self-Edge Not Shown #101

sanbales opened this issue Jul 2, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sanbales
Copy link

sanbales commented Jul 2, 2021

Having an issue not seeing self-edges, also this example below without the edge does not seem to render right now.

May need to add the node sizing constraint to the root node.

from ipyelk.elements import Edge, Label, Node, Port
from ipyelk import from_element


node = Node(labels=[Label(text="Node")])
port1 = Port(
    labels=[Label(text="1")],
    width=10,
    height=10,
)

port2 = Port(
    labels=[Label(text="2")],
    width=10,
    height=10,
)
node.add_port(port1)
node.add_port(port2)

node.add_edge(source=port1, target=port2)

diagram = from_element(node)
diagram
@sanbales sanbales added the bug Something isn't working label Jul 2, 2021
@dfreeman06
Copy link
Contributor

image

dfreeman06 added a commit that referenced this issue Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants