Skip to content

Commit

Permalink
fixed the orientation of the svg subtechnique bars
Browse files Browse the repository at this point in the history
  • Loading branch information
erinehall committed Mar 6, 2024
1 parent 04c4410 commit e19eaab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mitreattack/navlayers/exporters/svg_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def build(
gp.append(subtech)
gp.append(subtext)
new_offset = new_offset + height
y_offset = height * (count + 2)
if count > 0:
g.append(
drawsvg.Lines(
Expand All @@ -456,6 +457,7 @@ def build(
close=True,
fill=tBC,
stroke=tBC,
transform=f'translate(0,{y_offset})'
)
)
return g, offset + new_offset
Expand Down

0 comments on commit e19eaab

Please sign in to comment.