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

Use text-anchor instead of hardcoded offsets #254

Merged
merged 3 commits into from
Jul 26, 2022
Merged

Conversation

Urgau
Copy link
Contributor

@Urgau Urgau commented Jul 17, 2022

This was proposed by @nagisa in #247, I just applied the suggestions and tested that the result was as expected.

I tried the suggestion of dominant-baseline="hanging", but it will need further work to make it useful as applying instead will just increase the size of the CSS without reducing enough in the SVG.

Fixes #247

Copy link
Owner

@jonhoo jonhoo left a comment

Choose a reason for hiding this comment

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

This looks great! Just one note about the new FLAMEGRAPH_BLESS envvar.

tests/flamegraph.rs Outdated Show resolved Hide resolved
tests/flamegraph.rs Outdated Show resolved Hide resolved
jonhoo
jonhoo previously approved these changes Jul 26, 2022
Copy link
Owner

@jonhoo jonhoo left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

tests/flamegraph.rs Outdated Show resolved Hide resolved
This was proposed by `@nagisa` in
jonhoo#247, I just applied the
suggestions, tested that the result was as expected.

I tried the suggestion of `dominant-baseline="hanging"`, but it will
need further work to make it usefull as applying instead will just
increase the size of the css without reducing enough in the SVG.

Co-authored-by: Simonas Kazlauskas <git@kazlauskas.me>
Fixes jonhoo#247
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #254 (7385d4f) into master (2f74fe5) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #254   +/-   ##
=======================================
  Coverage   87.36%   87.36%           
=======================================
  Files          18       18           
  Lines        2541     2541           
=======================================
  Hits         2220     2220           
  Misses        321      321           
Impacted Files Coverage Δ
src/flamegraph/svg.rs 76.33% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f74fe5...7385d4f. Read the comment docs.

@jonhoo jonhoo merged commit 58ac796 into jonhoo:master Jul 26, 2022
@jonhoo
Copy link
Owner

jonhoo commented Jul 26, 2022

Thanks!

@jonhoo
Copy link
Owner

jonhoo commented Jul 26, 2022

Released in 0.11.7 🎉

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.

Consider using text-anchor for right-aligned strings
2 participants