Layer constructor

Layer(
  1. [Rect layerRect]
)

Creates a new layer. The layerRect can optionally be passed as an argument if it is known.

var myLayer = new Layer();

Implementation

Layer([this.layerRect]);