MCPcopy Index your code
hub / github.com/clips/pattern / beginclip

Function beginclip

pattern/canvas.js:1880–1888  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

1878/*--- CLIPPING PATH --------------------------------------------------------------------------------*/
1879
1880function beginclip(path) {
1881 /* Enables the given Path as a clipping mask.
1882 Drawing commands between beginclip() and endclip() are constrained to the shape of the path.
1883 */
1884 push();
1885 path._clip = true;
1886 drawpath(path);
1887 path._clip = false;
1888}
1889
1890function endclip() {
1891 pop();

Callers

nothing calls this directly

Calls 2

pushFunction · 0.85
drawpathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…