Remove exceedLength
This commit is contained in:
@@ -7877,7 +7877,6 @@ olx.style.StrokeOptions.prototype.width;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{font: (string|undefined),
|
* @typedef {{font: (string|undefined),
|
||||||
* exceedLength: (boolean|undefined),
|
|
||||||
* maxAngle: (number|undefined),
|
* maxAngle: (number|undefined),
|
||||||
* offsetX: (number|undefined),
|
* offsetX: (number|undefined),
|
||||||
* offsetY: (number|undefined),
|
* offsetY: (number|undefined),
|
||||||
@@ -7898,19 +7897,6 @@ olx.style.StrokeOptions.prototype.width;
|
|||||||
olx.style.TextOptions;
|
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:
|
* Font style as CSS 'font' value, see:
|
||||||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font}.
|
* {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font}.
|
||||||
|
|||||||
@@ -77,14 +77,11 @@ var _ol_style_Text_ = function(opt_options) {
|
|||||||
*/
|
*/
|
||||||
this.placement_ = options.placement !== undefined ? options.placement : _ol_style_TextPlacement_.POINT;
|
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
|
* @private
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
this.overflow_ = overflow !== undefined ? overflow : false;
|
this.overflow_ = !!options.overflow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user