@vivliostyle/core
    Preparing search index...

    Interface LayoutContext

    Styling, creating a single node's view, etc.

    interface LayoutContext {
        addEventListener(
            type: string,
            listener: EventListener,
            capture?: boolean,
        ): void;
        applyFootnoteStyle(
            vertical: boolean,
            rtl: boolean,
            target: Element,
        ): boolean;
        applyPseudoelementStyle(
            nodeContext: Vtree.NodeContext,
            pseudoName: string,
            target: Element,
        ): void;
        clone(): Vtree.LayoutContext;
        convertLengthToPx(
            numeric: Numeric,
            viewNode: Node,
            clientLayout: Vtree.ClientLayout,
        ): number | Numeric;
        dispatchEvent(evt: Event): void;
        isSameNodePosition(
            nodePosition1: Vtree.NodePosition,
            nodePosition2: Vtree.NodePosition,
        ): boolean;
        nextInTree(
            nodeContext: Vtree.NodeContext,
            atUnforcedBreak?: boolean,
        ): Result<Vtree.NodeContext>;
        peelOff(
            nodeContext: Vtree.NodeContext,
            nodeOffset: number,
        ): Result<Vtree.NodeContext>;
        processFragmentedBlockEdge(nodeContext: Vtree.NodeContext): any;
        removeEventListener(
            type: string,
            listener: EventListener,
            capture?: boolean,
        ): void;
        setCurrent(
            nodeContext: Vtree.NodeContext,
            firstTime: boolean,
            atUnforcedBreak?: boolean,
        ): Result<boolean>;
        setViewRoot(viewRoot: Element, isFootnote: boolean): any;
    }
    Index

    Methods

    • Apply styles to footnote container.

      Parameters

      • vertical: boolean
      • rtl: boolean
      • target: Element

        element to apply styles to

      Returns boolean

      vertical

    • Apply pseudo-element styles (if any).

      Parameters

      • nodeContext: Vtree.NodeContext
      • pseudoName: string
      • target: Element

        element to apply styles to

      Returns void

    • Parameters

      Returns void

    • Set the current source node and create a view. Parameter firstTime is true (and possibly offsetInNode > 0) if node was broken on the previous page.

      Parameters

      • nodeContext: Vtree.NodeContext
      • firstTime: boolean
      • OptionalatUnforcedBreak: boolean

      Returns Result<boolean>

      true if children should be processed as well

    • Set the container element that holds view elements produced from the source.

      Parameters

      • viewRoot: Element
      • isFootnote: boolean

      Returns any