feat(wxread): align pagination, rendering, and docs
This commit is contained in:
@@ -7,6 +7,7 @@ public struct RDEPUBSearchMatch: Codable, Equatable {
|
||||
public var localMatchIndex: Int
|
||||
public var rangeLocation: Int?
|
||||
public var rangeLength: Int
|
||||
public var rangeAnchor: RDEPUBTextRangeAnchor?
|
||||
|
||||
public init(
|
||||
href: String,
|
||||
@@ -14,7 +15,8 @@ public struct RDEPUBSearchMatch: Codable, Equatable {
|
||||
previewText: String,
|
||||
localMatchIndex: Int,
|
||||
rangeLocation: Int? = nil,
|
||||
rangeLength: Int
|
||||
rangeLength: Int,
|
||||
rangeAnchor: RDEPUBTextRangeAnchor? = nil
|
||||
) {
|
||||
self.href = href
|
||||
self.progression = progression
|
||||
@@ -22,6 +24,7 @@ public struct RDEPUBSearchMatch: Codable, Equatable {
|
||||
self.localMatchIndex = localMatchIndex
|
||||
self.rangeLocation = rangeLocation
|
||||
self.rangeLength = rangeLength
|
||||
self.rangeAnchor = rangeAnchor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user