CanvasMaskManager Class
A set of functions used to handle masking
Methods
popMask
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        context
Restores the current drawing context to the state it was before the mask was applied
Parameters:
- 
                    
                        contextCanvasRenderingContext2Dthe 2d drawing method of the canvas 
pushMask
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        maskData
- 
                    
                        context
This method adds it to the current stack of masks
Parameters:
- 
                    
                        maskDataObjectthe maskData that will be pushed 
- 
                    
                        contextCanvasRenderingContext2Dthe 2d drawing method of the canvas 
