From 6772831200d14c2436aea2d0c837f40dbf12156f Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Sun, 26 Sep 2021 13:11:47 +0200 Subject: Prepare Web API section for Markdown conversion (#2464) * Remove summary classes and ids * Remove unecessary hidden * Remove useless span filled with useless attributes / ids * Remove useless font * Remove notranslate * Remove id in other elements than headings * Remove name attributes * Remove
 for JS w/ language-js class

* Remove 
 for HTML w/ language-html class

* Remove 
 for other lang w/ language-* class

* Rm highlighted line in code samples

* fix links, internal, external, absolute URLs

* missing file from last commit

* Fix styles errors apart from table + some classes

* Fix notes and warnings (+ some other :x)

* fix typo during merge which broke a doc

* aand forgot a conflict

* fix remaining classes of errors except dls and images

* Fix dls

* Fix images (deki/mozillademos) and remaining style issues

* Remove script tag from svg file

* Remove script tag from svg fileS

* Compress SVG files for CI
---
 .../api/canvasrenderingcontext2d/arc/index.html    | 34 ++++-----
 .../canvasrenderingcontext2d/beginpath/index.html  | 12 ++--
 .../beziercurveto/index.html                       |  2 +-
 .../canvasrenderingcontext2d/clearrect/index.html  | 14 ++--
 .../canvasrenderingcontext2d/closepath/index.html  | 12 ++--
 .../createlineargradient/index.html                | 14 ++--
 .../canvasrenderingcontext2d/direction/index.html  | 12 ++--
 .../canvasrenderingcontext2d/drawimage/index.html  | 24 +++----
 .../canvasrenderingcontext2d/ellipse/index.html    | 12 ++--
 .../api/canvasrenderingcontext2d/fill/index.html   | 22 +++---
 .../canvasrenderingcontext2d/fillrect/index.html   | 14 ++--
 .../canvasrenderingcontext2d/fillstyle/index.html  | 19 +++--
 .../canvasrenderingcontext2d/filltext/index.html   | 12 ++--
 .../api/canvasrenderingcontext2d/font/index.html   | 12 ++--
 .../getimagedata/index.html                        | 10 +--
 .../globalalpha/index.html                         | 22 +++---
 .../globalcompositeoperation/index.html            |  2 +-
 .../imagesmoothingenabled/index.html               | 83 +++++++---------------
 .../fr/web/api/canvasrenderingcontext2d/index.html |  8 +--
 .../canvasrenderingcontext2d/linecap/index.html    | 22 +++---
 .../canvasrenderingcontext2d/linejoin/index.html   | 10 ++-
 .../api/canvasrenderingcontext2d/lineto/index.html | 12 ++--
 .../measuretext/index.html                         |  2 +-
 .../api/canvasrenderingcontext2d/moveto/index.html | 12 ++--
 .../quadraticcurveto/index.html                    |  6 +-
 .../api/canvasrenderingcontext2d/rect/index.html   | 12 ++--
 .../api/canvasrenderingcontext2d/rotate/index.html | 14 ++--
 .../api/canvasrenderingcontext2d/save/index.html   |  2 +-
 .../api/canvasrenderingcontext2d/scale/index.html  | 22 +++---
 .../setlinedash/index.html                         | 14 ++--
 .../settransform/index.html                        | 12 ++--
 .../api/canvasrenderingcontext2d/stroke/index.html | 12 ++--
 .../canvasrenderingcontext2d/strokerect/index.html | 14 ++--
 .../strokestyle/index.html                         | 20 +++---
 .../canvasrenderingcontext2d/stroketext/index.html | 12 ++--
 .../canvasrenderingcontext2d/textalign/index.html  | 12 ++--
 .../textbaseline/index.html                        | 12 ++--
 .../canvasrenderingcontext2d/transform/index.html  | 12 ++--
 .../canvasrenderingcontext2d/translate/index.html  | 14 ++--
 39 files changed, 238 insertions(+), 350 deletions(-)

(limited to 'files/fr/web/api/canvasrenderingcontext2d')

diff --git a/files/fr/web/api/canvasrenderingcontext2d/arc/index.html b/files/fr/web/api/canvasrenderingcontext2d/arc/index.html
index c0e3642253..d51cb083df 100644
--- a/files/fr/web/api/canvasrenderingcontext2d/arc/index.html
+++ b/files/fr/web/api/canvasrenderingcontext2d/arc/index.html
@@ -26,39 +26,38 @@ translation_of: Web/API/CanvasRenderingContext2D/arc
  
La position en y du centre de l'arc.
radius (rayon)
Le rayon de l'arc.
-
startAngle (angle départ)
+
startAngle (angle départ)
La valeur de l'angle avec laquelle démarre l'arc de cercle, mesurée dans le sens horaire à partir de l'axe x positif et exprimé en radians.
endAngle (angle fin)
La valeur de l'angle avec laquelle se finit l'arc de cercle, mesurée dans le sens horaire à partir de l'axe x positif et exprimé en radians.
-
anticlockwise (sens anti-horaire) {{optional_inline}}
+
anticlockwise (sens anti-horaire) {{optional_inline}}
Un {{jsxref("Booléen")}} facultatif qui, si à true(vrai), indique que l'arc sera dessiné dans le sens inverse des aiguilles d'une montre entre les deux angles. Par défaut, la valeur est le sens des aiguilles d'une montre.

Exemples

-

En utilisant la méthode arc 

+

En utilisant la méthode arc 

Voici un code simple permettant de dessiner un cercle .

HTML

-
<canvas id="canvas"></canvas>
+
<canvas id="canvas"></canvas>

JavaScript

-
var canvas = document.getElementById('canvas');
+
var canvas = document.getElementById('canvas');
 var ctx = canvas.getContext('2d');
 
 ctx.beginPath();
 ctx.arc(75, 75, 50, 0, 2 * Math.PI);
-ctx.stroke();
+ctx.stroke();

Modifiez le code ci-dessous et voyez les changements en direct sur le canvas :

-