Skip to content

Commit

Permalink
#4659 - export result svg contains some labels that are selectable (#…
Browse files Browse the repository at this point in the history
…5010)

- added new svg styles
- updated test
  • Loading branch information
KristinaKasyanovskaya authored Jul 8, 2024
1 parent 9d1b508 commit f57ab97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports[`PeptideRenderer should render peptide 1`] = `
font-size="6px"
font-weight="500"
line-height="7px"
style="user-select: none;"
text-align="right"
x="10"
y="-1"
Expand All @@ -54,6 +55,7 @@ exports[`PeptideRenderer should render peptide 1`] = `
font-size="6px"
font-weight="700"
line-height="7px"
style="user-select: none;"
text-align="right"
x="-6"
y="10"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export abstract class BaseMonomerRenderer extends BaseRenderer {
.attr('line-height', '7px')
.attr('font-weight', '500')
.attr('text-align', 'right')
.attr('style', 'user-select: none;')
.attr('x', this.enumerationElementPosition.x)
.attr('y', this.enumerationElementPosition.y)
.text(this.enumeration);
Expand All @@ -468,6 +469,7 @@ export abstract class BaseMonomerRenderer extends BaseRenderer {
.attr('line-height', '7px')
.attr('font-weight', '700')
.attr('text-align', 'right')
.attr('style', 'user-select: none;')
.attr('x', this.beginningElementPosition.x)
.attr('y', this.beginningElementPosition.y)
.text(this.beginning);
Expand Down

0 comments on commit f57ab97

Please sign in to comment.