From 0d6368d4ec3219c0e9bab283634b4f8b0f1924ab Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 25 Jun 2019 10:26:26 +0200 Subject: [PATCH] Remove underscore from protected function, fix indentation, remove typecast --- src/ol/style/Circle.js | 10 +++++----- src/ol/style/RegularShape.js | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ol/style/Circle.js b/src/ol/style/Circle.js index 659c71d305..b778cbde26 100644 --- a/src/ol/style/Circle.js +++ b/src/ol/style/Circle.js @@ -53,11 +53,11 @@ class CircleStyle extends RegularShape { } /** - * Set the circle radius. - * - * @param {number} radius Circle radius. - * @api - */ + * Set the circle radius. + * + * @param {number} radius Circle radius. + * @api + */ setRadius(radius) { this.radius_ = radius; } diff --git a/src/ol/style/RegularShape.js b/src/ol/style/RegularShape.js index d8dd972151..b7fcf9b930 100644 --- a/src/ol/style/RegularShape.js +++ b/src/ol/style/RegularShape.js @@ -142,7 +142,7 @@ class RegularShape extends ImageStyle { */ this.hitDetectionImageSize_ = null; - this.render_(); + this.render(); } @@ -301,7 +301,7 @@ class RegularShape extends ImageStyle { /** * @protected */ - render_() { + render() { let lineCap = ''; let lineJoin = ''; let miterLimit = 0; @@ -338,7 +338,6 @@ class RegularShape extends ImageStyle { let size = 2 * (this.radius_ + strokeWidth) + 1; - /** @type {RenderOptions} */ const renderOptions = { strokeStyle: strokeStyle, strokeWidth: strokeWidth,