feat: improve epub reader controls and annotations

This commit is contained in:
shen
2026-07-12 12:23:10 +08:00
parent 063a493b18
commit 8ccb7157b2
36 changed files with 2959 additions and 2160 deletions
@@ -36,6 +36,13 @@ public final class RDEPUBPublication {
parser.readingProfile()
}
/// Scripted fixed-layout publications own a complete interactive scene per
/// spine item. Combining scenes in landscape can start multiple timelines
/// and media tracks, so these publications remain single-page.
public lazy var requiresSinglePagePresentation: Bool = {
layout == .fixed && parser.hasInteractiveContent()
}()
public var readingProgression: RDEPUBReadingProgression {
metadata.readingProgression
}
@@ -68,4 +75,4 @@ public final class RDEPUBPublication {
spreadEnabled: fixedLayoutSpreadEnabled(for: preferences, viewportSize: viewportSize)
)
}
}
}