Skip to content

Commit

Permalink
nodestyle.py: Fix missing SVG_COLORS.
Browse files Browse the repository at this point in the history
This makes things like
  NodeStyle(fgcolor=...)
work again.

Otherwise, we had to do
  ns = NodeStyle()
  ns["fgcolor"] = ...
  • Loading branch information
jordibc committed Nov 16, 2023
1 parent 13ecff3 commit 407741c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ete4/smartview/renderer/nodestyle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import re

from ete4.utils import SVG_COLORS

_LINE_TYPE_CHECKER = lambda x: x in (0, 1, 2) # 0 solid, 1 dashed, 2 dotted
_SIZE_CHECKER = lambda x: isinstance(x, int)
_COLOR_MATCH = re.compile("^#[A-Fa-f\d]{6}$")
Expand Down

0 comments on commit 407741c

Please sign in to comment.