make drawline horizontal or veritical & adjust root position according to the shape of the tree