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

Size and grid fitting cells #347

Merged
merged 10 commits into from
Feb 21, 2022
Merged

Conversation

tadam50
Copy link
Contributor

@tadam50 tadam50 commented Feb 10, 2022

Signed-off-by: Thomas ADAM tadam@silicom.fr

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX' and skip the rest
Fixes #271

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature

What is the current behavior? (You can also link to an open issue here)
Grid is displayed on each side of bus bars even if no cells up or bottom
SVG size has similar problems

What is the new behavior (if this is a feature change)?
Grid not displayed above (resp. under) the busbars if no cells above (resp. under)
SVG size fitting for those 2 cases

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

@tadam50 tadam50 requested a review from flo-dup February 10, 2022 11:04
@tadam50 tadam50 self-assigned this Feb 10, 2022
@flo-dup flo-dup changed the title Size and grid fitting cells #271 Size and grid fitting cells Feb 11, 2022
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

In DefaultSvgWriter could you draw the horizontal lines on one side only if there's a cell height > 0?

Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
…count stackheight in calculateMaxCellHeight

Signed-off-by: Thomas ADAM <tadam@silicom.fr>
@tadam50 tadam50 force-pushed the issue_271_size_and_grib_fitting_cells branch from bfb190e to 47012e9 Compare February 18, 2022 16:15
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.4% 98.4% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 281699e into main Feb 21, 2022
@flo-dup flo-dup deleted the issue_271_size_and_grib_fitting_cells branch February 21, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Size and grid fitting cells
2 participants