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

Function rectanglePath

docs/app/js/sanddance-app.js:122562–122566  ·  view source on GitHub ↗
(context40, group3, x31, y30)

Source from the content-addressed store, hash-verified

122560 return bounds7.translate(group2.x || 0, group2.y || 0);
122561}
122562function rectanglePath(context40, group3, x31, y30) {
122563 const off = offset$1(group3);
122564 context40.beginPath();
122565 rectangle(context40, group3, (x31 || 0) + off, (y30 || 0) + off);
122566}
122567const hitBackground = hitPath(rectanglePath);
122568const hitForeground = hitPath(rectanglePath, false);
122569const hitCorner = hitPath(rectanglePath, true);

Callers 1

draw$4Function · 0.70

Calls 2

offset$1Function · 0.70
rectangleFunction · 0.70

Tested by

no test coverage detected