From e7837038540dc3e20af5161964db6e55464c3957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 20 Nov 2013 15:25:21 +0100 Subject: [PATCH] Export ol.style.Text --- src/objectliterals.jsdoc | 9 +++++++++ src/ol/style/textstyle.exports | 1 + src/ol/style/textstyle.js | 9 --------- 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 src/ol/style/textstyle.exports 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