Comments (2)
An even better example might be the "angle" setting. The angle between two parts is not something the user configures, but it is a property of the model (eg. ABox is always at 90° angles; in models such as AngledBox it's configurable but even then it's not constant across all joints). In that example, the settings are deepcopied and applied to a new set of edge objects. That works even with the letter short-cuts because the angles are constant. (But it'd even work for non-constant angles because instead of letters the actual objects can be passed).
Is that the generally recommended pattern? If so, should options that can't be practically set (or are always set by the model) be hidden from the web UI and the command line? Should there be a helper function for "take these settings but adjust some details and create a new edge type out of it"?
from boxes.
OK, after thinking about this for a while I guess the right way is making this a property of the Settings class without using the parameter mechanics. So the angle should not be in absolute_params
but a simple property . That way the user can meddle with it and one can still create a copy of the settings to create a new set of edges - or change it in the code.
from boxes.
Related Issues (20)
- ElectronicsBox - Lid thickness option HOT 1
- TypeTray FingerHoles + Markingfield HOT 15
- TextArea in GridfinityTrayLayout WWW GUI is now a single line text box; editing difficult / impossible.
- DXF, gcode and PLT generation fails in Web Instance HOT 16
- plt file generator not working HOT 3
- Webpages appears to have lost all layout & styling HOT 6
- Flexbox4 latchsize incorrect dimension HOT 1
- Can Storage, can's can't be taken out
- Shelf for laptop and phone charger pad HOT 8
- Console output during box generation
- boxes does not use versioning
- Broken box generators without arguments HOT 2
- Broken HTML
- Windows build fails with recent master HOT 7
- svg from any font HOT 6
- An error occurred! local variable 'poly' referenced before assignment
- Failing test: Shadowbox sample HOT 3
- Documentation missing requierment for python3-qrcode in the Installation/Requirements section HOT 1
- UniversalBox.py Default Settings HOT 2
- --label_file option for TypeTray defaults to labels.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boxes.