From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- .../accelerationincludinggravity/index.html | 71 ------------------- .../accelerationincludinggravity/index.md | 71 +++++++++++++++++++ .../devicemotionevent/devicemotionevent/index.html | 56 --------------- .../devicemotionevent/devicemotionevent/index.md | 56 +++++++++++++++ files/fr/web/api/devicemotionevent/index.html | 82 ---------------------- files/fr/web/api/devicemotionevent/index.md | 82 ++++++++++++++++++++++ .../web/api/devicemotionevent/interval/index.html | 51 -------------- .../fr/web/api/devicemotionevent/interval/index.md | 51 ++++++++++++++ .../api/devicemotionevent/rotationrate/index.html | 72 ------------------- .../api/devicemotionevent/rotationrate/index.md | 72 +++++++++++++++++++ 10 files changed, 332 insertions(+), 332 deletions(-) delete mode 100644 files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.html create mode 100644 files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.md delete mode 100644 files/fr/web/api/devicemotionevent/devicemotionevent/index.html create mode 100644 files/fr/web/api/devicemotionevent/devicemotionevent/index.md delete mode 100644 files/fr/web/api/devicemotionevent/index.html create mode 100644 files/fr/web/api/devicemotionevent/index.md delete mode 100644 files/fr/web/api/devicemotionevent/interval/index.html create mode 100644 files/fr/web/api/devicemotionevent/interval/index.md delete mode 100644 files/fr/web/api/devicemotionevent/rotationrate/index.html create mode 100644 files/fr/web/api/devicemotionevent/rotationrate/index.md (limited to 'files/fr/web/api/devicemotionevent') diff --git a/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.html b/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.html deleted file mode 100644 index 64ab8dff1d..0000000000 --- a/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.html +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: DeviceMotionEvent.accelerationIncludingGravity -slug: Web/API/DeviceMotionEvent/accelerationIncludingGravity -tags: - - API - - Appareil - - Mobile - - Mouvement - - Orientation - - Propriétés - - axes -translation_of: Web/API/DeviceMotionEvent/accelerationIncludingGravity ---- -

{{ ApiRef("Device Orientation Events") }}

- -

La propriété accelerationIncludingGravity renvoie la valeur d'accélération enregistrée par l'appareil, en mètres par seconde au carré (m/s2). Contrairement à  {{domxref("DeviceMotionEvent.acceleration")}} qui compense pour tenir compte de l'influence de la gravité, sa valeur est la somme de l'accélération de l'appareil induite par l'utilisateur et de celle provoquée par la gravité.

- -

Cette valeur n'est pas  aussi utile que {{domxref("DeviceMotionEvent.acceleration")}}, mais elle peut être la seule disponible, par exemple pour un appareil qui ne peut supprimer la gravité des données d'accélération puisqu'il ne l'utilise pas, comme les périphériques sans gyroscope.

- -

Syntaxe

- -
var acceleration = instanceOfDeviceMotionEvent.accelerationIncludingGravity;
-
- -

Valeur

- -

La propriété accelerationIncludingGravity est un objet fournissant une information sur l'accélération des 3 axes. Pour chacun d'eux, elle est représentée par leur propre propriété :

- -
-
x
-
Représente l'accélération sur l'axe x qui est l'axe est-ouest.
-
y
-
Représente l'accélération sur l'axe y qui est l'axe nord-sud
-
z
-
Représente l'accélération sur l'axe z qui est l'axe haut-bas
-
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

