BB.TUI.State.Joints (BB.TUI v0.1.0)

Copy Markdown View Source

Joint positions and selection, split out of BB.TUI.State.

entries maps each joint name to its %{joint:, position:, target:} data (the joints panel renders from it); selected is the highlighted row index. entries is seeded when BB.TUI.App starts.

Summary

Types

t()

@type t() :: %BB.TUI.State.Joints{
  entries: %{required(atom()) => %{position: float(), joint: term()}},
  selected: non_neg_integer()
}