victory-pie 37.0.1-next.2 → 37.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -4
- package/es/helper-methods.d.ts +13 -13
- package/es/index.d.ts +2 -2
- package/es/slice.d.ts +28 -28
- package/es/victory-pie.d.ts +116 -116
- package/lib/helper-methods.d.ts +13 -13
- package/lib/index.d.ts +2 -2
- package/lib/slice.d.ts +28 -28
- package/lib/victory-pie.d.ts +116 -116
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# victory-pie
|
|
2
2
|
|
|
3
|
-
## 37.0.1
|
|
3
|
+
## 37.0.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- victory-core@37.0.1-next.2
|
|
9
|
-
- victory-vendor@37.0.1-next.2
|
|
7
|
+
- Fix the signature of class static functions in components ([#2840](https://github.com/FormidableLabs/victory/pull/2840))
|
|
10
8
|
|
|
11
9
|
## 37.0.0
|
|
12
10
|
|
package/es/helper-methods.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const getXOffsetMultiplayerByAngle: (angle: any) => number;
|
|
2
|
-
export declare const getYOffsetMultiplayerByAngle: (angle: any) => number;
|
|
3
|
-
export declare const getXOffset: (offset: any, angle: any) => number;
|
|
4
|
-
export declare const getYOffset: (offset: any, angle: any) => number;
|
|
5
|
-
export declare const getAverage: (array: any) => number;
|
|
6
|
-
export declare const getLabelIndicatorPropsForLineSegment: (props: any, calculatedValues: any, labelProps: any) => {
|
|
7
|
-
x1: number;
|
|
8
|
-
y1: number;
|
|
9
|
-
x2: number;
|
|
10
|
-
y2: number;
|
|
11
|
-
index: any;
|
|
12
|
-
};
|
|
13
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getXOffsetMultiplayerByAngle: (angle: any) => number;
|
|
2
|
+
export declare const getYOffsetMultiplayerByAngle: (angle: any) => number;
|
|
3
|
+
export declare const getXOffset: (offset: any, angle: any) => number;
|
|
4
|
+
export declare const getYOffset: (offset: any, angle: any) => number;
|
|
5
|
+
export declare const getAverage: (array: any) => number;
|
|
6
|
+
export declare const getLabelIndicatorPropsForLineSegment: (props: any, calculatedValues: any, labelProps: any) => {
|
|
7
|
+
x1: number;
|
|
8
|
+
y1: number;
|
|
9
|
+
x2: number;
|
|
10
|
+
y2: number;
|
|
11
|
+
index: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
14
14
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/es/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./victory-pie";
|
|
2
|
-
export * from "./slice";
|
|
1
|
+
export * from "./victory-pie";
|
|
2
|
+
export * from "./slice";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/es/slice.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NumberOrCallback, SliceNumberOrCallback, StringOrCallback, VictoryCommonProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
-
export declare type VictorySliceLabelPositionType = "startAngle" | "centroid" | "endAngle";
|
|
4
|
-
export declare type VictorySliceLabelPlacementType = "vertical" | "parallel" | "perpendicular";
|
|
5
|
-
export declare type VictorySliceTTargetType = "data" | "labels" | "parent";
|
|
6
|
-
export interface SliceProps extends VictoryCommonProps {
|
|
7
|
-
ariaLabel?: StringOrCallback;
|
|
8
|
-
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
9
|
-
datum?: any;
|
|
10
|
-
innerRadius?: NumberOrCallback;
|
|
11
|
-
padAngle?: SliceNumberOrCallback<SliceProps, "padAngle">;
|
|
12
|
-
pathComponent?: React.ReactElement;
|
|
13
|
-
pathFunction?: (props: SliceProps) => string;
|
|
14
|
-
radius?: SliceNumberOrCallback<SliceProps, "radius">;
|
|
15
|
-
slice?: {
|
|
16
|
-
startAngle?: number;
|
|
17
|
-
endAngle?: number;
|
|
18
|
-
padAngle?: number;
|
|
19
|
-
data?: any[];
|
|
20
|
-
};
|
|
21
|
-
sliceEndAngle?: SliceNumberOrCallback<SliceProps, "sliceEndAngle">;
|
|
22
|
-
sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
|
|
23
|
-
style?: VictoryStyleInterface;
|
|
24
|
-
tabIndex?: NumberOrCallback;
|
|
25
|
-
role?: string;
|
|
26
|
-
shapeRendering?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const Slice: (initialProps: SliceProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumberOrCallback, SliceNumberOrCallback, StringOrCallback, VictoryCommonProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
export declare type VictorySliceLabelPositionType = "startAngle" | "centroid" | "endAngle";
|
|
4
|
+
export declare type VictorySliceLabelPlacementType = "vertical" | "parallel" | "perpendicular";
|
|
5
|
+
export declare type VictorySliceTTargetType = "data" | "labels" | "parent";
|
|
6
|
+
export interface SliceProps extends VictoryCommonProps {
|
|
7
|
+
ariaLabel?: StringOrCallback;
|
|
8
|
+
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
9
|
+
datum?: any;
|
|
10
|
+
innerRadius?: NumberOrCallback;
|
|
11
|
+
padAngle?: SliceNumberOrCallback<SliceProps, "padAngle">;
|
|
12
|
+
pathComponent?: React.ReactElement;
|
|
13
|
+
pathFunction?: (props: SliceProps) => string;
|
|
14
|
+
radius?: SliceNumberOrCallback<SliceProps, "radius">;
|
|
15
|
+
slice?: {
|
|
16
|
+
startAngle?: number;
|
|
17
|
+
endAngle?: number;
|
|
18
|
+
padAngle?: number;
|
|
19
|
+
data?: any[];
|
|
20
|
+
};
|
|
21
|
+
sliceEndAngle?: SliceNumberOrCallback<SliceProps, "sliceEndAngle">;
|
|
22
|
+
sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
|
|
23
|
+
style?: VictoryStyleInterface;
|
|
24
|
+
tabIndex?: NumberOrCallback;
|
|
25
|
+
role?: string;
|
|
26
|
+
shapeRendering?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const Slice: (initialProps: SliceProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
29
29
|
//# sourceMappingURL=slice.d.ts.map
|
package/es/victory-pie.d.ts
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Data, ColorScalePropType, EventPropTypeInterface, NumberOrCallback, OriginType, SliceNumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass, VictoryDatableProps } from "victory-core";
|
|
3
|
-
import { SliceProps, VictorySliceTTargetType, VictorySliceLabelPlacementType, VictorySliceLabelPositionType } from "./slice";
|
|
4
|
-
export interface VictoryPieProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
5
|
-
colorScale?: ColorScalePropType;
|
|
6
|
-
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
7
|
-
endAngle?: number;
|
|
8
|
-
events?: EventPropTypeInterface<VictorySliceTTargetType, StringOrNumberOrCallback | string[] | number[]>[];
|
|
9
|
-
eventKey?: StringOrNumberOrCallback;
|
|
10
|
-
innerRadius?: NumberOrCallback;
|
|
11
|
-
labelIndicator?: boolean | React.ReactElement;
|
|
12
|
-
labelIndicatorInnerOffset?: number;
|
|
13
|
-
labelIndicatorOuterOffset?: number;
|
|
14
|
-
labelPlacement?: VictorySliceLabelPlacementType | ((props: SliceProps) => VictorySliceLabelPlacementType);
|
|
15
|
-
labelPosition?: VictorySliceLabelPositionType | ((props: SliceProps) => VictorySliceLabelPositionType);
|
|
16
|
-
labelIndicatorComponent?: React.ReactElement;
|
|
17
|
-
labelRadius?: number | ((props: SliceProps) => number);
|
|
18
|
-
origin?: OriginType;
|
|
19
|
-
padAngle?: NumberOrCallback;
|
|
20
|
-
radius?: NumberOrCallback;
|
|
21
|
-
startAngle?: number;
|
|
22
|
-
style?: VictoryStyleInterface;
|
|
23
|
-
}
|
|
24
|
-
interface VictoryPieBase extends EventsMixinClass<VictoryPieProps> {
|
|
25
|
-
}
|
|
26
|
-
declare class VictoryPieBase extends React.Component<VictoryPieProps> {
|
|
27
|
-
static animationWhitelist: (keyof VictoryPieProps)[];
|
|
28
|
-
static displayName: string;
|
|
29
|
-
static role: string;
|
|
30
|
-
static defaultTransitions: {
|
|
31
|
-
onExit: {
|
|
32
|
-
duration: number;
|
|
33
|
-
before: () => {
|
|
34
|
-
_y: number;
|
|
35
|
-
label: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
onEnter: {
|
|
39
|
-
duration: number;
|
|
40
|
-
before: () => {
|
|
41
|
-
_y: number;
|
|
42
|
-
label: string;
|
|
43
|
-
};
|
|
44
|
-
after: (datum: any) => {
|
|
45
|
-
y_: any;
|
|
46
|
-
label: any;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
static defaultProps: VictoryPieProps;
|
|
51
|
-
static getBaseProps(props: VictoryPieProps): any;
|
|
52
|
-
static getData: typeof Data.getData;
|
|
53
|
-
static expectedComponents: (keyof VictoryPieProps)[];
|
|
54
|
-
shouldAnimate(): boolean;
|
|
55
|
-
renderComponents(props: VictoryPieProps, shouldRenderDatum?: (datum: any) => boolean): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
-
render(): React.ReactElement;
|
|
57
|
-
}
|
|
58
|
-
export declare const VictoryPie: {
|
|
59
|
-
new (props: import("victory-core").EventMixinCommonProps): {
|
|
60
|
-
state: {};
|
|
61
|
-
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
62
|
-
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
63
|
-
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
64
|
-
externalMutations: {} | undefined;
|
|
65
|
-
calculatedState: {};
|
|
66
|
-
globalEvents: {};
|
|
67
|
-
prevGlobalEventKeys: string[];
|
|
68
|
-
boundGlobalEvents: {};
|
|
69
|
-
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
70
|
-
componentDidMount(): void;
|
|
71
|
-
componentDidUpdate(prevProps: any): void;
|
|
72
|
-
componentWillUnmount(): void;
|
|
73
|
-
addGlobalListener(key: any): void;
|
|
74
|
-
removeGlobalListener(key: any): void;
|
|
75
|
-
getStateChanges(props: any): {};
|
|
76
|
-
applyExternalMutations(props: any, externalMutations: any): void;
|
|
77
|
-
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
78
|
-
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
79
|
-
cacheValues(obj: any): void;
|
|
80
|
-
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
81
|
-
getAllEvents(props: any): any;
|
|
82
|
-
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
83
|
-
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
84
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
85
|
-
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
86
|
-
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
87
|
-
context: unknown;
|
|
88
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
-
render(): React.ReactNode;
|
|
91
|
-
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
92
|
-
refs: {
|
|
93
|
-
[key: string]: React.ReactInstance;
|
|
94
|
-
};
|
|
95
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
96
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
97
|
-
componentWillMount?(): void;
|
|
98
|
-
UNSAFE_componentWillMount?(): void;
|
|
99
|
-
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
100
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
101
|
-
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
102
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
103
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
104
|
-
getSharedEventState: (key: string, value: string) => unknown;
|
|
105
|
-
baseProps: Record<string, object>;
|
|
106
|
-
dataKeys: string[];
|
|
107
|
-
hasEvents: unknown;
|
|
108
|
-
events: unknown;
|
|
109
|
-
};
|
|
110
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
111
|
-
role?: string | undefined;
|
|
112
|
-
expectedComponents?: string[] | undefined;
|
|
113
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
114
|
-
animationWhitelist?: string[] | undefined;
|
|
115
|
-
} & typeof VictoryPieBase;
|
|
116
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Data, ColorScalePropType, EventPropTypeInterface, NumberOrCallback, OriginType, SliceNumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass, VictoryDatableProps } from "victory-core";
|
|
3
|
+
import { SliceProps, VictorySliceTTargetType, VictorySliceLabelPlacementType, VictorySliceLabelPositionType } from "./slice";
|
|
4
|
+
export interface VictoryPieProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
5
|
+
colorScale?: ColorScalePropType;
|
|
6
|
+
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
7
|
+
endAngle?: number;
|
|
8
|
+
events?: EventPropTypeInterface<VictorySliceTTargetType, StringOrNumberOrCallback | string[] | number[]>[];
|
|
9
|
+
eventKey?: StringOrNumberOrCallback;
|
|
10
|
+
innerRadius?: NumberOrCallback;
|
|
11
|
+
labelIndicator?: boolean | React.ReactElement;
|
|
12
|
+
labelIndicatorInnerOffset?: number;
|
|
13
|
+
labelIndicatorOuterOffset?: number;
|
|
14
|
+
labelPlacement?: VictorySliceLabelPlacementType | ((props: SliceProps) => VictorySliceLabelPlacementType);
|
|
15
|
+
labelPosition?: VictorySliceLabelPositionType | ((props: SliceProps) => VictorySliceLabelPositionType);
|
|
16
|
+
labelIndicatorComponent?: React.ReactElement;
|
|
17
|
+
labelRadius?: number | ((props: SliceProps) => number);
|
|
18
|
+
origin?: OriginType;
|
|
19
|
+
padAngle?: NumberOrCallback;
|
|
20
|
+
radius?: NumberOrCallback;
|
|
21
|
+
startAngle?: number;
|
|
22
|
+
style?: VictoryStyleInterface;
|
|
23
|
+
}
|
|
24
|
+
interface VictoryPieBase extends EventsMixinClass<VictoryPieProps> {
|
|
25
|
+
}
|
|
26
|
+
declare class VictoryPieBase extends React.Component<VictoryPieProps> {
|
|
27
|
+
static animationWhitelist: (keyof VictoryPieProps)[];
|
|
28
|
+
static displayName: string;
|
|
29
|
+
static role: string;
|
|
30
|
+
static defaultTransitions: {
|
|
31
|
+
onExit: {
|
|
32
|
+
duration: number;
|
|
33
|
+
before: () => {
|
|
34
|
+
_y: number;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
onEnter: {
|
|
39
|
+
duration: number;
|
|
40
|
+
before: () => {
|
|
41
|
+
_y: number;
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
after: (datum: any) => {
|
|
45
|
+
y_: any;
|
|
46
|
+
label: any;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
static defaultProps: VictoryPieProps;
|
|
51
|
+
static getBaseProps(props: VictoryPieProps): any;
|
|
52
|
+
static getData: typeof Data.getData;
|
|
53
|
+
static expectedComponents: (keyof VictoryPieProps)[];
|
|
54
|
+
shouldAnimate(): boolean;
|
|
55
|
+
renderComponents(props: VictoryPieProps, shouldRenderDatum?: (datum: any) => boolean): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
+
render(): React.ReactElement;
|
|
57
|
+
}
|
|
58
|
+
export declare const VictoryPie: {
|
|
59
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
60
|
+
state: {};
|
|
61
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
62
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
63
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
64
|
+
externalMutations: {} | undefined;
|
|
65
|
+
calculatedState: {};
|
|
66
|
+
globalEvents: {};
|
|
67
|
+
prevGlobalEventKeys: string[];
|
|
68
|
+
boundGlobalEvents: {};
|
|
69
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
70
|
+
componentDidMount(): void;
|
|
71
|
+
componentDidUpdate(prevProps: any): void;
|
|
72
|
+
componentWillUnmount(): void;
|
|
73
|
+
addGlobalListener(key: any): void;
|
|
74
|
+
removeGlobalListener(key: any): void;
|
|
75
|
+
getStateChanges(props: any): {};
|
|
76
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
77
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
78
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
79
|
+
cacheValues(obj: any): void;
|
|
80
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
81
|
+
getAllEvents(props: any): any;
|
|
82
|
+
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
83
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
84
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
85
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
86
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
87
|
+
context: unknown;
|
|
88
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
+
render(): React.ReactNode;
|
|
91
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
92
|
+
refs: {
|
|
93
|
+
[key: string]: React.ReactInstance;
|
|
94
|
+
};
|
|
95
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
96
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
97
|
+
componentWillMount?(): void;
|
|
98
|
+
UNSAFE_componentWillMount?(): void;
|
|
99
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
100
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
101
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
102
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
103
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
104
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
105
|
+
baseProps: Record<string, object>;
|
|
106
|
+
dataKeys: string[];
|
|
107
|
+
hasEvents: unknown;
|
|
108
|
+
events: unknown;
|
|
109
|
+
};
|
|
110
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
111
|
+
role?: string | undefined;
|
|
112
|
+
expectedComponents?: string[] | undefined;
|
|
113
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
114
|
+
animationWhitelist?: string[] | undefined;
|
|
115
|
+
} & typeof VictoryPieBase;
|
|
116
|
+
export {};
|
|
117
117
|
//# sourceMappingURL=victory-pie.d.ts.map
|
package/lib/helper-methods.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const getXOffsetMultiplayerByAngle: (angle: any) => number;
|
|
2
|
-
export declare const getYOffsetMultiplayerByAngle: (angle: any) => number;
|
|
3
|
-
export declare const getXOffset: (offset: any, angle: any) => number;
|
|
4
|
-
export declare const getYOffset: (offset: any, angle: any) => number;
|
|
5
|
-
export declare const getAverage: (array: any) => number;
|
|
6
|
-
export declare const getLabelIndicatorPropsForLineSegment: (props: any, calculatedValues: any, labelProps: any) => {
|
|
7
|
-
x1: number;
|
|
8
|
-
y1: number;
|
|
9
|
-
x2: number;
|
|
10
|
-
y2: number;
|
|
11
|
-
index: any;
|
|
12
|
-
};
|
|
13
|
-
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
1
|
+
export declare const getXOffsetMultiplayerByAngle: (angle: any) => number;
|
|
2
|
+
export declare const getYOffsetMultiplayerByAngle: (angle: any) => number;
|
|
3
|
+
export declare const getXOffset: (offset: any, angle: any) => number;
|
|
4
|
+
export declare const getYOffset: (offset: any, angle: any) => number;
|
|
5
|
+
export declare const getAverage: (array: any) => number;
|
|
6
|
+
export declare const getLabelIndicatorPropsForLineSegment: (props: any, calculatedValues: any, labelProps: any) => {
|
|
7
|
+
x1: number;
|
|
8
|
+
y1: number;
|
|
9
|
+
x2: number;
|
|
10
|
+
y2: number;
|
|
11
|
+
index: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
|
|
14
14
|
//# sourceMappingURL=helper-methods.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./victory-pie";
|
|
2
|
-
export * from "./slice";
|
|
1
|
+
export * from "./victory-pie";
|
|
2
|
+
export * from "./slice";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/slice.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NumberOrCallback, SliceNumberOrCallback, StringOrCallback, VictoryCommonProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
-
export declare type VictorySliceLabelPositionType = "startAngle" | "centroid" | "endAngle";
|
|
4
|
-
export declare type VictorySliceLabelPlacementType = "vertical" | "parallel" | "perpendicular";
|
|
5
|
-
export declare type VictorySliceTTargetType = "data" | "labels" | "parent";
|
|
6
|
-
export interface SliceProps extends VictoryCommonProps {
|
|
7
|
-
ariaLabel?: StringOrCallback;
|
|
8
|
-
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
9
|
-
datum?: any;
|
|
10
|
-
innerRadius?: NumberOrCallback;
|
|
11
|
-
padAngle?: SliceNumberOrCallback<SliceProps, "padAngle">;
|
|
12
|
-
pathComponent?: React.ReactElement;
|
|
13
|
-
pathFunction?: (props: SliceProps) => string;
|
|
14
|
-
radius?: SliceNumberOrCallback<SliceProps, "radius">;
|
|
15
|
-
slice?: {
|
|
16
|
-
startAngle?: number;
|
|
17
|
-
endAngle?: number;
|
|
18
|
-
padAngle?: number;
|
|
19
|
-
data?: any[];
|
|
20
|
-
};
|
|
21
|
-
sliceEndAngle?: SliceNumberOrCallback<SliceProps, "sliceEndAngle">;
|
|
22
|
-
sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
|
|
23
|
-
style?: VictoryStyleInterface;
|
|
24
|
-
tabIndex?: NumberOrCallback;
|
|
25
|
-
role?: string;
|
|
26
|
-
shapeRendering?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const Slice: (initialProps: SliceProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumberOrCallback, SliceNumberOrCallback, StringOrCallback, VictoryCommonProps, VictoryStyleInterface } from "victory-core";
|
|
3
|
+
export declare type VictorySliceLabelPositionType = "startAngle" | "centroid" | "endAngle";
|
|
4
|
+
export declare type VictorySliceLabelPlacementType = "vertical" | "parallel" | "perpendicular";
|
|
5
|
+
export declare type VictorySliceTTargetType = "data" | "labels" | "parent";
|
|
6
|
+
export interface SliceProps extends VictoryCommonProps {
|
|
7
|
+
ariaLabel?: StringOrCallback;
|
|
8
|
+
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
9
|
+
datum?: any;
|
|
10
|
+
innerRadius?: NumberOrCallback;
|
|
11
|
+
padAngle?: SliceNumberOrCallback<SliceProps, "padAngle">;
|
|
12
|
+
pathComponent?: React.ReactElement;
|
|
13
|
+
pathFunction?: (props: SliceProps) => string;
|
|
14
|
+
radius?: SliceNumberOrCallback<SliceProps, "radius">;
|
|
15
|
+
slice?: {
|
|
16
|
+
startAngle?: number;
|
|
17
|
+
endAngle?: number;
|
|
18
|
+
padAngle?: number;
|
|
19
|
+
data?: any[];
|
|
20
|
+
};
|
|
21
|
+
sliceEndAngle?: SliceNumberOrCallback<SliceProps, "sliceEndAngle">;
|
|
22
|
+
sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
|
|
23
|
+
style?: VictoryStyleInterface;
|
|
24
|
+
tabIndex?: NumberOrCallback;
|
|
25
|
+
role?: string;
|
|
26
|
+
shapeRendering?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const Slice: (initialProps: SliceProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
29
29
|
//# sourceMappingURL=slice.d.ts.map
|
package/lib/victory-pie.d.ts
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Data, ColorScalePropType, EventPropTypeInterface, NumberOrCallback, OriginType, SliceNumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass, VictoryDatableProps } from "victory-core";
|
|
3
|
-
import { SliceProps, VictorySliceTTargetType, VictorySliceLabelPlacementType, VictorySliceLabelPositionType } from "./slice";
|
|
4
|
-
export interface VictoryPieProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
5
|
-
colorScale?: ColorScalePropType;
|
|
6
|
-
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
7
|
-
endAngle?: number;
|
|
8
|
-
events?: EventPropTypeInterface<VictorySliceTTargetType, StringOrNumberOrCallback | string[] | number[]>[];
|
|
9
|
-
eventKey?: StringOrNumberOrCallback;
|
|
10
|
-
innerRadius?: NumberOrCallback;
|
|
11
|
-
labelIndicator?: boolean | React.ReactElement;
|
|
12
|
-
labelIndicatorInnerOffset?: number;
|
|
13
|
-
labelIndicatorOuterOffset?: number;
|
|
14
|
-
labelPlacement?: VictorySliceLabelPlacementType | ((props: SliceProps) => VictorySliceLabelPlacementType);
|
|
15
|
-
labelPosition?: VictorySliceLabelPositionType | ((props: SliceProps) => VictorySliceLabelPositionType);
|
|
16
|
-
labelIndicatorComponent?: React.ReactElement;
|
|
17
|
-
labelRadius?: number | ((props: SliceProps) => number);
|
|
18
|
-
origin?: OriginType;
|
|
19
|
-
padAngle?: NumberOrCallback;
|
|
20
|
-
radius?: NumberOrCallback;
|
|
21
|
-
startAngle?: number;
|
|
22
|
-
style?: VictoryStyleInterface;
|
|
23
|
-
}
|
|
24
|
-
interface VictoryPieBase extends EventsMixinClass<VictoryPieProps> {
|
|
25
|
-
}
|
|
26
|
-
declare class VictoryPieBase extends React.Component<VictoryPieProps> {
|
|
27
|
-
static animationWhitelist: (keyof VictoryPieProps)[];
|
|
28
|
-
static displayName: string;
|
|
29
|
-
static role: string;
|
|
30
|
-
static defaultTransitions: {
|
|
31
|
-
onExit: {
|
|
32
|
-
duration: number;
|
|
33
|
-
before: () => {
|
|
34
|
-
_y: number;
|
|
35
|
-
label: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
onEnter: {
|
|
39
|
-
duration: number;
|
|
40
|
-
before: () => {
|
|
41
|
-
_y: number;
|
|
42
|
-
label: string;
|
|
43
|
-
};
|
|
44
|
-
after: (datum: any) => {
|
|
45
|
-
y_: any;
|
|
46
|
-
label: any;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
static defaultProps: VictoryPieProps;
|
|
51
|
-
static getBaseProps(props: VictoryPieProps): any;
|
|
52
|
-
static getData: typeof Data.getData;
|
|
53
|
-
static expectedComponents: (keyof VictoryPieProps)[];
|
|
54
|
-
shouldAnimate(): boolean;
|
|
55
|
-
renderComponents(props: VictoryPieProps, shouldRenderDatum?: (datum: any) => boolean): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
-
render(): React.ReactElement;
|
|
57
|
-
}
|
|
58
|
-
export declare const VictoryPie: {
|
|
59
|
-
new (props: import("victory-core").EventMixinCommonProps): {
|
|
60
|
-
state: {};
|
|
61
|
-
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
62
|
-
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
63
|
-
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
64
|
-
externalMutations: {} | undefined;
|
|
65
|
-
calculatedState: {};
|
|
66
|
-
globalEvents: {};
|
|
67
|
-
prevGlobalEventKeys: string[];
|
|
68
|
-
boundGlobalEvents: {};
|
|
69
|
-
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
70
|
-
componentDidMount(): void;
|
|
71
|
-
componentDidUpdate(prevProps: any): void;
|
|
72
|
-
componentWillUnmount(): void;
|
|
73
|
-
addGlobalListener(key: any): void;
|
|
74
|
-
removeGlobalListener(key: any): void;
|
|
75
|
-
getStateChanges(props: any): {};
|
|
76
|
-
applyExternalMutations(props: any, externalMutations: any): void;
|
|
77
|
-
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
78
|
-
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
79
|
-
cacheValues(obj: any): void;
|
|
80
|
-
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
81
|
-
getAllEvents(props: any): any;
|
|
82
|
-
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
83
|
-
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
84
|
-
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
85
|
-
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
86
|
-
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
87
|
-
context: unknown;
|
|
88
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
-
render(): React.ReactNode;
|
|
91
|
-
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
92
|
-
refs: {
|
|
93
|
-
[key: string]: React.ReactInstance;
|
|
94
|
-
};
|
|
95
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
96
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
97
|
-
componentWillMount?(): void;
|
|
98
|
-
UNSAFE_componentWillMount?(): void;
|
|
99
|
-
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
100
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
101
|
-
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
102
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
103
|
-
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
104
|
-
getSharedEventState: (key: string, value: string) => unknown;
|
|
105
|
-
baseProps: Record<string, object>;
|
|
106
|
-
dataKeys: string[];
|
|
107
|
-
hasEvents: unknown;
|
|
108
|
-
events: unknown;
|
|
109
|
-
};
|
|
110
|
-
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
111
|
-
role?: string | undefined;
|
|
112
|
-
expectedComponents?: string[] | undefined;
|
|
113
|
-
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
114
|
-
animationWhitelist?: string[] | undefined;
|
|
115
|
-
} & typeof VictoryPieBase;
|
|
116
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Data, ColorScalePropType, EventPropTypeInterface, NumberOrCallback, OriginType, SliceNumberOrCallback, StringOrNumberOrCallback, VictoryCommonProps, VictoryLabelableProps, VictoryMultiLabelableProps, VictoryStyleInterface, EventsMixinClass, VictoryDatableProps } from "victory-core";
|
|
3
|
+
import { SliceProps, VictorySliceTTargetType, VictorySliceLabelPlacementType, VictorySliceLabelPositionType } from "./slice";
|
|
4
|
+
export interface VictoryPieProps extends Omit<VictoryCommonProps, "polar">, VictoryDatableProps, VictoryLabelableProps, VictoryMultiLabelableProps {
|
|
5
|
+
colorScale?: ColorScalePropType;
|
|
6
|
+
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;
|
|
7
|
+
endAngle?: number;
|
|
8
|
+
events?: EventPropTypeInterface<VictorySliceTTargetType, StringOrNumberOrCallback | string[] | number[]>[];
|
|
9
|
+
eventKey?: StringOrNumberOrCallback;
|
|
10
|
+
innerRadius?: NumberOrCallback;
|
|
11
|
+
labelIndicator?: boolean | React.ReactElement;
|
|
12
|
+
labelIndicatorInnerOffset?: number;
|
|
13
|
+
labelIndicatorOuterOffset?: number;
|
|
14
|
+
labelPlacement?: VictorySliceLabelPlacementType | ((props: SliceProps) => VictorySliceLabelPlacementType);
|
|
15
|
+
labelPosition?: VictorySliceLabelPositionType | ((props: SliceProps) => VictorySliceLabelPositionType);
|
|
16
|
+
labelIndicatorComponent?: React.ReactElement;
|
|
17
|
+
labelRadius?: number | ((props: SliceProps) => number);
|
|
18
|
+
origin?: OriginType;
|
|
19
|
+
padAngle?: NumberOrCallback;
|
|
20
|
+
radius?: NumberOrCallback;
|
|
21
|
+
startAngle?: number;
|
|
22
|
+
style?: VictoryStyleInterface;
|
|
23
|
+
}
|
|
24
|
+
interface VictoryPieBase extends EventsMixinClass<VictoryPieProps> {
|
|
25
|
+
}
|
|
26
|
+
declare class VictoryPieBase extends React.Component<VictoryPieProps> {
|
|
27
|
+
static animationWhitelist: (keyof VictoryPieProps)[];
|
|
28
|
+
static displayName: string;
|
|
29
|
+
static role: string;
|
|
30
|
+
static defaultTransitions: {
|
|
31
|
+
onExit: {
|
|
32
|
+
duration: number;
|
|
33
|
+
before: () => {
|
|
34
|
+
_y: number;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
onEnter: {
|
|
39
|
+
duration: number;
|
|
40
|
+
before: () => {
|
|
41
|
+
_y: number;
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
after: (datum: any) => {
|
|
45
|
+
y_: any;
|
|
46
|
+
label: any;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
static defaultProps: VictoryPieProps;
|
|
51
|
+
static getBaseProps(props: VictoryPieProps): any;
|
|
52
|
+
static getData: typeof Data.getData;
|
|
53
|
+
static expectedComponents: (keyof VictoryPieProps)[];
|
|
54
|
+
shouldAnimate(): boolean;
|
|
55
|
+
renderComponents(props: VictoryPieProps, shouldRenderDatum?: (datum: any) => boolean): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
+
render(): React.ReactElement;
|
|
57
|
+
}
|
|
58
|
+
export declare const VictoryPie: {
|
|
59
|
+
new (props: import("victory-core").EventMixinCommonProps): {
|
|
60
|
+
state: {};
|
|
61
|
+
getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
|
|
62
|
+
getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
|
|
63
|
+
getEvents: (p: any, target: any, eventKey: any) => any;
|
|
64
|
+
externalMutations: {} | undefined;
|
|
65
|
+
calculatedState: {};
|
|
66
|
+
globalEvents: {};
|
|
67
|
+
prevGlobalEventKeys: string[];
|
|
68
|
+
boundGlobalEvents: {};
|
|
69
|
+
shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
|
|
70
|
+
componentDidMount(): void;
|
|
71
|
+
componentDidUpdate(prevProps: any): void;
|
|
72
|
+
componentWillUnmount(): void;
|
|
73
|
+
addGlobalListener(key: any): void;
|
|
74
|
+
removeGlobalListener(key: any): void;
|
|
75
|
+
getStateChanges(props: any): {};
|
|
76
|
+
applyExternalMutations(props: any, externalMutations: any): void;
|
|
77
|
+
getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
|
|
78
|
+
getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
|
|
79
|
+
cacheValues(obj: any): void;
|
|
80
|
+
getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
|
|
81
|
+
getAllEvents(props: any): any;
|
|
82
|
+
getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
|
|
83
|
+
renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
84
|
+
animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
85
|
+
renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
86
|
+
renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
87
|
+
context: unknown;
|
|
88
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
90
|
+
render(): React.ReactNode;
|
|
91
|
+
readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
|
|
92
|
+
refs: {
|
|
93
|
+
[key: string]: React.ReactInstance;
|
|
94
|
+
};
|
|
95
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
96
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
|
|
97
|
+
componentWillMount?(): void;
|
|
98
|
+
UNSAFE_componentWillMount?(): void;
|
|
99
|
+
componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
100
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
|
|
101
|
+
componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
102
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
103
|
+
componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
|
|
104
|
+
getSharedEventState: (key: string, value: string) => unknown;
|
|
105
|
+
baseProps: Record<string, object>;
|
|
106
|
+
dataKeys: string[];
|
|
107
|
+
hasEvents: unknown;
|
|
108
|
+
events: unknown;
|
|
109
|
+
};
|
|
110
|
+
getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
|
|
111
|
+
role?: string | undefined;
|
|
112
|
+
expectedComponents?: string[] | undefined;
|
|
113
|
+
getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
|
|
114
|
+
animationWhitelist?: string[] | undefined;
|
|
115
|
+
} & typeof VictoryPieBase;
|
|
116
|
+
export {};
|
|
117
117
|
//# sourceMappingURL=victory-pie.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-pie",
|
|
3
|
-
"version": "37.0.1
|
|
3
|
+
"version": "37.0.1",
|
|
4
4
|
"description": "Pie Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "^37.0.1
|
|
25
|
-
"victory-vendor": "^37.0.1
|
|
24
|
+
"victory-core": "^37.0.1",
|
|
25
|
+
"victory-vendor": "^37.0.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
29
29
|
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"provenance": true
|
|
32
|
+
},
|
|
30
33
|
"wireit": {
|
|
31
34
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
32
35
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|