Skip to content

Commit

Permalink
Merge pull request #63 from th-in-gs/master
Browse files Browse the repository at this point in the history
Add ASCII border type.
  • Loading branch information
mrkn authored Dec 26, 2024
2 parents e702450 + ac8eab3 commit 15f6135
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/unicode_plot/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ module BorderMaps
r: "│"
}.freeze

BORDER_ASCII = {
tl: "+",
tr: "+",
bl: "+",
br: "+",
t: "-",
l: "|",
b: "-",
r: "|"
}.freeze

BORDER_CORNERS = {
tl: "┌",
tr: "┐",
Expand All @@ -36,6 +47,7 @@ module BorderMaps

BORDER_MAP = {
solid: BorderMaps::BORDER_SOLID,
ascii: BorderMaps::BORDER_ASCII,
corners: BorderMaps::BORDER_CORNERS,
barplot: BorderMaps::BORDER_BARPLOT,
}.freeze
Expand Down

0 comments on commit 15f6135

Please sign in to comment.