Ticket #1710 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

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

badparabola.ggb (4.9 KB) - added by zbynek 4 months ago.

Change History

comment:1 Changed 4 months ago by zbynek

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

comment:2 Changed 4 months ago by michael

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.

Changed 4 months ago by zbynek

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.

comment:5 Changed 4 months ago by michael

Interesting. It's fine here in Java 1.7u2

Is the highlighting correct in OpenJDK7?

comment:6 Changed 3 months ago by zbynek

  • Status changed from new to closed
  • Progress (%) changed from 0 to 100
  • Resolution set to fixed

QuadTo replaced with CurveTo in and it seems that it works just OK.

Note: See TracTickets for help on using tickets.