Positioning elements at specific places in a "flex-box / flow like" structure
A simple case: I have created several elements through AdoScript and want to position them in a flex-box / flow like (see HTML+CSS flow elements) structure starting at a certain x/y coordinate. This would be useful when elements are automatically generated. There could be several parameters provided to influence the positioning:
- Starting point
- Direction of placement (flow horizontal or vertical?)
- Space limitation (width and/or height)
- Margins between objects
Example: In the following image the red ellipses already exist, the green objects show the result after they have been placed (positions changed), the light blue dot (close to top left corner of top left green rectangle) would be the x/y starting point and the dark blue line would be the limit on width to use (i.e. at what point to wrap to the next line) --> height would be used as much as possible. The direction of placement would be horizontal (left to right).
This would require some data/information about the objects to be placed (width, height, relation to its position x/y values) that are not part of the typical ADOxx library but are described for some of the functionalities used by this module (see src\Expressions\Connector Endpoints\Necessary attributes.md
).