From 1b0e7567c85fb594a47e5fcca24128d4141ab50e Mon Sep 17 00:00:00 2001 From: liulinboyi <814921718@qq.com> Date: Tue, 23 Jun 2020 15:24:47 +0800 Subject: [PATCH] docs(tooltip): fix the spell error --- src/component/tooltip/TooltipContent.js | 8 ++++---- src/component/tooltip/TooltipRichContent.js | 2 +- src/component/tooltip/TooltipView.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/component/tooltip/TooltipContent.js b/src/component/tooltip/TooltipContent.js index cd88e12a8e..3dbd905816 100644 --- a/src/component/tooltip/TooltipContent.js +++ b/src/component/tooltip/TooltipContent.js @@ -285,10 +285,10 @@ TooltipContent.prototype = { el.style.display = el.innerHTML ? 'block' : 'none'; - // If mouse occsionally move over the tooltip, a mouseout event will be - // triggered by canvas, and cuase some unexpectable result like dragging + // If mouse occasionally move over the tooltip, a mouseout event will be + // triggered by canvas, and cause some unexpectable result like dragging // stop, "unfocusAdjacency". Here `pointer-events: none` is used to solve - // it. Although it is not suppored by IE8~IE10, fortunately it is a rare + // it. Although it is not supported by IE8~IE10, fortunately it is a rare // scenario. el.style.pointerEvents = this._enterable ? 'auto' : 'none'; @@ -326,7 +326,7 @@ TooltipContent.prototype = { if (this._show && !(this._inContent && this._enterable)) { if (time) { this._hideDelay = time; - // Set show false to avoid invoke hideLater mutiple times + // Set show false to avoid invoke hideLater multiple times this._show = false; this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time); } diff --git a/src/component/tooltip/TooltipRichContent.js b/src/component/tooltip/TooltipRichContent.js index d600face58..1c5743343f 100644 --- a/src/component/tooltip/TooltipRichContent.js +++ b/src/component/tooltip/TooltipRichContent.js @@ -192,7 +192,7 @@ TooltipRichContent.prototype = { if (this._show && !(this._inContent && this._enterable)) { if (time) { this._hideDelay = time; - // Set show false to avoid invoke hideLater mutiple times + // Set show false to avoid invoke hideLater multiple times this._show = false; this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time); } diff --git a/src/component/tooltip/TooltipView.js b/src/component/tooltip/TooltipView.js index f8963a3602..1096ce75ea 100644 --- a/src/component/tooltip/TooltipView.js +++ b/src/component/tooltip/TooltipView.js @@ -339,7 +339,7 @@ export default echarts.extendComponentView({ _showOrMove: function (tooltipModel, cb) { // showDelay is used in this case: tooltip.enterable is set // as true. User intent to move mouse into tooltip and click - // something. `showDelay` makes it easyer to enter the content + // something. `showDelay` makes it easier to enter the content // but tooltip do not move immediately. var delay = tooltipModel.get('showDelay'); cb = zrUtil.bind(cb, this); @@ -424,7 +424,7 @@ export default echarts.extendComponentView({ // Default tooltip content // FIXME - // (1) shold be the first data which has name? + // (1) should be the first data which has name? // (2) themeRiver, firstDataIndex is array, and first line is unnecessary. var firstLine = valueLabel; if (renderMode !== 'html') { @@ -540,7 +540,7 @@ export default echarts.extendComponentView({ var asyncTicket = Math.random(); // Do not check whether `trigger` is 'none' here, because `trigger` - // only works on cooridinate system. In fact, we have not found case + // only works on coordinate system. In fact, we have not found case // that requires setting `trigger` nothing on component yet. this._showOrMove(subTooltipModel, function () {