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

Allow setting of label position to center, round label. #20

Merged
merged 3 commits into from
Oct 14, 2022
Merged

Allow setting of label position to center, round label. #20

merged 3 commits into from
Oct 14, 2022

Conversation

ostat
Copy link

@ostat ostat commented Oct 5, 2022

Changed withLabel (was boolean) to be a string that allowed setting label position. (left, right, center, disabled).
labelWidth would now only support 0 and positive values.
withLabel

  • disabled: no label is added.
  • left, right, center: label is aligned based on this value.

labelWidth

  • 0: means full width.
  • positive value: number works as before, being based on gridfinity widths.

The labels also now also rounded edges when not against the walls.

image
image
image
image

@ostat ostat marked this pull request as ready for review October 9, 2022 11:34
@vector76
Copy link
Owner

Thanks for the PR. I'm not in front of a computer to look it over right now but it sounds good so far.

Retain default behavior of no label
Negative label widths treated as zero (insignificant, maybe slightly less counter-intuitive)
@vector76 vector76 merged commit 4140705 into vector76:main Oct 14, 2022
@ostat ostat deleted the labelposition branch October 16, 2022 21:42
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