layer.frame returns the frame of the layer in the form:
height = 128;
width = 261;
x = 0;
y = 251;
But the x and y values are relative to the parent group.
How do I get the x and y coordinates relative to the artboard?
The new API refers to this:
localRectToPageRect(rect: Rectangle): Rectangle
Convert a rectangle in the coordinates that this layer uses to absolute (page) coordinates.
But I can't figure out how to use it. I think it might only set values, not get them?