UNPKG

@nova-ui/charts

Version:

Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that

24 lines (23 loc) 1.05 kB
import { BehaviorSubject } from "rxjs"; import { D3Selection, IInteractionEvent, InteractionType } from "./types"; import { IAllAround } from "../grid/types"; /** * @ignore */ export declare class MouseInteractiveArea<TTarget extends D3Selection<SVGGElement> = D3Selection<SVGGElement>, TInteractiveArea extends D3Selection<SVGRectElement> = D3Selection<SVGRectElement>> { private target; private interactiveArea; private gridMargin?; static CONTAINER_CLASS: string; readonly active: BehaviorSubject<boolean>; readonly interaction: BehaviorSubject<IInteractionEvent>; private isActive; constructor(target: TTarget, interactiveArea: TInteractiveArea, cursor: string, gridMargin?: IAllAround<number> | undefined); onMouseInteraction: (interactionType: InteractionType) => void; onMouseOver: () => void; onMouseOut: () => void; /** @deprecated - Please use 'onMouseOver' instead */ onMouseEnter: () => void; /** @deprecated - Please use 'onMouseOut' instead */ onMouseLeave: () => void; }