updated dependencies and go
This commit is contained in:
+5
-5
@@ -23,12 +23,12 @@ func (opt *PDFLineOpt) LineWidth(v float64) *PDFLineOpt {
|
||||
}
|
||||
|
||||
func (opt *PDFLineOpt) DrawColor(cr, cg, cb int) *PDFLineOpt {
|
||||
opt.drawColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
opt.drawColor = new(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFLineOpt) DrawColorHex(c uint32) *PDFLineOpt {
|
||||
opt.drawColor = langext.Ptr(hexToColor(c))
|
||||
opt.drawColor = new(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
@@ -38,17 +38,17 @@ func (opt *PDFLineOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFLineOpt
|
||||
}
|
||||
|
||||
func (opt *PDFLineOpt) CapButt() *PDFLineOpt {
|
||||
opt.capStyle = langext.Ptr(CapButt)
|
||||
opt.capStyle = new(CapButt)
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFLineOpt) CapSquare() *PDFLineOpt {
|
||||
opt.capStyle = langext.Ptr(CapSquare)
|
||||
opt.capStyle = new(CapSquare)
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFLineOpt) CapRound() *PDFLineOpt {
|
||||
opt.capStyle = langext.Ptr(CapRound)
|
||||
opt.capStyle = new(CapRound)
|
||||
return opt
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user