Socket
Socket
Sign inDemoInstall

recharts

Package Overview
Dependencies
Maintainers
3
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recharts - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

2

package.json
{
"name": "recharts",
"version": "2.6.1",
"version": "2.6.2",
"description": "React charts",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement, SVGProps } from 'react';
import React, { PureComponent, ReactElement, SVGProps } from 'react';
import { CurveType, Point as CurvePoint } from '../shape/Curve';

@@ -125,3 +125,3 @@ import { Props as DotProps } from '../shape/Dot';

};
static renderDotItem: (option: AreaDot, props: any) => JSX.Element;
static renderDotItem: (option: AreaDot, props: any) => React.JSX.Element;
state: State;

@@ -132,11 +132,11 @@ static getDerivedStateFromProps(nextProps: Props, prevState: State): State;

handleAnimationStart: () => void;
renderDots(needClip: boolean, clipPathId: string): JSX.Element;
renderHorizontalRect(alpha: number): JSX.Element;
renderVerticalRect(alpha: number): JSX.Element;
renderClipRect(alpha: number): JSX.Element;
renderAreaStatically(points: AreaPointItem[], baseLine: Props['baseLine'], needClip: boolean, clipPathId: string): JSX.Element;
renderAreaWithAnimation(needClip: boolean, clipPathId: string): JSX.Element;
renderArea(needClip: boolean, clipPathId: string): JSX.Element;
render(): JSX.Element;
renderDots(needClip: boolean, clipPathId: string): React.JSX.Element;
renderHorizontalRect(alpha: number): React.JSX.Element;
renderVerticalRect(alpha: number): React.JSX.Element;
renderClipRect(alpha: number): React.JSX.Element;
renderAreaStatically(points: AreaPointItem[], baseLine: Props['baseLine'], needClip: boolean, clipPathId: string): React.JSX.Element;
renderAreaWithAnimation(needClip: boolean, clipPathId: string): React.JSX.Element;
renderArea(needClip: boolean, clipPathId: string): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement } from 'react';
import React, { PureComponent, ReactElement } from 'react';
import { Props as RectangleProps } from '../shape/Rectangle';

@@ -111,10 +111,10 @@ import { Props as XAxisProps } from './XAxis';

handleAnimationStart: () => void;
static renderRectangle(option: RectangleShapeType, props: any): JSX.Element;
renderRectanglesStatically(data: BarRectangleItem[]): JSX.Element[];
renderRectanglesWithAnimation(): JSX.Element;
renderRectangles(): JSX.Element | JSX.Element[];
renderBackground(): JSX.Element[];
renderErrorBar(needClip: boolean, clipPathId: string): JSX.Element;
render(): JSX.Element;
static renderRectangle(option: RectangleShapeType, props: any): React.JSX.Element;
renderRectanglesStatically(data: BarRectangleItem[]): React.JSX.Element[];
renderRectanglesWithAnimation(): React.JSX.Element;
renderRectangles(): React.JSX.Element | React.JSX.Element[];
renderBackground(): React.JSX.Element[];
renderErrorBar(needClip: boolean, clipPathId: string): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -71,4 +71,4 @@ import React, { PureComponent, ReactText, ReactElement, TouchEvent, SVGProps } from 'react';

travellerDragStartHandlers?: Record<BrushTravellerId, (event: React.MouseEvent<SVGGElement> | TouchEvent<SVGGElement>) => void>;
static renderDefaultTraveller(props: any): JSX.Element;
static renderTraveller(option: BrushTravellerType, props: any): JSX.Element;
static renderDefaultTraveller(props: any): React.JSX.Element;
static renderTraveller(option: BrushTravellerType, props: any): React.JSX.Element;
static getDerivedStateFromProps(nextProps: Props, prevState: State): State;

@@ -97,9 +97,9 @@ componentWillUnmount(): void;

