-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Handle formulas/errors in Snapping Grid dimensions #87
Handle formulas/errors in Snapping Grid dimensions #87
Conversation
**Why?** Avoid the need to use an external calculator for computing even spacing. e.g. if I had a 50' bed with 120 rows, I could type `=(50 * 12) / 120` directly in the dimension input box to calculate the row spacing of 5" per row.
Before:
After:
|
With @emmetio/math-expression instead of math-expression-evaluator:
|
Cool feature @symbioquine! My only reservation is that it feels a bit like an "easter egg". :-) I'm generally hesitant to add code unless I know it will be used. I'm sure this will be handy, but if I were looking at the map for the first time I probably wouldn't know this feature existed. Certainly adding some documentation to https://farmos.org/guide/areas/ would help. I wonder if there's anything we could do in the UI itself to make it apparent? It actually makes me think about this: #14 (comment) Perhaps if we create a sidebar, we can consider moving some controls (including the snapping grid) into it, and provide some help text with it. |
Yeah, I can see that :)
Definitely was planning on this.
I'll play around and see what I can come up with... |
Oops - I changed the default branch to |
Sorry @symbioquine! You can open a new PR against |
Yeah, no worries @mstenta I'm not sure when I'll get back to this... |
Why? Avoid the need to use an external calculator for computing even spacing. e.g. if I had a 50' bed with 120 rows, I could type
=(50 * 12) / 120
directly in the dimension input box to calculate the row spacing of 5" per row.Note the
10now 4 KiB size increase. I'm not sure what the criteria for inclusion/exclusion of features should be for farmOS-map...