test: add test for axis

This commit is contained in:
vicanso 2022-06-23 20:32:25 +08:00
parent 706896737b
commit 8c5647f65f
10 changed files with 374 additions and 9 deletions

View file

@ -32,6 +32,8 @@ type GridPainterOption struct {
StrokeWidth float64
// The stroke color
StrokeColor Color
// The spans of column
ColumnSpans []int
// The column of grid
Column int
// The row of grid
@ -81,6 +83,7 @@ func (g *gridPainter) Render() (Box, error) {
})
g.p.Grid(GridOption{
Column: opt.Column,
ColumnSpans: opt.ColumnSpans,
Row: opt.Row,
IgnoreColumnLines: ignoreColumnLines,
IgnoreRowLines: ignoreRowLines,