new CanvasMaskManager() A set of functions used to handle masking. Source code:
popMask(renderSession) Restores the current drawing context to the state it was before the mask was applied. Parameters
pushMask(maskData, renderSession) This method adds it to the current stack of masks. Parameters