updated dependencies and go
This commit is contained in:
+9
-9
@@ -95,12 +95,12 @@ func (opt *PDFCellOpt) FontSize(v float64) *PDFCellOpt {
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) Bold() *PDFCellOpt {
|
||||
opt.fontStyleOverride = langext.Ptr(Bold)
|
||||
opt.fontStyleOverride = new(Bold)
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) Italic() *PDFCellOpt {
|
||||
opt.fontStyleOverride = langext.Ptr(Italic)
|
||||
opt.fontStyleOverride = new(Italic)
|
||||
return opt
|
||||
}
|
||||
|
||||
@@ -125,32 +125,32 @@ func (opt *PDFCellOpt) AutoWidthPaddingX(v float64) *PDFCellOpt {
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) TextColor(cr, cg, cb int) *PDFCellOpt {
|
||||
opt.textColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
opt.textColor = new(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) TextColorHex(c uint32) *PDFCellOpt {
|
||||
opt.textColor = langext.Ptr(hexToColor(c))
|
||||
opt.textColor = new(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) BorderColor(cr, cg, cb int) *PDFCellOpt {
|
||||
opt.borderColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
opt.borderColor = new(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) BorderColorHex(c uint32) *PDFCellOpt {
|
||||
opt.borderColor = langext.Ptr(hexToColor(c))
|
||||
opt.borderColor = new(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) FillColor(cr, cg, cb int) *PDFCellOpt {
|
||||
opt.fillColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
opt.fillColor = new(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFCellOpt) FillColorHex(c uint32) *PDFCellOpt {
|
||||
opt.fillColor = langext.Ptr(hexToColor(c))
|
||||
opt.fillColor = new(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ func (b *WPDFBuilder) Cell(txt string, opts ...*PDFCellOpt) {
|
||||
|
||||
if height == nil {
|
||||
// (do after SetFont, so that b.cellHeight is correctly set to fontOverride)
|
||||
height = langext.Ptr(b.cellHeight + b.cellSpacing)
|
||||
height = new(b.cellHeight + b.cellSpacing)
|
||||
}
|
||||
|
||||
if textColor != nil {
|
||||
|
||||
Reference in New Issue
Block a user