Skip to content

Commit

Permalink
Merge pull request #109 from glycojones/fix_tooltip_bug
Browse files Browse the repository at this point in the history
Fix tooltip bug
  • Loading branch information
Dialpuri authored Dec 14, 2024
2 parents 8b5380f + 9bc0588 commit 076cd61
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/privateer/cpp/privateer-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,7 @@ void privateer::glycanbuilderplot::Plot::write_svg_header_ostringstream ( std:
<< " version=\"1.1\"\n"
<< " width=\"" << get_width() << "\" \n"
<< " height=\"" << get_height() << "\" \n"
<< " viewBox=\"" << get_viewbox() << " \"\n"
<< " viewBox=\"" << get_viewbox() << " \"\n>"
// << " preserveAspectRatio=\"xMinYMinXMaxYMax meet\">\n\n"
<< " <style>\n"
<< " .my_blue { fill:" << get_colour ( rootblue, original_colour_scheme ) << " }\n"
Expand Down
23 changes: 13 additions & 10 deletions src/privateer/cpp/privateer-lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,20 @@ namespace privateer
<< "<tspan>Detected type: " << sugar.type_of_sugar() << ". </tspan>";
if ( validation )
{
if ( ( glycan.get_type() == "c-glycan" ) && (sugar.type().trim() == "MAN" ) && (sugar.conformation_name() == "1c4"))
if ( glycan.get_type() == "c-glycan" )
{
sugar.override_conformation_diag ( true );
}
if ( sugar.conformation_name() == "4c1" )
{
sugar.override_conformation_diag ( false );
}
if (sugar.type().trim() == "BMA")
{
sugar.override_anomer_diag( false );
if ((sugar.type().trim() == "MAN" ) && (sugar.conformation_name() == "1c4"))
{
sugar.override_conformation_diag ( true );
}
if ( sugar.conformation_name() == "4c1" )
{
sugar.override_conformation_diag ( false );
}
if (sugar.type().trim() == "BMA")
{
sugar.override_anomer_diag( false );
}
}
if ( sugar.ok_with_conformation() && sugar.ok_with_anomer() &&
sugar.ok_with_chirality() && sugar.ok_with_puckering() )
Expand Down
10 changes: 5 additions & 5 deletions webapp/src/wasm/privateer.js

Large diffs are not rendered by default.

Binary file modified webapp/src/wasm/privateer.wasm
Binary file not shown.

0 comments on commit 076cd61

Please sign in to comment.