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 all object properties to node #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danielpcampagna
Copy link

@danielpcampagna danielpcampagna commented Jun 18, 2024

I needed to access the property style of the xml object in the node, but the node just had the properties id and label (with the value of property value?!). So I've added this lines so the node have all xml object properties.

Example:

Before this PR, we had:

>>> diagram.edges_ids
{'NYdg3bHRsR49v2e3w9m-': ['FRgOEqRr26YJtNhKciwV-1']}
>>> diagram.current_root[-3].items()
[('id', 'FRgOEqRr26YJtNhKciwV-1')]

With this PR, we have:

>>> diagram.current_root[-3].items()
[('id', 'FRgOEqRr26YJtNhKciwV-1'), ('style', 'rounded=0;orthogonalLoop=1;jettySize=auto;html=1;opacity=20;endArrow=none;endFill=0;jumpStyle=gap;'), ('edge', '1'), ('parent', '1'), ('source', 'FRgOEqRr26YJtNhKciwV-21'), ('target', 'FRgOEqRr26YJtNhKciwV-2')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant