Skip to content

Commit

Permalink
Use portable style arrow shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Aug 8, 2024
1 parent fbd654a commit 47fd4d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/gocam/translation/cx2/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Width(int, Enum):

class ArrowShape(str, Enum):
CIRCLE = "circle"
DELTA = "delta"
DIAMOND = "diamond"
SQUARE = "square"
TEE = "tee"
TRIANGLE = "triangle"


class LineStyle(str, Enum):
Expand Down Expand Up @@ -75,28 +75,28 @@ class RelationStyle:
),
"RO:0002212": RelationStyle(
line_style=LineStyle.DASHED,
arrow_shape=ArrowShape.SQUARE,
arrow_shape=ArrowShape.TEE,
label="negatively regulates",
color=Color.RED,
width=Width.INDIRECT,
),
"RO:0002630": RelationStyle(
line_style=LineStyle.SOLID,
arrow_shape=ArrowShape.SQUARE,
arrow_shape=ArrowShape.TEE,
label="directly negatively regulates",
color=Color.RED,
width=Width.DIRECT,
),
"RO:0002213": RelationStyle(
line_style=LineStyle.DASHED,
arrow_shape=ArrowShape.DELTA,
arrow_shape=ArrowShape.TRIANGLE,
label="positively regulates",
color=Color.GREEN,
width=Width.INDIRECT,
),
"RO:0002629": RelationStyle(
line_style=LineStyle.SOLID,
arrow_shape=ArrowShape.DELTA,
arrow_shape=ArrowShape.TRIANGLE,
label="directly positively regulates",
color=Color.GREEN,
width=Width.DIRECT,
Expand Down Expand Up @@ -145,14 +145,14 @@ class RelationStyle:
),
"RO:0002408": RelationStyle(
line_style=LineStyle.SOLID,
arrow_shape=ArrowShape.SQUARE,
arrow_shape=ArrowShape.TEE,
label="directly inhibits",
color=Color.RED,
width=Width.DIRECT,
),
"RO:0002406": RelationStyle(
line_style=LineStyle.SOLID,
arrow_shape=ArrowShape.DELTA,
arrow_shape=ArrowShape.TRIANGLE,
label="directly activates",
color=Color.GREEN,
width=Width.DIRECT,
Expand Down

0 comments on commit 47fd4d4

Please sign in to comment.