Giter VIP home page Giter VIP logo

Comments (5)

chuckhacker avatar chuckhacker commented on September 13, 2024

Here is a repro quadratic curve:

start: (193.15625, 203.84375)
control point: (193.15625, 203.84375)
end: (213.125, 209.46875)

Hope that helps!

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

hm, probably a good idea, marking as enhancement.

from bezierjs.

chuckhacker avatar chuckhacker commented on September 13, 2024

Thank you! It's also a bug because outline() (which calls reduce() in its own internal implementation) doesn't work at all with this curve (it crashes with the aforementioned stack trace instead of returning an outline for the original curve).

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

Note to anyone else running into this: I'm terribly unavailable atm, so if anyone wants to file a PR: you'd be a hero

from bezierjs.

Pomax avatar Pomax commented on September 13, 2024

test:

b = new Bezier(0,0,  0,0,  1,1);
r = b.reduce();

r will be an empty array. Note that this is a degenerate curve, and there are no degeneracy checks at the moment, which there really should be..

from bezierjs.

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.