Comments (7)
Original comment by bespoketailor (Bitbucket: bespoketailoring, GitHub: Unknown):
I for one, use a metric ton of underscores in my labels. This would completely break my patterns.
from seamly2d.
Original comment by Susan Spencer (Bitbucket: suzynumena, GitHub: Unknown):
Okay then.
from seamly2d.
Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):
I against such practices in this case. This will break almost all patterns users made already. The only one possible option for us is to improve or replace math parser.
from seamly2d.
Original comment by Susan Spencer (Bitbucket: suzynumena, GitHub: Unknown):
Rules to prevent usage of symbols and prefixes which convey meaning (like _ and Line) are good practices in naming conventions. Is it complex to implement these rules at this time?
from seamly2d.
Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):
One thing I noticed from the XML schema was the regex being used for the names of drawing objects. It appears that an underscore ‘_’ is valid as part of a name. This would seem to conflict with the requirement to parse line length references within formula. E.g.
I create some points with names: ‘A’, ‘A_B’, ‘B’, ‘B_C’ and ‘C’. I then draw a line between ‘A_B’ and ‘C’ This gives a line reference that I can use in formula ‘Line_A_B_C’ I then create a second line between ‘A’ and ‘B_C’. This also has a line reference that I can use in formula 'Line_A_B_C’ This is therefore ambiguous.
The easiest fix would be to disallow underscore from object names. In fact, the problem is even easier to reproduce if I label a point ‘Line_A_B’, though I am less likely to do that by accident. This doesn’t cause a failure, Valentina just silently uses the first value that provides that name, however this could be very confusing, especially if the values were similar.
from seamly2d.
Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):
I think you forgot that for pattern very important thing is sequence.
For your purposes we create special variables that contain angle value. Use them. My idea was to make variable for each real object we have in a pattern. If you will open object property you will find that program filter all such variables add show only allowed for the object.
angleOfLine(A, B) which returns the angle in degrees of the line from A to B. The angle of line is always positive, 0 <= angle < 360
I have two point C and D. I write angleOfLine(A, B). What will return the function? Stop parsing?
Also, program designed in such a way that on each step object know only about objects that was created before in sequence.
And last, right now we have no mechanism for parsing point name and returning value. it is not the same as just to parse variable or digits.
from seamly2d.
won't fix.
from seamly2d.
Related Issues (20)
- BUG: HOT 2
- BUG: App is excessively logging debug() messages
- BUG: Dialog max height issue
- BUG: Change in logging behavior is now popping up warnings unecessarily
- BUG: fx errors popping up logging warnings
- BUG: Miscellaneous logging warnings still popping up
- BUG: Starting SeamlyMe throws inadvertant warning.
- BUG: Parts of the UI are not translated.
- BUG: Widgets in dialogs do not adjust to longer translations
- Feature: Add translation files for British English.
- BUG: Length units are are not translated in some dialogs
- BUG: Move tool produces error when Translating
- Feature: Add a notch Subtype submenu to the mainpath context menu.
- Feature: add splash screeen to SeamlyMe
- BUG: D-Bus Server error using Seamly2d on Discover Store HOT 4
- BUG: Body Scan item doesn't open GMAIL HOT 10
- BUG: Paths are swapped between SeamlyMe and Seamly2D HOT 2
- BUG: Undo Combining Objects in Layout View
- BUG: The Seam Allowance reappears
- Feature: add welcome screeen to Seamly2d
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 seamly2d.