Hubs-Foundation / Hubs-Foundation/Spoke

Consider allowing math functions for numeric input fields

Open
#670 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
679
Forks
260
PR merge metrics
No merged PRs in 30d

Description

It's very handy to be able to select a number in a numeric input field and typing something like `2 * 2.25 ` and having the number update to `4.5`.
For example, you might have an object placed somewhere along the ground (not on the grid) and want another set of evenly spaced duplicates.
Or an object is rotated on some arbitrary axis and you want it rotated exactly 'half' of it's current rotation. ( ` / 2 `)

Blender and other 3d software have similar options that could be used as reference.

Contributor guide

Open the contributing guide

Research direction

Start by locating the numeric input entry points in Spoke and identify how values are currently parsed and applied to object transforms. Compare the requested examples, such as `2 * 2.25` and `/ 2`, with Blender's behavior; done means supported expressions update numeric fields correctly without breaking ordinary numeric input.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js
Domain
computer-graphics, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.