MCPcopy Create free account
hub / github.com/microsoft/SandDance / rect

Function rect

docs/app/js/sanddance-app.js:122099–122109  ·  view source on GitHub ↗
(x21, y20, w3, h8)

Source from the content-addressed store, hash-verified

122097 moveTo: addpL,
122098 lineTo: addpL,
122099 rect (x21, y20, w3, h8) {
122100 if (rot) {
122101 addp(x21 + w3, y20);
122102 addp(x21 + w3, y20 + h8);
122103 addp(x21, y20 + h8);
122104 addpL(x21, y20);
122105 } else {
122106 add(x21 + w3, y20 + h8);
122107 addL(x21, y20);
122108 }
122109 },
122110 quadraticCurveTo (x1, y1, x2, y2) {
122111 const px1 = px(x1, y1), py1 = py(x1, y1), px2 = px(x2, y2), py2 = py(x2, y2);
122112 quadExtrema(lx, px1, px2, addX);

Callers

nothing calls this directly

Calls 4

addpFunction · 0.70
addpLFunction · 0.70
addFunction · 0.70
addLFunction · 0.70

Tested by

no test coverage detected