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

Function clip

docs/app/js/sanddance-app.js:122513–122521  ·  view source on GitHub ↗
(context38, scene)

Source from the content-addressed store, hash-verified

122511}
122512var area = markMultiItemPath("area", area$1, pickArea);
122513function clip(context38, scene) {
122514 var clip2 = scene.clip;
122515 context38.save();
122516 if ((0, _vegaUtil.isFunction)(clip2)) {
122517 context38.beginPath();
122518 clip2(context38);
122519 context38.clip();
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);

Callers 2

drawFunction · 0.70
parseMarkFunction · 0.70

Calls 3

clipGroupFunction · 0.70
paramFunction · 0.70
saveMethod · 0.65

Tested by

no test coverage detected