devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
50 lines (49 loc) • 2.69 kB
TypeScript
/**
* DevExpress HTML/JS Reporting (chart\_initializer.d.ts)
* Version: 24.2.7
* Build date: Apr 29, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { FieldListProvider, IDataSourceInfo, IPropertiesAccessibilityProvider } from '@devexpress/analytics-core/analytics-internal';
import { ISerializationInfoArray } from '@devexpress/analytics-core/analytics-utils';
import * as ko from 'knockout';
import { ChartStructureTreeListController } from './internal/chartStructure/_controller';
import { ChartStructureObjectProvider } from './internal/chartStructure/_provider';
import { ChartControlViewModel } from './_control';
import { IChartControlCallbacks } from './_IChartControlCallbacks';
export declare const ActionId: {
Save: string;
};
export declare function registerControls(): void;
export declare function _setChartLimitation(chartLimitation: any): void;
export declare function updateChartSurfaceContentSize(element: any, surfaceSize: ko.Observable<number> | ko.Computed<number>, rtl?: boolean): () => void;
export interface IChartDesignerOptions {
data: {
chartSource?: ko.Observable<any>;
chart?: ko.Observable<ChartControlViewModel>;
dataSource?: ko.Observable<IDataSourceInfo>;
availableChartDataSources?: ko.Computed<Array<{
displayName: string;
value: any;
}>>;
width?: number;
height?: number;
};
canAddItems?: ko.Computed<boolean>;
fieldListProvider?: FieldListProvider;
callbacks?: IChartControlCallbacks;
visible?: ko.Observable<boolean>;
localization?: any;
rtl?: boolean;
accessibilityProvider?: IPropertiesAccessibilityProvider;
}
export declare function subscribeTreelistArray(chartStructureProvider: any, array: ko.ObservableArray<any>, getPath: () => string[], subscribeNewItem?: (item: any, array: any, path: any) => void): ko.Subscription;
export declare function getPropertyInfo(serializationsInfo: ISerializationInfoArray, index: number, pathComponets: any): import("@devexpress/analytics-core/analytics-utils").ISerializationInfo;
export declare function createChartStructure(chart: ChartControlViewModel, selectedItem: any, subscriptions: any, surface: any, undoEngine: any, dragdrophandler: any): {
itemsProvider: ChartStructureObjectProvider;
treeListController: ChartStructureTreeListController;
expandRootItems: boolean;
selectedPath: ko.Observable<string> | ko.Computed<string>;
};
export declare function createChartDesigner(element: HTMLElement, options: IChartDesignerOptions, applyBindings?: boolean): any;