@vivliostyle/core
    Preparing search index...

    Class PageMaster<I>

    Represent a page-master rule

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _scope: LexicalScope
    children: PageBox<PageBoxInstance<any>>[] = []
    classes: string[]
    condition: Val
    index: number = 0
    key: string
    keyMap: { [key: string]: string } = {}
    name: string
    pageMaster: PageMaster = null
    parent: PageBox
    pseudoName: string
    specificity: number
    specified: ElementStyle = {}

    Accessors

    Methods

    • Clone the PageBox.

      Parameters

      • param: any

        parent: The parent of the cloned PageBox. pseudoName: Assign this value as the pseudoName of the cloned PageBox.

      Returns PageMaster

    • Point the pageMaster reference in the PageMasterScope to the current page master. This is needed when a page master is cloned and shares a common scope with the original page master. Since every Exprs.Val which the page master holds has a reference to the scope and uses it for variable resolution, this reference must be updated properly before the page master instance is used.

      Returns void