(c draw.Canvas, plt *plot.Plot)
| 27 | } |
| 28 | |
| 29 | func (g GlyphBoxes) Plot(c draw.Canvas, plt *plot.Plot) { |
| 30 | for _, b := range plt.GlyphBoxes(plt) { |
| 31 | x := c.X(b.X) + b.Rectangle.Min.X |
| 32 | y := c.Y(b.Y) + b.Rectangle.Min.Y |
| 33 | c.StrokeLines(g.LineStyle, []vg.Point{ |
| 34 | {X: x, Y: y}, |
| 35 | {X: x + b.Rectangle.Size().X, Y: y}, |
| 36 | {X: x + b.Rectangle.Size().X, Y: y + b.Rectangle.Size().Y}, |
| 37 | {X: x, Y: y + b.Rectangle.Size().Y}, |
| 38 | {X: x, Y: y}, |
| 39 | }) |
| 40 | } |
| 41 | } |
nothing calls this directly
no test coverage detected