megaplot icon indicating copy to clipboard operation
megaplot copied to clipboard

Implement Text rotation attributes

Open jimbojw opened this issue 3 years ago • 0 comments

Depends on:

  • #57
  • #55

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 avatar Sep 27 '22 13:09 jimbojw