new Tiny.CanvasMaskManager(renderer)
| Name | Type | Description |
|---|---|---|
renderer |
Tiny.CanvasRenderer |
The canvas renderer. |
Methods
-
Destroys this canvas mask manager.
-
popMask(renderer)
-
Restores the current drawing context to the state it was before the mask was applied.
Name Type Description rendererTiny.CanvasRenderer The renderer context to use.
-
pushMask(maskData)
-
This method adds it to the current stack of masks.
Name Type Description maskDataobject the maskData that will be pushed
-
renderGraphicsShape(graphics)
-
Renders a Tiny.Graphics shape.
Name Type Description graphicsTiny.Graphics The object to render.