{{Compat("api.DeviceMotionEvent.accelerationIncludingGravity")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.md b/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.md new file mode 100644 index 0000000000..64ab8dff1d --- /dev/null +++ b/files/fr/web/api/devicemotionevent/accelerationincludinggravity/index.md @@ -0,0 +1,71 @@ +--- +title: DeviceMotionEvent.accelerationIncludingGravity +slug: Web/API/DeviceMotionEvent/accelerationIncludingGravity +tags: + - API + - Appareil + - Mobile + - Mouvement + - Orientation + - Propriétés + - axes +translation_of: Web/API/DeviceMotionEvent/accelerationIncludingGravity +--- +

{{ ApiRef("Device Orientation Events") }}

+ +

La propriété accelerationIncludingGravity renvoie la valeur d'accélération enregistrée par l'appareil, en mètres par seconde au carré (m/s2). Contrairement à  {{domxref("DeviceMotionEvent.acceleration")}} qui compense pour tenir compte de l'influence de la gravité, sa valeur est la somme de l'accélération de l'appareil induite par l'utilisateur et de celle provoquée par la gravité.

+ +

Cette valeur n'est pas  aussi utile que {{domxref("DeviceMotionEvent.acceleration")}}, mais elle peut être la seule disponible, par exemple pour un appareil qui ne peut supprimer la gravité des données d'accélération puisqu'il ne l'utilise pas, comme les périphériques sans gyroscope.

+ +

Syntaxe

+ +
var acceleration = instanceOfDeviceMotionEvent.accelerationIncludingGravity;
+
+ +

Valeur

+ +

La propriété accelerationIncludingGravity est un objet fournissant une information sur l'accélération des 3 axes. Pour chacun d'eux, elle est représentée par leur propre propriété :

+ +
+
x
+
Représente l'accélération sur l'axe x qui est l'axe est-ouest.
+
y
+
Représente l'accélération sur l'axe y qui est l'axe nord-sud
+
z
+
Représente l'accélération sur l'axe z qui est l'axe haut-bas
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.DeviceMotionEvent.accelerationIncludingGravity")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/api/devicemotionevent/devicemotionevent/index.html b/files/fr/web/api/devicemotionevent/devicemotionevent/index.html deleted file mode 100644 index c8fa453f7e..0000000000 --- a/files/fr/web/api/devicemotionevent/devicemotionevent/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: DeviceMotionEvent.DeviceMotionEvent() -slug: Web/API/DeviceMotionEvent/DeviceMotionEvent -tags: - - API - - Constructeurs - - Mobile - - Mouvement - - Orientation - - axes -translation_of: Web/API/DeviceMotionEvent/DeviceMotionEvent ---- -

{{APIRef("Device Orientation Events")}}{{Non-standard_header}}

- -

Le constructeur DeviceMotionEvent crée un nouveau {{domxref("DeviceMotionEvent")}}.

- -

Syntaxe

- -
var deviceMotionEvent = new DeviceMotionEvent(type[, options])
- -

Paramètres

- -
-
type
-
Doit être "devicemotion".
-
options {{optional_inline}}
-

Les options sont les suivantes :

-
    -
  • acceleration : un  objet donnant l'accélération de l'appareil sur les 3 axes X, Y et Z. L'accélération est exprimée en m/s2.
  • -
  • accelerationIncludingGravity : un objet donnant l'accélération de l'appareil sur les 3 axes X, Y et Z avec l'effet de la gravité. L'accélération est exprimée en m/s2.
  • -
  • rotationRate : un objet donnant la vitesse de rotation du changement d'orientation de l'appareil sur les axes alpha, beta et gamma. La vitesse de rotation est exprimée en degrés par seconde.
  • -
  • interval : Un nombre représentant l'intervalle de temps, en millisecondes, avant d'obtenir des données à partir de l'appareil.
  • -
-
-
- -

Spécifications

- - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

{{Compat("api.DeviceMotionEvent.DeviceMotionEvent")}}

diff --git a/files/fr/web/api/devicemotionevent/devicemotionevent/index.md b/files/fr/web/api/devicemotionevent/devicemotionevent/index.md new file mode 100644 index 0000000000..c8fa453f7e --- /dev/null +++ b/files/fr/web/api/devicemotionevent/devicemotionevent/index.md @@ -0,0 +1,56 @@ +--- +title: DeviceMotionEvent.DeviceMotionEvent() +slug: Web/API/DeviceMotionEvent/DeviceMotionEvent +tags: + - API + - Constructeurs + - Mobile + - Mouvement + - Orientation + - axes +translation_of: Web/API/DeviceMotionEvent/DeviceMotionEvent +--- +

{{APIRef("Device Orientation Events")}}{{Non-standard_header}}

+ +

Le constructeur DeviceMotionEvent crée un nouveau {{domxref("DeviceMotionEvent")}}.

+ +

Syntaxe

+ +
var deviceMotionEvent = new DeviceMotionEvent(type[, options])
+ +

Paramètres

+ +
+
type
+
Doit être "devicemotion".
+
options {{optional_inline}}
+

Les options sont les suivantes :

+
    +
  • acceleration : un  objet donnant l'accélération de l'appareil sur les 3 axes X, Y et Z. L'accélération est exprimée en m/s2.
  • +
  • accelerationIncludingGravity : un objet donnant l'accélération de l'appareil sur les 3 axes X, Y et Z avec l'effet de la gravité. L'accélération est exprimée en m/s2.
  • +
  • rotationRate : un objet donnant la vitesse de rotation du changement d'orientation de l'appareil sur les axes alpha, beta et gamma. La vitesse de rotation est exprimée en degrés par seconde.
  • +
  • interval : Un nombre représentant l'intervalle de temps, en millisecondes, avant d'obtenir des données à partir de l'appareil.
  • +
+
+
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.DeviceMotionEvent.DeviceMotionEvent")}}

diff --git a/files/fr/web/api/devicemotionevent/index.html b/files/fr/web/api/devicemotionevent/index.html deleted file mode 100644 index 259f1c68b0..0000000000 --- a/files/fr/web/api/devicemotionevent/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: DeviceMotionEvent -slug: Web/API/DeviceMotionEvent -tags: - - API - - Device Orientation - - Experimental - - Firefox OS - - Mobile - - Motion - - Orientation - - TopicStub -translation_of: Web/API/DeviceMotionEvent ---- -

{{apiref("Device Orientation Events")}}{{SeeCompatTable}}

- -

Résumé

- -

DeviceMotionEvent fournit aux développeurs Web des informations sur la vitesse des changements de position et d'orientation de l'appareil.

- -
-

Attention : Actuellement, Firefox et Chrome ne gèrent pas les coordonnées de la même manière. Faites attention à cela lorsque vous les utilisez.

-
- -

Constructeur

- -
-
{{domxref("DeviceMotionEvent.DeviceMotionEvent","DeviceMotionEvent.DeviceMotionEvent()")}}
-

Crée un nouvel DeviceMotionEvent.

-
- -

Propriétés

- -
-
{{domxref("DeviceMotionEvent.acceleration")}} {{readonlyinline}}
-
Un objet donnant l'accélération du dispositif sur les trois axes X, Y et Z. L'accélération est exprimée en m/s2.
-
{{domxref("DeviceMotionEvent.accelerationIncludingGravity")}} {{readonlyinline}}
-
Un objet donnant l'accélération de l'appareil sur les trois axes X, Y et Z avec l'effet de la gravité. L'accélération est exprimée en m/s2.
-
{{domxref("DeviceMotionEvent.rotationRate")}} {{readonlyinline}}
-
Un objet donnant le taux de changement d'orientation de l'appareil sur les trois axes d'orientation alpha, bêta et gamma. Le taux de rotation est exprimé en degrés par seconde.
-
{{domxref("DeviceMotionEvent.interval")}} {{readonlyinline}}
-
Nombre représentant l'intervalle de temps, en millisecondes, auquel les données sont obtenues à partir de l'appareil.
-
- -

Exemple

- -
window.addEventListener('devicemotion', function(event) {
-  console.log(event.acceleration.x + ' m/s2');
-});
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

{{Compat("api.DeviceMotionEvent")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/devicemotionevent/index.md b/files/fr/web/api/devicemotionevent/index.md new file mode 100644 index 0000000000..259f1c68b0 --- /dev/null +++ b/files/fr/web/api/devicemotionevent/index.md @@ -0,0 +1,82 @@ +--- +title: DeviceMotionEvent +slug: Web/API/DeviceMotionEvent +tags: + - API + - Device Orientation + - Experimental + - Firefox OS + - Mobile + - Motion + - Orientation + - TopicStub +translation_of: Web/API/DeviceMotionEvent +--- +

{{apiref("Device Orientation Events")}}{{SeeCompatTable}}

+ +

Résumé

+ +

DeviceMotionEvent fournit aux développeurs Web des informations sur la vitesse des changements de position et d'orientation de l'appareil.

+ +
+

Attention : Actuellement, Firefox et Chrome ne gèrent pas les coordonnées de la même manière. Faites attention à cela lorsque vous les utilisez.

+
+ +

Constructeur

+ +
+
{{domxref("DeviceMotionEvent.DeviceMotionEvent","DeviceMotionEvent.DeviceMotionEvent()")}}
+

Crée un nouvel DeviceMotionEvent.

+
+ +

Propriétés

+ +
+
{{domxref("DeviceMotionEvent.acceleration")}} {{readonlyinline}}
+
Un objet donnant l'accélération du dispositif sur les trois axes X, Y et Z. L'accélération est exprimée en m/s2.
+
{{domxref("DeviceMotionEvent.accelerationIncludingGravity")}} {{readonlyinline}}
+
Un objet donnant l'accélération de l'appareil sur les trois axes X, Y et Z avec l'effet de la gravité. L'accélération est exprimée en m/s2.
+
{{domxref("DeviceMotionEvent.rotationRate")}} {{readonlyinline}}
+
Un objet donnant le taux de changement d'orientation de l'appareil sur les trois axes d'orientation alpha, bêta et gamma. Le taux de rotation est exprimé en degrés par seconde.
+
{{domxref("DeviceMotionEvent.interval")}} {{readonlyinline}}
+
Nombre représentant l'intervalle de temps, en millisecondes, auquel les données sont obtenues à partir de l'appareil.
+
+ +

Exemple

+ +
window.addEventListener('devicemotion', function(event) {
+  console.log(event.acceleration.x + ' m/s2');
+});
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.DeviceMotionEvent")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/api/devicemotionevent/interval/index.html b/files/fr/web/api/devicemotionevent/interval/index.html deleted file mode 100644 index 65ff85c399..0000000000 --- a/files/fr/web/api/devicemotionevent/interval/index.html +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: DeviceMotionEvent.interval -slug: Web/API/DeviceMotionEvent/interval -tags: - - API - - Propriété - - Reference -translation_of: Web/API/DeviceMotionEvent/interval ---- -

{{apiref("Device Orientation Events")}}

- -

La propriété interval renvoie la granularité temporelle, exprimée en millisecondes, avec laquelle les données relatives aux mouvements sont obtenues du matériel.

- -

Syntaxe

- -
var interval = instanceOfDeviceMotionEvent.interval;
-
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}} 
- -

Compatibilité des navigateurs

- -

{{Compat("api.DeviceMotionEvent.interval")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/devicemotionevent/interval/index.md b/files/fr/web/api/devicemotionevent/interval/index.md new file mode 100644 index 0000000000..65ff85c399 --- /dev/null +++ b/files/fr/web/api/devicemotionevent/interval/index.md @@ -0,0 +1,51 @@ +--- +title: DeviceMotionEvent.interval +slug: Web/API/DeviceMotionEvent/interval +tags: + - API + - Propriété + - Reference +translation_of: Web/API/DeviceMotionEvent/interval +--- +

{{apiref("Device Orientation Events")}}

+ +

La propriété interval renvoie la granularité temporelle, exprimée en millisecondes, avec laquelle les données relatives aux mouvements sont obtenues du matériel.

+ +

Syntaxe

+ +
var interval = instanceOfDeviceMotionEvent.interval;
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}} 
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.DeviceMotionEvent.interval")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/api/devicemotionevent/rotationrate/index.html b/files/fr/web/api/devicemotionevent/rotationrate/index.html deleted file mode 100644 index d12e2c76d7..0000000000 --- a/files/fr/web/api/devicemotionevent/rotationrate/index.html +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: DeviceMotionEvent.rotationRate -slug: Web/API/DeviceMotionEvent/rotationRate -tags: - - API - - DOM - - Mobile - - Orientation - - Propriété - - Vitesse -translation_of: Web/API/DeviceMotionEvent/rotationRate ---- -

{{ ApiRef("Device Orientation Events") }}

- -

La propriété rotationRate renvoie la vitesse de rotation de l'appareil autour de chacun de ses axes en degrés par seconde.

- -
-

Note : Si le matériel n'est pas capable de fournir cette information, la propriété renvoie null.

-
- -

Syntaxe

- -
var rates = instanceOfDeviceMotionEvent.rotationRate;
-
- -

Valeurs

- -

La propriété rotationRates est un objet en lecture seule décrivant la vitesse de rotation d'un appareil autour de chacun de ses axes :

- -
-
alpha
-
La vitesse de rotation de l'appareil sur son axe Z ; c'est-à-dire déplacé autour d'une ligne perpendiculaire à l'écran.
-
beta
-
La vitesse de rotation de l'appareil sur son axe X ; c'est-à-dire de l'avant vers l'arrière.
-
gamma
-
La vitesse de rotation de l'appareil sur son axe Y ; c'est-à-dire d'un côté à l'autre.
-
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

{{Compat("api.DeviceMotionEvent.rotationRate")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/devicemotionevent/rotationrate/index.md b/files/fr/web/api/devicemotionevent/rotationrate/index.md new file mode 100644 index 0000000000..d12e2c76d7 --- /dev/null +++ b/files/fr/web/api/devicemotionevent/rotationrate/index.md @@ -0,0 +1,72 @@ +--- +title: DeviceMotionEvent.rotationRate +slug: Web/API/DeviceMotionEvent/rotationRate +tags: + - API + - DOM + - Mobile + - Orientation + - Propriété + - Vitesse +translation_of: Web/API/DeviceMotionEvent/rotationRate +--- +

{{ ApiRef("Device Orientation Events") }}

+ +

La propriété rotationRate renvoie la vitesse de rotation de l'appareil autour de chacun de ses axes en degrés par seconde.

+ +
+

Note : Si le matériel n'est pas capable de fournir cette information, la propriété renvoie null.

+
+ +

Syntaxe

+ +
var rates = instanceOfDeviceMotionEvent.rotationRate;
+
+ +

Valeurs

+ +

La propriété rotationRates est un objet en lecture seule décrivant la vitesse de rotation d'un appareil autour de chacun de ses axes :

+ +
+
alpha
+
La vitesse de rotation de l'appareil sur son axe Z ; c'est-à-dire déplacé autour d'une ligne perpendiculaire à l'écran.
+
beta
+
La vitesse de rotation de l'appareil sur son axe X ; c'est-à-dire de l'avant vers l'arrière.
+
gamma
+
La vitesse de rotation de l'appareil sur son axe Y ; c'est-à-dire d'un côté à l'autre.
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.DeviceMotionEvent.rotationRate")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf