UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

35 lines (34 loc) 1.32 kB
/** * DevExpress HTML/JS Reporting (chart\internal\_requests.js) * Version: 20.2.13 * Build date: Apr 10, 2023 * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var analytics_internal_1 = require("@devexpress/analytics-core/analytics-internal"); var _handlerUri_1 = require("../_handlerUri"); var ChartRequests = (function () { function ChartRequests() { } ChartRequests.getChartImage = function (uri, chartLayout, width, height) { return analytics_internal_1.ajax(uri, 'chart', encodeURIComponent(JSON.stringify({ width: width, height: height, Chart: JSON.stringify({ 'ChartXmlSerializer': { '@version': '16.2.0.0', Chart: chartLayout } }) }))); }; ChartRequests.fieldListCallback = function (request) { var requestJson = JSON.stringify(request); var encodedJson = encodeURIComponent(requestJson); return analytics_internal_1.ajax(_handlerUri_1.HandlerUri(), 'fieldList', encodedJson); }; return ChartRequests; }()); exports.ChartRequests = ChartRequests;