Remove underscore from protected function, fix indentation, remove typecast

This commit is contained in:
Frederic Junod
2019-06-25 10:26:26 +02:00
parent caac90e8d7
commit 0d6368d4ec
2 changed files with 7 additions and 8 deletions
+5 -5
View File
@@ -53,11 +53,11 @@ class CircleStyle extends RegularShape {
} }
/** /**
* Set the circle radius. * Set the circle radius.
* *
* @param {number} radius Circle radius. * @param {number} radius Circle radius.
* @api * @api
*/ */
setRadius(radius) { setRadius(radius) {
this.radius_ = radius; this.radius_ = radius;
} }
+2 -3
View File
@@ -142,7 +142,7 @@ class RegularShape extends ImageStyle {
*/ */
this.hitDetectionImageSize_ = null; this.hitDetectionImageSize_ = null;
this.render_(); this.render();
} }
@@ -301,7 +301,7 @@ class RegularShape extends ImageStyle {
/** /**
* @protected * @protected
*/ */
render_() { render() {
let lineCap = ''; let lineCap = '';
let lineJoin = ''; let lineJoin = '';
let miterLimit = 0; let miterLimit = 0;
@@ -338,7 +338,6 @@ class RegularShape extends ImageStyle {
let size = 2 * (this.radius_ + strokeWidth) + 1; let size = 2 * (this.radius_ + strokeWidth) + 1;
/** @type {RenderOptions} */
const renderOptions = { const renderOptions = {
strokeStyle: strokeStyle, strokeStyle: strokeStyle,
strokeWidth: strokeWidth, strokeWidth: strokeWidth,