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

Djhoward12 naaps 131 form grid conversion #134

Merged

Conversation

djhoward12
Copy link
Collaborator

I ended up having to fix the wrapping logic in svg.py for negative steps. When using negative steps with letters svg now wraps from A (1) to ZZZ (18278), but skips ZZZ if the step would skip 0.

Added two new functions to utils to covert the label position for proper displaying in the forms init and then revert for saving back to the database during form clean.

@djhoward12 djhoward12 linked an issue Nov 22, 2024 that may be closed by this pull request
@djhoward12 djhoward12 linked an issue Nov 25, 2024 that may be closed by this pull request
changes/131.fixed Outdated Show resolved Hide resolved
changes/136.fixed Outdated Show resolved Hide resolved
nautobot_floor_plan/forms.py Outdated Show resolved Hide resolved
nautobot_floor_plan/svg.py Outdated Show resolved Hide resolved
djhoward12 and others added 3 commits December 3, 2024 06:27
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
@joewesch joewesch requested a review from smk4664 December 3, 2024 16:44
@smk4664 smk4664 merged commit 626f9c1 into nautobot:develop Dec 3, 2024
15 checks passed
@djhoward12 djhoward12 deleted the djhoward12-naaps-131-form-grid-conversion branch December 9, 2024 17:19
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.

Grid labels with small seed and large steps can bleed into grid. Grid doesn't match what is displayed
3 participants