UNPKG

1.01 kBTypeScriptView Raw
1import { View } from 'src/chart';
2import { Point, ShapeAttrs } from '../../dependents';
3import { TooltipCfg } from '../../interface';
4import Action from './base';
5export declare function getItemsOfView(view: View, point: Point, tooltipCfg: TooltipCfg): any[];
6/**
7 * 背景框的 Action. 只作用于 interval 和 schema geometry
8 * @ignore
9 */
10declare class ActiveRegion extends Action {
11 private items;
12 private regionPath;
13 /**
14 * 显示
15 * @param {ShapeAttrs} style region-path 的样式
16 * @param {number} appendRatio 适用于笛卡尔坐标系. 对于 x 轴非 linear 类型: 默认:0.25, x 轴 linear 类型: 默认 0
17 * @param {number} appendWidth 适用于笛卡尔坐标系. 像素级别,优先级 > appendRatio
18 */
19 show(args?: {
20 style: ShapeAttrs;
21 appendRatio?: number;
22 appendWidth?: number;
23 }): void;
24 /**
25 * 隐藏
26 */
27 hide(): void;
28 /**
29 * 销毁
30 */
31 destroy(): void;
32}
33export default ActiveRegion;