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: "",
  tick_left:  "",
  extended:   true,
  filled:     false
}
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: "",
  tick_left:  "",
)
BASIC =
{
  empty:      " ",
  point:      "",
  extended:   false,
  filled:     false
}
DOTS =
BASIC
X =
BASIC.merge(
  point: "x"
)
STAR =
BASIC.merge(
  point: "*"
)
BAR =
LINE.merge(
  point: "",
  extended: false,
  filled: true
)
LINE_STYLES =
{
  "line"       => LINE,
  "heavy-line" => HEAVY_LINE,
  "dot"        => DOTS,
  "star"       => STAR,
  "x"          => X,
  "bar"        => BAR,
}