From c3702e57c9ea31967680884c3edb8d6e0c0e9bc1 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Fri, 22 Dec 2023 12:05:47 -0500 Subject: [PATCH] updated documentation --- docs/index.html | 68 +++++++++++++++++++++++++++++++++++++++++ modules-examples/tp1.js | 5 ++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index dd9daee..0da4fa6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -356,6 +356,12 @@ #setColor +
  • + #setCenter +
  • +
  • @@ -2725,6 +2731,68 @@ de l'id. + + + + + +
    +
    +
    + ▸ + setCenter(center) +
    +
    + diff --git a/modules-examples/tp1.js b/modules-examples/tp1.js index 6be34e3..ac94374 100644 --- a/modules-examples/tp1.js +++ b/modules-examples/tp1.js @@ -89,6 +89,9 @@ export class Circle{ this.#color = color; } + /** + * @param {Point} center, le nouveau centre du cercle. + */ setCenter(center){ this.#center = center; } @@ -210,4 +213,4 @@ export function populateTable(node, export function randomColor(i){ const base = (i % 256).toString(16); return `${base}${base}${base}` -} \ No newline at end of file +}