Closed Bug 1847025 Opened 2 years ago Closed 2 years ago

Canvas arc is drawn incorrectly

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1846613
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox116 --- fixed
firefox117 --- fixed
firefox118 --- fixed

People

(Reporter: marcelionis, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Steps to reproduce:

I draw a simple arc which should be anticlockwise, but the arc is draw clockwise. This happens with specific angles only. Here is a code:

var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");

ctx.beginPath();
ctx.strokeStyle = "#FF6600";
ctx.lineWidth = 1;

var x = 200;
var y = 150;

ctx.arc(x, y, 90, -Math.PI/2, Math.PI/2, true);

ctx.stroke();

codepen:
https://codepen.io/team/amcharts/pen/JjexzYj/27840821bead34e7d21c04d8143aef8f?editors=1010

Actual results:

Arc is drawn to a wrong side (other browsers do it correctly).

Expected results:

The arc should be to the left.

Status: UNCONFIRMED → NEW
Ever confirmed: true

:jrmuizel, since you are the author of the regressor, bug 1839470, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmuizelaar)
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1846613
Flags: needinfo?(jmuizelaar)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.