Add TextStyle offsets getters to API.

The other properties getters are in the API already.
This commit is contained in:
Guillaume Beraudo
2014-09-03 15:41:02 +02:00
parent b87a50726c
commit 9adb12846c

View File

@@ -87,6 +87,7 @@ ol.style.Text.prototype.getFont = function() {
/**
* @return {number} Horizontal text offset.
* @api
*/
ol.style.Text.prototype.getOffsetX = function() {
return this.offsetX_;
@@ -95,6 +96,7 @@ ol.style.Text.prototype.getOffsetX = function() {
/**
* @return {number} Vertical text offset.
* @api
*/
ol.style.Text.prototype.getOffsetY = function() {
return this.offsetY_;