Description

Decompress a compressed element with pack method

Returns

CanvasEngine.Element

Example

In method ready

var el = this.createElement(), child;
for (var i=0 ; i < 1000 ; i++) {
    child = this.createElement();
    child.x = i;
    el.append(child);
}
el.pack(10, 1000);  // transform all children to Canvas element
el.unpack();        // reset as before 
stage.append(el);

Discussion