Coursereader API - v0.1.0
    Preparing search index...

    Interface ResponsiveLayout

    Responsive behavior for a viewer.

    The first layout whose query matches the viewport is used.

    interface ResponsiveLayout {
        background?: string;
        gap?: number;
        gutter?: string | false | DeepPartial<GutterOptions>;
        mode: "spread" | "single";
        pageFit?: "width" | "height" | "contain";
        query: string;
        spread?: { firstPageSide?: "right" | "left" };
    }
    Index
    background?: string

    CSS background for the viewer area.

    gap?: number

    Gap between pages in spread mode, in pixels.

    gutter?: string | false | DeepPartial<GutterOptions>

    Gutter style: false disables the gutter, a string selects a registered binding style, and an object overrides the subtle built-in style.

    mode: "spread" | "single"

    Show one page or a facing-page spread.

    pageFit?: "width" | "height" | "contain"

    How pages fill the available space. Defaults to "contain".

    query: string

    Media query that activates this layout.

    spread?: { firstPageSide?: "right" | "left" }

    Type Declaration

    • OptionalfirstPageSide?: "right" | "left"

      Most books begin with page 1 on the right.