diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index fa49487731..38069f9314 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -642,6 +642,15 @@ * @todo stability experimental */ +/** + * @typedef {Object} ol.style.TextOptions + * @property {string|undefined} font Font. + * @property {string|undefined} text Text. + * @property {string|undefined} textAlign Text alignment. + * @property {string|undefined} textBaseline Text base line. + * @todo stability experimental + */ + /** * @typedef {Object} ol.tilegrid.TileGridOptions * @property {number|undefined} minZoom Minimum zoom. diff --git a/src/ol/style/textstyle.exports b/src/ol/style/textstyle.exports new file mode 100644 index 0000000000..989337adcf --- /dev/null +++ b/src/ol/style/textstyle.exports @@ -0,0 +1 @@ +@exportClass ol.style.Text ol.style.TextOptions diff --git a/src/ol/style/textstyle.js b/src/ol/style/textstyle.js index d937db1fdc..37062df057 100644 --- a/src/ol/style/textstyle.js +++ b/src/ol/style/textstyle.js @@ -1,15 +1,6 @@ goog.provide('ol.style.Text'); -/** - * @typedef {{font: (string|undefined), - * text: (string|undefined), - * textAlign: (string|undefined), - * textBaseline: (string|undefined)}} - */ -ol.style.TextOptions; - - /** * @constructor