Yes, the Lekh Diagram first recognizes a general shape which is matching to user's drawing then uses various heuristics to convert it to regular shapes like rectangle, parallelogram etc.
There is setting that switches of most of second step (regularizing shapes). In the Misc->Settings, there is "regularize shape" switch