Skip to content

Commit

Permalink
Improve type doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 5, 2023
1 parent a4fd372 commit 9592c8a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/math/circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ export class Circle {
/**
* Quantify an circle according to view information.
*
* @param {ViewController} viewController The associated view
* controller.
* @param {Array} flags A list of stat values to calculate.
* @param {ViewController} viewController The associated view controller.
* @param {string[]} flags A list of stat values to calculate.
* @returns {object} A quantification object.
*/
quantify(viewController, flags) {
Expand Down
5 changes: 2 additions & 3 deletions src/math/ellipse.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ export class Ellipse {
/**
* Quantify an ellipse according to view information.
*
* @param {ViewController} viewController The associated view
* controller.
* @param {Array} flags A list of stat values to calculate.
* @param {ViewController} viewController The associated view controller.
* @param {string[]} flags A list of stat values to calculate.
* @returns {object} A quantification object.
*/
quantify(viewController, flags) {
Expand Down
7 changes: 6 additions & 1 deletion src/math/line.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import {Point2D} from './point';
import {i18n} from '../utils/i18n';

// doc imports
/* eslint-disable no-unused-vars */
import {ViewController} from '../app/viewController';
/* eslint-enable no-unused-vars */

/**
* Line shape.
*/
Expand Down Expand Up @@ -157,7 +162,7 @@ export class Line {
/**
* Quantify a line according to view information.
*
* @param {object} viewController The associated view controller.
* @param {ViewController} viewController The associated view controller.
* @returns {object} A quantification object.
*/
quantify(viewController) {
Expand Down
9 changes: 7 additions & 2 deletions src/math/rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import {Point2D} from './point';
import {getStats} from './stats';
import {i18n} from '../utils/i18n';

// doc imports
/* eslint-disable no-unused-vars */
import {ViewController} from '../app/viewController';
/* eslint-enable no-unused-vars */

/**
* Mulitply the three inputs if the last two are not null.
*
Expand Down Expand Up @@ -160,8 +165,8 @@ export class Rectangle {
/**
* Quantify a rectangle according to view information.
*
* @param {object} viewController The associated view controller.
* @param {Array} flags A list of stat values to calculate.
* @param {ViewController} viewController The associated view controller.
* @param {string[]} flags A list of stat values to calculate.
* @returns {object} A quantification object.
*/
quantify(viewController, flags) {
Expand Down

0 comments on commit 9592c8a

Please sign in to comment.