From f0a97ee460cf84c6d44515b86b3e36be90d10fa0 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 19 Feb 2019 14:12:14 +0100 Subject: [PATCH] Fix comments indentation --- src/ol/style/Text.js | 406 +++++++++++++++++++++---------------------- 1 file changed, 203 insertions(+), 203 deletions(-) diff --git a/src/ol/style/Text.js b/src/ol/style/Text.js index 95eb9598c7..7daffd24f4 100644 --- a/src/ol/style/Text.js +++ b/src/ol/style/Text.js @@ -59,114 +59,114 @@ class Text { const options = opt_options || {}; /** - * @private - * @type {string|undefined} - */ + * @private + * @type {string|undefined} + */ this.font_ = options.font; /** - * @private - * @type {number|undefined} - */ + * @private + * @type {number|undefined} + */ this.rotation_ = options.rotation; /** - * @private - * @type {boolean|undefined} - */ + * @private + * @type {boolean|undefined} + */ this.rotateWithView_ = options.rotateWithView; /** - * @private - * @type {number|undefined} - */ + * @private + * @type {number|undefined} + */ this.scale_ = options.scale; /** - * @private - * @type {string|undefined} - */ + * @private + * @type {string|undefined} + */ this.text_ = options.text; /** - * @private - * @type {string|undefined} - */ + * @private + * @type {string|undefined} + */ this.textAlign_ = options.textAlign; /** - * @private - * @type {string|undefined} - */ + * @private + * @type {string|undefined} + */ this.textBaseline_ = options.textBaseline; /** - * @private - * @type {import("./Fill.js").default} - */ + * @private + * @type {import("./Fill.js").default} + */ this.fill_ = options.fill !== undefined ? options.fill : new Fill({color: DEFAULT_FILL_COLOR}); /** - * @private - * @type {number} - */ + * @private + * @type {number} + */ this.maxAngle_ = options.maxAngle !== undefined ? options.maxAngle : Math.PI / 4; /** - * @private - * @type {import("./TextPlacement.js").default|string} - */ + * @private + * @type {import("./TextPlacement.js").default|string} + */ this.placement_ = options.placement !== undefined ? options.placement : TextPlacement.POINT; /** - * @private - * @type {boolean} - */ + * @private + * @type {boolean} + */ this.overflow_ = !!options.overflow; /** - * @private - * @type {import("./Stroke.js").default} - */ + * @private + * @type {import("./Stroke.js").default} + */ this.stroke_ = options.stroke !== undefined ? options.stroke : null; /** - * @private - * @type {number} - */ + * @private + * @type {number} + */ this.offsetX_ = options.offsetX !== undefined ? options.offsetX : 0; /** - * @private - * @type {number} - */ + * @private + * @type {number} + */ this.offsetY_ = options.offsetY !== undefined ? options.offsetY : 0; /** - * @private - * @type {import("./Fill.js").default} - */ + * @private + * @type {import("./Fill.js").default} + */ this.backgroundFill_ = options.backgroundFill ? options.backgroundFill : null; /** - * @private - * @type {import("./Stroke.js").default} - */ + * @private + * @type {import("./Stroke.js").default} + */ this.backgroundStroke_ = options.backgroundStroke ? options.backgroundStroke : null; /** - * @private - * @type {Array} - */ + * @private + * @type {Array} + */ this.padding_ = options.padding === undefined ? null : options.padding; } /** - * Clones the style. - * @return {Text} The cloned style. - * @api - */ + * Clones the style. + * @return {Text} The cloned style. + * @api + */ clone() { return new Text({ font: this.getFont(), @@ -189,314 +189,314 @@ class Text { } /** - * Get the `overflow` configuration. - * @return {boolean} Let text overflow the length of the path they follow. - * @api - */ + * Get the `overflow` configuration. + * @return {boolean} Let text overflow the length of the path they follow. + * @api + */ getOverflow() { return this.overflow_; } /** - * Get the font name. - * @return {string|undefined} Font. - * @api - */ + * Get the font name. + * @return {string|undefined} Font. + * @api + */ getFont() { return this.font_; } /** - * Get the maximum angle between adjacent characters. - * @return {number} Angle in radians. - * @api - */ + * Get the maximum angle between adjacent characters. + * @return {number} Angle in radians. + * @api + */ getMaxAngle() { return this.maxAngle_; } /** - * Get the label placement. - * @return {import("./TextPlacement.js").default|string} Text placement. - * @api - */ + * Get the label placement. + * @return {import("./TextPlacement.js").default|string} Text placement. + * @api + */ getPlacement() { return this.placement_; } /** - * Get the x-offset for the text. - * @return {number} Horizontal text offset. - * @api - */ + * Get the x-offset for the text. + * @return {number} Horizontal text offset. + * @api + */ getOffsetX() { return this.offsetX_; } /** - * Get the y-offset for the text. - * @return {number} Vertical text offset. - * @api - */ + * Get the y-offset for the text. + * @return {number} Vertical text offset. + * @api + */ getOffsetY() { return this.offsetY_; } /** - * Get the fill style for the text. - * @return {import("./Fill.js").default} Fill style. - * @api - */ + * Get the fill style for the text. + * @return {import("./Fill.js").default} Fill style. + * @api + */ getFill() { return this.fill_; } /** - * Determine whether the text rotates with the map. - * @return {boolean|undefined} Rotate with map. - * @api - */ + * Determine whether the text rotates with the map. + * @return {boolean|undefined} Rotate with map. + * @api + */ getRotateWithView() { return this.rotateWithView_; } /** - * Get the text rotation. - * @return {number|undefined} Rotation. - * @api - */ + * Get the text rotation. + * @return {number|undefined} Rotation. + * @api + */ getRotation() { return this.rotation_; } /** - * Get the text scale. - * @return {number|undefined} Scale. - * @api - */ + * Get the text scale. + * @return {number|undefined} Scale. + * @api + */ getScale() { return this.scale_; } /** - * Get the stroke style for the text. - * @return {import("./Stroke.js").default} Stroke style. - * @api - */ + * Get the stroke style for the text. + * @return {import("./Stroke.js").default} Stroke style. + * @api + */ getStroke() { return this.stroke_; } /** - * Get the text to be rendered. - * @return {string|undefined} Text. - * @api - */ + * Get the text to be rendered. + * @return {string|undefined} Text. + * @api + */ getText() { return this.text_; } /** - * Get the text alignment. - * @return {string|undefined} Text align. - * @api - */ + * Get the text alignment. + * @return {string|undefined} Text align. + * @api + */ getTextAlign() { return this.textAlign_; } /** - * Get the text baseline. - * @return {string|undefined} Text baseline. - * @api - */ + * Get the text baseline. + * @return {string|undefined} Text baseline. + * @api + */ getTextBaseline() { return this.textBaseline_; } /** - * Get the background fill style for the text. - * @return {import("./Fill.js").default} Fill style. - * @api - */ + * Get the background fill style for the text. + * @return {import("./Fill.js").default} Fill style. + * @api + */ getBackgroundFill() { return this.backgroundFill_; } /** - * Get the background stroke style for the text. - * @return {import("./Stroke.js").default} Stroke style. - * @api - */ + * Get the background stroke style for the text. + * @return {import("./Stroke.js").default} Stroke style. + * @api + */ getBackgroundStroke() { return this.backgroundStroke_; } /** - * Get the padding for the text. - * @return {Array} Padding. - * @api - */ + * Get the padding for the text. + * @return {Array} Padding. + * @api + */ getPadding() { return this.padding_; } /** - * Set the `overflow` property. - * - * @param {boolean} overflow Let text overflow the path that it follows. - * @api - */ + * Set the `overflow` property. + * + * @param {boolean} overflow Let text overflow the path that it follows. + * @api + */ setOverflow(overflow) { this.overflow_ = overflow; } /** - * Set the font. - * - * @param {string|undefined} font Font. - * @api - */ + * Set the font. + * + * @param {string|undefined} font Font. + * @api + */ setFont(font) { this.font_ = font; } /** - * Set the maximum angle between adjacent characters. - * - * @param {number} maxAngle Angle in radians. - * @api - */ + * Set the maximum angle between adjacent characters. + * + * @param {number} maxAngle Angle in radians. + * @api + */ setMaxAngle(maxAngle) { this.maxAngle_ = maxAngle; } /** - * Set the x offset. - * - * @param {number} offsetX Horizontal text offset. - * @api - */ + * Set the x offset. + * + * @param {number} offsetX Horizontal text offset. + * @api + */ setOffsetX(offsetX) { this.offsetX_ = offsetX; } /** - * Set the y offset. - * - * @param {number} offsetY Vertical text offset. - * @api - */ + * Set the y offset. + * + * @param {number} offsetY Vertical text offset. + * @api + */ setOffsetY(offsetY) { this.offsetY_ = offsetY; } /** - * Set the text placement. - * - * @param {import("./TextPlacement.js").default|string} placement Placement. - * @api - */ + * Set the text placement. + * + * @param {import("./TextPlacement.js").default|string} placement Placement. + * @api + */ setPlacement(placement) { this.placement_ = placement; } /** - * Set the fill. - * - * @param {import("./Fill.js").default} fill Fill style. - * @api - */ + * Set the fill. + * + * @param {import("./Fill.js").default} fill Fill style. + * @api + */ setFill(fill) { this.fill_ = fill; } /** - * Set the rotation. - * - * @param {number|undefined} rotation Rotation. - * @api - */ + * Set the rotation. + * + * @param {number|undefined} rotation Rotation. + * @api + */ setRotation(rotation) { this.rotation_ = rotation; } /** - * Set the scale. - * - * @param {number|undefined} scale Scale. - * @api - */ + * Set the scale. + * + * @param {number|undefined} scale Scale. + * @api + */ setScale(scale) { this.scale_ = scale; } /** - * Set the stroke. - * - * @param {import("./Stroke.js").default} stroke Stroke style. - * @api - */ + * Set the stroke. + * + * @param {import("./Stroke.js").default} stroke Stroke style. + * @api + */ setStroke(stroke) { this.stroke_ = stroke; } /** - * Set the text. - * - * @param {string|undefined} text Text. - * @api - */ + * Set the text. + * + * @param {string|undefined} text Text. + * @api + */ setText(text) { this.text_ = text; } /** - * Set the text alignment. - * - * @param {string|undefined} textAlign Text align. - * @api - */ + * Set the text alignment. + * + * @param {string|undefined} textAlign Text align. + * @api + */ setTextAlign(textAlign) { this.textAlign_ = textAlign; } /** - * Set the text baseline. - * - * @param {string|undefined} textBaseline Text baseline. - * @api - */ + * Set the text baseline. + * + * @param {string|undefined} textBaseline Text baseline. + * @api + */ setTextBaseline(textBaseline) { this.textBaseline_ = textBaseline; } /** - * Set the background fill. - * - * @param {import("./Fill.js").default} fill Fill style. - * @api - */ + * Set the background fill. + * + * @param {import("./Fill.js").default} fill Fill style. + * @api + */ setBackgroundFill(fill) { this.backgroundFill_ = fill; } /** - * Set the background stroke. - * - * @param {import("./Stroke.js").default} stroke Stroke style. - * @api - */ + * Set the background stroke. + * + * @param {import("./Stroke.js").default} stroke Stroke style. + * @api + */ setBackgroundStroke(stroke) { this.backgroundStroke_ = stroke; } /** - * Set the padding (`[top, right, bottom, left]`). - * - * @param {!Array} padding Padding. - * @api - */ + * Set the padding (`[top, right, bottom, left]`). + * + * @param {!Array} padding Padding. + * @api + */ setPadding(padding) { this.padding_ = padding; }