]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
some minor typo fix (#7913)
authorpaul cheung <paul-cheung@users.noreply.github.com>
Sun, 18 Oct 2020 13:35:21 +0000 (21:35 +0800)
committerGitHub <noreply@github.com>
Sun, 18 Oct 2020 13:35:21 +0000 (09:35 -0400)
src/controllers/controller.doughnut.js
src/core/core.controller.js
src/core/core.datasetController.js
src/core/core.scale.js
src/elements/element.arc.js

index e88d9f3f9487b715bb4db7f42c4c3bef505bb675..cee66e6639ab60f36974da30668e8bf95ab5c7ad 100644 (file)
@@ -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() {
index 95e8d92e76a261ba679f4891b5fb3055a24c3b65..d2df919bccd9e655c4906c9f10f23c74a0bf5df9 100644 (file)
@@ -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:
index 1277860ac8ff1f8c1f812d2445c209d138d87f57..ca26dffc9a4300a4be282e3c611ea67a5d39c796 100644 (file)
@@ -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;
 
index 06c50395c6b674c687c565fe38c67524ce3eb597..3e04ddfc4e2d22891b48ed09300bca3453febc78 100644 (file)
@@ -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
 
index c9239e0d6e3c32229eecc341ce2ecc295567514b..c199cf107c2f18b7fac19b86b08b34b48431fe12 100644 (file)
@@ -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);