Giter Site home page Giter Site logo

minimator's People

Contributors

maxwellito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

minimator's Issues

Touch targets are offset on iPhone 12

Steps to reproduce:

  1. Create a 10x10 canvas
  2. Draw with finger. The dot selected as the starting point will be five to seven dots directly below your finger.

Arcs are not very “arc-ish”

(Assuming you are not intentionally making the arcs to be not “arc-ish”…)

Like many other graphing programs, Minimator is using Bézier curves to simulate arcs. However the current implementation is not very good, namely if you put 4 such arcs together, they don’t form a good circle. Here I propose to use the method in this doc to do that. This should be very easy to implement: just change the number representing the relative position of the two control points. In the following graph:

detail

Suppose the radius of the arc is 1, then with the current implementation, x = 0.5. According to the doc I linked, a good number for x is 4/3 * tan(π/8) ≈ 0.55228.

I tried this out and made the following graph:

test

The red circle is the current implementation; the green circle is the improved implementation using the proposed number. The black circles are “true circles” drawn with the circle tag (in quotation marks because the browser may use Bézier curves to implement circle). As you can see, the red circle deviates significantly from the black circle, while the green circle follows it very well (in fact if I made them the same stroke width they are indistinguishable).

Application consistently fails to reload

Minimator worked well the first time I used it in Brave (Chromium spinoff), but after closing it and reloading the page, it now gets stuck on the "Please wait, it's loading" screen.

Checking the developer console, this seems to be caused by issues loading client side data:

storage.js:36 Uncaught Error: Couldn't retrieve the item 1 from LocalStorage.
at Storage.getItem (storage.js:36)
at new HomeCardComponent (home-card.cmp.js:65)
at home.cmp.js:37
at Array.forEach ()
at new HomeComponent (home.cmp.js:36)
at Router.appRouter.onChange (main.js:44)
at Router.hashChange (router.js:35)
at main.js:57

If I switch the browser to incognito mode it works fine, if I switch to another browser it works fine.

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.