Module: Termplot::CharacterMap

Defined in:
lib/termplot/character_map.rb

Constant Summary collapse

LINE =
{
  empty:      " ",
  point:      "",
  vert_left:  "",
  vert_right: "",
  horz_top:   "",
  horz_bot:   "",
  bot_left:   "",
  top_right:  "",
  top_left:   "",
  bot_right:  "",
  tick_right: "",
  extended:   true
}
DEFAULT =
LINE
HEAVY_LINE =
DEFAULT.merge(
  point:      "",
  vert_left:  "",
  vert_right: "",
  horz_top:   "",
  horz_bot:   "",
  bot_left:   "",
  top_right:  "",
  top_left:   "",
  bot_right:  "",
  tick_right: ""
)
BASIC =
{
  empty:      " ",
  point:      "",
  extended:   false
}
DOTS =
BASIC
X =
BASIC.merge(
  point: "x"
)
STAR =
BASIC.merge(
  point: "*"
)
LINE_STYLES =
{
  "line"       => LINE,
  "heavy-line" => HEAVY_LINE,
  "dot"        => DOTS,
  "star"       => STAR,
  "x"          => X
}