handleTravellerMove(e: React.Touch | React.MouseEvent<SVGGElement> | MouseEvent): void;
renderBackground(): JSX.Element;
renderBackground(): React.JSX.Element;
renderPanorama(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>;
renderTravellerLayer(travellerX: number, id: BrushTravellerId): JSX.Element;
renderSlide(startX: number, endX: number): JSX.Element;
renderText(): JSX.Element;
render(): JSX.Element;
renderTravellerLayer(travellerX: number, id: BrushTravellerId): React.JSX.Element;
renderSlide(startX: number, endX: number): React.JSX.Element;
renderText(): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { ReactElement, ReactNode, Component, SVGProps } from 'react';
import React, { ReactElement, ReactNode, Component, SVGProps } from 'react';
import { CartesianViewBox, PresentationAttributesAdaptChildEvent, CartesianTickItem, AxisInterval } from '../util/types';

@@ -74,7 +74,7 @@ export interface CartesianAxisProps {

getTickVerticalAnchor(): string;
renderAxisLine(): JSX.Element;
static renderTickItem(option: Props['tick'], props: any, value: ReactNode): JSX.Element;
renderTicks(ticks: CartesianTickItem[], fontSize: string, letterSpacing: string): JSX.Element;
render(): JSX.Element;
renderAxisLine(): React.JSX.Element;
static renderTickItem(option: Props['tick'], props: any, value: ReactNode): React.JSX.Element;
renderTicks(ticks: CartesianTickItem[], fontSize: string, letterSpacing: string): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement, SVGProps } from 'react';
import React, { PureComponent, ReactElement, SVGProps } from 'react';
import { ChartOffset, D3Scale } from '../util/types';

@@ -44,10 +44,10 @@ import { Props as XAxisProps } from './XAxis';

};
static renderLineItem(option: GridLineType, props: any): JSX.Element;
renderHorizontal(horizontalPoints: number[]): JSX.Element;
renderVertical(verticalPoints: number[]): JSX.Element;
renderVerticalStripes(verticalPoints: number[]): JSX.Element;
renderHorizontalStripes(horizontalPoints: number[]): JSX.Element;
renderBackground(): JSX.Element;
render(): JSX.Element;
static renderLineItem(option: GridLineType, props: any): React.JSX.Element;
renderHorizontal(horizontalPoints: number[]): React.JSX.Element;
renderVertical(verticalPoints: number[]): React.JSX.Element;
renderVerticalStripes(verticalPoints: number[]): React.JSX.Element;
renderHorizontalStripes(horizontalPoints: number[]): React.JSX.Element;
renderBackground(): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { SVGProps } from 'react';
import React, { SVGProps } from 'react';
import { Props as XAxisProps } from './XAxis';

@@ -29,3 +29,3 @@ import { Props as YAxisProps } from './YAxis';

export declare type Props = SVGProps<SVGLineElement> & ErrorBarProps;
export declare function ErrorBar(props: Props): JSX.Element;
export declare function ErrorBar(props: Props): React.JSX.Element;
export declare namespace ErrorBar {

@@ -32,0 +32,0 @@ var defaultProps: {

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement } from 'react';
import React, { PureComponent, ReactElement } from 'react';
import { CurveType, Props as CurveProps, Point as CurvePoint } from '../shape/Curve';

@@ -124,12 +124,12 @@ import { Props as DotProps } from '../shape/Dot';

handleAnimationStart: () => void;
renderErrorBar(needClip: boolean, clipPathId: string): JSX.Element;
static renderDotItem(option: LineDot, props: any): JSX.Element;
renderDots(needClip: boolean, clipPathId: string): JSX.Element;
renderErrorBar(needClip: boolean, clipPathId: string): React.JSX.Element;
static renderDotItem(option: LineDot, props: any): React.JSX.Element;
renderDots(needClip: boolean, clipPathId: string): React.JSX.Element;
renderCurveStatically(points: LinePointItem[], needClip: boolean, clipPathId: string, props?: {
strokeDasharray: string;
}): JSX.Element;
renderCurveWithAnimation(needClip: boolean, clipPathId: string): JSX.Element;
renderCurve(needClip: boolean, clipPathId: string): JSX.Element;
render(): JSX.Element;
}): React.JSX.Element;
renderCurveWithAnimation(needClip: boolean, clipPathId: string): React.JSX.Element;
renderCurve(needClip: boolean, clipPathId: string): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -32,3 +32,3 @@ import React, { ReactElement } from 'react';

