Commit 845e7699 authored by Alexander.Trofimov's avatar Alexander.Trofimov

asc_getStyles add argument type (set type for styles if exist)

bug 35296
parent cb501095
...@@ -5029,11 +5029,14 @@ RangeDataManager.prototype = { ...@@ -5029,11 +5029,14 @@ RangeDataManager.prototype = {
equalColors(this.colorHigh, oSparklineGroup.colorHigh) && equalColors(this.colorLow, oSparklineGroup.colorLow); equalColors(this.colorHigh, oSparklineGroup.colorHigh) && equalColors(this.colorLow, oSparklineGroup.colorLow);
}; };
sparklineGroup.prototype.asc_getStyles = function () { sparklineGroup.prototype.asc_getStyles = function (type) {
History.TurnOff(); History.TurnOff();
var aRet = []; var aRet = [];
var nStyleIndex = -1; var nStyleIndex = -1;
var oSparklineGroup = this.clone(true); var oSparklineGroup = this.clone(true);
if ('undefined' !== typeof type) {
oSparklineGroup.asc_setType(type);
}
var canvas = document.createElement('canvas'); var canvas = document.createElement('canvas');
canvas.width = 50; canvas.width = 50;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment