API Docs for: 2.2.1
Show:

CanvasMaskManager Class

A set of functions used to handle masking

Item Index

Methods

Methods

popMask

(
  • context
)

Restores the current drawing context to the state it was before the mask was applied

Parameters:

  • context Context2D

    the 2d drawing method of the canvas

pushMask

(
  • maskData
  • context
)

This method adds it to the current stack of masks

Parameters:

  • maskData Object

    the maskData that will be pushed

  • context Context2D

    the 2d drawing method of the canvas