From: Akihiko Kusanagi Date: Thu, 22 Jun 2017 16:53:52 +0000 (-0700) Subject: Fix arguments in plugin interface description X-Git-Tag: v2.7.0~1^2~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=961911065fe7ee6febb734ab91abd290086ab6ae;p=thirdparty%2FChart.js.git Fix arguments in plugin interface description * Fixed arguments in IPlugin#before/afterDatasetUpdate description * Fixed arguments in IPlugin#before/afterDatasetDraw description --- diff --git a/src/core/core.plugin.js b/src/core/core.plugin.js index 94e459736..164e5d4c9 100644 --- a/src/core/core.plugin.js +++ b/src/core/core.plugin.js @@ -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. */