@vivliostyle/core
    Preparing search index...

    Class Styler

    Implements

    Index

    Constructors

    Properties

    bodyPropagatedStyle: ElementStyle = ...

    writing-mode and direction values propagated from the body element to the root element. Per CSS Writing Modes spec, this propagation is done on used values rather than computed values, so these values must not be inherited by the page context. (Issue #1122)

    bodyReached: boolean = true
    boxStack: BoxStack
    breakBeforeValues: Map<number, string> = ...
    context: Context
    counterListener: CounterListener
    counterSnapshots: CounterSnapshot[] = []
    elementWindow: ElementCascadeInstance
    flowChunks: FlowChunk[] = ...
    flowListener: FlowListener = null
    flows: { [key: string]: Flow } = ...
    flowToReach: string = null
    idToReach: string = null
    lastOffset: number
    offsetMap: SlipMap
    primary: boolean = true
    primaryFlows: { [key: string]: boolean }
    primaryStack: boolean[] = ...
    rootBackgroundAssigned: boolean = false
    rootLayoutAssigned: boolean = false
    rootStyle: ElementStyle = ...
    styles: StyleStore
    validatorSet: ValidatorSet

    Methods

    • Transfer properties that should be applied on the container (partition) level to this.rootStyle.

      Parameters

      • elemStyle: ElementStyle

        (source) element style

      • isBody: boolean

      Returns void

    • Parameters

      • offset: number
      • counters: CounterValues
      • changes: string[] = []
      • OptionalchangeTypes: { [key: string]: "set" | "reset" | "increment" }

      Returns void

    • Parameters

      • breakValue: string
      • offset: number
      • flowName: string

      Returns void

    • Replay flow elements that were encountered since the given offset

      Parameters

      • offset: number

      Returns void

    • Parameters

      • startOffset: number

        current position in the document

      • lookup: number

        lookup window size for the next page

      Returns number

      lookup offset in the document for the next page