@vivliostyle/core
    Preparing search index...

    Class BoxStack

    Manages boxes generated by elements as a stack.

    Index

    Constructors

    Properties

    atBlockStart: boolean = true
    atFlowStart: boolean = true
    atStartStack: { atBlockStart: boolean; atFlowStart: boolean }[] = ...
    context: Context
    stack: Box[] = ...

    Methods

    • Returns if the stack is empty.

      Returns boolean

    • Parameters

      • node: Node

      Returns void

    • Returns if the last box in the stack is displayed.

      Returns boolean

    • Returns the flow name of the last box in the stack.

      Returns string

    • Find the start offset of the nearest block start edge to which the break-before value of the box should be propagated. This method can be called when after pushing the box into the stack or after popping the box out of the stack.

      Parameters

      Returns number

    • Create a new box and push it to the stack.

      Parameters

      • style: ElementStyle

        Cascaded style values for the box.

      • offset: number

        The start offset of the box.

      • isRoot: boolean

        True if the box is generated by the root element

      • OptionalnewFlowChunk: FlowChunk

        Specify if the element is a flow element (i.e. the element is specified a new flow-into value)

      Returns Box