* Get the unit to add to a unitless number based on the normalization used.
(fn)
| 1414 | * Get the unit to add to a unitless number based on the normalization used. |
| 1415 | */ |
| 1416 | function getNormalizationUnit(fn) { |
| 1417 | for (var unit in NormalizationUnits) { |
| 1418 | if (NormalizationUnits[unit].includes(fn)) { |
| 1419 | return unit; |
| 1420 | } |
| 1421 | } |
| 1422 | return ""; |
| 1423 | } |
| 1424 | /** |
| 1425 | * Get the normalization for an element and propertyName combination. This |
| 1426 | * value should be cached at asking time, as it may change if the user adds |