Merge pull request #8088 from camptocamp/fix_typo_in_TextPlacement

Correct type for TextPlacement (jsdoc)
This commit is contained in:
Frédéric Junod
2018-04-19 10:46:26 +02:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ const DEFAULT_FILL_COLOR = '#333';
* @property {number} [offsetY=0] Vertical text offset in pixels. A positive will shift the text down. * @property {number} [offsetY=0] Vertical text offset in pixels. A positive will shift the text down.
* @property {boolean} [overflow=false] For polygon labels or when `placement` is set to `'line'`, allow text to exceed * @property {boolean} [overflow=false] For polygon labels or when `placement` is set to `'line'`, allow text to exceed
* the width of the polygon at the label position or the length of the path that it follows. * the width of the polygon at the label position or the length of the path that it follows.
* @property {module:ol/style/Text~TextPlacement|string} [placement] Text placement. * @property {module:ol/style/TextPlacement~TextPlacement|string} [placement] Text placement.
* @property {number} [scale] Scale. * @property {number} [scale] Scale.
* @property {boolean} [rotateWithView=false] Whether to rotate the text with the view. * @property {boolean} [rotateWithView=false] Whether to rotate the text with the view.
* @property {number} rotation=0 Rotation in radians (positive rotation clockwise). * @property {number} rotation=0 Rotation in radians (positive rotation clockwise).
@@ -114,7 +114,7 @@ const Text = function(opt_options) {
/** /**
* @private * @private
* @type {module:ol/style/Text~TextPlacement|string} * @type {module:ol/style/TextPlacement~TextPlacement|string}
*/ */
this.placement_ = options.placement !== undefined ? options.placement : TextPlacement.POINT; this.placement_ = options.placement !== undefined ? options.placement : TextPlacement.POINT;
@@ -221,7 +221,7 @@ Text.prototype.getMaxAngle = function() {
/** /**
* Get the label placement. * Get the label placement.
* @return {module:ol/style/Text~TextPlacement|string} Text placement. * @return {module:ol/style/TextPlacement~TextPlacement|string} Text placement.
* @api * @api
*/ */
Text.prototype.getPlacement = function() { Text.prototype.getPlacement = function() {
@@ -417,7 +417,7 @@ Text.prototype.setOffsetY = function(offsetY) {
/** /**
* Set the text placement. * Set the text placement.
* *
* @param {module:ol/style/Text~TextPlacement|string} placement Placement. * @param {module:ol/style/TextPlacement~TextPlacement|string} placement Placement.
* @api * @api
*/ */
Text.prototype.setPlacement = function(placement) { Text.prototype.setPlacement = function(placement) {