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

42 lines (41 loc) 1.71 kB
import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, QueryList, SimpleChanges } from "@angular/core"; import { Subject } from "rxjs"; import { ChartTooltipDirective } from "./chart-tooltip.directive"; import { ChartTooltipsPlugin } from "../core/plugins/tooltips/chart-tooltips-plugin"; import * as i0 from "@angular/core"; export declare class ChartTooltipsComponent implements OnChanges, OnDestroy { private changeDetector; plugin: ChartTooltipsPlugin; template: ElementRef; tooltips: QueryList<ChartTooltipDirective>; openTooltips: Subject<void>; closeTooltips: Subject<void>; private unsubscribe$; private simulation; private tooltipDirectivesIndex; private closePending; private isOpen; private openTimeout; private collisionTimeout; private closeTimeout; constructor(changeDetector: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; trackByFn(index: number, item: any): string | undefined; private handleOpen; private handleClose; /** * Runs the D3 forceCollide based tooltip collision avoidance algorithm */ private avoidTooltipCollisions; /** * Starts the force simulation to avoid tooltip overlap * * @param tooltipIndex * @param tooltipPositions */ private startSimulation; private isVertical; static ɵfac: i0.ɵɵFactoryDeclaration<ChartTooltipsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ChartTooltipsComponent, "nui-chart-tooltips", never, { "plugin": { "alias": "plugin"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, false, never>; }