MCPcopy Create free account
hub / github.com/microsoft/SandDance / scale$1

Function scale$1

docs/app/js/sanddance-app.js:121305–121319  ·  view source on GitHub ↗
(current, sX, sY)

Source from the content-addressed store, hash-verified

121303 0
121304];
121305function scale$1(current, sX, sY) {
121306 const c = temp[0] = current[0];
121307 if (c === "a" || c === "A") {
121308 temp[1] = sX * current[1];
121309 temp[2] = sY * current[2];
121310 temp[3] = current[3];
121311 temp[4] = current[4];
121312 temp[5] = current[5];
121313 temp[6] = sX * current[6];
121314 temp[7] = sY * current[7];
121315 } else if (c === "h" || c === "H") temp[1] = sX * current[1];
121316 else if (c === "v" || c === "V") temp[1] = sY * current[1];
121317 else for(var i = 1, n = current.length; i < n; ++i)temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
121318 return temp;
121319}
121320function pathRender(context1, path2, l, t, sX, sY) {
121321 var current, // current instruction
121322 previous = null, x4 = 0, // current x

Callers 1

pathRenderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected