import { INode, INodeBase } from './node'; import { IEdge, IEdgeBase } from './edge'; import { IGraph } from './graph'; import { IPosition } from '../common'; export interface IEventStrategySettings { isDefaultSelectEnabled: boolean; isDefaultHoverEnabled: boolean; isDefaultMultiSelectEnabled: boolean; isDefaultSelectCascadeEnabled: boolean; } export interface IEventStrategyResponse { isStateChanged: boolean; changedSubject?: INode | IEdge; } export interface IEventStrategyClickOptions { isAppend?: boolean; } export interface IEventStrategy { isSelectEnabled: boolean; isHoverEnabled: boolean; isMultiSelectEnabled: boolean; isSelectCascadeEnabled: boolean; onMouseClick: (graph: IGraph, point: IPosition, options?: IEventStrategyClickOptions) => IEventStrategyResponse; onMouseMove: (graph: IGraph, point: IPosition) => IEventStrategyResponse; onMouseRightClick: (graph: IGraph, point: IPosition) => IEventStrategyResponse; onMouseDoubleClick: (graph: IGraph, point: IPosition) => IEventStrategyResponse; } export declare class DefaultEventStrategy implements IEventStrategy { private _lastHoveredNode?; isSelectEnabled: boolean; isHoverEnabled: boolean; isMultiSelectEnabled: boolean; isSelectCascadeEnabled: boolean; constructor(settings: IEventStrategySettings); onMouseClick(graph: IGraph, point: IPosition, options?: IEventStrategyClickOptions): IEventStrategyResponse; onMouseMove(graph: IGraph, point: IPosition): IEventStrategyResponse; onMouseRightClick(graph: IGraph, point: IPosition): IEventStrategyResponse; onMouseDoubleClick(graph: IGraph, point: IPosition): IEventStrategyResponse; }