/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import { Scale } from "../../../scale"; declare enum Orientation { Top = "top", Right = "right", Bottom = "bottom", Left = "left" } declare enum OrientationInt { Top = 1, Right = 2, Bottom = 3, Left = 4 } declare enum Direction { Vertical = "vertical", Horizontal = "horizontal" } interface AxisArgs { scale: Scale; orientation: Orientation; tickCount?: number; tickValues?: any[]; tickFormat?: (t: any) => string; tickSize?: number; tickSizeInner?: number; tickSizeOuter?: number; tickPadding?: number; offset?: number; includeDomain?: boolean; } type Tick = { transform: string; size: number; offset: number; textOffset: string; label: string; textAnchor: string; value: any; }; declare class Axis extends Component { get tickCount(): number | null; get tickValues(): any[] | null; get tickFormat(): ((t: any) => string) | null; get tickSizeInner(): number; get tickSizeOuter(): number; get tickPadding(): number; get offset(): number; get includeDomain(): boolean; get orientation(): OrientationInt; get direction(): Direction; get position(): (d: number) => number; get k(): number; get domainPath(): string; get values(): any; get format(): any; get spacing(): number; get ticks(): Tick[]; } export { Orientation, OrientationInt, Direction, AxisArgs, Tick, Axis as default };