export declare type Props = RectangleProps & ReferenceAreaProps;
export declare function ReferenceArea(props: Props): JSX.Element;
export declare function ReferenceArea(props: Props): React.JSX.Element;
export declare namespace ReferenceArea {

@@ -47,4 +47,4 @@ var displayName: string;

};
var renderRect: (option: React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((props: any) => React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>), props: any) => JSX.Element;
var renderRect: (option: React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((props: any) => React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>), props: any) => React.JSX.Element;
}
export {};

@@ -30,3 +30,3 @@ import React, { ReactElement } from 'react';

export declare type Props = DotProps & ReferenceDotProps;
export declare function ReferenceDot(props: Props): JSX.Element;
export declare function ReferenceDot(props: Props): React.JSX.Element;
export declare namespace ReferenceDot {

@@ -45,4 +45,4 @@ var displayName: string;

};
var renderDot: (option: React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((props: any) => React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>), props: any) => JSX.Element;
var renderDot: (option: React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((props: any) => React.ReactElement<SVGElement, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>), props: any) => React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { ReactElement, SVGProps } from 'react';
import React, { ReactElement, SVGProps } from 'react';
import { ImplicitLabelType } from '../component/Label';

@@ -34,3 +34,3 @@ import { CartesianViewBox, D3Scale } from '../util/types';

export declare type Props = SVGProps<SVGLineElement> & ReferenceLineProps;
export declare function ReferenceLine(props: Props): JSX.Element;
export declare function ReferenceLine(props: Props): React.JSX.Element;
export declare namespace ReferenceLine {

@@ -37,0 +37,0 @@ var displayName: string;

@@ -108,10 +108,10 @@ import React, { PureComponent, ReactElement } from 'react';

id: string;
static renderSymbolItem(option: Props['activeShape'] | Props['shape'], props: any): JSX.Element;
renderSymbolsStatically(points: ScatterPointItem[]): JSX.Element[];
renderSymbolsWithAnimation(): JSX.Element;
renderSymbols(): JSX.Element | JSX.Element[];
static renderSymbolItem(option: Props['activeShape'] | Props['shape'], props: any): React.JSX.Element;
renderSymbolsStatically(points: ScatterPointItem[]): React.JSX.Element[];
renderSymbolsWithAnimation(): React.JSX.Element;
renderSymbols(): React.JSX.Element | React.JSX.Element[];
renderErrorBar(): React.ReactElement<import("./ErrorBar").Props, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>[];
renderLine(): JSX.Element;
render(): JSX.Element;
renderLine(): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -179,3 +179,3 @@ import React from 'react';

renderCustomized: (element: React.ReactElement, displayName: string, index: number) => React.ReactElement;
renderClipPath(): JSX.Element;
renderClipPath(): React.JSX.Element;
getXScales(): {

@@ -196,3 +196,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): React.JSX.Element;
context: any;

@@ -199,0 +199,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: CategoricalChartState | ((prevState: Readonly<CategoricalChartState>, props: Readonly<CategoricalChartProps>) => CategoricalChartState | Pick<CategoricalChartState, K>) | Pick<CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -78,46 +78,8 @@ import React, { PureComponent, ReactElement, SVGProps } from 'react';

static renderLinkItem(option: any, props: any): any;
renderLinks(links: SankeyLink[], nodes: SankeyNode[]): JSX.Element;
renderLinks(links: SankeyLink[], nodes: SankeyNode[]): React.JSX.Element;
static renderNodeItem(option: any, props: Props): any;
renderNodes(nodes: SankeyNode[]): JSX.Element;
renderTooltip(): React.DetailedReactHTMLElement<import("../component/DefaultTooltipContent").Props<import("../component/DefaultTooltipContent").ValueType, string | number> & {
allowEscapeViewBox?: {
x?: boolean;
y?: boolean;
};
reverseDirection?: {
x?: boolean;
y?: boolean;
};
content?: import("../component/Tooltip").ContentType<import("../component/DefaultTooltipContent").ValueType, string | number>;
viewBox?: {
x?: number;
y?: number;
width?: number;
height?: number;
};
active?: boolean;
offset?: number;
wrapperStyle?: React.CSSProperties;
cursor?: boolean | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | React.SVGProps<SVGElement>;
coordinate?: {
x?: number;
y?: number;
};
position?: {
x?: number;
y?: number;
};
trigger?: "hover" | "click";
shared?: boolean;
payloadUniqBy?: boolean | ((entry: import("../component/DefaultTooltipContent").Payload<import("../component/DefaultTooltipContent").ValueType, string | number>) => unknown);
isAnimationActive?: boolean;
animationDuration?: number;
animationEasing?: import("../util/types").AnimationTiming;
filterNull?: boolean;
useTranslate3d?: boolean;
} & {
children?: React.ReactNode;
}, HTMLElement>;
render(): JSX.Element;
renderNodes(nodes: SankeyNode[]): React.JSX.Element;
renderTooltip(): ReactElement;
render(): React.JSX.Element;
}
export {};

