@covalent/echarts
Version:
Teradata UI Platform Echarts Module
157 lines (153 loc) • 6.08 kB
TypeScript
import * as i0 from '@angular/core';
import { OnChanges, OnDestroy, TemplateRef, Type } from '@angular/core';
import { ITdLabel, ITdItemStyle, ITdShadow, TdTextPosition, TdTextAlign } from '@covalent/echarts/base';
type TdToolboxOrient = 'horizontal' | 'vertical';
type TdImageType = 'png' | 'jpeg';
interface ITdAcceptedBrushTypes {
rect?: string;
polygon?: string;
lineX?: string;
lineY?: string;
keep?: string;
clear?: string;
}
interface ITdAcceptedMagicTypes {
line?: string;
bar?: string;
stack?: string;
tiled?: string;
}
interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {
}
interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {
textPosition?: TdTextPosition;
textAlign?: TdTextAlign;
emphasis?: ITdToolboxIconEmphasis;
}
interface ITdZoomTitles {
zoom?: string;
back?: string;
}
interface ITdSaveAsImage {
type?: TdImageType;
name?: string;
backgroundColor?: any;
excludeComponents?: string[];
show?: boolean;
title?: string;
icon?: string;
iconStyle?: ITdFeatureIconStyle;
pixelRatio?: number;
}
interface ITdRestore {
show?: boolean;
title?: string;
icon?: string;
iconStyle?: ITdFeatureIconStyle;
}
interface ITdDataView {
show?: boolean;
title?: string;
icon?: string;
iconStyle?: ITdFeatureIconStyle;
readOnly?: boolean;
optionToContent?: Function;
contentToOption?: Function;
lang?: string[];
textareaColor?: string;
textareaBorderColor?: string;
textColor?: string;
buttonColor?: string;
buttonTextColor?: string;
}
interface ITdDataZoom {
show?: boolean;
title?: ITdZoomTitles;
icon?: ITdZoomTitles;
iconStyle?: ITdFeatureIconStyle;
xAxisIndex?: number | number[] | boolean;
yAxisIndex?: number | number[] | boolean;
}
interface ITdMagicType {
show?: boolean;
type?: string[];
title?: ITdAcceptedMagicTypes;
icon?: ITdAcceptedMagicTypes;
iconStyle?: ITdFeatureIconStyle;
option?: {
line?: object;
bar?: object;
stack?: object;
tiled?: object;
};
seriesIndex?: {
line?: any[];
bar?: any[];
stack?: any[];
tiled?: any[];
};
}
interface ITdBrush {
type?: any[];
icon?: ITdAcceptedBrushTypes;
title?: ITdAcceptedBrushTypes;
}
interface ITdToolboxFeature {
saveAsImage?: ITdSaveAsImage;
restore?: ITdRestore;
dataView?: ITdDataView;
dataZoom?: ITdDataZoom;
magicType?: ITdMagicType;
brush?: ITdBrush;
}
declare class TdChartViewDataFormatterDirective {
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartViewDataFormatterDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TdChartViewDataFormatterDirective, "ng-template[tdViewDataFormatter]", never, {}, {}, never, never, true, never>;
}
declare class TdChartToolboxComponent implements OnChanges, OnDestroy {
private _changeDetectorRef;
private _elementRef;
private _optionsService;
private _state;
config: any;
show: boolean;
trigger?: string;
orient?: TdToolboxOrient;
itemSize?: number;
itemGap?: number;
showTitle?: boolean | undefined;
label?: ITdLabel;
feature?: ITdToolboxFeature;
iconStyle?: ITdFeatureIconStyle;
zlevel?: number;
z?: number;
transitionDuration: number;
left: string | number;
top: string | number;
right: string | number;
bottom: string | number;
width: string | number;
height: string | number;
formatterTemplate: TemplateRef<any>;
fullTemplate: TemplateRef<any>;
ngOnChanges(): void;
ngOnDestroy(): void;
private _setOptions;
private _removeOption;
private _checkFormatterTemplate;
private _optionToContentFormatter;
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartToolboxComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartToolboxComponent, "td-chart-toolbox", never, { "config": { "alias": "config"; "required": false; }; "show": { "alias": "show"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "orient": { "alias": "orient"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "itemGap": { "alias": "itemGap"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "label": { "alias": "label"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "iconStyle": { "alias": "iconStyle"; "required": false; }; "zlevel": { "alias": "zlevel"; "required": false; }; "z": { "alias": "z"; "required": false; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; }; "left": { "alias": "left"; "required": false; }; "top": { "alias": "top"; "required": false; }; "right": { "alias": "right"; "required": false; }; "bottom": { "alias": "bottom"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, ["formatterTemplate"], never, true, never>;
}
declare const TOOLBOX_MODULE_COMPONENTS: Type<any>[];
/**
* @deprecated This module is deprecated and will be removed in future versions.
* Please migrate to using standalone components as soon as possible.
*/
declare class CovalentToolboxEchartsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentToolboxEchartsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentToolboxEchartsModule, never, [typeof TdChartToolboxComponent, typeof TdChartViewDataFormatterDirective], [typeof TdChartToolboxComponent, typeof TdChartViewDataFormatterDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentToolboxEchartsModule>;
}
export { CovalentToolboxEchartsModule, TOOLBOX_MODULE_COMPONENTS, TdChartToolboxComponent, TdChartViewDataFormatterDirective };
export type { ITdAcceptedBrushTypes, ITdAcceptedMagicTypes, ITdBrush, ITdDataView, ITdDataZoom, ITdFeatureIconStyle, ITdMagicType, ITdRestore, ITdSaveAsImage, ITdToolboxFeature, ITdToolboxIconEmphasis, ITdZoomTitles, TdImageType, TdToolboxOrient };