dist/jcanvas.js
function _enableMasking(ctx, data, params) {
	if (params.mask) {
		// If jCanvas autosave is enabled
		if (params.autosave) {
			// Automatically save transformation state by default
			_saveCanvas(ctx, data);
		}
		// Clip the current path
		ctx.clip();
		// Keep track of current masks
		data.transforms.masks.push(params._args);
	}
}
function _enableMasking(ctx, data, params) {
	if (params.mask) {
		// If jCanvas autosave is enabled
		if (params.autosave) {
			// Automatically save transformation state by default
			_saveCanvas(ctx, data);
		}
		// Clip the current path
		ctx.clip();
		// Keep track of current masks
		data.transforms.masks.push(params._args);
	}
}
function _enableMasking ( ctx , data , params ) { if ( params . mask ) { // If jCanvas autosave is enabled if ( params . autosave ) { // Automatically save transformation state by default _saveCanvas ( ctx , data ) ; } // Clip the current path ctx . clip ( ) ; // Keep track of current masks data . transforms . masks . push ( params . _args ) ; } }
Optionally enable masking support for this path
Optionally enable masking support for this path