MCPcopy Index your code
hub / github.com/microsoft/SandDance / scaleY

Function scaleY

docs/app/js/sanddance-app.js:59448–59450  ·  view source on GitHub ↗
(y, ratio, height, yInvert)

Source from the content-addressed store, hash-verified

59446 return r;
59447}
59448function scaleY(y, ratio, height, yInvert) {
59449 return yInvert ? Math.max(0, height - 1 - Math.round(y * ratio)) : Math.min(Math.round(y * ratio), height - 1);
59450}
59451
59452},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"g6G3D":[function(require,module,exports) {
59453var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 2

scalePixelsFunction · 0.70
sampleCurveFunction · 0.70

Calls 2

maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected