drawNote renders a Note at the board's zoom level.
(c *Canvas, n *Note, selected bool, textMode TextStyleMode, zoom int)
| 98 | |
| 99 | // drawNote renders a Note at the board's zoom level. |
| 100 | func 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). |
no test coverage detected