SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function getLineLength

    • The available text length along one rotated line within contentHeight.

      A strip of thickness lineHeight at angle θ spans w·|sin θ| + lineHeight·|cos θ| vertically; solving for the length that exactly fills the height gives (contentHeight - lineHeight·|cos θ|) / |sin θ|. At ±90° this degenerates to contentHeight. Clamped to ≥ 1 so a too-short row still lays out (and wraps per-character like a too-narrow column does).

      Parameters

      • contentHeight: number
      • lineHeight: number
      • deg: number

      Returns number