Dynamically modifying the range limits of a metaParameter

Open
#450 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start with the imetaparameter API documentation for the max range limit and run the linked Maker.js playground example and gist. Determine how a limit derived from another value should behave; the work is done when the nut example can keep its hole size below the outer hexagon and the supported behavior is documented.

Written by the indexing model from the issue text.

Description

Its currently possible to initialize the max limit of a range metaParameter with a number:

But, would it be possible to dynamically modify the max based on another value by maybe passing in a function instead?

eg.

This is a made up example of a nut (🔩), where the aim is to limit the maximum hole size to always be smaller than the outer hexagon.

Dominant language
TypeScript
Stars
2k
Forks
302
Avg merge
21h 28m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/maker.js

All issues in microsoft/maker.js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.