Commit a3c27448 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

отключение истории и таблицы id при генерации preview диаграмм, чтобы не...

отключение истории и таблицы id при генерации preview диаграмм, чтобы не добавлялись лишние объекты.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58643 954022d7-b5bf-4e40-9824-e11837661b57
parent fef9ad1e
......@@ -364,6 +364,7 @@ ChartPreviewManager.prototype.clearPreviews = function()
this.previewGroups.length = 0;
};
ChartPreviewManager.prototype.createChartPreview = function(type, styleIndex) {
return ExecuteNoHistory(function(){
if(!this.chartsByTypes[type])
this.chartsByTypes[type] = this.getChartByType(type);
var chart_space = this.chartsByTypes[type];
......@@ -400,6 +401,8 @@ ChartPreviewManager.prototype.createChartPreview = function(type, styleIndex) {
graphics.transform(1,0,0,1,0,0);
chart_space.draw(graphics);
return _canvas.toDataURL("image/png");
}, this, []);
};
ChartPreviewManager.prototype.getChartPreviews = function(chartType) {
......
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