@swimlane/ngx-charts
Version:
Declarative Charting Framework for Angular
54 lines (53 loc) • 2.75 kB
TypeScript
import { EventEmitter, OnChanges, ElementRef, SimpleChanges, AfterViewInit } from '@angular/core';
import { Orientation } from '../types/orientation.enum';
import { TextAnchor } from '../types/text-anchor.enum';
import * as i0 from "@angular/core";
export declare class XAxisTicksComponent implements OnChanges, AfterViewInit {
private platformId;
scale: any;
orient: Orientation;
tickArguments: number[];
tickValues: string[] | number[];
tickStroke: string;
trimTicks: boolean;
maxTickLength: number;
tickFormatting: any;
showGridLines: boolean;
gridLineHeight: number;
width: number;
rotateTicks: boolean;
wrapTicks: boolean;
dimensionsChanged: EventEmitter<any>;
verticalSpacing: number;
rotateLabels: boolean;
innerTickSize: number;
outerTickSize: number;
tickPadding: number;
textAnchor: TextAnchor;
maxTicksLength: number;
maxAllowedLength: number;
adjustedScale: any;
textTransform: string;
ticks: any[];
tickFormat: (o: any) => any;
height: number;
approxHeight: number;
maxPossibleLengthForTickIfWrapped: number;
ticksElement: ElementRef;
get isWrapTicksSupported(): any;
constructor(platformId: any);
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
updateDims(): void;
update(): void;
getRotationAngle(ticks: any[]): number;
getTicks(): any[];
getMaxTicks(tickWidth: number): number;
tickTransform(tick: number): string;
gridLineTransform(): string;
tickTrim(label: string): string;
getMaxPossibleLengthForTick(longestLabel: string): number;
tickChunks(label: string): string[];
static ɵfac: i0.ɵɵFactoryDeclaration<XAxisTicksComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisTicksComponent, "g[ngx-charts-x-axis-ticks]", never, { "scale": { "alias": "scale"; "required": false; }; "orient": { "alias": "orient"; "required": false; }; "tickArguments": { "alias": "tickArguments"; "required": false; }; "tickValues": { "alias": "tickValues"; "required": false; }; "tickStroke": { "alias": "tickStroke"; "required": false; }; "trimTicks": { "alias": "trimTicks"; "required": false; }; "maxTickLength": { "alias": "maxTickLength"; "required": false; }; "tickFormatting": { "alias": "tickFormatting"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "gridLineHeight": { "alias": "gridLineHeight"; "required": false; }; "width": { "alias": "width"; "required": false; }; "rotateTicks": { "alias": "rotateTicks"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "dimensionsChanged": "dimensionsChanged"; }, never, never, false, never>;
}