Commit 1ce6ac75 authored by Sergey Luzyanin's avatar Sergey Luzyanin

asc_getStyles

parent b4c8bc7f
......@@ -4786,7 +4786,12 @@ CellArea.prototype = {
oSparkline.oCache = this.generateCache();
this.sparklineView.initFromSparkline(oSparkline, oSparklineGroup, null);
var api_sheet = Asc['editor'];
AscFormat.ExecuteNoHistory(
function () {
this.sparklineView.chartSpace.setWorksheet(api_sheet.wb.getWorksheet().model);
}, this, []);
this.sparklineView.chartSpace.extX = 100;
this.sparklineView.chartSpace.extY = 100;
this.sparklineView.chartSpace.x = 0;
......@@ -4815,6 +4820,15 @@ CellArea.prototype = {
return this.canvas.toDataURL("image/png");
};
sparklineGroup.prototype.asc_getStyles = function()
{
var aRet = [];
for(var i = 0; i < 35; ++i){
var oSparklineGroup = this.asc_createSparklineGroupByStyle(i);
aRet.push([oSparklineGroup, this.asc_getThumbBySparklineGroup(oSparklineGroup)]);
}
return aRet;
};
/** @constructor */
function sparkline() {
this.sqref = null;
......
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