Skip to content

Commit

Permalink
Add type of section for asc_onBeginSmartArtPreview event
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolcooo committed Oct 2, 2023
1 parent 37763cf commit bca1cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/Charts/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@ ChartPreviewManager.prototype.getChartPreviews = function(chartType, arrId, bEmp
SmartArtPreviewDrawer.prototype.OnBegin = function () {
const oApi = Asc.editor || editor;
this.index = 0;
if (oApi) oApi.sendEvent("asc_onBeginSmartArtPreview");
if (oApi)
oApi.sendEvent("asc_onBeginSmartArtPreview", this.typeOfSectionLoad);
}

SmartArtPreviewDrawer.prototype.OnEnd = function() {
Expand Down

0 comments on commit bca1cfa

Please sign in to comment.