echarts
Version:
Apache ECharts is a powerful, interactive charting and data visualization library for browser
42 lines (41 loc) • 1.48 kB
TypeScript
import * as featureManager from './featureManager.js';
import ComponentModel from '../../model/Component.js';
import { ComponentOption, BoxLayoutOptionMixin, LayoutOrient, ZRColor, BorderOptionMixin, ItemStyleOption, LabelOption, CommonTooltipOption, Dictionary } from '../../util/types.js';
export interface ToolboxTooltipFormatterParams {
componentType: 'toolbox';
name: string;
title: string;
$vars: ['name', 'title'];
}
export interface ToolboxOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
mainType?: 'toolbox';
show?: boolean;
orient?: LayoutOrient;
backgroundColor?: ZRColor;
borderRadius?: number | number[];
padding?: number | number[];
itemSize?: number;
itemGap?: number;
showTitle?: boolean;
iconStyle?: ItemStyleOption;
emphasis?: {
iconStyle?: ItemStyleOption;
};
textStyle?: LabelOption;
tooltip?: CommonTooltipOption<ToolboxTooltipFormatterParams>;
/**
* Write all supported features in the final export option.
*/
feature?: Partial<Dictionary<featureManager.ToolboxFeatureOption>>;
}
declare class ToolboxModel extends ComponentModel<ToolboxOption> {
static type: "toolbox";
type: "toolbox";
static layoutMode: {
readonly type: "box";
readonly ignoreSize: true;
};
optionUpdated(): void;
static defaultOption: ToolboxOption;
}
export default ToolboxModel;