There are some fields that we would love to get included from the API, I know there’s a lot of data, but maybe we can add a list to vote between the most relevant ones. I feel that some missing fields make unusable the ones that you expose, for example:
Constraints details contain the horizontal and vertical attributes but does not contain the option if the position is fixed when scrolling
For reactions, although not documented, the API supports ON_KEY_DOWN, but does not specify which Key
Fixed children are always first in the list so to get all fixed children you need to get the first X children, where X is the number of fixed children.
Figma is quite weird in that regard. Layers that are the first in the UI are gonna be the last in the children array in the API. This can further be affected by the stacking order setting in the Auto Layout layers. In my previous response I didn’t consider this issue and was referring to how things are in the GUI instead of the API. So you are correct.
So is there a way then to actually fix a frame in Figma plugin api? As i am creating a new frame and need to fix it so it wont scroll.
let numberOfFixedChildren;
const newFrame = figma.createFrame();
newFrame.name = "newFrame";
// Align newFrame to the top left of parentFrame
newFrame.x = 0;
newFrame.y = 0;
const imageNode = figma.createImage(imageData);
// Append the new grouped text to the frame
newFrame.appendChild(imageHolder);
// Append the new frame to the parentFrame, not the page
parentFrame.appendChild(newFrame);