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 +}