angularJs.keruC icon indicating copy to clipboard operation
angularJs.keruC copied to clipboard

Maintaining square grid on different espect ratios

Open kameshsampath opened this issue 8 years ago • 1 comments

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.

kameshsampath avatar Nov 06 '16 13:11 kameshsampath

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.

ShadAhm avatar Nov 11 '16 04:11 ShadAhm