For example: If I resize rectangle 0, I want rectangle 1 and rectangle 2 and other rectangles to be resized proportionally as shown in the attached picture.
Ya, we are building a web page which has many components like table, charts, image.
Here my query is , the image I have shared is the mechanical component, where the end user will give the width, height , x and y axis as input and the same image has to be shown.
Could you please share a minimal code snippet that shows what you are trying to do? How are you resizing the rectangles? Is this some component where you can click and drag to change the image? Or are you using native streamlit widgets to generate the image?
This seems more like a Geometry problem than anything else. If the goal is simply to make the bottom rectangle always centered on the top rectangle, you can do that with