| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import { BrushCfg } from '../types';
- /**
- * G2 已经内置了 brush、brush-x、brush-y 等交互,其它:
- *
- * 1. element-range-highlight 是否可用重命名为 brush-highlight?(mask 可以移动)
- * 2. brush-visible 与 brush 的区别是?
- */
- declare function isPointInView(context: any): any;
- /**
- * 获取 交互 start 阶段的相关配置
- */
- export declare function getInteractionCfg(interactionType: string, brushType?: string, options?: BrushCfg): {
- showEnable: ({
- trigger: string;
- action: string;
- isEnable: (context: any) => boolean;
- } | {
- trigger: string;
- action: string;
- isEnable?: undefined;
- })[];
- start: {
- trigger: string;
- isEnable: typeof isPointInView;
- action: string[];
- arg: {
- maskStyle: import("@antv/g2").ShapeAttrs;
- }[];
- }[];
- processing: {
- trigger: string;
- isEnable: typeof isPointInView;
- action: string[];
- }[];
- end: {
- trigger: string;
- isEnable: typeof isPointInView;
- action: string[];
- }[];
- rollback: {
- trigger: string;
- action: string[];
- }[];
- } | {
- showEnable: ({
- trigger: string;
- action: string;
- isEnable: (context: any) => boolean;
- } | {
- trigger: string;
- action: string;
- isEnable?: undefined;
- })[];
- start: ({
- trigger: string;
- isEnable: (context: any) => boolean;
- action: string[];
- arg: {
- maskStyle: import("@antv/g2").ShapeAttrs;
- }[];
- } | {
- trigger: string;
- action: string[];
- isEnable?: undefined;
- arg?: undefined;
- })[];
- processing: {
- trigger: string;
- action: string[];
- }[];
- end: ({
- trigger: string;
- action: string[];
- isEnable?: undefined;
- } | {
- trigger: string;
- isEnable(context: any): boolean;
- action: string[];
- })[];
- rollback: {
- trigger: string;
- action: string[];
- }[];
- } | {
- showEnable?: undefined;
- start?: undefined;
- processing?: undefined;
- end?: undefined;
- rollback?: undefined;
- };
- export {};
|