Skip to content

Reduced diameter of star as thickness increases to fit within bounding box #1445

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

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

Conversation

ryanbennitt
Copy link
Contributor

Reduced diameter of hollow star as the thickness increases so it does not exceed its bounding box.

Adjusted original changelog entry to contain more details about usage.

@myk002 myk002 added this to 51.11-r2 Apr 28, 2025
@github-project-automation github-project-automation bot moved this to Todo in 51.11-r2 Apr 28, 2025
@myk002 myk002 moved this from Todo to Review In Progress in 51.11-r2 Apr 28, 2025
changelog.txt Outdated
Comment on lines 20 to 23
- The default has 5 points, use 'B'/'b' to increase/decrease points.
- They can be hollow or filled, and inverted.
- The next-point offset can be increased/decreased using 'N'/'n' which particularly affects 7 point stars and above to make them spikier or smoother, but can also be used to decrease to 1 to make symmetrical polygons or increase to N which only paints the vertexes.
- The orientation can be changed by adding a main axis point using 'v' and moving this to point in the desired direction.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changelog won't render multi-line messages correctly. could you add this info to the docs/gui/design.rst file instead?

changelog.txt Outdated

## Fixes

- `gui/design`: reduced diameter of star as thickness increases to remain within bounding box
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for a "fixes" line for the star shape since it hasn't been out in a release yet. However, if this fixes the bulge for the line shape, I'd say that deserves a "fixes" entry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the bulge in the line shape issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the horizontal and vertical thickness consistent for curved lines as well, maybe this is the bulge you were referring to.

@myk002
Copy link
Member

myk002 commented Apr 29, 2025

I'm not sure if this fixes the issue. I was still able to draw a star that extended beyond the edge of the map:
image

@ryanbennitt
Copy link
Contributor Author

I'm not sure if this fixes the issue. I was still able to draw a star that extended beyond the edge of the map:

When I draw this exact size star I get the following result:

star-60x46-inverted

Am I missing something?

@myk002
Copy link
Member

myk002 commented Apr 29, 2025

Am I missing something?

I'll test again, likely not properly synced on my part

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

Successfully merging this pull request may close these issues.

2 participants