megaplot
megaplot copied to clipboard
Implement Text rotation attributes
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,
},