Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point 2D - y inverted? #67

Closed
ciknowles opened this issue Jun 7, 2020 · 4 comments
Closed

Point 2D - y inverted? #67

ciknowles opened this issue Jun 7, 2020 · 4 comments

Comments

@ciknowles
Copy link

I've noticed on the Point 2D input when you expand the pad that the y appears to be inverted. Not sure if this is intended?

I would expect the upper right quadrant of the pad to be +v.e for both x and y.

I tried reversing my min and max (and step) but this doesn't work.

I've attached an image
tweakpane_1

Chris

@cocopon
Copy link
Owner

cocopon commented Jun 7, 2020

This is by design, natural in computer coordinate system. min means minimum, max means maximum, so you should not reverse them.

If you want to invert Y axis, please use inverted value in your program.

@cocopon
Copy link
Owner

cocopon commented Jun 8, 2020

On second thought, inverted Y axis is more user-friendly so I'll add an option like invertsY to Point2D input later.

@ciknowles
Copy link
Author

Super - thank you!

@cocopon
Copy link
Owner

cocopon commented Jun 8, 2020

Added inverted option to Y-axis in 49552bd. Please wait for the next release.

const PARAMS = {
  offset: {x: 50, y: 50},
};

const pane = new Tweakpane();
pane.addInput(PARAMS, 'offset', {
  y: {inverted: true},
});

@cocopon cocopon closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants