修改分页问题
This commit is contained in:
@@ -286,10 +286,21 @@ public struct RDEPUBTextChapterContext: Equatable {
|
||||
public struct RDEPUBTextChapterRenderRequest {
|
||||
public var context: RDEPUBTextChapterContext
|
||||
public var style: RDEPUBTextRenderStyle
|
||||
/// 当前章节将被分页到的页面尺寸;用于让附件缩放贴近真实 page size。
|
||||
public var pageSize: CGSize?
|
||||
/// 当前分页布局配置;用于生成与 WXRead 更接近的内容区尺寸。
|
||||
public var layoutConfig: RDEPUBTextLayoutConfig?
|
||||
|
||||
public init(context: RDEPUBTextChapterContext, style: RDEPUBTextRenderStyle) {
|
||||
public init(
|
||||
context: RDEPUBTextChapterContext,
|
||||
style: RDEPUBTextRenderStyle,
|
||||
pageSize: CGSize? = nil,
|
||||
layoutConfig: RDEPUBTextLayoutConfig? = nil
|
||||
) {
|
||||
self.context = context
|
||||
self.style = style
|
||||
self.pageSize = pageSize
|
||||
self.layoutConfig = layoutConfig
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user