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

Function drawNote

internal/app/draw.go:100–104  ·  view source on GitHub ↗

drawNote renders a Note at the board's zoom level.

(c *Canvas, n *Note, selected bool, textMode TextStyleMode, zoom int)

Source from the content-addressed store, hash-verified

98
99// drawNote renders a Note at the board's zoom level.
100func drawNote(c *Canvas, n *Note, selected bool, textMode TextStyleMode, zoom int) {
101 d := DimsFor(zoom)
102 drawNoteAt(c, Rect{X: n.EffectiveX(zoom), Y: n.EffectiveY(zoom), W: d.W, H: d.H},
103 n, selected, textMode)
104}
105
106// drawNoteAtWithBorder is drawNoteAt with an explicit border-color override
107// (used during the zoom transition to avoid the highlight flashing mid-anim).

Callers 3

drawBoardSnapshotFunction · 0.85
drawTransitionViewMethod · 0.85
ViewMethod · 0.85

Calls 4

DimsForFunction · 0.85
drawNoteAtFunction · 0.85
EffectiveXMethod · 0.80
EffectiveYMethod · 0.80

Tested by

no test coverage detected