Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib-es5/utils/encoding/encodeDoubleArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.<string>>} 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.
*/
Expand Down
8 changes: 5 additions & 3 deletions lib-es5/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(/^!.+!$/)) {
Expand Down
2 changes: 1 addition & 1 deletion lib-es5/utils/parsing/toArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down