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

    Function layoutLines

    • Lays out rotated line strips within a content box.

      Parameters

      • lineSizes: readonly Size[]

        The un-rotated line boxes (width = text width, height = line height), in reading order. Only sizes are used; positions are derived here.

      • deg: number

        The rotation in CSS degrees (must satisfy isRotatedLayout).

      • content: Bounds

        The content box (cell box minus insets), in the caller's coordinate space.

      • horizontal: ITextFrame.HorizontalAlignment

        The resolved horizontal alignment (General already resolved to left/right). At diagonal angles it applies twice, matching Excel: along each line's chord (a short last line slides toward the reading end) and to the whole footprint against the content box. At ±90° it places the footprint only — the chord is vertical there, and sliding along it belongs to vertical.

      • vertical: ITextFrame.VerticalAlignment

        The vertical alignment. Diagonal angles: applied to the whole footprint against the content box. ±90°: applied per line ALONG its chord with screen semantics (Top hugs every line to the top edge, Center centers each line, Bottom hugs the bottom).

      Returns RotatedLayout

      The footprint may exceed the content box in either axis — rotated text overflows; clipping is a consumer decision.