Convert a pixel string to number.
We accept a number or a string like '123px'. If undefined, the first default
value that is a number or a string ending with 'px' is returned.
Example:
letx = undefined; lety = "123px"; constwidth = util.toPixel(x, y, 100); // returns 123
Convert a pixel string to number. We accept a number or a string like '123px'. If undefined, the first default value that is a number or a string ending with 'px' is returned.
Example: