Question
[plugin development] create text object with attribut center
Hello everybody,
I am developing a custom plugin for adobe xd. It's a discovery for me. I'm creating a Text() object and would like to give it an "align = center" attribute. Is it possible ? I can't find it in the API.
my code:
const txtPage = new Text();
txtPage.text = "PAGE";
txtPage.styleRanges = [{
length: txtPage.text.length,
fontFamily: "Montserrat",
fontStyle: "Bold",
fill: new Color("#2699FB"),
fontSize: 24
}];
Thanks in advance 🙂