@@ -97,3 +97,3 @@ /// <reference types="react" />

renderCustomized: (element: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>, displayName: string, index: number) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
renderClipPath(): JSX.Element;
renderClipPath(): import("react").JSX.Element;
getXScales(): {

@@ -114,3 +114,3 @@ [x: string]: Function | "auto" | "linear" | "pow" | "sqrt" | "log" | "identity" | "time" | "band" | "point" | "ordinal" | "quantile" | "quantize" | "utc" | "sequential" | "threshold";

};
render(): JSX.Element;
render(): import("react").JSX.Element;
context: any;

@@ -117,0 +117,0 @@ setState<K extends "offset" | "formattedGraphicalItems" | "activeIndex" | "prevData" | "dataStartIndex" | "prevWidth" | "updateId" | "graphicalItems" | "dataEndIndex" | "xAxisMap" | "yAxisMap" | "tooltipAxis" | "tooltipTicks" | "orderedTooltipTicks" | "chartX" | "chartY" | "activeTooltipIndex" | "isTooltipActive" | "activeCoordinate" | "angleAxisMap" | "radiusAxisMap" | "activePayload" | "tooltipAxisBandSize" | "activeItem" | "activeLabel" | "xValue" | "yValue" | "legendBBox" | "prevHeight" | "prevLayout" | "prevStackOffset" | "prevMargin" | "prevChildren">(state: import("./generateCategoricalChart").CategoricalChartState | ((prevState: Readonly<import("./generateCategoricalChart").CategoricalChartState>, props: Readonly<import("./generateCategoricalChart").CategoricalChartProps>) => import("./generateCategoricalChart").CategoricalChartState | Pick<import("./generateCategoricalChart").CategoricalChartState, K>) | Pick<import("./generateCategoricalChart").CategoricalChartState, K>, callback?: () => void): void;

@@ -84,4 +84,4 @@ import React, { PureComponent } from 'react';

renderNestIndex(): React.ReactElement;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { Component, FunctionComponent, ReactElement } from 'react';
import React, { Component, FunctionComponent, ReactElement } from 'react';
declare type Comp<P> = FunctionComponent<P> | Component<P> | ReactElement<P>;

