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

Function RectFromNote

internal/app/anim.go:57–59  ·  view source on GitHub ↗

RectFromNote builds the source rect for a note at the board's zoom (SCREEN coords, no bob — transitions should start from the stable resting position, not mid-bounce).

(n *Note, zoom int)

Source from the content-addressed store, hash-verified

55// (SCREEN coords, no bob — transitions should start from the stable
56// resting position, not mid-bounce).
57func RectFromNote(n *Note, zoom int) Rect {
58 return n.ScreenRect(zoom)
59}
60
61func NewTransitionIn(n *Note, zoom int) *Transition {
62 return &Transition{

Callers 2

NewTransitionInFunction · 0.85
NewTransitionOutFunction · 0.85

Calls 1

ScreenRectMethod · 0.80

Tested by

no test coverage detected