You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

4 months ago
import type EventEmitter from '@antv/event-emitter';
import type { DisplayObject } from '@antv/g';
import { Document } from '@antv/g';
import { Target } from '../../types';
import type { BaseEvent } from './events';
export * from './events';
/**
* <zh/> Event
*
* <en/> Trigger event based on Event object
* @param emitter - <zh/> | <en/> event target
* @param event - <zh/> | <en/> event object
*/
export declare function emit(emitter: EventEmitter, event: BaseEvent): void;
/**
* <zh/>
*
* <en/> Get the event target element
* @param shape - <zh/> | <en/> event shape
* @returns <zh/> | <en/> target element
* @remarks
* <zh/>
*
* <en/> Most of the event responses will hit the internal graphics of the element, and this method can be used to get the element to which it belongs
*/
export declare function eventTargetOf(shape?: DisplayObject | Document): {
type: string;
element: Target;
} | null;