@@ -6,3 +6,3 @@ export declare type Props<P, C extends Comp<P>> = P & {

};
export declare function Customized<P, C extends Comp<P>>({ component, ...props }: Props<P, C>): JSX.Element;
export declare function Customized<P, C extends Comp<P>>({ component, ...props }: Props<P, C>): React.JSX.Element;
export declare namespace Customized {

@@ -9,0 +9,0 @@ var displayName: string;

@@ -1,2 +0,2 @@

import { PureComponent, ReactNode, MouseEvent, ReactText, ReactElement } from 'react';
import React, { PureComponent, ReactNode, MouseEvent, ReactText, ReactElement } from 'react';
import { DataKey, LegendType, LayoutType, PresentationAttributesAdaptChildEvent } from '../util/types';

@@ -58,6 +58,6 @@ export declare type ContentType = ReactElement | ((props: Props) => ReactNode);

};
renderIcon(data: Payload): JSX.Element;
renderItems(): JSX.Element[];
render(): JSX.Element;
renderIcon(data: Payload): React.JSX.Element;
renderItems(): React.JSX.Element[];
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, CSSProperties, ReactNode } from 'react';
import React, { PureComponent, CSSProperties, ReactNode } from 'react';
export declare type TooltipType = 'none';

@@ -41,4 +41,4 @@ export declare type ValueType = number | string | Array<number | string>;

};
renderContent(): JSX.Element;
render(): JSX.Element;
renderContent(): React.JSX.Element;
render(): React.JSX.Element;
}

@@ -22,3 +22,3 @@ import React, { ReactNode, ReactElement, SVGProps } from 'react';

export declare type ImplicitLabelType = boolean | string | number | ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | Props;
export declare function Label(props: Props): JSX.Element;
export declare function Label(props: Props): React.JSX.Element;
export declare namespace Label {

@@ -25,0 +25,0 @@ var displayName: string;

@@ -23,3 +23,3 @@ import React, { ReactElement, SVGProps } from 'react';

export declare type ImplicitLabelListType<T extends Data> = boolean | ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | Props<T>;
export declare function LabelList<T extends Data>(props: Props<T>): JSX.Element;
export declare function LabelList<T extends Data>(props: Props<T>): React.JSX.Element;
export declare namespace LabelList {

@@ -30,3 +30,3 @@ var displayName: string;

label?: unknown;
}, data: T[], checkPropsLabel?: boolean) => JSX.Element[];
}, data: T[], checkPropsLabel?: boolean) => React.JSX.Element[];
var defaultProps: {

@@ -33,0 +33,0 @@ valueAccessor: (entry: Data) => string | number;

@@ -1,2 +0,2 @@

import { PureComponent, CSSProperties } from 'react';
import React, { PureComponent, CSSProperties } from 'react';
import { Payload, Props as DefaultProps } from './DefaultLegendContent';

@@ -49,4 +49,4 @@ declare type UniqueOption = boolean | ((entry: Payload) => Payload);

private updateBBox;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { CSSProperties, SVGProps } from 'react';
import React, { CSSProperties, SVGProps } from 'react';
interface TextProps {

@@ -15,3 +15,3 @@ scaleToFit?: boolean;

export declare const Text: {
(props: Props): JSX.Element;
(props: Props): React.JSX.Element;
defaultProps: {

@@ -18,0 +18,0 @@ x: number;

@@ -83,3 +83,3 @@ import React, { CSSProperties, ReactNode, ReactElement, SVGProps } from 'react';

children?: React.ReactNode;
}): JSX.Element;
}): React.JSX.Element;
displayName: string;

@@ -86,0 +86,0 @@ defaultProps: TooltipProps<number, string>;

@@ -1,2 +0,2 @@

