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

Function pop

pattern/canvas.js:1194–1206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1192}
1193
1194function pop() {
1195 /* Pops the transformation state.
1196 * This reverts the transformation to before the last push().
1197 */
1198 _ctx.restore();
1199 // Do not reset the color state:
1200 if (_ctx.state._fill) {
1201 _ctx.fillStyle = _ctx.state._fill;
1202 }
1203 if (_ctx.state._stroke) {
1204 _ctx.strokeStyle = _ctx.state._stroke;
1205 }
1206}
1207
1208function translate(x, y) {
1209 /* By default, the origin of the layer or canvas is at the bottom left.

Callers 3

endclipFunction · 0.85
canvas.jsFile · 0.85
parse_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected