docs: update documents

This commit is contained in:
vicanso 2022-06-22 21:04:16 +08:00
parent 92458aece2
commit 706896737b
18 changed files with 83 additions and 18 deletions

23
grid.go
View file

@ -28,16 +28,25 @@ type gridPainter struct {
}
type GridPainterOption struct {
StrokeWidth float64
StrokeColor Color
Column int
Row int
IgnoreFirstRow bool
IgnoreLastRow bool
// The stroke width
StrokeWidth float64
// The stroke color
StrokeColor Color
// The column of grid
Column int
// The row of grid
Row int
// Ignore first row
IgnoreFirstRow bool
// Ignore last row
IgnoreLastRow bool
// Ignore first column
IgnoreFirstColumn bool
IgnoreLastColumn bool
// Ignore last column
IgnoreLastColumn bool
}
// NewGridPainter returns new a grid renderer
func NewGridPainter(p *Painter, opt GridPainterOption) *gridPainter {
return &gridPainter{
p: p,