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

Reaction size reset to zero after autolayout #16

Open
luciansmith opened this issue Nov 25, 2024 · 0 comments
Open

Reaction size reset to zero after autolayout #16

luciansmith opened this issue Nov 25, 2024 · 0 comments

Comments

@luciansmith
Copy link

You can change the reaction size, but if you then run autolayout, it will revert to zero:

      double jwidth = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(&m_sbml, "J0"); // Zero
      double jheight = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionHeight(&m_sbml, "J0"); // Zero
      LIBSBMLNETWORK_CPP_NAMESPACE::setDimensionWidth(&m_sbml, "J0", 55);
      LIBSBMLNETWORK_CPP_NAMESPACE::setDimensionHeight(&m_sbml, "J0", 60);
      jwidth = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(&m_sbml, "J0");  // 55
      jheight = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionHeight(&m_sbml, "J0"); // 60
      LIBSBMLNETWORK_CPP_NAMESPACE::autolayout(&m_sbml, m_autolayout.maxNumConnectedEdges, m_autolayout.useNameAsTextLabel);
      jwidth = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(&m_sbml, "J0"); // Back to zero
      jheight = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionHeight(&m_sbml, "J0"); // Back to zero
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

No branches or pull requests

1 participant