Giter VIP home page Giter VIP logo

Comments (7)

sconklin avatar sconklin commented on July 26, 2024

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.

sconklin avatar sconklin commented on July 26, 2024

Original comment by Susan Spencer (Bitbucket: suzynumena, GitHub: Unknown):


Okay then.

from seamly2d.

sconklin avatar sconklin commented on July 26, 2024

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.

sconklin avatar sconklin commented on July 26, 2024

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.

sconklin avatar sconklin commented on July 26, 2024

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.

sconklin avatar sconklin commented on July 26, 2024

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.

slspencer avatar slspencer commented on July 26, 2024

won't fix.

from seamly2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.