From e912f7694532795a458ae7986fc2c177158cfbdf Mon Sep 17 00:00:00 2001 From: Raya Straus Date: Sun, 31 Jan 2021 09:35:17 +0200 Subject: [PATCH] add missing esy compiled files --- lib-es5/utils/encoding/encodeDoubleArray.js | 2 +- lib-es5/utils/index.js | 8 +++++--- lib-es5/utils/parsing/toArray.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib-es5/utils/encoding/encodeDoubleArray.js b/lib-es5/utils/encoding/encodeDoubleArray.js index 45db6ecf..56f967f6 100644 --- a/lib-es5/utils/encoding/encodeDoubleArray.js +++ b/lib-es5/utils/encoding/encodeDoubleArray.js @@ -5,7 +5,7 @@ var toArray = require('../parsing/toArray'); /** * Serialize an array of arrays into a string - * @param {[]|[[]]} array - An array of arrays. + * @param {string[] | Array.>} array - An array of arrays. * If the first element is not an array the argument is wrapped in an array. * @returns {string} A string representation of the arrays. */ diff --git a/lib-es5/utils/index.js b/lib-es5/utils/index.js index 519b8425..6444d3d9 100644 --- a/lib-es5/utils/index.js +++ b/lib-es5/utils/index.js @@ -135,9 +135,11 @@ function textStyle(layer) { } /** - * Normalize an offset value - * @param {String} expression a decimal value which may have a 'p' or '%' postfix. E.g. '35%', '0.4p' - * @return {Object|String} a normalized String of the input value if possible otherwise the value itself + * Normalize an expression string, replace "nice names" with their coded values and spaces with "_" + * e.g. `width > 0` => `w_lt_0` + * + * @param {String} expression An expression to be normalized + * @return {Object|String} A normalized String of the input value if possible otherwise the value itself */ function normalize_expression(expression) { if (!isString(expression) || expression.length === 0 || expression.match(/^!.+!$/)) { diff --git a/lib-es5/utils/parsing/toArray.js b/lib-es5/utils/parsing/toArray.js index f35b7863..abb60202 100644 --- a/lib-es5/utils/parsing/toArray.js +++ b/lib-es5/utils/parsing/toArray.js @@ -5,7 +5,7 @@ var isArray = require('lodash/isArray'); /** * @desc Turns arguments that aren't arrays into arrays * @param arg - * @returns {*[]|*} + * @returns { any | any[] } */ function toArray(arg) { switch (true) {