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

Support Draw.io's XML based library file structure #26

Open
MerrimanInd opened this issue Apr 17, 2024 · 2 comments
Open

Support Draw.io's XML based library file structure #26

MerrimanInd opened this issue Apr 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MerrimanInd
Copy link
Owner

The Draw.io app supports importing and exporting from an XML file format. This should be supported.

Also, if the base libraries that ship with the Draw.io app are saved in this format then this could supplant the TOML defs for the built in libraries.

@MerrimanInd MerrimanInd added the enhancement New feature or request label Apr 17, 2024
@tmjo
Copy link

tmjo commented Oct 7, 2024

Hi, just started using drawpyo and really like what I've seen so far. Great work!

The feature you suggest here would be really helpful since I've already got several custom libraries from before that I would like to continue using with drawpyo. Is there any manual workaround that you are aware to achieve the same?

@MerrimanInd
Copy link
Owner Author

Hey @tmjo, thanks! I won't get a chance to really look into this for a few weeks but for an interim solution you can either recreate your libraries as a TOML (docs at the bottom of this page) or style your objects by copying the style string in Draw.io (halfway down this page under 'Generating from a style string'). To make this easier you can also pass in the template_object arg to the init function when you create a new object and it will copy the styling.

Neither might be ideal right now but I'm traveling so I won't be able to do any meaningful development on parsing the XML libraries. But I don't see any blockers to implementing that feature, it'll just take a bit of time.

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

No branches or pull requests

2 participants