mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
7df35ac122
commit
489db301c5
15 files changed
+304
-75
No files matched your search
@@ -573,9 +573,12 @@ func (r *Renderer) writeCompressedImage(writer io.Writer, data []byte) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// outputContext 获取仅用于输出的取消上下文
|
||||
// outputContext 优先使用当前页面上下文,否则使用输出上下文
|
||||
// 返回: context.Context 取消上下文
|
||||
func (r *Renderer) outputContext() context.Context {
|
||||
if r.pageContext != nil {
|
||||
return r.pageContext
|
||||
}
|
||||
if r.OutputContext != nil {
|
||||
return r.OutputContext
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user