Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Nov 6, 2019
1 parent 6894a6e commit d6a83bc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/controllers/controller.bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ module.exports = DatasetController.extend({
return parsed;
},

getMaxOverflow: function() {
/**
* @private
*/
_getMaxOverflow: function() {
var me = this;
var meta = me._cachedMeta;
var data = meta.data || [];
Expand Down
5 changes: 4 additions & 1 deletion src/controllers/controller.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ module.exports = DatasetController.extend({
return values;
},

getMaxOverflow: function() {
/**
* @private
*/
_getMaxOverflow: function() {
var me = this;
var meta = me._cachedMeta;
var data = meta.data || [];
Expand Down
19 changes: 17 additions & 2 deletions src/core/core.datasetController.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ helpers.extend(DatasetController.prototype, {
return applyStack(stack, value, meta.index);
},

/**
* @private
*/
_getMinMax: function(scale, canStack) {
var chart = this.chart;
var meta = this._cachedMeta;
Expand Down Expand Up @@ -643,6 +646,9 @@ helpers.extend(DatasetController.prototype, {
};
},

/**
* @private
*/
_getAllParsedValues: function(scale) {
var meta = this._cachedMeta;
var metaData = meta.data;
Expand All @@ -658,6 +664,9 @@ helpers.extend(DatasetController.prototype, {
return values;
},

/**
* @private
*/
_cacheScaleStackStatus: function() {
var me = this;
var indexScale = me._getIndexScale();
Expand All @@ -669,6 +678,9 @@ helpers.extend(DatasetController.prototype, {
}
},

/**
* @private
*/
_scaleCheck: function() {
var me = this;
var indexScale = me._getIndexScale();
Expand All @@ -681,7 +693,10 @@ helpers.extend(DatasetController.prototype, {
cache[valueScale.id] !== valueScale.options.stacked;
},

getMaxOverflow: function() {
/**
* @private
*/
_getMaxOverflow: function() {
return false;
},

Expand All @@ -690,7 +705,7 @@ helpers.extend(DatasetController.prototype, {
me._configure();
me._cachedDataOpts = null;
me.update(reset);
me._cachedMeta._clip = toClip(helpers.valueOrDefault(me._config.clip, defaultClip(me._xScale, me._yScale, me.getMaxOverflow())));
me._cachedMeta._clip = toClip(helpers.valueOrDefault(me._config.clip, defaultClip(me._xScale, me._yScale, me._getMaxOverflow())));
me._cacheScaleStackStatus();
},

Expand Down
1 change: 0 additions & 1 deletion src/elements/element.point.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ module.exports = Element.extend({
var radius = vm.radius || 0;
var borderWidth = vm.borderWidth || 0;
return (radius + borderWidth) * 2;

},

tooltipPosition: function() {
Expand Down

0 comments on commit d6a83bc

Please sign in to comment.