(value: number | string, dimension: number)
| 89 | : +value / dimension; |
| 90 | |
| 91 | export const toDimension = (value: number | string, dimension: number) => |
| 92 | typeof value === 'string' && value.endsWith('%') ? |
| 93 | parseFloat(value) / 100 * dimension |
| 94 | : +value; |
| 95 | |
| 96 | /** |
| 97 | * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the |