1 | import { EventEmitter, ElementRef, SimpleChanges, OnChanges, ChangeDetectorRef } from '@angular/core';
|
2 | import { BaseType } from 'd3-selection';
|
3 | import { IBoxModel } from '../models/chart-data.model';
|
4 | import { IPoint, IVector2D } from '../models/coordinates.model';
|
5 | import { BarOrientation } from '../common/types/bar-orientation.enum';
|
6 | import { Gradient } from '../common/types/gradient.interface';
|
7 | import * as i0 from "@angular/core";
|
8 | type LineCoordinates = [IVector2D, IVector2D, IVector2D, IVector2D];
|
9 | export declare function clonePoint(original: IPoint): IPoint;
|
10 | export declare function cloneVector2d(original: IVector2D): IVector2D;
|
11 | export declare function cloneLineCoordinates(original: LineCoordinates): LineCoordinates;
|
12 | export declare class BoxComponent implements OnChanges {
|
13 | protected cd: ChangeDetectorRef;
|
14 | strokeColor: string;
|
15 | strokeWidth: number;
|
16 | fill: string;
|
17 | data: IBoxModel;
|
18 | width: number;
|
19 | height: number;
|
20 | x: number;
|
21 | y: number;
|
22 | lineCoordinates: LineCoordinates;
|
23 | roundEdges: boolean;
|
24 | gradient: boolean;
|
25 | gradientStops: Gradient[];
|
26 | offset: number;
|
27 | isActive: boolean;
|
28 | animations: boolean;
|
29 | ariaLabel: string;
|
30 | noBarWhenZero: boolean;
|
31 | select: EventEmitter<IBoxModel>;
|
32 | activate: EventEmitter<IBoxModel>;
|
33 | deactivate: EventEmitter<IBoxModel>;
|
34 | BarOrientation: typeof BarOrientation;
|
35 | nativeElm: any;
|
36 | oldPath: string;
|
37 | boxPath: string;
|
38 | oldLineCoordinates: LineCoordinates;
|
39 | gradientId: string;
|
40 | gradientFill: string;
|
41 | initialized: boolean;
|
42 | hasGradient: boolean;
|
43 | hideBar: boolean;
|
44 |
|
45 | maskLine: string;
|
46 |
|
47 | maskLineId: string;
|
48 | boxStrokeWidth: number;
|
49 | whiskerStrokeWidth: number;
|
50 | medianLineWidth: number;
|
51 | constructor(element: ElementRef, cd: ChangeDetectorRef);
|
52 | ngOnChanges(changes: SimpleChanges): void;
|
53 | update(): void;
|
54 | loadAnimation(): void;
|
55 | updatePathEl(): void;
|
56 | updateLineEl(): void;
|
57 | /**
|
58 | * See [D3 Selections](https:
|
59 | * @param d The joined data.
|
60 | * @param index The index of the element within the selection
|
61 | * @param node The node element (Line).
|
62 | */
|
63 | lineTween(attr: string, d: any, index: number, node: BaseType[] | ArrayLike<BaseType>): any;
|
64 | pathTween(d1: string, precision: number): () => (t: any) => string;
|
65 | getStartingPath(): string;
|
66 | getPath(): string;
|
67 | getStartingLineCoordinates(): LineCoordinates;
|
68 | getRadius(): number;
|
69 | getGradient(): Gradient[];
|
70 | getStartOpacity(): number;
|
71 | get edges(): boolean[];
|
72 | onMouseEnter(): void;
|
73 | onMouseLeave(): void;
|
74 | private checkToHideBar;
|
75 | static ɵfac: i0.ɵɵFactoryDeclaration<BoxComponent, never>;
|
76 | static ɵcmp: i0.ɵɵComponentDeclaration<BoxComponent, "g[ngx-charts-box]", never, { "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "data": { "alias": "data"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "lineCoordinates": { "alias": "lineCoordinates"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "gradientStops": { "alias": "gradientStops"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "noBarWhenZero": { "alias": "noBarWhenZero"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
|
77 | }
|
78 | export {};
|
79 |
|
\ | No newline at end of file |