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

Function clipGroup

docs/app/js/sanddance-app.js:122522–122526  ·  view source on GitHub ↗
(context39, group1)

Source from the content-addressed store, hash-verified

122520 } else clipGroup(context38, scene.group);
122521}
122522function clipGroup(context39, group1) {
122523 context39.beginPath();
122524 hasCornerRadius(group1) ? rectangle(context39, group1, 0, 0) : context39.rect(0, 0, group1.width || 0, group1.height || 0);
122525 context39.clip();
122526}
122527function offset$1(item) {
122528 const sw = value(item.strokeWidth, 1);
122529 return item.strokeOffset != null ? item.strokeOffset : item.stroke && sw > 0.5 && sw < 1.5 ? 0.5 - Math.abs(sw - 1) : 0;

Callers 2

clipFunction · 0.70
draw$4Function · 0.70

Calls 3

hasCornerRadiusFunction · 0.70
rectangleFunction · 0.70
rectMethod · 0.45

Tested by

no test coverage detected