Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Drawing a PSTreeGrap bottom-up #21

Open
mahmuzicamel opened this issue Feb 9, 2013 · 2 comments
Open

Drawing a PSTreeGrap bottom-up #21

mahmuzicamel opened this issue Feb 9, 2013 · 2 comments

Comments

@mahmuzicamel
Copy link

Hi, I really love your PSTreeGraph! Thank you for your time spent on this, I think.
I just want to know if it is possible to place a root on the bottom of the screen and draw a tree bottom-up? Thank you

@epreston
Copy link
Owner

Your welcome (on behalf of myself other contributors too). The best way to thank everyone is to make your improvements available for peer review and inclusion by doing a pull request. :-)

Anythings possible, it already supports a few options for orientation. You will find that the rendering code and flags are fairly self contained. Check the behaviour of the rendering and orientation flags introduced in the last couple of pushes.

@epreston
Copy link
Owner

Specifically, check out the "PSTreeGraphOrientationStyleVerticalFlipped" value of the "PSTreeGraphOrientationStyle" enumeration. If it's implemented, you can "git blame" to see if it was me or Chad.

typedef enum PSTreeGraphOrientationStyle : NSUInteger {
    PSTreeGraphOrientationStyleHorizontal = 0,
    PSTreeGraphOrientationStyleVertical = 1,
    PSTreeGraphOrientationStyleHorizontalFlipped = 2,
    PSTreeGraphOrientationStyleVerticalFlipped = 3,
} PSTreeGraphOrientationStyle;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants