foldkit-viz - v0.15.0
    Preparing search index...

    Function rescaleDomain

    • Given a linear scale mapping [domain] → [range], returns the new domain that describes the visible portion of the data after applying m.

      Use this to re-render axes in a zoomed chart without applying an SVG transform — the chart re-derives which data is visible and at what positions.

      Parameters

      • domain: readonly [number, number]
      • range: readonly [number, number]
      • m: TransformMatrix
      • axis: "x" | "y"

      Returns readonly [number, number]