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

Add shadow, lineposition and textcase options to SVG fonts #6983

Merged
merged 62 commits into from
May 16, 2024

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 24, 2024

Resolves #6974 also helps address #4674.
Support additional text font styling options based on text-shadow, text-decoration-line & text-transform.

Please see src/plots/font_attributes.js for these new optoins.

@plotly/plotly_js
cc: @ndrezn

@archmoj
Copy link
Contributor Author

archmoj commented May 10, 2024

This PR is ready for review 🙏

@archmoj archmoj changed the title Add shadow, decorline and capitalize options to SVG fonts Add shadow, decorline and textcase options to SVG fonts May 10, 2024
Copy link
Contributor

@emilykl emilykl left a comment

Choose a reason for hiding this comment

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

🔥 thanks @archmoj !!

@archmoj archmoj requested review from alexcjohnson and gvwilson May 14, 2024 21:23
@archmoj
Copy link
Contributor Author

archmoj commented May 14, 2024

Thanks very much @emilykl for the review and I am also happy with the results at this point.

I would like to have additional approvals before merging.
@gvwilson @alexcjohnson @LiamConnors
Please review the API i.e. new attribute names and options in src/plots/font_attributes.js

Thank you!

Copy link
Contributor

@gvwilson gvwilson left a comment

Choose a reason for hiding this comment

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

I left a few small comments on the first few files, but I'm nowhere near understanding this code base well enough to say anything substantial. It looks like an extraordinary amount of work - thank you for wading through it.

src/components/legend/defaults.js Show resolved Hide resolved
src/components/colorbar/defaults.js Show resolved Hide resolved
src/plots/font_attributes.js Show resolved Hide resolved
src/plots/font_attributes.js Show resolved Hide resolved
src/snapshot/tosvg.js Outdated Show resolved Hide resolved
@archmoj archmoj changed the title Add shadow, decorline and textcase options to SVG fonts Add shadow, lineposition and textcase options to SVG fonts May 16, 2024
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 Looks great, this will make a really nice addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support text-shadow in SVG text
4 participants