Returns the scale to be used for printing the graph with the given bounds across the specifies number of pages with the given format. The scale is always computed such that it given the given amount or fewer pages in the print output. See PrintPreview for an example.

  • Parameters

    • pageCount: number

      Specifies the number of pages in the print output.

    • graph: Graph

      Graph that should be printed.

    • OptionalpageFormat: Rectangle

      Optional Rectangle that specifies the page format. Default is <mxConstants.PAGE_FORMAT_A4_PORTRAIT>.

    • border: number = 0

      The border along each side of every page.

    Returns number