Thanks for an awesome lib!
Some suggestions from me - add an item scaling option.
I use this lib for non-image items, I know all items' heights and I like of width auto-scaling to column width. But now I get another item height in the generated layout. Due to this logic:
|
rectangle.height = rectangle.height * (this.width / rectangle.width); |
Maybe we can make these calculations (width or height) optional?
Thanks for an awesome lib!
Some suggestions from me - add an item scaling option.
I use this lib for non-image items, I know all items' heights and I like of width auto-scaling to column width. But now I get another item height in the generated layout. Due to this logic:
simple-masonry-layout/packages/simple-masonry-layout/src/grid.ts
Line 172 in bafb958
Maybe we can make these calculations (width or height) optional?