8000 Add '<s>' and '<u>' pseudo html options for strike-through and underlining SVG text by archmoj · Pull Request #7043 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Add '<s>' and '<u>' pseudo html options for strike-through and underlining SVG text #7043

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

Merged
merged 6 commits into from
Jul 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add s and u options to strikethrough or underline SVG text
  • Loading branch information
archmoj committed Jul 10, 2024
commit 2f2b2bcd0d8e2298e0ee3f08730a93959fa87993
2 changes: 2 additions & 0 deletions src/lib/svg_text_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ var TAG_STYLES = {
// baseline below
sup: 'font-size:70%',
sub: 'font-size:70%',
s: 'text-decoration: line-through',
u: 'text-decoration: underline',
b: 'font-weight:bold',
i: 'font-style:italic',
a: 'cursor:pointer',
Expand Down
0