angularJs.keruC
angularJs.keruC copied to clipboard
Maintaining square grid on different espect ratios
hey @ShadAhm , thanks for this repo.. really helpful.
when i use longestRow = 20 and rows = 7, I see the logic is drawing rectangle instead of square with same canvas size.
Any thoughts on how to fix your width/height computation logic ?
Thanks.
Hi @kameshsampath thanks for using it!
As far as I remember, the script will only draw squares as long as the aspect ratio of rows vs columns is 1:1. ie : longestRow = 20, then you'll need 20 columns.
If you dont have 20 columns, a workaround is using additional columns of NodeType.Void.
Let me know if it works out.