Harmonize jsdoc
This commit is contained in:
@@ -352,7 +352,7 @@ export function measureTextWidth(font, text) {
|
||||
* @param {string} font The font.
|
||||
* @param {string} text The text to measure.
|
||||
* @param {Object<string, number>} cache A lookup of cached widths by text.
|
||||
* @returns {number} The text width.
|
||||
* @return {number} The text width.
|
||||
*/
|
||||
export function measureAndCacheTextWidth(font, text, cache) {
|
||||
if (text in cache) {
|
||||
|
||||
@@ -379,7 +379,7 @@ const circlePixelIndexArrayCache = {};
|
||||
* ordered by how close they are to the center.
|
||||
* A cache is used to increase performance.
|
||||
* @param {number} radius Radius.
|
||||
* @returns {Array<number>} An array with indexes within a circle.
|
||||
* @return {Array<number>} An array with indexes within a circle.
|
||||
*/
|
||||
export function getPixelIndexArray(radius) {
|
||||
if (circlePixelIndexArrayCache[radius] !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user