linXiv frontend (TS/JS)
    Preparing search index...

    Function fitViewport

    • The viewport that frames bb inside a widthxheight canvas whose rightmost gutter pixels are covered, or null to fall back to cytoscape's own fit (nothing covered, the strip too narrow, or a degenerate box) — which keeps the un-paneled case byte-identical to plain cy.fit().

      Parameters

      • bb: BoundingBox
      • width: number
      • height: number
      • gutter: number
      • zoomRange: { max: number; min: number }
      • padding: number = FIT_PADDING

      Returns Viewport | null