From: paul cheung Date: Sun, 18 Oct 2020 13:35:21 +0000 (+0800) Subject: some minor typo fix (#7913) X-Git-Tag: v3.0.0-beta.5~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b31a815382f0ff25a9fcc8bdfb43e8c1d280e493;p=thirdparty%2FChart.js.git some minor typo fix (#7913) --- diff --git a/src/controllers/controller.doughnut.js b/src/controllers/controller.doughnut.js index e88d9f3f9..cee66e663 100644 --- a/src/controllers/controller.doughnut.js +++ b/src/controllers/controller.doughnut.js @@ -298,7 +298,7 @@ export default class DoughnutController extends DatasetController { } /** - * Returns the sum of all visibile data set weights. + * Returns the sum of all visible data set weights. * @private */ _getVisibleDatasetWeightTotal() { diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 95e8d92e7..d2df919bc 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -1130,7 +1130,7 @@ class Chart { // If the event is replayed from `update`, we should evaluate with the final positions. // // The `replay`: - // It's the last event (excluding click) that has occured before `update`. + // It's the last event (excluding click) that has occurred before `update`. // So mouse has not moved. It's also over the chart, because there is a `replay`. // // The why: diff --git a/src/core/core.datasetController.js b/src/core/core.datasetController.js index 1277860ac..ca26dffc9 100644 --- a/src/core/core.datasetController.js +++ b/src/core/core.datasetController.js @@ -742,7 +742,7 @@ export default class DatasetController { }); if (info.cacheable) { - // `$shared` indicades this set of options can be shared between multiple elements. + // `$shared` indicates this set of options can be shared between multiple elements. // Sharing is used to reduce number of properties to change during animation. values.$shared = sharing; diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 06c50395c..3e04ddfc4 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -455,7 +455,7 @@ export default class Scale extends Element { return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || []; } - // These methods are ordered by lifecyle. Utilities then follow. + // These methods are ordered by lifecycle. Utilities then follow. // Any function defined here is inherited by all scale types. // Any function can be extended by the scale type diff --git a/src/elements/element.arc.js b/src/elements/element.arc.js index c9239e0d6..c199cf107 100644 --- a/src/elements/element.arc.js +++ b/src/elements/element.arc.js @@ -5,7 +5,7 @@ function clipArc(ctx, element) { const {startAngle, endAngle, pixelMargin, x, y, outerRadius, innerRadius} = element; let angleMargin = pixelMargin / outerRadius; - // Draw an inner border by cliping the arc and drawing a double-width border + // Draw an inner border by clipping the arc and drawing a double-width border // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders ctx.beginPath(); ctx.arc(x, y, outerRadius, startAngle - angleMargin, endAngle + angleMargin);