import { ReactNode, CSSProperties, SVGProps } from 'react';
import React, { ReactNode, CSSProperties, SVGProps } from 'react';
interface SurfaceProps {

@@ -18,3 +18,3 @@ width: number;

export declare type Props = Omit<SVGProps<SVGSVGElement>, 'viewBox'> & SurfaceProps;
export declare function Surface(props: Props): JSX.Element;
export declare function Surface(props: Props): React.JSX.Element;
export {};

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement } from 'react';
import React, { PureComponent, ReactElement } from 'react';
import { Props as TrapezoidProps } from '../shape/Trapezoid';

@@ -107,8 +107,8 @@ import { LegendType, TooltipType, AnimationTiming, ChartOffset, DataKey, PresentationAttributesAdaptChildEvent } from '../util/types';

isActiveIndex(i: number): boolean;
static renderTrapezoidItem(option: Props['activeShape'], props: any): JSX.Element;
renderTrapezoidsStatically(trapezoids: FunnelTrapezoidItem[]): JSX.Element[];
renderTrapezoidsWithAnimation(): JSX.Element;
renderTrapezoids(): JSX.Element | JSX.Element[];
render(): JSX.Element;
static renderTrapezoidItem(option: Props['activeShape'], props: any): React.JSX.Element;
renderTrapezoidsStatically(trapezoids: FunnelTrapezoidItem[]): React.JSX.Element[];
renderTrapezoidsWithAnimation(): React.JSX.Element;
renderTrapezoids(): React.JSX.Element | React.JSX.Element[];
render(): React.JSX.Element;
}
export {};

@@ -124,13 +124,13 @@ import React, { PureComponent, ReactElement, ReactNode, SVGProps } from 'react';

handleAnimationStart: () => void;
static renderLabelLineItem(option: PieLabelLine, props: any): JSX.Element;
static renderLabelItem(option: PieLabel, props: any, value: any): JSX.Element;
renderLabels(sectors: PieSectorDataItem[]): JSX.Element;
static renderSectorItem(option: PieActiveShape, props: any): JSX.Element;
renderSectorsStatically(sectors: PieSectorDataItem[]): JSX.Element[];
renderSectorsWithAnimation(): JSX.Element;
static renderLabelLineItem(option: PieLabelLine, props: any): React.JSX.Element;
static renderLabelItem(option: PieLabel, props: any, value: any): React.JSX.Element;
renderLabels(sectors: PieSectorDataItem[]): React.JSX.Element;
static renderSectorItem(option: PieActiveShape, props: any): React.JSX.Element;
renderSectorsStatically(sectors: PieSectorDataItem[]): React.JSX.Element[];
renderSectorsWithAnimation(): React.JSX.Element;
attachKeyboardHandlers(pieRef: HTMLElement): void;
renderSectors(): JSX.Element | JSX.Element[];
renderSectors(): React.JSX.Element | React.JSX.Element[];
componentDidMount(): void;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent } from 'react';
import React, { PureComponent } from 'react';
import { BaseAxisProps, TickItem, PresentationAttributesAdaptChildEvent } from '../util/types';

@@ -37,6 +37,6 @@ export interface PolarAngleAxisProps extends BaseAxisProps {

getTickTextAnchor(data: TickItem): string;
renderAxisLine(): JSX.Element;
static renderTickItem(option: PolarAngleAxisProps['tick'], props: any, value: string | number): JSX.Element;
renderTicks(): JSX.Element;
render(): JSX.Element;
renderAxisLine(): React.JSX.Element;
static renderTickItem(option: PolarAngleAxisProps['tick'], props: any, value: string | number): React.JSX.Element;
renderTicks(): React.JSX.Element;
render(): React.JSX.Element;
}

@@ -1,2 +0,2 @@

