... | ... | @@ -429,7 +429,11 @@ function sum(a, b) { |
|
|
```javascript
|
|
|
/**
|
|
|
* Class representing a dot.
|
|
|
* @typedef {Object} Dot
|
|
|
* @extends Point
|
|
|
*
|
|
|
* @property {number} x the x value
|
|
|
* @property {number} y the y value
|
|
|
*/
|
|
|
class Dot extends Point {
|
|
|
/**
|
... | ... | @@ -439,7 +443,9 @@ class Dot extends Point { |
|
|
* @param {number} width - The width of the dot, in pixels.
|
|
|
*/
|
|
|
constructor(x, y, width) {
|
|
|
// ...
|
|
|
this.x = x;
|
|
|
this.y = y;
|
|
|
...
|
|
|
}
|
|
|
|
|
|
/**
|
... | ... | |