Ticket #1710 (closed defect: fixed)
Parabola is not drawn with enough lines
| Reported by: | michael | Owned by: | gabor |
|---|---|---|---|
| Priority: | minor | Milestone: | GeoGebraWeb Alpha 3 |
| Component: | General | Keywords: | |
| Cc: | zbynek | Estimate (h): | 0 |
| Progress (%): | 100 |
Description
http://www.geogebra.org/web/test42/?f=_conics.ggb
In Chrome, you can see the lines of the parabola (ie should be drawn with more, shorter lines)
In Firefox it's fine.
Attachments
Change History
comment:2 Changed 4 months ago by michael
Looks like it might still be split up into sections (?)
http://www.geogebra.org/trac/browser/trunk/geogebra/web/src/geogebra/web/kernel/gawt/QuadCurve2D.java
comment:3 Changed 4 months ago by zbynek
It looks like Chrome was using lineTo instead of quadraticCurveTo. If you highlight the parabola, it is drawn without problems. So is the problem caused by selected stroke? Also I'm getting a lot of these:
[WARN] [web] - Something other than an int was returned from JSNI method '@…$ClientRect::getLeft()': Rounding double (10.416666030883789) to int for int
when opening _conics.ggb in Chrome.
comment:4 Changed 4 months ago by zbynek
In the attached file, one of the parabolas is drawn incorrectly in the same way in Desktop too. At least here (OpenJDK java 7). Both 4.0.20 (eclipse) and trunk.

Actually we use quadraticCurveTo: http://www.w3schools.com/html5/canvas_quadraticcurveto.asp -- so the number of parts should not be important.