1 | import { EventEmitter, TemplateRef } from '@angular/core';
|
2 | import { ColorHelper } from '../common/color.helper';
|
3 | import { PlacementTypes } from './tooltip/position';
|
4 | import { StyleTypes } from './tooltip/style.type';
|
5 | import { ViewDimensions } from './types/view-dimension.interface';
|
6 | import * as i0 from "@angular/core";
|
7 | export interface Tooltip {
|
8 | color: string;
|
9 | d0: number;
|
10 | d1: number;
|
11 | max: number;
|
12 | min: number;
|
13 | name: any;
|
14 | series: any;
|
15 | value: any;
|
16 | }
|
17 | export declare class TooltipArea {
|
18 | private platformId;
|
19 | anchorOpacity: number;
|
20 | anchorPos: number;
|
21 | anchorValues: Tooltip[];
|
22 | lastAnchorPos: number;
|
23 | placementTypes: typeof PlacementTypes;
|
24 | styleTypes: typeof StyleTypes;
|
25 | dims: ViewDimensions;
|
26 | xSet: any[];
|
27 | xScale: any;
|
28 | yScale: any;
|
29 | results: any[];
|
30 | colors: ColorHelper;
|
31 | showPercentage: boolean;
|
32 | tooltipDisabled: boolean;
|
33 | tooltipTemplate: TemplateRef<any>;
|
34 | hover: EventEmitter<{
|
35 | value: any;
|
36 | }>;
|
37 | tooltipAnchor: any;
|
38 | constructor(platformId: any);
|
39 | getValues(xVal: any): Tooltip[];
|
40 | mouseMove(event: any): void;
|
41 | findClosestPointIndex(xPos: number): number;
|
42 | showTooltip(): void;
|
43 | hideTooltip(): void;
|
44 | getToolTipText(tooltipItem: Tooltip): string;
|
45 | static ɵfac: i0.ɵɵFactoryDeclaration<TooltipArea, never>;
|
46 | static ɵcmp: i0.ɵɵComponentDeclaration<TooltipArea, "g[ngx-charts-tooltip-area]", never, { "dims": { "alias": "dims"; "required": false; }; "xSet": { "alias": "xSet"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "results": { "alias": "results"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "showPercentage": { "alias": "showPercentage"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; }, { "hover": "hover"; }, never, never, false, never>;
|
47 | }
|