feat(reader): add CBZ spread layout engine and settings

This commit is contained in:
neon
2026-04-02 08:07:00 -06:00
parent fe1b70c1dc
commit bdbe36f9e5
9 changed files with 1073 additions and 147 deletions
+6
View File
@@ -67,6 +67,9 @@ export interface CbxReaderSettings {
viewMode: "single" | "two-page";
scrollMode: "paginated" | "infinite" | "long-strip";
direction: "ltr" | "rtl";
spreadAlignment: "normal" | "shifted";
forceTwoPage: boolean;
widePageSingletonMode: "auto" | "disable";
bgColor: "black" | "gray" | "white";
}
@@ -115,6 +118,9 @@ export const CBX_READER_DEFAULTS: CbxReaderSettings = {
viewMode: "single",
scrollMode: "paginated",
direction: "ltr",
spreadAlignment: "normal",
forceTwoPage: false,
widePageSingletonMode: "auto",
bgColor: "black",
};