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

Leader #46

Open
Vadoola opened this issue Feb 13, 2025 · 3 comments
Open

Leader #46

Vadoola opened this issue Feb 13, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Vadoola
Copy link
Owner

Vadoola commented Feb 13, 2025

No description provided.

@Vadoola Vadoola self-assigned this Feb 13, 2025
@Vadoola Vadoola added the enhancement New feature or request label Feb 13, 2025
@Vadoola
Copy link
Owner Author

Vadoola commented Feb 13, 2025

A quick initial glance (https://ezdxf.readthedocs.io/en/stable/dxfentities/leader.html) this appears to be a line type with an arrow on the end. Basic support for this probably won't be too hard, convert it as a QET Line, and set the end point arrow.

@Vadoola
Copy link
Owner Author

Vadoola commented Feb 15, 2025

Upon closer look, it appears it could be a bit more complicated.

A Leader can have multiple segments, if no arrowheads are used, I could convert a leader potentially into an open polygon.

However if the Leader uses arrow heads, only a Line in QET can have an arrow head ending, so I would either need to have it be made of multiple lines, or the last segment a line, and the rest an open polygon.

@Vadoola
Copy link
Owner Author

Vadoola commented Feb 15, 2025

For now I've decided to just convert it to multiple lines, instead of worrying about part of it being a polygon and part of it being a line. Baseline support for this was added in commit a967a67. It now reads in leaders, creates multiple lines from them, applies an arrow to the end if needed. I need to add support for styling however, to get arrow sizing line colors etc.

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

1 participant