-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Make Euler.onChange() and Quaternion.onChange() private #16755
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
Conversation
|
The following have been left unchanged: In In If the boolean args can be removed without breaking anything, I'd be for doing that. |
Let's say if
However, since it's an optional parameter than was presumably not used very often I think it's okay if it is removed. We should just note this change in the migration guide. |
The Is there a problem if the arg is removed from the TS signature but the library passes the arg internally? |
No, that's not a problem for the lib. However, users might the mentioned TS error. |
Then it seems best to me to remove the
I don't understand what you are trying to say... |
When a user currently does this in his TS code (for whatever reasons): q.setFromEuler( e, true );Then the user would get a TS error if the second parameter is removed from the TS declaration file. |
We do not want users to pass the |
|
Like I said, I would remove it from the TS file and note the change in the migration guide (just for the case somebody complains so we can refer to it). |
|
I'll merge this, then, and update the TS flies and migration docs in a separate PR so the TS files can easily be reverted if need be. |
|
Sounds good. |
|
Thanks for cleaning this up! |
Euler.onChange()andQuaternion.onChange()are used internally for synchronization, are not intended to be public.As proposed in #16731 (comment).