renderBBox is the render region
()
| 78 | |
| 79 | // renderBBox is the render region |
| 80 | func (ed *Editor) renderBBox() image.Rectangle { |
| 81 | bb := ed.Geom.ContentBBox |
| 82 | spc := ed.Styles.BoxSpace().Size().ToPointCeil() |
| 83 | // bb.Min = bb.Min.Add(spc) |
| 84 | bb.Max = bb.Max.Sub(spc) |
| 85 | return bb |
| 86 | } |
| 87 | |
| 88 | // charStartPos returns the starting (top left) render coords for the given |
| 89 | // position -- makes no attempt to rationalize that pos (i.e., if not in |
no test coverage detected