From ae01d6ee084011f9d7224a9e88d3e6845414a6b7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 12 Mar 2012 21:18:08 -0400 Subject: [PATCH] Added means of getting tile dimensions for subtypes that wish to override TileMasker.getMaskedTileSet --- lib/TileMasker.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/TileMasker.js b/lib/TileMasker.js index c577ef5..420b258 100644 --- a/lib/TileMasker.js +++ b/lib/TileMasker.js @@ -214,6 +214,19 @@ ltjs.TileMasker = Class( 'TileMasker', }, + /** + * For use by subtypes that may need access to the otherwise private data + * + * See getMaskedTileSet(). + * + * @return {Array.} tile width, height and number per row + */ + 'protected getTileDimensions': function() + { + return [ this._tileWidth, this._tileHeight, this._tilesPerRow ]; + }, + + /** * Apply mask to each tile and return individual tiles *