src/render/Render.js
/**
 * Layer description, layer drawing could be optimized by renderers, 
 * since layers are drawn multiple times. All EMB images on the layer
 * must have the same source Image.
 * 
 * @param tiles is array of tuples (EMBImage, x, y, centered, flipped)
 * @param indices is an array of image offsets in a rectangular layer
 * @param sx is number of horizontal tiles
 * @param sy is number of vertical tiles
 * 
 * @returns {RenderLayer}
 */
Layer description, layer drawing could be optimized by renderers,
since layers are drawn multiple times. All EMB images on the layer
must have the same source Image.

@param tiles is array of tuples (EMBImage, x, y, centered, flipped)
@param indices is an array of image offsets in a rectangular layer
@param sx is number of horizontal tiles
@param sy is number of vertical tiles


Layer description layer drawing could be optimized by renderers since layers are drawn multiple times . All EMB images on the layer must have the same source Image . @param tiles is array of tuples ( EMBImage x y centered flipped ) @param indices is an array of image offsets in a rectangular layer @param sx is number of horizontal tiles @param sy is number of vertical tiles
function RenderTileLayer(tiles, indices, sx, sy) {
    RenderLayer.apply(this, [tiles]);
    assert(indices.length == sx * sy);
    this.indices = indices;
    this.sx = sx;
    this.sy = sy;
}
function RenderTileLayer ( tiles , indices , sx , sy ) { RenderLayer . apply ( this , [ tiles ] ) ; assert ( indices . length == sx * sy ) ; this . indices = indices ; this . sx = sx ; this . sy = sy ; }
Layer description, layer drawing could be optimized by renderers,
 since layers are drawn multiple times.
Layer description layer drawing could be optimized by renderers since layers are drawn multiple times .