UNPKG

victory-area

Version:
90 lines 5.79 kB
import React from "react"; import { Data, Domain, EventPropTypeInterface, InterpolationPropType, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass } from "victory-core"; export type VictoryAreaTTargetType = "data" | "labels" | "parent"; export interface VictoryAreaProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabelableProps { eventKey?: string[] | number[] | StringOrNumberOrCallback; events?: EventPropTypeInterface<VictoryAreaTTargetType, string | number>[]; interpolation?: InterpolationPropType | Function; style?: VictoryStyleInterface; } interface VictoryAreaBase extends EventsMixinClass<VictoryAreaProps> { } /** * Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes. * Add VictoryArea as a child of VictoryChart for a complete chart. */ declare class VictoryAreaBase extends React.Component<VictoryAreaProps> { static animationWhitelist: string[]; static defaultProps: VictoryAreaProps; static displayName: string; static role: string; static continuous: boolean; static defaultTransitions: import("victory-core").AnimatePropTypeInterface; static defaultPolarTransitions: import("victory-core").AnimatePropTypeInterface; static getDomain: typeof Domain.getDomainWithZero; static getData: typeof Data.getData; static getBaseProps(props: any): any; static expectedComponents: string[]; shouldAnimate(): boolean; render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>; } export declare const VictoryArea: { new (props: import("victory-core").EventMixinCommonProps): { state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; getEvents: (p: any, target: any, eventKey: any) => any; externalMutations: {} | undefined; calculatedState: {}; globalEvents: {}; prevGlobalEventKeys: string[]; boundGlobalEvents: {}; shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean; componentDidMount(): void; componentDidUpdate(prevProps: any): void; componentWillUnmount(): void; addGlobalListener(key: any): void; removeGlobalListener(key: any): void; getStateChanges(props: any): {}; applyExternalMutations(props: any, externalMutations: any): void; getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues; getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined; cacheValues(obj: any): void; getBaseProps(props: any, getSharedEventState: any): Record<string, object>; getAllEvents(props: any): any; getComponentProps(component: React.ReactNode, type: string, index: string | number): any; renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>; animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement; renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>; renderData(props: any, shouldRenderDatum?: (datum: any) => boolean): React.DetailedReactHTMLElement<any, HTMLElement>; context: unknown; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; render(): React.ReactNode; readonly props: Readonly<import("victory-core").EventMixinCommonProps>; refs: { [key: string]: React.ReactInstance; }; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void; componentEvents: Array<import("@/victory-core/lib/victory-util/events").ComponentEvent>; getSharedEventState: (key: string, value: string) => unknown; baseProps: Record<string, object>; dataKeys: string[]; hasEvents: unknown; events: unknown; }; getBaseProps?(props: import("victory-core").EventMixinCommonProps): import("victory-core").EventMixinCalculatedValues["baseProps"]; role?: import("victory-core").VictoryComponentRole; expectedComponents?: string[] | undefined; getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: Array<React.ReactNode>, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined; animationWhitelist?: string[] | undefined; } & typeof VictoryAreaBase; export {}; //# sourceMappingURL=victory-area.d.ts.map