cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

TransformElement 'hide out of view' does not take into account element size #820

Open TobyKLight opened 3 months ago

TobyKLight commented 3 months ago

Link to simple, reproducible example patch https://cables.gl/edit/ilUwtk

Describe the bug On the TransformElement op the 'hide out of view' option is based on the anchor point rather than taking into account the element size.

How To Reproduce

  1. Open https://cables.gl/edit/ilUwtk
  2. Move the rectangle towards the top left corner using the transform op
  3. Notice it disappears when the XY pivot point disappears, not when the whole rect is out of view

Platform Chrome 127 on win11