figma / plugin-typings

Typings for the Figma Plugin API
MIT License
195 stars 45 forks source link

resize() function not taking variables #150

Closed brankoo124 closed 2 years ago

brankoo124 commented 2 years ago

Hi, I am trying to resize line node.

const rowLine = figma.createLine(); rowLine.resize(908, 1);

When I add number variables it gives me this error message: image

Is there some mistake in function or am I using it wrong?

glebsexy commented 2 years ago

The line always has the heigh of 0, you can't change it.