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

autolayout kills emptySpeciesGlyph info #38

Open
luciansmith opened this issue Feb 5, 2025 · 0 comments
Open

autolayout kills emptySpeciesGlyph info #38

luciansmith opened this issue Feb 5, 2025 · 0 comments

Comments

@luciansmith
Copy link

      int ret1 = LIBSBMLNETWORK_CPP_NAMESPACE::setDimensionWidth(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph", 58, false);
      int ret2 = LIBSBMLNETWORK_CPP_NAMESPACE::setDimensionHeight(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph", 23, false);
      double width = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph");
      double height = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionHeight(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph");
      LIBSBMLNETWORK_CPP_NAMESPACE::autolayout(&m_sbml, m_autolayout.maxNumConnectedEdges);
      width = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionWidth(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph");
      height = LIBSBMLNETWORK_CPP_NAMESPACE::getDimensionHeight(&m_sbml, "J0_Glyph_0_EmptySpeciesGlyph");

In the above code, width and height are originally 58 and 23, then switch to 30, 30 after the call to autolayout.

The same thing is going to happen with all the other information I can set, like shape or color or font, etc.

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