MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / initialModel

Function initialModel

internal/app/model.go:116–126  ·  view source on GitHub ↗
(ws *Workspace)

Source from the content-addressed store, hash-verified

114}
115
116func initialModel(ws *Workspace) model {
117 m := model{
118 mode: ModeBoard,
119 workspace: ws,
120 board: ws.ActiveBoard(),
121 now: time.Now(),
122 saver: NewSaver(ws, 400*time.Millisecond),
123 hoverStr: -1,
124 }
125 return m
126}
127
128// startBoardAnim captures the current board + its stars as the "from"
129// frame of a board-switch crossfade. Call it BEFORE mutating the

Callers 2

RunFunction · 0.85

Calls 2

NewSaverFunction · 0.85
ActiveBoardMethod · 0.80

Tested by 1