Hello there
I am trying to create a plugin to generate a list. I use the setRangeListOptions()
function.
figma.ui.onmessage = async (mesg) => {
await figma.loadFontAsync({ family: "Inter", style: "Regular" })
var text = figma.createText()
type TextListOptions = { type: "UNORDERED"};
text.setRangeListOptions(1, 2, globalThis.TextListOptions)
figma.closePlugin()
}
I’m creating a text node, but I can’t put a nested list in it.
At the same time, he writes that “TextListOptions” is declared, but has never been used.
And a warning: