Rename _ol_style_AtlasManager_ to AtlasManager

This commit is contained in:
Tim Schaub
2018-01-11 10:57:17 -07:00
parent 12d4db5045
commit 5f40eec148
6 changed files with 27 additions and 27 deletions

View File

@@ -33,7 +33,7 @@ var MAX_ATLAS_SIZE = -1;
* @api
* @param {olx.style.AtlasManagerOptions=} opt_options Options.
*/
var _ol_style_AtlasManager_ = function(opt_options) {
var AtlasManager = function(opt_options) {
var options = opt_options || {};
@@ -88,7 +88,7 @@ var _ol_style_AtlasManager_ = function(opt_options) {
* @return {?ol.AtlasManagerInfo} The position and atlas image for the
* entry, or `null` if the entry is not part of the atlas manager.
*/
_ol_style_AtlasManager_.prototype.getInfo = function(id) {
AtlasManager.prototype.getInfo = function(id) {
/** @type {?ol.AtlasInfo} */
var info = this.getInfo_(this.atlases_, id);
@@ -108,7 +108,7 @@ _ol_style_AtlasManager_.prototype.getInfo = function(id) {
* @return {?ol.AtlasInfo} The position and atlas image for the entry,
* or `null` if the entry is not part of the atlases.
*/
_ol_style_AtlasManager_.prototype.getInfo_ = function(atlases, id) {
AtlasManager.prototype.getInfo_ = function(atlases, id) {
var atlas, info, i, ii;
for (i = 0, ii = atlases.length; i < ii; ++i) {
atlas = atlases[i];
@@ -129,7 +129,7 @@ _ol_style_AtlasManager_.prototype.getInfo_ = function(atlases, id) {
* @return {?ol.AtlasManagerInfo} The position and atlas image for the
* entry, or `null` if the entry is not part of the atlases.
*/
_ol_style_AtlasManager_.prototype.mergeInfos_ = function(info, hitInfo) {
AtlasManager.prototype.mergeInfos_ = function(info, hitInfo) {
return /** @type {ol.AtlasManagerInfo} */ ({
offsetX: info.offsetX,
offsetY: info.offsetY,
@@ -161,7 +161,7 @@ _ol_style_AtlasManager_.prototype.mergeInfos_ = function(info, hitInfo) {
* @return {?ol.AtlasManagerInfo} The position and atlas image for the
* entry, or `null` if the image is too big.
*/
_ol_style_AtlasManager_.prototype.add = function(id, width, height,
AtlasManager.prototype.add = function(id, width, height,
renderCallback, opt_renderHitCallback, opt_this) {
if (width + this.space_ > this.maxSize_ ||
height + this.space_ > this.maxSize_) {
@@ -201,7 +201,7 @@ _ol_style_AtlasManager_.prototype.add = function(id, width, height,
* @return {?ol.AtlasInfo} The position and atlas image for the entry,
* or `null` if the image is too big.
*/
_ol_style_AtlasManager_.prototype.add_ = function(isHitAtlas, id, width, height,
AtlasManager.prototype.add_ = function(isHitAtlas, id, width, height,
renderCallback, opt_this) {
var atlases = (isHitAtlas) ? this.hitAtlases_ : this.atlases_;
var atlas, info, i, ii;
@@ -229,4 +229,4 @@ _ol_style_AtlasManager_.prototype.add_ = function(isHitAtlas, id, width, height,
}
return null;
};
export default _ol_style_AtlasManager_;
export default AtlasManager;