-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Common step
, min
, max
parameters for Point input
#417
Labels
Milestone
Comments
For workaround I guess you could do it like this: const opts = {step: 20, min: 0, max: 4};
pane.addInput(PARAMS, 'offset', {
x: opts, // in case using all default value
y: {...opts, step: 1} // in case want to override it
}); |
cocopon
added a commit
that referenced
this issue
Mar 10, 2023
cocopon
added a commit
that referenced
this issue
Mar 10, 2023
cocopon
added a commit
that referenced
this issue
Mar 10, 2023
Implemented in #514 and will be released in the next major version. |
Released in v4.0.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
It'll be very handy to be able to specify the mentioned parameters in options when both dimensions have same constrains instead of duplicating them for
x
andy
.So current way is:
Desired:
So the check would be something like
params.x.step ?? params.step
meaning root level params would act as fallback, while specifying them per property would override defaultsThe text was updated successfully, but these errors were encountered: