- updated : Comments to godoc style

This commit is contained in:
Sakib Sami 2018-08-13 23:36:22 +06:00
parent 4e8d9d8e47
commit e879b00d57
3 changed files with 3 additions and 3 deletions

View File

@ -364,7 +364,7 @@ func (line Line) Draw(gsName string) ([]byte, *pdf.PdfRectangle, error) {
return creator.Bytes(), bbox, nil
}
// Defines a basic line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity.
// BasicLine defines a line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity.
type BasicLine struct {
X1 float64
Y1 float64

View File

@ -120,7 +120,7 @@ func (border *border) SetStyleBottom(style CellBorderStyle) {
border.styleBottom = style
}
// GeneratePageBlocks creates drawable.
// GeneratePageBlocks implements drawable interface.
func (border *border) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext, error) {
block := NewBlock(ctx.PageWidth, ctx.PageHeight)
// Start points is in upper left corner.

View File

@ -558,7 +558,7 @@ func (cell *TableCell) SetBorderColor(col Color) {
cell.borderColorTop = model.NewPdfColorDeviceRGB(col.ToRGB())
}
// SetBorderLineStyle sets border style (currently dashed or plain)
// SetBorderLineStyle sets border style (currently dashed or plain).
func (cell *TableCell) SetBorderLineStyle(style draw.LineStyle) {
cell.borderLineStyle = style
}