MCPcopy Create free account
hub / github.com/dashnowords/imfe / getNormalizationUnit

Function getNormalizationUnit

chapter17/velocity.js:1416–1423  ·  view source on GitHub ↗

* Get the unit to add to a unitless number based on the normalization used.

(fn)

Source from the content-addressed store, hash-verified

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

Callers 1

velocity.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected