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

Implement Text rotation attributes #59

Open
jimbojw opened this issue Sep 27, 2022 · 0 comments
Open

Implement Text rotation attributes #59

jimbojw opened this issue Sep 27, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@jimbojw
Copy link
Collaborator

jimbojw commented Sep 27, 2022

Depends on:

The TextView object should allow the API user to specify a rotation to the containing box.

Proposed example:

const text: Text = scene.createText();
text.enter((t: TextView) => {
  t.TextRotation = Math.PI / 2;  // Rotate box 90 degrees, vertical.
});

API proposal:

  /**
   * How the text box should be rotated around the anchor point.
   */
  {
    attributeName: 'TextRotation',
    isInterpolable: true,
  },
@jimbojw jimbojw added this to the V0.2.0 milestone Mar 14, 2023
@jimbojw jimbojw added the enhancement New feature or request label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant