Skip to content

Add text rotation style#118

Open
antoinereyt wants to merge 2 commits into
xou:masterfrom
antoinereyt:add-text-rotation-style
Open

Add text rotation style#118
antoinereyt wants to merge 2 commits into
xou:masterfrom
antoinereyt:add-text-rotation-style

Conversation

@antoinereyt

Copy link
Copy Markdown

Adding support for text rotation

Screen Shot 2021-10-15 at 13 01 03

Usage

# Text rotation.
sheet7 =
  %Sheet{name: "Text rotation"}
  |> Sheet.set_cell("A1", "Hello - angle_ccw",  text_rotation: :angle_ccw)
  |> Sheet.set_cell("B1", "Hello - angle_cw",  text_rotation: :angle_cw)
  |> Sheet.set_cell("C1", "Vertical - vertical", text_rotation: :vertical)
  |> Sheet.set_cell("D1", "Hello - rotate_up", text_rotation: :rotate_up)
  |> Sheet.set_cell("E1", "Hello - rotate_down", text_rotation: :rotate_down)
  |> Sheet.set_cell("F1", "Hello - 20", text_rotation: 20)

XML

This adds the textRotation xml attribute.

    <xf numFmtId="0" fontId="0" fillId="2" borderId="1" xfId="0" applyFill="1" applyBorder="1" applyAlignment="1">
      <alignment vertical="center" textRotation="180"/>
    </xf>

@antoinereyt antoinereyt force-pushed the add-text-rotation-style branch from a1f1f14 to c931e3f Compare October 15, 2021 11:07
@antoinereyt antoinereyt marked this pull request as ready for review October 15, 2021 11:15
@CharlesOkwuagwu

Copy link
Copy Markdown

@xou Please can this PR be pulled into master?

@xou xou force-pushed the master branch 3 times, most recently from e7bdfd0 to 68acd8d Compare January 28, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants