Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text rotation style #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antoinereyt
Copy link

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 marked this pull request as ready for review October 15, 2021 11:15
@CharlesOkwuagwu
Copy link

@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