Commit 7640df08 authored by Alexey.Musinov's avatar Alexey.Musinov

set chart data

parent 80131b6a
......@@ -6713,6 +6713,17 @@ window["native"]["offline_apply_event"] = function(type,params) {
_return = _s.offline_addChartDrawingObject(params);
break;
}
case 450: // ASC_MENU_EVENT_TYPE_GET_CHART_DATA
{
var chart = _api.asc_getWordChartObject();
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
_stream["WriteStringA"](JSON.stringify(chart));
_return = _stream;
break;
}
// Cell interface
......
......@@ -2191,7 +2191,20 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
break;
}
case 460: // ASC_MENU_EVENT_TYPE_SET_CHART_DATA
{
if (undefined !== _params) {
var chartData = _params[0];
if (chartData && chartData.length > 0) {
var json = JSON.parse(chartData);
if (json) {
_api.asc_editChartDrawingObject(json);
}
}
}
break;
}
case 2415: // ASC_MENU_EVENT_TYPE_CHANGE_COLOR_SCHEME
{
......
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