Remove exceedLength

This commit is contained in:
Tim Schaub
2017-12-12 19:29:42 -07:00
parent 7e3d44e35a
commit 72ff21e01f
2 changed files with 1 additions and 18 deletions

View File

@@ -7877,7 +7877,6 @@ olx.style.StrokeOptions.prototype.width;
/**
* @typedef {{font: (string|undefined),
* exceedLength: (boolean|undefined),
* maxAngle: (number|undefined),
* offsetX: (number|undefined),
* offsetY: (number|undefined),
@@ -7898,19 +7897,6 @@ olx.style.StrokeOptions.prototype.width;
olx.style.TextOptions;
/**
* **Deprecated**. Use the `overflow` option instead.
*
* 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. Default is `false`.
* @type {boolean|undefined}
* @deprecated
* @api
*/
olx.style.TextOptions.prototype.exceedLength;
/**
* Font style as CSS 'font' value, see:
* {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font}.

View File

@@ -77,14 +77,11 @@ var _ol_style_Text_ = function(opt_options) {
*/
this.placement_ = options.placement !== undefined ? options.placement : _ol_style_TextPlacement_.POINT;
//TODO Use options.overflow directly after removing @deprecated exceedLength
var overflow = options.overflow === undefined ? options.exceedLength : options.overflow;
/**
* @private
* @type {boolean}
*/
this.overflow_ = overflow !== undefined ? overflow : false;
this.overflow_ = !!options.overflow;
/**
* @private