voytech / tabulate

Kotlin library for exporting collections of object into tabular formats.
Apache License 2.0
2 stars 0 forks source link

Correct mapping layout units -> spreadsheet cords and viceversa #172

Open voytech opened 10 months ago

voytech commented 10 months ago

There are some certain issues with converting layouts into spreadsheet cords. Anchors bound to columns and rows will resize connected components (text) when column/row change its size due to later components rendering.

Mapping pixel/inch/point to ordinal row/column is not easy as different methods for resolving target row/column exist. We may round pixel value down or half up, we may truncate pixel value (floor) or we may use next column/row (ceiling) when resolving anchor size. All depends on use case thus introduces lot of complexity.