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

Icons and empty labels support #19

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Icons and empty labels support #19

merged 2 commits into from
Oct 10, 2024

Conversation

Bert-Farina
Copy link
Contributor

Icons

For the icons support I added the property to the shape class.

shape = D2Shape(name="shape_name", icon="https://icons.terrastruct.com/essentials%2F117-database.svg")

image

Empty labels

For this feature I modified some of the code in the helper function, so it can detect empty strings for labels and return properly.

shape = D2Shape(name="shape_name", label="")

image

@MrBlenny MrBlenny merged commit 84f62ad into MrBlenny:main Oct 10, 2024
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.

2 participants