Skip to main content
Question

Api : how to know if a node was resized

  • December 10, 2024
  • 2 replies
  • 14 views

Vincent_Huss

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

2 replies

tank666
  • 4859 replies
  • December 10, 2024

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


Vincent_Huss
  • Author
  • Active Member
  • 29 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings