Class: ShapesCache

PIXI.animate.ShapesCache

new PIXI.animate.ShapesCache ()

Contains the collection of graphics data

Methods

PIXI.animate.ShapesCache.add (prop, items) static

Add an item or itesm to the cache

Name Type Description
prop String

The id of graphic or the map of graphics to add

items String | Array.<Array>

Collection of draw commands

PIXI.animate.ShapesCache.fromCache (id)Array static

Get the graphic from cache

Name Type Description
id String

The cache id

Returns:
Type Description
Array Series of graphic draw commands

PIXI.animate.ShapesCache.remove (id) static

Remove the graphic from cache

Name Type Description
id String | Object

The cache id or map

PIXI.animate.ShapesCache.removeAll () static

Remove all graphics from cache