]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix arguments in plugin interface description
authorAkihiko Kusanagi <nagi@nagi-p.com>
Thu, 22 Jun 2017 16:53:52 +0000 (09:53 -0700)
committerEvert Timberg <evert.timberg+github@gmail.com>
Fri, 23 Jun 2017 22:08:44 +0000 (18:08 -0400)
* Fixed arguments in IPlugin#before/afterDatasetUpdate description
* Fixed arguments in IPlugin#before/afterDatasetDraw description

src/core/core.plugin.js

index 94e459736a96faef13106c340006d9015a334c71..164e5d4c94882a41a8f88fa0a45dfdb8d36eff25 100644 (file)
@@ -215,8 +215,8 @@ module.exports = function(Chart) {
         * returns `false`, the datasets update is cancelled until another `update` is triggered.
         * @param {Chart} chart - The chart instance.
         * @param {Object} args - The call arguments.
-        * @param {Object} args.index - The dataset index.
-        * @param {Number} args.meta - The dataset metadata.
+        * @param {Number} args.index - The dataset index.
+        * @param {Object} args.meta - The dataset metadata.
         * @param {Object} options - The plugin options.
         * @returns {Boolean} `false` to cancel the chart datasets drawing.
         */
@@ -226,8 +226,8 @@ module.exports = function(Chart) {
         * that this hook will not be called if the datasets update has been previously cancelled.
         * @param {Chart} chart - The chart instance.
         * @param {Object} args - The call arguments.
-        * @param {Object} args.index - The dataset index.
-        * @param {Number} args.meta - The dataset metadata.
+        * @param {Number} args.index - The dataset index.
+        * @param {Object} args.meta - The dataset metadata.
         * @param {Object} options - The plugin options.
         */
        /**
@@ -302,8 +302,8 @@ module.exports = function(Chart) {
         * is cancelled until another `render` is triggered.
         * @param {Chart} chart - The chart instance.
         * @param {Object} args - The call arguments.
-        * @param {Object} args.index - The dataset index.
-        * @param {Number} args.meta - The dataset metadata.
+        * @param {Number} args.index - The dataset index.
+        * @param {Object} args.meta - The dataset metadata.
         * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.
         * @param {Object} options - The plugin options.
         * @returns {Boolean} `false` to cancel the chart datasets drawing.
@@ -315,8 +315,8 @@ module.exports = function(Chart) {
         * if the datasets drawing has been previously cancelled.
         * @param {Chart} chart - The chart instance.
         * @param {Object} args - The call arguments.
-        * @param {Object} args.index - The dataset index.
-        * @param {Number} args.meta - The dataset metadata.
+        * @param {Number} args.index - The dataset index.
+        * @param {Object} args.meta - The dataset metadata.
         * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.
         * @param {Object} options - The plugin options.
         */