import { SVGProps } from 'react';
import React, { SVGProps } from 'react';
interface PolarGridProps {

@@ -14,3 +14,3 @@ cx?: number;

export declare const PolarGrid: {
(props: Props): JSX.Element;
(props: Props): React.JSX.Element;
displayName: string;

@@ -17,0 +17,0 @@ defaultProps: {

@@ -1,2 +0,2 @@

import { PureComponent } from 'react';
import React, { PureComponent } from 'react';
import { BaseAxisProps, TickItem, PresentationAttributesAdaptChildEvent } from '../util/types';

@@ -41,6 +41,6 @@ export interface PolarRadiusAxisProps extends Omit<BaseAxisProps, 'unit'> {

};
renderAxisLine(): JSX.Element;
static renderTickItem(option: Props['tick'], props: any, value: string | number): JSX.Element;
renderTicks(): JSX.Element;
render(): JSX.Element;
renderAxisLine(): React.JSX.Element;
static renderTickItem(option: Props['tick'], props: any, value: string | number): React.JSX.Element;
renderTicks(): React.JSX.Element;
render(): React.JSX.Element;
}

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement, MouseEvent, SVGProps } from 'react';
import React, { PureComponent, ReactElement, MouseEvent, SVGProps } from 'react';
import { Props as DotProps } from '../shape/Dot';

@@ -88,9 +88,9 @@ import { LegendType, TooltipType, AnimationTiming, DataKey } from '../util/types';

handleMouseLeave: (e: MouseEvent<SVGPolygonElement>) => void;
static renderDotItem(option: RadarDot, props: any): JSX.Element;
renderDots(points: RadarPoint[]): JSX.Element;
renderPolygonStatically(points: RadarPoint[]): JSX.Element;
renderPolygonWithAnimation(): JSX.Element;
renderPolygon(): JSX.Element;
render(): JSX.Element;
static renderDotItem(option: RadarDot, props: any): React.JSX.Element;
renderDots(points: RadarPoint[]): React.JSX.Element;
renderPolygonStatically(points: RadarPoint[]): React.JSX.Element;
renderPolygonWithAnimation(): React.JSX.Element;
renderPolygon(): React.JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, ReactElement, ReactNode } from 'react';
import React, { PureComponent, ReactElement, ReactNode } from 'react';
import { Props as SectorProps } from '../shape/Sector';

@@ -89,7 +89,7 @@ import { ImplicitLabelListType } from '../component/LabelList';

renderSectorsStatically(sectors: SectorProps[]): {}[];
renderSectorsWithAnimation(): JSX.Element;
renderSectors(): JSX.Element | {}[];
renderSectorsWithAnimation(): React.JSX.Element;
renderSectors(): React.JSX.Element | {}[];
renderBackground(sectors?: RadialBarDataItem[]): {}[];
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent } from 'react';
import React, { PureComponent } from 'react';
import { PresentationAttributesWithProps } from '../util/types';

@@ -11,4 +11,4 @@ interface DotProps {

export declare class Dot extends PureComponent<Props> {
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, SVGProps } from 'react';
import React, { PureComponent, SVGProps } from 'react';
import { Coordinate } from '../util/types';

@@ -11,4 +11,4 @@ interface PolygonProps {

export declare class Polygon extends PureComponent<Props> {
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, SVGProps } from 'react';
import React, { PureComponent, SVGProps } from 'react';
import { AnimationTiming } from '../util/types';

@@ -45,4 +45,4 @@ declare type RectRadius = [number, number, number, number];

componentDidMount(): void;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, SVGProps } from 'react';
import React, { PureComponent, SVGProps } from 'react';
import { GeometrySector } from '../util/types';

@@ -19,4 +19,4 @@ interface SectorProps extends GeometrySector {

};
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, SVGProps } from 'react';
import React, { PureComponent, SVGProps } from 'react';
import { SymbolType as D3SymbolType } from 'victory-vendor/d3-shape';

@@ -22,4 +22,4 @@ import { SymbolType } from '../util/types';

getPath(): string;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -1,2 +0,2 @@

import { PureComponent, SVGProps } from 'react';
import React, { PureComponent, SVGProps } from 'react';
import { AnimationTiming } from '../util/types';

@@ -33,4 +33,4 @@ interface TrapezoidProps {

componentDidMount(): void;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc