Skip to main content
Vincent_Huss
Active Member
December 10, 2024
Question

Api : how to know if a node was resized

  • December 10, 2024
  • 2 replies
  • 60 views

Hi,

i have a parent node containing some vectors sub-nodes,
when i resize manually the parent node (to let’s say half of the size),

width, height, and absoluteBoundingBox give me the new dimensions (after rescale),
but absoluteRenderBounds gives me the previous dimensions. (before rescale)

Is that intended ?
Is there any way i can know about the scaling factor of that node ?
I have seen that relativeTransform is not used for scaling.

Thanks

This topic has been closed for replies.

2 replies

tank666
December 10, 2024

I just checked and everything works as expected. The absoluteRenderBounds object is returned with the new values.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Vincent_Huss
Active Member
December 11, 2024

Indeed, after more precise tests, i realized there was a drop shadow (almost invisible) which explained the difference for absoluteRenderBounds, since it’s a design file i was given from someone else, i wasn’t aware of it and overlooked that.

Sorry about that.
Thanks for the assistance.