test: add test for axis
This commit is contained in:
parent
706896737b
commit
8c5647f65f
10 changed files with 374 additions and 9 deletions
3
grid.go
3
grid.go
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue