Tresjs/cientos

Utility component: Resize (Fit)

andretchen0 opened this issue · 0 comments

Description

It would be useful for staging and iterating to have a <Resize /> component that uniformly scales child components to fit within a box of dimensions size.

Suggested solution

Drei offers a similar component that resizes child components to fit in a 1 x 1 x 1 box. But we could make it more useful, flexible, and compact if instead of these props ...

  • width: boolean
  • height: boolean
  • depth: boolean

... we use ...

  • size: TresVectorFlexibleParams

... with :size="1" as the default.

Alternative

No response

Additional context

No response

Validations