Merge pull request #4395 from adube/api-styletext-offsetxy
Flag ol.style.Text setOffsetX and Y as @api.
This commit is contained in:
@@ -205,6 +205,7 @@ ol.style.Text.prototype.setFont = function(font) {
|
|||||||
* Set the x offset.
|
* Set the x offset.
|
||||||
*
|
*
|
||||||
* @param {number} offsetX Horizontal text offset.
|
* @param {number} offsetX Horizontal text offset.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.style.Text.prototype.setOffsetX = function(offsetX) {
|
ol.style.Text.prototype.setOffsetX = function(offsetX) {
|
||||||
this.offsetX_ = offsetX;
|
this.offsetX_ = offsetX;
|
||||||
@@ -215,6 +216,7 @@ ol.style.Text.prototype.setOffsetX = function(offsetX) {
|
|||||||
* Set the y offset.
|
* Set the y offset.
|
||||||
*
|
*
|
||||||
* @param {number} offsetY Vertical text offset.
|
* @param {number} offsetY Vertical text offset.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.style.Text.prototype.setOffsetY = function(offsetY) {
|
ol.style.Text.prototype.setOffsetY = function(offsetY) {
|
||||||
this.offsetY_ = offsetY;
|
this.offsetY_ = offsetY;
|
||||||
|
|||||||
Reference in New Issue
Block a user