SunnyXu / SBMLDiagrams

MIT License
5 stars 1 forks source link

add feature--change color style #13

Closed winterJ2001 closed 2 years ago

winterJ2001 commented 2 years ago

I've tried to use the API mentioned by the professor, like setCompartmentBorderColor, setNodeFillColor but they do operations on the dataframe instead of the sbml. In order to make the change to the sbml effective, I need to first transform the sbml into df, then df.setCompartmentBorderColor, then transform df back to sbml, then display(sbml). Thus, I create a style class and incorporate the style setting feature into the display function.

codecov-commenter commented 2 years ago

Codecov Report

Merging #13 (4cbb601) into main (f3aefd0) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #13   +/-   ##
=======================================
  Coverage   92.30%   92.30%           
=======================================
  Files           6        6           
  Lines        3561     3561           
=======================================
  Hits         3287     3287           
  Misses        274      274           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f3aefd0...4cbb601. Read the comment docs.

SunnyXu commented 2 years ago

Yeah! pls note that 'styleName' works for the situation without render information given from the sbml file itself.