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

support relative coordinates #100

Open
SwissalpS opened this issue Sep 14, 2022 · 5 comments
Open

support relative coordinates #100

SwissalpS opened this issue Sep 14, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@SwissalpS
Copy link
Contributor

The core developers are adding relative coordinate support to commands:
~x ~-y z ==> x and y coordinates are relative to current and z coordinate is absolute.

I think they also added a convenience function which could be used to support
this entry type in the JD formspec.

@SwissalpS SwissalpS added the enhancement New feature or request label Sep 14, 2022
@BuckarooBanzay
Copy link
Member

I think they also added a convenience function which could be used to support
this entry type in the JD formspec.

If that's the case it would be pretty easy to implement

@SwissalpS
Copy link
Contributor Author

backward compat would make this a little more complicated unless jd's min MT version is bumped up.

@S-S-X
Copy link
Member

S-S-X commented Oct 23, 2022

Just change input keys rel_x, rel_y, rel_z to easily keep everything compatible.

@SwissalpS
Copy link
Contributor Author

I was thinking of not adding more fields to formspec, allowing user to prepend a number with '~' to indicate that it is a relative coordinate.

@S-S-X
Copy link
Member

S-S-X commented Dec 17, 2022

convenience function

Thinking about this a bit I believe this is one of those "convenience" things you probably should avoid and just implement very basic math yourself.
I mean it sounds kinda like these useless packages: https://www.npmjs.com/package/is-odd big framework built around return (n % 2) == 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants